(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d06b0e54"],{"072e":function(t,e,A){ /*! * html2canvas 1.0.0-rc.7 * Copyright (c) 2020 Niklas von Hertzen * Released under MIT License */ (function(e,A){t.exports=A()})(0,(function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var t=function(e,A){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var A in e)e.hasOwnProperty(A)&&(t[A]=e[A])},t(e,A)};function e(e,A){function r(){this.constructor=e}t(e,A),e.prototype=null===A?Object.create(A):(r.prototype=A.prototype,new r)}var A=function(){return A=Object.assign||function(t){for(var e,A=1,r=arguments.length;A0&&n[n.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]=55296&&n<=56319&&A>10),o%1024+56320)),(n+1===A||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h>4,u[s++]=(15&r)<<4|n>>2,u[s++]=(3&n)<<6|63&i;return c},p=function(t){for(var e=t.length,A=[],r=0;r>g,Q=1<>g,F=b+y,U=F,N=32,E=U+N,L=65536>>w,H=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>g],e=(e<>g)],e=(e<>w),e=this.index[e],e+=t>>g&S,e=this.index[e],e=(e<O?(n.push(!0),o-=O):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(i),A.push(Z);if(o===k||o===G){if(0===i)return r.push(i),A.push(ht);var a=A[i-1];return-1===It.indexOf(a)?(r.push(r[i-1]),A.push(a)):(r.push(i),A.push(ht))}return r.push(i),o===ft?A.push("strict"===e?rt:mt):o===yt||o===lt?A.push(ht):o===Ft?t>=131072&&t<=196605||t>=196608&&t<=262141?A.push(mt):A.push(ht):void A.push(o)})),[r,A,n]},Rt=function(t,e,A,r){var n=r[A];if(Array.isArray(t)?-1!==t.indexOf(n):t===n){var i=A;while(i<=r.length){i++;var o=r[i];if(o===e)return!0;if(o!==q)break}}if(n===q){i=A;while(i>0){i--;var a=r[i];if(Array.isArray(t)?-1!==t.indexOf(a):t===a){var s=A;while(s<=r.length){s++;o=r[s];if(o===e)return!0;if(o!==q)break}}if(a!==q)break}}return!1},Kt=function(t,e){var A=t;while(A>=0){var r=e[A];if(r!==q)return r;A--}return 0},Mt=function(t,e,A,r,n){if(0===A[r])return Nt;var i=r-1;if(Array.isArray(n)&&!0===n[i])return Nt;var o=i-1,a=i+1,s=e[i],c=o>=0?e[o]:0,u=e[a];if(s===K&&u===M)return Nt;if(-1!==St.indexOf(s))return Ut;if(-1!==St.indexOf(u))return Nt;if(-1!==_t.indexOf(u))return Nt;if(Kt(i,e)===z)return Et;if(Lt.get(t[i])===G&&(u===mt||u===dt||u===pt))return Nt;if(s===j||u===j)return Nt;if(s===V)return Nt;if(-1===[q,J,Y].indexOf(s)&&u===V)return Nt;if(-1!==[$,tt,et,ot,ut].indexOf(u))return Nt;if(Kt(i,e)===nt)return Nt;if(Rt(it,nt,i,e))return Nt;if(Rt([$,tt],rt,i,e))return Nt;if(Rt(X,X,i,e))return Nt;if(s===q)return Et;if(s===it||u===it)return Nt;if(u===Z||s===Z)return Et;if(-1!==[J,Y,rt].indexOf(u)||s===W)return Nt;if(c===wt&&-1!==Tt.indexOf(s))return Nt;if(s===ut&&u===wt)return Nt;if(u===At&&-1!==Ht.concat(At,et,at,mt,dt,pt).indexOf(s))return Nt;if(-1!==Ht.indexOf(u)&&s===at||-1!==Ht.indexOf(s)&&u===at)return Nt;if(s===ct&&-1!==[mt,dt,pt].indexOf(u)||-1!==[mt,dt,pt].indexOf(s)&&u===st)return Nt;if(-1!==Ht.indexOf(s)&&-1!==xt.indexOf(u)||-1!==xt.indexOf(s)&&-1!==Ht.indexOf(u))return Nt;if(-1!==[ct,st].indexOf(s)&&(u===at||-1!==[nt,Y].indexOf(u)&&e[a+1]===at)||-1!==[nt,Y].indexOf(s)&&u===at||s===at&&-1!==[at,ut,ot].indexOf(u))return Nt;if(-1!==[at,ut,ot,$,tt].indexOf(u)){var l=i;while(l>=0){var h=e[l];if(h===at)return Nt;if(-1===[ut,ot].indexOf(h))break;l--}}if(-1!==[ct,st].indexOf(u)){l=-1!==[$,tt].indexOf(s)?o:i;while(l>=0){h=e[l];if(h===at)return Nt;if(-1===[ut,ot].indexOf(h))break;l--}}if(vt===s&&-1!==[vt,bt,Bt,gt].indexOf(u)||-1!==[bt,Bt].indexOf(s)&&-1!==[bt,Qt].indexOf(u)||-1!==[Qt,gt].indexOf(s)&&u===Qt)return Nt;if(-1!==Pt.indexOf(s)&&-1!==[At,st].indexOf(u)||-1!==Pt.indexOf(u)&&s===ct)return Nt;if(-1!==Ht.indexOf(s)&&-1!==Ht.indexOf(u))return Nt;if(s===ot&&-1!==Ht.indexOf(u))return Nt;if(-1!==Ht.concat(at).indexOf(s)&&u===nt||-1!==Ht.concat(at).indexOf(u)&&s===tt)return Nt;if(s===Ct&&u===Ct){var f=A[i],d=1;while(f>0){if(f--,e[f]!==Ct)break;d++}if(d%2!==0)return Nt}return s===dt&&u===pt?Nt:Et},kt=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=Ot(t,e.lineBreak),r=A[0],n=A[1],i=A[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(t){return-1!==[at,ht,yt].indexOf(t)?mt:t})));var o="keep-all"===e.wordBreak?i.map((function(e,A){return e&&t[A]>=19968&&t[A]<=40959})):void 0;return[r,n,o]},Dt=function(){function t(t,e,A,r){this.codePoints=t,this.required=e===Ut,this.start=A,this.end=r}return t.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),jt=function(t,e){var A=s(t),r=kt(A,e),n=r[0],i=r[1],o=r[2],a=A.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};var t=Nt;while(u=Te&&t<=57},Xe=function(t){return t>=55296&&t<=57343},Je=function(t){return Ge(t)||t>=De&&t<=ze||t>=Oe&&t<=Ke},We=function(t){return t>=Oe&&t<=ke},Ye=function(t){return t>=De&&t<=qe},Ze=function(t){return We(t)||Ye(t)},$e=function(t){return t>=be},tA=function(t){return t===Xt||t===Yt||t===Zt},eA=function(t){return Ze(t)||$e(t)||t===ae},AA=function(t){return eA(t)||Ge(t)||t===se},rA=function(t){return t>=Le&&t<=He||t===Se||t>=_e&&t<=xe||t===Ie},nA=function(t,e){return t===Wt&&e!==Xt},iA=function(t,e,A){return t===se?eA(e)||nA(e,A):!!eA(t)||!(t!==Wt||!nA(t,e))},oA=function(t,e,A){return t===ye||t===se?!!Ge(e)||e===Ee&&Ge(A):Ge(t===Ee?e:t)},aA=function(t){var e=0,A=1;t[e]!==ye&&t[e]!==se||(t[e]===se&&(A=-1),e++);var r=[];while(Ge(t[e]))r.push(t[e++]);var n=r.length?parseInt(c.apply(void 0,r),10):0;t[e]===Ee&&e++;var i=[];while(Ge(t[e]))i.push(t[e++]);var o=i.length,a=o?parseInt(c.apply(void 0,i),10):0;t[e]!==je&&t[e]!==Re||e++;var s=1;t[e]!==ye&&t[e]!==se||(t[e]===se&&(s=-1),e++);var u=[];while(Ge(t[e]))u.push(t[e++]);var l=u.length?parseInt(c.apply(void 0,u),10):0;return A*(n+a*Math.pow(10,-o))*Math.pow(10,s*l)},sA={type:f.LEFT_PARENTHESIS_TOKEN},cA={type:f.RIGHT_PARENTHESIS_TOKEN},uA={type:f.COMMA_TOKEN},lA={type:f.SUFFIX_MATCH_TOKEN},hA={type:f.PREFIX_MATCH_TOKEN},fA={type:f.COLUMN_TOKEN},dA={type:f.DASH_MATCH_TOKEN},pA={type:f.INCLUDE_MATCH_TOKEN},BA={type:f.LEFT_CURLY_BRACKET_TOKEN},gA={type:f.RIGHT_CURLY_BRACKET_TOKEN},wA={type:f.SUBSTRING_MATCH_TOKEN},mA={type:f.BAD_URL_TOKEN},vA={type:f.BAD_STRING_TOKEN},bA={type:f.CDO_TOKEN},QA={type:f.CDC_TOKEN},CA={type:f.COLON_TOKEN},yA={type:f.SEMICOLON_TOKEN},FA={type:f.LEFT_SQUARE_BRACKET_TOKEN},UA={type:f.RIGHT_SQUARE_BRACKET_TOKEN},NA={type:f.WHITESPACE_TOKEN},EA={type:f.EOF_TOKEN},LA=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(s(t))},t.prototype.read=function(){var t=[],e=this.consumeToken();while(e!==EA)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case $t:return this.consumeStringToken($t);case ee:var e=this.peekCodePoint(0),A=this.peekCodePoint(1),r=this.peekCodePoint(2);if(AA(e)||nA(A,r)){var n=iA(e,A,r)?Vt:zt,i=this.consumeName();return{type:f.HASH_TOKEN,value:i,flags:n}}break;case Ae:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),lA;break;case ne:return this.consumeStringToken(ne);case ie:return sA;case oe:return cA;case Ce:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),wA;break;case ye:if(oA(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Fe:return uA;case se:var o=t,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(oA(o,a,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(iA(o,a,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(a===se&&s===le)return this.consumeCodePoint(),this.consumeCodePoint(),QA;break;case Ee:if(oA(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Jt:if(this.peekCodePoint(0)===Ce){this.consumeCodePoint();while(1){var u=this.consumeCodePoint();if(u===Ce&&(u=this.consumeCodePoint(),u===Jt))return this.consumeToken();if(u===Pe)return this.consumeToken()}}break;case Ue:return CA;case Ne:return yA;case ue:if(this.peekCodePoint(0)===ce&&this.peekCodePoint(1)===se&&this.peekCodePoint(2)===se)return this.consumeCodePoint(),this.consumeCodePoint(),bA;break;case he:var l=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(iA(l,h,d)){i=this.consumeName();return{type:f.AT_KEYWORD_TOKEN,value:i}}break;case fe:return FA;case Wt:if(nA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case de:return UA;case pe:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),hA;break;case Be:return BA;case we:return gA;case Me:case Ve:var p=this.peekCodePoint(0),B=this.peekCodePoint(1);return p!==ye||!Je(B)&&B!==ge||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case me:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),dA;if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),fA;break;case ve:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),pA;break;case Pe:return EA}return tA(t)?(this.consumeWhiteSpace(),NA):Ge(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):eA(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:f.DELIM_TOKEN,value:c(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return"undefined"===typeof t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){var t=[],e=this.consumeCodePoint();while(Je(e)&&t.length<6)t.push(e),e=this.consumeCodePoint();var A=!1;while(e===ge&&t.length<6)t.push(e),e=this.consumeCodePoint(),A=!0;if(A){var r=parseInt(c.apply(void 0,t.map((function(t){return t===ge?Te:t}))),16),n=parseInt(c.apply(void 0,t.map((function(t){return t===ge?ze:t}))),16);return{type:f.UNICODE_RANGE_TOKEN,start:r,end:n}}var i=parseInt(c.apply(void 0,t),16);if(this.peekCodePoint(0)===se&&Je(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var o=[];while(Je(e)&&o.length<6)o.push(e),e=this.consumeCodePoint();n=parseInt(c.apply(void 0,o),16);return{type:f.UNICODE_RANGE_TOKEN,start:i,end:n}}return{type:f.UNICODE_RANGE_TOKEN,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:f.FUNCTION_TOKEN,value:t}):{type:f.IDENT_TOKEN,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe)return{type:f.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(e===ne||e===$t){var A=this.consumeStringToken(this.consumeCodePoint());return A.type===f.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===oe)?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:A.value}):(this.consumeBadUrlRemnants(),mA)}while(1){var r=this.consumeCodePoint();if(r===Pe||r===oe)return{type:f.URL_TOKEN,value:c.apply(void 0,t)};if(tA(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===oe?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:c.apply(void 0,t)}):(this.consumeBadUrlRemnants(),mA);if(r===$t||r===ne||r===ie||rA(r))return this.consumeBadUrlRemnants(),mA;if(r===Wt){if(!nA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),mA;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){while(tA(this.peekCodePoint(0)))this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){while(1){var t=this.consumeCodePoint();if(t===oe||t===Pe)return;nA(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){var e=6e4,A="";while(t>0){var r=Math.min(e,t);A+=c.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),A},t.prototype.consumeStringToken=function(t){var e="",A=0;do{var r=this._value[A];if(r===Pe||void 0===r||r===t)return e+=this.consumeStringSlice(A),{type:f.STRING_TOKEN,value:e};if(r===Xt)return this._value.splice(0,A),vA;if(r===Wt){var n=this._value[A+1];n!==Pe&&void 0!==n&&(n===Xt?(e+=this.consumeStringSlice(A),A=-1,this._value.shift()):nA(r,n)&&(e+=this.consumeStringSlice(A),e+=c(this.consumeEscapedCodePoint()),A=-1))}A++}while(1)},t.prototype.consumeNumber=function(){var t=[],e=qt,A=this.peekCodePoint(0);A!==ye&&A!==se||t.push(this.consumeCodePoint());while(Ge(this.peekCodePoint(0)))t.push(this.consumeCodePoint());A=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(A===Ee&&Ge(r)){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;while(Ge(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}A=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((A===je||A===Re)&&((r===ye||r===se)&&Ge(n)||Ge(r))){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;while(Ge(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}return[aA(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],A=t[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(iA(r,n,i)){var o=this.consumeName();return{type:f.DIMENSION_TOKEN,number:e,flags:A,unit:o}}return r===re?(this.consumeCodePoint(),{type:f.PERCENTAGE_TOKEN,number:e,flags:A}):{type:f.NUMBER_TOKEN,number:e,flags:A}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Je(t)){var e=c(t);while(Je(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());tA(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(e,16);return 0===A||Xe(A)||A>1114111?Qe:A}return t===Pe?Qe:t},t.prototype.consumeName=function(){var t="";while(1){var e=this.consumeCodePoint();if(AA(e))t+=c(e);else{if(!nA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=c(this.consumeEscapedCodePoint())}}},t}(),HA=function(){function t(t){this._tokens=t}return t.create=function(e){var A=new LA;return A.write(e),new t(A.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){var t=this.consumeToken();while(t.type===f.WHITESPACE_TOKEN)t=this.consumeToken();if(t.type===f.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(t.type===f.WHITESPACE_TOKEN);if(t.type===f.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){var t=[];while(1){var e=this.consumeComponentValue();if(e.type===f.EOF_TOKEN)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case f.LEFT_CURLY_BRACKET_TOKEN:case f.LEFT_SQUARE_BRACKET_TOKEN:case f.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(t.type);case f.FUNCTION_TOKEN:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){var e={type:t,values:[]},A=this.consumeToken();while(1){if(A.type===f.EOF_TOKEN||KA(A,t))return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue()),A=this.consumeToken()}},t.prototype.consumeFunction=function(t){var e={name:t.value,values:[],type:f.FUNCTION};while(1){var A=this.consumeToken();if(A.type===f.EOF_TOKEN||A.type===f.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return"undefined"===typeof t?EA:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),SA=function(t){return t.type===f.DIMENSION_TOKEN},_A=function(t){return t.type===f.NUMBER_TOKEN},xA=function(t){return t.type===f.IDENT_TOKEN},IA=function(t){return t.type===f.STRING_TOKEN},PA=function(t,e){return xA(t)&&t.value===e},TA=function(t){return t.type!==f.WHITESPACE_TOKEN},OA=function(t){return t.type!==f.WHITESPACE_TOKEN&&t.type!==f.COMMA_TOKEN},RA=function(t){var e=[],A=[];return t.forEach((function(t){if(t.type===f.COMMA_TOKEN){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(A),void(A=[])}t.type!==f.WHITESPACE_TOKEN&&A.push(t)})),A.length&&e.push(A),e},KA=function(t,e){return e===f.LEFT_CURLY_BRACKET_TOKEN&&t.type===f.RIGHT_CURLY_BRACKET_TOKEN||(e===f.LEFT_SQUARE_BRACKET_TOKEN&&t.type===f.RIGHT_SQUARE_BRACKET_TOKEN||e===f.LEFT_PARENTHESIS_TOKEN&&t.type===f.RIGHT_PARENTHESIS_TOKEN)},MA=function(t){return t.type===f.NUMBER_TOKEN||t.type===f.DIMENSION_TOKEN},kA=function(t){return t.type===f.PERCENTAGE_TOKEN||MA(t)},DA=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},jA={type:f.NUMBER_TOKEN,number:0,flags:qt},zA={type:f.PERCENTAGE_TOKEN,number:50,flags:qt},VA={type:f.PERCENTAGE_TOKEN,number:100,flags:qt},qA=function(t,e,A){var r=t[0],n=t[1];return[GA(r,e),GA("undefined"!==typeof n?n:r,A)]},GA=function(t,e){if(t.type===f.PERCENTAGE_TOKEN)return t.number/100*e;if(SA(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},XA="deg",JA="grad",WA="rad",YA="turn",ZA={name:"angle",parse:function(t){if(t.type===f.DIMENSION_TOKEN)switch(t.unit){case XA:return Math.PI*t.number/180;case JA:return Math.PI/200*t.number;case WA:return t.number;case YA:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},$A=function(t){return t.type===f.DIMENSION_TOKEN&&(t.unit===XA||t.unit===JA||t.unit===WA||t.unit===YA)},tr=function(t){var e=t.filter(xA).map((function(t){return t.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[jA,jA];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[jA,VA];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[VA,VA];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[VA,jA];case"to left":case"right":return er(270)}return 0},er=function(t){return Math.PI*t/180},Ar={name:"color",parse:function(t){if(t.type===f.FUNCTION){var e=hr[t.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(t.values)}if(t.type===f.HASH_TOKEN){if(3===t.value.length){var A=t.value.substring(0,1),r=t.value.substring(1,2),n=t.value.substring(2,3);return ir(parseInt(A+A,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===t.value.length){A=t.value.substring(0,1),r=t.value.substring(1,2),n=t.value.substring(2,3);var i=t.value.substring(3,4);return ir(parseInt(A+A,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16)/255)}if(6===t.value.length){A=t.value.substring(0,2),r=t.value.substring(2,4),n=t.value.substring(4,6);return ir(parseInt(A,16),parseInt(r,16),parseInt(n,16),1)}if(8===t.value.length){A=t.value.substring(0,2),r=t.value.substring(2,4),n=t.value.substring(4,6),i=t.value.substring(6,8);return ir(parseInt(A,16),parseInt(r,16),parseInt(n,16),parseInt(i,16)/255)}}if(t.type===f.IDENT_TOKEN){var o=fr[t.value.toUpperCase()];if("undefined"!==typeof o)return o}return fr.TRANSPARENT}},rr=function(t){return 0===(255&t)},nr=function(t){var e=255&t,A=255&t>>8,r=255&t>>16,n=255&t>>24;return e<255?"rgba("+n+","+r+","+A+","+e/255+")":"rgb("+n+","+r+","+A+")"},ir=function(t,e,A,r){return(t<<24|e<<16|A<<8|Math.round(255*r)<<0)>>>0},or=function(t,e){if(t.type===f.NUMBER_TOKEN)return t.number;if(t.type===f.PERCENTAGE_TOKEN){var A=3===e?1:255;return 3===e?t.number/100*A:Math.round(t.number/100*A)}return 0},ar=function(t){var e=t.filter(OA);if(3===e.length){var A=e.map(or),r=A[0],n=A[1],i=A[2];return ir(r,n,i,1)}if(4===e.length){var o=e.map(or),a=(r=o[0],n=o[1],i=o[2],o[3]);return ir(r,n,i,a)}return 0};function sr(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<.5?e:A<2/3?6*(e-t)*(2/3-A)+t:t}var cr,ur,lr=function(t){var e=t.filter(OA),A=e[0],r=e[1],n=e[2],i=e[3],o=(A.type===f.NUMBER_TOKEN?er(A.number):ZA.parse(A))/(2*Math.PI),a=kA(r)?r.number/100:0,s=kA(n)?n.number/100:0,c="undefined"!==typeof i&&kA(i)?GA(i,1):1;if(0===a)return ir(255*s,255*s,255*s,1);var u=s<=.5?s*(a+1):s+a-s*a,l=2*s-u,h=sr(l,u,o+1/3),d=sr(l,u,o),p=sr(l,u,o-1/3);return ir(255*h,255*d,255*p,c)},hr={hsl:lr,hsla:lr,rgb:ar,rgba:ar},fr={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};(function(t){t[t["VALUE"]=0]="VALUE",t[t["LIST"]=1]="LIST",t[t["IDENT_VALUE"]=2]="IDENT_VALUE",t[t["TYPE_VALUE"]=3]="TYPE_VALUE",t[t["TOKEN_VALUE"]=4]="TOKEN_VALUE"})(cr||(cr={})),function(t){t[t["BORDER_BOX"]=0]="BORDER_BOX",t[t["PADDING_BOX"]=1]="PADDING_BOX",t[t["CONTENT_BOX"]=2]="CONTENT_BOX"}(ur||(ur={}));var dr,pr={name:"background-clip",initialValue:"border-box",prefix:!1,type:cr.LIST,parse:function(t){return t.map((function(t){if(xA(t))switch(t.value){case"padding-box":return ur.PADDING_BOX;case"content-box":return ur.CONTENT_BOX}return ur.BORDER_BOX}))}},Br={name:"background-color",initialValue:"transparent",prefix:!1,type:cr.TYPE_VALUE,format:"color"},gr=function(t){var e=Ar.parse(t[0]),A=t[1];return A&&kA(A)?{color:e,stop:A}:{color:e,stop:null}},wr=function(t,e){var A=t[0],r=t[t.length-1];null===A.stop&&(A.stop=jA),null===r.stop&&(r.stop=VA);for(var n=[],i=0,o=0;oi?n.push(s):n.push(i),i=s}else n.push(null)}var c=null;for(o=0;ot.optimumDistance)?{optimumCorner:e,optimumDistance:a}:t}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Cr=function(t,e,A,r,n){var i=0,o=0;switch(t.size){case nn.CLOSEST_SIDE:t.shape===rn.CIRCLE?i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(A),Math.abs(A-n)):t.shape===rn.ELLIPSE&&(i=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(A),Math.abs(A-n)));break;case nn.CLOSEST_CORNER:if(t.shape===rn.CIRCLE)i=o=Math.min(br(e,A),br(e,A-n),br(e-r,A),br(e-r,A-n));else if(t.shape===rn.ELLIPSE){var a=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(e),Math.abs(e-r)),s=Qr(r,n,e,A,!0),c=s[0],u=s[1];i=br(c-e,(u-A)/a),o=a*i}break;case nn.FARTHEST_SIDE:t.shape===rn.CIRCLE?i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(A),Math.abs(A-n)):t.shape===rn.ELLIPSE&&(i=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(A),Math.abs(A-n)));break;case nn.FARTHEST_CORNER:if(t.shape===rn.CIRCLE)i=o=Math.max(br(e,A),br(e,A-n),br(e-r,A),br(e-r,A-n));else if(t.shape===rn.ELLIPSE){a=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(e),Math.abs(e-r));var l=Qr(r,n,e,A,!1);c=l[0],u=l[1];i=br(c-e,(u-A)/a),o=a*i}break}return Array.isArray(t.size)&&(i=GA(t.size[0],r),o=2===t.size.length?GA(t.size[1],n):i),[i,o]},yr=function(t){var e=er(180),A=[];return RA(t).forEach((function(t,r){if(0===r){var n=t[0];if(n.type===f.IDENT_TOKEN&&"to"===n.value)return void(e=tr(t));if($A(n))return void(e=ZA.parse(n))}var i=gr(t);A.push(i)})),{angle:e,stops:A,type:dr.LINEAR_GRADIENT}},Fr=function(t){var e=er(180),A=[];return RA(t).forEach((function(t,r){if(0===r){var n=t[0];if(n.type===f.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(e=tr(t));if($A(n))return void(e=(ZA.parse(n)+er(270))%er(360))}var i=gr(t);A.push(i)})),{angle:e,stops:A,type:dr.LINEAR_GRADIENT}},Ur=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),A.selectNode(r);var n=A.getBoundingClientRect(),i=Math.round(n.height);if(t.body.removeChild(r),i===e)return!0}}return!1},Nr=function(){return"undefined"!==typeof(new Image).crossOrigin},Er=function(){return"string"===typeof(new XMLHttpRequest).responseType},Lr=function(t){var e=new Image,A=t.createElement("canvas"),r=A.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),A.toDataURL()}catch(Re){return!1}return!0},Hr=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Sr=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,A,A);var n=new Image,i=e.toDataURL();n.src=i;var o=_r(A,A,0,0,n);return r.fillStyle="red",r.fillRect(0,0,A,A),xr(o).then((function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,A,A).data;r.fillStyle="red",r.fillRect(0,0,A,A);var o=t.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=A+"px",Hr(n)?xr(_r(A,A,0,0,o)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),Hr(r.getImageData(0,0,A,A).data)})).catch((function(){return!1}))},_r=function(t,e,A,r,n){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",A.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(n),o},xr=function(t){return new Promise((function(e,A){var r=new Image;r.onload=function(){return e(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Ir={get SUPPORT_RANGE_BOUNDS(){var t=Ur(document);return Object.defineProperty(Ir,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Lr(document);return Object.defineProperty(Ir,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"===typeof Array.from&&"function"===typeof window.fetch?Sr(document):Promise.resolve(!1);return Object.defineProperty(Ir,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=Nr();return Object.defineProperty(Ir,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=Er();return Object.defineProperty(Ir,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ir,"SUPPORT_CORS_XHR",{value:t}),t}},Pr=function(){function t(t){var e=t.id,A=t.enabled;this.id=e,this.enabled=A,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},t.prototype.has=function(t){return"undefined"!==typeof this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(n,i){var o=Ir.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;if(a.onload=function(){if(200===a.status)if("text"===o)n(a.response);else{var t=new FileReader;t.addEventListener("load",(function(){return n(t.result)}),!1),t.addEventListener("error",(function(t){return i(t)}),!1),t.readAsDataURL(a.response)}else i("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=i,a.open("GET",A+"?url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var s=e._options.imageTimeout;a.timeout=s,a.ontimeout=function(){return i("Timed out ("+s+"ms) proxying "+r)}}a.send()}))},t}(),Rr=/^data:image\/svg\+xml/i,Kr=/^data:image\/.*;base64,/i,Mr=/^data:image\/.*/i,kr=function(t){return Ir.SUPPORT_SVG_DRAWING||!Vr(t)},Dr=function(t){return Mr.test(t)},jr=function(t){return Kr.test(t)},zr=function(t){return"blob"===t.substr(0,4)},Vr=function(t){return"svg"===t.substr(-3).toLowerCase()||Rr.test(t)},qr=function(t){var e=er(180),A=[],r=dr.LINEAR_GRADIENT,n=rn.CIRCLE,i=nn.FARTHEST_CORNER,o=[];return RA(t).forEach((function(t,e){var n=t[0];if(0===e){if(xA(n)&&"linear"===n.value)return void(r=dr.LINEAR_GRADIENT);if(xA(n)&&"radial"===n.value)return void(r=dr.RADIAL_GRADIENT)}if(n.type===f.FUNCTION)if("from"===n.name){var i=Ar.parse(n.values[0]);A.push({stop:jA,color:i})}else if("to"===n.name){i=Ar.parse(n.values[0]);A.push({stop:VA,color:i})}else if("color-stop"===n.name){var o=n.values.filter(OA);if(2===o.length){i=Ar.parse(o[1]);var a=o[0];_A(a)&&A.push({stop:{type:f.PERCENTAGE_TOKEN,number:100*a.number,flags:a.flags},color:i})}}})),r===dr.LINEAR_GRADIENT?{angle:(e+er(180))%er(360),stops:A,type:r}:{size:i,shape:n,stops:A,position:o,type:r}},Gr="closest-side",Xr="farthest-side",Jr="closest-corner",Wr="farthest-corner",Yr="circle",Zr="ellipse",$r="cover",tn="contain",en=function(t){var e=rn.CIRCLE,A=nn.FARTHEST_CORNER,r=[],n=[];return RA(t).forEach((function(t,i){var o=!0;if(0===i){var a=!1;o=t.reduce((function(t,r){if(a)if(xA(r))switch(r.value){case"center":return n.push(zA),t;case"top":case"left":return n.push(jA),t;case"right":case"bottom":return n.push(VA),t}else(kA(r)||MA(r))&&n.push(r);else if(xA(r))switch(r.value){case Yr:return e=rn.CIRCLE,!1;case Zr:return e=rn.ELLIPSE,!1;case"at":return a=!0,!1;case Gr:return A=nn.CLOSEST_SIDE,!1;case $r:case Xr:return A=nn.FARTHEST_SIDE,!1;case tn:case Jr:return A=nn.CLOSEST_CORNER,!1;case Wr:return A=nn.FARTHEST_CORNER,!1}else if(MA(r)||kA(r))return Array.isArray(A)||(A=[]),A.push(r),!1;return t}),o)}if(o){var s=gr(t);r.push(s)}})),{size:A,shape:e,stops:r,position:n,type:dr.RADIAL_GRADIENT}},An=function(t){var e=rn.CIRCLE,A=nn.FARTHEST_CORNER,r=[],n=[];return RA(t).forEach((function(t,i){var o=!0;if(0===i?o=t.reduce((function(t,e){if(xA(e))switch(e.value){case"center":return n.push(zA),!1;case"top":case"left":return n.push(jA),!1;case"right":case"bottom":return n.push(VA),!1}else if(kA(e)||MA(e))return n.push(e),!1;return t}),o):1===i&&(o=t.reduce((function(t,r){if(xA(r))switch(r.value){case Yr:return e=rn.CIRCLE,!1;case Zr:return e=rn.ELLIPSE,!1;case tn:case Gr:return A=nn.CLOSEST_SIDE,!1;case Xr:return A=nn.FARTHEST_SIDE,!1;case Jr:return A=nn.CLOSEST_CORNER,!1;case $r:case Wr:return A=nn.FARTHEST_CORNER,!1}else if(MA(r)||kA(r))return Array.isArray(A)||(A=[]),A.push(r),!1;return t}),o)),o){var a=gr(t);r.push(a)}})),{size:A,shape:e,stops:r,position:n,type:dr.RADIAL_GRADIENT}};(function(t){t[t["URL"]=0]="URL",t[t["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT",t[t["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT"})(dr||(dr={}));var rn,nn,on=function(t){return t.type===dr.LINEAR_GRADIENT},an=function(t){return t.type===dr.RADIAL_GRADIENT};(function(t){t[t["CIRCLE"]=0]="CIRCLE",t[t["ELLIPSE"]=1]="ELLIPSE"})(rn||(rn={})),function(t){t[t["CLOSEST_SIDE"]=0]="CLOSEST_SIDE",t[t["FARTHEST_SIDE"]=1]="FARTHEST_SIDE",t[t["CLOSEST_CORNER"]=2]="CLOSEST_CORNER",t[t["FARTHEST_CORNER"]=3]="FARTHEST_CORNER"}(nn||(nn={}));var sn={name:"image",parse:function(t){if(t.type===f.URL_TOKEN){var e={url:t.value,type:dr.URL};return Tr.getInstance().addImage(t.value),e}if(t.type===f.FUNCTION){var A=ln[t.name];if("undefined"===typeof A)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return A(t.values)}throw new Error("Unsupported image type")}};function cn(t){return t.type!==f.FUNCTION||ln[t.name]}var un,ln={"linear-gradient":yr,"-moz-linear-gradient":Fr,"-ms-linear-gradient":Fr,"-o-linear-gradient":Fr,"-webkit-linear-gradient":Fr,"radial-gradient":en,"-moz-radial-gradient":An,"-ms-radial-gradient":An,"-o-radial-gradient":An,"-webkit-radial-gradient":An,"-webkit-gradient":qr},hn={name:"background-image",initialValue:"none",type:cr.LIST,prefix:!1,parse:function(t){if(0===t.length)return[];var e=t[0];return e.type===f.IDENT_TOKEN&&"none"===e.value?[]:t.filter((function(t){return OA(t)&&cn(t)})).map(sn.parse)}},fn={name:"background-origin",initialValue:"border-box",prefix:!1,type:cr.LIST,parse:function(t){return t.map((function(t){if(xA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},dn={name:"background-position",initialValue:"0% 0%",type:cr.LIST,prefix:!1,parse:function(t){return RA(t).map((function(t){return t.filter(kA)})).map(DA)}};(function(t){t[t["REPEAT"]=0]="REPEAT",t[t["NO_REPEAT"]=1]="NO_REPEAT",t[t["REPEAT_X"]=2]="REPEAT_X",t[t["REPEAT_Y"]=3]="REPEAT_Y"})(un||(un={}));var pn,Bn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:cr.LIST,parse:function(t){return RA(t).map((function(t){return t.filter(xA).map((function(t){return t.value})).join(" ")})).map(gn)}},gn=function(t){switch(t){case"no-repeat":return un.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return un.REPEAT_X;case"repeat-y":case"no-repeat repeat":return un.REPEAT_Y;case"repeat":default:return un.REPEAT}};(function(t){t["AUTO"]="auto",t["CONTAIN"]="contain",t["COVER"]="cover"})(pn||(pn={}));var wn,mn={name:"background-size",initialValue:"0",prefix:!1,type:cr.LIST,parse:function(t){return RA(t).map((function(t){return t.filter(vn)}))}},vn=function(t){return xA(t)||kA(t)},bn=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:cr.TYPE_VALUE,format:"color"}},Qn=bn("top"),Cn=bn("right"),yn=bn("bottom"),Fn=bn("left"),Un=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:cr.LIST,parse:function(t){return DA(t.filter(kA))}}},Nn=Un("top-left"),En=Un("top-right"),Ln=Un("bottom-right"),Hn=Un("bottom-left");(function(t){t[t["NONE"]=0]="NONE",t[t["SOLID"]=1]="SOLID"})(wn||(wn={}));var Sn,_n=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"none":return wn.NONE}return wn.SOLID}}},xn=_n("top"),In=_n("right"),Pn=_n("bottom"),Tn=_n("left"),On=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:cr.VALUE,prefix:!1,parse:function(t){return SA(t)?t.number:0}}},Rn=On("top"),Kn=On("right"),Mn=On("bottom"),kn=On("left"),Dn={name:"color",initialValue:"transparent",prefix:!1,type:cr.TYPE_VALUE,format:"color"},jn={name:"display",initialValue:"inline-block",prefix:!1,type:cr.LIST,parse:function(t){return t.filter(xA).reduce((function(t,e){return t|zn(e.value)}),0)}},zn=function(t){switch(t){case"block":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};(function(t){t[t["NONE"]=0]="NONE",t[t["LEFT"]=1]="LEFT",t[t["RIGHT"]=2]="RIGHT",t[t["INLINE_START"]=3]="INLINE_START",t[t["INLINE_END"]=4]="INLINE_END"})(Sn||(Sn={}));var Vn,qn={name:"float",initialValue:"none",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"left":return Sn.LEFT;case"right":return Sn.RIGHT;case"inline-start":return Sn.INLINE_START;case"inline-end":return Sn.INLINE_END}return Sn.NONE}},Gn={name:"letter-spacing",initialValue:"0",prefix:!1,type:cr.VALUE,parse:function(t){return t.type===f.IDENT_TOKEN&&"normal"===t.value?0:t.type===f.NUMBER_TOKEN||t.type===f.DIMENSION_TOKEN?t.number:0}};(function(t){t["NORMAL"]="normal",t["STRICT"]="strict"})(Vn||(Vn={}));var Xn,Jn={name:"line-break",initialValue:"normal",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"strict":return Vn.STRICT;case"normal":default:return Vn.NORMAL}}},Wn={name:"line-height",initialValue:"normal",prefix:!1,type:cr.TOKEN_VALUE},Yn=function(t,e){return xA(t)&&"normal"===t.value?1.2*e:t.type===f.NUMBER_TOKEN?e*t.number:kA(t)?GA(t,e):e},Zn={name:"list-style-image",initialValue:"none",type:cr.VALUE,prefix:!1,parse:function(t){return t.type===f.IDENT_TOKEN&&"none"===t.value?null:sn.parse(t)}};(function(t){t[t["INSIDE"]=0]="INSIDE",t[t["OUTSIDE"]=1]="OUTSIDE"})(Xn||(Xn={}));var $n,ti={name:"list-style-position",initialValue:"outside",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"inside":return Xn.INSIDE;case"outside":default:return Xn.OUTSIDE}}};(function(t){t[t["NONE"]=-1]="NONE",t[t["DISC"]=0]="DISC",t[t["CIRCLE"]=1]="CIRCLE",t[t["SQUARE"]=2]="SQUARE",t[t["DECIMAL"]=3]="DECIMAL",t[t["CJK_DECIMAL"]=4]="CJK_DECIMAL",t[t["DECIMAL_LEADING_ZERO"]=5]="DECIMAL_LEADING_ZERO",t[t["LOWER_ROMAN"]=6]="LOWER_ROMAN",t[t["UPPER_ROMAN"]=7]="UPPER_ROMAN",t[t["LOWER_GREEK"]=8]="LOWER_GREEK",t[t["LOWER_ALPHA"]=9]="LOWER_ALPHA",t[t["UPPER_ALPHA"]=10]="UPPER_ALPHA",t[t["ARABIC_INDIC"]=11]="ARABIC_INDIC",t[t["ARMENIAN"]=12]="ARMENIAN",t[t["BENGALI"]=13]="BENGALI",t[t["CAMBODIAN"]=14]="CAMBODIAN",t[t["CJK_EARTHLY_BRANCH"]=15]="CJK_EARTHLY_BRANCH",t[t["CJK_HEAVENLY_STEM"]=16]="CJK_HEAVENLY_STEM",t[t["CJK_IDEOGRAPHIC"]=17]="CJK_IDEOGRAPHIC",t[t["DEVANAGARI"]=18]="DEVANAGARI",t[t["ETHIOPIC_NUMERIC"]=19]="ETHIOPIC_NUMERIC",t[t["GEORGIAN"]=20]="GEORGIAN",t[t["GUJARATI"]=21]="GUJARATI",t[t["GURMUKHI"]=22]="GURMUKHI",t[t["HEBREW"]=22]="HEBREW",t[t["HIRAGANA"]=23]="HIRAGANA",t[t["HIRAGANA_IROHA"]=24]="HIRAGANA_IROHA",t[t["JAPANESE_FORMAL"]=25]="JAPANESE_FORMAL",t[t["JAPANESE_INFORMAL"]=26]="JAPANESE_INFORMAL",t[t["KANNADA"]=27]="KANNADA",t[t["KATAKANA"]=28]="KATAKANA",t[t["KATAKANA_IROHA"]=29]="KATAKANA_IROHA",t[t["KHMER"]=30]="KHMER",t[t["KOREAN_HANGUL_FORMAL"]=31]="KOREAN_HANGUL_FORMAL",t[t["KOREAN_HANJA_FORMAL"]=32]="KOREAN_HANJA_FORMAL",t[t["KOREAN_HANJA_INFORMAL"]=33]="KOREAN_HANJA_INFORMAL",t[t["LAO"]=34]="LAO",t[t["LOWER_ARMENIAN"]=35]="LOWER_ARMENIAN",t[t["MALAYALAM"]=36]="MALAYALAM",t[t["MONGOLIAN"]=37]="MONGOLIAN",t[t["MYANMAR"]=38]="MYANMAR",t[t["ORIYA"]=39]="ORIYA",t[t["PERSIAN"]=40]="PERSIAN",t[t["SIMP_CHINESE_FORMAL"]=41]="SIMP_CHINESE_FORMAL",t[t["SIMP_CHINESE_INFORMAL"]=42]="SIMP_CHINESE_INFORMAL",t[t["TAMIL"]=43]="TAMIL",t[t["TELUGU"]=44]="TELUGU",t[t["THAI"]=45]="THAI",t[t["TIBETAN"]=46]="TIBETAN",t[t["TRAD_CHINESE_FORMAL"]=47]="TRAD_CHINESE_FORMAL",t[t["TRAD_CHINESE_INFORMAL"]=48]="TRAD_CHINESE_INFORMAL",t[t["UPPER_ARMENIAN"]=49]="UPPER_ARMENIAN",t[t["DISCLOSURE_OPEN"]=50]="DISCLOSURE_OPEN",t[t["DISCLOSURE_CLOSED"]=51]="DISCLOSURE_CLOSED"})($n||($n={}));var ei,Ai={name:"list-style-type",initialValue:"none",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"disc":return $n.DISC;case"circle":return $n.CIRCLE;case"square":return $n.SQUARE;case"decimal":return $n.DECIMAL;case"cjk-decimal":return $n.CJK_DECIMAL;case"decimal-leading-zero":return $n.DECIMAL_LEADING_ZERO;case"lower-roman":return $n.LOWER_ROMAN;case"upper-roman":return $n.UPPER_ROMAN;case"lower-greek":return $n.LOWER_GREEK;case"lower-alpha":return $n.LOWER_ALPHA;case"upper-alpha":return $n.UPPER_ALPHA;case"arabic-indic":return $n.ARABIC_INDIC;case"armenian":return $n.ARMENIAN;case"bengali":return $n.BENGALI;case"cambodian":return $n.CAMBODIAN;case"cjk-earthly-branch":return $n.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return $n.CJK_HEAVENLY_STEM;case"cjk-ideographic":return $n.CJK_IDEOGRAPHIC;case"devanagari":return $n.DEVANAGARI;case"ethiopic-numeric":return $n.ETHIOPIC_NUMERIC;case"georgian":return $n.GEORGIAN;case"gujarati":return $n.GUJARATI;case"gurmukhi":return $n.GURMUKHI;case"hebrew":return $n.HEBREW;case"hiragana":return $n.HIRAGANA;case"hiragana-iroha":return $n.HIRAGANA_IROHA;case"japanese-formal":return $n.JAPANESE_FORMAL;case"japanese-informal":return $n.JAPANESE_INFORMAL;case"kannada":return $n.KANNADA;case"katakana":return $n.KATAKANA;case"katakana-iroha":return $n.KATAKANA_IROHA;case"khmer":return $n.KHMER;case"korean-hangul-formal":return $n.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return $n.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return $n.KOREAN_HANJA_INFORMAL;case"lao":return $n.LAO;case"lower-armenian":return $n.LOWER_ARMENIAN;case"malayalam":return $n.MALAYALAM;case"mongolian":return $n.MONGOLIAN;case"myanmar":return $n.MYANMAR;case"oriya":return $n.ORIYA;case"persian":return $n.PERSIAN;case"simp-chinese-formal":return $n.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return $n.SIMP_CHINESE_INFORMAL;case"tamil":return $n.TAMIL;case"telugu":return $n.TELUGU;case"thai":return $n.THAI;case"tibetan":return $n.TIBETAN;case"trad-chinese-formal":return $n.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return $n.TRAD_CHINESE_INFORMAL;case"upper-armenian":return $n.UPPER_ARMENIAN;case"disclosure-open":return $n.DISCLOSURE_OPEN;case"disclosure-closed":return $n.DISCLOSURE_CLOSED;case"none":default:return $n.NONE}}},ri=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:cr.TOKEN_VALUE}},ni=ri("top"),ii=ri("right"),oi=ri("bottom"),ai=ri("left");(function(t){t[t["VISIBLE"]=0]="VISIBLE",t[t["HIDDEN"]=1]="HIDDEN",t[t["SCROLL"]=2]="SCROLL",t[t["AUTO"]=3]="AUTO"})(ei||(ei={}));var si,ci={name:"overflow",initialValue:"visible",prefix:!1,type:cr.LIST,parse:function(t){return t.filter(xA).map((function(t){switch(t.value){case"hidden":return ei.HIDDEN;case"scroll":return ei.SCROLL;case"auto":return ei.AUTO;case"visible":default:return ei.VISIBLE}}))}};(function(t){t["NORMAL"]="normal",t["BREAK_WORD"]="break-word"})(si||(si={}));var ui,li={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"break-word":return si.BREAK_WORD;case"normal":default:return si.NORMAL}}},hi=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:cr.TYPE_VALUE,format:"length-percentage"}},fi=hi("top"),di=hi("right"),pi=hi("bottom"),Bi=hi("left");(function(t){t[t["LEFT"]=0]="LEFT",t[t["CENTER"]=1]="CENTER",t[t["RIGHT"]=2]="RIGHT"})(ui||(ui={}));var gi,wi={name:"text-align",initialValue:"left",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"right":return ui.RIGHT;case"center":case"justify":return ui.CENTER;case"left":default:return ui.LEFT}}};(function(t){t[t["STATIC"]=0]="STATIC",t[t["RELATIVE"]=1]="RELATIVE",t[t["ABSOLUTE"]=2]="ABSOLUTE",t[t["FIXED"]=3]="FIXED",t[t["STICKY"]=4]="STICKY"})(gi||(gi={}));var mi,vi={name:"position",initialValue:"static",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"relative":return gi.RELATIVE;case"absolute":return gi.ABSOLUTE;case"fixed":return gi.FIXED;case"sticky":return gi.STICKY}return gi.STATIC}},bi={name:"text-shadow",initialValue:"none",type:cr.LIST,prefix:!1,parse:function(t){return 1===t.length&&PA(t[0],"none")?[]:RA(t).map((function(t){for(var e={color:fr.TRANSPARENT,offsetX:jA,offsetY:jA,blur:jA},A=0,r=0;r1?1:0],this.overflowWrap=eo(li,t.overflowWrap),this.paddingTop=eo(fi,t.paddingTop),this.paddingRight=eo(di,t.paddingRight),this.paddingBottom=eo(pi,t.paddingBottom),this.paddingLeft=eo(Bi,t.paddingLeft),this.position=eo(vi,t.position),this.textAlign=eo(wi,t.textAlign),this.textDecorationColor=eo(Oi,t.textDecorationColor||t.color),this.textDecorationLine=eo(Ri,t.textDecorationLine),this.textShadow=eo(bi,t.textShadow),this.textTransform=eo(Ci,t.textTransform),this.transform=eo(yi,t.transform),this.transformOrigin=eo(Hi,t.transformOrigin),this.visibility=eo(_i,t.visibility),this.wordBreak=eo(Ii,t.wordBreak),this.zIndex=eo(Pi,t.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Qi.VISIBLE},t.prototype.isTransparent=function(){return rr(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return this.position!==gi.STATIC},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==Sn.NONE},t.prototype.isInlineLevel=function(){return Vi(this.display,4)||Vi(this.display,33554432)||Vi(this.display,268435456)||Vi(this.display,536870912)||Vi(this.display,67108864)||Vi(this.display,134217728)},t}(),$i=function(){function t(t){this.content=eo(qi,t.content),this.quotes=eo(Ji,t.quotes)}return t}(),to=function(){function t(t){this.counterIncrement=eo(Gi,t.counterIncrement),this.counterReset=eo(Xi,t.counterReset)}return t}(),eo=function(t,e){var A=new LA,r=null!==e&&"undefined"!==typeof e?e.toString():t.initialValue;A.write(r);var n=new HA(A.read());switch(t.type){case cr.IDENT_VALUE:var i=n.parseComponentValue();return t.parse(xA(i)?i.value:t.initialValue);case cr.VALUE:return t.parse(n.parseComponentValue());case cr.LIST:return t.parse(n.parseComponentValues());case cr.TOKEN_VALUE:return n.parseComponentValue();case cr.TYPE_VALUE:switch(t.format){case"angle":return ZA.parse(n.parseComponentValue());case"color":return Ar.parse(n.parseComponentValue());case"image":return sn.parse(n.parseComponentValue());case"length":var o=n.parseComponentValue();return MA(o)?o:jA;case"length-percentage":var a=n.parseComponentValue();return kA(a)?a:jA}}throw new Error("Attempting to parse unsupported css format type "+t.format)},Ao=function(){function t(t){this.styles=new Zi(window.getComputedStyle(t,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Mo(t)&&(t.style.transform="none"),this.bounds=o(t),this.flags=0}return t}(),ro=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),no=function(t,e,A){var r=ao(t,e),n=[],i=0;return r.forEach((function(t){if(e.textDecorationLine.length||t.trim().length>0)if(Ir.SUPPORT_RANGE_BOUNDS)n.push(new ro(t,oo(A,i,t.length)));else{var r=A.splitText(t.length);n.push(new ro(t,io(A))),A=r}else Ir.SUPPORT_RANGE_BOUNDS||(A=A.splitText(t.length));i+=t.length})),n},io=function(t){var e=t.ownerDocument;if(e){var A=e.createElement("html2canvaswrapper");A.appendChild(t.cloneNode(!0));var r=t.parentNode;if(r){r.replaceChild(A,t);var n=o(A);return A.firstChild&&r.replaceChild(A.firstChild,A),n}}return new i(0,0,0,0)},oo=function(t,e,A){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(t,e),n.setEnd(t,e+A),i.fromClientRect(n.getBoundingClientRect())},ao=function(t,e){return 0!==e.letterSpacing?s(t).map((function(t){return c(t)})):so(t,e)},so=function(t,e){var A,r=jt(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===si.BREAK_WORD?"break-word":e.wordBreak}),n=[];while(!(A=r.next()).done)A.value&&n.push(A.value.slice());return n},co=function(){function t(t,e){this.text=uo(t.data,e.textTransform),this.textBounds=no(this.text,e,t)}return t}(),uo=function(t,e){switch(e){case mi.LOWERCASE:return t.toLowerCase();case mi.CAPITALIZE:return t.replace(lo,ho);case mi.UPPERCASE:return t.toUpperCase();default:return t}},lo=/(^|\s|:|-|\(|\))([a-z])/g,ho=function(t,e,A){return t.length>0?e+A.toUpperCase():t},fo=function(t){function A(e){var A=t.call(this,e)||this;return A.src=e.currentSrc||e.src,A.intrinsicWidth=e.naturalWidth,A.intrinsicHeight=e.naturalHeight,Tr.getInstance().addImage(A.src),A}return e(A,t),A}(Ao),po=function(t){function A(e){var A=t.call(this,e)||this;return A.canvas=e,A.intrinsicWidth=e.width,A.intrinsicHeight=e.height,A}return e(A,t),A}(Ao),Bo=function(t){function A(e){var A=t.call(this,e)||this,r=new XMLSerializer;return A.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(e)),A.intrinsicWidth=e.width.baseVal.value,A.intrinsicHeight=e.height.baseVal.value,Tr.getInstance().addImage(A.svg),A}return e(A,t),A}(Ao),go=function(t){function A(e){var A=t.call(this,e)||this;return A.value=e.value,A}return e(A,t),A}(Ao),wo=function(t){function A(e){var A=t.call(this,e)||this;return A.start=e.start,A.reversed="boolean"===typeof e.reversed&&!0===e.reversed,A}return e(A,t),A}(Ao),mo=[{type:f.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],vo=[{type:f.PERCENTAGE_TOKEN,flags:0,number:50}],bo=function(t){return t.width>t.height?new i(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width0)e.textNodes.push(new co(r,e.styles));else if(Ko(r)){var i=Io(r);i.styles.isVisible()&&(To(r,i,A)?i.flags|=4:Oo(i.styles)&&(i.flags|=2),-1!==_o.indexOf(r.tagName)&&(i.flags|=8),e.elements.push(i),$o(r)||qo(r)||ta(r)||xo(r,i,A))}},Io=function(t){return Jo(t)?new fo(t):Xo(t)?new po(t):qo(t)?new Bo(t):Do(t)?new go(t):jo(t)?new wo(t):zo(t)?new No(t):ta(t)?new Eo(t):$o(t)?new Lo(t):Wo(t)?new So(t):new Ao(t)},Po=function(t){var e=Io(t);return e.flags|=4,xo(t,e,e),e},To=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Go(t)&&A.styles.isTransparent()},Oo=function(t){return t.isPositioned()||t.isFloating()},Ro=function(t){return t.nodeType===Node.TEXT_NODE},Ko=function(t){return t.nodeType===Node.ELEMENT_NODE},Mo=function(t){return Ko(t)&&"undefined"!==typeof t.style&&!ko(t)},ko=function(t){return"object"===typeof t.className},Do=function(t){return"LI"===t.tagName},jo=function(t){return"OL"===t.tagName},zo=function(t){return"INPUT"===t.tagName},Vo=function(t){return"HTML"===t.tagName},qo=function(t){return"svg"===t.tagName},Go=function(t){return"BODY"===t.tagName},Xo=function(t){return"CANVAS"===t.tagName},Jo=function(t){return"IMG"===t.tagName},Wo=function(t){return"IFRAME"===t.tagName},Yo=function(t){return"STYLE"===t.tagName},Zo=function(t){return"SCRIPT"===t.tagName},$o=function(t){return"TEXTAREA"===t.tagName},ta=function(t){return"SELECT"===t.tagName},ea=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,A=t.counterIncrement,r=t.counterReset,n=!0;null!==A&&A.forEach((function(t){var A=e.counters[t.counter];A&&0!==t.increment&&(n=!1,A[Math.max(0,A.length-1)]+=t.increment)}));var i=[];return n&&r.forEach((function(t){var A=e.counters[t.counter];i.push(t.counter),A||(A=e.counters[t.counter]=[]),A.push(t.reset)})),i},t}(),Aa={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"]},ra={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},na={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ia={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},oa=function(t,e,A,r,n,i){return tA?ma(t,n,i.length>0):r.integers.reduce((function(e,A,n){while(t>=A)t-=A,e+=r.values[n];return e}),"")+i},aa=function(t,e,A,r){var n="";do{A||t--,n=r(t)+n,t/=e}while(t*e>=e);return n},sa=function(t,e,A,r,n){var i=A-e+1;return(t<0?"-":"")+(aa(Math.abs(t),i,r,(function(t){return c(Math.floor(t%i)+e)}))+n)},ca=function(t,e,A){void 0===A&&(A=". ");var r=e.length;return aa(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+A},ua=1,la=2,ha=4,fa=8,da=function(t,e,A,r,n,i){if(t<-9999||t>9999)return ma(t,$n.CJK_DECIMAL,n.length>0);var o=Math.abs(t),a=n;if(0===o)return e[0]+a;for(var s=0;o>0&&s<=4;s++){var c=o%10;0===c&&Vi(i,ua)&&""!==a?a=e[c]+a:c>1||1===c&&0===s||1===c&&1===s&&Vi(i,la)||1===c&&1===s&&Vi(i,ha)&&t>100||1===c&&s>1&&Vi(i,fa)?a=e[c]+(s>0?A[s-1]:"")+a:1===c&&s>0&&(a=A[s-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},pa="十百千萬",Ba="拾佰仟萬",ga="マイナス",wa="마이너스",ma=function(t,e,A){var r=A?". ":"",n=A?"、":"",i=A?", ":"",o=A?" ":"";switch(e){case $n.DISC:return"•"+o;case $n.CIRCLE:return"◦"+o;case $n.SQUARE:return"◾"+o;case $n.DECIMAL_LEADING_ZERO:var a=sa(t,48,57,!0,r);return a.length<4?"0"+a:a;case $n.CJK_DECIMAL:return ca(t,"〇一二三四五六七八九",n);case $n.LOWER_ROMAN:return oa(t,1,3999,Aa,$n.DECIMAL,r).toLowerCase();case $n.UPPER_ROMAN:return oa(t,1,3999,Aa,$n.DECIMAL,r);case $n.LOWER_GREEK:return sa(t,945,969,!1,r);case $n.LOWER_ALPHA:return sa(t,97,122,!1,r);case $n.UPPER_ALPHA:return sa(t,65,90,!1,r);case $n.ARABIC_INDIC:return sa(t,1632,1641,!0,r);case $n.ARMENIAN:case $n.UPPER_ARMENIAN:return oa(t,1,9999,ra,$n.DECIMAL,r);case $n.LOWER_ARMENIAN:return oa(t,1,9999,ra,$n.DECIMAL,r).toLowerCase();case $n.BENGALI:return sa(t,2534,2543,!0,r);case $n.CAMBODIAN:case $n.KHMER:return sa(t,6112,6121,!0,r);case $n.CJK_EARTHLY_BRANCH:return ca(t,"子丑寅卯辰巳午未申酉戌亥",n);case $n.CJK_HEAVENLY_STEM:return ca(t,"甲乙丙丁戊己庚辛壬癸",n);case $n.CJK_IDEOGRAPHIC:case $n.TRAD_CHINESE_INFORMAL:return da(t,"零一二三四五六七八九",pa,"負",n,la|ha|fa);case $n.TRAD_CHINESE_FORMAL:return da(t,"零壹貳參肆伍陸柒捌玖",Ba,"負",n,ua|la|ha|fa);case $n.SIMP_CHINESE_INFORMAL:return da(t,"零一二三四五六七八九",pa,"负",n,la|ha|fa);case $n.SIMP_CHINESE_FORMAL:return da(t,"零壹贰叁肆伍陆柒捌玖",Ba,"负",n,ua|la|ha|fa);case $n.JAPANESE_INFORMAL:return da(t,"〇一二三四五六七八九","十百千万",ga,n,0);case $n.JAPANESE_FORMAL:return da(t,"零壱弐参四伍六七八九","拾百千万",ga,n,ua|la|ha);case $n.KOREAN_HANGUL_FORMAL:return da(t,"영일이삼사오육칠팔구","십백천만",wa,i,ua|la|ha);case $n.KOREAN_HANJA_INFORMAL:return da(t,"零一二三四五六七八九","十百千萬",wa,i,0);case $n.KOREAN_HANJA_FORMAL:return da(t,"零壹貳參四五六七八九","拾百千",wa,i,ua|la|ha);case $n.DEVANAGARI:return sa(t,2406,2415,!0,r);case $n.GEORGIAN:return oa(t,1,19999,ia,$n.DECIMAL,r);case $n.GUJARATI:return sa(t,2790,2799,!0,r);case $n.GURMUKHI:return sa(t,2662,2671,!0,r);case $n.HEBREW:return oa(t,1,10999,na,$n.DECIMAL,r);case $n.HIRAGANA:return ca(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case $n.HIRAGANA_IROHA:return ca(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case $n.KANNADA:return sa(t,3302,3311,!0,r);case $n.KATAKANA:return ca(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case $n.KATAKANA_IROHA:return ca(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case $n.LAO:return sa(t,3792,3801,!0,r);case $n.MONGOLIAN:return sa(t,6160,6169,!0,r);case $n.MYANMAR:return sa(t,4160,4169,!0,r);case $n.ORIYA:return sa(t,2918,2927,!0,r);case $n.PERSIAN:return sa(t,1776,1785,!0,r);case $n.TAMIL:return sa(t,3046,3055,!0,r);case $n.TELUGU:return sa(t,3174,3183,!0,r);case $n.THAI:return sa(t,3664,3673,!0,r);case $n.TIBETAN:return sa(t,3872,3881,!0,r);case $n.DECIMAL:default:return sa(t,48,57,!0,r)}},va="data-html2canvas-ignore",ba=function(){function t(t,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=t,this.counters=new ea,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement)}return t.prototype.toIFrame=function(t,e){var A=this,i=Ca(t,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=i.contentWindow,c=s.document,u=ya(i).then((function(){return r(A,void 0,void 0,(function(){var t;return n(this,(function(A){switch(A.label){case 0:return this.scrolledElements.forEach(Ea),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(c.documentElement.style.top=-e.top+"px",c.documentElement.style.left=-e.left+"px",c.documentElement.style.position="absolute")),t=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return"function"===typeof t?[2,Promise.resolve().then((function(){return t(c)})).then((function(){return i}))]:[2,i]}}))}))}));return c.open(),c.write(Ua(document.doctype)+""),Na(this.referenceElement.ownerDocument,o,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(t){if(Xo(t))return this.createCanvasClone(t);if(Yo(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Jo(e)&&"lazy"===e.loading&&(e.loading="eager"),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var A=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"===typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=A,r}}catch(Re){if(Pr.getInstance(this.options.id).error("Unable to access cssRules property",Re),"SecurityError"!==Re.name)throw Re}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){if(this.options.inlineImages&&t.ownerDocument){var e=t.ownerDocument.createElement("img");try{return e.src=t.toDataURL(),e}catch(Re){Pr.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var A=t.cloneNode(!1);try{A.width=t.width,A.height=t.height;var r=t.getContext("2d"),n=A.getContext("2d");return n&&(r?n.putImageData(r.getImageData(0,0,t.width,t.height),0,0):n.drawImage(t,0,0)),A}catch(Re){}return A},t.prototype.cloneNode=function(t){if(Ro(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var e=t.ownerDocument.defaultView;if(e&&Ko(t)&&(Mo(t)||ko(t))){var A=this.createElementClone(t),r=e.getComputedStyle(t),n=e.getComputedStyle(t,":before"),i=e.getComputedStyle(t,":after");this.referenceElement===t&&Mo(A)&&(this.clonedReferenceElement=A),Go(A)&&Ia(A);for(var o=this.counters.parse(new to(r)),a=this.resolvePseudoContent(t,A,n,ji.BEFORE),s=t.firstChild;s;s=s.nextSibling)Ko(s)&&(Zo(s)||s.hasAttribute(va)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.options.copyStyles&&Ko(s)&&Yo(s)||A.appendChild(this.cloneNode(s));a&&A.insertBefore(a,A.firstChild);var c=this.resolvePseudoContent(t,A,i,ji.AFTER);return c&&A.appendChild(c),this.counters.pop(o),r&&(this.options.copyStyles||ko(t))&&!Wo(t)&&Fa(r,A),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([A,t.scrollLeft,t.scrollTop]),($o(t)||ta(t))&&($o(A)||ta(A))&&(A.value=t.value),A}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,A,r){var n=this;if(A){var i=A.content,o=e.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==A.display){this.counters.parse(new to(A));var a=new $i(A),s=o.createElement("html2canvaspseudoelement");Fa(A,s),a.content.forEach((function(e){if(e.type===f.STRING_TOKEN)s.appendChild(o.createTextNode(e.value));else if(e.type===f.URL_TOKEN){var A=o.createElement("img");A.src=e.value,A.style.opacity="1",s.appendChild(A)}else if(e.type===f.FUNCTION){if("attr"===e.name){var r=e.values.filter(xA);r.length&&s.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(OA),c=i[0],u=i[1];if(c&&xA(c)){var l=n.counters.getCounterValue(c.value),h=u&&xA(u)?Ai.parse(u.value):$n.DECIMAL;s.appendChild(o.createTextNode(ma(l,h,!1)))}}else if("counters"===e.name){var d=e.values.filter(OA),p=(c=d[0],d[1]);u=d[2];if(c&&xA(c)){var B=n.counters.getCounterValues(c.value),g=u&&xA(u)?Ai.parse(u.value):$n.DECIMAL,w=p&&p.type===f.STRING_TOKEN?p.value:"",m=B.map((function(t){return ma(t,g,!1)})).join(w);s.appendChild(o.createTextNode(m))}}}else if(e.type===f.IDENT_TOKEN)switch(e.value){case"open-quote":s.appendChild(o.createTextNode(Wi(a.quotes,n.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(Wi(a.quotes,--n.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(e.value))}})),s.className=Sa+" "+_a;var c=r===ji.BEFORE?" "+Sa:" "+_a;return ko(e)?e.className.baseValue+=c:e.className+=c,s}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();(function(t){t[t["BEFORE"]=0]="BEFORE",t[t["AFTER"]=1]="AFTER"})(ji||(ji={}));var Qa,Ca=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(va,"true"),t.body.appendChild(A),A},ya=function(t){return new Promise((function(e,A){var r=t.contentWindow;if(!r)return A("No window assigned for iframe");var n=r.document;r.onload=t.onload=n.onreadystatechange=function(){r.onload=t.onload=n.onreadystatechange=null;var A=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(A),e(t))}),50)}}))},Fa=function(t,e){for(var A=t.length-1;A>=0;A--){var r=t.item(A);"content"!==r&&e.style.setProperty(r,t.getPropertyValue(r))}return e},Ua=function(t){var e="";return t&&(e+=""),e},Na=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},Ea=function(t){var e=t[0],A=t[1],r=t[2];e.scrollLeft=A,e.scrollTop=r},La=":before",Ha=":after",Sa="___html2canvas___pseudoelement_before",_a="___html2canvas___pseudoelement_after",xa='{\n content: "" !important;\n display: none !important;\n}',Ia=function(t){Pa(t,"."+Sa+La+xa+"\n ."+_a+Ha+xa)},Pa=function(t,e){var A=t.ownerDocument;if(A){var r=A.createElement("style");r.textContent=e,t.appendChild(r)}};(function(t){t[t["VECTOR"]=0]="VECTOR",t[t["BEZIER_CURVE"]=1]="BEZIER_CURVE"})(Qa||(Qa={}));var Ta,Oa=function(t,e){return t.length===e.length&&t.some((function(t,A){return t===e[A]}))},Ra=function(t,e,A,r,n){return t.map((function(t,i){switch(i){case 0:return t.add(e,A);case 1:return t.add(e+r,A);case 2:return t.add(e+r,A+n);case 3:return t.add(e,A+n)}return t}))},Ka=function(){function t(t,e){this.type=Qa.VECTOR,this.x=t,this.y=e}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),Ma=function(t,e,A){return new Ka(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},ka=function(){function t(t,e,A,r){this.type=Qa.BEZIER_CURVE,this.start=t,this.startControl=e,this.endControl=A,this.end=r}return t.prototype.subdivide=function(e,A){var r=Ma(this.start,this.startControl,e),n=Ma(this.startControl,this.endControl,e),i=Ma(this.endControl,this.end,e),o=Ma(r,n,e),a=Ma(n,i,e),s=Ma(o,a,e);return A?new t(this.start,r,o,s):new t(s,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Da=function(t){return t.type===Qa.BEZIER_CURVE},ja=function(){function t(t){var e=t.styles,A=t.bounds,r=qA(e.borderTopLeftRadius,A.width,A.height),n=r[0],i=r[1],o=qA(e.borderTopRightRadius,A.width,A.height),a=o[0],s=o[1],c=qA(e.borderBottomRightRadius,A.width,A.height),u=c[0],l=c[1],h=qA(e.borderBottomLeftRadius,A.width,A.height),f=h[0],d=h[1],p=[];p.push((n+a)/A.width),p.push((f+u)/A.width),p.push((i+d)/A.height),p.push((s+l)/A.height);var B=Math.max.apply(Math,p);B>1&&(n/=B,i/=B,a/=B,s/=B,u/=B,l/=B,f/=B,d/=B);var g=A.width-a,w=A.height-l,m=A.width-u,v=A.height-d,b=e.borderTopWidth,Q=e.borderRightWidth,C=e.borderBottomWidth,y=e.borderLeftWidth,F=GA(e.paddingTop,t.bounds.width),U=GA(e.paddingRight,t.bounds.width),N=GA(e.paddingBottom,t.bounds.width),E=GA(e.paddingLeft,t.bounds.width);this.topLeftBorderBox=n>0||i>0?za(A.left,A.top,n,i,Ta.TOP_LEFT):new Ka(A.left,A.top),this.topRightBorderBox=a>0||s>0?za(A.left+g,A.top,a,s,Ta.TOP_RIGHT):new Ka(A.left+A.width,A.top),this.bottomRightBorderBox=u>0||l>0?za(A.left+m,A.top+w,u,l,Ta.BOTTOM_RIGHT):new Ka(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=f>0||d>0?za(A.left,A.top+v,f,d,Ta.BOTTOM_LEFT):new Ka(A.left,A.top+A.height),this.topLeftPaddingBox=n>0||i>0?za(A.left+y,A.top+b,Math.max(0,n-y),Math.max(0,i-b),Ta.TOP_LEFT):new Ka(A.left+y,A.top+b),this.topRightPaddingBox=a>0||s>0?za(A.left+Math.min(g,A.width+y),A.top+b,g>A.width+y?0:a-y,s-b,Ta.TOP_RIGHT):new Ka(A.left+A.width-Q,A.top+b),this.bottomRightPaddingBox=u>0||l>0?za(A.left+Math.min(m,A.width-y),A.top+Math.min(w,A.height+b),Math.max(0,u-Q),l-C,Ta.BOTTOM_RIGHT):new Ka(A.left+A.width-Q,A.top+A.height-C),this.bottomLeftPaddingBox=f>0||d>0?za(A.left+y,A.top+v,Math.max(0,f-y),d-C,Ta.BOTTOM_LEFT):new Ka(A.left+y,A.top+A.height-C),this.topLeftContentBox=n>0||i>0?za(A.left+y+E,A.top+b+F,Math.max(0,n-(y+E)),Math.max(0,i-(b+F)),Ta.TOP_LEFT):new Ka(A.left+y+E,A.top+b+F),this.topRightContentBox=a>0||s>0?za(A.left+Math.min(g,A.width+y+E),A.top+b+F,g>A.width+y+E?0:a-y+E,s-(b+F),Ta.TOP_RIGHT):new Ka(A.left+A.width-(Q+U),A.top+b+F),this.bottomRightContentBox=u>0||l>0?za(A.left+Math.min(m,A.width-(y+E)),A.top+Math.min(w,A.height+b+F),Math.max(0,u-(Q+U)),l-(C+N),Ta.BOTTOM_RIGHT):new Ka(A.left+A.width-(Q+U),A.top+A.height-(C+N)),this.bottomLeftContentBox=f>0||d>0?za(A.left+y+E,A.top+v,Math.max(0,f-(y+E)),d-(C+N),Ta.BOTTOM_LEFT):new Ka(A.left+y+E,A.top+A.height-(C+N))}return t}();(function(t){t[t["TOP_LEFT"]=0]="TOP_LEFT",t[t["TOP_RIGHT"]=1]="TOP_RIGHT",t[t["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",t[t["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Ta||(Ta={}));var za=function(t,e,A,r,n){var i=(Math.sqrt(2)-1)/3*4,o=A*i,a=r*i,s=t+A,c=e+r;switch(n){case Ta.TOP_LEFT:return new ka(new Ka(t,c),new Ka(t,c-a),new Ka(s-o,e),new Ka(s,e));case Ta.TOP_RIGHT:return new ka(new Ka(t,e),new Ka(t+o,e),new Ka(s,c-a),new Ka(s,c));case Ta.BOTTOM_RIGHT:return new ka(new Ka(s,e),new Ka(s,e+a),new Ka(t+o,c),new Ka(t,c));case Ta.BOTTOM_LEFT:default:return new ka(new Ka(s,c),new Ka(s-o,c),new Ka(t,e+a),new Ka(t,e))}},Va=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},qa=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Ga=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Xa=function(){function t(t,e,A){this.type=0,this.offsetX=t,this.offsetY=e,this.matrix=A,this.target=6}return t}(),Ja=function(){function t(t,e){this.type=1,this.target=e,this.path=t}return t}(),Wa=function(t){return 0===t.type},Ya=function(t){return 1===t.type},Za=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),$a=function(){function t(t,e){if(this.container=t,this.effects=e.slice(0),this.curves=new ja(t),null!==t.styles.transform){var A=t.bounds.left+t.styles.transformOrigin[0].number,r=t.bounds.top+t.styles.transformOrigin[1].number,n=t.styles.transform;this.effects.push(new Xa(A,r,n))}if(t.styles.overflowX!==ei.VISIBLE){var i=Va(this.curves),o=Ga(this.curves);Oa(i,o)?this.effects.push(new Ja(i,6)):(this.effects.push(new Ja(i,2)),this.effects.push(new Ja(o,4)))}}return t.prototype.getParentEffects=function(){var t=this.effects.slice(0);if(this.container.styles.overflowX!==ei.VISIBLE){var e=Va(this.curves),A=Ga(this.curves);Oa(e,A)||t.push(new Ja(A,6))}return t},t}(),ts=function(t,e,A,r){t.container.elements.forEach((function(n){var i=Vi(n.flags,4),o=Vi(n.flags,2),a=new $a(n,t.getParentEffects());Vi(n.styles.display,2048)&&r.push(a);var s=Vi(n.flags,8)?[]:r;if(i||o){var c=i||n.styles.isPositioned()?A:e,u=new Za(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var l=n.styles.zIndex.order;if(l<0){var h=0;c.negativeZIndex.some((function(t,e){return l>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),c.negativeZIndex.splice(h,0,u)}else if(l>0){var f=0;c.positiveZIndex.some((function(t,e){return l>=t.element.container.styles.zIndex.order?(f=e+1,!1):f>0})),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);ts(a,u,i?u:A,s)}else n.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),ts(a,e,A,s);Vi(n.flags,8)&&es(n,s)}))},es=function(t,e){for(var A=t instanceof wo?t.start:1,r=t instanceof wo&&t.reversed,n=0;n0&&t.intrinsicHeight>0){var r=os(t),n=Ga(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var A,r,o,a,s,c,u,l,h,f,d,p,B,g,w;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(e.effects,4),A=e.container,r=e.curves,o=A.styles,a=0,s=A.textNodes,n.label=1;case 1:return a0&&y>0&&(w=r.ctx.createPattern(p,"repeat"),r.renderRepeat(v,w,U,N))):an(A)&&(m=cs(t,e,[null,null,null]),v=m[0],b=m[1],Q=m[2],C=m[3],y=m[4],F=0===A.position.length?[zA]:A.position,U=GA(F[0],C),N=GA(F[F.length-1],y),E=Cr(A,U,N,C,y),L=E[0],H=E[1],L>0&&L>0&&(S=r.ctx.createRadialGradient(b+U,Q+N,0,b+U,Q+N,L),wr(A.stops,2*L).forEach((function(t){return S.addColorStop(t.stop,nr(t.color))})),r.path(v),r.ctx.fillStyle=S,L!==H?(_=t.bounds.left+.5*t.bounds.width,x=t.bounds.top+.5*t.bounds.height,I=H/L,P=1/I,r.ctx.save(),r.ctx.translate(_,x),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-_,-x),r.ctx.fillRect(b,P*(Q-x)+x,C,y*P),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}}))},r=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=A.call(i,"catchLoc"),s=A.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev=0;--e){var A=this.tryEntries[e];if(A.finallyLoc===t)return this.complete(A.completion,A.afterLoc),Q(A),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var A=this.tryEntries[e];if(A.tryLoc===t){var r=A.completion;if("throw"===r.type){var n=r.arg;Q(A)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,A){return this.delegate={iterator:y(t),resultName:e,nextLoc:A},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,A){"use strict";A.r(e);var r=A(0),n=A.n(r),i=A(2),o=A.n(i),a=A(3),s=A(1),c=A.n(s),u={jsPDF:{unit:"px",format:"a4"},html2canvas:{imageTimeout:15e3,logging:!0,useCORS:!1},margin:{right:0,top:0,bottom:0,left:0},imageType:"image/jpeg",imageQuality:1,output:"jspdf-generate.pdf",init:function(){},success:function(t){t.save(this.output)}},l=A(4),h=A.n(l);function f(t){return null!==t&&"object"===h()(t)}function d(t){return"function"==typeof t}function p(t,e){for(var A=0,r=Object.keys(t);A0;){if(r.addImage(h,{"image/jpeg":"JPEG","image/png":"PNG","image/webp":"WEBP"}[A.imageType],p.left,s+p.top*u+p.bottom*(u-1),n,f),r.setFillColor(255,255,255),r.rect(0,0,o,p.top,"F"),r.rect(0,a-p.bottom,o,p.bottom,"F"),d1&&void 0!==o[1]?o[1]:{},A=p(u,A),r=B(A),A.init.call(A,r.pdf),!e.length){t.next=16;break}i=0;case 6:if(!(i>>1|(21845&g)<<1;w=(52428&w)>>>2|(13107&w)<<2,w=(61680&w)>>>4|(3855&w)<<4,B[g]=((65280&w)>>>8|(255&w)<<8)>>>1}var m=function(t,e,A){for(var r=t.length,i=0,o=new n(e);i>>c]=u}else for(a=new n(r),i=0;i>>15-t[i];return a},v=new r(288);for(g=0;g<144;++g)v[g]=8;for(g=144;g<256;++g)v[g]=9;for(g=256;g<280;++g)v[g]=7;for(g=280;g<288;++g)v[g]=8;var b=new r(32);for(g=0;g<32;++g)b[g]=5;var Q=m(v,9,0),C=m(v,9,1),y=m(b,5,0),F=m(b,5,1),U=function(t){for(var e=t[0],A=1;Ae&&(e=t[A]);return e},N=function(t,e,A){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&A},E=function(t,e){var A=e/8>>0;return(t[A]|t[A+1]<<8|t[A+2]<<16)>>>(7&e)},L=function(t){return(t/8>>0)+(7&t&&1)},H=function(t,e,A){(null==e||e<0)&&(e=0),(null==A||A>t.length)&&(A=t.length);var o=new(t instanceof n?n:t instanceof i?i:r)(A-e);return o.set(t.subarray(e,A)),o},S=function(t,e,A){var n=t.length,i=!e||A,c=!A||A.i;A||(A={}),e||(e=new r(3*n));var u=function(t){var A=e.length;if(t>A){var n=new r(Math.max(2*A,t));n.set(e),e=n}},h=A.f||0,f=A.p||0,p=A.b||0,B=A.l,g=A.d,w=A.m,v=A.n,b=8*n;do{if(!B){A.f=h=N(t,f,1);var Q=N(t,f+1,3);if(f+=3,!Q){var y=L(f)+4,S=t[y-4]|t[y-3]<<8,_=y+S;if(_>n){if(c)throw"unexpected EOF";break}i&&u(p+S),e.set(t.subarray(y,_),p),A.b=p+=S,A.p=f=8*_;continue}if(1==Q)B=C,g=F,w=9,v=5;else{if(2!=Q)throw"invalid block type";var x=N(t,f,31)+257,I=N(t,f+10,15)+4,P=x+N(t,f+5,31)+1;f+=14;for(var T=new r(P),O=new r(19),R=0;Rb)break;var k=m(O,K,1);for(R=0;R>>4;if(y<16)T[R++]=y;else{var j=0,z=0;16==y?(z=3+N(t,f,3),f+=2,j=T[R-1]):17==y?(z=3+N(t,f,7),f+=3):18==y&&(z=11+N(t,f,127),f+=7);while(z--)T[R++]=j}}var V=T.subarray(0,x),q=T.subarray(x);w=U(V),v=U(q),B=m(V,w,1),g=m(q,v,1)}if(f>b)throw"unexpected EOF"}i&&u(p+131072);var G=(1<>>4;if(f+=15&j,f>b)throw"unexpected EOF";if(!j)throw"invalid length/literal";if(W<256)e[p++]=W;else{if(256==W){B=null;break}var Y=W-254;if(W>264){R=W-257;var Z=o[R];Y=N(t,f,(1<>>4;if(!$)throw"invalid distance";f+=15&$;q=d[tt];if(tt>3){Z=a[tt];q+=E(t,f)&(1<b)throw"unexpected EOF";i&&u(p+131072);for(var et=p+Y;p>0;t[r]|=A,t[r+1]|=A>>>8},x=function(t,e,A){A<<=7&e;var r=e/8>>0;t[r]|=A,t[r+1]|=A>>>8,t[r+2]|=A>>>16},I=function(t,e){for(var A=[],i=0;id&&(d=a[i].s);var p=new n(d+1),B=P(A[h-1],p,0);if(B>e){i=0;var g=0,w=B-e,m=1<e))break;g+=m-(1<>>=w;while(g>0){var b=a[i].s;p[b]=0&&g;--i){var Q=a[i].s;p[Q]==e&&(--p[Q],++g)}B=e}return[new r(p),B]},P=function(t,e,A){return-1==t.s?Math.max(P(t.l,e,A+1),P(t.r,e,A+1)):e[t.s]=A},T=function(t){var e=t.length;while(e&&!t[--e]);for(var A=new n(++e),r=0,i=t[0],o=1,a=function(t){A[r++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}while(o--)a(i);o=1,i=t[s]}return[A.subarray(0,r),e]},O=function(t,e){for(var A=0,r=0;r>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var i=0;i4&&!k[s[j-1]];--j);var z,V,q,G,X=f+5<<3,J=O(i,v)+O(c,b)+u,W=O(i,B)+O(c,C)+u+14+3*j+O(P,k)+(2*P[16]+3*P[17]+7*P[18]);if(X<=J&&X<=W)return R(e,d,t.subarray(h,h+f));if(_(e,d,1+(W15&&(_(e,d,tt[K]>>>5&127),d+=tt[K]>>>12)}}}else z=Q,V=v,q=y,G=b;for(K=0;K255){et=r[K]>>>18&31;x(e,d,z[et+257]),d+=V[et+257],et>7&&(_(e,d,r[K]>>>23&31),d+=o[et]);var At=31&r[K];x(e,d,q[At]),d+=G[At],At>3&&(x(e,d,r[K]>>>5&8191),d+=a[At])}else x(e,d,z[r[K]]),d+=V[r[K]];return x(e,d,z[256]),d+V[256]},M=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),k=new r(0),D=function(t,e,A,s,c,u){var l=t.length,f=new r(s+l+5*(1+Math.floor(l/7e3))+c),d=f.subarray(s,f.length-c),B=0;if(!e||l<8)for(var g=0;g<=l;g+=65535){var w=g+65535;w>>13,b=8191&m,Q=(1<7e3||P>24576)&&V>423){B=K(t,d,0,E,S,_,I,P,O,g-O,B),P=x=I=0,O=g;for(var q=0;q<286;++q)S[q]=0;for(q=0;q<30;++q)_[q]=0}var G=2,X=0,J=b,W=j-z&32767;if(V>2&&D==N(g-W)){var Y=Math.min(v,V)-1,Z=Math.min(32767,g),$=Math.min(258,V);while(W<=Z&&--J&&j!=z){if(t[g+G]==t[g+G-W]){for(var tt=0;tt<$&&t[g+tt]==t[g+tt-W];++tt);if(tt>G){if(G=tt,X=W,tt>Y)break;var et=Math.min(W,tt-2),At=0;for(q=0;qAt&&(At=it,z=rt)}}}j=z,z=C[j],W+=j-z+32768&32767}}if(X){E[P++]=268435456|h[G]<<18|p[X];var ot=31&h[G],at=31&p[X];I+=o[ot]+a[at],++S[257+ot],++_[at],T=g+G,++x}else E[P++]=t[g],++S[t[g]]}}B=K(t,d,u,E,S,_,I,P,O,g-O,B),u||(B=R(d,B,k))}return H(f,0,s+L(B)+c)},j=function(){var t=1,e=0;return{p:function(A){for(var r=t,n=e,i=A.length,o=0;o!=i;){for(var a=Math.min(o+5552,i);o>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},z=function(t,e,A,r,n){return D(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,A,r,!n)},V=function(t,e,A){for(;A;++e)t[e]=A,A>>>=8},q=function(t,e){var A=e.level,r=0==A?0:A<6?1:9==A?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},G=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function X(t,e){void 0===e&&(e={});var A=j();A.p(t);var r=z(t,e,2,4);return q(r,e),V(r,r.length-4,A.d()),r}function J(t,e){return S((G(t),t.subarray(2,-4)),e)}},"8b7f":function(t,e,A){"use strict";A.r(e),function(t){A.d(e,"AcroForm",(function(){return yt})),A.d(e,"AcroFormAppearance",(function(){return Qt})),A.d(e,"AcroFormButton",(function(){return pt})),A.d(e,"AcroFormCheckBox",(function(){return mt})),A.d(e,"AcroFormChoiceField",(function(){return lt})),A.d(e,"AcroFormComboBox",(function(){return ft})),A.d(e,"AcroFormEditBox",(function(){return dt})),A.d(e,"AcroFormListBox",(function(){return ht})),A.d(e,"AcroFormPasswordField",(function(){return bt})),A.d(e,"AcroFormPushButton",(function(){return Bt})),A.d(e,"AcroFormRadioButton",(function(){return gt})),A.d(e,"AcroFormTextField",(function(){return vt})),A.d(e,"GState",(function(){return S})),A.d(e,"ShadingPattern",(function(){return x})),A.d(e,"TilingPattern",(function(){return I})),A.d(e,"jsPDF",(function(){return P}));var r=A("8249"),n=function(){return"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this}(); /** @license * * jsPDF - PDF Document creation from JavaScript * Version 2.3.1 Built on 2021-03-08T15:44:11.674Z * CommitID 00000000 * * Copyright (c) 2010-2020 James Hall , https://github.com/MrRio/jsPDF * 2015-2020 yWorks GmbH, http://www.yworks.com * 2015-2020 Lukas Holländer , https://github.com/HackbrettXXX * 2016-2018 Aras Abbasi * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, willow-systems.com * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */function i(){n.console&&"function"==typeof n.console.log&&n.console.log.apply(n.console,arguments)}var o={log:i,warn:function(t){n.console&&("function"==typeof n.console.warn?n.console.warn.apply(n.console,arguments):i.call(null,arguments))},error:function(t){n.console&&("function"==typeof n.console.error?n.console.error.apply(n.console,arguments):i(t))}}; /** * @license * FileSaver.js * A saveAs() FileSaver implementation. * * By Eli Grey, http://eligrey.com * * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT) * source : http://purl.eligrey.com/github/FileSaver.js */function a(t,e,A){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){h(r.response,e,A)},r.onerror=function(){o.error("could not download file")},r.send()}function s(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function c(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var u,l,h=n.saveAs||("object"!=typeof window||window!==n?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,A){var r=n.URL||n.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?s(i.href)?a(t,e,A):c(i,i.target="_blank"):c(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){c(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,A){if(e=e||t.name||"download","string"==typeof t)if(s(t))a(t,e,A);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){c(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(o.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,A),e)}:function(t,e,A,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return a(t,e,A);var i="application/octet-stream"===t.type,o=/constructor/i.test(n.HTMLElement)||n.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var u=n.URL||n.webkitURL,l=u.createObjectURL(t);r?r.location=l:location.href=l,r=null,setTimeout((function(){u.revokeObjectURL(l)}),4e4)}}); /** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function f(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),A=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==A.length&&(A="0"+A),"#"+t+e+A /** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */}}function d(t,e){var A=t[0],r=t[1],n=t[2],i=t[3];A=B(A,r,n,i,e[0],7,-680876936),i=B(i,A,r,n,e[1],12,-389564586),n=B(n,i,A,r,e[2],17,606105819),r=B(r,n,i,A,e[3],22,-1044525330),A=B(A,r,n,i,e[4],7,-176418897),i=B(i,A,r,n,e[5],12,1200080426),n=B(n,i,A,r,e[6],17,-1473231341),r=B(r,n,i,A,e[7],22,-45705983),A=B(A,r,n,i,e[8],7,1770035416),i=B(i,A,r,n,e[9],12,-1958414417),n=B(n,i,A,r,e[10],17,-42063),r=B(r,n,i,A,e[11],22,-1990404162),A=B(A,r,n,i,e[12],7,1804603682),i=B(i,A,r,n,e[13],12,-40341101),n=B(n,i,A,r,e[14],17,-1502002290),A=g(A,r=B(r,n,i,A,e[15],22,1236535329),n,i,e[1],5,-165796510),i=g(i,A,r,n,e[6],9,-1069501632),n=g(n,i,A,r,e[11],14,643717713),r=g(r,n,i,A,e[0],20,-373897302),A=g(A,r,n,i,e[5],5,-701558691),i=g(i,A,r,n,e[10],9,38016083),n=g(n,i,A,r,e[15],14,-660478335),r=g(r,n,i,A,e[4],20,-405537848),A=g(A,r,n,i,e[9],5,568446438),i=g(i,A,r,n,e[14],9,-1019803690),n=g(n,i,A,r,e[3],14,-187363961),r=g(r,n,i,A,e[8],20,1163531501),A=g(A,r,n,i,e[13],5,-1444681467),i=g(i,A,r,n,e[2],9,-51403784),n=g(n,i,A,r,e[7],14,1735328473),A=w(A,r=g(r,n,i,A,e[12],20,-1926607734),n,i,e[5],4,-378558),i=w(i,A,r,n,e[8],11,-2022574463),n=w(n,i,A,r,e[11],16,1839030562),r=w(r,n,i,A,e[14],23,-35309556),A=w(A,r,n,i,e[1],4,-1530992060),i=w(i,A,r,n,e[4],11,1272893353),n=w(n,i,A,r,e[7],16,-155497632),r=w(r,n,i,A,e[10],23,-1094730640),A=w(A,r,n,i,e[13],4,681279174),i=w(i,A,r,n,e[0],11,-358537222),n=w(n,i,A,r,e[3],16,-722521979),r=w(r,n,i,A,e[6],23,76029189),A=w(A,r,n,i,e[9],4,-640364487),i=w(i,A,r,n,e[12],11,-421815835),n=w(n,i,A,r,e[15],16,530742520),A=m(A,r=w(r,n,i,A,e[2],23,-995338651),n,i,e[0],6,-198630844),i=m(i,A,r,n,e[7],10,1126891415),n=m(n,i,A,r,e[14],15,-1416354905),r=m(r,n,i,A,e[5],21,-57434055),A=m(A,r,n,i,e[12],6,1700485571),i=m(i,A,r,n,e[3],10,-1894986606),n=m(n,i,A,r,e[10],15,-1051523),r=m(r,n,i,A,e[1],21,-2054922799),A=m(A,r,n,i,e[8],6,1873313359),i=m(i,A,r,n,e[15],10,-30611744),n=m(n,i,A,r,e[6],15,-1560198380),r=m(r,n,i,A,e[13],21,1309151649),A=m(A,r,n,i,e[4],6,-145523070),i=m(i,A,r,n,e[11],10,-1120210379),n=m(n,i,A,r,e[2],15,718787259),r=m(r,n,i,A,e[9],21,-343485551),t[0]=U(A,t[0]),t[1]=U(r,t[1]),t[2]=U(n,t[2]),t[3]=U(i,t[3])}function p(t,e,A,r,n,i){return e=U(U(e,t),U(r,i)),U(e<>>32-n,A)}function B(t,e,A,r,n,i,o){return p(e&A|~e&r,t,e,n,i,o)}function g(t,e,A,r,n,i,o){return p(e&r|A&~r,t,e,n,i,o)}function w(t,e,A,r,n,i,o){return p(e^A^r,t,e,n,i,o)}function m(t,e,A,r,n,i,o){return p(A^(e|~r),t,e,n,i,o)}function v(t){var e,A=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)d(r,b(t.substring(e-64,e)));t=t.substring(e-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),e>55)for(d(r,n),e=0;e<16;e++)n[e]=0;return n[14]=8*A,d(r,n),r}function b(t){var e,A=[];for(e=0;e<64;e+=4)A[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return A}u=n.atob.bind(n),l=n.btoa.bind(n);var Q="0123456789abcdef".split("");function C(t){for(var e="",A=0;A<4;A++)e+=Q[t>>8*A+4&15]+Q[t>>8*A&15];return e}function y(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function F(t){return v(t).map(y).join("")}function U(t,e){return t+e&4294967295}if("5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>16)+(e>>16)+(A>>16)<<16|65535&A}} /** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function N(t,e){var A,r,n,i;if(t!==A){for(var o=(n=t,i=1+(256/t.length>>0),new Array(i+1).join(n)),a=[],s=0;s<256;s++)a[s]=s;var c=0;for(s=0;s<256;s++){var u=a[s];c=(c+u+o.charCodeAt(s))%256,a[s]=a[c],a[c]=u}A=t,r=a}else a=r;var l=e.length,h=0,f=0,d="";for(s=0;s€/\f©þdSiz";let i=(e+this.padding).substr(0,32),o=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^n)),this.encryptionKey=F(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=N(this.encryptionKey,this.padding)}function H(t){if("object"!=typeof t)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,A,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof A||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var n=Math.random().toString(35);return e[t][n]=[A,!!r],n},this.unsubscribe=function(t){for(var A in e)if(e[A][t])return delete e[A][t],0===Object.keys(e[A]).length&&delete e[A],!0;return!1},this.publish=function(A){if(e.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[A]){var s=e[A][a];try{s[0].apply(t,r)}catch(t){n.console&&o.error("jsPDF PubSub Error",t.message,t)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function S(t){if(!(this instanceof S))return new S(t);var e="opacity,stroke-opacity".split(",");for(var A in t)t.hasOwnProperty(A)&&e.indexOf(A)>=0&&(this[A]=t[A]);this.id="",this.objectNumber=-1}function _(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function x(t,e,A,r,n){if(!(this instanceof x))return new x(t,e,A,r,n);this.type="axial"===t?2:3,this.coords=e,this.colors=A,_.call(this,r,n)}function I(t,e,A,r,n){if(!(this instanceof I))return new I(t,e,A,r,n);this.boundingBox=t,this.xStep=e,this.yStep=A,this.stream="",this.cloneIndex=0,_.call(this,r,n)}function P(t){var e,A="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],s=[],c=1,u=16,d="S",p=null;"object"==typeof(t=t||{})&&(A=t.orientation,r=t.unit||r,i=t.format||i,a=t.compress||t.compressPdf||a,null!==(p=t.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),c="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),d=t.defaultPathOperation||"S"),s=t.filters||(!0===a?["FlateEncode"]:s),r=r||"mm",A=(""+(A||"P")).toLowerCase();var B=t.putOnlyUsedFonts||!1,g={},w={internal:{},__private__:{}};w.__private__.PubSub=H;var m="1.3",v=w.__private__.getPdfVersion=function(){return m};w.__private__.setPdfVersion=function(t){m=t};var b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};w.__private__.getPageFormats=function(){return b};var Q=w.__private__.getPageFormat=function(t){return b[t]};i=i||"a4";var C={COMPAT:"compat",ADVANCED:"advanced"},y=C.COMPAT;function F(){this.saveGraphicsState(),ct(new jt(yt,0,0,-yt,0,TA()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),d="n",y=C.ADVANCED}function U(){this.restoreGraphicsState(),d="S",y=C.COMPAT}var N=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&t!==e&&(t=400==e?"italic"==t?"italic":"normal":700==e&&"italic"!==t?"bold":t+""+e),t};w.advancedAPI=function(t){var e=y===C.COMPAT;return e&&F.call(this),"function"!=typeof t||(t(this),e&&U.call(this)),this},w.compatAPI=function(t){var e=y===C.ADVANCED;return e&&U.call(this),"function"!=typeof t||(t(this),e&&F.call(this)),this},w.isAdvancedAPI=function(){return y===C.ADVANCED};var E,_=function(t){if(y!==C.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},T=w.roundToPrecision=w.__private__.roundToPrecision=function(t,A){var r=e||A;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};E=w.hpf=w.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return T(t,u)}:"smart"===u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return T(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return T(t,16)};var O=w.f2=w.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return T(t,2)},R=w.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return T(t,3)},K=w.scale=w.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return y===C.COMPAT?t*yt:y===C.ADVANCED?t:void 0},M=function(t){return y===C.COMPAT?TA()-t:y===C.ADVANCED?t:void 0},k=function(t){return K(M(t))};w.__private__.setPrecision=w.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var D,j="00000000000000000000000000000000",z=w.__private__.getFileId=function(){return j},V=w.__private__.setFileId=function(t){return j=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():j.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==p&&(Ve=new L(p.userPermissions,p.userPassword,p.ownerPassword,j)),j};w.setFileId=function(t){return V(t),this},w.getFileId=function(){return z()};var q=w.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),A=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),n=Math.abs(e%60),i=[A,Y(r),"'",Y(n),"'"].join("");return["D:",t.getFullYear(),Y(t.getMonth()+1),Y(t.getDate()),Y(t.getHours()),Y(t.getMinutes()),Y(t.getSeconds()),i].join("")},G=w.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),A=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),n=parseInt(t.substr(10,2),10),i=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,A,r,n,i,o,0)},X=w.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=q(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return D=e},J=w.__private__.getCreationDate=function(t){var e=D;return"jsDate"===t&&(e=G(D)),e};w.setCreationDate=function(t){return X(t),this},w.getCreationDate=function(t){return J(t)};var W,Y=w.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},Z=w.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},$=0,tt=[],et=[],At=0,rt=[],nt=[],it=!1,ot=et,at=function(){$=0,At=0,et=[],tt=[],rt=[],Yt=Xt(),Zt=Xt()};w.__private__.setCustomOutputDestination=function(t){it=!0,ot=t};var st=function(t){it||(ot=t)};w.__private__.resetCustomOutputDestination=function(){it=!1,ot=et};var ct=w.__private__.out=function(t){return t=t.toString(),At+=t.length+1,ot.push(t),ot},ut=w.__private__.write=function(t){return ct(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},lt=w.__private__.getArrayBuffer=function(t){for(var e=t.length,A=new ArrayBuffer(e),r=new Uint8Array(A);e--;)r[e]=t.charCodeAt(e);return A},ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];w.__private__.getStandardFonts=function(){return ht};var ft=t.fontSize||16;w.__private__.setFontSize=w.setFontSize=function(t){return ft=y===C.ADVANCED?t/yt:t,this};var dt,pt=w.__private__.getFontSize=w.getFontSize=function(){return y===C.COMPAT?ft:ft*yt},Bt=t.R2L||!1;w.__private__.setR2L=w.setR2L=function(t){return Bt=t,this},w.__private__.getR2L=w.getR2L=function(){return Bt};var gt,wt=w.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(t))dt=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');dt=t}else dt=parseInt(t,10)};w.__private__.getZoomMode=function(){return dt};var mt,vt=w.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');gt=t};w.__private__.getPageMode=function(){return gt};var bt=w.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');mt=t};w.__private__.getLayoutMode=function(){return mt},w.__private__.setDisplayMode=w.setDisplayMode=function(t,e,A){return wt(t),bt(e),vt(A),this};var Qt={title:"",subject:"",author:"",keywords:"",creator:""};w.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Qt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Qt[t]},w.__private__.getDocumentProperties=function(){return Qt},w.__private__.setDocumentProperties=w.setProperties=w.setDocumentProperties=function(t){for(var e in Qt)Qt.hasOwnProperty(e)&&t[e]&&(Qt[e]=t[e]);return this},w.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Qt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Qt[t]=e};var Ct,yt,Ft,Ut,Nt,Et={},Lt={},Ht=[],St={},_t={},xt={},It={},Pt=null,Tt=0,Ot=[],Rt=new H(w),Kt=t.hotfixes||[],Mt={},kt={},Dt=[],jt=function(t,e,A,r,n,i){if(!(this instanceof jt))return new jt(t,e,A,r,n,i);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(A)&&(A=0),isNaN(r)&&(r=1),isNaN(n)&&(n=0),isNaN(i)&&(i=0),this._matrix=[t,e,A,r,n,i]};Object.defineProperty(jt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(jt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(jt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(jt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(jt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(jt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(jt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(jt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(jt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(jt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(jt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(jt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(jt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(jt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(jt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(jt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),jt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(t)},jt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,A=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,n=t.shx*this.shy+t.sy*this.sy,i=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new jt(e,A,r,n,i,o)},jt.prototype.decompose=function(){var t=this.sx,e=this.shy,A=this.shx,r=this.sy,n=this.tx,i=this.ty,o=Math.sqrt(t*t+e*e),a=(t/=o)*A+(e/=o)*r;A-=t*a,r-=e*a;var s=Math.sqrt(A*A+r*r);return a/=s,t*(r/=s)>16&255,r=s>>8&255,n=255&s}if(void 0===r||void 0===i&&A===r&&r===n)if("string"==typeof A)e=A+" "+o[0];else switch(t.precision){case 2:e=O(A/255)+" "+o[0];break;case 3:default:e=R(A/255)+" "+o[0]}else if(void 0===i||"object"==typeof i){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",o[1]].join(" ");if("string"==typeof A)e=[A,r,n,o[1]].join(" ");else switch(t.precision){case 2:e=[O(A/255),O(r/255),O(n/255),o[1]].join(" ");break;default:case 3:e=[R(A/255),R(r/255),R(n/255),o[1]].join(" ")}}else if("string"==typeof A)e=[A,r,n,i,o[2]].join(" ");else switch(t.precision){case 2:e=[O(A),O(r),O(n),O(i),o[2]].join(" ");break;case 3:default:e=[R(A),R(r),R(n),R(i),o[2]].join(" ")}return e},ee=w.__private__.getFilters=function(){return s},Ae=w.__private__.putStream=function(t){var e=(t=t||{}).data||"",A=t.filters||ee(),r=t.alreadyAppliedFilters||[],n=t.addLength1||!1,i=e.length,o=t.objectId,a=function(t){return t};if(null!==p&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(a=Ve.encryptor(o,0));var s={};!0===A&&(A=["FlateEncode"]);var c=t.additionalKeyValues||[],u=(s=void 0!==P.API.processDataByFilters?P.API.processDataByFilters(e,A):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==s.data.length&&(c.push({key:"Length",value:s.data.length}),!0===n&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var l=0;l>"),0!==s.data.length&&(ct("stream"),ct(a(s.data)),ct("endstream"))},re=w.__private__.putPage=function(t){var e=t.number,A=t.data,r=t.objId,n=t.contentsObjId;Jt(r,!0),ct("<>"),ct("endobj");var i=A.join("\n");return y===C.ADVANCED&&(i+="\nQ"),Jt(n,!0),Ae({data:i,filters:ee(),objectId:n}),ct("endobj"),r},ne=w.__private__.putPages=function(){var t,e,A=[];for(t=1;t<=Tt;t++)Ot[t].objId=Xt(),Ot[t].contentsObjId=Xt();for(t=1;t<=Tt;t++)A.push(re({number:t,data:nt[t],objId:Ot[t].objId,contentsObjId:Ot[t].contentsObjId,mediaBox:Ot[t].mediaBox,cropBox:Ot[t].cropBox,bleedBox:Ot[t].bleedBox,trimBox:Ot[t].trimBox,artBox:Ot[t].artBox,userUnit:Ot[t].userUnit,rootDictionaryObjId:Yt,resourceDictionaryObjId:Zt}));Jt(Yt,!0),ct("<>"),ct("endobj"),Rt.publish("postPutPages")},ie=function(t){var e=function(t,e){return-1!==t.indexOf(" ")?"("+Le(t,e)+")":Le(t,e)};Rt.publish("putFont",{font:t,out:ct,newObject:Gt,putStream:Ae,pdfEscapeWithNeededParanthesis:e}),!0!==t.isAlreadyPutted&&(t.objectNumber=Gt(),ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+e(t.postScriptName)),ct("/Subtype /Type1"),"string"==typeof t.encoding&&ct("/Encoding /"+t.encoding),ct("/FirstChar 32"),ct("/LastChar 255"),ct(">>"),ct("endobj"))},oe=function(){for(var t in Et)Et.hasOwnProperty(t)&&(!1===B||!0===B&&g.hasOwnProperty(t))&&ie(Et[t])},ae=function(t){t.objectNumber=Gt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[E(t.x),E(t.y),E(t.x+t.width),E(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var A=t.pages[1].join("\n");Ae({data:A,additionalKeyValues:e,objectId:t.objectNumber}),ct("endobj")},se=function(){for(var t in Mt)Mt.hasOwnProperty(t)&&ae(Mt[t])},ce=function(t,e){var A,r=[],n=1/(e-1);for(A=0;A<1;A+=n)r.push(A);if(r.push(1),0!=t[0].offset){var i={offset:0,color:t[0].color};t.unshift(i)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var a="",s=0,c=0;ct[s+1].offset;)s++;var u=t[s].offset,l=(A-u)/(t[s+1].offset-u),h=t[s].color,f=t[s+1].color;a+=Z(Math.round((1-l)*h[0]+l*f[0]).toString(16))+Z(Math.round((1-l)*h[1]+l*f[1]).toString(16))+Z(Math.round((1-l)*h[2]+l*f[2]).toString(16))}return a.trim()},ue=function(t,e){e||(e=21);var A=Gt(),r=ce(t.colors,e),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+e+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ae({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:A}),ct("endobj"),t.objectNumber=Gt(),ct("<< /ShadingType "+t.type),ct("/ColorSpace /DeviceRGB");var i="/Coords ["+E(parseFloat(t.coords[0]))+" "+E(parseFloat(t.coords[1]))+" ";2===t.type?i+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3])):i+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3]))+" "+E(parseFloat(t.coords[4]))+" "+E(parseFloat(t.coords[5])),ct(i+="]"),t.matrix&&ct("/Matrix ["+t.matrix.toString()+"]"),ct("/Function "+A+" 0 R"),ct("/Extend [true true]"),ct(">>"),ct("endobj")},le=function(t,e){var A=Xt(),r=Gt();e.push({resourcesOid:A,objectOid:r}),t.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+t.boundingBox.map(E).join(" ")+"]"}),n.push({key:"XStep",value:E(t.xStep)}),n.push({key:"YStep",value:E(t.yStep)}),n.push({key:"Resources",value:A+" 0 R"}),t.matrix&&n.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),Ae({data:t.stream,additionalKeyValues:n,objectId:t.objectNumber}),ct("endobj")},he=function(t){var e;for(e in St)St.hasOwnProperty(e)&&(St[e]instanceof x?ue(St[e]):St[e]instanceof I&&le(St[e],t))},fe=function(t){for(var e in t.objectNumber=Gt(),ct("<<"),t)switch(e){case"opacity":ct("/ca "+O(t[e]));break;case"stroke-opacity":ct("/CA "+O(t[e]))}ct(">>"),ct("endobj")},de=function(){var t;for(t in xt)xt.hasOwnProperty(t)&&fe(xt[t])},pe=function(){for(var t in ct("/XObject <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&ct("/"+t+" "+Mt[t].objectNumber+" 0 R");Rt.publish("putXobjectDict"),ct(">>")},Be=function(){Ve.oid=Gt(),ct("<<"),ct("/Filter /Standard"),ct("/V "+Ve.v),ct("/R "+Ve.r),ct("/U <"+Ve.toHexString(Ve.U)+">"),ct("/O <"+Ve.toHexString(Ve.O)+">"),ct("/P "+Ve.P),ct(">>"),ct("endobj")},ge=function(){for(var t in ct("/Font <<"),Et)Et.hasOwnProperty(t)&&(!1===B||!0===B&&g.hasOwnProperty(t))&&ct("/"+t+" "+Et[t].objectNumber+" 0 R");ct(">>")},we=function(){if(Object.keys(St).length>0){for(var t in ct("/Shading <<"),St)St.hasOwnProperty(t)&&St[t]instanceof x&&St[t].objectNumber>=0&&ct("/"+t+" "+St[t].objectNumber+" 0 R");Rt.publish("putShadingPatternDict"),ct(">>")}},me=function(t){if(Object.keys(St).length>0){for(var e in ct("/Pattern <<"),St)St.hasOwnProperty(e)&&St[e]instanceof w.TilingPattern&&St[e].objectNumber>=0&&St[e].objectNumber>")}},ve=function(){if(Object.keys(xt).length>0){var t;for(t in ct("/ExtGState <<"),xt)xt.hasOwnProperty(t)&&xt[t].objectNumber>=0&&ct("/"+t+" "+xt[t].objectNumber+" 0 R");Rt.publish("putGStateDict"),ct(">>")}},be=function(t){Jt(t.resourcesOid,!0),ct("<<"),ct("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ge(),we(),me(t.objectOid),ve(),pe(),ct(">>"),ct("endobj")},Qe=function(){var t=[];oe(),de(),se(),he(t),Rt.publish("putResources"),t.forEach(be),be({resourcesOid:Zt,objectOid:Number.MAX_SAFE_INTEGER}),Rt.publish("postPutResources")},Ce=function(){Rt.publish("putAdditionalObjects");for(var t=0;t>8&&(s=!0);t=a.join("")}for(A=t.length;void 0===s&&0!==A;)t.charCodeAt(A-1)>>8&&(s=!0),A--;if(!s)return t;for(a=e.noBOM?[]:[254,255],A=0,r=t.length;A>8)>>8)throw new Error("Character at position "+A+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(u),a.push(c-(u<<8))}return String.fromCharCode.apply(void 0,a)},Le=w.__private__.pdfEscape=w.pdfEscape=function(t,e){return Ee(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},He=w.__private__.beginPage=function(t){nt[++Tt]=[],Ot[Tt]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},xe(Tt),st(nt[W])},Se=function(t,e){var r,n,a;switch(A=e||A,"string"==typeof t&&(r=Q(t.toLowerCase()),Array.isArray(r)&&(n=r[0],a=r[1])),Array.isArray(t)&&(n=t[0]*yt,a=t[1]*yt),isNaN(n)&&(n=i[0],a=i[1]),(n>14400||a>14400)&&(o.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),a=Math.min(14400,a)),i=[n,a],A.substr(0,1)){case"l":a>n&&(i=[a,n]);break;case"p":n>a&&(i=[a,n])}He(i),lA(uA),ct(mA),0!==FA&&ct(FA+" J"),0!==UA&&ct(UA+" j"),Rt.publish("addPage",{pageNumber:Tt})},_e=function(t){t>0&&t<=Tt&&(nt.splice(t,1),Ot.splice(t,1),Tt--,W>Tt&&(W=Tt),this.setPage(W))},xe=function(t){t>0&&t<=Tt&&(W=t)},Ie=w.__private__.getNumberOfPages=w.getNumberOfPages=function(){return nt.length-1},Pe=function(t,e,A){var r,n=void 0;return A=A||{},t=void 0!==t?t:Et[Ct].fontName,e=void 0!==e?e:Et[Ct].fontStyle,r=t.toLowerCase(),void 0!==Lt[r]&&void 0!==Lt[r][e]?n=Lt[r][e]:void 0!==Lt[t]&&void 0!==Lt[t][e]?n=Lt[t][e]:!1===A.disableWarning&&o.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),n||A.noFallback||null==(n=Lt.times[e])&&(n=Lt.times.normal),n},Te=w.__private__.putInfo=function(){var t=Gt(),e=function(t){return t};for(var A in null!==p&&(e=Ve.encryptor(t,0)),ct("<<"),ct("/Producer ("+Le(e("jsPDF "+P.version))+")"),Qt)Qt.hasOwnProperty(A)&&Qt[A]&&ct("/"+A.substr(0,1).toUpperCase()+A.substr(1)+" ("+Le(e(Qt[A]))+")");ct("/CreationDate ("+Le(e(D))+")"),ct(">>"),ct("endobj")},Oe=w.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Yt;switch(Gt(),ct("<<"),ct("/Type /Catalog"),ct("/Pages "+e+" 0 R"),dt||(dt="fullwidth"),dt){case"fullwidth":ct("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ct("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ct("/OpenAction [3 0 R /Fit]");break;case"original":ct("/OpenAction [3 0 R /XYZ null null 1]");break;default:var A=""+dt;"%"===A.substr(A.length-1)&&(dt=parseInt(dt)/100),"number"==typeof dt&&ct("/OpenAction [3 0 R /XYZ null null "+O(dt)+"]")}switch(mt||(mt="continuous"),mt){case"continuous":ct("/PageLayout /OneColumn");break;case"single":ct("/PageLayout /SinglePage");break;case"two":case"twoleft":ct("/PageLayout /TwoColumnLeft");break;case"tworight":ct("/PageLayout /TwoColumnRight")}gt&&ct("/PageMode /"+gt),Rt.publish("putCatalog"),ct(">>"),ct("endobj")},Re=w.__private__.putTrailer=function(){ct("trailer"),ct("<<"),ct("/Size "+($+1)),ct("/Root "+$+" 0 R"),ct("/Info "+($-1)+" 0 R"),null!==p&&ct("/Encrypt "+Ve.oid+" 0 R"),ct("/ID [ <"+j+"> <"+j+"> ]"),ct(">>")},Ke=w.__private__.putHeader=function(){ct("%PDF-"+m),ct("%ºß¬à")},Me=w.__private__.putXRef=function(){var t="0000000000";ct("xref"),ct("0 "+($+1)),ct("0000000000 65535 f ");for(var e=1;e<=$;e++)"function"==typeof tt[e]?ct((t+tt[e]()).slice(-10)+" 00000 n "):void 0!==tt[e]?ct((t+tt[e]).slice(-10)+" 00000 n "):ct("0000000000 00000 n ")},ke=w.__private__.buildDocument=function(){at(),st(et),Rt.publish("buildDocument"),Ke(),ne(),Ce(),Qe(),null!==p&&Be(),Te(),Oe();var t=At;return Me(),Re(),ct("startxref"),ct(""+t),ct("%%EOF"),st(nt[W]),et.join("\n")},De=w.__private__.getBlob=function(t){return new Blob([lt(t)],{type:"application/pdf"})},je=w.output=w.__private__.output=Ne((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return ke();case"save":w.save(e.filename);break;case"arraybuffer":return lt(ke());case"blob":return De(ke());case"bloburi":case"bloburl":if(void 0!==n.URL&&"function"==typeof n.URL.createObjectURL)return n.URL&&n.URL.createObjectURL(De(ke()))||void 0;o.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var A="",r=ke();try{A=l(r)}catch(t){A=l(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+A;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(n)){var i='