!function(){function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},A(e)}System.register([],(function(e){"use strict";return{execute:function(){
/*!
             * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
             * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
             * Released under MIT License
             */
/*! *****************************************************************************
            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 t=function(A,e){return t=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])},t(A,e)};function r(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=A}t(A,e),A.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var n=function(){return n=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},n.apply(this,arguments)};function B(A,e,t,r){return new(t||(t=Promise))((function(n,B){function s(A){try{i(r.next(A))}catch(e){B(e)}}function o(A){try{i(r.throw(A))}catch(e){B(e)}}function i(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(s,o)}i((r=r.apply(A,e||[])).next())}))}function s(A,e){var t,r,n,B,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return B={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function o(B){return function(o){return function(B){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,r&&(n=2&B[0]?r.return:B[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,B[1])).done)return n;switch(r=0,n&&(B=[2&B[0],n.value]),B[0]){case 0:case 1:n=B;break;case 4:return s.label++,{value:B[1],done:!1};case 5:s.label++,r=B[1],B=[0];continue;case 7:B=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==B[0]&&2!==B[0])){s=0;continue}if(3===B[0]&&(!n||B[1]>n[0]&&B[1]<n[3])){s.label=B[1];break}if(6===B[0]&&s.label<n[1]){s.label=n[1],n=B;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(B);break}n[2]&&s.ops.pop(),s.trys.pop();continue}B=e.call(A,s)}catch(o){B=[6,o],r=0}finally{t=n=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,o])}}}function o(A,e,t){if(t||2===arguments.length)for(var r,n=0,B=e.length;n<B;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||e)}for(var i=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find((function(A){return 0!==A.width}));return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),a=function(A,e){return i.fromClientRect(A,e.getBoundingClientRect())},c=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var B=A.charCodeAt(t++);56320==(64512&B)?e.push(((1023&n)<<10)+(1023&B)+65536):(e.push(n),t--)}else e.push(n)}return e},g=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,B="";++n<t;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===t||r.length>16384)&&(B+=String.fromCharCode.apply(String,r),r.length=0)}return B},Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w="undefined"==typeof Uint8Array?[]:new Uint8Array(256),u=0;u<Q.length;u++)w[Q.charCodeAt(u)]=u;for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C="undefined"==typeof Uint8Array?[]:new Uint8Array(256),U=0;U<l.length;U++)C[l.charCodeAt(U)]=U;for(var F=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},h=function(){function A(A,e,t,r,n,B){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=B}return A.prototype.get=function(A){var e;if(A>=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<this.highStart)return e=2080+(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}(),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<d.length;p++)f[d.charCodeAt(p)]=p;var H=10,E=13,I=15,y=17,m=18,K=19,v=20,L=21,b=22,D=24,M=25,x=26,T=27,S=28,O=30,G=32,V=33,R=34,N=35,P=37,k=38,J=39,X=40,Y=42,W=[9001,65288],Z="×",_="÷",q=function(A,e){var t,r,n,B=function(A){var e,t,r,n,B,s=.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(a)?a:new Uint8Array(a);for(e=0;e<o;e+=4)t=C[A.charCodeAt(e)],r=C[A.charCodeAt(e+1)],n=C[A.charCodeAt(e+2)],B=C[A.charCodeAt(e+3)],c[i++]=t<<2|r>>4,c[i++]=(15&r)<<4|n>>2,c[i++]=(3&n)<<6|63&B;return a}(A),s=Array.isArray(B)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t}(B):new Uint32Array(B),o=Array.isArray(B)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t}(B):new Uint16Array(B),i=F(o,12,s[4]/2),a=2===s[5]?F(o,(24+s[4])/2):(t=s,r=Math.ceil((24+s[4])/4),t.slice?t.slice(r,n):new Uint32Array(Array.prototype.slice.call(t,r,n)));return new h(s[0],s[1],s[2],s[3],i,a)}("[encoded data, 52888 characters]"),z=[O,36],j=[1,2,3,5],$=[H,8],AA=[T,x],eA=j.concat($),tA=[k,J,X,R,N],rA=[I,E],nA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var B=t;B<=r.length;){if((i=r[++B])===e)return!0;if(i!==H)break}if(n===H)for(B=t;B>0;){var s=r[--B];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o=t;o<=r.length;){var i;if((i=r[++o])===e)return!0;if(i!==H)break}if(s!==H)break}return!1},BA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==H)return r;t--}return 0},sA=function(A,e,t,r,n){if(0===t[r])return Z;var B=r-1;if(Array.isArray(n)&&!0===n[B])return Z;var s=B-1,o=B+1,i=e[B],a=s>=0?e[s]:0,c=e[o];if(2===i&&3===c)return Z;if(-1!==j.indexOf(i))return"!";if(-1!==j.indexOf(c))return Z;if(-1!==$.indexOf(c))return Z;if(8===BA(B,e))return _;if(11===q.get(A[B]))return Z;if((i===G||i===V)&&11===q.get(A[o]))return Z;if(7===i||7===c)return Z;if(9===i)return Z;if(-1===[H,E,I].indexOf(i)&&9===c)return Z;if(-1!==[y,m,K,D,S].indexOf(c))return Z;if(BA(B,e)===b)return Z;if(nA(23,b,B,e))return Z;if(nA([y,m],L,B,e))return Z;if(nA(12,12,B,e))return Z;if(i===H)return _;if(23===i||23===c)return Z;if(16===c||16===i)return _;if(-1!==[E,I,L].indexOf(c)||14===i)return Z;if(36===a&&-1!==rA.indexOf(i))return Z;if(i===S&&36===c)return Z;if(c===v)return Z;if(-1!==z.indexOf(c)&&i===M||-1!==z.indexOf(i)&&c===M)return Z;if(i===T&&-1!==[P,G,V].indexOf(c)||-1!==[P,G,V].indexOf(i)&&c===x)return Z;if(-1!==z.indexOf(i)&&-1!==AA.indexOf(c)||-1!==AA.indexOf(i)&&-1!==z.indexOf(c))return Z;if(-1!==[T,x].indexOf(i)&&(c===M||-1!==[b,I].indexOf(c)&&e[o+1]===M)||-1!==[b,I].indexOf(i)&&c===M||i===M&&-1!==[M,S,D].indexOf(c))return Z;if(-1!==[M,S,D,y,m].indexOf(c))for(var g=B;g>=0;){if((Q=e[g])===M)return Z;if(-1===[S,D].indexOf(Q))break;g--}if(-1!==[T,x].indexOf(c))for(g=-1!==[y,m].indexOf(i)?s:B;g>=0;){var Q;if((Q=e[g])===M)return Z;if(-1===[S,D].indexOf(Q))break;g--}if(k===i&&-1!==[k,J,R,N].indexOf(c)||-1!==[J,R].indexOf(i)&&-1!==[J,X].indexOf(c)||-1!==[X,N].indexOf(i)&&c===X)return Z;if(-1!==tA.indexOf(i)&&-1!==[v,x].indexOf(c)||-1!==tA.indexOf(c)&&i===T)return Z;if(-1!==z.indexOf(i)&&-1!==z.indexOf(c))return Z;if(i===D&&-1!==z.indexOf(c))return Z;if(-1!==z.concat(M).indexOf(i)&&c===b&&-1===W.indexOf(A[o])||-1!==z.concat(M).indexOf(c)&&i===m)return Z;if(41===i&&41===c){for(var w=t[B],u=1;w>0&&41===e[--w];)u++;if(u%2!=0)return Z}return i===G&&c===V?Z:_},oA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach((function(A,B){var s=q.get(A);if(s>50?(n.push(!0),s-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(B),t.push(16);if(4===s||11===s){if(0===B)return r.push(B),t.push(O);var o=t[B-1];return-1===eA.indexOf(o)?(r.push(r[B-1]),t.push(o)):(r.push(B),t.push(O))}return r.push(B),31===s?t.push("strict"===e?L:P):s===Y||29===s?t.push(O):43===s?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(P):t.push(O):void t.push(s)})),[r,t,n]}(A,e.lineBreak),r=t[0],n=t[1],B=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(A){return-1!==[M,O,Y].indexOf(A)?P:A})));var s="keep-all"===e.wordBreak?B.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,n,s]},iA=function(){function A(A,e,t,r){this.codePoints=A,this.required="!"===e,this.start=t,this.end=r}return A.prototype.slice=function(){return g.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),aA=45,cA=43,gA=-1,QA=function(A){return A>=48&&A<=57},wA=function(A){return QA(A)||A>=65&&A<=70||A>=97&&A<=102},uA=function(A){return 10===A||9===A||32===A},lA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},CA=function(A){return lA(A)||QA(A)||A===aA},UA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},FA=function(A,e){return 92===A&&10!==e},hA=function(A,e,t){return A===aA?lA(e)||FA(e,t):!!lA(A)||!(92!==A||!FA(A,e))},dA=function(A,e,t){return A===cA||A===aA?!!QA(e)||46===e&&QA(t):QA(46===A?e:A)},fA=function(A){var e=0,t=1;A[e]!==cA&&A[e]!==aA||(A[e]===aA&&(t=-1),e++);for(var r=[];QA(A[e]);)r.push(A[e++]);var n=r.length?parseInt(g.apply(void 0,r),10):0;46===A[e]&&e++;for(var B=[];QA(A[e]);)B.push(A[e++]);var s=B.length,o=s?parseInt(g.apply(void 0,B),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;A[e]!==cA&&A[e]!==aA||(A[e]===aA&&(i=-1),e++);for(var a=[];QA(A[e]);)a.push(A[e++]);var c=a.length?parseInt(g.apply(void 0,a),10):0;return t*(n+o*Math.pow(10,-s))*Math.pow(10,i*c)},pA={type:2},HA={type:3},EA={type:4},IA={type:13},yA={type:8},mA={type:21},KA={type:9},vA={type:10},LA={type:11},bA={type:12},DA={type:14},MA={type:23},xA={type:1},TA={type:25},SA={type:24},OA={type:26},GA={type:27},VA={type:28},RA={type:29},NA={type:31},PA={type:32},kA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(c(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==PA;)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(CA(e)||FA(t,r)){var n=hA(e,t,r)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),IA;break;case 39:return this.consumeStringToken(39);case 40:return pA;case 41:return HA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),DA;break;case cA:if(dA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return EA;case aA:var B=A,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(dA(B,s,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(hA(B,s,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===aA&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),SA;break;case 46:if(dA(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 i=this.consumeCodePoint();if(42===i&&47===(i=this.consumeCodePoint()))return this.consumeToken();if(i===gA)return this.consumeToken()}break;case 58:return OA;case 59:return GA;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===aA&&this.peekCodePoint(2)===aA)return this.consumeCodePoint(),this.consumeCodePoint(),TA;break;case 64:var a=this.peekCodePoint(0),c=this.peekCodePoint(1),Q=this.peekCodePoint(2);if(hA(a,c,Q))return{type:7,value:this.consumeName()};break;case 91:return VA;case 92:if(FA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return RA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;break;case 123:return LA;case 125:return bA;case 117:case 85:var w=this.peekCodePoint(0),u=this.peekCodePoint(1);return w!==cA||!wA(u)&&63!==u||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),KA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),mA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vA;break;case gA:return PA}return uA(A)?(this.consumeWhiteSpace(),NA):QA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):lA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:g(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();wA(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)return{type:30,start:parseInt(g.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(g.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var r=parseInt(g.apply(void 0,A),16);if(this.peekCodePoint(0)===aA&&wA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var n=[];wA(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(g.apply(void 0,n),16)}}return{type:30,start:r,end:r}},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(),this.peekCodePoint(0)===gA)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(),this.peekCodePoint(0)===gA||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),MA)}for(;;){var r=this.consumeCodePoint();if(r===gA||41===r)return{type:22,value:g.apply(void 0,A)};if(uA(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===gA||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:g.apply(void 0,A)}):(this.consumeBadUrlRemnants(),MA);if(34===r||39===r||40===r||UA(r))return this.consumeBadUrlRemnants(),MA;if(92===r){if(!FA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),MA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;uA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===gA)return;FA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=g.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(r===gA||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),xA;if(92===r){var n=this._value[t+1];n!==gA&&void 0!==n&&(10===n?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):FA(r,n)&&(e+=this.consumeStringSlice(t),e+=g(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(t!==cA&&t!==aA||A.push(this.consumeCodePoint());QA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===t&&QA(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;QA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===t||101===t)&&((r===cA||r===aA)&&QA(n)||QA(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;QA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[fA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),B=this.peekCodePoint(2);return hA(r,n,B)?{type:15,number:e,flags:t,unit:this.consumeName()}: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(wA(A)){for(var e=g(A);wA(this.peekCodePoint(0))&&e.length<6;)e+=g(this.consumeCodePoint());uA(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 A===gA?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(CA(e))A+=g(e);else{if(!FA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=g(this.consumeEscapedCodePoint())}}},A}(),JA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new kA;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||$A(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?PA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),XA=function(A){return 15===A.type},YA=function(A){return 17===A.type},WA=function(A){return 20===A.type},ZA=function(A){return 0===A.type},_A=function(A,e){return WA(A)&&A.value===e},qA=function(A){return 31!==A.type},zA=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},$A=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},Ae=function(A){return 17===A.type||15===A.type},ee=function(A){return 16===A.type||Ae(A)},te=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},re={type:17,number:0,flags:4},ne={type:16,number:50,flags:4},Be={type:16,number:100,flags:4},se=function(A,e,t){var r=A[0],n=A[1];return[oe(r,e),oe(void 0!==n?n:r,t)]},oe=function(A,e){if(16===A.type)return A.number/100*e;if(XA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},ie="grad",ae="turn",ce=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case ie:return Math.PI/200*e.number;case"rad":return e.number;case ae:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ge=function(A){return 15===A.type&&("deg"===A.unit||A.unit===ie||"rad"===A.unit||A.unit===ae)},Qe=function(A){switch(A.filter(WA).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[re,re];case"to top":case"bottom":return we(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[re,Be];case"to right":case"left":return we(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Be,Be];case"to bottom":case"top":return we(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Be,re];case"to left":case"right":return we(270)}return 0},we=function(A){return Math.PI*A/180},ue=function(A,e){if(18===e.type){var t=pe[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),n=e.value.substring(1,2),B=e.value.substring(2,3);return Ue(parseInt(r+r,16),parseInt(n+n,16),parseInt(B+B,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),B=e.value.substring(2,3);var s=e.value.substring(3,4);return Ue(parseInt(r+r,16),parseInt(n+n,16),parseInt(B+B,16),parseInt(s+s,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),n=e.value.substring(2,4),B=e.value.substring(4,6);return Ue(parseInt(r,16),parseInt(n,16),parseInt(B,16),1)}if(8===e.value.length){r=e.value.substring(0,2),n=e.value.substring(2,4),B=e.value.substring(4,6),s=e.value.substring(6,8);return Ue(parseInt(r,16),parseInt(n,16),parseInt(B,16),parseInt(s,16)/255)}}if(20===e.type){var o=Ee[e.value.toUpperCase()];if(void 0!==o)return o}return Ee.TRANSPARENT},le=function(A){return 0==(255&A)},Ce=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},Ue=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},Fe=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},he=function(A,e){var t=e.filter(zA);if(3===t.length){var r=t.map(Fe),n=r[0],B=r[1],s=r[2];return Ue(n,B,s,1)}if(4===t.length){var o=t.map(Fe),i=(n=o[0],B=o[1],s=o[2],o[3]);return Ue(n,B,s,i)}return 0};function de(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 fe=function(A,e){var t=e.filter(zA),r=t[0],n=t[1],B=t[2],s=t[3],o=(17===r.type?we(r.number):ce(A,r))/(2*Math.PI),i=ee(n)?n.number/100:0,a=ee(B)?B.number/100:0,c=void 0!==s&&ee(s)?oe(s,1):1;if(0===i)return Ue(255*a,255*a,255*a,1);var g=a<=.5?a*(i+1):a+i-a*i,Q=2*a-g,w=de(Q,g,o+1/3),u=de(Q,g,o),l=de(Q,g,o-1/3);return Ue(255*w,255*u,255*l,c)},pe={hsl:fe,hsla:fe,rgb:he,rgba:he},He=function(A,e){return ue(A,JA.create(e).parseComponentValue())},Ee={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},Ie={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(WA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ye={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},me=function(A,e){var t=ue(A,e[0]),r=e[1];return r&&ee(r)?{color:t,stop:r}:{color:t,stop:null}},Ke=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=re),null===r.stop&&(r.stop=Be);for(var n=[],B=0,s=0;s<A.length;s++){var o=A[s].stop;if(null!==o){var i=oe(o,e);i>B?n.push(i):n.push(B),B=i}else n.push(null)}var a=null;for(s=0;s<n.length;s++){var c=n[s];if(null===c)null===a&&(a=s);else if(null!==a){for(var g=s-a,Q=(c-n[a-1])/(g+1),w=1;w<=g;w++)n[a+w-1]=Q*w;a=null}}return A.map((function(A,t){return{color:A.color,stop:Math.max(Math.min(1,n[t]/e),0)}}))},ve=function(A,e,t){var r="number"==typeof A?A:function(A,e,t){var r=e/2,n=t/2,B=oe(A[0],e)-r,s=n-oe(A[1],t);return(Math.atan2(s,B)+2*Math.PI)%(2*Math.PI)}(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),B=e/2,s=t/2,o=n/2,i=Math.sin(r-Math.PI/2)*o,a=Math.cos(r-Math.PI/2)*o;return[n,B-a,B+a,s-i,s+i]},Le=function(A,e){return Math.sqrt(A*A+e*e)},be=function(A,e,t,r,n){return[[0,0],[0,e],[A,0],[A,e]].reduce((function(A,e){var B=e[0],s=e[1],o=Le(t-B,r-s);return(n?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},De=function(A,e){var t=we(180),r=[];return jA(e).forEach((function(e,n){if(0===n){var B=e[0];if(20===B.type&&-1!==["top","left","right","bottom"].indexOf(B.value))return void(t=Qe(e));if(ge(B))return void(t=(ce(A,B)+we(270))%we(360))}var s=me(A,e);r.push(s)})),{angle:t,stops:r,type:1}},Me="closest-side",xe="farthest-side",Te="closest-corner",Se="farthest-corner",Oe="circle",Ge="ellipse",Ve="cover",Re="contain",Ne=function(A,e){var t=0,r=3,n=[],B=[];return jA(e).forEach((function(e,s){var o=!0;if(0===s?o=e.reduce((function(A,e){if(WA(e))switch(e.value){case"center":return B.push(ne),!1;case"top":case"left":return B.push(re),!1;case"right":case"bottom":return B.push(Be),!1}else if(ee(e)||Ae(e))return B.push(e),!1;return A}),o):1===s&&(o=e.reduce((function(A,e){if(WA(e))switch(e.value){case Oe:return t=0,!1;case Ge:return t=1,!1;case Re:case Me:return r=0,!1;case xe:return r=1,!1;case Te:return r=2,!1;case Ve:case Se:return r=3,!1}else if(Ae(e)||ee(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)),o){var i=me(A,e);n.push(i)}})),{size:r,shape:t,stops:n,position:B,type:2}},Pe=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=Je[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)};var ke,Je={"linear-gradient":function(A,e){var t=we(180),r=[];return jA(e).forEach((function(e,n){if(0===n){var B=e[0];if(20===B.type&&"to"===B.value)return void(t=Qe(e));if(ge(B))return void(t=ce(A,B))}var s=me(A,e);r.push(s)})),{angle:t,stops:r,type:1}},"-moz-linear-gradient":De,"-ms-linear-gradient":De,"-o-linear-gradient":De,"-webkit-linear-gradient":De,"radial-gradient":function(A,e){var t=0,r=3,n=[],B=[];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(WA(e))switch(e.value){case"center":return B.push(ne),A;case"top":case"left":return B.push(re),A;case"right":case"bottom":return B.push(Be),A}else(ee(e)||Ae(e))&&B.push(e);else if(WA(e))switch(e.value){case Oe:return t=0,!1;case Ge:return t=1,!1;case"at":return i=!0,!1;case Me:return r=0,!1;case Ve:case xe:return r=1,!1;case Re:case Te:return r=2,!1;case Se:return r=3,!1}else if(Ae(e)||ee(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)}if(o){var a=me(A,e);n.push(a)}})),{size:r,shape:t,stops:n,position:B,type:2}},"-moz-radial-gradient":Ne,"-ms-radial-gradient":Ne,"-o-radial-gradient":Ne,"-webkit-radial-gradient":Ne,"-webkit-gradient":function(A,e){var t=we(180),r=[],n=1;return jA(e).forEach((function(e,t){var B=e[0];if(0===t){if(WA(B)&&"linear"===B.value)return void(n=1);if(WA(B)&&"radial"===B.value)return void(n=2)}if(18===B.type)if("from"===B.name){var s=ue(A,B.values[0]);r.push({stop:re,color:s})}else if("to"===B.name){s=ue(A,B.values[0]);r.push({stop:Be,color:s})}else if("color-stop"===B.name){var o=B.values.filter(zA);if(2===o.length){s=ue(A,o[1]);var i=o[0];YA(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:s})}}})),1===n?{angle:(t+we(180))%we(360),stops:r,type:n}:{size:3,shape:0,stops:r,position:[],type:n}}},Xe={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 zA(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Je[A.name])}(A)})).map((function(e){return Pe(A,e)}))}},Ye={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(WA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},We={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return jA(e).map((function(A){return A.filter(ee)})).map(te)}},Ze={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return jA(e).map((function(A){return A.filter(WA).map((function(A){return A.value})).join(" ")})).map(_e)}},_e=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;default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(ke||(ke={}));var qe,ze={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return jA(e).map((function(A){return A.filter(je)}))}},je=function(A){return WA(A)||ee(A)},$e=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},At=$e("top"),et=$e("right"),tt=$e("bottom"),rt=$e("left"),nt=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return te(e.filter(ee))}}},Bt=nt("top-left"),st=nt("top-right"),ot=nt("bottom-right"),it=nt("bottom-left"),at=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}}},ct=at("top"),gt=at("right"),Qt=at("bottom"),wt=at("left"),ut=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return XA(e)?e.number:0}}},lt=ut("top"),Ct=ut("right"),Ut=ut("bottom"),Ft=ut("left"),ht={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},ft={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(WA).reduce((function(A,e){return A|pt(e.value)}),0)}},pt=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},Ht={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}},Et={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"}(qe||(qe={}));var It,yt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?qe.STRICT:qe.NORMAL}},mt={name:"line-height",initialValue:"normal",prefix:!1,type:4},Kt=function(A,e){return WA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:ee(A)?oe(A,e):e},vt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Pe(A,e)}},Lt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},bt={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;default:return-1}}},Dt=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Mt=Dt("top"),xt=Dt("right"),Tt=Dt("bottom"),St=Dt("left"),Ot={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(WA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Gt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},Vt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Rt=Vt("top"),Nt=Vt("right"),Pt=Vt("bottom"),kt=Vt("left"),Jt={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;default:return 0}}},Xt={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}},Yt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&_A(e[0],"none")?[]:jA(e).map((function(e){for(var t={color:Ee.TRANSPARENT,offsetX:re,offsetY:re,blur:re},r=0,n=0;n<e.length;n++){var B=e[n];Ae(B)?(0===r?t.offsetX=B:1===r?t.offsetY=B:t.blur=B,r++):t.color=ue(A,B)}return t}))}},Wt={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Zt={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var t=_t[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},_t={matrix:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===e.length?e:null},matrix3d:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),t=e[0],r=e[1];e[2],e[3];var n=e[4],B=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],16===e.length?[t,r,n,B,s,o]:null}},qt={type:16,number:50,flags:4},zt=[qt,qt],jt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(ee);return 2!==t.length?zt:[t[0],t[1]]}},$t={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(It||(It={}));for(var Ar={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return It.BREAK_ALL;case"keep-all":return It.KEEP_ALL;default:return It.NORMAL}}},er={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(YA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},tr=function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},rr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return YA(e)?e.number:1}},nr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Br={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(WA).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},sr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach((function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0}})),t.length&&r.push(t.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},or={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ir={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return YA(e)?e.number:WA(e)&&"bold"===e.value?700:400}},ar={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(WA).map((function(A){return A.value}))}},cr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},gr=function(A,e){return 0!=(A&e)},Qr={name:"content",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}},wr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],n=e.filter(qA),B=0;B<n.length;B++){var s=n[B],o=n[B+1];if(20===s.type){var i=o&&YA(o)?o.number:1;r.push({counter:s.value,increment:i})}}return r}},ur={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],r=e.filter(qA),n=0;n<r.length;n++){var B=r[n],s=r[n+1];if(WA(B)&&"none"!==B.value){var o=s&&YA(s)?s.number:0;t.push({counter:B.value,reset:o})}}return t}},lr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(XA).map((function(e){return tr(A,e)}))}},Cr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var r=[],n=e.filter(ZA);if(n.length%2!=0)return null;for(var B=0;B<n.length;B+=2){var s=n[B].value,o=n[B+1].value;r.push({open:s,close:o})}return r}},Ur=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},Fr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&_A(e[0],"none")?[]:jA(e).map((function(e){for(var t={color:255,offsetX:re,offsetY:re,blur:re,spread:re,inset:!1},r=0,n=0;n<e.length;n++){var B=e[n];_A(B,"inset")?t.inset=!0:Ae(B)?(0===r?t.offsetX=B:1===r?t.offsetY=B:2===r?t.blur=B:t.spread=B,r++):t.color=ue(A,B)}return t}))}},hr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[];return e.filter(WA).forEach((function(A){switch(A.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2)}})),[0,1,2].forEach((function(A){-1===t.indexOf(A)&&t.push(A)})),t}},dr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},fr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return XA(e)?e.number:0}},pr=function(){function A(A,e){var t,r;this.animationDuration=Ir(A,lr,e.animationDuration),this.backgroundClip=Ir(A,Ie,e.backgroundClip),this.backgroundColor=Ir(A,ye,e.backgroundColor),this.backgroundImage=Ir(A,Xe,e.backgroundImage),this.backgroundOrigin=Ir(A,Ye,e.backgroundOrigin),this.backgroundPosition=Ir(A,We,e.backgroundPosition),this.backgroundRepeat=Ir(A,Ze,e.backgroundRepeat),this.backgroundSize=Ir(A,ze,e.backgroundSize),this.borderTopColor=Ir(A,At,e.borderTopColor),this.borderRightColor=Ir(A,et,e.borderRightColor),this.borderBottomColor=Ir(A,tt,e.borderBottomColor),this.borderLeftColor=Ir(A,rt,e.borderLeftColor),this.borderTopLeftRadius=Ir(A,Bt,e.borderTopLeftRadius),this.borderTopRightRadius=Ir(A,st,e.borderTopRightRadius),this.borderBottomRightRadius=Ir(A,ot,e.borderBottomRightRadius),this.borderBottomLeftRadius=Ir(A,it,e.borderBottomLeftRadius),this.borderTopStyle=Ir(A,ct,e.borderTopStyle),this.borderRightStyle=Ir(A,gt,e.borderRightStyle),this.borderBottomStyle=Ir(A,Qt,e.borderBottomStyle),this.borderLeftStyle=Ir(A,wt,e.borderLeftStyle),this.borderTopWidth=Ir(A,lt,e.borderTopWidth),this.borderRightWidth=Ir(A,Ct,e.borderRightWidth),this.borderBottomWidth=Ir(A,Ut,e.borderBottomWidth),this.borderLeftWidth=Ir(A,Ft,e.borderLeftWidth),this.boxShadow=Ir(A,Fr,e.boxShadow),this.color=Ir(A,ht,e.color),this.direction=Ir(A,dt,e.direction),this.display=Ir(A,ft,e.display),this.float=Ir(A,Ht,e.cssFloat),this.fontFamily=Ir(A,sr,e.fontFamily),this.fontSize=Ir(A,or,e.fontSize),this.fontStyle=Ir(A,cr,e.fontStyle),this.fontVariant=Ir(A,ar,e.fontVariant),this.fontWeight=Ir(A,ir,e.fontWeight),this.letterSpacing=Ir(A,Et,e.letterSpacing),this.lineBreak=Ir(A,yt,e.lineBreak),this.lineHeight=Ir(A,mt,e.lineHeight),this.listStyleImage=Ir(A,vt,e.listStyleImage),this.listStylePosition=Ir(A,Lt,e.listStylePosition),this.listStyleType=Ir(A,bt,e.listStyleType),this.marginTop=Ir(A,Mt,e.marginTop),this.marginRight=Ir(A,xt,e.marginRight),this.marginBottom=Ir(A,Tt,e.marginBottom),this.marginLeft=Ir(A,St,e.marginLeft),this.opacity=Ir(A,rr,e.opacity);var n=Ir(A,Ot,e.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Ir(A,Gt,e.overflowWrap),this.paddingTop=Ir(A,Rt,e.paddingTop),this.paddingRight=Ir(A,Nt,e.paddingRight),this.paddingBottom=Ir(A,Pt,e.paddingBottom),this.paddingLeft=Ir(A,kt,e.paddingLeft),this.paintOrder=Ir(A,hr,e.paintOrder),this.position=Ir(A,Xt,e.position),this.textAlign=Ir(A,Jt,e.textAlign),this.textDecorationColor=Ir(A,nr,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=Ir(A,Br,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=Ir(A,Yt,e.textShadow),this.textTransform=Ir(A,Wt,e.textTransform),this.transform=Ir(A,Zt,e.transform),this.transformOrigin=Ir(A,jt,e.transformOrigin),this.visibility=Ir(A,$t,e.visibility),this.webkitTextStrokeColor=Ir(A,dr,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ir(A,fr,e.webkitTextStrokeWidth),this.wordBreak=Ir(A,Ar,e.wordBreak),this.zIndex=Ir(A,er,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return le(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 gr(this.display,4)||gr(this.display,33554432)||gr(this.display,268435456)||gr(this.display,536870912)||gr(this.display,67108864)||gr(this.display,134217728)},A}(),Hr=function(A,e){this.content=Ir(A,Qr,e.content),this.quotes=Ir(A,Cr,e.quotes)},Er=function(A,e){this.counterIncrement=Ir(A,wr,e.counterIncrement),this.counterReset=Ir(A,ur,e.counterReset)},Ir=function(A,e,t){var r=new kA,n=null!=t?t.toString():e.initialValue;r.write(n);var B=new JA(r.read());switch(e.type){case 2:var s=B.parseComponentValue();return e.parse(A,WA(s)?s.value:e.initialValue);case 0:return e.parse(A,B.parseComponentValue());case 1:return e.parse(A,B.parseComponentValues());case 4:return B.parseComponentValue();case 3:switch(e.format){case"angle":return ce(A,B.parseComponentValue());case"color":return ue(A,B.parseComponentValue());case"image":return Pe(A,B.parseComponentValue());case"length":var o=B.parseComponentValue();return Ae(o)?o:re;case"length-percentage":var i=B.parseComponentValue();return ee(i)?i:re;case"time":return tr(A,B.parseComponentValue())}}},yr=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},mr=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,yr(e,3),this.styles=new pr(A,window.getComputedStyle(e,null)),Dn(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),yr(e,4)&&(this.flags|=16)},Kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Lr=0;Lr<Kr.length;Lr++)vr[Kr.charCodeAt(Lr)]=Lr;for(var br=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Dr=function(){function A(A,e,t,r,n,B){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=B}return A.prototype.get=function(A){var e;if(A>=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<this.highStart)return e=2080+(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}(),Mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Tr=0;Tr<Mr.length;Tr++)xr[Mr.charCodeAt(Tr)]=Tr;var Sr,Or=8,Gr=9,Vr=11,Rr=12,Nr=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,B="";++n<t;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===t||r.length>16384)&&(B+=String.fromCharCode.apply(String,r),r.length=0)}return B},Pr=function(A,e){var t,r,n,B=function(A){var e,t,r,n,B,s=.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(a)?a:new Uint8Array(a);for(e=0;e<o;e+=4)t=vr[A.charCodeAt(e)],r=vr[A.charCodeAt(e+1)],n=vr[A.charCodeAt(e+2)],B=vr[A.charCodeAt(e+3)],c[i++]=t<<2|r>>4,c[i++]=(15&r)<<4|n>>2,c[i++]=(3&n)<<6|63&B;return a}(A),s=Array.isArray(B)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t}(B):new Uint32Array(B),o=Array.isArray(B)?function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t}(B):new Uint16Array(B),i=br(o,12,s[4]/2),a=2===s[5]?br(o,(24+s[4])/2):(t=s,r=Math.ceil((24+s[4])/4),t.slice?t.slice(r,n):new Uint32Array(Array.prototype.slice.call(t,r,n)));return new Dr(s[0],s[1],s[2],s[3],i,a)}("[encoded data, 26156 characters]"),kr="×",Jr=function(A){return Pr.get(A)},Xr=function(A,e,t){var r=t-2,n=e[r],B=e[t-1],s=e[t];if(2===B&&3===s)return kr;if(2===B||3===B||4===B)return"÷";if(2===s||3===s||4===s)return"÷";if(B===Or&&-1!==[Or,Gr,Vr,Rr].indexOf(s))return kr;if(!(B!==Vr&&B!==Gr||s!==Gr&&10!==s))return kr;if((B===Rr||10===B)&&10===s)return kr;if(13===s||5===s)return kr;if(7===s)return kr;if(1===B)return kr;if(13===B&&14===s){for(;5===n;)n=e[--r];if(14===n)return kr}if(15===B&&15===s){for(var o=0;15===n;)o++,n=e[--r];if(o%2==0)return kr}return"÷"},Yr=function(A){var e=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var B=A.charCodeAt(t++);56320==(64512&B)?e.push(((1023&n)<<10)+(1023&B)+65536):(e.push(n),t--)}else e.push(n)}return e}(A),t=e.length,r=0,n=0,B=e.map(Jr);return{next:function(){if(r>=t)return{done:!0,value:null};for(var A=kr;r<t&&(A=Xr(0,B,++r))===kr;);if(A!==kr||r===t){var s=Nr.apply(null,e.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},Wr=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Zr=function(A,e,t,r,n){var B="http://www.w3.org/2000/svg",s=document.createElementNS(B,"svg"),o=document.createElementNS(B,"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(n),s},_r=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))}))},qr={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(),n=Math.round(r.height);if(A.body.removeChild(t),123===n)return!0}}return!1}(document);return Object.defineProperty(qr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=qr.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?"&#128104;".repeat(10):"";var r=e.firstChild,n=c(r.data).map((function(A){return g(A)})),B=0,s={},o=n.every((function(A,e){t.setStart(r,B),t.setEnd(r,B+A.length);var n=t.getBoundingClientRect();B+=A.length;var o=n.x>s.x||n.y>s.y;return s=n,0===e||o}));return A.body.removeChild(e),o}(document);return Object.defineProperty(qr,"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,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(n){return!1}return!0}(document);return Object.defineProperty(qr,"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"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,B=e.toDataURL();n.src=B;var s=Zr(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),_r(s).then((function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var s=A.createElement("div");return s.style.backgroundImage="url("+B+")",s.style.height="100px",Wr(n)?_r(Zr(t,t,0,0,s)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),Wr(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(qr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(qr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(qr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(qr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(qr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},zr=function(A,e){this.text=A,this.bounds=e},jr=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var B=a(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),B}}return i.EMPTY},$r=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},An=function(A){if(qr.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=Yr(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},en=function(A,e){return 0!==e.letterSpacing?An(A):function(A,e){if(qr.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 rn(A,e)}(A,e)},tn=[32,160,4961,65792,65793,4153,4241],rn=function(A,e){for(var t,r=function(A,e){var t=c(A),r=oA(t,e),n=r[0],B=r[1],s=r[2],o=t.length,i=0,a=0;return{next:function(){if(a>=o)return{done:!0,value:null};for(var A=Z;a<o&&(A=sA(t,B,n,++a,s))===Z;);if(A!==Z||a===o){var e=new iA(t,A,i,a);return i=a,{value:e,done:!1}}return{done:!0,value:null}}}}(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),n=[],B=function(){if(t.value){var A=t.value.slice(),e=c(A),r="";e.forEach((function(A){-1===tn.indexOf(A)?r+=g(A):(r.length&&n.push(r),n.push(g(A)),r="")})),r.length&&n.push(r)}};!(t=r.next()).done;)B();return n},nn=function(A,e,t){this.text=Bn(e.data,t.textTransform),this.textBounds=function(A,e,t,r){var n=en(e,t),B=[],s=0;return n.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(qr.SUPPORT_RANGE_BOUNDS){var n=$r(r,s,e.length).getClientRects();if(n.length>1){var o=An(e),a=0;o.forEach((function(e){B.push(new zr(e,i.fromDOMRectList(A,$r(r,a+s,e.length).getClientRects()))),a+=e.length}))}else B.push(new zr(e,i.fromDOMRectList(A,n)))}else{var c=r.splitText(e.length);B.push(new zr(e,jr(A,r))),r=c}else qr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),B}(A,this.text,t,e)},Bn=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(sn,on);case 2:return A.toUpperCase();default:return A}},sn=/(^|\s|:|-|\(|\))([a-z])/g,on=function(A,e,t){return A.length>0?e+t.toUpperCase():A},an=function(A){function e(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 r(e,A),e}(mr),cn=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return r(e,A),e}(mr),gn=function(A){function e(e,t){var r=A.call(this,e,t)||this,n=new XMLSerializer,B=a(e,t);return t.setAttribute("width",B.width+"px"),t.setAttribute("height",B.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return r(e,A),e}(mr),Qn=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return r(e,A),e}(mr),wn=function(A){function e(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 r(e,A),e}(mr),un=[{type:15,flags:0,unit:"px",number:3}],ln=[{type:16,flags:0,number:50}],Cn="checkbox",Un="radio",Fn="password",hn=707406591,dn=function(A){function e(e,t){var r,n,B,s=A.call(this,e,t)||this;switch(s.type=t.type.toLowerCase(),s.checked=t.checked,s.value=0===(n=(r=t).type===Fn?new Array(r.value.length+1).join("•"):r.value).length?r.placeholder||"":n,s.type!==Cn&&s.type!==Un||(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=(B=s.bounds).width>B.height?new i(B.left+(B.width-B.height)/2,B.top,B.height,B.height):B.width<B.height?new i(B.left,B.top+(B.height-B.width)/2,B.width,B.width):B),s.type){case Cn:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=un;break;case Un:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=ln}return s}return r(e,A),e}(mr),fn=function(A){function e(e,t){var r=A.call(this,e,t)||this,n=t.options[t.selectedIndex||0];return r.value=n&&n.text||"",r}return r(e,A),e}(mr),pn=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return r(e,A),e}(mr),Hn=function(A){function e(e,t){var r=A.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=mn(e,t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?He(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):Ee.TRANSPARENT,B=t.contentWindow.document.body?He(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):Ee.TRANSPARENT;r.backgroundColor=le(n)?le(B)?r.styles.backgroundColor:B:n}}catch(s){}return r}return r(e,A),e}(mr),En=["OL","UL","MENU"],In=function A(e,t,r,n){for(var B=t.firstChild,s=void 0;B;B=s)if(s=B.nextSibling,Ln(B)&&B.data.trim().length>0)r.textNodes.push(new nn(e,B,r.styles));else if(bn(B))if(Yn(B)&&B.assignedNodes)B.assignedNodes().forEach((function(t){return A(e,t,r,n)}));else{var o=yn(e,B);o.styles.isVisible()&&(Kn(B,o,n)?o.flags|=4:vn(o.styles)&&(o.flags|=2),-1!==En.indexOf(B.tagName)&&(o.flags|=8),r.elements.push(o),B.slot,B.shadowRoot?A(e,B.shadowRoot,o,n):Jn(B)||On(B)||Xn(B)||A(e,B,o,n))}},yn=function(A,e){return Nn(e)?new an(A,e):Vn(e)?new cn(A,e):On(e)?new gn(A,e):xn(e)?new Qn(A,e):Tn(e)?new wn(A,e):Sn(e)?new dn(A,e):Xn(e)?new fn(A,e):Jn(e)?new pn(A,e):Pn(e)?new Hn(A,e):new mr(A,e)},mn=function(A,e){var t=yn(A,e);return t.flags|=4,In(A,e,t,t),t},Kn=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Gn(A)&&t.styles.isTransparent()},vn=function(A){return A.isPositioned()||A.isFloating()},Ln=function(A){return A.nodeType===Node.TEXT_NODE},bn=function(A){return A.nodeType===Node.ELEMENT_NODE},Dn=function(A){return bn(A)&&void 0!==A.style&&!Mn(A)},Mn=function(e){return"object"===A(e.className)},xn=function(A){return"LI"===A.tagName},Tn=function(A){return"OL"===A.tagName},Sn=function(A){return"INPUT"===A.tagName},On=function(A){return"svg"===A.tagName},Gn=function(A){return"BODY"===A.tagName},Vn=function(A){return"CANVAS"===A.tagName},Rn=function(A){return"VIDEO"===A.tagName},Nn=function(A){return"IMG"===A.tagName},Pn=function(A){return"IFRAME"===A.tagName},kn=function(A){return"STYLE"===A.tagName},Jn=function(A){return"TEXTAREA"===A.tagName},Xn=function(A){return"SELECT"===A.tagName},Yn=function(A){return"SLOT"===A.tagName},Wn=function(A){return A.tagName.indexOf("-")>0},Zn=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,n=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var B=[];return n&&r.forEach((function(A){var t=e.counters[A.counter];B.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),B},A}(),_n={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"]},qn={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},zn={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},jn={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$n=function(A,e,t,r,n,B){return A<e||A>t?iB(A,n,B.length>0):r.integers.reduce((function(e,t,n){for(;A>=t;)A-=t,e+=r.values[n];return e}),"")+B},AB=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},eB=function(A,e,t,r,n){var B=t-e+1;return(A<0?"-":"")+(AB(Math.abs(A),B,r,(function(A){return g(Math.floor(A%B)+e)}))+n)},tB=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return AB(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},rB=function(A,e,t,r,n,B){if(A<-9999||A>9999)return iB(A,4,n.length>0);var s=Math.abs(A),o=n;if(0===s)return e[0]+o;for(var i=0;s>0&&i<=4;i++){var a=s%10;0===a&&gr(B,1)&&""!==o?o=e[a]+o:a>1||1===a&&0===i||1===a&&1===i&&gr(B,2)||1===a&&1===i&&gr(B,4)&&A>100||1===a&&i>1&&gr(B,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},nB="十百千萬",BB="拾佰仟萬",sB="マイナス",oB="마이너스",iB=function(A,e,t){var r=t?". ":"",n=t?"、":"",B=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=eB(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return tB(A,"〇一二三四五六七八九",n);case 6:return $n(A,1,3999,_n,3,r).toLowerCase();case 7:return $n(A,1,3999,_n,3,r);case 8:return eB(A,945,969,!1,r);case 9:return eB(A,97,122,!1,r);case 10:return eB(A,65,90,!1,r);case 11:return eB(A,1632,1641,!0,r);case 12:case 49:return $n(A,1,9999,qn,3,r);case 35:return $n(A,1,9999,qn,3,r).toLowerCase();case 13:return eB(A,2534,2543,!0,r);case 14:case 30:return eB(A,6112,6121,!0,r);case 15:return tB(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return tB(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return rB(A,"零一二三四五六七八九",nB,"負",n,14);case 47:return rB(A,"零壹貳參肆伍陸柒捌玖",BB,"負",n,15);case 42:return rB(A,"零一二三四五六七八九",nB,"负",n,14);case 41:return rB(A,"零壹贰叁肆伍陆柒捌玖",BB,"负",n,15);case 26:return rB(A,"〇一二三四五六七八九","十百千万",sB,n,0);case 25:return rB(A,"零壱弐参四伍六七八九","拾百千万",sB,n,7);case 31:return rB(A,"영일이삼사오육칠팔구","십백천만",oB,B,7);case 33:return rB(A,"零一二三四五六七八九","十百千萬",oB,B,0);case 32:return rB(A,"零壹貳參四五六七八九","拾百千",oB,B,7);case 18:return eB(A,2406,2415,!0,r);case 20:return $n(A,1,19999,jn,3,r);case 21:return eB(A,2790,2799,!0,r);case 22:return eB(A,2662,2671,!0,r);case 22:return $n(A,1,10999,zn,3,r);case 23:return tB(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return tB(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return eB(A,3302,3311,!0,r);case 28:return tB(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return tB(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return eB(A,3792,3801,!0,r);case 37:return eB(A,6160,6169,!0,r);case 38:return eB(A,4160,4169,!0,r);case 39:return eB(A,2918,2927,!0,r);case 40:return eB(A,1776,1785,!0,r);case 43:return eB(A,3046,3055,!0,r);case 44:return eB(A,3174,3183,!0,r);case 45:return eB(A,3664,3673,!0,r);case 46:return eB(A,3872,3881,!0,r);default:return eB(A,48,57,!0,r)}},aB="data-html2canvas-ignore",cB=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Zn,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,r=QB(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var n=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,i=r.contentWindow,a=i.document,c=lB(r).then((function(){return B(t,void 0,void 0,(function(){var A,t;return s(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(dB),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:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,uB(a)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(a,t)})).then((function(){return r}))]:[2,r]}}))}))}));return a.open(),a.write(FB(document.doctype)+"<html></html>"),hB(this.referenceElement.ownerDocument,n,o),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),c},A.prototype.createElementClone=function(A){if(yr(A,2),Vn(A))return this.createCanvasClone(A);if(Rn(A))return this.createVideoClone(A);if(kn(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Nn(e)&&(Nn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Wn(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return UB(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(n){if(this.context.logger.error("Unable to access cssRules property",n),"SecurityError"!==n.name)throw n}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(i){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 n=A.getContext("2d"),B=r.getContext("2d");if(B)if(!this.options.allowTaint&&n)B.putImageData(n.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.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}B.drawImage(A,0,0)}return r}catch(i){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(n){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){bn(e)&&("SCRIPT"===e.tagName||e.hasAttribute(aB)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&bn(e)&&kn(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(bn(n)&&Yn(n)&&"function"==typeof n.assignedNodes){var B=n.assignedNodes();B.length&&B.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,e){if(Ln(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&bn(A)&&(Dn(A)||Mn(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=t.getComputedStyle(A),B=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&Dn(r)&&(this.clonedReferenceElement=r),Gn(r)&&EB(r);var o=this.counters.parse(new Er(this.context,n)),i=this.resolvePseudoContent(A,r,B,Sr.BEFORE);Wn(A)&&(e=!0),Rn(A)||this.cloneChildNodes(A,r,e),i&&r.insertBefore(i,r.firstChild);var a=this.resolvePseudoContent(A,r,s,Sr.AFTER);return a&&r.appendChild(a),this.counters.pop(o),(n&&(this.options.copyStyles||Mn(A))&&!Pn(A)||e)&&UB(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Jn(A)||Xn(A))&&(Jn(r)||Xn(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var B=t.content,s=e.ownerDocument;if(s&&B&&"none"!==B&&"-moz-alt-content"!==B&&"none"!==t.display){this.counters.parse(new Er(this.context,t));var o=new Hr(this.context,t),i=s.createElement("html2canvaspseudoelement");UB(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(WA);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var B=e.values.filter(zA),a=B[0],c=B[1];if(a&&WA(a)){var g=n.counters.getCounterValue(a.value),Q=c&&WA(c)?bt.parse(n.context,c.value):3;i.appendChild(s.createTextNode(iB(g,Q,!1)))}}else if("counters"===e.name){var w=e.values.filter(zA),u=(a=w[0],w[1]);c=w[2];if(a&&WA(a)){var l=n.counters.getCounterValues(a.value),C=c&&WA(c)?bt.parse(n.context,c.value):3,U=u&&0===u.type?u.value:"",F=l.map((function(A){return iB(A,C,!1)})).join(U);i.appendChild(s.createTextNode(F))}}}else if(20===e.type)switch(e.value){case"open-quote":i.appendChild(s.createTextNode(Ur(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(Ur(o.quotes,--n.quoteDepth,!1)));break;default:i.appendChild(s.createTextNode(e.value))}})),i.className=fB+" "+pB;var a=r===Sr.BEFORE?" "+fB:" "+pB;return Mn(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"}(Sr||(Sr={}));var gB,QB=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(aB,"true"),A.body.appendChild(t),t},wB=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},uB=function(A){return Promise.all([].slice.call(A.images,0).map(wB))},lB=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))}),50)}}))},CB=["all","d","content"],UB=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===CB.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},FB=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},hB=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},dB=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},fB="___html2canvas___pseudoelement_before",pB="___html2canvas___pseudoelement_after",HB='{\n    content: "" !important;\n    display: none !important;\n}',EB=function(A){IB(A,"."+fB+":before"+HB+"\n         ."+pB+":after"+HB)},IB=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},yB=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}(),mB=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:xB(A)||bB(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 B(this,void 0,void 0,(function(){var e,t,r,n,B=this;return s(this,(function(s){switch(s.label){case 0:return e=yB.isSameOrigin(A),t=!DB(A)&&!0===this._options.useCORS&&qr.SUPPORT_CORS_IMAGES&&!e,r=!DB(A)&&!e&&!xB(A)&&"string"==typeof this._options.proxy&&qr.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||DB(A)||xB(A)||r||t?(n=A,r?[4,this.proxy(n)]:[3,2]):[2];case 1:n=s.sent(),s.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,(MB(n)||t)&&(r.crossOrigin="anonymous"),r.src=n,!0===r.complete&&setTimeout((function(){return A(r)}),500),B._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+B._options.imageTimeout+"ms) loading image")}),B._options.imageTimeout)}))];case 3:return[2,s.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(n,B){var s=qr.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)n(o.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return B(A)}),!1),A.readAsDataURL(o.response)}else B("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=B;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 B("Timed out ("+a+"ms) proxying "+r)}}o.send()}))},A}(),KB=/^data:image\/svg\+xml/i,vB=/^data:image\/.*;base64,/i,LB=/^data:image\/.*/i,bB=function(A){return qr.SUPPORT_SVG_DRAWING||!TB(A)},DB=function(A){return LB.test(A)},MB=function(A){return vB.test(A)},xB=function(A){return"blob"===A.substr(0,4)},TB=function(A){return"svg"===A.substr(-3).toLowerCase()||KB.test(A)},SB=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}(),OB=function(A,e,t){return new SB(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},GB=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=OB(this.start,this.startControl,e),n=OB(this.startControl,this.endControl,e),B=OB(this.endControl,this.end,e),s=OB(r,n,e),o=OB(n,B,e),i=OB(s,o,e);return t?new A(this.start,r,s,i):new A(i,o,B,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}(),VB=function(A){return 1===A.type},RB=function(A){var e=A.styles,t=A.bounds,r=se(e.borderTopLeftRadius,t.width,t.height),n=r[0],B=r[1],s=se(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],a=se(e.borderBottomRightRadius,t.width,t.height),c=a[0],g=a[1],Q=se(e.borderBottomLeftRadius,t.width,t.height),w=Q[0],u=Q[1],l=[];l.push((n+o)/t.width),l.push((w+c)/t.width),l.push((B+u)/t.height),l.push((i+g)/t.height);var C=Math.max.apply(Math,l);C>1&&(n/=C,B/=C,o/=C,i/=C,c/=C,g/=C,w/=C,u/=C);var U=t.width-o,F=t.height-g,h=t.width-c,d=t.height-u,f=e.borderTopWidth,p=e.borderRightWidth,H=e.borderBottomWidth,E=e.borderLeftWidth,I=oe(e.paddingTop,A.bounds.width),y=oe(e.paddingRight,A.bounds.width),m=oe(e.paddingBottom,A.bounds.width),K=oe(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||B>0?NB(t.left+E/3,t.top+f/3,n-E/3,B-f/3,gB.TOP_LEFT):new SB(t.left+E/3,t.top+f/3),this.topRightBorderDoubleOuterBox=n>0||B>0?NB(t.left+U,t.top+f/3,o-p/3,i-f/3,gB.TOP_RIGHT):new SB(t.left+t.width-p/3,t.top+f/3),this.bottomRightBorderDoubleOuterBox=c>0||g>0?NB(t.left+h,t.top+F,c-p/3,g-H/3,gB.BOTTOM_RIGHT):new SB(t.left+t.width-p/3,t.top+t.height-H/3),this.bottomLeftBorderDoubleOuterBox=w>0||u>0?NB(t.left+E/3,t.top+d,w-E/3,u-H/3,gB.BOTTOM_LEFT):new SB(t.left+E/3,t.top+t.height-H/3),this.topLeftBorderDoubleInnerBox=n>0||B>0?NB(t.left+2*E/3,t.top+2*f/3,n-2*E/3,B-2*f/3,gB.TOP_LEFT):new SB(t.left+2*E/3,t.top+2*f/3),this.topRightBorderDoubleInnerBox=n>0||B>0?NB(t.left+U,t.top+2*f/3,o-2*p/3,i-2*f/3,gB.TOP_RIGHT):new SB(t.left+t.width-2*p/3,t.top+2*f/3),this.bottomRightBorderDoubleInnerBox=c>0||g>0?NB(t.left+h,t.top+F,c-2*p/3,g-2*H/3,gB.BOTTOM_RIGHT):new SB(t.left+t.width-2*p/3,t.top+t.height-2*H/3),this.bottomLeftBorderDoubleInnerBox=w>0||u>0?NB(t.left+2*E/3,t.top+d,w-2*E/3,u-2*H/3,gB.BOTTOM_LEFT):new SB(t.left+2*E/3,t.top+t.height-2*H/3),this.topLeftBorderStroke=n>0||B>0?NB(t.left+E/2,t.top+f/2,n-E/2,B-f/2,gB.TOP_LEFT):new SB(t.left+E/2,t.top+f/2),this.topRightBorderStroke=n>0||B>0?NB(t.left+U,t.top+f/2,o-p/2,i-f/2,gB.TOP_RIGHT):new SB(t.left+t.width-p/2,t.top+f/2),this.bottomRightBorderStroke=c>0||g>0?NB(t.left+h,t.top+F,c-p/2,g-H/2,gB.BOTTOM_RIGHT):new SB(t.left+t.width-p/2,t.top+t.height-H/2),this.bottomLeftBorderStroke=w>0||u>0?NB(t.left+E/2,t.top+d,w-E/2,u-H/2,gB.BOTTOM_LEFT):new SB(t.left+E/2,t.top+t.height-H/2),this.topLeftBorderBox=n>0||B>0?NB(t.left,t.top,n,B,gB.TOP_LEFT):new SB(t.left,t.top),this.topRightBorderBox=o>0||i>0?NB(t.left+U,t.top,o,i,gB.TOP_RIGHT):new SB(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||g>0?NB(t.left+h,t.top+F,c,g,gB.BOTTOM_RIGHT):new SB(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=w>0||u>0?NB(t.left,t.top+d,w,u,gB.BOTTOM_LEFT):new SB(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||B>0?NB(t.left+E,t.top+f,Math.max(0,n-E),Math.max(0,B-f),gB.TOP_LEFT):new SB(t.left+E,t.top+f),this.topRightPaddingBox=o>0||i>0?NB(t.left+Math.min(U,t.width-p),t.top+f,U>t.width+p?0:Math.max(0,o-p),Math.max(0,i-f),gB.TOP_RIGHT):new SB(t.left+t.width-p,t.top+f),this.bottomRightPaddingBox=c>0||g>0?NB(t.left+Math.min(h,t.width-E),t.top+Math.min(F,t.height-H),Math.max(0,c-p),Math.max(0,g-H),gB.BOTTOM_RIGHT):new SB(t.left+t.width-p,t.top+t.height-H),this.bottomLeftPaddingBox=w>0||u>0?NB(t.left+E,t.top+Math.min(d,t.height-H),Math.max(0,w-E),Math.max(0,u-H),gB.BOTTOM_LEFT):new SB(t.left+E,t.top+t.height-H),this.topLeftContentBox=n>0||B>0?NB(t.left+E+K,t.top+f+I,Math.max(0,n-(E+K)),Math.max(0,B-(f+I)),gB.TOP_LEFT):new SB(t.left+E+K,t.top+f+I),this.topRightContentBox=o>0||i>0?NB(t.left+Math.min(U,t.width+E+K),t.top+f+I,U>t.width+E+K?0:o-E+K,i-(f+I),gB.TOP_RIGHT):new SB(t.left+t.width-(p+y),t.top+f+I),this.bottomRightContentBox=c>0||g>0?NB(t.left+Math.min(h,t.width-(E+K)),t.top+Math.min(F,t.height+f+I),Math.max(0,c-(p+y)),g-(H+m),gB.BOTTOM_RIGHT):new SB(t.left+t.width-(p+y),t.top+t.height-(H+m)),this.bottomLeftContentBox=w>0||u>0?NB(t.left+E+K,t.top+d,Math.max(0,w-(E+K)),u-(H+m),gB.BOTTOM_LEFT):new SB(t.left+E+K,t.top+t.height-(H+m))};!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"}(gB||(gB={}));var NB=function(A,e,t,r,n){var B=(Math.sqrt(2)-1)/3*4,s=t*B,o=r*B,i=A+t,a=e+r;switch(n){case gB.TOP_LEFT:return new GB(new SB(A,a),new SB(A,a-o),new SB(i-s,e),new SB(i,e));case gB.TOP_RIGHT:return new GB(new SB(A,e),new SB(A+s,e),new SB(i,a-o),new SB(i,a));case gB.BOTTOM_RIGHT:return new GB(new SB(i,e),new SB(i,e+o),new SB(A+s,a),new SB(A,a));case gB.BOTTOM_LEFT:default:return new GB(new SB(i,a),new SB(i-s,a),new SB(A,e+o),new SB(A,e))}},PB=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},kB=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},JB=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},XB=function(A,e){this.path=A,this.target=e,this.type=1},YB=function(A){this.opacity=A,this.type=2,this.target=6},WB=function(A){return 1===A.type},ZB=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},_B=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},qB=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new RB(this.container),this.container.styles.opacity<1&&this.effects.push(new YB(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,n=this.container.styles.transform;this.effects.push(new JB(t,r,n))}if(0!==this.container.styles.overflowX){var B=PB(this.curves),s=kB(this.curves);ZB(B,s)?this.effects.push(new XB(B,6)):(this.effects.push(new XB(B,2)),this.effects.push(new XB(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 n=t.effects.filter((function(A){return!WB(A)}));if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,n),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var B=PB(t.curves),s=kB(t.curves);ZB(B,s)||r.unshift(new XB(s,6))}}else r.unshift.apply(r,n);t=t.parent}return r.filter((function(e){return gr(e.target,A)}))},A}(),zB=function A(e,t,r,n){e.container.elements.forEach((function(B){var s=gr(B.flags,4),o=gr(B.flags,2),i=new qB(B,e);gr(B.styles.display,2048)&&n.push(i);var a=gr(B.flags,8)?[]:n;if(s||o){var c=s||B.styles.isPositioned()?r:t,g=new _B(i);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var Q=B.styles.zIndex.order;if(Q<0){var w=0;c.negativeZIndex.some((function(A,e){return Q>A.element.container.styles.zIndex.order?(w=e,!1):w>0})),c.negativeZIndex.splice(w,0,g)}else if(Q>0){var u=0;c.positiveZIndex.some((function(A,e){return Q>=A.element.container.styles.zIndex.order?(u=e+1,!1):u>0})),c.positiveZIndex.splice(u,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else B.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);A(i,g,s?g:r,a)}else B.styles.isInlineLevel()?t.inlineLevel.push(i):t.nonInlineLevel.push(i),A(i,t,r,a);gr(B.flags,8)&&jB(B,a)}))},jB=function(A,e){for(var t=A instanceof wn?A.start:1,r=A instanceof wn&&A.reversed,n=0;n<e.length;n++){var B=e[n];B.container instanceof Qn&&"number"==typeof B.container.value&&0!==B.container.value&&(t=B.container.value),B.listValue=iB(t,B.container.styles.listStyleType,!0),t+=r?-1:1}},$B=function(A){var e=new qB(A,null),t=new _B(e),r=[];return zB(e,t,t,r),jB(e.container,r),t},As=function(A,e){switch(e){case 0:return ts(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return ts(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return ts(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return ts(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},es=function(A,e){var t=[];return VB(A)?t.push(A.subdivide(.5,!1)):t.push(A),VB(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},ts=function(A,e,t,r){var n=[];return VB(A)?n.push(A.subdivide(.5,!1)):n.push(A),VB(t)?n.push(t.subdivide(.5,!0)):n.push(t),VB(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),VB(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},rs=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},ns=function(A){var e=A.styles,t=A.bounds,r=oe(e.paddingLeft,t.width),n=oe(e.paddingRight,t.width),B=oe(e.paddingTop,t.width),s=oe(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+B+s))},Bs=function(A,e,t){var r=function(A,e){return 0===A?e.bounds:2===A?ns(e):rs(e)}(as(A.styles.backgroundOrigin,e),A),n=function(A,e){return 0===A?e.bounds:2===A?ns(e):rs(e)}(as(A.styles.backgroundClip,e),A),B=is(as(A.styles.backgroundSize,e),t,r),s=B[0],o=B[1],i=se(as(A.styles.backgroundPosition,e),r.width-s,r.height-o);return[cs(as(A.styles.backgroundRepeat,e),i,B,r,n),Math.round(r.left+i[0]),Math.round(r.top+i[1]),s,o]},ss=function(A){return WA(A)&&A.value===ke.AUTO},os=function(A){return"number"==typeof A},is=function(A,e,t){var r=e[0],n=e[1],B=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(ee(s)&&o&&ee(o))return[oe(s,t.width),oe(o,t.height)];var i=os(B);if(WA(s)&&(s.value===ke.CONTAIN||s.value===ke.COVER))return os(B)?t.width/t.height<B!=(s.value===ke.COVER)?[t.width,t.width/B]:[t.height*B,t.height]:[t.width,t.height];var a=os(r),c=os(n),g=a||c;if(ss(s)&&(!o||ss(o)))return a&&c?[r,n]:i||g?g&&i?[a?r:n*B,c?n:r/B]:[a?r:t.width,c?n:t.height]:[t.width,t.height];if(i){var Q=0,w=0;return ee(s)?Q=oe(s,t.width):ee(o)&&(w=oe(o,t.height)),ss(s)?Q=w*B:o&&!ss(o)||(w=Q/B),[Q,w]}var u=null,l=null;if(ee(s)?u=oe(s,t.width):o&&ee(o)&&(l=oe(o,t.height)),null===u||o&&!ss(o)||(l=a&&c?u/r*n:t.height),null!==l&&ss(s)&&(u=a&&c?l/n*r:t.width),null!==u&&null!==l)return[u,l];throw new Error("Unable to calculate background-size for element")},as=function(A,e){var t=A[e];return void 0===t?A[0]:t},cs=function(A,e,t,r,n){var B=e[0],s=e[1],o=t[0],i=t[1];switch(A){case 2:return[new SB(Math.round(r.left),Math.round(r.top+s)),new SB(Math.round(r.left+r.width),Math.round(r.top+s)),new SB(Math.round(r.left+r.width),Math.round(i+r.top+s)),new SB(Math.round(r.left),Math.round(i+r.top+s))];case 3:return[new SB(Math.round(r.left+B),Math.round(r.top)),new SB(Math.round(r.left+B+o),Math.round(r.top)),new SB(Math.round(r.left+B+o),Math.round(r.height+r.top)),new SB(Math.round(r.left+B),Math.round(r.height+r.top))];case 1:return[new SB(Math.round(r.left+B),Math.round(r.top+s)),new SB(Math.round(r.left+B+o),Math.round(r.top+s)),new SB(Math.round(r.left+B+o),Math.round(r.top+s+i)),new SB(Math.round(r.left+B),Math.round(r.top+s+i))];default:return[new SB(Math.round(n.left),Math.round(n.top)),new SB(Math.round(n.left+n.width),Math.round(n.top)),new SB(Math.round(n.left+n.width),Math.round(n.height+n.top)),new SB(Math.round(n.left),Math.round(n.height+n.top))]}},gs="Hidden Text",Qs=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),B=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",B.appendChild(t),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(gs)),t.appendChild(n),t.appendChild(r);var s=r.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(gs)),t.style.lineHeight="normal",r.style.verticalAlign="super";var o=r.offsetTop-t.offsetTop+2;return B.removeChild(t),{baseline:s,middle:o}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),ws=function(A,e){this.context=A,this.options=e},us=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new Qs(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return r(e,A),e.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach((function(A){return e.applyEffect(A)}))},e.prototype.applyEffect=function(A){this.ctx.save(),function(A){return 2===A.type}(A)&&(this.ctx.globalAlpha=A.opacity),function(A){return 0===A.type}(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),WB(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return B(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(A){return B(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return gr(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(A,e,t){var r=this;0===e?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):An(A.text).reduce((function(e,n){return r.ctx.fillText(n,e,A.bounds.top+t),e+r.ctx.measureText(n).width}),A.bounds.left)},e.prototype.createFontStyle=function(A){var e=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),t=hs(A.fontFamily).join(", "),r=XA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},e.prototype.renderTextNode=function(A,e){return B(this,void 0,void 0,(function(){var t,r,n,B,o,i,a,c,g=this;return s(this,(function(s){return t=this.createFontStyle(e),r=t[0],n=t[1],B=t[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(n,B),i=o.baseline,a=o.middle,c=e.paintOrder,A.textBounds.forEach((function(A){c.forEach((function(t){switch(t){case 0:g.ctx.fillStyle=Ce(e.color),g.renderTextWithLetterSpacing(A,e.letterSpacing,i);var r=e.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach((function(t){g.ctx.shadowColor=Ce(t.color),g.ctx.shadowOffsetX=t.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=t.offsetY.number*g.options.scale,g.ctx.shadowBlur=t.blur.number,g.renderTextWithLetterSpacing(A,e.letterSpacing,i)})),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),e.textDecorationLine.length&&(g.ctx.fillStyle=Ce(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:g.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+i),A.bounds.width,1);break;case 2:g.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:g.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+a),A.bounds.width,1)}})));break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(g.ctx.strokeStyle=Ce(e.webkitTextStrokeColor),g.ctx.lineWidth=e.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+i)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter"}}))})),[2]}))}))},e.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=ns(A),n=kB(e);this.path(n),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()}},e.prototype.renderNodeContent=function(A){return B(this,void 0,void 0,(function(){var t,r,n,B,o,a,c,g,Q,w,u,l,C,U,F,h,d,f;return s(this,(function(s){switch(s.label){case 0:this.applyEffects(A.getEffects(4)),t=A.container,r=A.curves,n=t.styles,B=0,o=t.textNodes,s.label=1;case 1:return B<o.length?(a=o[B],[4,this.renderTextNode(a,n)]):[3,4];case 2:s.sent(),s.label=3;case 3:return B++,[3,1];case 4:if(!(t instanceof an))return[3,8];s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return F=s.sent(),this.renderReplacedElement(t,r,F),[3,8];case 7:return s.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof cn&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof gn))return[3,12];s.label=9;case 9:return s.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return F=s.sent(),this.renderReplacedElement(t,r,F),[3,12];case 11:return s.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Hn&&t.tree?[4,new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=s.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),s.label=14;case 14:if(t instanceof dn&&(g=Math.min(t.bounds.width,t.bounds.height),t.type===Cn?t.checked&&(this.ctx.save(),this.path([new SB(t.bounds.left+.39363*g,t.bounds.top+.79*g),new SB(t.bounds.left+.16*g,t.bounds.top+.5549*g),new SB(t.bounds.left+.27347*g,t.bounds.top+.44071*g),new SB(t.bounds.left+.39694*g,t.bounds.top+.5649*g),new SB(t.bounds.left+.72983*g,t.bounds.top+.23*g),new SB(t.bounds.left+.84*g,t.bounds.top+.34085*g),new SB(t.bounds.left+.39363*g,t.bounds.top+.79*g)]),this.ctx.fillStyle=Ce(hn),this.ctx.fill(),this.ctx.restore()):t.type===Un&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+g/2,t.bounds.top+g/2,g/4,0,2*Math.PI,!0),this.ctx.fillStyle=Ce(hn),this.ctx.fill(),this.ctx.restore())),ls(t)&&t.value.length){switch(Q=this.createFontStyle(n),d=Q[0],w=Q[1],u=this.fontMetrics.getMetrics(d,w).baseline,this.ctx.font=d,this.ctx.fillStyle=Ce(n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Us(t.styles.textAlign),f=ns(t),l=0,t.styles.textAlign){case 1:l+=f.width/2;break;case 2:l+=f.width}C=f.add(l,0,0,-f.height/2+1),this.ctx.save(),this.path([new SB(f.left,f.top),new SB(f.left+f.width,f.top),new SB(f.left+f.width,f.top+f.height),new SB(f.left,f.top+f.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new zr(t.value,C),n.letterSpacing,u),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!gr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(U=t.styles.listStyleImage).type)return[3,18];F=void 0,h=U.url,s.label=15;case 15:return s.trys.push([15,17,,18]),[4,this.context.cache.match(h)];case 16:return F=s.sent(),this.ctx.drawImage(F,t.bounds.left-(F.width+10),t.bounds.top),[3,18];case 17:return s.sent(),this.context.logger.error("Error loading list-style-image "+h),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==t.styles.listStyleType&&(d=this.createFontStyle(n)[0],this.ctx.font=d,this.ctx.fillStyle=Ce(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",f=new i(t.bounds.left,t.bounds.top+oe(t.styles.paddingTop,t.bounds.width),t.bounds.width,Kt(n.lineHeight,n.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new zr(A.listValue,f),n.letterSpacing,Kt(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),s.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(A){return B(this,void 0,void 0,(function(){var e,t,r,n,B,o,i,a,c,g,Q,w,u,l,C;return s(this,(function(s){switch(s.label){case 0:return gr(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:s.sent(),e=0,t=A.negativeZIndex,s.label=2;case 2:return e<t.length?(C=t[e],[4,this.renderStack(C)]):[3,5];case 3:s.sent(),s.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:s.sent(),r=0,n=A.nonInlineLevel,s.label=7;case 7:return r<n.length?(C=n[r],[4,this.renderNode(C)]):[3,10];case 8:s.sent(),s.label=9;case 9:return r++,[3,7];case 10:B=0,o=A.nonPositionedFloats,s.label=11;case 11:return B<o.length?(C=o[B],[4,this.renderStack(C)]):[3,14];case 12:s.sent(),s.label=13;case 13:return B++,[3,11];case 14:i=0,a=A.nonPositionedInlineLevel,s.label=15;case 15:return i<a.length?(C=a[i],[4,this.renderStack(C)]):[3,18];case 16:s.sent(),s.label=17;case 17:return i++,[3,15];case 18:c=0,g=A.inlineLevel,s.label=19;case 19:return c<g.length?(C=g[c],[4,this.renderNode(C)]):[3,22];case 20:s.sent(),s.label=21;case 21:return c++,[3,19];case 22:Q=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,s.label=23;case 23:return Q<w.length?(C=w[Q],[4,this.renderStack(C)]):[3,26];case 24:s.sent(),s.label=25;case 25:return Q++,[3,23];case 26:u=0,l=A.positiveZIndex,s.label=27;case 27:return u<l.length?(C=l[u],[4,this.renderStack(C)]):[3,30];case 28:s.sent(),s.label=29;case 29:return u++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var e=this;A.forEach((function(A,t){var r=VB(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),VB(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},e.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},e.prototype.resizeImage=function(A,e,t){var r;if(A.width===e&&A.height===t)return A;var n=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return n.width=Math.max(1,e),n.height=Math.max(1,t),n.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),n},e.prototype.renderBackgroundImage=function(A){return B(this,void 0,void 0,(function(){var e,t,r,n,B,o;return s(this,(function(i){switch(i.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var n,B,o,i,a,c,g,Q,w,u,l,C,U,F,h,d,f,p,H,E,I,y,m,K,v,L,b,D,M,x,T;return s(this,(function(s){switch(s.label){case 0:if(0!==t.type)return[3,5];n=void 0,B=t.url,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r.context.cache.match(B)];case 2:return n=s.sent(),[3,4];case 3:return s.sent(),r.context.logger.error("Error loading background-image "+B),[3,4];case 4:return n&&(o=Bs(A,e,[n.width,n.height,n.width/n.height]),d=o[0],y=o[1],m=o[2],H=o[3],E=o[4],F=r.ctx.createPattern(r.resizeImage(n,H,E),"repeat"),r.renderRepeat(d,F,y,m)),[3,6];case 5:1===t.type?(i=Bs(A,e,[null,null,null]),d=i[0],y=i[1],m=i[2],H=i[3],E=i[4],a=ve(t.angle,H,E),c=a[0],g=a[1],Q=a[2],w=a[3],u=a[4],(l=document.createElement("canvas")).width=H,l.height=E,C=l.getContext("2d"),U=C.createLinearGradient(g,w,Q,u),Ke(t.stops,c).forEach((function(A){return U.addColorStop(A.stop,Ce(A.color))})),C.fillStyle=U,C.fillRect(0,0,H,E),H>0&&E>0&&(F=r.ctx.createPattern(l,"repeat"),r.renderRepeat(d,F,y,m))):function(A){return 2===A.type}(t)&&(h=Bs(A,e,[null,null,null]),d=h[0],f=h[1],p=h[2],H=h[3],E=h[4],I=0===t.position.length?[ne]:t.position,y=oe(I[0],H),m=oe(I[I.length-1],E),K=function(A,e,t,r,n){var B=0,s=0;switch(A.size){case 0:0===A.shape?B=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(B=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===A.shape)B=s=Math.min(Le(e,t),Le(e,t-n),Le(e-r,t),Le(e-r,t-n));else if(1===A.shape){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),i=be(r,n,e,t,!0),a=i[0],c=i[1];s=o*(B=Le(a-e,(c-t)/o))}break;case 1:0===A.shape?B=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(B=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===A.shape)B=s=Math.max(Le(e,t),Le(e,t-n),Le(e-r,t),Le(e-r,t-n));else if(1===A.shape){o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var g=be(r,n,e,t,!1);a=g[0],c=g[1],s=o*(B=Le(a-e,(c-t)/o))}}return Array.isArray(A.size)&&(B=oe(A.size[0],r),s=2===A.size.length?oe(A.size[1],n):B),[B,s]}(t,y,m,H,E),v=K[0],L=K[1],v>0&&L>0&&(b=r.ctx.createRadialGradient(f+y,p+m,0,f+y,p+m,v),Ke(t.stops,2*v).forEach((function(A){return b.addColorStop(A.stop,Ce(A.color))})),r.path(d),r.ctx.fillStyle=b,v!==L?(D=A.bounds.left+.5*A.bounds.width,M=A.bounds.top+.5*A.bounds.height,T=1/(x=L/v),r.ctx.save(),r.ctx.translate(D,M),r.ctx.transform(1,0,0,x,0,0),r.ctx.translate(-D,-M),r.ctx.fillRect(f,T*(p-M)+M,H,E*T),r.ctx.restore()):r.ctx.fill())),s.label=6;case 6:return e--,[2]}}))},r=this,n=0,B=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return n<B.length?(o=B[n],[5,t(o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},e.prototype.renderSolidBorder=function(A,e,t){return B(this,void 0,void 0,(function(){return s(this,(function(r){return this.path(As(t,e)),this.ctx.fillStyle=Ce(A),this.ctx.fill(),[2]}))}))},e.prototype.renderDoubleBorder=function(A,e,t,r){return B(this,void 0,void 0,(function(){var n,B;return s(this,(function(s){switch(s.label){case 0:return e<3?[4,this.renderSolidBorder(A,t,r)]:[3,2];case 1:return s.sent(),[2];case 2:return n=function(A,e){switch(e){case 0:return ts(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return ts(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return ts(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return ts(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}}(r,t),this.path(n),this.ctx.fillStyle=Ce(A),this.ctx.fill(),B=function(A,e){switch(e){case 0:return ts(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return ts(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return ts(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return ts(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}}(r,t),this.path(B),this.ctx.fill(),[2]}}))}))},e.prototype.renderNodeBackgroundAndBorders=function(A){return B(this,void 0,void 0,(function(){var e,t,r,n,B,o,i,a,c=this;return s(this,(function(s){switch(s.label){case 0:return this.applyEffects(A.getEffects(2)),e=A.container.styles,t=!le(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],n=Cs(as(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(n),this.ctx.clip(),le(e.backgroundColor)||(this.ctx.fillStyle=Ce(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:s.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){c.ctx.save();var t,r,n,B,s,o=PB(A.curves),i=e.inset?0:1e4,a=(t=o,r=-i+(e.inset?1:-1)*e.spread.number,n=(e.inset?1:-1)*e.spread.number,B=e.spread.number*(e.inset?-2:2),s=e.spread.number*(e.inset?-2:2),t.map((function(A,e){switch(e){case 0:return A.add(r,n);case 1:return A.add(r+B,n);case 2:return A.add(r+B,n+s);case 3:return A.add(r,n+s)}return A})));e.inset?(c.path(o),c.ctx.clip(),c.mask(a)):(c.mask(o),c.ctx.clip(),c.path(a)),c.ctx.shadowOffsetX=e.offsetX.number+i,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=Ce(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?Ce(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),s.label=2;case 2:B=0,o=0,i=r,s.label=3;case 3:return o<i.length?0!==(a=i[o]).style&&!le(a.color)&&a.width>0?2!==a.style?[3,5]:[4,this.renderDashedDottedBorder(a.color,a.width,B,A.curves,2)]:[3,11]:[3,13];case 4:return s.sent(),[3,11];case 5:return 3!==a.style?[3,7]:[4,this.renderDashedDottedBorder(a.color,a.width,B,A.curves,3)];case 6:return s.sent(),[3,11];case 7:return 4!==a.style?[3,9]:[4,this.renderDoubleBorder(a.color,a.width,B,A.curves)];case 8:return s.sent(),[3,11];case 9:return[4,this.renderSolidBorder(a.color,B,A.curves)];case 10:s.sent(),s.label=11;case 11:B++,s.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(A,e,t,r,n){return B(this,void 0,void 0,(function(){var B,o,i,a,c,g,Q,w,u,l,C,U,F,h,d,f;return s(this,(function(s){return this.ctx.save(),B=function(A,e){switch(e){case 0:return es(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return es(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return es(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return es(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(r,t),o=As(r,t),2===n&&(this.path(o),this.ctx.clip()),VB(o[0])?(i=o[0].start.x,a=o[0].start.y):(i=o[0].x,a=o[0].y),VB(o[1])?(c=o[1].end.x,g=o[1].end.y):(c=o[1].x,g=o[1].y),Q=0===t||2===t?Math.abs(i-c):Math.abs(a-g),this.ctx.beginPath(),3===n?this.formatPath(B):this.formatPath(o.slice(0,2)),w=e<3?3*e:2*e,u=e<3?2*e:e,3===n&&(w=e,u=e),l=!0,Q<=2*w?l=!1:Q<=2*w+u?(w*=C=Q/(2*w+u),u*=C):(U=Math.floor((Q+u)/(w+u)),F=(Q-U*w)/(U-1),u=(h=(Q-(U+1)*w)/U)<=0||Math.abs(u-F)<Math.abs(u-h)?F:h),l&&(3===n?this.ctx.setLineDash([0,w+u]):this.ctx.setLineDash([w,u])),3===n?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=Ce(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===n&&(VB(o[0])&&(d=o[3],f=o[0],this.ctx.beginPath(),this.formatPath([new SB(d.end.x,d.end.y),new SB(f.start.x,f.start.y)]),this.ctx.stroke()),VB(o[1])&&(d=o[1],f=o[2],this.ctx.beginPath(),this.formatPath([new SB(d.end.x,d.end.y),new SB(f.start.x,f.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},e.prototype.render=function(A){return B(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ce(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=$B(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},e}(ws),ls=function(A){return A instanceof pn||(A instanceof fn||A instanceof dn&&A.type!==Un&&A.type!==Cn)},Cs=function(A,e){switch(A){case 0:return PB(e);case 2:return function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]}(e);default:return kB(e)}},Us=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},Fs=["-apple-system","system-ui"],hs=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===Fs.indexOf(A)})):A},ds=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return r(e,A),e.prototype.render=function(A){return B(this,void 0,void 0,(function(){var e,t;return s(this,(function(r){switch(r.label){case 0:return e=Zr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,fs(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ce(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(ws),fs=function(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},ps=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,o([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,o([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,o([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,o([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),Hs=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new ps({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new mB(this,e)}return A.instanceCount=1,A}();e("h",(function(A,e){return void 0===e&&(e={}),Is(A,e)}));"undefined"!=typeof window&&yB.setContext(window);var Es,Is=function(e,t){return B(void 0,void 0,void 0,(function(){var r,B,o,c,g,Q,w,u,l,C,U,F,h,d,f,p,H,E,I,y,m,K,v,L,b,D,M,x,T,S,O,G,V,R,N,P,k,J;return s(this,(function(s){switch(s.label){case 0:if(!e||"object"!==A(e))return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(B=r.defaultView))throw new Error("Document is not attached to a Window");return o={allowTaint:null!==(K=t.allowTaint)&&void 0!==K&&K,imageTimeout:null!==(v=t.imageTimeout)&&void 0!==v?v:15e3,proxy:t.proxy,useCORS:null!==(L=t.useCORS)&&void 0!==L&&L},c=n({logging:null===(b=t.logging)||void 0===b||b,cache:t.cache},o),g={windowWidth:null!==(D=t.windowWidth)&&void 0!==D?D:B.innerWidth,windowHeight:null!==(M=t.windowHeight)&&void 0!==M?M:B.innerHeight,scrollX:null!==(x=t.scrollX)&&void 0!==x?x:B.pageXOffset,scrollY:null!==(T=t.scrollY)&&void 0!==T?T:B.pageYOffset},Q=new i(g.scrollX,g.scrollY,g.windowWidth,g.windowHeight),w=new Hs(c,Q),u=null!==(S=t.foreignObjectRendering)&&void 0!==S&&S,l={allowTaint:null!==(O=t.allowTaint)&&void 0!==O&&O,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:u,copyStyles:u},w.logger.debug("Starting document clone with size "+Q.width+"x"+Q.height+" scrolled to "+-Q.left+","+-Q.top),C=new cB(w,e,l),(U=C.clonedReferenceElement)?[4,C.toIFrame(r,Q)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return F=s.sent(),h=Gn(U)||"HTML"===U.tagName?function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new i(0,0,r,n)}(U.ownerDocument):a(w,U),d=h.width,f=h.height,p=h.left,H=h.top,E=ys(w,U,t.backgroundColor),I={canvas:t.canvas,backgroundColor:E,scale:null!==(V=null!==(G=t.scale)&&void 0!==G?G:B.devicePixelRatio)&&void 0!==V?V:1,x:(null!==(R=t.x)&&void 0!==R?R:0)+p,y:(null!==(N=t.y)&&void 0!==N?N:0)+H,width:null!==(P=t.width)&&void 0!==P?P:Math.ceil(d),height:null!==(k=t.height)&&void 0!==k?k:Math.ceil(f)},u?(w.logger.debug("Document cloned, using foreign object rendering"),[4,new ds(w,I).render(U)]):[3,3];case 2:return y=s.sent(),[3,5];case 3:return w.logger.debug("Document cloned, element located at "+p+","+H+" with size "+d+"x"+f+" using computed rendering"),w.logger.debug("Starting DOM parsing"),m=mn(w,U),E===m.styles.backgroundColor&&(m.styles.backgroundColor=Ee.TRANSPARENT),w.logger.debug("Starting renderer for element at "+I.x+","+I.y+" with size "+I.width+"x"+I.height),[4,new us(w,I).render(m)];case 4:y=s.sent(),s.label=5;case 5:return(null===(J=t.removeContainer)||void 0===J||J)&&(cB.destroy(F)||w.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),w.logger.debug("Finished rendering"),[2,y]}}))}))},ys=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?He(A,getComputedStyle(r.documentElement).backgroundColor):Ee.TRANSPARENT,B=r.body?He(A,getComputedStyle(r.body).backgroundColor):Ee.TRANSPARENT,s="string"==typeof t?He(A,t):null===t?Ee.TRANSPARENT:4294967295;return e===r.documentElement?le(n)?le(B)?s:B:n:s},ms=(e("i","./assets/icon_logo.d4268eb2.png"),e("b",{})),Ks={},vs={},Ls=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];vs.getSymbolSize=function(A){if(!A)throw new Error('"version" cannot be null or undefined');if(A<1||A>40)throw new Error('"version" should be in range from 1 to 40');return 4*A+17},vs.getSymbolTotalCodewords=function(A){return Ls[A]},vs.getBCHDigit=function(A){for(var e=0;0!==A;)e++,A>>>=1;return e},vs.setToSJISFunction=function(A){if("function"!=typeof A)throw new Error('"toSJISFunc" is not a valid function.');Es=A},vs.isKanjiModeEnabled=function(){return void 0!==Es},vs.toSJIS=function(A){return Es(A)};var bs={};function Ds(){this.buffer=[],this.length=0}!function(A){A.L={bit:1},A.M={bit:0},A.Q={bit:3},A.H={bit:2},A.isValid=function(A){return A&&void 0!==A.bit&&A.bit>=0&&A.bit<4},A.from=function(e,t){if(A.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return A.L;case"m":case"medium":return A.M;case"q":case"quartile":return A.Q;case"h":case"high":return A.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return t}}}(bs),Ds.prototype={get:function(A){var e=Math.floor(A/8);return 1==(this.buffer[e]>>>7-A%8&1)},put:function(A,e){for(var t=0;t<e;t++)this.putBit(1==(A>>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(A){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),A&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Ms=Ds;function xs(A){if(!A||A<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=A,this.data=new Uint8Array(A*A),this.reservedBit=new Uint8Array(A*A)}xs.prototype.set=function(A,e,t,r){var n=A*this.size+e;this.data[n]=t,r&&(this.reservedBit[n]=!0)},xs.prototype.get=function(A,e){return this.data[A*this.size+e]},xs.prototype.xor=function(A,e,t){this.data[A*this.size+e]^=t},xs.prototype.isReserved=function(A,e){return this.reservedBit[A*this.size+e]};var Ts=xs,Ss={};!function(A){var e=vs.getSymbolSize;A.getRowColCoords=function(A){if(1===A)return[];for(var t=Math.floor(A/7)+2,r=e(A),n=145===r?26:2*Math.ceil((r-13)/(2*t-2)),B=[r-7],s=1;s<t-1;s++)B[s]=B[s-1]-n;return B.push(6),B.reverse()},A.getPositions=function(e){for(var t=[],r=A.getRowColCoords(e),n=r.length,B=0;B<n;B++)for(var s=0;s<n;s++)0===B&&0===s||0===B&&s===n-1||B===n-1&&0===s||t.push([r[B],r[s]]);return t}}(Ss);var Os={},Gs=vs.getSymbolSize;Os.getPositions=function(A){var e=Gs(A);return[[0,0],[e-7,0],[0,e-7]]};var Vs={};!function(A){A.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e=3,t=3,r=40,n=10;function B(e,t,r){switch(e){case A.Patterns.PATTERN000:return(t+r)%2==0;case A.Patterns.PATTERN001:return t%2==0;case A.Patterns.PATTERN010:return r%3==0;case A.Patterns.PATTERN011:return(t+r)%3==0;case A.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case A.Patterns.PATTERN101:return t*r%2+t*r%3==0;case A.Patterns.PATTERN110:return(t*r%2+t*r%3)%2==0;case A.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}A.isValid=function(A){return null!=A&&""!==A&&!isNaN(A)&&A>=0&&A<=7},A.from=function(e){return A.isValid(e)?parseInt(e,10):void 0},A.getPenaltyN1=function(A){for(var t=A.size,r=0,n=0,B=0,s=null,o=null,i=0;i<t;i++){n=B=0,s=o=null;for(var a=0;a<t;a++){var c=A.get(i,a);c===s?n++:(n>=5&&(r+=e+(n-5)),s=c,n=1),(c=A.get(a,i))===o?B++:(B>=5&&(r+=e+(B-5)),o=c,B=1)}n>=5&&(r+=e+(n-5)),B>=5&&(r+=e+(B-5))}return r},A.getPenaltyN2=function(A){for(var e=A.size,r=0,n=0;n<e-1;n++)for(var B=0;B<e-1;B++){var s=A.get(n,B)+A.get(n,B+1)+A.get(n+1,B)+A.get(n+1,B+1);4!==s&&0!==s||r++}return r*t},A.getPenaltyN3=function(A){for(var e=A.size,t=0,n=0,B=0,s=0;s<e;s++){n=B=0;for(var o=0;o<e;o++)n=n<<1&2047|A.get(s,o),o>=10&&(1488===n||93===n)&&t++,B=B<<1&2047|A.get(o,s),o>=10&&(1488===B||93===B)&&t++}return t*r},A.getPenaltyN4=function(A){for(var e=0,t=A.data.length,r=0;r<t;r++)e+=A.data[r];return Math.abs(Math.ceil(100*e/t/5)-10)*n},A.applyMask=function(A,e){for(var t=e.size,r=0;r<t;r++)for(var n=0;n<t;n++)e.isReserved(n,r)||e.xor(n,r,B(A,n,r))},A.getBestMask=function(e,t){for(var r=Object.keys(A.Patterns).length,n=0,B=1/0,s=0;s<r;s++){t(s),A.applyMask(s,e);var o=A.getPenaltyN1(e)+A.getPenaltyN2(e)+A.getPenaltyN3(e)+A.getPenaltyN4(e);A.applyMask(s,e),o<B&&(B=o,n=s)}return n}}(Vs);var Rs={},Ns=bs,Ps=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ks=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Rs.getBlocksCount=function(A,e){switch(e){case Ns.L:return Ps[4*(A-1)+0];case Ns.M:return Ps[4*(A-1)+1];case Ns.Q:return Ps[4*(A-1)+2];case Ns.H:return Ps[4*(A-1)+3];default:return}},Rs.getTotalCodewordsCount=function(A,e){switch(e){case Ns.L:return ks[4*(A-1)+0];case Ns.M:return ks[4*(A-1)+1];case Ns.Q:return ks[4*(A-1)+2];case Ns.H:return ks[4*(A-1)+3];default:return}};var Js={},Xs={},Ys=new Uint8Array(512),Ws=new Uint8Array(256);!function(){for(var A=1,e=0;e<255;e++)Ys[e]=A,Ws[A]=e,256&(A<<=1)&&(A^=285);for(var t=255;t<512;t++)Ys[t]=Ys[t-255]}(),Xs.log=function(A){if(A<1)throw new Error("log("+A+")");return Ws[A]},Xs.exp=function(A){return Ys[A]},Xs.mul=function(A,e){return 0===A||0===e?0:Ys[Ws[A]+Ws[e]]},function(A){var e=Xs;A.mul=function(A,t){for(var r=new Uint8Array(A.length+t.length-1),n=0;n<A.length;n++)for(var B=0;B<t.length;B++)r[n+B]^=e.mul(A[n],t[B]);return r},A.mod=function(A,t){for(var r=new Uint8Array(A);r.length-t.length>=0;){for(var n=r[0],B=0;B<t.length;B++)r[B]^=e.mul(t[B],n);for(var s=0;s<r.length&&0===r[s];)s++;r=r.slice(s)}return r},A.generateECPolynomial=function(t){for(var r=new Uint8Array([1]),n=0;n<t;n++)r=A.mul(r,new Uint8Array([1,e.exp(n)]));return r}}(Js);var Zs=Js;function _s(A){this.genPoly=void 0,this.degree=A,this.degree&&this.initialize(this.degree)}_s.prototype.initialize=function(A){this.degree=A,this.genPoly=Zs.generateECPolynomial(this.degree)},_s.prototype.encode=function(A){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new Uint8Array(A.length+this.degree);e.set(A);var t=Zs.mod(e,this.genPoly),r=this.degree-t.length;if(r>0){var n=new Uint8Array(this.degree);return n.set(t,r),n}return t};var qs=_s,zs={},js={},$s={isValid:function(A){return!isNaN(A)&&A>=1&&A<=40}},Ao={},eo="[0-9]+",to="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",ro="(?:(?![A-Z0-9 $%*+\\-./:]|"+(to=to.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";Ao.KANJI=new RegExp(to,"g"),Ao.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ao.BYTE=new RegExp(ro,"g"),Ao.NUMERIC=new RegExp(eo,"g"),Ao.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var no=new RegExp("^"+to+"$"),Bo=new RegExp("^[0-9]+$"),so=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ao.testKanji=function(A){return no.test(A)},Ao.testNumeric=function(A){return Bo.test(A)},Ao.testAlphanumeric=function(A){return so.test(A)},function(A){var e=$s,t=Ao;A.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},A.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},A.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},A.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},A.MIXED={bit:-1},A.getCharCountIndicator=function(A,t){if(!A.ccBits)throw new Error("Invalid mode: "+A);if(!e.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?A.ccBits[0]:t<27?A.ccBits[1]:A.ccBits[2]},A.getBestModeForData=function(e){return t.testNumeric(e)?A.NUMERIC:t.testAlphanumeric(e)?A.ALPHANUMERIC:t.testKanji(e)?A.KANJI:A.BYTE},A.toString=function(A){if(A&&A.id)return A.id;throw new Error("Invalid mode")},A.isValid=function(A){return A&&A.bit&&A.ccBits},A.from=function(e,t){if(A.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return A.NUMERIC;case"alphanumeric":return A.ALPHANUMERIC;case"kanji":return A.KANJI;case"byte":return A.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return t}}}(js),function(A){var e=vs,t=Rs,r=bs,n=js,B=$s,s=e.getBCHDigit(7973);function o(A,e){return n.getCharCountIndicator(A,e)+4}function i(A,e){var t=0;return A.forEach((function(A){var r=o(A.mode,e);t+=r+A.getBitsLength()})),t}A.from=function(A,e){return B.isValid(A)?parseInt(A,10):e},A.getCapacity=function(A,r,s){if(!B.isValid(A))throw new Error("Invalid QR Code version");void 0===s&&(s=n.BYTE);var i=8*(e.getSymbolTotalCodewords(A)-t.getTotalCodewordsCount(A,r));if(s===n.MIXED)return i;var a=i-o(s,A);switch(s){case n.NUMERIC:return Math.floor(a/10*3);case n.ALPHANUMERIC:return Math.floor(a/11*2);case n.KANJI:return Math.floor(a/13);case n.BYTE:default:return Math.floor(a/8)}},A.getBestVersionForData=function(e,t){var B,s=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,t){for(var r=1;r<=40;r++)if(i(e,r)<=A.getCapacity(r,t,n.MIXED))return r}(e,s);if(0===e.length)return 1;B=e[0]}else B=e;return function(e,t,r){for(var n=1;n<=40;n++)if(t<=A.getCapacity(n,r,e))return n}(B.mode,B.getLength(),s)},A.getEncodedBits=function(A){if(!B.isValid(A)||A<7)throw new Error("Invalid QR Code version");for(var t=A<<12;e.getBCHDigit(t)-s>=0;)t^=7973<<e.getBCHDigit(t)-s;return A<<12|t}}(zs);var oo={},io=vs,ao=io.getBCHDigit(1335);oo.getEncodedBits=function(A,e){for(var t=A.bit<<3|e,r=t<<10;io.getBCHDigit(r)-ao>=0;)r^=1335<<io.getBCHDigit(r)-ao;return 21522^(t<<10|r)};var co={},go=js;function Qo(A){this.mode=go.NUMERIC,this.data=A.toString()}Qo.getBitsLength=function(A){return 10*Math.floor(A/3)+(A%3?A%3*3+1:0)},Qo.prototype.getLength=function(){return this.data.length},Qo.prototype.getBitsLength=function(){return Qo.getBitsLength(this.data.length)},Qo.prototype.write=function(A){var e,t,r;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),r=parseInt(t,10),A.put(r,10);var n=this.data.length-e;n>0&&(t=this.data.substr(e),r=parseInt(t,10),A.put(r,3*n+1))};var wo=Qo,uo=js,lo=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Co(A){this.mode=uo.ALPHANUMERIC,this.data=A}Co.getBitsLength=function(A){return 11*Math.floor(A/2)+A%2*6},Co.prototype.getLength=function(){return this.data.length},Co.prototype.getBitsLength=function(){return Co.getBitsLength(this.data.length)},Co.prototype.write=function(A){var e;for(e=0;e+2<=this.data.length;e+=2){var t=45*lo.indexOf(this.data[e]);t+=lo.indexOf(this.data[e+1]),A.put(t,11)}this.data.length%2&&A.put(lo.indexOf(this.data[e]),6)};var Uo=Co,Fo=function(A){for(var e=[],t=A.length,r=0;r<t;r++){var n=A.charCodeAt(r);if(n>=55296&&n<=56319&&t>r+1){var B=A.charCodeAt(r+1);B>=56320&&B<=57343&&(n=1024*(n-55296)+B-56320+65536,r+=1)}n<128?e.push(n):n<2048?(e.push(n>>6|192),e.push(63&n|128)):n<55296||n>=57344&&n<65536?(e.push(n>>12|224),e.push(n>>6&63|128),e.push(63&n|128)):n>=65536&&n<=1114111?(e.push(n>>18|240),e.push(n>>12&63|128),e.push(n>>6&63|128),e.push(63&n|128)):e.push(239,191,189)}return new Uint8Array(e).buffer},ho=js;function fo(A){this.mode=ho.BYTE,"string"==typeof A&&(A=Fo(A)),this.data=new Uint8Array(A)}fo.getBitsLength=function(A){return 8*A},fo.prototype.getLength=function(){return this.data.length},fo.prototype.getBitsLength=function(){return fo.getBitsLength(this.data.length)},fo.prototype.write=function(A){for(var e=0,t=this.data.length;e<t;e++)A.put(this.data[e],8)};var po=fo,Ho=js,Eo=vs;function Io(A){this.mode=Ho.KANJI,this.data=A}Io.getBitsLength=function(A){return 13*A},Io.prototype.getLength=function(){return this.data.length},Io.prototype.getBitsLength=function(){return Io.getBitsLength(this.data.length)},Io.prototype.write=function(A){var e;for(e=0;e<this.data.length;e++){var t=Eo.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else{if(!(t>=57408&&t<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");t-=49472}t=192*(t>>>8&255)+(255&t),A.put(t,13)}};var yo=Io,mo={exports:{}};!function(A){var e={single_source_shortest_paths:function(A,t,r){var n={},B={};B[t]=0;var s,o,i,a,c,g,Q,w=e.PriorityQueue.make();for(w.push(t,0);!w.empty();)for(i in o=(s=w.pop()).value,a=s.cost,c=A[o]||{})c.hasOwnProperty(i)&&(g=a+c[i],Q=B[i],(void 0===B[i]||Q>g)&&(B[i]=g,w.push(i,g),n[i]=o));if(void 0!==r&&void 0===B[r]){var u=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(u)}return n},extract_shortest_path_from_predecessor_list:function(A,e){for(var t=[],r=e;r;)t.push(r),A[r],r=A[r];return t.reverse(),t},find_path:function(A,t,r){var n=e.single_source_shortest_paths(A,t,r);return e.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(A){var t,r=e.PriorityQueue,n={};for(t in A=A||{},r)r.hasOwnProperty(t)&&(n[t]=r[t]);return n.queue=[],n.sorter=A.sorter||r.default_sorter,n},default_sorter:function(A,e){return A.cost-e.cost},push:function(A,e){var t={value:A,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};A.exports=e}(mo),function(A){var e=js,t=wo,r=Uo,n=po,B=yo,s=Ao,o=vs,i=mo.exports;function a(A){return unescape(encodeURIComponent(A)).length}function c(A,e,t){for(var r,n=[];null!==(r=A.exec(t));)n.push({data:r[0],index:r.index,mode:e,length:r[0].length});return n}function g(A){var t,r,n=c(s.NUMERIC,e.NUMERIC,A),B=c(s.ALPHANUMERIC,e.ALPHANUMERIC,A);return o.isKanjiModeEnabled()?(t=c(s.BYTE,e.BYTE,A),r=c(s.KANJI,e.KANJI,A)):(t=c(s.BYTE_KANJI,e.BYTE,A),r=[]),n.concat(B,t,r).sort((function(A,e){return A.index-e.index})).map((function(A){return{data:A.data,mode:A.mode,length:A.length}}))}function Q(A,s){switch(s){case e.NUMERIC:return t.getBitsLength(A);case e.ALPHANUMERIC:return r.getBitsLength(A);case e.KANJI:return B.getBitsLength(A);case e.BYTE:return n.getBitsLength(A)}}function w(A,s){var i,a=e.getBestModeForData(A);if((i=e.from(s,a))!==e.BYTE&&i.bit<a.bit)throw new Error('"'+A+'" cannot be encoded with mode '+e.toString(i)+".\n Suggested mode is: "+e.toString(a));switch(i!==e.KANJI||o.isKanjiModeEnabled()||(i=e.BYTE),i){case e.NUMERIC:return new t(A);case e.ALPHANUMERIC:return new r(A);case e.KANJI:return new B(A);case e.BYTE:return new n(A)}}A.fromArray=function(A){return A.reduce((function(A,e){return"string"==typeof e?A.push(w(e,null)):e.data&&A.push(w(e.data,e.mode)),A}),[])},A.fromString=function(t,r){for(var n=function(A){for(var t=[],r=0;r<A.length;r++){var n=A[r];switch(n.mode){case e.NUMERIC:t.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:t.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:t.push([n,{data:n.data,mode:e.BYTE,length:a(n.data)}]);break;case e.BYTE:t.push([{data:n.data,mode:e.BYTE,length:a(n.data)}])}}return t}(g(t,o.isKanjiModeEnabled())),B=function(A,t){for(var r={},n={start:{}},B=["start"],s=0;s<A.length;s++){for(var o=A[s],i=[],a=0;a<o.length;a++){var c=o[a],g=""+s+a;i.push(g),r[g]={node:c,lastCount:0},n[g]={};for(var w=0;w<B.length;w++){var u=B[w];r[u]&&r[u].node.mode===c.mode?(n[u][g]=Q(r[u].lastCount+c.length,c.mode)-Q(r[u].lastCount,c.mode),r[u].lastCount+=c.length):(r[u]&&(r[u].lastCount=c.length),n[u][g]=Q(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,t))}}B=i}for(var l=0;l<B.length;l++)n[B[l]].end=0;return{map:n,table:r}}(n,r),s=i.find_path(B.map,"start","end"),c=[],w=1;w<s.length-1;w++)c.push(B.table[s[w]].node);return A.fromArray(function(A){return A.reduce((function(A,e){var t=A.length-1>=0?A[A.length-1]:null;return t&&t.mode===e.mode?(A[A.length-1].data+=e.data,A):(A.push(e),A)}),[])}(c))},A.rawSplit=function(e){return A.fromArray(g(e,o.isKanjiModeEnabled()))}}(co);var Ko=vs,vo=bs,Lo=Ms,bo=Ts,Do=Ss,Mo=Os,xo=Vs,To=Rs,So=qs,Oo=zs,Go=oo,Vo=js,Ro=co;function No(A,e,t){var r,n,B=A.size,s=Go.getEncodedBits(e,t);for(r=0;r<15;r++)n=1==(s>>r&1),r<6?A.set(r,8,n,!0):r<8?A.set(r+1,8,n,!0):A.set(B-15+r,8,n,!0),r<8?A.set(8,B-r-1,n,!0):r<9?A.set(8,15-r-1+1,n,!0):A.set(8,15-r-1,n,!0);A.set(B-8,8,1,!0)}function Po(A,e,t){var r=new Lo;t.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),Vo.getCharCountIndicator(e.mode,A)),e.write(r)}));var n=8*(Ko.getSymbolTotalCodewords(A)-To.getTotalCodewordsCount(A,e));for(r.getLengthInBits()+4<=n&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);for(var B=(n-r.getLengthInBits())/8,s=0;s<B;s++)r.put(s%2?17:236,8);return function(A,e,t){for(var r=Ko.getSymbolTotalCodewords(e),n=To.getTotalCodewordsCount(e,t),B=r-n,s=To.getBlocksCount(e,t),o=s-r%s,i=Math.floor(r/s),a=Math.floor(B/s),c=a+1,g=i-a,Q=new So(g),w=0,u=new Array(s),l=new Array(s),C=0,U=new Uint8Array(A.buffer),F=0;F<s;F++){var h=F<o?a:c;u[F]=U.slice(w,w+h),l[F]=Q.encode(u[F]),w+=h,C=Math.max(C,h)}var d,f,p=new Uint8Array(r),H=0;for(d=0;d<C;d++)for(f=0;f<s;f++)d<u[f].length&&(p[H++]=u[f][d]);for(d=0;d<g;d++)for(f=0;f<s;f++)p[H++]=l[f][d];return p}(r,A,e)}function ko(A,e,t,r){var n;if(Array.isArray(A))n=Ro.fromArray(A);else{if("string"!=typeof A)throw new Error("Invalid data");var B=e;if(!B){var s=Ro.rawSplit(A);B=Oo.getBestVersionForData(s,t)}n=Ro.fromString(A,B||40)}var o=Oo.getBestVersionForData(n,t);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<o)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+o+".\n")}else e=o;var i=Po(e,t,n),a=Ko.getSymbolSize(e),c=new bo(a);return function(A,e){for(var t=A.size,r=Mo.getPositions(e),n=0;n<r.length;n++)for(var B=r[n][0],s=r[n][1],o=-1;o<=7;o++)if(!(B+o<=-1||t<=B+o))for(var i=-1;i<=7;i++)s+i<=-1||t<=s+i||(o>=0&&o<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===o||6===o)||o>=2&&o<=4&&i>=2&&i<=4?A.set(B+o,s+i,!0,!0):A.set(B+o,s+i,!1,!0))}(c,e),function(A){for(var e=A.size,t=8;t<e-8;t++){var r=t%2==0;A.set(t,6,r,!0),A.set(6,t,r,!0)}}(c),function(A,e){for(var t=Do.getPositions(e),r=0;r<t.length;r++)for(var n=t[r][0],B=t[r][1],s=-2;s<=2;s++)for(var o=-2;o<=2;o++)-2===s||2===s||-2===o||2===o||0===s&&0===o?A.set(n+s,B+o,!0,!0):A.set(n+s,B+o,!1,!0)}(c,e),No(c,t,0),e>=7&&function(A,e){for(var t,r,n,B=A.size,s=Oo.getEncodedBits(e),o=0;o<18;o++)t=Math.floor(o/3),r=o%3+B-8-3,n=1==(s>>o&1),A.set(t,r,n,!0),A.set(r,t,n,!0)}(c,e),function(A,e){for(var t=A.size,r=-1,n=t-1,B=7,s=0,o=t-1;o>0;o-=2)for(6===o&&o--;;){for(var i=0;i<2;i++)if(!A.isReserved(n,o-i)){var a=!1;s<e.length&&(a=1==(e[s]>>>B&1)),A.set(n,o-i,a),-1==--B&&(s++,B=7)}if((n+=r)<0||t<=n){n-=r,r=-r;break}}}(c,i),isNaN(r)&&(r=xo.getBestMask(c,No.bind(null,c,t))),xo.applyMask(r,c),No(c,t,r),{modules:c,version:e,errorCorrectionLevel:t,maskPattern:r,segments:n}}Ks.create=function(A,e){if(void 0===A||""===A)throw new Error("No input text");var t,r,n=vo.M;return void 0!==e&&(n=vo.from(e.errorCorrectionLevel,vo.M),t=Oo.from(e.version),r=xo.from(e.maskPattern),e.toSJISFunc&&Ko.setToSJISFunction(e.toSJISFunc)),ko(A,t,n,r)};var Jo={},Xo={};!function(A){function e(A){if("number"==typeof A&&(A=A.toString()),"string"!=typeof A)throw new Error("Color should be defined as hex string");var e=A.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+A);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(A){return[A,A]})))),6===e.length&&e.push("F","F");var t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:255&t,hex:"#"+e.slice(0,6).join("")}}A.getOptions=function(A){A||(A={}),A.color||(A.color={});var t=void 0===A.margin||null===A.margin||A.margin<0?4:A.margin,r=A.width&&A.width>=21?A.width:void 0,n=A.scale||4;return{width:r,scale:r?4:n,margin:t,color:{dark:e(A.color.dark||"#000000ff"),light:e(A.color.light||"#ffffffff")},type:A.type,rendererOpts:A.rendererOpts||{}}},A.getScale=function(A,e){return e.width&&e.width>=A+2*e.margin?e.width/(A+2*e.margin):e.scale},A.getImageWidth=function(e,t){var r=A.getScale(e,t);return Math.floor((e+2*t.margin)*r)},A.qrToImageData=function(e,t,r){for(var n=t.modules.size,B=t.modules.data,s=A.getScale(n,r),o=Math.floor((n+2*r.margin)*s),i=r.margin*s,a=[r.color.light,r.color.dark],c=0;c<o;c++)for(var g=0;g<o;g++){var Q=4*(c*o+g),w=r.color.light;if(c>=i&&g>=i&&c<o-i&&g<o-i)w=a[B[Math.floor((c-i)/s)*n+Math.floor((g-i)/s)]?1:0];e[Q++]=w.r,e[Q++]=w.g,e[Q++]=w.b,e[Q]=w.a}}}(Xo),function(A){var e=Xo;A.render=function(A,t,r){var n=r,B=t;void 0!==n||t&&t.getContext||(n=t,t=void 0),t||(B=function(){try{return document.createElement("canvas")}catch(A){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);var s=e.getImageWidth(A.modules.size,n),o=B.getContext("2d"),i=o.createImageData(s,s);return e.qrToImageData(i.data,A,n),function(A,e,t){A.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}(o,B,s),o.putImageData(i,0,0),B},A.renderToDataURL=function(e,t,r){var n=r;void 0!==n||t&&t.getContext||(n=t,t=void 0),n||(n={});var B=A.render(e,t,n),s=n.type||"image/png",o=n.rendererOpts||{};return B.toDataURL(s,o.quality)}}(Jo);var Yo={},Wo=Xo;function Zo(A,e){var t=A.a/255,r=e+'="'+A.hex+'"';return t<1?r+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':r}function _o(A,e,t){var r=A+e;return void 0!==t&&(r+=" "+t),r}Yo.render=function(A,e,t){var r=Wo.getOptions(e),n=A.modules.size,B=A.modules.data,s=n+2*r.margin,o=r.color.light.a?"<path "+Zo(r.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",i="<path "+Zo(r.color.dark,"stroke")+' d="'+function(A,e,t){for(var r="",n=0,B=!1,s=0,o=0;o<A.length;o++){var i=Math.floor(o%e),a=Math.floor(o/e);i||B||(B=!0),A[o]?(s++,o>0&&i>0&&A[o-1]||(r+=B?_o("M",i+t,.5+a+t):_o("m",n,0),n=0,B=!1),i+1<e&&A[o+1]||(r+=_o("h",s),s=0)):n++}return r}(B,n,r.margin)+'"/>',a='viewBox="0 0 '+s+" "+s+'"',c='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+a+' shape-rendering="crispEdges">'+o+i+"</svg>\n";return"function"==typeof t&&t(null,c),c};var qo=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},zo=Ks,jo=Jo,$o=Yo;function Ai(A,e,t,r,n){var B=[].slice.call(arguments,1),s=B.length,o="function"==typeof B[s-1];if(!o&&!qo())throw new Error("Callback required as last argument");if(!o){if(s<1)throw new Error("Too few arguments provided");return 1===s?(t=e,e=r=void 0):2!==s||e.getContext||(r=t,t=e,e=void 0),new Promise((function(n,B){try{var s=zo.create(t,r);n(A(s,e,r))}catch(o){B(o)}}))}if(s<2)throw new Error("Too few arguments provided");2===s?(n=t,t=e,e=r=void 0):3===s&&(e.getContext&&void 0===n?(n=r,r=void 0):(n=r,r=t,t=e,e=void 0));try{var i=zo.create(t,r);n(null,A(i,e,r))}catch(a){n(a)}}ms.create=zo.create,ms.toCanvas=Ai.bind(null,jo.render),ms.toDataURL=Ai.bind(null,jo.renderToDataURL),ms.toString=Ai.bind(null,(function(A,e,t){return $o.render(A,t)}))}}}))}();
