(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d216257"],{c0e9:function(A,e,t){ /*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License */ A.exports=function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(e,t)};function e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return(t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&B[B.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!B||n[1]>B[0]&&n[1]=55296&&B<=56319&&t>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h>4,Q[i++]=(15&r)<<4|B>>2,Q[i++]=(3&B)<<6|63&n;return a}(A),s=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r0;){var o=r[--n];if(Array.isArray(A)?-1!==A.indexOf(o):A===o)for(var i=t;i<=r.length;){s=r[++i];if(s===e)return!0;if(s!==d)break}if(o!==d)break}return!1},eA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==d)return r;t--}return 0},tA=function(A,e,t,r,B){if(0===t[r])return"×";var n=r-1;if(Array.isArray(B)&&!0===B[n])return"×";var s=n-1,o=n+1,i=e[n],a=s>=0?e[s]:0,Q=e[o];if(2===i&&3===Q)return"×";if(-1!==Z.indexOf(i))return J;if(-1!==Z.indexOf(Q))return"×";if(-1!==_.indexOf(Q))return"×";if(8===eA(n,e))return"÷";if(11===Y.get(A[n]))return"×";if((i===S||i===T)&&11===Y.get(A[o]))return"×";if(7===i||7===Q)return"×";if(9===i)return"×";if(-1===[d,f,H].indexOf(i)&&9===Q)return"×";if(-1!==[p,E,I,L,x].indexOf(Q))return"×";if(eA(n,e)===m)return"×";if(AA(23,m,n,e))return"×";if(AA([p,E],K,n,e))return"×";if(AA(12,12,n,e))return"×";if(i===d)return"÷";if(23===i||23===Q)return"×";if(16===Q||16===i)return"÷";if(-1!==[f,H,K].indexOf(Q)||14===i)return"×";if(36===a&&-1!==$.indexOf(i))return"×";if(i===x&&36===Q)return"×";if(Q===y)return"×";if(-1!==W.indexOf(Q)&&i===v||-1!==W.indexOf(i)&&Q===v)return"×";if(i===D&&-1!==[V,S,T].indexOf(Q)||-1!==[V,S,T].indexOf(i)&&Q===b)return"×";if(-1!==W.indexOf(i)&&-1!==q.indexOf(Q)||-1!==q.indexOf(i)&&-1!==W.indexOf(Q))return"×";if(-1!==[D,b].indexOf(i)&&(Q===v||-1!==[m,H].indexOf(Q)&&e[o+1]===v)||-1!==[m,H].indexOf(i)&&Q===v||i===v&&-1!==[v,x,L].indexOf(Q))return"×";if(-1!==[v,x,L,p,E].indexOf(Q))for(var c=n;c>=0;){var w=e[c];if(w===v)return"×";if(-1===[x,L].indexOf(w))break;c--}if(-1!==[D,b].indexOf(Q))for(c=-1!==[p,E].indexOf(i)?s:n;c>=0;){w=e[c];if(w===v)return"×";if(-1===[x,L].indexOf(w))break;c--}if(k===i&&-1!==[k,R,G,O].indexOf(Q)||-1!==[R,G].indexOf(i)&&-1!==[R,N].indexOf(Q)||-1!==[N,O].indexOf(i)&&Q===N)return"×";if(-1!==z.indexOf(i)&&-1!==[y,b].indexOf(Q)||-1!==z.indexOf(Q)&&i===D)return"×";if(-1!==W.indexOf(i)&&-1!==W.indexOf(Q))return"×";if(i===L&&-1!==W.indexOf(Q))return"×";if(-1!==W.concat(v).indexOf(i)&&Q===m&&-1===X.indexOf(A[o])||-1!==W.concat(v).indexOf(Q)&&i===E)return"×";if(41===i&&41===Q){for(var g=t[n],u=1;g>0&&41===e[--g];)u++;if(u%2!=0)return"×"}return i===S&&Q===T?"×":"÷"},rA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],B=[];return A.forEach((function(A,n){var s=Y.get(A);if(s>50?(B.push(!0),s-=50):B.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(n),t.push(16);if(4===s||11===s){if(0===n)return r.push(n),t.push(M);var o=t[n-1];return-1===j.indexOf(o)?(r.push(r[n-1]),t.push(o)):(r.push(n),t.push(M))}return r.push(n),31===s?t.push("strict"===e?K:V):s===P||29===s?t.push(M):43===s?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(V):t.push(M):void t.push(s)})),[r,t,B]}(A,e.lineBreak),r=t[0],B=t[1],n=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(B=B.map((function(A){return-1!==[v,M,P].indexOf(A)?V:A})));var s="keep-all"===e.wordBreak?n.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,B,s]},BA=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===J,this.start=t,this.end=r}return A.prototype.slice=function(){return i.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),nA=function(A){return A>=48&&A<=57},sA=function(A){return nA(A)||A>=65&&A<=70||A>=97&&A<=102},oA=function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)},iA=function(A){return 10===A||9===A||32===A},aA=function(A){return oA(A)||function(A){return A>=128}(A)||95===A},QA=function(A){return aA(A)||nA(A)||45===A},cA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},wA=function(A,e){return 92===A&&10!==e},gA=function(A,e,t){return 45===A?aA(e)||wA(e,t):!!aA(A)||!(92!==A||!wA(A,e))},uA=function(A,e,t){return 43===A||45===A?!!nA(e)||46===e&&nA(t):nA(46===A?e:A)},lA={type:2},UA={type:3},CA={type:4},FA={type:13},hA={type:8},dA={type:21},fA={type:9},HA={type:10},pA={type:11},EA={type:12},IA={type:14},yA={type:23},KA={type:1},mA={type:25},LA={type:24},vA={type:26},bA={type:27},DA={type:28},xA={type:29},MA={type:31},SA={type:32},TA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(o(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==SA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(QA(e)||wA(t,r)){var B=gA(e,t,r)?2:1,n=this.consumeName();return{type:5,value:n,flags:B}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),FA;break;case 39:return this.consumeStringToken(39);case 40:return lA;case 41:return UA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),IA;break;case 43:if(uA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return CA;case 45:var s=A,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(uA(s,o,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(gA(s,o,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===o&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),LA;break;case 46:if(uA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var Q=this.consumeCodePoint();if(42===Q&&47===(Q=this.consumeCodePoint()))return this.consumeToken();if(-1===Q)return this.consumeToken()}break;case 58:return vA;case 59:return bA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),mA;break;case 64:var c=this.peekCodePoint(0),w=this.peekCodePoint(1),g=this.peekCodePoint(2);if(gA(c,w,g)){n=this.consumeName();return{type:7,value:n}}break;case 91:return DA;case 92:if(wA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return xA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),hA;break;case 123:return pA;case 125:return EA;case 117:case 85:var u=this.peekCodePoint(0),l=this.peekCodePoint(1);return 43!==u||!sA(l)&&63!==l||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),fA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),dA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),HA;break;case-1:return SA}return iA(A)?(this.consumeWhiteSpace(),MA):nA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):aA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:i(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();sA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(i.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),B=parseInt(i.apply(void 0,A.map((function(A){return 63===A?70:A}))),16);return{type:30,start:r,end:B}}var n=parseInt(i.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&sA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var s=[];sA(e)&&s.length<6;)s.push(e),e=this.consumeCodePoint();B=parseInt(i.apply(void 0,s),16);return{type:30,start:n,end:B}}return{type:30,start:n,end:n}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),yA)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:i.apply(void 0,A)};if(iA(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:i.apply(void 0,A)}):(this.consumeBadUrlRemnants(),yA);if(34===r||39===r||40===r||cA(r))return this.consumeBadUrlRemnants(),yA;if(92===r){if(!wA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),yA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;iA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;wA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=i.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(-1===r||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),KA;if(92===r){var B=this._value[t+1];-1!==B&&void 0!==B&&(10===B?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):wA(r,B)&&(e+=this.consumeStringSlice(t),e+=i(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(43!==t&&45!==t||A.push(this.consumeCodePoint());nA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===t&&nA(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;nA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var B=this.peekCodePoint(2);if((69===t||101===t)&&((43===r||45===r)&&nA(B)||nA(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;nA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var r=[];nA(A[e]);)r.push(A[e++]);var B=r.length?parseInt(i.apply(void 0,r),10):0;46===A[e]&&e++;for(var n=[];nA(A[e]);)n.push(A[e++]);var s=n.length,o=s?parseInt(i.apply(void 0,n),10):0;69!==A[e]&&101!==A[e]||e++;var a=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(a=-1),e++);for(var Q=[];nA(A[e]);)Q.push(A[e++]);var c=Q.length?parseInt(i.apply(void 0,Q),10):0;return t*(B+o*Math.pow(10,-s))*Math.pow(10,a*c)}(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),B=this.peekCodePoint(1),n=this.peekCodePoint(2);if(gA(r,B,n)){var s=this.consumeName();return{type:15,number:e,flags:t,unit:s}}return 37===r?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(sA(A)){for(var e=i(A);sA(this.peekCodePoint(0))&&e.length<6;)e+=i(this.consumeCodePoint());iA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return-1===A?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(QA(e))A+=i(e);else{if(!wA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=i(this.consumeEscapedCodePoint())}}},A}(),GA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new TA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||YA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?SA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),OA=function(A){return 15===A.type},VA=function(A){return 17===A.type},kA=function(A){return 20===A.type},RA=function(A){return 0===A.type},NA=function(A,e){return kA(A)&&A.value===e},PA=function(A){return 31!==A.type},XA=function(A){return 31!==A.type&&4!==A.type},JA=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},YA=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},WA=function(A){return 17===A.type||15===A.type},ZA=function(A){return 16===A.type||WA(A)},_A=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},qA={type:17,number:0,flags:4},jA={type:16,number:50,flags:4},zA={type:16,number:100,flags:4},$A=function(A,e,t){var r=A[0],B=A[1];return[Ae(r,e),Ae(void 0!==B?B:r,t)]},Ae=function(A,e){if(16===A.type)return A.number/100*e;if(OA(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},ee={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},te=function(A){return 15===A.type&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)},re=function(A){var e=A.filter(kA).map((function(A){return A.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qA,qA];case"to top":case"bottom":return Be(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qA,zA];case"to right":case"left":return Be(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zA,zA];case"to bottom":case"top":return Be(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zA,qA];case"to left":case"right":return Be(270)}return 0},Be=function(A){return Math.PI*A/180},ne={name:"color",parse:function(A,e){if(18===e.type){var t=ue[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);return ie(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(4===e.value.length){r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);var s=e.value.substring(3,4);return ie(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6);return ie(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(8===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8);return ie(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(20===e.type){var o=Ue[e.value.toUpperCase()];if(void 0!==o)return o}return Ue.TRANSPARENT}},se=function(A){return 0==(255&A)},oe=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,B=255&A>>24;return e<255?"rgba("+B+","+r+","+t+","+e/255+")":"rgb("+B+","+r+","+t+")"},ie=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},ae=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},Qe=function(A,e){var t=e.filter(XA);if(3===t.length){var r=t.map(ae),B=r[0],n=r[1],s=r[2];return ie(B,n,s,1)}if(4===t.length){var o=t.map(ae),i=(B=o[0],n=o[1],s=o[2],o[3]);return ie(B,n,s,i)}return 0};function ce(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var we,ge=function(A,e){var t=e.filter(XA),r=t[0],B=t[1],n=t[2],s=t[3],o=(17===r.type?Be(r.number):ee.parse(A,r))/(2*Math.PI),i=ZA(B)?B.number/100:0,a=ZA(n)?n.number/100:0,Q=void 0!==s&&ZA(s)?Ae(s,1):1;if(0===i)return ie(255*a,255*a,255*a,1);var c=a<=.5?a*(i+1):a+i-a*i,w=2*a-c,g=ce(w,c,o+1/3),u=ce(w,c,o),l=ce(w,c,o-1/3);return ie(255*g,255*u,255*l,Q)},ue={hsl:ge,hsla:ge,rgb:Qe,rgba:Qe},le=function(A,e){return ne.parse(A,GA.create(e).parseComponentValue())},Ue={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ce={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(kA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Fe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},he=function(A,e){var t=ne.parse(A,e[0]),r=e[1];return r&&ZA(r)?{color:t,stop:r}:{color:t,stop:null}},de=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=qA),null===r.stop&&(r.stop=zA);for(var B=[],n=0,s=0;sn?B.push(i):B.push(n),n=i}else B.push(null)}var a=null;for(s=0;sA.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A}),{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},Ee=function(A,e){var t=Be(180),r=[];return JA(e).forEach((function(e,B){if(0===B){var n=e[0];if(20===n.type&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(t=re(e));if(te(n))return void(t=(ee.parse(A,n)+Be(270))%Be(360))}var s=he(A,e);r.push(s)})),{angle:t,stops:r,type:1}},Ie=function(A,e){var t=0,r=3,B=[],n=[];return JA(e).forEach((function(e,s){var o=!0;if(0===s?o=e.reduce((function(A,e){if(kA(e))switch(e.value){case"center":return n.push(jA),!1;case"top":case"left":return n.push(qA),!1;case"right":case"bottom":return n.push(zA),!1}else if(ZA(e)||WA(e))return n.push(e),!1;return A}),o):1===s&&(o=e.reduce((function(A,e){if(kA(e))switch(e.value){case"circle":return t=0,!1;case"ellipse":return t=1,!1;case"contain":case"closest-side":return r=0,!1;case"farthest-side":return r=1,!1;case"closest-corner":return r=2,!1;case"cover":case"farthest-corner":return r=3,!1}else if(WA(e)||ZA(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)),o){var i=he(A,e);B.push(i)}})),{size:r,shape:t,stops:B,position:n,type:2}},ye={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Ke[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}},Ke={"linear-gradient":function(A,e){var t=Be(180),r=[];return JA(e).forEach((function(e,B){if(0===B){var n=e[0];if(20===n.type&&"to"===n.value)return void(t=re(e));if(te(n))return void(t=ee.parse(A,n))}var s=he(A,e);r.push(s)})),{angle:t,stops:r,type:1}},"-moz-linear-gradient":Ee,"-ms-linear-gradient":Ee,"-o-linear-gradient":Ee,"-webkit-linear-gradient":Ee,"radial-gradient":function(A,e){var t=0,r=3,B=[],n=[];return JA(e).forEach((function(e,s){var o=!0;if(0===s){var i=!1;o=e.reduce((function(A,e){if(i)if(kA(e))switch(e.value){case"center":return n.push(jA),A;case"top":case"left":return n.push(qA),A;case"right":case"bottom":return n.push(zA),A}else(ZA(e)||WA(e))&&n.push(e);else if(kA(e))switch(e.value){case"circle":return t=0,!1;case"ellipse":return t=1,!1;case"at":return i=!0,!1;case"closest-side":return r=0,!1;case"cover":case"farthest-side":return r=1,!1;case"contain":case"closest-corner":return r=2,!1;case"farthest-corner":return r=3,!1}else if(WA(e)||ZA(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)}if(o){var a=he(A,e);B.push(a)}})),{size:r,shape:t,stops:B,position:n,type:2}},"-moz-radial-gradient":Ie,"-ms-radial-gradient":Ie,"-o-radial-gradient":Ie,"-webkit-radial-gradient":Ie,"-webkit-gradient":function(A,e){var t=Be(180),r=[],B=1;return JA(e).forEach((function(e,t){var n=e[0];if(0===t){if(kA(n)&&"linear"===n.value)return void(B=1);if(kA(n)&&"radial"===n.value)return void(B=2)}if(18===n.type)if("from"===n.name){var s=ne.parse(A,n.values[0]);r.push({stop:qA,color:s})}else if("to"===n.name){s=ne.parse(A,n.values[0]);r.push({stop:zA,color:s})}else if("color-stop"===n.name){var o=n.values.filter(XA);if(2===o.length){s=ne.parse(A,o[1]);var i=o[0];VA(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:s})}}})),1===B?{angle:(t+Be(180))%Be(360),stops:r,type:B}:{size:3,shape:0,stops:r,position:[],type:B}}},me={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return XA(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Ke[A.name])}(A)})).map((function(e){return ye.parse(A,e)}))}},Le={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(kA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ve={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return JA(e).map((function(A){return A.filter(ZA)})).map(_A)}},be={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return JA(e).map((function(A){return A.filter(kA).map((function(A){return A.value})).join(" ")})).map(De)}},De=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(we||(we={}));var xe,Me={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return JA(e).map((function(A){return A.filter(Se)}))}},Se=function(A){return kA(A)||ZA(A)},Te=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ge=Te("top"),Oe=Te("right"),Ve=Te("bottom"),ke=Te("left"),Re=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return _A(e.filter(ZA))}}},Ne=Re("top-left"),Pe=Re("top-right"),Xe=Re("bottom-right"),Je=Re("bottom-left"),Ye=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},We=Ye("top"),Ze=Ye("right"),_e=Ye("bottom"),qe=Ye("left"),je=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return OA(e)?e.number:0}}},ze=je("top"),$e=je("right"),At=je("bottom"),et=je("left"),tt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Bt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).reduce((function(A,e){return A|nt(e.value)}),0)}},nt=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},st={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},ot={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(xe||(xe={}));var it,at={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return xe.STRICT;case"normal":default:return xe.NORMAL}}},Qt={name:"line-height",initialValue:"normal",prefix:!1,type:4},ct=function(A,e){return kA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:ZA(A)?Ae(A,e):e},wt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:ye.parse(A,e)}},gt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},ut={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},lt=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Ut=lt("top"),Ct=lt("right"),Ft=lt("bottom"),ht=lt("left"),dt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},ft={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ht=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},pt=Ht("top"),Et=Ht("right"),It=Ht("bottom"),yt=Ht("left"),Kt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},mt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Lt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&NA(e[0],"none")?[]:JA(e).map((function(e){for(var t={color:Ue.TRANSPARENT,offsetX:qA,offsetY:qA,blur:qA},r=0,B=0;B1?1:0],this.overflowWrap=ir(A,ft,e.overflowWrap),this.paddingTop=ir(A,pt,e.paddingTop),this.paddingRight=ir(A,Et,e.paddingRight),this.paddingBottom=ir(A,It,e.paddingBottom),this.paddingLeft=ir(A,yt,e.paddingLeft),this.paintOrder=ir(A,tr,e.paintOrder),this.position=ir(A,mt,e.position),this.textAlign=ir(A,Kt,e.textAlign),this.textDecorationColor=ir(A,Rt,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=ir(A,Nt,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=ir(A,Lt,e.textShadow),this.textTransform=ir(A,vt,e.textTransform),this.transform=ir(A,bt,e.transform),this.transformOrigin=ir(A,St,e.transformOrigin),this.visibility=ir(A,Tt,e.visibility),this.webkitTextStrokeColor=ir(A,rr,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=ir(A,Br,e.webkitTextStrokeWidth),this.wordBreak=ir(A,Gt,e.wordBreak),this.zIndex=ir(A,Ot,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return se(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return Zt(this.display,4)||Zt(this.display,33554432)||Zt(this.display,268435456)||Zt(this.display,536870912)||Zt(this.display,67108864)||Zt(this.display,134217728)},A}(),sr=function(A,e){this.content=ir(A,_t,e.content),this.quotes=ir(A,$t,e.quotes)},or=function(A,e){this.counterIncrement=ir(A,qt,e.counterIncrement),this.counterReset=ir(A,jt,e.counterReset)},ir=function(A,e,t){var r=new TA,B=null!==t&&void 0!==t?t.toString():e.initialValue;r.write(B);var n=new GA(r.read());switch(e.type){case 2:var s=n.parseComponentValue();return e.parse(A,kA(s)?s.value:e.initialValue);case 0:return e.parse(A,n.parseComponentValue());case 1:return e.parse(A,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(e.format){case"angle":return ee.parse(A,n.parseComponentValue());case"color":return ne.parse(A,n.parseComponentValue());case"image":return ye.parse(A,n.parseComponentValue());case"length":var o=n.parseComponentValue();return WA(o)?o:qA;case"length-percentage":var i=n.parseComponentValue();return ZA(i)?i:qA;case"time":return Vt.parse(A,n.parseComponentValue())}}},ar=function(A,e){var t=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},Qr=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,ar(e,3),this.styles=new nr(A,window.getComputedStyle(e,null)),uB(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),ar(e,4)&&(this.flags|=16)},cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),gr=0;gr=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Fr=0;Fr>4,Q[i++]=(15&r)<<4|B>>2,Q[i++]=(3&B)<<6|63&n;return a}(A),s=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r=55296&&B<=56319&&t=t)return{done:!0,value:null};for(var A="×";r>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n}.apply(null,e.slice(B,r));return B=r,{value:s,done:!1}}return{done:!0,value:null}}}},mr=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Lr=function(A,e,t,r,B){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(B),s},vr=function(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},br={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);var r=e.getBoundingClientRect(),B=Math.round(r.height);if(A.body.removeChild(t),123===B)return!0}}return!1}(document);return Object.defineProperty(br,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=br.SUPPORT_RANGE_BOUNDS&&function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var r=e.firstChild,B=0,n={},s=o(r.data).map((function(A){return i(A)})).every((function(A,e){t.setStart(r,B),t.setEnd(r,B+A.length);var s=t.getBoundingClientRect();B+=A.length;var o=s.x>n.x||s.y>n.y;return n=s,0===e||o}));return A.body.removeChild(e),s}(document);return Object.defineProperty(br,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(br,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var r=new Image,B=e.toDataURL();r.src=B;var n=Lr(100,100,0,0,r);return t.fillStyle="red",t.fillRect(0,0,100,100),vr(n).then((function(e){t.drawImage(e,0,0);var r=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var n=A.createElement("div");return n.style.backgroundImage="url("+B+")",n.style.height="100px",mr(r)?vr(Lr(100,100,0,0,n)):Promise.reject(!1)})).then((function(A){return t.drawImage(A,0,0),mr(t.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(br,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(br,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(br,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(br,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(br,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Dr=function(A,e){this.text=A,this.bounds=e},xr=function(A,e,t,r){var B=Gr(e,t),s=[],o=0;return B.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(br.SUPPORT_RANGE_BOUNDS){var B=Sr(r,o,e.length).getClientRects();if(B.length>1){var i=Tr(e),a=0;i.forEach((function(e){s.push(new Dr(e,n.fromDOMRectList(A,Sr(r,a+o,e.length).getClientRects()))),a+=e.length}))}else s.push(new Dr(e,n.fromDOMRectList(A,B)))}else{var Q=r.splitText(e.length);s.push(new Dr(e,Mr(A,r))),r=Q}else br.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));o+=e.length})),s},Mr=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var B=e.parentNode;if(B){B.replaceChild(r,e);var o=s(A,r);return r.firstChild&&B.replaceChild(r.firstChild,r),o}}return n.EMPTY},Sr=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var B=r.createRange();return B.setStart(A,e),B.setEnd(A,e+t),B},Tr=function(A){if(br.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return function(A){for(var e,t=Kr(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},Gr=function(A,e){return 0!==e.letterSpacing?Tr(A):function(A,e){if(br.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return Vr(A,e)}(A,e)},Or=[32,160,4961,65792,65793,4153,4241],Vr=function(A,e){for(var t,r=function(A,e){var t=o(A),r=rA(t,e),B=r[0],n=r[1],s=r[2],i=t.length,a=0,Q=0;return{next:function(){if(Q>=i)return{done:!0,value:null};for(var A="×";Q0?e+t.toUpperCase():A},Xr=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(Qr),Jr=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(Qr),Yr=function(A){function t(e,t){var r=A.call(this,e,t)||this,B=new XMLSerializer,n=s(e,t);return t.setAttribute("width",n.width+"px"),t.setAttribute("height",n.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(Qr),Wr=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Qr),Zr=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(Qr),_r=[{type:15,flags:0,unit:"px",number:3}],qr=[{type:16,flags:0,number:50}],jr=function(A){return A.width>A.height?new n(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)t.textNodes.push(new kr(A,B,t.styles));else if(gB(B))if(mB(B)&&B.assignedNodes)B.assignedNodes().forEach((function(e){return oB(A,e,t,r)}));else{var s=iB(A,B);s.styles.isVisible()&&(QB(B,s,r)?s.flags|=4:cB(s.styles)&&(s.flags|=2),-1!==sB.indexOf(B.tagName)&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?oB(A,B.shadowRoot,s,r):yB(B)||hB(B)||KB(B)||oB(A,B,s,r))}},iB=function(A,e){return pB(e)?new Xr(A,e):fB(e)?new Jr(A,e):hB(e)?new Yr(A,e):UB(e)?new Wr(A,e):CB(e)?new Zr(A,e):FB(e)?new tB(A,e):KB(e)?new rB(A,e):yB(e)?new BB(A,e):EB(e)?new nB(A,e):new Qr(A,e)},aB=function(A,e){var t=iB(A,e);return t.flags|=4,oB(A,e,t,t),t},QB=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||dB(A)&&t.styles.isTransparent()},cB=function(A){return A.isPositioned()||A.isFloating()},wB=function(A){return A.nodeType===Node.TEXT_NODE},gB=function(A){return A.nodeType===Node.ELEMENT_NODE},uB=function(A){return gB(A)&&void 0!==A.style&&!lB(A)},lB=function(A){return"object"==typeof A.className},UB=function(A){return"LI"===A.tagName},CB=function(A){return"OL"===A.tagName},FB=function(A){return"INPUT"===A.tagName},hB=function(A){return"svg"===A.tagName},dB=function(A){return"BODY"===A.tagName},fB=function(A){return"CANVAS"===A.tagName},HB=function(A){return"VIDEO"===A.tagName},pB=function(A){return"IMG"===A.tagName},EB=function(A){return"IFRAME"===A.tagName},IB=function(A){return"STYLE"===A.tagName},yB=function(A){return"TEXTAREA"===A.tagName},KB=function(A){return"SELECT"===A.tagName},mB=function(A){return"SLOT"===A.tagName},LB=function(A){return A.tagName.indexOf("-")>0},vB=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,B=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(B=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var n=[];return B&&r.forEach((function(A){var t=e.counters[A.counter];n.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),n},A}(),bB={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},DB={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},xB={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},MB={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},SB=function(A,e,t,r,B,n){return At?kB(A,B,n.length>0):r.integers.reduce((function(e,t,B){for(;A>=t;)A-=t,e+=r.values[B];return e}),"")+n},TB=function(A,e,t,r){var B="";do{t||A--,B=r(A)+B,A/=e}while(A*e>=e);return B},GB=function(A,e,t,r,B){var n=t-e+1;return(A<0?"-":"")+(TB(Math.abs(A),n,r,(function(A){return i(Math.floor(A%n)+e)}))+B)},OB=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return TB(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},VB=function(A,e,t,r,B,n){if(A<-9999||A>9999)return kB(A,4,B.length>0);var s=Math.abs(A),o=B;if(0===s)return e[0]+o;for(var i=0;s>0&&i<=4;i++){var a=s%10;0===a&&Zt(n,1)&&""!==o?o=e[a]+o:a>1||1===a&&0===i||1===a&&1===i&&Zt(n,2)||1===a&&1===i&&Zt(n,4)&&A>100||1===a&&i>1&&Zt(n,8)?o=e[a]+(i>0?t[i-1]:"")+o:1===a&&i>0&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},kB=function(A,e,t){var r=t?". ":"",B=t?"、":"",n=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=GB(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return OB(A,"〇一二三四五六七八九",B);case 6:return SB(A,1,3999,bB,3,r).toLowerCase();case 7:return SB(A,1,3999,bB,3,r);case 8:return GB(A,945,969,!1,r);case 9:return GB(A,97,122,!1,r);case 10:return GB(A,65,90,!1,r);case 11:return GB(A,1632,1641,!0,r);case 12:case 49:return SB(A,1,9999,DB,3,r);case 35:return SB(A,1,9999,DB,3,r).toLowerCase();case 13:return GB(A,2534,2543,!0,r);case 14:case 30:return GB(A,6112,6121,!0,r);case 15:return OB(A,"子丑寅卯辰巳午未申酉戌亥",B);case 16:return OB(A,"甲乙丙丁戊己庚辛壬癸",B);case 17:case 48:return VB(A,"零一二三四五六七八九","十百千萬","負",B,14);case 47:return VB(A,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",B,15);case 42:return VB(A,"零一二三四五六七八九","十百千萬","负",B,14);case 41:return VB(A,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",B,15);case 26:return VB(A,"〇一二三四五六七八九","十百千万","マイナス",B,0);case 25:return VB(A,"零壱弐参四伍六七八九","拾百千万","マイナス",B,7);case 31:return VB(A,"영일이삼사오육칠팔구","십백천만","마이너스",n,7);case 33:return VB(A,"零一二三四五六七八九","十百千萬","마이너스",n,0);case 32:return VB(A,"零壹貳參四五六七八九","拾百千","마이너스",n,7);case 18:return GB(A,2406,2415,!0,r);case 20:return SB(A,1,19999,MB,3,r);case 21:return GB(A,2790,2799,!0,r);case 22:return GB(A,2662,2671,!0,r);case 22:return SB(A,1,10999,xB,3,r);case 23:return OB(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return OB(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return GB(A,3302,3311,!0,r);case 28:return OB(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",B);case 29:return OB(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",B);case 34:return GB(A,3792,3801,!0,r);case 37:return GB(A,6160,6169,!0,r);case 38:return GB(A,4160,4169,!0,r);case 39:return GB(A,2918,2927,!0,r);case 40:return GB(A,1776,1785,!0,r);case 43:return GB(A,3046,3055,!0,r);case 44:return GB(A,3174,3183,!0,r);case 45:return GB(A,3664,3673,!0,r);case 46:return GB(A,3872,3881,!0,r);case 3:default:return GB(A,48,57,!0,r)}},RB=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new vB,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,n=PB(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,i=n.contentWindow,a=i.document,Q=YB(n).then((function(){return r(t,void 0,void 0,(function(){var A,t;return B(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(jB),i&&(i.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||i.scrollY===e.top&&i.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-e.left,i.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,JB(a)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(a,t)})).then((function(){return n}))]:[2,n]}}))}))}));return a.open(),a.write(_B(document.doctype)+""),qB(this.referenceElement.ownerDocument,s,o),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),Q},A.prototype.createElementClone=function(A){if(ar(A,2),fB(A))return this.createCanvasClone(A);if(HB(A))return this.createVideoClone(A);if(IB(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return pB(e)&&(pB(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),LB(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return ZB(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var B=A.getContext("2d"),n=r.getContext("2d");if(n)if(!this.options.allowTaint&&B)n.putImageData(B.getImageData(0,0,A.width,A.height),0,0);else{var s=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null===o||void 0===o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}n.drawImage(A,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){gB(e)&&("SCRIPT"===e.tagName||e.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&gB(e)&&IB(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,B=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;B;B=B.nextSibling)if(gB(B)&&mB(B)&&"function"==typeof B.assignedNodes){var n=B.assignedNodes();n.length&&n.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,B,t)},A.prototype.cloneNode=function(A,e){if(wB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&gB(A)&&(uB(A)||lB(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var B=t.getComputedStyle(A),n=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&uB(r)&&(this.clonedReferenceElement=r),dB(r)&&An(r);var o=this.counters.parse(new or(this.context,B)),i=this.resolvePseudoContent(A,r,n,hr.BEFORE);LB(A)&&(e=!0),HB(A)||this.cloneChildNodes(A,r,e),i&&r.insertBefore(i,r.firstChild);var a=this.resolvePseudoContent(A,r,s,hr.AFTER);return a&&r.appendChild(a),this.counters.pop(o),(B&&(this.options.copyStyles||lB(A))&&!EB(A)||e)&&ZB(B,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(yB(A)||KB(A))&&(yB(r)||KB(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var B=this;if(t){var n=t.content,s=e.ownerDocument;if(s&&n&&"none"!==n&&"-moz-alt-content"!==n&&"none"!==t.display){this.counters.parse(new or(this.context,t));var o=new sr(this.context,t),i=s.createElement("html2canvaspseudoelement");ZB(t,i),o.content.forEach((function(e){if(0===e.type)i.appendChild(s.createTextNode(e.value));else if(22===e.type){var t=s.createElement("img");t.src=e.value,t.style.opacity="1",i.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(kA);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var n=e.values.filter(XA),a=n[0],Q=n[1];if(a&&kA(a)){var c=B.counters.getCounterValue(a.value),w=Q&&kA(Q)?ut.parse(B.context,Q.value):3;i.appendChild(s.createTextNode(kB(c,w,!1)))}}else if("counters"===e.name){var g=e.values.filter(XA),u=(a=g[0],g[1]);Q=g[2];if(a&&kA(a)){var l=B.counters.getCounterValues(a.value),U=Q&&kA(Q)?ut.parse(B.context,Q.value):3,C=u&&0===u.type?u.value:"",F=l.map((function(A){return kB(A,U,!1)})).join(C);i.appendChild(s.createTextNode(F))}}}else if(20===e.type)switch(e.value){case"open-quote":i.appendChild(s.createTextNode(Ar(o.quotes,B.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(Ar(o.quotes,--B.quoteDepth,!1)));break;default:i.appendChild(s.createTextNode(e.value))}})),i.className=zB+" "+$B;var a=r===hr.BEFORE?" "+zB:" "+$B;return lB(e)?e.className.baseValue+=a:e.className+=a,i}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(hr||(hr={}));var NB,PB=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute("data-html2canvas-ignore","true"),A.body.appendChild(t),t},XB=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},JB=function(A){return Promise.all([].slice.call(A.images,0).map(XB))},YB=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var B=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){B.body.childNodes.length>0&&"complete"===B.readyState&&(clearInterval(t),e(A))}),50)}}))},WB=["all","d","content"],ZB=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===WB.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},_B=function(A){var e="";return A&&(e+=""),e},qB=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},jB=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},zB="___html2canvas___pseudoelement_before",$B="___html2canvas___pseudoelement_after",An=function(A){en(A,"."+zB+':before{\n content: "" !important;\n display: none !important;\n}\n .'+$B+':after{\n content: "" !important;\n display: none !important;\n}')},en=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},tn=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),rn=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:cn(A)||on(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,(function(){var e,t,r,n,s=this;return B(this,(function(B){switch(B.label){case 0:return e=tn.isSameOrigin(A),t=!an(A)&&!0===this._options.useCORS&&br.SUPPORT_CORS_IMAGES&&!e,r=!an(A)&&!e&&!cn(A)&&"string"==typeof this._options.proxy&&br.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||an(A)||cn(A)||r||t?(n=A,r?[4,this.proxy(n)]:[3,2]):[2];case 1:n=B.sent(),B.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(Qn(n)||t)&&(r.crossOrigin="anonymous"),r.src=n,!0===r.complete&&setTimeout((function(){return A(r)}),500),s._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,B.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(B,n){var s=br.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)B(o.response);else{var A=new FileReader;A.addEventListener("load",(function(){return B(A.result)}),!1),A.addEventListener("error",(function(A){return n(A)}),!1),A.readAsDataURL(o.response)}else n("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=n;var i=t.indexOf("?")>-1?"&":"?";if(o.open("GET",""+t+i+"url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var a=e._options.imageTimeout;o.timeout=a,o.ontimeout=function(){return n("Timed out ("+a+"ms) proxying "+r)}}o.send()}))},A}(),Bn=/^data:image\/svg\+xml/i,nn=/^data:image\/.*;base64,/i,sn=/^data:image\/.*/i,on=function(A){return br.SUPPORT_SVG_DRAWING||!wn(A)},an=function(A){return sn.test(A)},Qn=function(A){return nn.test(A)},cn=function(A){return"blob"===A.substr(0,4)},wn=function(A){return"svg"===A.substr(-3).toLowerCase()||Bn.test(A)},gn=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),un=function(A,e,t){return new gn(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},ln=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=un(this.start,this.startControl,e),B=un(this.startControl,this.endControl,e),n=un(this.endControl,this.end,e),s=un(r,B,e),o=un(B,n,e),i=un(s,o,e);return t?new A(this.start,r,s,i):new A(i,o,n,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Un=function(A){return 1===A.type},Cn=function(A){var e=A.styles,t=A.bounds,r=$A(e.borderTopLeftRadius,t.width,t.height),B=r[0],n=r[1],s=$A(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],a=$A(e.borderBottomRightRadius,t.width,t.height),Q=a[0],c=a[1],w=$A(e.borderBottomLeftRadius,t.width,t.height),g=w[0],u=w[1],l=[];l.push((B+o)/t.width),l.push((g+Q)/t.width),l.push((n+u)/t.height),l.push((i+c)/t.height);var U=Math.max.apply(Math,l);U>1&&(B/=U,n/=U,o/=U,i/=U,Q/=U,c/=U,g/=U,u/=U);var C=t.width-o,F=t.height-c,h=t.width-Q,d=t.height-u,f=e.borderTopWidth,H=e.borderRightWidth,p=e.borderBottomWidth,E=e.borderLeftWidth,I=Ae(e.paddingTop,A.bounds.width),y=Ae(e.paddingRight,A.bounds.width),K=Ae(e.paddingBottom,A.bounds.width),m=Ae(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||n>0?Fn(t.left+E/3,t.top+f/3,B-E/3,n-f/3,NB.TOP_LEFT):new gn(t.left+E/3,t.top+f/3),this.topRightBorderDoubleOuterBox=B>0||n>0?Fn(t.left+C,t.top+f/3,o-H/3,i-f/3,NB.TOP_RIGHT):new gn(t.left+t.width-H/3,t.top+f/3),this.bottomRightBorderDoubleOuterBox=Q>0||c>0?Fn(t.left+h,t.top+F,Q-H/3,c-p/3,NB.BOTTOM_RIGHT):new gn(t.left+t.width-H/3,t.top+t.height-p/3),this.bottomLeftBorderDoubleOuterBox=g>0||u>0?Fn(t.left+E/3,t.top+d,g-E/3,u-p/3,NB.BOTTOM_LEFT):new gn(t.left+E/3,t.top+t.height-p/3),this.topLeftBorderDoubleInnerBox=B>0||n>0?Fn(t.left+2*E/3,t.top+2*f/3,B-2*E/3,n-2*f/3,NB.TOP_LEFT):new gn(t.left+2*E/3,t.top+2*f/3),this.topRightBorderDoubleInnerBox=B>0||n>0?Fn(t.left+C,t.top+2*f/3,o-2*H/3,i-2*f/3,NB.TOP_RIGHT):new gn(t.left+t.width-2*H/3,t.top+2*f/3),this.bottomRightBorderDoubleInnerBox=Q>0||c>0?Fn(t.left+h,t.top+F,Q-2*H/3,c-2*p/3,NB.BOTTOM_RIGHT):new gn(t.left+t.width-2*H/3,t.top+t.height-2*p/3),this.bottomLeftBorderDoubleInnerBox=g>0||u>0?Fn(t.left+2*E/3,t.top+d,g-2*E/3,u-2*p/3,NB.BOTTOM_LEFT):new gn(t.left+2*E/3,t.top+t.height-2*p/3),this.topLeftBorderStroke=B>0||n>0?Fn(t.left+E/2,t.top+f/2,B-E/2,n-f/2,NB.TOP_LEFT):new gn(t.left+E/2,t.top+f/2),this.topRightBorderStroke=B>0||n>0?Fn(t.left+C,t.top+f/2,o-H/2,i-f/2,NB.TOP_RIGHT):new gn(t.left+t.width-H/2,t.top+f/2),this.bottomRightBorderStroke=Q>0||c>0?Fn(t.left+h,t.top+F,Q-H/2,c-p/2,NB.BOTTOM_RIGHT):new gn(t.left+t.width-H/2,t.top+t.height-p/2),this.bottomLeftBorderStroke=g>0||u>0?Fn(t.left+E/2,t.top+d,g-E/2,u-p/2,NB.BOTTOM_LEFT):new gn(t.left+E/2,t.top+t.height-p/2),this.topLeftBorderBox=B>0||n>0?Fn(t.left,t.top,B,n,NB.TOP_LEFT):new gn(t.left,t.top),this.topRightBorderBox=o>0||i>0?Fn(t.left+C,t.top,o,i,NB.TOP_RIGHT):new gn(t.left+t.width,t.top),this.bottomRightBorderBox=Q>0||c>0?Fn(t.left+h,t.top+F,Q,c,NB.BOTTOM_RIGHT):new gn(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||u>0?Fn(t.left,t.top+d,g,u,NB.BOTTOM_LEFT):new gn(t.left,t.top+t.height),this.topLeftPaddingBox=B>0||n>0?Fn(t.left+E,t.top+f,Math.max(0,B-E),Math.max(0,n-f),NB.TOP_LEFT):new gn(t.left+E,t.top+f),this.topRightPaddingBox=o>0||i>0?Fn(t.left+Math.min(C,t.width-H),t.top+f,C>t.width+H?0:Math.max(0,o-H),Math.max(0,i-f),NB.TOP_RIGHT):new gn(t.left+t.width-H,t.top+f),this.bottomRightPaddingBox=Q>0||c>0?Fn(t.left+Math.min(h,t.width-E),t.top+Math.min(F,t.height-p),Math.max(0,Q-H),Math.max(0,c-p),NB.BOTTOM_RIGHT):new gn(t.left+t.width-H,t.top+t.height-p),this.bottomLeftPaddingBox=g>0||u>0?Fn(t.left+E,t.top+Math.min(d,t.height-p),Math.max(0,g-E),Math.max(0,u-p),NB.BOTTOM_LEFT):new gn(t.left+E,t.top+t.height-p),this.topLeftContentBox=B>0||n>0?Fn(t.left+E+m,t.top+f+I,Math.max(0,B-(E+m)),Math.max(0,n-(f+I)),NB.TOP_LEFT):new gn(t.left+E+m,t.top+f+I),this.topRightContentBox=o>0||i>0?Fn(t.left+Math.min(C,t.width+E+m),t.top+f+I,C>t.width+E+m?0:o-E+m,i-(f+I),NB.TOP_RIGHT):new gn(t.left+t.width-(H+y),t.top+f+I),this.bottomRightContentBox=Q>0||c>0?Fn(t.left+Math.min(h,t.width-(E+m)),t.top+Math.min(F,t.height+f+I),Math.max(0,Q-(H+y)),c-(p+K),NB.BOTTOM_RIGHT):new gn(t.left+t.width-(H+y),t.top+t.height-(p+K)),this.bottomLeftContentBox=g>0||u>0?Fn(t.left+E+m,t.top+d,Math.max(0,g-(E+m)),u-(p+K),NB.BOTTOM_LEFT):new gn(t.left+E+m,t.top+t.height-(p+K))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(NB||(NB={}));var Fn=function(A,e,t,r,B){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=r*n,i=A+t,a=e+r;switch(B){case NB.TOP_LEFT:return new ln(new gn(A,a),new gn(A,a-o),new gn(i-s,e),new gn(i,e));case NB.TOP_RIGHT:return new ln(new gn(A,e),new gn(A+s,e),new gn(i,a-o),new gn(i,a));case NB.BOTTOM_RIGHT:return new ln(new gn(i,e),new gn(i,e+o),new gn(A+s,a),new gn(A,a));case NB.BOTTOM_LEFT:default:return new ln(new gn(i,a),new gn(i-s,a),new gn(A,e+o),new gn(A,e))}},hn=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},dn=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},fn=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},Hn=function(A,e){this.path=A,this.target=e,this.type=1},pn=function(A){this.opacity=A,this.type=2,this.target=6},En=function(A){return 1===A.type},In=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},yn=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Kn=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Cn(this.container),this.container.styles.opacity<1&&this.effects.push(new pn(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform;this.effects.push(new fn(t,r,B))}if(0!==this.container.styles.overflowX){var n=hn(this.curves),s=dn(this.curves);In(n,s)?this.effects.push(new Hn(n,6)):(this.effects.push(new Hn(n,2)),this.effects.push(new Hn(s,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var B=t.effects.filter((function(A){return!En(A)}));if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,B),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var n=hn(t.curves),s=dn(t.curves);In(n,s)||r.unshift(new Hn(s,6))}}else r.unshift.apply(r,B);t=t.parent}return r.filter((function(e){return Zt(e.target,A)}))},A}(),mn=function(A,e,t,r){A.container.elements.forEach((function(B){var n=Zt(B.flags,4),s=Zt(B.flags,2),o=new Kn(B,A);Zt(B.styles.display,2048)&&r.push(o);var i=Zt(B.flags,8)?[]:r;if(n||s){var a=n||B.styles.isPositioned()?t:e,Q=new yn(o);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var c=B.styles.zIndex.order;if(c<0){var w=0;a.negativeZIndex.some((function(A,e){return c>A.element.container.styles.zIndex.order?(w=e,!1):w>0})),a.negativeZIndex.splice(w,0,Q)}else if(c>0){var g=0;a.positiveZIndex.some((function(A,e){return c>=A.element.container.styles.zIndex.order?(g=e+1,!1):g>0})),a.positiveZIndex.splice(g,0,Q)}else a.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q)}else B.styles.isFloating()?a.nonPositionedFloats.push(Q):a.nonPositionedInlineLevel.push(Q);mn(o,Q,n?Q:t,i)}else B.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),mn(o,e,t,i);Zt(B.flags,8)&&Ln(B,i)}))},Ln=function(A,e){for(var t=A instanceof Zr?A.start:1,r=A instanceof Zr&&A.reversed,B=0;B0&&A.intrinsicHeight>0){var r=Mn(A),B=dn(e);this.path(B),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,(function(){var e,r,s,o,i,a,Q,c,w,g,u,l,U,C,F,h,d,f;return B(this,(function(B){switch(B.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,s=e.styles,o=0,i=e.textNodes,B.label=1;case 1:return o0&&E>0&&(F=r.ctx.createPattern(l,"repeat"),r.renderRepeat(d,F,y,K))):function(A){return 2===A.type}(t)&&(h=Sn(A,e,[null,null,null]),d=h[0],f=h[1],H=h[2],p=h[3],E=h[4],I=0===t.position.length?[jA]:t.position,y=Ae(I[0],p),K=Ae(I[I.length-1],E),m=function(A,e,t,r,B){var n=0,s=0;switch(A.size){case 0:0===A.shape?n=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(n=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:if(0===A.shape)n=s=Math.min(He(e,t),He(e,t-B),He(e-r,t),He(e-r,t-B));else if(1===A.shape){var o=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(e),Math.abs(e-r)),i=pe(r,B,e,t,!0),a=i[0],Q=i[1];n=He(a-e,(Q-t)/o),s=o*n}break;case 1:0===A.shape?n=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(n=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:if(0===A.shape)n=s=Math.max(He(e,t),He(e,t-B),He(e-r,t),He(e-r,t-B));else if(1===A.shape){o=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(e),Math.abs(e-r));var c=pe(r,B,e,t,!1);a=c[0],Q=c[1];n=He(a-e,(Q-t)/o),s=o*n}}return Array.isArray(A.size)&&(n=Ae(A.size[0],r),s=2===A.size.length?Ae(A.size[1],B):n),[n,s]}(t,y,K,p,E),L=m[0],v=m[1],L>0&&v>0&&(b=r.ctx.createRadialGradient(f+y,H+K,0,f+y,H+K,L),de(t.stops,2*L).forEach((function(A){return b.addColorStop(A.stop,oe(A.color))})),r.path(d),r.ctx.fillStyle=b,L!==v?(D=A.bounds.left+.5*A.bounds.width,x=A.bounds.top+.5*A.bounds.height,S=1/(M=v/L),r.ctx.save(),r.ctx.translate(D,x),r.ctx.transform(1,0,0,M,0,0),r.ctx.translate(-D,-x),r.ctx.fillRect(f,S*(H-x)+x,p,E*S),r.ctx.restore()):r.ctx.fill())),B.label=6;case 6:return e--,[2]}}))},r=this,n=0,s=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return n0?2!==a.style?[3,5]:[4,this.renderDashedDottedBorder(a.color,a.width,s,A.curves,2)]:[3,11]:[3,13];case 4:return B.sent(),[3,11];case 5:return 3!==a.style?[3,7]:[4,this.renderDashedDottedBorder(a.color,a.width,s,A.curves,3)];case 6:return B.sent(),[3,11];case 7:return 4!==a.style?[3,9]:[4,this.renderDoubleBorder(a.color,a.width,s,A.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(a.color,s,A.curves)];case 10:B.sent(),B.label=11;case 11:s++,B.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(A,e,t,n,s){return r(this,void 0,void 0,(function(){var r,o,i,a,Q,c,w,g,u,l,U,C,F,h,d,f;return B(this,(function(B){return this.ctx.save(),r=function(A,e){switch(e){case 0:return bn(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return bn(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return bn(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return bn(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(n,t),o=vn(n,t),2===s&&(this.path(o),this.ctx.clip()),Un(o[0])?(i=o[0].start.x,a=o[0].start.y):(i=o[0].x,a=o[0].y),Un(o[1])?(Q=o[1].end.x,c=o[1].end.y):(Q=o[1].x,c=o[1].y),w=0===t||2===t?Math.abs(i-Q):Math.abs(a-c),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(o.slice(0,2)),g=e<3?3*e:2*e,u=e<3?2*e:e,3===s&&(g=e,u=e),l=!0,w<=2*g?l=!1:w<=2*g+u?(g*=U=w/(2*g+u),u*=U):(C=Math.floor((w+u)/(g+u)),F=(w-C*g)/(C-1),u=(h=(w-(C+1)*g)/C)<=0||Math.abs(u-F)