import{_ as iu,j as TA,s as $0}from"./index-3808da28.js";import{aj as Fe,a6 as AB,r as Ec,j as eB,C as tB,y as Ul,o as rB,H as nB,l as iB,a8 as aB,m as da,B as sB,ak as oB}from"./vendor-61f0f29a.js";/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var au=function(t,A){return au=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},au(t,A)};function lr(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");au(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var su=function(){return su=Object.assign||function(A){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},su.apply(this,arguments)};function Qt(t,A,e,r){function n(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=Promise))(function(i,s){function c(g){try{h(r.next(g))}catch(d){s(d)}}function u(g){try{h(r.throw(g))}catch(d){s(d)}}function h(g){g.done?i(g.value):n(g.value).then(c,u)}h((r=r.apply(t,A||[])).next())})}function gt(t,A){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(h){return function(g){return u([h,g])}}function u(h){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,n&&(i=h[0]&2?n.return:h[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,h[1])).done)return i;switch(n=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return e.label++,{value:h[1],done:!1};case 5:e.label++,n=h[1],h=[0];continue;case 7:h=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){e=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){e.label=h[1];break}if(h[0]===6&&e.label<i[1]){e.label=i[1],i=h;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(h);break}i[2]&&e.ops.pop(),e.trys.pop();continue}h=A.call(t,e)}catch(g){h=[6,g],n=0}finally{r=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function Ss(t,A,e){if(e||arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return t.concat(i||A)}var qr=function(){function t(A,e,r,n){this.left=A,this.top=e,this.width=r,this.height=n}return t.prototype.add=function(A,e,r,n){return new t(this.left+A,this.top+e,this.width+r,this.height+n)},t.fromClientRect=function(A,e){return new t(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},t.fromDOMRectList=function(A,e){var r=Array.from(e).find(function(n){return n.width!==0});return r?new t(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Lo=function(t,A){return qr.fromClientRect(t,A.getBoundingClientRect())},cB=function(t){var A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),n=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new qr(0,0,r,n)},Eo=function(t){for(var A=[],e=0,r=t.length;e<r;){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},Ke=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=t[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},yl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ns=0;Ns<yl.length;Ns++)uB[yl.charCodeAt(Ns)]=Ns;var bl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var _s=0;_s<bl.length;_s++)Fa[bl.charCodeAt(_s)]=_s;var lB=function(t){var A=t.length*.75,e=t.length,r,n=0,i,s,c,u;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<e;r+=4)i=Fa[t.charCodeAt(r)],s=Fa[t.charCodeAt(r+1)],c=Fa[t.charCodeAt(r+2)],u=Fa[t.charCodeAt(r+3)],g[n++]=i<<2|s>>4,g[n++]=(s&15)<<4|c>>2,g[n++]=(c&3)<<6|u&63;return h},fB=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},hB=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Kn=5,Ku=6+5,xc=2,BB=Ku-Kn,Vf=65536>>Kn,gB=1<<Kn,Ic=gB-1,dB=1024>>Kn,pB=Vf+dB,wB=pB,vB=32,mB=wB+vB,CB=65536>>Ku,QB=1<<BB,FB=QB-1,Ll=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},UB=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},yB=function(t,A){var e=lB(t),r=Array.isArray(e)?hB(e):new Uint32Array(e),n=Array.isArray(e)?fB(e):new Uint16Array(e),i=24,s=Ll(n,i/2,r[4]/2),c=r[5]===2?Ll(n,(i+r[4])/2):UB(r,Math.ceil((i+r[4])/4));return new bB(r[0],r[1],r[2],r[3],s,c)},bB=function(){function t(A,e,r,n,i,s){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Kn],e=(e<<xc)+(A&Ic),this.data[e];if(A<=65535)return e=this.index[Vf+(A-55296>>Kn)],e=(e<<xc)+(A&Ic),this.data[e];if(A<this.highStart)return e=mB-CB+(A>>Ku),e=this.index[e],e+=A>>Kn&FB,e=this.index[e],e=(e<<xc)+(A&Ic),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),El="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",LB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ds=0;Ds<El.length;Ds++)LB[El.charCodeAt(Ds)]=Ds;var EB=" ",xl=50,xB=1,qf=2,Wf=3,IB=4,HB=5,Il=7,Jf=8,Hl=9,hn=10,ou=11,Sl=12,cu=13,SB=14,Ua=15,uu=16,Ts=17,pa=18,NB=19,Nl=20,lu=21,wa=22,Hc=23,vi=24,Tt=25,ya=26,ba=27,mi=28,_B=29,Pn=30,DB=31,Ps=32,Os=33,fu=34,hu=35,Bu=36,Ta=37,gu=38,ao=39,so=40,Sc=41,Xf=42,TB=43,PB=[9001,65288],zf="!",ae="×",Ms="÷",du=yB(EB),Rr=[Pn,Bu],pu=[xB,qf,Wf,HB],Yf=[hn,Jf],_l=[ba,ya],OB=pu.concat(Yf),Dl=[gu,ao,so,fu,hu],MB=[Ua,cu],KB=function(t,A){A===void 0&&(A="strict");var e=[],r=[],n=[];return t.forEach(function(i,s){var c=du.get(i);if(c>xl?(n.push(!0),c-=xl):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),e.push(uu);if(c===IB||c===ou){if(s===0)return r.push(s),e.push(Pn);var u=e[s-1];return OB.indexOf(u)===-1?(r.push(r[s-1]),e.push(u)):(r.push(s),e.push(Pn))}if(r.push(s),c===DB)return e.push(A==="strict"?lu:Ta);if(c===Xf||c===_B)return e.push(Pn);if(c===TB)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Ta):e.push(Pn);e.push(c)}),[r,e,n]},Nc=function(t,A,e,r){var n=r[e];if(Array.isArray(t)?t.indexOf(n)!==-1:t===n)for(var i=e;i<=r.length;){i++;var s=r[i];if(s===A)return!0;if(s!==hn)break}if(n===hn)for(var i=e;i>0;){i--;var c=r[i];if(Array.isArray(t)?t.indexOf(c)!==-1:t===c)for(var u=e;u<=r.length;){u++;var s=r[u];if(s===A)return!0;if(s!==hn)break}if(c!==hn)break}return!1},Tl=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===hn)e--;else return r}return 0},kB=function(t,A,e,r,n){if(e[r]===0)return ae;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return ae;var s=i-1,c=i+1,u=A[i],h=s>=0?A[s]:0,g=A[c];if(u===qf&&g===Wf)return ae;if(pu.indexOf(u)!==-1)return zf;if(pu.indexOf(g)!==-1||Yf.indexOf(g)!==-1)return ae;if(Tl(i,A)===Jf)return Ms;if(du.get(t[i])===ou||(u===Ps||u===Os)&&du.get(t[c])===ou||u===Il||g===Il||u===Hl||[hn,cu,Ua].indexOf(u)===-1&&g===Hl||[Ts,pa,NB,vi,mi].indexOf(g)!==-1||Tl(i,A)===wa||Nc(Hc,wa,i,A)||Nc([Ts,pa],lu,i,A)||Nc(Sl,Sl,i,A))return ae;if(u===hn)return Ms;if(u===Hc||g===Hc)return ae;if(g===uu||u===uu)return Ms;if([cu,Ua,lu].indexOf(g)!==-1||u===SB||h===Bu&&MB.indexOf(u)!==-1||u===mi&&g===Bu||g===Nl||Rr.indexOf(g)!==-1&&u===Tt||Rr.indexOf(u)!==-1&&g===Tt||u===ba&&[Ta,Ps,Os].indexOf(g)!==-1||[Ta,Ps,Os].indexOf(u)!==-1&&g===ya||Rr.indexOf(u)!==-1&&_l.indexOf(g)!==-1||_l.indexOf(u)!==-1&&Rr.indexOf(g)!==-1||[ba,ya].indexOf(u)!==-1&&(g===Tt||[wa,Ua].indexOf(g)!==-1&&A[c+1]===Tt)||[wa,Ua].indexOf(u)!==-1&&g===Tt||u===Tt&&[Tt,mi,vi].indexOf(g)!==-1)return ae;if([Tt,mi,vi,Ts,pa].indexOf(g)!==-1)for(var d=i;d>=0;){var w=A[d];if(w===Tt)return ae;if([mi,vi].indexOf(w)!==-1)d--;else break}if([ba,ya].indexOf(g)!==-1)for(var d=[Ts,pa].indexOf(u)!==-1?s:i;d>=0;){var w=A[d];if(w===Tt)return ae;if([mi,vi].indexOf(w)!==-1)d--;else break}if(gu===u&&[gu,ao,fu,hu].indexOf(g)!==-1||[ao,fu].indexOf(u)!==-1&&[ao,so].indexOf(g)!==-1||[so,hu].indexOf(u)!==-1&&g===so||Dl.indexOf(u)!==-1&&[Nl,ya].indexOf(g)!==-1||Dl.indexOf(g)!==-1&&u===ba||Rr.indexOf(u)!==-1&&Rr.indexOf(g)!==-1||u===vi&&Rr.indexOf(g)!==-1||Rr.concat(Tt).indexOf(u)!==-1&&g===wa&&PB.indexOf(t[c])===-1||Rr.concat(Tt).indexOf(g)!==-1&&u===pa)return ae;if(u===Sc&&g===Sc){for(var B=e[i],L=1;B>0&&(B--,A[B]===Sc);)L++;if(L%2!==0)return ae}return u===Ps&&g===Os?ae:Ms},RB=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=KB(t,A.lineBreak),r=e[0],n=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(c){return[Tt,Pn,Xf].indexOf(c)!==-1?Ta:c}));var s=A.wordBreak==="keep-all"?i.map(function(c,u){return c&&t[u]>=19968&&t[u]<=40959}):void 0;return[r,n,s]},jB=function(){function t(A,e,r,n){this.codePoints=A,this.required=e===zf,this.start=r,this.end=n}return t.prototype.slice=function(){return Ke.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),GB=function(t,A){var e=Eo(t),r=RB(e,A),n=r[0],i=r[1],s=r[2],c=e.length,u=0,h=0;return{next:function(){if(h>=c)return{done:!0,value:null};for(var g=ae;h<c&&(g=kB(e,i,n,++h,s))===ae;);if(g!==ae||h===c){var d=new jB(e,g,u,h);return u=h,{value:d,done:!1}}return{done:!0,value:null}}}},VB=1,qB=2,Ka=4,Pl=8,Bo=10,Ol=47,Ia=92,WB=9,JB=32,Ks=34,va=61,XB=35,zB=36,YB=37,ks=39,Rs=40,ma=41,ZB=95,xt=45,$B=33,A1=60,e1=62,t1=64,r1=91,n1=93,i1=61,a1=123,js=63,s1=125,Ml=124,o1=126,c1=128,Kl=65533,_c=42,Mn=43,u1=44,l1=58,f1=59,Pa=46,h1=0,B1=8,g1=11,d1=14,p1=31,w1=127,Ur=-1,Zf=48,$f=97,Ah=101,v1=102,m1=117,C1=122,eh=65,th=69,rh=70,Q1=85,F1=90,dt=function(t){return t>=Zf&&t<=57},U1=function(t){return t>=55296&&t<=57343},Ci=function(t){return dt(t)||t>=eh&&t<=rh||t>=$f&&t<=v1},y1=function(t){return t>=$f&&t<=C1},b1=function(t){return t>=eh&&t<=F1},L1=function(t){return y1(t)||b1(t)},E1=function(t){return t>=c1},Gs=function(t){return t===Bo||t===WB||t===JB},go=function(t){return L1(t)||E1(t)||t===ZB},kl=function(t){return go(t)||dt(t)||t===xt},x1=function(t){return t>=h1&&t<=B1||t===g1||t>=d1&&t<=p1||t===w1},fn=function(t,A){return t!==Ia?!1:A!==Bo},Vs=function(t,A,e){return t===xt?go(A)||fn(A,e):go(t)?!0:!!(t===Ia&&fn(t,A))},Dc=function(t,A,e){return t===Mn||t===xt?dt(A)?!0:A===Pa&&dt(e):dt(t===Pa?A:t)},I1=function(t){var A=0,e=1;(t[A]===Mn||t[A]===xt)&&(t[A]===xt&&(e=-1),A++);for(var r=[];dt(t[A]);)r.push(t[A++]);var n=r.length?parseInt(Ke.apply(void 0,r),10):0;t[A]===Pa&&A++;for(var i=[];dt(t[A]);)i.push(t[A++]);var s=i.length,c=s?parseInt(Ke.apply(void 0,i),10):0;(t[A]===th||t[A]===Ah)&&A++;var u=1;(t[A]===Mn||t[A]===xt)&&(t[A]===xt&&(u=-1),A++);for(var h=[];dt(t[A]);)h.push(t[A++]);var g=h.length?parseInt(Ke.apply(void 0,h),10):0;return e*(n+c*Math.pow(10,-s))*Math.pow(10,u*g)},H1={type:2},S1={type:3},N1={type:4},_1={type:13},D1={type:8},T1={type:21},P1={type:9},O1={type:10},M1={type:11},K1={type:12},k1={type:14},qs={type:23},R1={type:1},j1={type:25},G1={type:24},V1={type:26},q1={type:27},W1={type:28},J1={type:29},X1={type:31},wu={type:32},nh=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(Eo(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==wu;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Ks:return this.consumeStringToken(Ks);case XB:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(kl(e)||fn(r,n)){var i=Vs(e,r,n)?qB:VB,s=this.consumeName();return{type:5,value:s,flags:i}}break;case zB:if(this.peekCodePoint(0)===va)return this.consumeCodePoint(),_1;break;case ks:return this.consumeStringToken(ks);case Rs:return H1;case ma:return S1;case _c:if(this.peekCodePoint(0)===va)return this.consumeCodePoint(),k1;break;case Mn:if(Dc(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case u1:return N1;case xt:var c=A,u=this.peekCodePoint(0),h=this.peekCodePoint(1);if(Dc(c,u,h))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Vs(c,u,h))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(u===xt&&h===e1)return this.consumeCodePoint(),this.consumeCodePoint(),G1;break;case Pa:if(Dc(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ol:if(this.peekCodePoint(0)===_c)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===_c&&(g=this.consumeCodePoint(),g===Ol))return this.consumeToken();if(g===Ur)return this.consumeToken()}break;case l1:return V1;case f1:return q1;case A1:if(this.peekCodePoint(0)===$B&&this.peekCodePoint(1)===xt&&this.peekCodePoint(2)===xt)return this.consumeCodePoint(),this.consumeCodePoint(),j1;break;case t1:var d=this.peekCodePoint(0),w=this.peekCodePoint(1),B=this.peekCodePoint(2);if(Vs(d,w,B)){var s=this.consumeName();return{type:7,value:s}}break;case r1:return W1;case Ia:if(fn(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case n1:return J1;case i1:if(this.peekCodePoint(0)===va)return this.consumeCodePoint(),D1;break;case a1:return M1;case s1:return K1;case m1:case Q1:var L=this.peekCodePoint(0),y=this.peekCodePoint(1);return L===Mn&&(Ci(y)||y===js)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Ml:if(this.peekCodePoint(0)===va)return this.consumeCodePoint(),P1;if(this.peekCodePoint(0)===Ml)return this.consumeCodePoint(),T1;break;case o1:if(this.peekCodePoint(0)===va)return this.consumeCodePoint(),O1;break;case Ur:return wu}return Gs(A)?(this.consumeWhiteSpace(),X1):dt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):go(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:Ke(A)}},t.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},t.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},t.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},t.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();Ci(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var r=!1;e===js&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(Ke.apply(void 0,A.map(function(u){return u===js?Zf:u})),16),i=parseInt(Ke.apply(void 0,A.map(function(u){return u===js?rh:u})),16);return{type:30,start:n,end:i}}var s=parseInt(Ke.apply(void 0,A),16);if(this.peekCodePoint(0)===xt&&Ci(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var c=[];Ci(e)&&c.length<6;)c.push(e),e=this.consumeCodePoint();var i=parseInt(Ke.apply(void 0,c),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Rs?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Rs?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ur)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===ks||e===Ks){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ur||this.peekCodePoint(0)===ma)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),qs)}for(;;){var n=this.consumeCodePoint();if(n===Ur||n===ma)return{type:22,value:Ke.apply(void 0,A)};if(Gs(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ur||this.peekCodePoint(0)===ma?(this.consumeCodePoint(),{type:22,value:Ke.apply(void 0,A)}):(this.consumeBadUrlRemnants(),qs);if(n===Ks||n===ks||n===Rs||x1(n))return this.consumeBadUrlRemnants(),qs;if(n===Ia)if(fn(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),qs;else A.push(n)}},t.prototype.consumeWhiteSpace=function(){for(;Gs(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===ma||A===Ur)return;fn(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(A){for(var e=5e4,r="";A>0;){var n=Math.min(e,A);r+=Ke.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},t.prototype.consumeStringToken=function(A){var e="",r=0;do{var n=this._value[r];if(n===Ur||n===void 0||n===A)return e+=this.consumeStringSlice(r),{type:0,value:e};if(n===Bo)return this._value.splice(0,r),R1;if(n===Ia){var i=this._value[r+1];i!==Ur&&i!==void 0&&(i===Bo?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):fn(n,i)&&(e+=this.consumeStringSlice(r),e+=Ke(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=Ka,r=this.peekCodePoint(0);for((r===Mn||r===xt)&&A.push(this.consumeCodePoint());dt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Pa&&dt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Pl;dt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===th||r===Ah)&&((n===Mn||n===xt)&&dt(i)||dt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Pl;dt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[I1(A),e]},t.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Vs(n,i,s)){var c=this.consumeName();return{type:15,number:e,flags:r,unit:c}}return n===YB?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Ci(A)){for(var e=Ke(A);Ci(this.peekCodePoint(0))&&e.length<6;)e+=Ke(this.consumeCodePoint());Gs(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return r===0||U1(r)||r>1114111?Kl:r}return A===Ur?Kl:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(kl(e))A+=Ke(e);else if(fn(e,this.peekCodePoint(0)))A+=Ke(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),ih=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new nh;return e.write(A),new t(e.read())},t.parseValue=function(A){return t.create(A).parseComponentValue()},t.parseValues=function(A){return t.create(A).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},t.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},t.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||Y1(r,A))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?wu:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),ka=function(t){return t.type===15},Mi=function(t){return t.type===17},ve=function(t){return t.type===20},z1=function(t){return t.type===0},vu=function(t,A){return ve(t)&&t.value===A},ah=function(t){return t.type!==31},Oi=function(t){return t.type!==31&&t.type!==4},Er=function(t){var A=[],e=[];return t.forEach(function(r){if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&A.push(e),A},Y1=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},vn=function(t){return t.type===17||t.type===15},Je=function(t){return t.type===16||vn(t)},sh=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},st={type:17,number:0,flags:Ka},ku={type:16,number:50,flags:Ka},Bn={type:16,number:100,flags:Ka},La=function(t,A,e){var r=t[0],n=t[1];return[be(r,A),be(typeof n<"u"?n:r,e)]},be=function(t,A){if(t.type===16)return t.number/100*A;if(ka(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},oh="deg",ch="grad",uh="rad",lh="turn",xo={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case oh:return Math.PI*A.number/180;case ch:return Math.PI/200*A.number;case uh:return A.number;case lh:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},fh=function(t){return t.type===15&&(t.unit===oh||t.unit===ch||t.unit===uh||t.unit===lh)},hh=function(t){var A=t.filter(ve).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[st,st];case"to top":case"bottom":return Jt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[st,Bn];case"to right":case"left":return Jt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Bn,Bn];case"to bottom":case"top":return Jt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Bn,st];case"to left":case"right":return Jt(270)}return 0},Jt=function(t){return Math.PI*t/180},pn={name:"color",parse:function(t,A){if(A.type===18){var e=Z1[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(t,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return gn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),s=A.value.substring(3,4);return gn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return gn(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),s=A.value.substring(6,8);return gn(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var c=Vr[A.value.toUpperCase()];if(typeof c<"u")return c}return Vr.TRANSPARENT}},wn=function(t){return(255&t)===0},et=function(t){var A=255&t,e=255&t>>8,r=255&t>>16,n=255&t>>24;return A<255?"rgba("+n+","+r+","+e+","+A/255+")":"rgb("+n+","+r+","+e+")"},gn=function(t,A,e,r){return(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0},Rl=function(t,A){if(t.type===17)return t.number;if(t.type===16){var e=A===3?1:255;return A===3?t.number/100*e:Math.round(t.number/100*e)}return 0},jl=function(t,A){var e=A.filter(Oi);if(e.length===3){var r=e.map(Rl),n=r[0],i=r[1],s=r[2];return gn(n,i,s,1)}if(e.length===4){var c=e.map(Rl),n=c[0],i=c[1],s=c[2],u=c[3];return gn(n,i,s,u)}return 0};function Tc(t,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-t)*e*6+t:e<1/2?A:e<2/3?(A-t)*6*(2/3-e)+t:t}var Gl=function(t,A){var e=A.filter(Oi),r=e[0],n=e[1],i=e[2],s=e[3],c=(r.type===17?Jt(r.number):xo.parse(t,r))/(Math.PI*2),u=Je(n)?n.number/100:0,h=Je(i)?i.number/100:0,g=typeof s<"u"&&Je(s)?be(s,1):1;if(u===0)return gn(h*255,h*255,h*255,1);var d=h<=.5?h*(u+1):h+u-h*u,w=h*2-d,B=Tc(w,d,c+1/3),L=Tc(w,d,c),y=Tc(w,d,c-1/3);return gn(B*255,L*255,y*255,g)},Z1={hsl:Gl,hsla:Gl,rgb:jl,rgba:jl},Ha=function(t,A){return pn.parse(t,ih.create(A).parseComponentValue())},Vr={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},$1={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(ve(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ag={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Io=function(t,A){var e=pn.parse(t,A[0]),r=A[1];return r&&Je(r)?{color:e,stop:r}:{color:e,stop:null}},Vl=function(t,A){var e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=st),r.stop===null&&(r.stop=Bn);for(var n=[],i=0,s=0;s<t.length;s++){var c=t[s].stop;if(c!==null){var u=be(c,A);u>i?n.push(u):n.push(i),i=u}else n.push(null)}for(var h=null,s=0;s<n.length;s++){var g=n[s];if(g===null)h===null&&(h=s);else if(h!==null){for(var d=s-h,w=n[h-1],B=(g-w)/(d+1),L=1;L<=d;L++)n[h+L-1]=B*L;h=null}}return t.map(function(y,S){var Q=y.color;return{color:Q,stop:Math.max(Math.min(1,n[S]/A),0)}})},eg=function(t,A,e){var r=A/2,n=e/2,i=be(t[0],A)-r,s=n-be(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},tg=function(t,A,e){var r=typeof t=="number"?t:eg(t,A,e),n=Math.abs(A*Math.sin(r))+Math.abs(e*Math.cos(r)),i=A/2,s=e/2,c=n/2,u=Math.sin(r-Math.PI/2)*c,h=Math.cos(r-Math.PI/2)*c;return[n,i-h,i+h,s-u,s+u]},cr=function(t,A){return Math.sqrt(t*t+A*A)},ql=function(t,A,e,r,n){var i=[[0,0],[0,A],[t,0],[t,A]];return i.reduce(function(s,c){var u=c[0],h=c[1],g=cr(e-u,r-h);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:c,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},rg=function(t,A,e,r,n){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-n)):t.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(t.shape===0)i=s=Math.min(cr(A,e),cr(A,e-n),cr(A-r,e),cr(A-r,e-n));else if(t.shape===1){var c=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(A),Math.abs(A-r)),u=ql(r,n,A,e,!0),h=u[0],g=u[1];i=cr(h-A,(g-e)/c),s=c*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-n)):t.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(t.shape===0)i=s=Math.max(cr(A,e),cr(A,e-n),cr(A-r,e),cr(A-r,e-n));else if(t.shape===1){var c=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(A),Math.abs(A-r)),d=ql(r,n,A,e,!1),h=d[0],g=d[1];i=cr(h-A,(g-e)/c),s=c*i}break}return Array.isArray(t.size)&&(i=be(t.size[0],r),s=t.size.length===2?be(t.size[1],n):i),[i,s]},ng=function(t,A){var e=Jt(180),r=[];return Er(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){e=hh(n);return}else if(fh(s)){e=xo.parse(t,s);return}}var c=Io(t,n);r.push(c)}),{angle:e,stops:r,type:1}},Ws=function(t,A){var e=Jt(180),r=[];return Er(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){e=hh(n);return}else if(fh(s)){e=(xo.parse(t,s)+Jt(270))%Jt(360);return}}var c=Io(t,n);r.push(c)}),{angle:e,stops:r,type:1}},ig=function(t,A){var e=Jt(180),r=[],n=1,i=0,s=3,c=[];return Er(A).forEach(function(u,h){var g=u[0];if(h===0){if(ve(g)&&g.value==="linear"){n=1;return}else if(ve(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var d=pn.parse(t,g.values[0]);r.push({stop:st,color:d})}else if(g.name==="to"){var d=pn.parse(t,g.values[0]);r.push({stop:Bn,color:d})}else if(g.name==="color-stop"){var w=g.values.filter(Oi);if(w.length===2){var d=pn.parse(t,w[1]),B=w[0];Mi(B)&&r.push({stop:{type:16,number:B.number*100,flags:B.flags},color:d})}}}}),n===1?{angle:(e+Jt(180))%Jt(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:c,type:n}},Bh="closest-side",gh="farthest-side",dh="closest-corner",ph="farthest-corner",wh="circle",vh="ellipse",mh="cover",Ch="contain",ag=function(t,A){var e=0,r=3,n=[],i=[];return Er(A).forEach(function(s,c){var u=!0;if(c===0){var h=!1;u=s.reduce(function(d,w){if(h)if(ve(w))switch(w.value){case"center":return i.push(ku),d;case"top":case"left":return i.push(st),d;case"right":case"bottom":return i.push(Bn),d}else(Je(w)||vn(w))&&i.push(w);else if(ve(w))switch(w.value){case wh:return e=0,!1;case vh:return e=1,!1;case"at":return h=!0,!1;case Bh:return r=0,!1;case mh:case gh:return r=1,!1;case Ch:case dh:return r=2,!1;case ph:return r=3,!1}else if(vn(w)||Je(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return d},u)}if(u){var g=Io(t,s);n.push(g)}}),{size:r,shape:e,stops:n,position:i,type:2}},Js=function(t,A){var e=0,r=3,n=[],i=[];return Er(A).forEach(function(s,c){var u=!0;if(c===0?u=s.reduce(function(g,d){if(ve(d))switch(d.value){case"center":return i.push(ku),!1;case"top":case"left":return i.push(st),!1;case"right":case"bottom":return i.push(Bn),!1}else if(Je(d)||vn(d))return i.push(d),!1;return g},u):c===1&&(u=s.reduce(function(g,d){if(ve(d))switch(d.value){case wh:return e=0,!1;case vh:return e=1,!1;case Ch:case Bh:return r=0,!1;case gh:return r=1,!1;case dh:return r=2,!1;case mh:case ph:return r=3,!1}else if(vn(d)||Je(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return g},u)),u){var h=Io(t,s);n.push(h)}}),{size:r,shape:e,stops:n,position:i,type:2}},sg=function(t){return t.type===1},og=function(t){return t.type===2},Ru={name:"image",parse:function(t,A){if(A.type===22){var e={url:A.value,type:0};return t.cache.addImage(A.value),e}if(A.type===18){var r=Qh[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(t,A.values)}throw new Error("Unsupported image type "+A.type)}};function cg(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Qh[t.name])}var Qh={"linear-gradient":ng,"-moz-linear-gradient":Ws,"-ms-linear-gradient":Ws,"-o-linear-gradient":Ws,"-webkit-linear-gradient":Ws,"radial-gradient":ag,"-moz-radial-gradient":Js,"-ms-radial-gradient":Js,"-o-radial-gradient":Js,"-webkit-radial-gradient":Js,"-webkit-gradient":ig},ug={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(r){return Oi(r)&&cg(r)}).map(function(r){return Ru.parse(t,r)})}},lg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(ve(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},fg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return Er(A).map(function(e){return e.filter(Je)}).map(sh)}},hg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return Er(A).map(function(e){return e.filter(ve).map(function(r){return r.value}).join(" ")}).map(Bg)}},Bg=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ni;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Ni||(Ni={}));var gg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return Er(A).map(function(e){return e.filter(dg)})}},dg=function(t){return ve(t)||Je(t)},Ho=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},pg=Ho("top"),wg=Ho("right"),vg=Ho("bottom"),mg=Ho("left"),So=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return sh(e.filter(Je))}}},Cg=So("top-left"),Qg=So("top-right"),Fg=So("bottom-right"),Ug=So("bottom-left"),No=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},yg=No("top"),bg=No("right"),Lg=No("bottom"),Eg=No("left"),_o=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return ka(e)?e.number:0}}},xg=_o("top"),Ig=_o("right"),Hg=_o("bottom"),Sg=_o("left"),Ng={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_g={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},Dg={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(ve).reduce(function(e,r){return e|Tg(r.value)},0)}},Tg=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Pg={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Og={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},po;(function(t){t.NORMAL="normal",t.STRICT="strict"})(po||(po={}));var Mg={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return po.STRICT;case"normal":default:return po.NORMAL}}},Kg={name:"line-height",initialValue:"normal",prefix:!1,type:4},Wl=function(t,A){return ve(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:Je(t)?be(t,A):A},kg={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:Ru.parse(t,A)}},Rg={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},mu={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Do=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},jg=Do("top"),Gg=Do("right"),Vg=Do("bottom"),qg=Do("left"),Wg={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(ve).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Jg={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},To=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Xg=To("top"),zg=To("right"),Yg=To("bottom"),Zg=To("left"),$g={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},A2={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},e2={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&vu(A[0],"none")?[]:Er(A).map(function(e){for(var r={color:Vr.TRANSPARENT,offsetX:st,offsetY:st,blur:st},n=0,i=0;i<e.length;i++){var s=e[i];vn(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:r.blur=s,n++):r.color=pn.parse(t,s)}return r})}},t2={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},r2={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=a2[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},n2=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},i2=function(t){var A=t.filter(function(u){return u.type===17}).map(function(u){return u.number}),e=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],c=A[13];return A[14],A[15],A.length===16?[e,r,n,i,s,c]:null},a2={matrix:n2,matrix3d:i2},Jl={type:16,number:50,flags:Ka},s2=[Jl,Jl],o2={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(Je);return e.length!==2?s2:[e[0],e[1]]}},c2={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Sa;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Sa||(Sa={}));var u2={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return Sa.BREAK_ALL;case"keep-all":return Sa.KEEP_ALL;case"normal":default:return Sa.NORMAL}}},l2={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Mi(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Fh={name:"time",parse:function(t,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},f2={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Mi(A)?A.number:1}},h2={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},B2={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(ve).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},g2={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,A){var e=[],r=[];return A.forEach(function(n){switch(n.type){case 20:case 0:e.push(n.value);break;case 17:e.push(n.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},d2={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},p2={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Mi(A))return A.number;if(ve(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},w2={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(ve).map(function(e){return e.value})}},v2={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ye=function(t,A){return(t&A)!==0},m2={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},C2={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var r=[],n=A.filter(ah),i=0;i<n.length;i++){var s=n[i],c=n[i+1];if(s.type===20){var u=c&&Mi(c)?c.number:1;r.push({counter:s.value,increment:u})}}return r}},Q2={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],r=A.filter(ah),n=0;n<r.length;n++){var i=r[n],s=r[n+1];if(ve(i)&&i.value!=="none"){var c=s&&Mi(s)?s.number:0;e.push({counter:i.value,reset:c})}}return e}},F2={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(ka).map(function(e){return Fh.parse(t,e)})}},U2={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var r=[],n=A.filter(z1);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var s=n[i].value,c=n[i+1].value;r.push({open:s,close:c})}return r}},Xl=function(t,A,e){if(!t)return"";var r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},y2={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&vu(A[0],"none")?[]:Er(A).map(function(e){for(var r={color:255,offsetX:st,offsetY:st,blur:st,spread:st,inset:!1},n=0,i=0;i<e.length;i++){var s=e[i];vu(s,"inset")?r.inset=!0:vn(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:n===2?r.blur=s:r.spread=s,n++):r.color=pn.parse(t,s)}return r})}},b2={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],r=[];return A.filter(ve).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),e.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},L2={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},E2={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return ka(A)?A.number:0}},x2=function(){function t(A,e){var r,n;this.animationDuration=PA(A,F2,e.animationDuration),this.backgroundClip=PA(A,$1,e.backgroundClip),this.backgroundColor=PA(A,Ag,e.backgroundColor),this.backgroundImage=PA(A,ug,e.backgroundImage),this.backgroundOrigin=PA(A,lg,e.backgroundOrigin),this.backgroundPosition=PA(A,fg,e.backgroundPosition),this.backgroundRepeat=PA(A,hg,e.backgroundRepeat),this.backgroundSize=PA(A,gg,e.backgroundSize),this.borderTopColor=PA(A,pg,e.borderTopColor),this.borderRightColor=PA(A,wg,e.borderRightColor),this.borderBottomColor=PA(A,vg,e.borderBottomColor),this.borderLeftColor=PA(A,mg,e.borderLeftColor),this.borderTopLeftRadius=PA(A,Cg,e.borderTopLeftRadius),this.borderTopRightRadius=PA(A,Qg,e.borderTopRightRadius),this.borderBottomRightRadius=PA(A,Fg,e.borderBottomRightRadius),this.borderBottomLeftRadius=PA(A,Ug,e.borderBottomLeftRadius),this.borderTopStyle=PA(A,yg,e.borderTopStyle),this.borderRightStyle=PA(A,bg,e.borderRightStyle),this.borderBottomStyle=PA(A,Lg,e.borderBottomStyle),this.borderLeftStyle=PA(A,Eg,e.borderLeftStyle),this.borderTopWidth=PA(A,xg,e.borderTopWidth),this.borderRightWidth=PA(A,Ig,e.borderRightWidth),this.borderBottomWidth=PA(A,Hg,e.borderBottomWidth),this.borderLeftWidth=PA(A,Sg,e.borderLeftWidth),this.boxShadow=PA(A,y2,e.boxShadow),this.color=PA(A,Ng,e.color),this.direction=PA(A,_g,e.direction),this.display=PA(A,Dg,e.display),this.float=PA(A,Pg,e.cssFloat),this.fontFamily=PA(A,g2,e.fontFamily),this.fontSize=PA(A,d2,e.fontSize),this.fontStyle=PA(A,v2,e.fontStyle),this.fontVariant=PA(A,w2,e.fontVariant),this.fontWeight=PA(A,p2,e.fontWeight),this.letterSpacing=PA(A,Og,e.letterSpacing),this.lineBreak=PA(A,Mg,e.lineBreak),this.lineHeight=PA(A,Kg,e.lineHeight),this.listStyleImage=PA(A,kg,e.listStyleImage),this.listStylePosition=PA(A,Rg,e.listStylePosition),this.listStyleType=PA(A,mu,e.listStyleType),this.marginTop=PA(A,jg,e.marginTop),this.marginRight=PA(A,Gg,e.marginRight),this.marginBottom=PA(A,Vg,e.marginBottom),this.marginLeft=PA(A,qg,e.marginLeft),this.opacity=PA(A,f2,e.opacity);var i=PA(A,Wg,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=PA(A,Jg,e.overflowWrap),this.paddingTop=PA(A,Xg,e.paddingTop),this.paddingRight=PA(A,zg,e.paddingRight),this.paddingBottom=PA(A,Yg,e.paddingBottom),this.paddingLeft=PA(A,Zg,e.paddingLeft),this.paintOrder=PA(A,b2,e.paintOrder),this.position=PA(A,A2,e.position),this.textAlign=PA(A,$g,e.textAlign),this.textDecorationColor=PA(A,h2,(r=e.textDecorationColor)!==null&&r!==void 0?r:e.color),this.textDecorationLine=PA(A,B2,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=PA(A,e2,e.textShadow),this.textTransform=PA(A,t2,e.textTransform),this.transform=PA(A,r2,e.transform),this.transformOrigin=PA(A,o2,e.transformOrigin),this.visibility=PA(A,c2,e.visibility),this.webkitTextStrokeColor=PA(A,L2,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=PA(A,E2,e.webkitTextStrokeWidth),this.wordBreak=PA(A,u2,e.wordBreak),this.zIndex=PA(A,l2,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return wn(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Ye(this.display,4)||Ye(this.display,33554432)||Ye(this.display,268435456)||Ye(this.display,536870912)||Ye(this.display,67108864)||Ye(this.display,134217728)},t}(),I2=function(){function t(A,e){this.content=PA(A,m2,e.content),this.quotes=PA(A,U2,e.quotes)}return t}(),zl=function(){function t(A,e){this.counterIncrement=PA(A,C2,e.counterIncrement),this.counterReset=PA(A,Q2,e.counterReset)}return t}(),PA=function(t,A,e){var r=new nh,n=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(n);var i=new ih(r.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,ve(s)?s.value:A.initialValue);case 0:return A.parse(t,i.parseComponentValue());case 1:return A.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return xo.parse(t,i.parseComponentValue());case"color":return pn.parse(t,i.parseComponentValue());case"image":return Ru.parse(t,i.parseComponentValue());case"length":var c=i.parseComponentValue();return vn(c)?c:st;case"length-percentage":var u=i.parseComponentValue();return Je(u)?u:st;case"time":return Fh.parse(t,i.parseComponentValue())}break}},H2="data-html2canvas-debug",S2=function(t){var A=t.getAttribute(H2);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Cu=function(t,A){var e=S2(t);return e===1||A===e},xr=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Cu(e,3))debugger;this.styles=new x2(A,window.getComputedStyle(e,null)),Uu(e)&&(this.styles.animationDuration.some(function(r){return r>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Lo(this.context,e),Cu(e,4)&&(this.flags|=16)}return t}(),N2=" ",Yl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ea=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xs=0;Xs<Yl.length;Xs++)Ea[Yl.charCodeAt(Xs)]=Xs;var _2=function(t){var A=t.length*.75,e=t.length,r,n=0,i,s,c,u;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<e;r+=4)i=Ea[t.charCodeAt(r)],s=Ea[t.charCodeAt(r+1)],c=Ea[t.charCodeAt(r+2)],u=Ea[t.charCodeAt(r+3)],g[n++]=i<<2|s>>4,g[n++]=(s&15)<<4|c>>2,g[n++]=(c&3)<<6|u&63;return h},D2=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},T2=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},kn=5,ju=6+5,Pc=2,P2=ju-kn,Uh=65536>>kn,O2=1<<kn,Oc=O2-1,M2=1024>>kn,K2=Uh+M2,k2=K2,R2=32,j2=k2+R2,G2=65536>>ju,V2=1<<P2,q2=V2-1,Zl=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},W2=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},J2=function(t,A){var e=_2(t),r=Array.isArray(e)?T2(e):new Uint32Array(e),n=Array.isArray(e)?D2(e):new Uint16Array(e),i=24,s=Zl(n,i/2,r[4]/2),c=r[5]===2?Zl(n,(i+r[4])/2):W2(r,Math.ceil((i+r[4])/4));return new X2(r[0],r[1],r[2],r[3],s,c)},X2=function(){function t(A,e,r,n,i,s){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>kn],e=(e<<Pc)+(A&Oc),this.data[e];if(A<=65535)return e=this.index[Uh+(A-55296>>kn)],e=(e<<Pc)+(A&Oc),this.data[e];if(A<this.highStart)return e=j2-G2+(A>>ju),e=this.index[e],e+=A>>kn&q2,e=this.index[e],e=(e<<Pc)+(A&Oc),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),$l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z2=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var zs=0;zs<$l.length;zs++)z2[$l.charCodeAt(zs)]=zs;var Y2=1,Mc=2,Kc=3,Af=4,ef=5,Z2=7,tf=8,kc=9,Rc=10,rf=11,nf=12,af=13,sf=14,jc=15,$2=function(t){for(var A=[],e=0,r=t.length;e<r;){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},Ad=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=t[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},ed=J2(N2),qt="×",Gc="÷",td=function(t){return ed.get(t)},rd=function(t,A,e){var r=e-2,n=A[r],i=A[e-1],s=A[e];if(i===Mc&&s===Kc)return qt;if(i===Mc||i===Kc||i===Af||s===Mc||s===Kc||s===Af)return Gc;if(i===tf&&[tf,kc,rf,nf].indexOf(s)!==-1||(i===rf||i===kc)&&(s===kc||s===Rc)||(i===nf||i===Rc)&&s===Rc||s===af||s===ef||s===Z2||i===Y2)return qt;if(i===af&&s===sf){for(;n===ef;)n=A[--r];if(n===sf)return qt}if(i===jc&&s===jc){for(var c=0;n===jc;)c++,n=A[--r];if(c%2===0)return qt}return Gc},nd=function(t){var A=$2(t),e=A.length,r=0,n=0,i=A.map(td);return{next:function(){if(r>=e)return{done:!0,value:null};for(var s=qt;r<e&&(s=rd(A,i,++r))===qt;);if(s!==qt||r===e){var c=Ad.apply(null,A.slice(n,r));return n=r,{value:c,done:!1}}return{done:!0,value:null}}}},id=function(t){for(var A=nd(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e},ad=function(t){var A=123;if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=A+"px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(t.body.removeChild(r),i===A)return!0}}return!1},sd=function(t){var A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);var e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=A.firstChild,n=Eo(r.data).map(function(u){return Ke(u)}),i=0,s={},c=n.every(function(u,h){e.setStart(r,i),e.setEnd(r,i+u.length);var g=e.getBoundingClientRect();i+=u.length;var d=g.x>s.x||g.y>s.y;return s=g,h===0?!0:d});return t.body.removeChild(A),c},od=function(){return typeof new Image().crossOrigin<"u"},cd=function(){return typeof new XMLHttpRequest().responseType=="string"},ud=function(t){var A=new Image,e=t.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},of=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},ld=function(t){var A=t.createElement("canvas"),e=100;A.width=e,A.height=e;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=A.toDataURL();n.src=i;var s=Qu(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),cf(s).then(function(c){r.drawImage(c,0,0);var u=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var h=t.createElement("div");return h.style.backgroundImage="url("+i+")",h.style.height=e+"px",of(u)?cf(Qu(e,e,0,0,h)):Promise.reject(!1)}).then(function(c){return r.drawImage(c,0,0),of(r.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Qu=function(t,A,e,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),c=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",A.toString()),c.setAttributeNS(null,"width","100%"),c.setAttributeNS(null,"height","100%"),c.setAttributeNS(null,"x",e.toString()),c.setAttributeNS(null,"y",r.toString()),c.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(c),c.appendChild(n),s},cf=function(t){return new Promise(function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},at={get SUPPORT_RANGE_BOUNDS(){var t=ad(document);return Object.defineProperty(at,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=at.SUPPORT_RANGE_BOUNDS&&sd(document);return Object.defineProperty(at,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=ud(document);return Object.defineProperty(at,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?ld(document):Promise.resolve(!1);return Object.defineProperty(at,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=od();return Object.defineProperty(at,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=cd();return Object.defineProperty(at,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(at,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(at,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Na=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),fd=function(t,A,e,r){var n=gd(A,e),i=[],s=0;return n.forEach(function(c){if(e.textDecorationLine.length||c.trim().length>0)if(at.SUPPORT_RANGE_BOUNDS){var u=uf(r,s,c.length).getClientRects();if(u.length>1){var h=Gu(c),g=0;h.forEach(function(w){i.push(new Na(w,qr.fromDOMRectList(t,uf(r,g+s,w.length).getClientRects()))),g+=w.length})}else i.push(new Na(c,qr.fromDOMRectList(t,u)))}else{var d=r.splitText(c.length);i.push(new Na(c,hd(t,r))),r=d}else at.SUPPORT_RANGE_BOUNDS||(r=r.splitText(c.length));s+=c.length}),i},hd=function(t,A){var e=A.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=Lo(t,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return qr.EMPTY},uf=function(t,A,e){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(t,A),n.setEnd(t,A+e),n},Gu=function(t){if(at.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(function(e){return e.segment})}return id(t)},Bd=function(t,A){if(at.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return pd(t,A)},gd=function(t,A){return A.letterSpacing!==0?Gu(t):Bd(t,A)},dd=[32,160,4961,65792,65793,4153,4241],pd=function(t,A){for(var e=GB(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var s=n.value.slice(),c=Eo(s),u="";c.forEach(function(h){dd.indexOf(h)===-1?u+=Ke(h):(u.length&&r.push(u),r.push(Ke(h)),u="")}),u.length&&r.push(u)}};!(n=e.next()).done;)i();return r},wd=function(){function t(A,e,r){this.text=vd(e.data,r.textTransform),this.textBounds=fd(A,this.text,r,e)}return t}(),vd=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(md,Cd);case 2:return t.toUpperCase();default:return t}},md=/(^|\s|:|-|\(|\))([a-z])/g,Cd=function(t,A,e){return t.length>0?A+e.toUpperCase():t},yh=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return A}(xr),bh=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A}(xr),Lh=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this,i=new XMLSerializer,s=Lo(e,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(xr),Eh=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(xr),Fu=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A}(xr),Qd=[{type:15,flags:0,unit:"px",number:3}],Fd=[{type:16,flags:0,number:50}],Ud=function(t){return t.width>t.height?new qr(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new qr(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},yd=function(t){var A=t.type===bd?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},wo="checkbox",vo="radio",bd="password",lf=707406591,Vu=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=yd(r),(n.type===wo||n.type===vo)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=Ud(n.bounds)),n.type){case wo:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Qd;break;case vo:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Fd;break}return n}return A}(xr),xh=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(xr),Ih=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(xr),Hh=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=Nh(e,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?Ha(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Vr.TRANSPARENT,s=r.contentWindow.document.body?Ha(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):Vr.TRANSPARENT;n.backgroundColor=wn(i)?wn(s)?n.styles.backgroundColor:s:i}}catch{}return n}return A}(xr),Ld=["OL","UL","MENU"],oo=function(t,A,e,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,_h(n)&&n.data.trim().length>0)e.textNodes.push(new wd(t,n,e.styles));else if(Hi(n))if(Oh(n)&&n.assignedNodes)n.assignedNodes().forEach(function(c){return oo(t,c,e,r)});else{var s=Sh(t,n);s.styles.isVisible()&&(Ed(n,s,r)?s.flags|=4:xd(s.styles)&&(s.flags|=2),Ld.indexOf(n.tagName)!==-1&&(s.flags|=8),e.elements.push(s),n.slot,n.shadowRoot?oo(t,n.shadowRoot,s,r):!mo(n)&&!Dh(n)&&!Co(n)&&oo(t,n,s,r))}},Sh=function(t,A){return yu(A)?new yh(t,A):Th(A)?new bh(t,A):Dh(A)?new Lh(t,A):Id(A)?new Eh(t,A):Hd(A)?new Fu(t,A):Sd(A)?new Vu(t,A):Co(A)?new xh(t,A):mo(A)?new Ih(t,A):Ph(A)?new Hh(t,A):new xr(t,A)},Nh=function(t,A){var e=Sh(t,A);return e.flags|=4,oo(t,A,e,e),e},Ed=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||qu(t)&&e.styles.isTransparent()},xd=function(t){return t.isPositioned()||t.isFloating()},_h=function(t){return t.nodeType===Node.TEXT_NODE},Hi=function(t){return t.nodeType===Node.ELEMENT_NODE},Uu=function(t){return Hi(t)&&typeof t.style<"u"&&!co(t)},co=function(t){return typeof t.className=="object"},Id=function(t){return t.tagName==="LI"},Hd=function(t){return t.tagName==="OL"},Sd=function(t){return t.tagName==="INPUT"},Nd=function(t){return t.tagName==="HTML"},Dh=function(t){return t.tagName==="svg"},qu=function(t){return t.tagName==="BODY"},Th=function(t){return t.tagName==="CANVAS"},ff=function(t){return t.tagName==="VIDEO"},yu=function(t){return t.tagName==="IMG"},Ph=function(t){return t.tagName==="IFRAME"},hf=function(t){return t.tagName==="STYLE"},_d=function(t){return t.tagName==="SCRIPT"},mo=function(t){return t.tagName==="TEXTAREA"},Co=function(t){return t.tagName==="SELECT"},Oh=function(t){return t.tagName==="SLOT"},Bf=function(t){return t.tagName.indexOf("-")>0},Dd=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},t.prototype.pop=function(A){var e=this;A.forEach(function(r){return e.counters[r].pop()})},t.prototype.parse=function(A){var e=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(c){var u=e.counters[c.counter];u&&c.increment!==0&&(i=!1,u.length||u.push(1),u[Math.max(0,u.length-1)]+=c.increment)});var s=[];return i&&n.forEach(function(c){var u=e.counters[c.counter];s.push(c.counter),u||(u=e.counters[c.counter]=[]),u.push(c.reset)}),s},t}(),gf={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"]},df={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Td={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Pd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Qi=function(t,A,e,r,n,i){return t<A||t>e?Oa(t,n,i.length>0):r.integers.reduce(function(s,c,u){for(;t>=c;)t-=c,s+=r.values[u];return s},"")+i},Mh=function(t,A,e,r){var n="";do e||t--,n=r(t)+n,t/=A;while(t*A>=A);return n},Me=function(t,A,e,r,n){var i=e-A+1;return(t<0?"-":"")+(Mh(Math.abs(t),i,r,function(s){return Ke(Math.floor(s%i)+A)})+n)},Dn=function(t,A,e){e===void 0&&(e=". ");var r=A.length;return Mh(Math.abs(t),r,!1,function(n){return A[Math.floor(n%r)]})+e},Li=1,un=2,ln=4,xa=8,jr=function(t,A,e,r,n,i){if(t<-9999||t>9999)return Oa(t,4,n.length>0);var s=Math.abs(t),c=n;if(s===0)return A[0]+c;for(var u=0;s>0&&u<=4;u++){var h=s%10;h===0&&Ye(i,Li)&&c!==""?c=A[h]+c:h>1||h===1&&u===0||h===1&&u===1&&Ye(i,un)||h===1&&u===1&&Ye(i,ln)&&t>100||h===1&&u>1&&Ye(i,xa)?c=A[h]+(u>0?e[u-1]:"")+c:h===1&&u>0&&(c=e[u-1]+c),s=Math.floor(s/10)}return(t<0?r:"")+c},pf="十百千萬",wf="拾佰仟萬",vf="マイナス",Vc="마이너스",Oa=function(t,A,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",s=e?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var c=Me(t,48,57,!0,r);return c.length<4?"0"+c:c;case 4:return Dn(t,"〇一二三四五六七八九",n);case 6:return Qi(t,1,3999,gf,3,r).toLowerCase();case 7:return Qi(t,1,3999,gf,3,r);case 8:return Me(t,945,969,!1,r);case 9:return Me(t,97,122,!1,r);case 10:return Me(t,65,90,!1,r);case 11:return Me(t,1632,1641,!0,r);case 12:case 49:return Qi(t,1,9999,df,3,r);case 35:return Qi(t,1,9999,df,3,r).toLowerCase();case 13:return Me(t,2534,2543,!0,r);case 14:case 30:return Me(t,6112,6121,!0,r);case 15:return Dn(t,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Dn(t,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return jr(t,"零一二三四五六七八九",pf,"負",n,un|ln|xa);case 47:return jr(t,"零壹貳參肆伍陸柒捌玖",wf,"負",n,Li|un|ln|xa);case 42:return jr(t,"零一二三四五六七八九",pf,"负",n,un|ln|xa);case 41:return jr(t,"零壹贰叁肆伍陆柒捌玖",wf,"负",n,Li|un|ln|xa);case 26:return jr(t,"〇一二三四五六七八九","十百千万",vf,n,0);case 25:return jr(t,"零壱弐参四伍六七八九","拾百千万",vf,n,Li|un|ln);case 31:return jr(t,"영일이삼사오육칠팔구","십백천만",Vc,i,Li|un|ln);case 33:return jr(t,"零一二三四五六七八九","十百千萬",Vc,i,0);case 32:return jr(t,"零壹貳參四五六七八九","拾百千",Vc,i,Li|un|ln);case 18:return Me(t,2406,2415,!0,r);case 20:return Qi(t,1,19999,Pd,3,r);case 21:return Me(t,2790,2799,!0,r);case 22:return Me(t,2662,2671,!0,r);case 22:return Qi(t,1,10999,Td,3,r);case 23:return Dn(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Dn(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Me(t,3302,3311,!0,r);case 28:return Dn(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Dn(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Me(t,3792,3801,!0,r);case 37:return Me(t,6160,6169,!0,r);case 38:return Me(t,4160,4169,!0,r);case 39:return Me(t,2918,2927,!0,r);case 40:return Me(t,1776,1785,!0,r);case 43:return Me(t,3046,3055,!0,r);case 44:return Me(t,3174,3183,!0,r);case 45:return Me(t,3664,3673,!0,r);case 46:return Me(t,3872,3881,!0,r);case 3:default:return Me(t,48,57,!0,r)}},Kh="data-html2canvas-ignore",mf=function(){function t(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new Dd,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(A,e){var r=this,n=Od(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,c=n.contentWindow,u=c.document,h=kd(n).then(function(){return Qt(r,void 0,void 0,function(){var g,d;return gt(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(Vd),c&&(c.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(c.scrollY!==e.top||c.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-e.left,c.scrollY-e.top,0,0))),g=this.options.onclone,d=this.clonedReferenceElement,typeof d>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Kd(u)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(u,d)}).then(function(){return n})]:[2,n]}})})});return u.open(),u.write(jd(document.doctype)+"<html></html>"),Gd(this.referenceElement.ownerDocument,i,s),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),h},t.prototype.createElementClone=function(A){if(Cu(A,2))debugger;if(Th(A))return this.createCanvasClone(A);if(ff(A))return this.createVideoClone(A);if(hf(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return yu(e)&&(yu(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Bf(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return qc(A.style,e),e},t.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),n=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},t.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var c=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.getContext("webgl");if(c){var u=c.getContextAttributes();(u==null?void 0:u.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},t.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var r=e.getContext("2d");try{return r&&(r.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},t.prototype.appendChildNode=function(A,e,r){(!Hi(e)||!_d(e)&&!e.hasAttribute(Kh)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Hi(e)||!hf(e))&&A.appendChild(this.cloneNode(e,r))},t.prototype.cloneChildNodes=function(A,e,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(Hi(i)&&Oh(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(c){return n.appendChildNode(e,c,r)})}else this.appendChildNode(e,i,r)},t.prototype.cloneNode=function(A,e){if(_h(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&Hi(A)&&(Uu(A)||co(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),c=r.getComputedStyle(A,":after");this.referenceElement===A&&Uu(n)&&(this.clonedReferenceElement=n),qu(n)&&Jd(n);var u=this.counters.parse(new zl(this.context,i)),h=this.resolvePseudoContent(A,n,s,_a.BEFORE);Bf(A)&&(e=!0),ff(A)||this.cloneChildNodes(A,n,e),h&&n.insertBefore(h,n.firstChild);var g=this.resolvePseudoContent(A,n,c,_a.AFTER);return g&&n.appendChild(g),this.counters.pop(u),(i&&(this.options.copyStyles||co(A))&&!Ph(A)||e)&&qc(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(mo(A)||Co(A))&&(mo(n)||Co(n))&&(n.value=A.value),n}return A.cloneNode(!1)},t.prototype.resolvePseudoContent=function(A,e,r,n){var i=this;if(r){var s=r.content,c=e.ownerDocument;if(!(!c||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new zl(this.context,r));var u=new I2(this.context,r),h=c.createElement("html2canvaspseudoelement");qc(r,h),u.content.forEach(function(d){if(d.type===0)h.appendChild(c.createTextNode(d.value));else if(d.type===22){var w=c.createElement("img");w.src=d.value,w.style.opacity="1",h.appendChild(w)}else if(d.type===18){if(d.name==="attr"){var B=d.values.filter(ve);B.length&&h.appendChild(c.createTextNode(A.getAttribute(B[0].value)||""))}else if(d.name==="counter"){var L=d.values.filter(Oi),y=L[0],S=L[1];if(y&&ve(y)){var Q=i.counters.getCounterValue(y.value),x=S&&ve(S)?mu.parse(i.context,S.value):3;h.appendChild(c.createTextNode(Oa(Q,x,!1)))}}else if(d.name==="counters"){var R=d.values.filter(Oi),y=R[0],Y=R[1],S=R[2];if(y&&ve(y)){var Z=i.counters.getCounterValues(y.value),$=S&&ve(S)?mu.parse(i.context,S.value):3,X=Y&&Y.type===0?Y.value:"",P=Z.map(function(I){return Oa(I,$,!1)}).join(X);h.appendChild(c.createTextNode(P))}}}else if(d.type===20)switch(d.value){case"open-quote":h.appendChild(c.createTextNode(Xl(u.quotes,i.quoteDepth++,!0)));break;case"close-quote":h.appendChild(c.createTextNode(Xl(u.quotes,--i.quoteDepth,!1)));break;default:h.appendChild(c.createTextNode(d.value))}}),h.className=bu+" "+Lu;var g=n===_a.BEFORE?" "+bu:" "+Lu;return co(e)?e.className.baseValue+=g:e.className+=g,h}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),_a;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(_a||(_a={}));var Od=function(t,A){var e=t.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(Kh,"true"),t.body.appendChild(e),e},Md=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},Kd=function(t){return Promise.all([].slice.call(t.images,0).map(Md))},kd=function(t){return new Promise(function(A,e){var r=t.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(t))},50)}})},Rd=["all","d","content"],qc=function(t,A){for(var e=t.length-1;e>=0;e--){var r=t.item(e);Rd.indexOf(r)===-1&&A.style.setProperty(r,t.getPropertyValue(r))}return A},jd=function(t){var A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=t.internalSubset),t.publicId&&(A+='"'+t.publicId+'"'),t.systemId&&(A+='"'+t.systemId+'"'),A+=">"),A},Gd=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},Vd=function(t){var A=t[0],e=t[1],r=t[2];A.scrollLeft=e,A.scrollTop=r},qd=":before",Wd=":after",bu="___html2canvas___pseudoelement_before",Lu="___html2canvas___pseudoelement_after",Cf=`{
    content: "" !important;
    display: none !important;
}`,Jd=function(t){Xd(t,"."+bu+qd+Cf+`
         .`+Lu+Wd+Cf)},Xd=function(t,A){var e=t.ownerDocument;if(e){var r=e.createElement("style");r.textContent=A,t.appendChild(r)}},kh=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),zd=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jc(A)||Ap(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return Qt(this,void 0,void 0,function(){var e,r,n,i,s=this;return gt(this,function(c){switch(c.label){case 0:return e=kh.isSameOrigin(A),r=!Wc(A)&&this._options.useCORS===!0&&at.SUPPORT_CORS_IMAGES&&!e,n=!Wc(A)&&!e&&!Jc(A)&&typeof this._options.proxy=="string"&&at.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!Wc(A)&&!Jc(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=c.sent(),c.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(u,h){var g=new Image;g.onload=function(){return u(g)},g.onerror=h,(ep(i)||r)&&(g.crossOrigin="anonymous"),g.src=i,g.complete===!0&&setTimeout(function(){return u(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,c.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,s){var c=at.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(c==="text")i(u.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(w){return s(w)},!1),d.readAsDataURL(u.response)}else s("Failed to proxy resource "+n+" with status code "+u.status)},u.onerror=s;var h=r.indexOf("?")>-1?"&":"?";if(u.open("GET",""+r+h+"url="+encodeURIComponent(A)+"&responseType="+c),c!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=c),e._options.imageTimeout){var g=e._options.imageTimeout;u.timeout=g,u.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}u.send()})},t}(),Yd=/^data:image\/svg\+xml/i,Zd=/^data:image\/.*;base64,/i,$d=/^data:image\/.*/i,Ap=function(t){return at.SUPPORT_SVG_DRAWING||!tp(t)},Wc=function(t){return $d.test(t)},ep=function(t){return Zd.test(t)},Jc=function(t){return t.substr(0,4)==="blob"},tp=function(t){return t.substr(-3).toLowerCase()==="svg"||Yd.test(t)},NA=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),Fi=function(t,A,e){return new NA(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Ys=function(){function t(A,e,r,n){this.type=1,this.start=A,this.startControl=e,this.endControl=r,this.end=n}return t.prototype.subdivide=function(A,e){var r=Fi(this.start,this.startControl,A),n=Fi(this.startControl,this.endControl,A),i=Fi(this.endControl,this.end,A),s=Fi(r,n,A),c=Fi(n,i,A),u=Fi(s,c,A);return e?new t(this.start,r,s,u):new t(u,c,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},rp=function(){function t(A){var e=A.styles,r=A.bounds,n=La(e.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],c=La(e.borderTopRightRadius,r.width,r.height),u=c[0],h=c[1],g=La(e.borderBottomRightRadius,r.width,r.height),d=g[0],w=g[1],B=La(e.borderBottomLeftRadius,r.width,r.height),L=B[0],y=B[1],S=[];S.push((i+u)/r.width),S.push((L+d)/r.width),S.push((s+y)/r.height),S.push((h+w)/r.height);var Q=Math.max.apply(Math,S);Q>1&&(i/=Q,s/=Q,u/=Q,h/=Q,d/=Q,w/=Q,L/=Q,y/=Q);var x=r.width-u,R=r.height-w,Y=r.width-d,Z=r.height-y,$=e.borderTopWidth,X=e.borderRightWidth,P=e.borderBottomWidth,q=e.borderLeftWidth,oA=be(e.paddingTop,A.bounds.width),I=be(e.paddingRight,A.bounds.width),H=be(e.paddingBottom,A.bounds.width),K=be(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?xe(r.left+q/3,r.top+$/3,i-q/3,s-$/3,Be.TOP_LEFT):new NA(r.left+q/3,r.top+$/3),this.topRightBorderDoubleOuterBox=i>0||s>0?xe(r.left+x,r.top+$/3,u-X/3,h-$/3,Be.TOP_RIGHT):new NA(r.left+r.width-X/3,r.top+$/3),this.bottomRightBorderDoubleOuterBox=d>0||w>0?xe(r.left+Y,r.top+R,d-X/3,w-P/3,Be.BOTTOM_RIGHT):new NA(r.left+r.width-X/3,r.top+r.height-P/3),this.bottomLeftBorderDoubleOuterBox=L>0||y>0?xe(r.left+q/3,r.top+Z,L-q/3,y-P/3,Be.BOTTOM_LEFT):new NA(r.left+q/3,r.top+r.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?xe(r.left+q*2/3,r.top+$*2/3,i-q*2/3,s-$*2/3,Be.TOP_LEFT):new NA(r.left+q*2/3,r.top+$*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?xe(r.left+x,r.top+$*2/3,u-X*2/3,h-$*2/3,Be.TOP_RIGHT):new NA(r.left+r.width-X*2/3,r.top+$*2/3),this.bottomRightBorderDoubleInnerBox=d>0||w>0?xe(r.left+Y,r.top+R,d-X*2/3,w-P*2/3,Be.BOTTOM_RIGHT):new NA(r.left+r.width-X*2/3,r.top+r.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=L>0||y>0?xe(r.left+q*2/3,r.top+Z,L-q*2/3,y-P*2/3,Be.BOTTOM_LEFT):new NA(r.left+q*2/3,r.top+r.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?xe(r.left+q/2,r.top+$/2,i-q/2,s-$/2,Be.TOP_LEFT):new NA(r.left+q/2,r.top+$/2),this.topRightBorderStroke=i>0||s>0?xe(r.left+x,r.top+$/2,u-X/2,h-$/2,Be.TOP_RIGHT):new NA(r.left+r.width-X/2,r.top+$/2),this.bottomRightBorderStroke=d>0||w>0?xe(r.left+Y,r.top+R,d-X/2,w-P/2,Be.BOTTOM_RIGHT):new NA(r.left+r.width-X/2,r.top+r.height-P/2),this.bottomLeftBorderStroke=L>0||y>0?xe(r.left+q/2,r.top+Z,L-q/2,y-P/2,Be.BOTTOM_LEFT):new NA(r.left+q/2,r.top+r.height-P/2),this.topLeftBorderBox=i>0||s>0?xe(r.left,r.top,i,s,Be.TOP_LEFT):new NA(r.left,r.top),this.topRightBorderBox=u>0||h>0?xe(r.left+x,r.top,u,h,Be.TOP_RIGHT):new NA(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||w>0?xe(r.left+Y,r.top+R,d,w,Be.BOTTOM_RIGHT):new NA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=L>0||y>0?xe(r.left,r.top+Z,L,y,Be.BOTTOM_LEFT):new NA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?xe(r.left+q,r.top+$,Math.max(0,i-q),Math.max(0,s-$),Be.TOP_LEFT):new NA(r.left+q,r.top+$),this.topRightPaddingBox=u>0||h>0?xe(r.left+Math.min(x,r.width-X),r.top+$,x>r.width+X?0:Math.max(0,u-X),Math.max(0,h-$),Be.TOP_RIGHT):new NA(r.left+r.width-X,r.top+$),this.bottomRightPaddingBox=d>0||w>0?xe(r.left+Math.min(Y,r.width-q),r.top+Math.min(R,r.height-P),Math.max(0,d-X),Math.max(0,w-P),Be.BOTTOM_RIGHT):new NA(r.left+r.width-X,r.top+r.height-P),this.bottomLeftPaddingBox=L>0||y>0?xe(r.left+q,r.top+Math.min(Z,r.height-P),Math.max(0,L-q),Math.max(0,y-P),Be.BOTTOM_LEFT):new NA(r.left+q,r.top+r.height-P),this.topLeftContentBox=i>0||s>0?xe(r.left+q+K,r.top+$+oA,Math.max(0,i-(q+K)),Math.max(0,s-($+oA)),Be.TOP_LEFT):new NA(r.left+q+K,r.top+$+oA),this.topRightContentBox=u>0||h>0?xe(r.left+Math.min(x,r.width+q+K),r.top+$+oA,x>r.width+q+K?0:u-q+K,h-($+oA),Be.TOP_RIGHT):new NA(r.left+r.width-(X+I),r.top+$+oA),this.bottomRightContentBox=d>0||w>0?xe(r.left+Math.min(Y,r.width-(q+K)),r.top+Math.min(R,r.height+$+oA),Math.max(0,d-(X+I)),w-(P+H),Be.BOTTOM_RIGHT):new NA(r.left+r.width-(X+I),r.top+r.height-(P+H)),this.bottomLeftContentBox=L>0||y>0?xe(r.left+q+K,r.top+Z,Math.max(0,L-(q+K)),y-(P+H),Be.BOTTOM_LEFT):new NA(r.left+q+K,r.top+r.height-(P+H))}return t}(),Be;(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"})(Be||(Be={}));var xe=function(t,A,e,r,n){var i=4*((Math.sqrt(2)-1)/3),s=e*i,c=r*i,u=t+e,h=A+r;switch(n){case Be.TOP_LEFT:return new Ys(new NA(t,h),new NA(t,h-c),new NA(u-s,A),new NA(u,A));case Be.TOP_RIGHT:return new Ys(new NA(t,A),new NA(t+s,A),new NA(u,h-c),new NA(u,h));case Be.BOTTOM_RIGHT:return new Ys(new NA(u,A),new NA(u,A+c),new NA(t+s,h),new NA(t,h));case Be.BOTTOM_LEFT:default:return new Ys(new NA(u,h),new NA(u-s,h),new NA(t,A+c),new NA(t,A))}},Qo=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},np=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Fo=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},ip=function(){function t(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}return t}(),Zs=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),ap=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),sp=function(t){return t.type===0},Rh=function(t){return t.type===1},op=function(t){return t.type===2},Qf=function(t,A){return t.length===A.length?t.some(function(e,r){return e===A[r]}):!1},cp=function(t,A,e,r,n){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+r,e);case 2:return i.add(A+r,e+n);case 3:return i.add(A,e+n)}return i})},jh=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),Gh=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new rp(this.container),this.container.styles.opacity<1&&this.effects.push(new ap(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new ip(r,n,i))}if(this.container.styles.overflowX!==0){var s=Qo(this.curves),c=Fo(this.curves);Qf(s,c)?this.effects.push(new Zs(s,6)):(this.effects.push(new Zs(s,2)),this.effects.push(new Zs(c,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(u){return!Rh(u)});if(e||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Qo(r.curves),c=Fo(r.curves);Qf(s,c)||n.unshift(new Zs(c,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(u){return Ye(u.target,A)})},t}(),Eu=function(t,A,e,r){t.container.elements.forEach(function(n){var i=Ye(n.flags,4),s=Ye(n.flags,2),c=new Gh(n,t);Ye(n.styles.display,2048)&&r.push(c);var u=Ye(n.flags,8)?[]:r;if(i||s){var h=i||n.styles.isPositioned()?e:A,g=new jh(c);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var w=0;h.negativeZIndex.some(function(L,y){return d>L.element.container.styles.zIndex.order?(w=y,!1):w>0}),h.negativeZIndex.splice(w,0,g)}else if(d>0){var B=0;h.positiveZIndex.some(function(L,y){return d>=L.element.container.styles.zIndex.order?(B=y+1,!1):B>0}),h.positiveZIndex.splice(B,0,g)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?h.nonPositionedFloats.push(g):h.nonPositionedInlineLevel.push(g);Eu(c,g,i?g:e,u)}else n.styles.isInlineLevel()?A.inlineLevel.push(c):A.nonInlineLevel.push(c),Eu(c,A,e,u);Ye(n.flags,8)&&Vh(n,u)})},Vh=function(t,A){for(var e=t instanceof Fu?t.start:1,r=t instanceof Fu?t.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof Eh&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Oa(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},up=function(t){var A=new Gh(t,null),e=new jh(A),r=[];return Eu(A,e,e,r),Vh(A.container,r),e},Ff=function(t,A){switch(A){case 0:return Xt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Xt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Xt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Xt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},lp=function(t,A){switch(A){case 0:return Xt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Xt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Xt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Xt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},fp=function(t,A){switch(A){case 0:return Xt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Xt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Xt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Xt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},hp=function(t,A){switch(A){case 0:return $s(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return $s(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return $s(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return $s(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},$s=function(t,A){var e=[];return Wt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Wt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Xt=function(t,A,e,r){var n=[];return Wt(t)?n.push(t.subdivide(.5,!1)):n.push(t),Wt(e)?n.push(e.subdivide(.5,!0)):n.push(e),Wt(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Wt(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},qh=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},Uo=function(t){var A=t.styles,e=t.bounds,r=be(A.paddingLeft,e.width),n=be(A.paddingRight,e.width),i=be(A.paddingTop,e.width),s=be(A.paddingBottom,e.width);return e.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+s))},Bp=function(t,A){return t===0?A.bounds:t===2?Uo(A):qh(A)},gp=function(t,A){return t===0?A.bounds:t===2?Uo(A):qh(A)},Xc=function(t,A,e){var r=Bp(Ei(t.styles.backgroundOrigin,A),t),n=gp(Ei(t.styles.backgroundClip,A),t),i=dp(Ei(t.styles.backgroundSize,A),e,r),s=i[0],c=i[1],u=La(Ei(t.styles.backgroundPosition,A),r.width-s,r.height-c),h=pp(Ei(t.styles.backgroundRepeat,A),u,i,r,n),g=Math.round(r.left+u[0]),d=Math.round(r.top+u[1]);return[h,g,d,s,c]},Ui=function(t){return ve(t)&&t.value===Ni.AUTO},Ao=function(t){return typeof t=="number"},dp=function(t,A,e){var r=A[0],n=A[1],i=A[2],s=t[0],c=t[1];if(!s)return[0,0];if(Je(s)&&c&&Je(c))return[be(s,e.width),be(c,e.height)];var u=Ao(i);if(ve(s)&&(s.value===Ni.CONTAIN||s.value===Ni.COVER)){if(Ao(i)){var h=e.width/e.height;return h<i!=(s.value===Ni.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var g=Ao(r),d=Ao(n),w=g||d;if(Ui(s)&&(!c||Ui(c))){if(g&&d)return[r,n];if(!u&&!w)return[e.width,e.height];if(w&&u){var B=g?r:n*i,L=d?n:r/i;return[B,L]}var y=g?r:e.width,S=d?n:e.height;return[y,S]}if(u){var Q=0,x=0;return Je(s)?Q=be(s,e.width):Je(c)&&(x=be(c,e.height)),Ui(s)?Q=x*i:(!c||Ui(c))&&(x=Q/i),[Q,x]}var R=null,Y=null;if(Je(s)?R=be(s,e.width):c&&Je(c)&&(Y=be(c,e.height)),R!==null&&(!c||Ui(c))&&(Y=g&&d?R/r*n:e.height),Y!==null&&Ui(s)&&(R=g&&d?Y/n*r:e.width),R!==null&&Y!==null)return[R,Y];throw new Error("Unable to calculate background-size for element")},Ei=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},pp=function(t,A,e,r,n){var i=A[0],s=A[1],c=e[0],u=e[1];switch(t){case 2:return[new NA(Math.round(r.left),Math.round(r.top+s)),new NA(Math.round(r.left+r.width),Math.round(r.top+s)),new NA(Math.round(r.left+r.width),Math.round(u+r.top+s)),new NA(Math.round(r.left),Math.round(u+r.top+s))];case 3:return[new NA(Math.round(r.left+i),Math.round(r.top)),new NA(Math.round(r.left+i+c),Math.round(r.top)),new NA(Math.round(r.left+i+c),Math.round(r.height+r.top)),new NA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new NA(Math.round(r.left+i),Math.round(r.top+s)),new NA(Math.round(r.left+i+c),Math.round(r.top+s)),new NA(Math.round(r.left+i+c),Math.round(r.top+s+u)),new NA(Math.round(r.left+i),Math.round(r.top+s+u))];default:return[new NA(Math.round(n.left),Math.round(n.top)),new NA(Math.round(n.left+n.width),Math.round(n.top)),new NA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new NA(Math.round(n.left),Math.round(n.height+n.top))]}},wp="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Uf="Hidden Text",vp=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),n.src=wp,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Uf)),r.appendChild(i),r.appendChild(n);var c=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Uf)),r.style.lineHeight="normal",n.style.verticalAlign="super";var u=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:c,middle:u}},t.prototype.getMetrics=function(A,e){var r=A+" "+e;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,e)),this._data[r]},t}(),Wh=function(){function t(A,e){this.context=A,this.options=e}return t}(),mp=1e4,Cp=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new vp(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(e){for(var r=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(e){this.ctx.save(),op(e)&&(this.ctx.globalAlpha=e.opacity),sp(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Rh(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return Qt(this,void 0,void 0,function(){var r;return gt(this,function(n){switch(n.label){case 0:return r=e.element.container.styles,r.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return Qt(this,void 0,void 0,function(){return gt(this,function(r){switch(r.label){case 0:if(Ye(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(e)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,r,n){var i=this;if(r===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var s=Gu(e.text);s.reduce(function(c,u){return i.ctx.fillText(u,c,e.bounds.top+n),c+i.ctx.measureText(u).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var r=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=bp(e.fontFamily).join(", "),i=ka(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,r,e.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(e,r){return Qt(this,void 0,void 0,function(){var n,i,s,c,u,h,g,d,w=this;return gt(this,function(B){return n=this.createFontStyle(r),i=n[0],s=n[1],c=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",u=this.fontMetrics.getMetrics(s,c),h=u.baseline,g=u.middle,d=r.paintOrder,e.textBounds.forEach(function(L){d.forEach(function(y){switch(y){case 0:w.ctx.fillStyle=et(r.color),w.renderTextWithLetterSpacing(L,r.letterSpacing,h);var S=r.textShadow;S.length&&L.text.trim().length&&(S.slice(0).reverse().forEach(function(Q){w.ctx.shadowColor=et(Q.color),w.ctx.shadowOffsetX=Q.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=Q.offsetY.number*w.options.scale,w.ctx.shadowBlur=Q.blur.number,w.renderTextWithLetterSpacing(L,r.letterSpacing,h)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=et(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(Q){switch(Q){case 1:w.ctx.fillRect(L.bounds.left,Math.round(L.bounds.top+h),L.bounds.width,1);break;case 2:w.ctx.fillRect(L.bounds.left,Math.round(L.bounds.top),L.bounds.width,1);break;case 3:w.ctx.fillRect(L.bounds.left,Math.ceil(L.bounds.top+g),L.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&L.text.trim().length&&(w.ctx.strokeStyle=et(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(L.text,L.bounds.left,L.bounds.top+h)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,r,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Uo(e),s=Fo(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return Qt(this,void 0,void 0,function(){var r,n,i,s,c,u,x,x,h,g,d,w,Y,B,L,Z,y,S,Q,x,R,Y,Z;return gt(this,function($){switch($.label){case 0:this.applyEffects(e.getEffects(4)),r=e.container,n=e.curves,i=r.styles,s=0,c=r.textNodes,$.label=1;case 1:return s<c.length?(u=c[s],[4,this.renderTextNode(u,i)]):[3,4];case 2:$.sent(),$.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof yh))return[3,8];$.label=5;case 5:return $.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return x=$.sent(),this.renderReplacedElement(r,n,x),[3,8];case 7:return $.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof bh&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Lh))return[3,12];$.label=9;case 9:return $.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return x=$.sent(),this.renderReplacedElement(r,n,x),[3,12];case 11:return $.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Hh&&r.tree?(h=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,h.render(r.tree)]):[3,14];case 13:g=$.sent(),r.width&&r.height&&this.ctx.drawImage(g,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),$.label=14;case 14:if(r instanceof Vu&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===wo?r.checked&&(this.ctx.save(),this.path([new NA(r.bounds.left+d*.39363,r.bounds.top+d*.79),new NA(r.bounds.left+d*.16,r.bounds.top+d*.5549),new NA(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new NA(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new NA(r.bounds.left+d*.72983,r.bounds.top+d*.23),new NA(r.bounds.left+d*.84,r.bounds.top+d*.34085),new NA(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=et(lf),this.ctx.fill(),this.ctx.restore()):r.type===vo&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=et(lf),this.ctx.fill(),this.ctx.restore())),Qp(r)&&r.value.length){switch(w=this.createFontStyle(i),Y=w[0],B=w[1],L=this.fontMetrics.getMetrics(Y,B).baseline,this.ctx.font=Y,this.ctx.fillStyle=et(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Up(r.styles.textAlign),Z=Uo(r),y=0,r.styles.textAlign){case 1:y+=Z.width/2;break;case 2:y+=Z.width;break}S=Z.add(y,0,0,-Z.height/2+1),this.ctx.save(),this.path([new NA(Z.left,Z.top),new NA(Z.left+Z.width,Z.top),new NA(Z.left+Z.width,Z.top+Z.height),new NA(Z.left,Z.top+Z.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Na(r.value,S),i.letterSpacing,L),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ye(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(Q=r.styles.listStyleImage,Q.type!==0)return[3,18];x=void 0,R=Q.url,$.label=15;case 15:return $.trys.push([15,17,,18]),[4,this.context.cache.match(R)];case 16:return x=$.sent(),this.ctx.drawImage(x,r.bounds.left-(x.width+10),r.bounds.top),[3,18];case 17:return $.sent(),this.context.logger.error("Error loading list-style-image "+R),[3,18];case 18:return[3,20];case 19:e.listValue&&r.styles.listStyleType!==-1&&(Y=this.createFontStyle(i)[0],this.ctx.font=Y,this.ctx.fillStyle=et(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Z=new qr(r.bounds.left,r.bounds.top+be(r.styles.paddingTop,r.bounds.width),r.bounds.width,Wl(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Na(e.listValue,Z),i.letterSpacing,Wl(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),$.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return Qt(this,void 0,void 0,function(){var r,n,Q,i,s,Q,c,u,Q,h,g,Q,d,w,Q,B,L,Q,y,S,Q;return gt(this,function(x){switch(x.label){case 0:if(Ye(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:x.sent(),r=0,n=e.negativeZIndex,x.label=2;case 2:return r<n.length?(Q=n[r],[4,this.renderStack(Q)]):[3,5];case 3:x.sent(),x.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:x.sent(),i=0,s=e.nonInlineLevel,x.label=7;case 7:return i<s.length?(Q=s[i],[4,this.renderNode(Q)]):[3,10];case 8:x.sent(),x.label=9;case 9:return i++,[3,7];case 10:c=0,u=e.nonPositionedFloats,x.label=11;case 11:return c<u.length?(Q=u[c],[4,this.renderStack(Q)]):[3,14];case 12:x.sent(),x.label=13;case 13:return c++,[3,11];case 14:h=0,g=e.nonPositionedInlineLevel,x.label=15;case 15:return h<g.length?(Q=g[h],[4,this.renderStack(Q)]):[3,18];case 16:x.sent(),x.label=17;case 17:return h++,[3,15];case 18:d=0,w=e.inlineLevel,x.label=19;case 19:return d<w.length?(Q=w[d],[4,this.renderNode(Q)]):[3,22];case 20:x.sent(),x.label=21;case 21:return d++,[3,19];case 22:B=0,L=e.zeroOrAutoZIndexOrTransformedOrOpacity,x.label=23;case 23:return B<L.length?(Q=L[B],[4,this.renderStack(Q)]):[3,26];case 24:x.sent(),x.label=25;case 25:return B++,[3,23];case 26:y=0,S=e.positiveZIndex,x.label=27;case 27:return y<S.length?(Q=S[y],[4,this.renderStack(Q)]):[3,30];case 28:x.sent(),x.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var r=this;e.forEach(function(n,i){var s=Wt(n)?n.start:n;i===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Wt(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(e,r,n,i){this.path(e),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(e,r,n){var i;if(e.width===r&&e.height===n)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,c=s.createElement("canvas");c.width=Math.max(1,r),c.height=Math.max(1,n);var u=c.getContext("2d");return u.drawImage(e,0,0,e.width,e.height,0,0,r,n),c},A.prototype.renderBackgroundImage=function(e){return Qt(this,void 0,void 0,function(){var r,n,i,s,c,u;return gt(this,function(h){switch(h.label){case 0:r=e.styles.backgroundImage.length-1,n=function(g){var d,w,B,oA,iA,cA,K,M,P,L,oA,iA,cA,K,M,y,S,Q,x,R,Y,Z,$,X,P,q,oA,I,H,K,M,uA,iA,cA,eA,lA,BA,UA,F,_,T,k;return gt(this,function(J){switch(J.label){case 0:if(g.type!==0)return[3,5];d=void 0,w=g.url,J.label=1;case 1:return J.trys.push([1,3,,4]),[4,i.context.cache.match(w)];case 2:return d=J.sent(),[3,4];case 3:return J.sent(),i.context.logger.error("Error loading background-image "+w),[3,4];case 4:return d&&(B=Xc(e,r,[d.width,d.height,d.width/d.height]),oA=B[0],iA=B[1],cA=B[2],K=B[3],M=B[4],P=i.ctx.createPattern(i.resizeImage(d,K,M),"repeat"),i.renderRepeat(oA,P,iA,cA)),[3,6];case 5:sg(g)?(L=Xc(e,r,[null,null,null]),oA=L[0],iA=L[1],cA=L[2],K=L[3],M=L[4],y=tg(g.angle,K,M),S=y[0],Q=y[1],x=y[2],R=y[3],Y=y[4],Z=document.createElement("canvas"),Z.width=K,Z.height=M,$=Z.getContext("2d"),X=$.createLinearGradient(Q,R,x,Y),Vl(g.stops,S).forEach(function(nA){return X.addColorStop(nA.stop,et(nA.color))}),$.fillStyle=X,$.fillRect(0,0,K,M),K>0&&M>0&&(P=i.ctx.createPattern(Z,"repeat"),i.renderRepeat(oA,P,iA,cA))):og(g)&&(q=Xc(e,r,[null,null,null]),oA=q[0],I=q[1],H=q[2],K=q[3],M=q[4],uA=g.position.length===0?[ku]:g.position,iA=be(uA[0],K),cA=be(uA[uA.length-1],M),eA=rg(g,iA,cA,K,M),lA=eA[0],BA=eA[1],lA>0&&BA>0&&(UA=i.ctx.createRadialGradient(I+iA,H+cA,0,I+iA,H+cA,lA),Vl(g.stops,lA*2).forEach(function(nA){return UA.addColorStop(nA.stop,et(nA.color))}),i.path(oA),i.ctx.fillStyle=UA,lA!==BA?(F=e.bounds.left+.5*e.bounds.width,_=e.bounds.top+.5*e.bounds.height,T=BA/lA,k=1/T,i.ctx.save(),i.ctx.translate(F,_),i.ctx.transform(1,0,0,T,0,0),i.ctx.translate(-F,-_),i.ctx.fillRect(I,k*(H-_)+_,K,M*k),i.ctx.restore()):i.ctx.fill())),J.label=6;case 6:return r--,[2]}})},i=this,s=0,c=e.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return s<c.length?(u=c[s],[5,n(u)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,r,n){return Qt(this,void 0,void 0,function(){return gt(this,function(i){return this.path(Ff(n,r)),this.ctx.fillStyle=et(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,r,n,i){return Qt(this,void 0,void 0,function(){var s,c;return gt(this,function(u){switch(u.label){case 0:return r<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return u.sent(),[2];case 2:return s=lp(i,n),this.path(s),this.ctx.fillStyle=et(e),this.ctx.fill(),c=fp(i,n),this.path(c),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return Qt(this,void 0,void 0,function(){var r,n,i,s,c,u,h,g,d=this;return gt(this,function(w){switch(w.label){case 0:return this.applyEffects(e.getEffects(2)),r=e.container.styles,n=!wn(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=Fp(Ei(r.backgroundClip,0),e.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),wn(r.backgroundColor)||(this.ctx.fillStyle=et(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:w.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(B){d.ctx.save();var L=Qo(e.curves),y=B.inset?0:mp,S=cp(L,-y+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(d.path(L),d.ctx.clip(),d.mask(S)):(d.mask(L),d.ctx.clip(),d.path(S)),d.ctx.shadowOffsetX=B.offsetX.number+y,d.ctx.shadowOffsetY=B.offsetY.number,d.ctx.shadowColor=et(B.color),d.ctx.shadowBlur=B.blur.number,d.ctx.fillStyle=B.inset?et(B.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),w.label=2;case 2:c=0,u=0,h=i,w.label=3;case 3:return u<h.length?(g=h[u],g.style!==0&&!wn(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,c,e.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,c,e.curves,3)];case 6:return w.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,c,e.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,c,e.curves)];case 10:w.sent(),w.label=11;case 11:c++,w.label=12;case 12:return u++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,r,n,i,s){return Qt(this,void 0,void 0,function(){var c,u,h,g,d,w,B,L,y,S,Q,x,R,Y,Z,$,Z,$;return gt(this,function(X){return this.ctx.save(),c=hp(i,n),u=Ff(i,n),s===2&&(this.path(u),this.ctx.clip()),Wt(u[0])?(h=u[0].start.x,g=u[0].start.y):(h=u[0].x,g=u[0].y),Wt(u[1])?(d=u[1].end.x,w=u[1].end.y):(d=u[1].x,w=u[1].y),n===0||n===2?B=Math.abs(h-d):B=Math.abs(g-w),this.ctx.beginPath(),s===3?this.formatPath(c):this.formatPath(u.slice(0,2)),L=r<3?r*3:r*2,y=r<3?r*2:r,s===3&&(L=r,y=r),S=!0,B<=L*2?S=!1:B<=L*2+y?(Q=B/(2*L+y),L*=Q,y*=Q):(x=Math.floor((B+y)/(L+y)),R=(B-x*L)/(x-1),Y=(B-(x+1)*L)/x,y=Y<=0||Math.abs(y-R)<Math.abs(y-Y)?R:Y),S&&(s===3?this.ctx.setLineDash([0,L+y]):this.ctx.setLineDash([L,y])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=et(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(u[0])&&(Z=u[3],$=u[0],this.ctx.beginPath(),this.formatPath([new NA(Z.end.x,Z.end.y),new NA($.start.x,$.start.y)]),this.ctx.stroke()),Wt(u[1])&&(Z=u[1],$=u[2],this.ctx.beginPath(),this.formatPath([new NA(Z.end.x,Z.end.y),new NA($.start.x,$.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return Qt(this,void 0,void 0,function(){var r;return gt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=et(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=up(e),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(Wh),Qp=function(t){return t instanceof Ih||t instanceof xh?!0:t instanceof Vu&&t.type!==vo&&t.type!==wo},Fp=function(t,A){switch(t){case 0:return Qo(A);case 2:return np(A);case 1:default:return Fo(A)}},Up=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},yp=["-apple-system","system-ui"],bp=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return yp.indexOf(A)===-1}):t},Lp=function(t){lr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return A.prototype.render=function(e){return Qt(this,void 0,void 0,function(){var r,n;return gt(this,function(i){switch(i.label){case 0:return r=Qu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Ep(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=et(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(Wh),Ep=function(t){return new Promise(function(A,e){var r=new Image;r.onload=function(){A(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},xp=function(){function t(A){var e=A.id,r=A.enabled;this.id=e,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ss([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ss([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ss([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ss([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),Ip=function(){function t(A,e){var r;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new xp({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new zd(this,A)}return t.instanceCount=1,t}(),Jh=function(t,A){return A===void 0&&(A={}),Hp(t,A)};typeof window<"u"&&kh.setContext(window);var Hp=function(t,A){return Qt(void 0,void 0,void 0,function(){var e,r,n,i,s,c,u,h,g,d,w,B,L,y,S,Q,x,R,Y,Z,X,$,X,P,q,oA,I,H,K,M,uA,iA,cA,eA,lA,BA,UA,F,_,T;return gt(this,function(k){switch(k.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(r=e.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(q=A.imageTimeout)!==null&&q!==void 0?q:15e3,proxy:A.proxy,useCORS:(oA=A.useCORS)!==null&&oA!==void 0?oA:!1},i=su({logging:(I=A.logging)!==null&&I!==void 0?I:!0,cache:A.cache},n),s={windowWidth:(H=A.windowWidth)!==null&&H!==void 0?H:r.innerWidth,windowHeight:(K=A.windowHeight)!==null&&K!==void 0?K:r.innerHeight,scrollX:(M=A.scrollX)!==null&&M!==void 0?M:r.pageXOffset,scrollY:(uA=A.scrollY)!==null&&uA!==void 0?uA:r.pageYOffset},c=new qr(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),u=new Ip(i,c),h=(iA=A.foreignObjectRendering)!==null&&iA!==void 0?iA:!1,g={allowTaint:(cA=A.allowTaint)!==null&&cA!==void 0?cA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:h,copyStyles:h},u.logger.debug("Starting document clone with size "+c.width+"x"+c.height+" scrolled to "+-c.left+","+-c.top),d=new mf(u,t,g),w=d.clonedReferenceElement,w?[4,d.toIFrame(e,c)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=k.sent(),L=qu(w)||Nd(w)?cB(w.ownerDocument):Lo(u,w),y=L.width,S=L.height,Q=L.left,x=L.top,R=Sp(u,w,A.backgroundColor),Y={canvas:A.canvas,backgroundColor:R,scale:(lA=(eA=A.scale)!==null&&eA!==void 0?eA:r.devicePixelRatio)!==null&&lA!==void 0?lA:1,x:((BA=A.x)!==null&&BA!==void 0?BA:0)+Q,y:((UA=A.y)!==null&&UA!==void 0?UA:0)+x,width:(F=A.width)!==null&&F!==void 0?F:Math.ceil(y),height:(_=A.height)!==null&&_!==void 0?_:Math.ceil(S)},h?(u.logger.debug("Document cloned, using foreign object rendering"),X=new Lp(u,Y),[4,X.render(w)]):[3,3];case 2:return Z=k.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+Q+","+x+" with size "+y+"x"+S+" using computed rendering"),u.logger.debug("Starting DOM parsing"),$=Nh(u,w),R===$.styles.backgroundColor&&($.styles.backgroundColor=Vr.TRANSPARENT),u.logger.debug("Starting renderer for element at "+Y.x+","+Y.y+" with size "+Y.width+"x"+Y.height),X=new Cp(u,Y),[4,X.render($)];case 4:Z=k.sent(),k.label=5;case 5:return(!((T=A.removeContainer)!==null&&T!==void 0)||T)&&(mf.destroy(B)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,Z]}})})},Sp=function(t,A,e){var r=A.ownerDocument,n=r.documentElement?Ha(t,getComputedStyle(r.documentElement).backgroundColor):Vr.TRANSPARENT,i=r.body?Ha(t,getComputedStyle(r.body).backgroundColor):Vr.TRANSPARENT,s=typeof e=="string"?Ha(t,e):e===null?Vr.TRANSPARENT:4294967295;return A===r.documentElement?wn(n)?wn(i)?s:i:n:s};const Np=Object.freeze(Object.defineProperty({__proto__:null,default:Jh},Symbol.toStringTag,{value:"Module"}));var pt=Uint8Array,Pt=Uint16Array,Wu=Int32Array,Po=new pt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Oo=new pt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),xu=new pt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xh=function(t,A){for(var e=new Pt(31),r=0;r<31;++r)e[r]=A+=1<<t[r-1];for(var n=new Wu(e[30]),r=1;r<30;++r)for(var i=e[r];i<e[r+1];++i)n[i]=i-e[r]<<5|r;return{b:e,r:n}},zh=Xh(Po,2),Yh=zh.b,Iu=zh.r;Yh[28]=258,Iu[258]=28;var Zh=Xh(Oo,0),_p=Zh.b,yf=Zh.r,Hu=new Pt(32768);for(var Le=0;Le<32768;++Le){var on=(Le&43690)>>1|(Le&21845)<<1;on=(on&52428)>>2|(on&13107)<<2,on=(on&61680)>>4|(on&3855)<<4,Hu[Le]=((on&65280)>>8|(on&255)<<8)>>1}var Lr=function(t,A,e){for(var r=t.length,n=0,i=new Pt(A);n<r;++n)t[n]&&++i[t[n]-1];var s=new Pt(A);for(n=1;n<A;++n)s[n]=s[n-1]+i[n-1]<<1;var c;if(e){c=new Pt(1<<A);var u=15-A;for(n=0;n<r;++n)if(t[n])for(var h=n<<4|t[n],g=A-t[n],d=s[t[n]-1]++<<g,w=d|(1<<g)-1;d<=w;++d)c[Hu[d]>>u]=h}else for(c=new Pt(r),n=0;n<r;++n)t[n]&&(c[n]=Hu[s[t[n]-1]++]>>15-t[n]);return c},mn=new pt(288);for(var Le=0;Le<144;++Le)mn[Le]=8;for(var Le=144;Le<256;++Le)mn[Le]=9;for(var Le=256;Le<280;++Le)mn[Le]=7;for(var Le=280;Le<288;++Le)mn[Le]=8;var Ma=new pt(32);for(var Le=0;Le<32;++Le)Ma[Le]=5;var Dp=Lr(mn,9,0),Tp=Lr(mn,9,1),Pp=Lr(Ma,5,0),Op=Lr(Ma,5,1),zc=function(t){for(var A=t[0],e=1;e<t.length;++e)t[e]>A&&(A=t[e]);return A},sr=function(t,A,e){var r=A/8|0;return(t[r]|t[r+1]<<8)>>(A&7)&e},Yc=function(t,A){var e=A/8|0;return(t[e]|t[e+1]<<8|t[e+2]<<16)>>(A&7)},Ju=function(t){return(t+7)/8|0},$h=function(t,A,e){return(A==null||A<0)&&(A=0),(e==null||e>t.length)&&(e=t.length),new pt(t.subarray(A,e))},Mp=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ur=function(t,A,e){var r=new Error(A||Mp[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,ur),!e)throw r;return r},Kp=function(t,A,e,r){var n=t.length,i=r?r.length:0;if(!n||A.f&&!A.l)return e||new pt(0);var s=!e,c=s||A.i!=2,u=A.i;s&&(e=new pt(n*3));var h=function(QA){var IA=e.length;if(QA>IA){var LA=new pt(Math.max(IA*2,QA));LA.set(e),e=LA}},g=A.f||0,d=A.p||0,w=A.b||0,B=A.l,L=A.d,y=A.m,S=A.n,Q=n*8;do{if(!B){g=sr(t,d,1);var x=sr(t,d+1,3);if(d+=3,x)if(x==1)B=Tp,L=Op,y=9,S=5;else if(x==2){var $=sr(t,d,31)+257,X=sr(t,d+10,15)+4,P=$+sr(t,d+5,31)+1;d+=14;for(var q=new pt(P),oA=new pt(19),I=0;I<X;++I)oA[xu[I]]=sr(t,d+I*3,7);d+=X*3;for(var H=zc(oA),K=(1<<H)-1,M=Lr(oA,H,1),I=0;I<P;){var uA=M[sr(t,d,K)];d+=uA&15;var R=uA>>4;if(R<16)q[I++]=R;else{var iA=0,cA=0;for(R==16?(cA=3+sr(t,d,3),d+=2,iA=q[I-1]):R==17?(cA=3+sr(t,d,7),d+=3):R==18&&(cA=11+sr(t,d,127),d+=7);cA--;)q[I++]=iA}}var eA=q.subarray(0,$),lA=q.subarray($);y=zc(eA),S=zc(lA),B=Lr(eA,y,1),L=Lr(lA,S,1)}else ur(1);else{var R=Ju(d)+4,Y=t[R-4]|t[R-3]<<8,Z=R+Y;if(Z>n){u&&ur(0);break}c&&h(w+Y),e.set(t.subarray(R,Z),w),A.b=w+=Y,A.p=d=Z*8,A.f=g;continue}if(d>Q){u&&ur(0);break}}c&&h(w+131072);for(var BA=(1<<y)-1,UA=(1<<S)-1,F=d;;F=d){var iA=B[Yc(t,d)&BA],_=iA>>4;if(d+=iA&15,d>Q){u&&ur(0);break}if(iA||ur(2),_<256)e[w++]=_;else if(_==256){F=d,B=null;break}else{var T=_-254;if(_>264){var I=_-257,k=Po[I];T=sr(t,d,(1<<k)-1)+Yh[I],d+=k}var J=L[Yc(t,d)&UA],nA=J>>4;J||ur(3),d+=J&15;var lA=_p[nA];if(nA>3){var k=Oo[nA];lA+=Yc(t,d)&(1<<k)-1,d+=k}if(d>Q){u&&ur(0);break}c&&h(w+131072);var aA=w+T;if(w<lA){var sA=i-lA,FA=Math.min(lA,aA);for(sA+w<0&&ur(3);w<FA;++w)e[w]=r[sA+w]}for(;w<aA;++w)e[w]=e[w-lA]}}A.l=B,A.p=F,A.b=w,A.f=g,B&&(g=1,A.m=y,A.d=L,A.n=S)}while(!g);return w!=e.length&&s?$h(e,0,w):e.subarray(0,w)},Gr=function(t,A,e){e<<=A&7;var r=A/8|0;t[r]|=e,t[r+1]|=e>>8},Ca=function(t,A,e){e<<=A&7;var r=A/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Zc=function(t,A){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var n=e.length,i=e.slice();if(!n)return{t:e0,l:0};if(n==1){var s=new pt(e[0].s+1);return s[e[0].s]=1,{t:s,l:1}}e.sort(function(Z,$){return Z.f-$.f}),e.push({s:-1,f:25001});var c=e[0],u=e[1],h=0,g=1,d=2;for(e[0]={s:-1,f:c.f+u.f,l:c,r:u};g!=n-1;)c=e[e[h].f<e[d].f?h++:d++],u=e[h!=g&&e[h].f<e[d].f?h++:d++],e[g++]={s:-1,f:c.f+u.f,l:c,r:u};for(var w=i[0].s,r=1;r<n;++r)i[r].s>w&&(w=i[r].s);var B=new Pt(w+1),L=Su(e[g-1],B,0);if(L>A){var r=0,y=0,S=L-A,Q=1<<S;for(i.sort(function($,X){return B[X.s]-B[$.s]||$.f-X.f});r<n;++r){var x=i[r].s;if(B[x]>A)y+=Q-(1<<L-B[x]),B[x]=A;else break}for(y>>=S;y>0;){var R=i[r].s;B[R]<A?y-=1<<A-B[R]++-1:++r}for(;r>=0&&y;--r){var Y=i[r].s;B[Y]==A&&(--B[Y],++y)}L=A}return{t:new pt(B),l:L}},Su=function(t,A,e){return t.s==-1?Math.max(Su(t.l,A,e+1),Su(t.r,A,e+1)):A[t.s]=e},bf=function(t){for(var A=t.length;A&&!t[--A];);for(var e=new Pt(++A),r=0,n=t[0],i=1,s=function(u){e[r++]=u},c=1;c<=A;++c)if(t[c]==n&&c!=A)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=t[c]}return{c:e.subarray(0,r),n:A}},Qa=function(t,A){for(var e=0,r=0;r<A.length;++r)e+=t[r]*A[r];return e},A0=function(t,A,e){var r=e.length,n=Ju(A+2);t[n]=r&255,t[n+1]=r>>8,t[n+2]=t[n]^255,t[n+3]=t[n+1]^255;for(var i=0;i<r;++i)t[n+i+4]=e[i];return(n+4+r)*8},Lf=function(t,A,e,r,n,i,s,c,u,h,g){Gr(A,g++,e),++n[256];for(var d=Zc(n,15),w=d.t,B=d.l,L=Zc(i,15),y=L.t,S=L.l,Q=bf(w),x=Q.c,R=Q.n,Y=bf(y),Z=Y.c,$=Y.n,X=new Pt(19),P=0;P<x.length;++P)++X[x[P]&31];for(var P=0;P<Z.length;++P)++X[Z[P]&31];for(var q=Zc(X,7),oA=q.t,I=q.l,H=19;H>4&&!oA[xu[H-1]];--H);var K=h+5<<3,M=Qa(n,mn)+Qa(i,Ma)+s,uA=Qa(n,w)+Qa(i,y)+s+14+3*H+Qa(X,oA)+2*X[16]+3*X[17]+7*X[18];if(u>=0&&K<=M&&K<=uA)return A0(A,g,t.subarray(u,u+h));var iA,cA,eA,lA;if(Gr(A,g,1+(uA<M)),g+=2,uA<M){iA=Lr(w,B,0),cA=w,eA=Lr(y,S,0),lA=y;var BA=Lr(oA,I,0);Gr(A,g,R-257),Gr(A,g+5,$-1),Gr(A,g+10,H-4),g+=14;for(var P=0;P<H;++P)Gr(A,g+3*P,oA[xu[P]]);g+=3*H;for(var UA=[x,Z],F=0;F<2;++F)for(var _=UA[F],P=0;P<_.length;++P){var T=_[P]&31;Gr(A,g,BA[T]),g+=oA[T],T>15&&(Gr(A,g,_[P]>>5&127),g+=_[P]>>12)}}else iA=Dp,cA=mn,eA=Pp,lA=Ma;for(var P=0;P<c;++P){var k=r[P];if(k>255){var T=k>>18&31;Ca(A,g,iA[T+257]),g+=cA[T+257],T>7&&(Gr(A,g,k>>23&31),g+=Po[T]);var J=k&31;Ca(A,g,eA[J]),g+=lA[J],J>3&&(Ca(A,g,k>>5&8191),g+=Oo[J])}else Ca(A,g,iA[k]),g+=cA[k]}return Ca(A,g,iA[256]),g+cA[256]},kp=new Wu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),e0=new pt(0),Rp=function(t,A,e,r,n,i){var s=i.z||t.length,c=new pt(r+s+5*(1+Math.ceil(s/7e3))+n),u=c.subarray(r,c.length-n),h=i.l,g=(i.r||0)&7;if(A){g&&(u[0]=i.r>>3);for(var d=kp[A-1],w=d>>13,B=d&8191,L=(1<<e)-1,y=i.p||new Pt(32768),S=i.h||new Pt(L+1),Q=Math.ceil(e/3),x=2*Q,R=function(GA){return(t[GA]^t[GA+1]<<Q^t[GA+2]<<x)&L},Y=new Wu(25e3),Z=new Pt(288),$=new Pt(32),X=0,P=0,q=i.i||0,oA=0,I=i.w||0,H=0;q+2<s;++q){var K=R(q),M=q&32767,uA=S[K];if(y[M]=uA,S[K]=M,I<=q){var iA=s-q;if((X>7e3||oA>24576)&&(iA>423||!h)){g=Lf(t,u,0,Y,Z,$,P,oA,H,q-H,g),oA=X=P=0,H=q;for(var cA=0;cA<286;++cA)Z[cA]=0;for(var cA=0;cA<30;++cA)$[cA]=0}var eA=2,lA=0,BA=B,UA=M-uA&32767;if(iA>2&&K==R(q-UA))for(var F=Math.min(w,iA)-1,_=Math.min(32767,q),T=Math.min(258,iA);UA<=_&&--BA&&M!=uA;){if(t[q+eA]==t[q+eA-UA]){for(var k=0;k<T&&t[q+k]==t[q+k-UA];++k);if(k>eA){if(eA=k,lA=UA,k>F)break;for(var J=Math.min(UA,k-2),nA=0,cA=0;cA<J;++cA){var aA=q-UA+cA&32767,sA=y[aA],FA=aA-sA&32767;FA>nA&&(nA=FA,uA=aA)}}}M=uA,uA=y[M],UA+=M-uA&32767}if(lA){Y[oA++]=268435456|Iu[eA]<<18|yf[lA];var QA=Iu[eA]&31,IA=yf[lA]&31;P+=Po[QA]+Oo[IA],++Z[257+QA],++$[IA],I=q+eA,++X}else Y[oA++]=t[q],++Z[t[q]]}}for(q=Math.max(q,I);q<s;++q)Y[oA++]=t[q],++Z[t[q]];g=Lf(t,u,h,Y,Z,$,P,oA,H,q-H,g),h||(i.r=g&7|u[g/8|0]<<3,g-=7,i.h=S,i.p=y,i.i=q,i.w=I)}else{for(var q=i.w||0;q<s+h;q+=65535){var LA=q+65535;LA>=s&&(u[g/8|0]=h,LA=s),g=A0(u,g+1,t.subarray(q,LA))}i.i=s}return $h(c,0,r+Ju(g)+n)},t0=function(){var t=1,A=0;return{p:function(e){for(var r=t,n=A,i=e.length|0,s=0;s!=i;){for(var c=Math.min(s+2655,i);s<c;++s)n+=r+=e[s];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}t=r,A=n},d:function(){return t%=65521,A%=65521,(t&255)<<24|(t&65280)<<8|(A&255)<<8|A>>8}}},jp=function(t,A,e,r,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),s=new pt(i.length+t.length);s.set(i),s.set(t,i.length),t=s,n.w=i.length}return Rp(t,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+A.mem,e,r,n)},r0=function(t,A,e){for(;e;++A)t[A]=e,e>>>=8},Gp=function(t,A){var e=A.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(A.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,A.dictionary){var n=t0();n.p(A.dictionary),r0(t,2,n.d())}},Vp=function(t,A){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&ur(6,"invalid zlib data"),(t[1]>>5&1)==+!A&&ur(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function Nu(t,A){A||(A={});var e=t0();e.p(t);var r=jp(t,A,A.dictionary?6:2,4);return Gp(r,A),r0(r,r.length-4,e.d()),r}function qp(t,A){return Kp(t.subarray(Vp(t,A&&A.dictionary),-4),{i:2},A&&A.out,A&&A.dictionary)}var Wp=typeof TextDecoder<"u"&&new TextDecoder,Jp=0;try{Wp.decode(e0,{stream:!0}),Jp=1}catch{}var qA=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function $c(){qA.console&&typeof qA.console.log=="function"&&qA.console.log.apply(qA.console,arguments)}var Qe={log:$c,warn:function(t){qA.console&&(typeof qA.console.warn=="function"?qA.console.warn.apply(qA.console,arguments):$c.call(null,arguments))},error:function(t){qA.console&&(typeof qA.console.error=="function"?qA.console.error.apply(qA.console,arguments):$c(t))}};function Au(t,A,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Tn(r.response,A,e)},r.onerror=function(){Qe.error("could not download file")},r.send()}function Ef(t){var A=new XMLHttpRequest;A.open("HEAD",t,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function eo(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(A)}}var Da,_u,Tn=qA.saveAs||((typeof window>"u"?"undefined":Fe(window))!=="object"||window!==qA?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,A,e){var r=qA.URL||qA.webkitURL,n=document.createElement("a");A=A||t.name||"download",n.download=A,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?Ef(n.href)?Au(t,A,e):eo(n,n.target="_blank"):eo(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){eo(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,A,e){if(A=A||t.name||"download",typeof t=="string")if(Ef(t))Au(t,A,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){eo(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Fe(i)!=="object"&&(Qe.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob([String.fromCharCode(65279),n],{type:n.type}):n}(t,e),A)}:function(t,A,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Au(t,A,e);var n=t.type==="application/octet-stream",i=/constructor/i.test(qA.HTMLElement)||qA.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":Fe(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var g=c.result;g=s?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},c.readAsDataURL(t)}else{var u=qA.URL||qA.webkitURL,h=u.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function n0(t){var A;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 e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,s=n.exec(t);s&&(A=i(s),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?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 c=this.r.toString(16),u=this.g.toString(16),h=this.b.toString(16);return c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),h.length==1&&(h="0"+h),"#"+c+u+h}}/**
 * @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 eu(t,A){var e=t[0],r=t[1],n=t[2],i=t[3];e=lt(e,r,n,i,A[0],7,-680876936),i=lt(i,e,r,n,A[1],12,-389564586),n=lt(n,i,e,r,A[2],17,606105819),r=lt(r,n,i,e,A[3],22,-1044525330),e=lt(e,r,n,i,A[4],7,-176418897),i=lt(i,e,r,n,A[5],12,1200080426),n=lt(n,i,e,r,A[6],17,-1473231341),r=lt(r,n,i,e,A[7],22,-45705983),e=lt(e,r,n,i,A[8],7,1770035416),i=lt(i,e,r,n,A[9],12,-1958414417),n=lt(n,i,e,r,A[10],17,-42063),r=lt(r,n,i,e,A[11],22,-1990404162),e=lt(e,r,n,i,A[12],7,1804603682),i=lt(i,e,r,n,A[13],12,-40341101),n=lt(n,i,e,r,A[14],17,-1502002290),e=ft(e,r=lt(r,n,i,e,A[15],22,1236535329),n,i,A[1],5,-165796510),i=ft(i,e,r,n,A[6],9,-1069501632),n=ft(n,i,e,r,A[11],14,643717713),r=ft(r,n,i,e,A[0],20,-373897302),e=ft(e,r,n,i,A[5],5,-701558691),i=ft(i,e,r,n,A[10],9,38016083),n=ft(n,i,e,r,A[15],14,-660478335),r=ft(r,n,i,e,A[4],20,-405537848),e=ft(e,r,n,i,A[9],5,568446438),i=ft(i,e,r,n,A[14],9,-1019803690),n=ft(n,i,e,r,A[3],14,-187363961),r=ft(r,n,i,e,A[8],20,1163531501),e=ft(e,r,n,i,A[13],5,-1444681467),i=ft(i,e,r,n,A[2],9,-51403784),n=ft(n,i,e,r,A[7],14,1735328473),e=ht(e,r=ft(r,n,i,e,A[12],20,-1926607734),n,i,A[5],4,-378558),i=ht(i,e,r,n,A[8],11,-2022574463),n=ht(n,i,e,r,A[11],16,1839030562),r=ht(r,n,i,e,A[14],23,-35309556),e=ht(e,r,n,i,A[1],4,-1530992060),i=ht(i,e,r,n,A[4],11,1272893353),n=ht(n,i,e,r,A[7],16,-155497632),r=ht(r,n,i,e,A[10],23,-1094730640),e=ht(e,r,n,i,A[13],4,681279174),i=ht(i,e,r,n,A[0],11,-358537222),n=ht(n,i,e,r,A[3],16,-722521979),r=ht(r,n,i,e,A[6],23,76029189),e=ht(e,r,n,i,A[9],4,-640364487),i=ht(i,e,r,n,A[12],11,-421815835),n=ht(n,i,e,r,A[15],16,530742520),e=Bt(e,r=ht(r,n,i,e,A[2],23,-995338651),n,i,A[0],6,-198630844),i=Bt(i,e,r,n,A[7],10,1126891415),n=Bt(n,i,e,r,A[14],15,-1416354905),r=Bt(r,n,i,e,A[5],21,-57434055),e=Bt(e,r,n,i,A[12],6,1700485571),i=Bt(i,e,r,n,A[3],10,-1894986606),n=Bt(n,i,e,r,A[10],15,-1051523),r=Bt(r,n,i,e,A[1],21,-2054922799),e=Bt(e,r,n,i,A[8],6,1873313359),i=Bt(i,e,r,n,A[15],10,-30611744),n=Bt(n,i,e,r,A[6],15,-1560198380),r=Bt(r,n,i,e,A[13],21,1309151649),e=Bt(e,r,n,i,A[4],6,-145523070),i=Bt(i,e,r,n,A[11],10,-1120210379),n=Bt(n,i,e,r,A[2],15,718787259),r=Bt(r,n,i,e,A[9],21,-343485551),t[0]=dn(e,t[0]),t[1]=dn(r,t[1]),t[2]=dn(n,t[2]),t[3]=dn(i,t[3])}function Mo(t,A,e,r,n,i){return A=dn(dn(A,t),dn(r,i)),dn(A<<n|A>>>32-n,e)}function lt(t,A,e,r,n,i,s){return Mo(A&e|~A&r,t,A,n,i,s)}function ft(t,A,e,r,n,i,s){return Mo(A&r|e&~r,t,A,n,i,s)}function ht(t,A,e,r,n,i,s){return Mo(A^e^r,t,A,n,i,s)}function Bt(t,A,e,r,n,i,s){return Mo(e^(A|~r),t,A,n,i,s)}function i0(t){var A,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=t.length;A+=64)eu(r,Xp(t.substring(A-64,A)));t=t.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<t.length;A++)n[A>>2]|=t.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(eu(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*e,eu(r,n),r}function Xp(t){var A,e=[];for(A=0;A<64;A+=4)e[A>>2]=t.charCodeAt(A)+(t.charCodeAt(A+1)<<8)+(t.charCodeAt(A+2)<<16)+(t.charCodeAt(A+3)<<24);return e}Da=qA.atob.bind(qA),_u=qA.btoa.bind(qA);var xf="0123456789abcdef".split("");function zp(t){for(var A="",e=0;e<4;e++)A+=xf[t>>8*e+4&15]+xf[t>>8*e&15];return A}function Yp(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Du(t){return i0(t).map(Yp).join("")}var Zp=function(t){for(var A=0;A<t.length;A++)t[A]=zp(t[A]);return t.join("")}(i0("hello"))!="5d41402abc4b2a76b9719d911017c592";function dn(t,A){if(Zp){var e=(65535&t)+(65535&A);return(t>>16)+(A>>16)+(e>>16)<<16|65535&e}return t+A&4294967295}/**
 * @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 Tu(t,A){var e,r,n,i;if(t!==e){for(var s=(n=t,i=1+(256/t.length>>0),new Array(i+1).join(n)),c=[],u=0;u<256;u++)c[u]=u;var h=0;for(u=0;u<256;u++){var g=c[u];h=(h+g+s.charCodeAt(u))%256,c[u]=c[h],c[h]=g}e=t,r=c}else c=r;var d=A.length,w=0,B=0,L="";for(u=0;u<d;u++)B=(B+(g=c[w=(w+1)%256]))%256,c[w]=c[B],c[B]=g,s=c[(c[w]+c[B])%256],L+=String.fromCharCode(A.charCodeAt(u)^s);return L}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var If={print:4,modify:8,copy:16,"annot-forms":32};function xi(t,A,e,r){this.v=1,this.r=2;var n=192;t.forEach(function(c){if(If.perm!==void 0)throw new Error("Invalid permission: "+c);n+=If[c]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(A+this.padding).substr(0,32),s=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=Du(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Tu(this.encryptionKey,this.padding)}function Ii(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var A="",e=t.length,r=0;r<e;r++){var n=t.charCodeAt(r);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=t[r]}return A}function Hf(t){if(Fe(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(e)||(A[e]={});var i=Math.random().toString(35);return A[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in A)if(A[r][e])return delete A[r][e],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(e){if(A.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[e]){var s=A[e][i];try{s[0].apply(t,r)}catch(c){qA.console&&Qe.error("jsPDF PubSub Error",c.message,c)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function yo(t){if(!(this instanceof yo))return new yo(t);var A="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&A.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function a0(t,A){this.gState=t,this.matrix=A,this.id="",this.objectNumber=-1}function On(t,A,e,r,n){if(!(this instanceof On))return new On(t,A,e,r,n);this.type=t==="axial"?2:3,this.coords=A,this.colors=e,a0.call(this,r,n)}function Si(t,A,e,r,n){if(!(this instanceof Si))return new Si(t,A,e,r,n);this.boundingBox=t,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,a0.call(this,r,n)}function VA(t){var A,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],c=1,u=16,h="S",g=null;Fe(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(g=t.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),c=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(A=t.precision),t.floatPrecision!==void 0&&(u=t.floatPrecision),h=t.defaultPathOperation||"S"),s=t.filters||(i===!0?["FlateEncode"]:s),r=r||"mm",e=(""+(e||"P")).toLowerCase();var d=t.putOnlyUsedFonts||!1,w={},B={internal:{},__private__:{}};B.__private__.PubSub=Hf;var L="1.3",y=B.__private__.getPdfVersion=function(){return L};B.__private__.setPdfVersion=function(l){L=l};var S={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]};B.__private__.getPageFormats=function(){return S};var Q=B.__private__.getPageFormat=function(l){return S[l]};n=n||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},R=x.COMPAT;function Y(){this.saveGraphicsState(),O(new jA(SA,0,0,-SA,0,Xr()*SA).toString()+" cm"),this.setFontSize(this.getFontSize()/SA),h="n",R=x.ADVANCED}function Z(){this.restoreGraphicsState(),h="S",R=x.COMPAT}var $=B.__private__.combineFontStyleAndFontWeight=function(l,m){if(l=="bold"&&m=="normal"||l=="bold"&&m==400||l=="normal"&&m=="italic"||l=="bold"&&m=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return m&&(l=m==400||m==="normal"?l==="italic"?"italic":"normal":m!=700&&m!=="bold"||l!=="normal"?(m==700?"bold":m)+""+l:"bold"),l};B.advancedAPI=function(l){var m=R===x.COMPAT;return m&&Y.call(this),typeof l!="function"||(l(this),m&&Z.call(this)),this},B.compatAPI=function(l){var m=R===x.ADVANCED;return m&&Z.call(this),typeof l!="function"||(l(this),m&&Y.call(this)),this},B.isAdvancedAPI=function(){return R===x.ADVANCED};var X,P=function(l){if(R!==x.ADVANCED)throw new Error(l+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},q=B.roundToPrecision=B.__private__.roundToPrecision=function(l,m){var D=A||m;if(isNaN(l)||isNaN(D))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return l.toFixed(D).replace(/0+$/,"")};X=B.hpf=B.__private__.hpf=typeof u=="number"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return q(l,u)}:u==="smart"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return q(l,l>-1&&l<1?16:5)}:function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return q(l,16)};var oA=B.f2=B.__private__.f2=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f2");return q(l,2)},I=B.__private__.f3=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f3");return q(l,3)},H=B.scale=B.__private__.scale=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.scale");return R===x.COMPAT?l*SA:R===x.ADVANCED?l:void 0},K=function(l){return R===x.COMPAT?Xr()-l:R===x.ADVANCED?l:void 0},M=function(l){return H(K(l))};B.__private__.setPrecision=B.setPrecision=function(l){typeof parseInt(l,10)=="number"&&(A=parseInt(l,10))};var uA,iA="00000000000000000000000000000000",cA=B.__private__.getFileId=function(){return iA},eA=B.__private__.setFileId=function(l){return iA=l!==void 0&&/^[a-fA-F0-9]{32}$/.test(l)?l.toUpperCase():iA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(ct=new xi(g.userPermissions,g.userPassword,g.ownerPassword,iA)),iA};B.setFileId=function(l){return eA(l),this},B.getFileId=function(){return cA()};var lA=B.__private__.convertDateToPDFDate=function(l){var m=l.getTimezoneOffset(),D=m<0?"+":"-",j=Math.floor(Math.abs(m/60)),AA=Math.abs(m%60),hA=[D,T(j),"'",T(AA),"'"].join("");return["D:",l.getFullYear(),T(l.getMonth()+1),T(l.getDate()),T(l.getHours()),T(l.getMinutes()),T(l.getSeconds()),hA].join("")},BA=B.__private__.convertPDFDateToDate=function(l){var m=parseInt(l.substr(2,4),10),D=parseInt(l.substr(6,2),10)-1,j=parseInt(l.substr(8,2),10),AA=parseInt(l.substr(10,2),10),hA=parseInt(l.substr(12,2),10),mA=parseInt(l.substr(14,2),10);return new Date(m,D,j,AA,hA,mA,0)},UA=B.__private__.setCreationDate=function(l){var m;if(l===void 0&&(l=new Date),l instanceof Date)m=lA(l);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(l))throw new Error("Invalid argument passed to jsPDF.setCreationDate");m=l}return uA=m},F=B.__private__.getCreationDate=function(l){var m=uA;return l==="jsDate"&&(m=BA(uA)),m};B.setCreationDate=function(l){return UA(l),this},B.getCreationDate=function(l){return F(l)};var _,T=B.__private__.padd2=function(l){return("0"+parseInt(l)).slice(-2)},k=B.__private__.padd2Hex=function(l){return("00"+(l=l.toString())).substr(l.length)},J=0,nA=[],aA=[],sA=0,FA=[],QA=[],IA=!1,LA=aA,GA=function(){J=0,sA=0,aA=[],nA=[],FA=[],Sr=Ge(),$t=Ge()};B.__private__.setCustomOutputDestination=function(l){IA=!0,LA=l};var gA=function(l){IA||(LA=l)};B.__private__.resetCustomOutputDestination=function(){IA=!1,LA=aA};var O=B.__private__.out=function(l){return l=l.toString(),sA+=l.length+1,LA.push(l),LA},$A=B.__private__.write=function(l){return O(arguments.length===1?l.toString():Array.prototype.join.call(arguments," "))},MA=B.__private__.getArrayBuffer=function(l){for(var m=l.length,D=new ArrayBuffer(m),j=new Uint8Array(D);m--;)j[m]=l.charCodeAt(m);return D},CA=[["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]];B.__private__.getStandardFonts=function(){return CA};var yA=t.fontSize||16;B.__private__.setFontSize=B.setFontSize=function(l){return yA=R===x.ADVANCED?l/SA:l,this};var HA,xA=B.__private__.getFontSize=B.getFontSize=function(){return R===x.COMPAT?yA:yA*SA},KA=t.R2L||!1;B.__private__.setR2L=B.setR2L=function(l){return KA=l,this},B.__private__.getR2L=B.getR2L=function(){return KA};var XA,te=B.__private__.setZoomMode=function(l){var m=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(l))HA=l;else if(isNaN(l)){if(m.indexOf(l)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+l+'" is not recognized.');HA=l}else HA=parseInt(l,10)};B.__private__.getZoomMode=function(){return HA};var re,oe=B.__private__.setPageMode=function(l){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(l)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+l+'" is not recognized.');XA=l};B.__private__.getPageMode=function(){return XA};var pe=B.__private__.setLayoutMode=function(l){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(l)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+l+'" is not recognized.');re=l};B.__private__.getLayoutMode=function(){return re},B.__private__.setDisplayMode=B.setDisplayMode=function(l,m,D){return te(l),pe(m),oe(D),this};var WA={title:"",subject:"",author:"",keywords:"",creator:""};B.__private__.getDocumentProperty=function(l){if(Object.keys(WA).indexOf(l)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return WA[l]},B.__private__.getDocumentProperties=function(){return WA},B.__private__.setDocumentProperties=B.setProperties=B.setDocumentProperties=function(l){for(var m in WA)WA.hasOwnProperty(m)&&l[m]&&(WA[m]=l[m]);return this},B.__private__.setDocumentProperty=function(l,m){if(Object.keys(WA).indexOf(l)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return WA[l]=m};var ne,SA,ot,ue,zt,me={},Ee={},Br=[],fe={},Qn={},He={},Yt={},Hr=null,Se=0,zA=[],he=new Hf(B),Fn=t.hotfixes||[],rt={},gr={},dr=[],jA=function l(m,D,j,AA,hA,mA){if(!(this instanceof l))return new l(m,D,j,AA,hA,mA);isNaN(m)&&(m=1),isNaN(D)&&(D=0),isNaN(j)&&(j=0),isNaN(AA)&&(AA=1),isNaN(hA)&&(hA=0),isNaN(mA)&&(mA=0),this._matrix=[m,D,j,AA,hA,mA]};Object.defineProperty(jA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(jA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(jA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(jA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(jA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(jA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(jA.prototype,"a",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(jA.prototype,"b",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(jA.prototype,"c",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(jA.prototype,"d",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(jA.prototype,"e",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(jA.prototype,"f",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(jA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(jA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(jA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(jA.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),jA.prototype.join=function(l){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(X).join(l)},jA.prototype.multiply=function(l){var m=l.sx*this.sx+l.shy*this.shx,D=l.sx*this.shy+l.shy*this.sy,j=l.shx*this.sx+l.sy*this.shx,AA=l.shx*this.shy+l.sy*this.sy,hA=l.tx*this.sx+l.ty*this.shx+this.tx,mA=l.tx*this.shy+l.ty*this.sy+this.ty;return new jA(m,D,j,AA,hA,mA)},jA.prototype.decompose=function(){var l=this.sx,m=this.shy,D=this.shx,j=this.sy,AA=this.tx,hA=this.ty,mA=Math.sqrt(l*l+m*m),_A=(l/=mA)*D+(m/=mA)*j;D-=l*_A,j-=m*_A;var kA=Math.sqrt(D*D+j*j);return _A/=kA,l*(j/=kA)<m*(D/=kA)&&(l=-l,m=-m,_A=-_A,mA=-mA),{scale:new jA(mA,0,0,kA,0,0),translate:new jA(1,0,0,1,AA,hA),rotate:new jA(l,m,-m,l,0,0),skew:new jA(1,0,_A,1,0,0)}},jA.prototype.toString=function(l){return this.join(" ")},jA.prototype.inversed=function(){var l=this.sx,m=this.shy,D=this.shx,j=this.sy,AA=this.tx,hA=this.ty,mA=1/(l*j-m*D),_A=j*mA,kA=-m*mA,Ae=-D*mA,YA=l*mA;return new jA(_A,kA,Ae,YA,-_A*AA-Ae*hA,-kA*AA-YA*hA)},jA.prototype.applyToPoint=function(l){var m=l.x*this.sx+l.y*this.shx+this.tx,D=l.x*this.shy+l.y*this.sy+this.ty;return new ri(m,D)},jA.prototype.applyToRectangle=function(l){var m=this.applyToPoint(l),D=this.applyToPoint(new ri(l.x+l.w,l.y+l.h));return new zi(m.x,m.y,D.x-m.x,D.y-m.y)},jA.prototype.clone=function(){var l=this.sx,m=this.shy,D=this.shx,j=this.sy,AA=this.tx,hA=this.ty;return new jA(l,m,D,j,AA,hA)},B.Matrix=jA;var Zt=B.matrixMult=function(l,m){return m.multiply(l)},pr=new jA(1,0,0,1,0,0);B.unitMatrix=B.identityMatrix=pr;var Ft=function(l,m){if(!Qn[l]){var D=(m instanceof On?"Sh":"P")+(Object.keys(fe).length+1).toString(10);m.id=D,Qn[l]=D,fe[D]=m,he.publish("addPattern",m)}};B.ShadingPattern=On,B.TilingPattern=Si,B.addShadingPattern=function(l,m){return P("addShadingPattern()"),Ft(l,m),this},B.beginTilingPattern=function(l){P("beginTilingPattern()"),as(l.boundingBox[0],l.boundingBox[1],l.boundingBox[2]-l.boundingBox[0],l.boundingBox[3]-l.boundingBox[1],l.matrix)},B.endTilingPattern=function(l,m){P("endTilingPattern()"),m.stream=QA[_].join(`
`),Ft(l,m),he.publish("endTilingPattern",m),dr.pop().restore()};var Xe=B.__private__.newObject=function(){var l=Ge();return Ht(l,!0),l},Ge=B.__private__.newObjectDeferred=function(){return J++,nA[J]=function(){return sA},J},Ht=function(l,m){return m=typeof m=="boolean"&&m,nA[l]=sA,m&&O(l+" 0 obj"),l},Gn=B.__private__.newAdditionalObject=function(){var l={objId:Ge(),content:""};return FA.push(l),l},Sr=Ge(),$t=Ge(),Ar=B.__private__.decodeColorString=function(l){var m=l.split(" ");if(m.length!==2||m[1]!=="g"&&m[1]!=="G")m.length===5&&(m[4]==="k"||m[4]==="K")&&(m=[(1-m[0])*(1-m[3]),(1-m[1])*(1-m[3]),(1-m[2])*(1-m[3]),"r"]);else{var D=parseFloat(m[0]);m=[D,D,D,"r"]}for(var j="#",AA=0;AA<3;AA++)j+=("0"+Math.floor(255*parseFloat(m[AA])).toString(16)).slice(-2);return j},er=B.__private__.encodeColorString=function(l){var m;typeof l=="string"&&(l={ch1:l});var D=l.ch1,j=l.ch2,AA=l.ch3,hA=l.ch4,mA=l.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof D=="string"&&D.charAt(0)!=="#"){var _A=new n0(D);if(_A.ok)D=_A.toHex();else if(!/^\d*\.?\d*$/.test(D))throw new Error('Invalid color "'+D+'" passed to jsPDF.encodeColorString.')}if(typeof D=="string"&&/^#[0-9A-Fa-f]{3}$/.test(D)&&(D="#"+D[1]+D[1]+D[2]+D[2]+D[3]+D[3]),typeof D=="string"&&/^#[0-9A-Fa-f]{6}$/.test(D)){var kA=parseInt(D.substr(1),16);D=kA>>16&255,j=kA>>8&255,AA=255&kA}if(j===void 0||hA===void 0&&D===j&&j===AA)if(typeof D=="string")m=D+" "+mA[0];else switch(l.precision){case 2:m=oA(D/255)+" "+mA[0];break;case 3:default:m=I(D/255)+" "+mA[0]}else if(hA===void 0||Fe(hA)==="object"){if(hA&&!isNaN(hA.a)&&hA.a===0)return m=["1.","1.","1.",mA[1]].join(" ");if(typeof D=="string")m=[D,j,AA,mA[1]].join(" ");else switch(l.precision){case 2:m=[oA(D/255),oA(j/255),oA(AA/255),mA[1]].join(" ");break;default:case 3:m=[I(D/255),I(j/255),I(AA/255),mA[1]].join(" ")}}else if(typeof D=="string")m=[D,j,AA,hA,mA[2]].join(" ");else switch(l.precision){case 2:m=[oA(D),oA(j),oA(AA),oA(hA),mA[2]].join(" ");break;case 3:default:m=[I(D),I(j),I(AA),I(hA),mA[2]].join(" ")}return m},wr=B.__private__.getFilters=function(){return s},Ot=B.__private__.putStream=function(l){var m=(l=l||{}).data||"",D=l.filters||wr(),j=l.alreadyAppliedFilters||[],AA=l.addLength1||!1,hA=m.length,mA=l.objectId,_A=function(ut){return ut};if(g!==null&&mA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(_A=ct.encryptor(mA,0));var kA={};D===!0&&(D=["FlateEncode"]);var Ae=l.additionalKeyValues||[],YA=(kA=VA.API.processDataByFilters!==void 0?VA.API.processDataByFilters(m,D):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(j)?j.join(" "):j.toString());if(kA.data.length!==0&&(Ae.push({key:"Length",value:kA.data.length}),AA===!0&&Ae.push({key:"Length1",value:hA})),YA.length!=0)if(YA.split("/").length-1==1)Ae.push({key:"Filter",value:YA});else{Ae.push({key:"Filter",value:"["+YA+"]"});for(var se=0;se<Ae.length;se+=1)if(Ae[se].key==="DecodeParms"){for(var Ie=[],Ne=0;Ne<kA.reverseChain.split("/").length-1;Ne+=1)Ie.push("null");Ie.push(Ae[se].value),Ae[se].value="["+Ie.join(" ")+"]"}}O("<<");for(var Ve=0;Ve<Ae.length;Ve++)O("/"+Ae[Ve].key+" "+Ae[Ve].value);O(">>"),kA.data.length!==0&&(O("stream"),O(_A(kA.data)),O("endstream"))},vr=B.__private__.putPage=function(l){var m=l.number,D=l.data,j=l.objId,AA=l.contentsObjId;Ht(j,!0),O("<</Type /Page"),O("/Parent "+l.rootDictionaryObjId+" 0 R"),O("/Resources "+l.resourceDictionaryObjId+" 0 R"),O("/MediaBox ["+parseFloat(X(l.mediaBox.bottomLeftX))+" "+parseFloat(X(l.mediaBox.bottomLeftY))+" "+X(l.mediaBox.topRightX)+" "+X(l.mediaBox.topRightY)+"]"),l.cropBox!==null&&O("/CropBox ["+X(l.cropBox.bottomLeftX)+" "+X(l.cropBox.bottomLeftY)+" "+X(l.cropBox.topRightX)+" "+X(l.cropBox.topRightY)+"]"),l.bleedBox!==null&&O("/BleedBox ["+X(l.bleedBox.bottomLeftX)+" "+X(l.bleedBox.bottomLeftY)+" "+X(l.bleedBox.topRightX)+" "+X(l.bleedBox.topRightY)+"]"),l.trimBox!==null&&O("/TrimBox ["+X(l.trimBox.bottomLeftX)+" "+X(l.trimBox.bottomLeftY)+" "+X(l.trimBox.topRightX)+" "+X(l.trimBox.topRightY)+"]"),l.artBox!==null&&O("/ArtBox ["+X(l.artBox.bottomLeftX)+" "+X(l.artBox.bottomLeftY)+" "+X(l.artBox.topRightX)+" "+X(l.artBox.topRightY)+"]"),typeof l.userUnit=="number"&&l.userUnit!==1&&O("/UserUnit "+l.userUnit),he.publish("putPage",{objId:j,pageContext:zA[m],pageNumber:m,page:D}),O("/Contents "+AA+" 0 R"),O(">>"),O("endobj");var hA=D.join(`
`);return R===x.ADVANCED&&(hA+=`
Q`),Ht(AA,!0),Ot({data:hA,filters:wr(),objectId:AA}),O("endobj"),j},Un=B.__private__.putPages=function(){var l,m,D=[];for(l=1;l<=Se;l++)zA[l].objId=Ge(),zA[l].contentsObjId=Ge();for(l=1;l<=Se;l++)D.push(vr({number:l,data:QA[l],objId:zA[l].objId,contentsObjId:zA[l].contentsObjId,mediaBox:zA[l].mediaBox,cropBox:zA[l].cropBox,bleedBox:zA[l].bleedBox,trimBox:zA[l].trimBox,artBox:zA[l].artBox,userUnit:zA[l].userUnit,rootDictionaryObjId:Sr,resourceDictionaryObjId:$t}));Ht(Sr,!0),O("<</Type /Pages");var j="/Kids [";for(m=0;m<Se;m++)j+=D[m]+" 0 R ";O(j+"]"),O("/Count "+Se),O(">>"),O("endobj"),he.publish("postPutPages")},Vn=function(l){he.publish("putFont",{font:l,out:O,newObject:Xe,putStream:Ot}),l.isAlreadyPutted!==!0&&(l.objectNumber=Xe(),O("<<"),O("/Type /Font"),O("/BaseFont /"+Ii(l.postScriptName)),O("/Subtype /Type1"),typeof l.encoding=="string"&&O("/Encoding /"+l.encoding),O("/FirstChar 32"),O("/LastChar 255"),O(">>"),O("endobj"))},qn=function(){for(var l in me)me.hasOwnProperty(l)&&(d===!1||d===!0&&w.hasOwnProperty(l))&&Vn(me[l])},Wn=function(l){l.objectNumber=Xe();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[X(l.x),X(l.y),X(l.x+l.width),X(l.y+l.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+l.matrix.toString()+"]"});var D=l.pages[1].join(`
`);Ot({data:D,additionalKeyValues:m,objectId:l.objectNumber}),O("endobj")},Jn=function(){for(var l in rt)rt.hasOwnProperty(l)&&Wn(rt[l])},Ra=function(l,m){var D,j=[],AA=1/(m-1);for(D=0;D<1;D+=AA)j.push(D);if(j.push(1),l[0].offset!=0){var hA={offset:0,color:l[0].color};l.unshift(hA)}if(l[l.length-1].offset!=1){var mA={offset:1,color:l[l.length-1].color};l.push(mA)}for(var _A="",kA=0,Ae=0;Ae<j.length;Ae++){for(D=j[Ae];D>l[kA+1].offset;)kA++;var YA=l[kA].offset,se=(D-YA)/(l[kA+1].offset-YA),Ie=l[kA].color,Ne=l[kA+1].color;_A+=k(Math.round((1-se)*Ie[0]+se*Ne[0]).toString(16))+k(Math.round((1-se)*Ie[1]+se*Ne[1]).toString(16))+k(Math.round((1-se)*Ie[2]+se*Ne[2]).toString(16))}return _A.trim()},Ko=function(l,m){m||(m=21);var D=Xe(),j=Ra(l.colors,m),AA=[];AA.push({key:"FunctionType",value:"0"}),AA.push({key:"Domain",value:"[0.0 1.0]"}),AA.push({key:"Size",value:"["+m+"]"}),AA.push({key:"BitsPerSample",value:"8"}),AA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),AA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ot({data:j,additionalKeyValues:AA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:D}),O("endobj"),l.objectNumber=Xe(),O("<< /ShadingType "+l.type),O("/ColorSpace /DeviceRGB");var hA="/Coords ["+X(parseFloat(l.coords[0]))+" "+X(parseFloat(l.coords[1]))+" ";l.type===2?hA+=X(parseFloat(l.coords[2]))+" "+X(parseFloat(l.coords[3])):hA+=X(parseFloat(l.coords[2]))+" "+X(parseFloat(l.coords[3]))+" "+X(parseFloat(l.coords[4]))+" "+X(parseFloat(l.coords[5])),O(hA+="]"),l.matrix&&O("/Matrix ["+l.matrix.toString()+"]"),O("/Function "+D+" 0 R"),O("/Extend [true true]"),O(">>"),O("endobj")},ko=function(l,m){var D=Ge(),j=Xe();m.push({resourcesOid:D,objectOid:j}),l.objectNumber=j;var AA=[];AA.push({key:"Type",value:"/Pattern"}),AA.push({key:"PatternType",value:"1"}),AA.push({key:"PaintType",value:"1"}),AA.push({key:"TilingType",value:"1"}),AA.push({key:"BBox",value:"["+l.boundingBox.map(X).join(" ")+"]"}),AA.push({key:"XStep",value:X(l.xStep)}),AA.push({key:"YStep",value:X(l.yStep)}),AA.push({key:"Resources",value:D+" 0 R"}),l.matrix&&AA.push({key:"Matrix",value:"["+l.matrix.toString()+"]"}),Ot({data:l.stream,additionalKeyValues:AA,objectId:l.objectNumber}),O("endobj")},Xn=function(l){var m;for(m in fe)fe.hasOwnProperty(m)&&(fe[m]instanceof On?Ko(fe[m]):fe[m]instanceof Si&&ko(fe[m],l))},ja=function(l){for(var m in l.objectNumber=Xe(),O("<<"),l)switch(m){case"opacity":O("/ca "+oA(l[m]));break;case"stroke-opacity":O("/CA "+oA(l[m]))}O(">>"),O("endobj")},Ro=function(){var l;for(l in He)He.hasOwnProperty(l)&&ja(He[l])},Ki=function(){for(var l in O("/XObject <<"),rt)rt.hasOwnProperty(l)&&rt[l].objectNumber>=0&&O("/"+l+" "+rt[l].objectNumber+" 0 R");he.publish("putXobjectDict"),O(">>")},jo=function(){ct.oid=Xe(),O("<<"),O("/Filter /Standard"),O("/V "+ct.v),O("/R "+ct.r),O("/U <"+ct.toHexString(ct.U)+">"),O("/O <"+ct.toHexString(ct.O)+">"),O("/P "+ct.P),O(">>"),O("endobj")},Ga=function(){for(var l in O("/Font <<"),me)me.hasOwnProperty(l)&&(d===!1||d===!0&&w.hasOwnProperty(l))&&O("/"+l+" "+me[l].objectNumber+" 0 R");O(">>")},Go=function(){if(Object.keys(fe).length>0){for(var l in O("/Shading <<"),fe)fe.hasOwnProperty(l)&&fe[l]instanceof On&&fe[l].objectNumber>=0&&O("/"+l+" "+fe[l].objectNumber+" 0 R");he.publish("putShadingPatternDict"),O(">>")}},zn=function(l){if(Object.keys(fe).length>0){for(var m in O("/Pattern <<"),fe)fe.hasOwnProperty(m)&&fe[m]instanceof B.TilingPattern&&fe[m].objectNumber>=0&&fe[m].objectNumber<l&&O("/"+m+" "+fe[m].objectNumber+" 0 R");he.publish("putTilingPatternDict"),O(">>")}},Vo=function(){if(Object.keys(He).length>0){var l;for(l in O("/ExtGState <<"),He)He.hasOwnProperty(l)&&He[l].objectNumber>=0&&O("/"+l+" "+He[l].objectNumber+" 0 R");he.publish("putGStateDict"),O(">>")}},Te=function(l){Ht(l.resourcesOid,!0),O("<<"),O("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ga(),Go(),zn(l.objectOid),Vo(),Ki(),O(">>"),O("endobj")},Va=function(){var l=[];qn(),Ro(),Jn(),Xn(l),he.publish("putResources"),l.forEach(Te),Te({resourcesOid:$t,objectOid:Number.MAX_SAFE_INTEGER}),he.publish("postPutResources")},qa=function(){he.publish("putAdditionalObjects");for(var l=0;l<FA.length;l++){var m=FA[l];Ht(m.objId,!0),O(m.content),O("endobj")}he.publish("postPutAdditionalObjects")},Wa=function(l){Ee[l.fontName]=Ee[l.fontName]||{},Ee[l.fontName][l.fontStyle]=l.id},ki=function(l,m,D,j,AA){var hA={id:"F"+(Object.keys(me).length+1).toString(10),postScriptName:l,fontName:m,fontStyle:D,encoding:j,isStandardFont:AA||!1,metadata:{}};return he.publish("addFont",{font:hA,instance:this}),me[hA.id]=hA,Wa(hA),hA.id},qo=function(l){for(var m=0,D=CA.length;m<D;m++){var j=ki.call(this,l[m][0],l[m][1],l[m][2],CA[m][3],!0);d===!1&&(w[j]=!0);var AA=l[m][0].split("-");Wa({id:j,fontName:AA[0],fontStyle:AA[1]||""})}he.publish("addFonts",{fonts:me,dictionary:Ee})},tr=function(l){return l.foo=function(){try{return l.apply(this,arguments)}catch(j){var m=j.stack||"";~m.indexOf(" at ")&&(m=m.split(" at ")[1]);var D="Error in function "+m.split(`
`)[0].split("<")[0]+": "+j.message;if(!qA.console)throw new Error(D);qA.console.error(D,j),qA.alert&&alert(D)}},l.foo.bar=l,l.foo},Yn=function(l,m){var D,j,AA,hA,mA,_A,kA,Ae,YA;if(AA=(m=m||{}).sourceEncoding||"Unicode",mA=m.outputEncoding,(m.autoencode||mA)&&me[ne].metadata&&me[ne].metadata[AA]&&me[ne].metadata[AA].encoding&&(hA=me[ne].metadata[AA].encoding,!mA&&me[ne].encoding&&(mA=me[ne].encoding),!mA&&hA.codePages&&(mA=hA.codePages[0]),typeof mA=="string"&&(mA=hA[mA]),mA)){for(kA=!1,_A=[],D=0,j=l.length;D<j;D++)(Ae=mA[l.charCodeAt(D)])?_A.push(String.fromCharCode(Ae)):_A.push(l[D]),_A[D].charCodeAt(0)>>8&&(kA=!0);l=_A.join("")}for(D=l.length;kA===void 0&&D!==0;)l.charCodeAt(D-1)>>8&&(kA=!0),D--;if(!kA)return l;for(_A=m.noBOM?[]:[254,255],D=0,j=l.length;D<j;D++){if((YA=(Ae=l.charCodeAt(D))>>8)>>8)throw new Error("Character at position "+D+" of string '"+l+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");_A.push(YA),_A.push(Ae-(YA<<8))}return String.fromCharCode.apply(void 0,_A)},Ut=B.__private__.pdfEscape=B.pdfEscape=function(l,m){return Yn(l,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ri=B.__private__.beginPage=function(l){QA[++Se]=[],zA[Se]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(l[0]),topRightY:Number(l[1])}},Xa(Se),gA(QA[_])},Ja=function(l,m){var D,j,AA;switch(e=m||e,typeof l=="string"&&(D=Q(l.toLowerCase()),Array.isArray(D)&&(j=D[0],AA=D[1])),Array.isArray(l)&&(j=l[0]*SA,AA=l[1]*SA),isNaN(j)&&(j=n[0],AA=n[1]),(j>14400||AA>14400)&&(Qe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),j=Math.min(14400,j),AA=Math.min(14400,AA)),n=[j,AA],e.substr(0,1)){case"l":AA>j&&(n=[AA,j]);break;case"p":j>AA&&(n=[AA,j])}Ri(n),es(qi),O(rr),Ji!==0&&O(Ji+" J"),Xi!==0&&O(Xi+" j"),he.publish("addPage",{pageNumber:Se})},Wo=function(l){l>0&&l<=Se&&(QA.splice(l,1),zA.splice(l,1),Se--,_>Se&&(_=Se),this.setPage(_))},Xa=function(l){l>0&&l<=Se&&(_=l)},Jo=B.__private__.getNumberOfPages=B.getNumberOfPages=function(){return QA.length-1},za=function(l,m,D){var j,AA=void 0;return D=D||{},l=l!==void 0?l:me[ne].fontName,m=m!==void 0?m:me[ne].fontStyle,j=l.toLowerCase(),Ee[j]!==void 0&&Ee[j][m]!==void 0?AA=Ee[j][m]:Ee[l]!==void 0&&Ee[l][m]!==void 0?AA=Ee[l][m]:D.disableWarning===!1&&Qe.warn("Unable to look up font label for font '"+l+"', '"+m+"'. Refer to getFontList() for available fonts."),AA||D.noFallback||(AA=Ee.times[m])==null&&(AA=Ee.times.normal),AA},Xo=B.__private__.putInfo=function(){var l=Xe(),m=function(j){return j};for(var D in g!==null&&(m=ct.encryptor(l,0)),O("<<"),O("/Producer ("+Ut(m("jsPDF "+VA.version))+")"),WA)WA.hasOwnProperty(D)&&WA[D]&&O("/"+D.substr(0,1).toUpperCase()+D.substr(1)+" ("+Ut(m(WA[D]))+")");O("/CreationDate ("+Ut(m(uA))+")"),O(">>"),O("endobj")},ji=B.__private__.putCatalog=function(l){var m=(l=l||{}).rootDictionaryObjId||Sr;switch(Xe(),O("<<"),O("/Type /Catalog"),O("/Pages "+m+" 0 R"),HA||(HA="fullwidth"),HA){case"fullwidth":O("/OpenAction [3 0 R /FitH null]");break;case"fullheight":O("/OpenAction [3 0 R /FitV null]");break;case"fullpage":O("/OpenAction [3 0 R /Fit]");break;case"original":O("/OpenAction [3 0 R /XYZ null null 1]");break;default:var D=""+HA;D.substr(D.length-1)==="%"&&(HA=parseInt(HA)/100),typeof HA=="number"&&O("/OpenAction [3 0 R /XYZ null null "+oA(HA)+"]")}switch(re||(re="continuous"),re){case"continuous":O("/PageLayout /OneColumn");break;case"single":O("/PageLayout /SinglePage");break;case"two":case"twoleft":O("/PageLayout /TwoColumnLeft");break;case"tworight":O("/PageLayout /TwoColumnRight")}XA&&O("/PageMode /"+XA),he.publish("putCatalog"),O(">>"),O("endobj")},zo=B.__private__.putTrailer=function(){O("trailer"),O("<<"),O("/Size "+(J+1)),O("/Root "+J+" 0 R"),O("/Info "+(J-1)+" 0 R"),g!==null&&O("/Encrypt "+ct.oid+" 0 R"),O("/ID [ <"+iA+"> <"+iA+"> ]"),O(">>")},Yo=B.__private__.putHeader=function(){O("%PDF-"+L),O("%ºß¬à")},Zo=B.__private__.putXRef=function(){var l="0000000000";O("xref"),O("0 "+(J+1)),O("0000000000 65535 f ");for(var m=1;m<=J;m++)typeof nA[m]=="function"?O((l+nA[m]()).slice(-10)+" 00000 n "):nA[m]!==void 0?O((l+nA[m]).slice(-10)+" 00000 n "):O("0000000000 00000 n ")},Nr=B.__private__.buildDocument=function(){GA(),gA(aA),he.publish("buildDocument"),Yo(),Un(),qa(),Va(),g!==null&&jo(),Xo(),ji();var l=sA;return Zo(),zo(),O("startxref"),O(""+l),O("%%EOF"),gA(QA[_]),aA.join(`
`)},Zn=B.__private__.getBlob=function(l){return new Blob([MA(l)],{type:"application/pdf"})},$n=B.output=B.__private__.output=tr(function(l,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",l){case void 0:return Nr();case"save":B.save(m.filename);break;case"arraybuffer":return MA(Nr());case"blob":return Zn(Nr());case"bloburi":case"bloburl":if(qA.URL!==void 0&&typeof qA.URL.createObjectURL=="function")return qA.URL&&qA.URL.createObjectURL(Zn(Nr()))||void 0;Qe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var D="",j=Nr();try{D=_u(j)}catch{D=_u(unescape(encodeURIComponent(j)))}return"data:application/pdf;filename="+m.filename+";base64,"+D;case"pdfobjectnewwindow":if(Object.prototype.toString.call(qA)==="[object Window]"){var AA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",hA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';m.pdfObjectUrl&&(AA=m.pdfObjectUrl,hA="");var mA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+AA+'"'+hA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(m)+");<\/script></body></html>",_A=qA.open();return _A!==null&&_A.document.write(mA),_A}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(qA)==="[object Window]"){var kA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(m.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+m.filename+'" width="500px" height="400px" /></body></html>',Ae=qA.open();if(Ae!==null){Ae.document.write(kA);var YA=this;Ae.document.documentElement.querySelector("#pdfViewer").onload=function(){Ae.document.title=m.filename,Ae.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(YA.output("bloburl"))}}return Ae}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(qA)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var se='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",m)+'"></iframe></body></html>',Ie=qA.open();if(Ie!==null&&(Ie.document.write(se),Ie.document.title=m.filename),Ie||typeof safari>"u")return Ie;break;case"datauri":case"dataurl":return qA.document.location.href=this.output("datauristring",m);default:return null}}),Ya=function(l){return Array.isArray(Fn)===!0&&Fn.indexOf(l)>-1};switch(r){case"pt":SA=1;break;case"mm":SA=72/25.4;break;case"cm":SA=72/2.54;break;case"in":SA=72;break;case"px":SA=Ya("px_scaling")==1?.75:96/72;break;case"pc":case"em":SA=12;break;case"ex":SA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);SA=r}var ct=null;UA(),eA();var $o=function(l){return g!==null?ct.encryptor(l,0):function(m){return m}},Za=B.__private__.getPageInfo=B.getPageInfo=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:zA[l].objId,pageNumber:l,pageContext:zA[l]}},JA=B.__private__.getPageInfoByObjId=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in zA)if(zA[m].objId===l)break;return Za(m)},Ac=B.__private__.getCurrentPageInfo=B.getCurrentPageInfo=function(){return{objId:zA[_].objId,pageNumber:_,pageContext:zA[_]}};B.addPage=function(){return Ja.apply(this,arguments),this},B.setPage=function(){return Xa.apply(this,arguments),gA.call(this,QA[_]),this},B.insertPage=function(l){return this.addPage(),this.movePage(_,l),this},B.movePage=function(l,m){var D,j;if(l>m){D=QA[l],j=zA[l];for(var AA=l;AA>m;AA--)QA[AA]=QA[AA-1],zA[AA]=zA[AA-1];QA[m]=D,zA[m]=j,this.setPage(m)}else if(l<m){D=QA[l],j=zA[l];for(var hA=l;hA<m;hA++)QA[hA]=QA[hA+1],zA[hA]=zA[hA+1];QA[m]=D,zA[m]=j,this.setPage(m)}return this},B.deletePage=function(){return Wo.apply(this,arguments),this},B.__private__.text=B.text=function(l,m,D,j,AA){var hA,mA,_A,kA,Ae,YA,se,Ie,Ne,Ve=(j=j||{}).scope||this;if(typeof l=="number"&&typeof m=="number"&&(typeof D=="string"||Array.isArray(D))){var ut=D;D=m,m=l,l=ut}if(arguments[3]instanceof jA?(P("The transform parameter of text() with a Matrix value"),Ne=AA):(_A=arguments[4],kA=arguments[5],Fe(se=arguments[3])==="object"&&se!==null||(typeof _A=="string"&&(kA=_A,_A=null),typeof se=="string"&&(kA=se,se=null),typeof se=="number"&&(_A=se,se=null),j={flags:se,angle:_A,align:kA})),isNaN(m)||isNaN(D)||l==null)throw new Error("Invalid arguments passed to jsPDF.text");if(l.length===0)return Ve;var Ze="",nr=!1,St=typeof j.lineHeightFactor=="number"?j.lineHeightFactor:bn,Qr=Ve.internal.scaleFactor;function ss(Ue){return Ue=Ue.split("	").join(Array(j.TabLen||9).join(" ")),Ut(Ue,se)}function Aa(Ue){for(var ye,Oe=Ue.concat(),ze=[],Or=Oe.length;Or--;)typeof(ye=Oe.shift())=="string"?ze.push(ye):Array.isArray(Ue)&&(ye.length===1||ye[1]===void 0&&ye[2]===void 0)?ze.push(ye[0]):ze.push([ye[0],ye[1],ye[2]]);return ze}function ea(Ue,ye){var Oe;if(typeof Ue=="string")Oe=ye(Ue)[0];else if(Array.isArray(Ue)){for(var ze,Or,ca=Ue.concat(),Bi=[],fs=ca.length;fs--;)typeof(ze=ca.shift())=="string"?Bi.push(ye(ze)[0]):Array.isArray(ze)&&typeof ze[0]=="string"&&(Or=ye(ze[0],ze[1],ze[2]),Bi.push([Or[0],Or[1],Or[2]]));Oe=Bi}return Oe}var ii=!1,ta=!0;if(typeof l=="string")ii=!0;else if(Array.isArray(l)){var ra=l.concat();mA=[];for(var ai,nt=ra.length;nt--;)(typeof(ai=ra.shift())!="string"||Array.isArray(ai)&&typeof ai[0]!="string")&&(ta=!1);ii=ta}if(ii===!1)throw new Error('Type of text must be string or Array. "'+l+'" is not recognized.');typeof l=="string"&&(l=l.match(/[\r?\n]/)?l.split(/\r\n|\r|\n/g):[l]);var si=yA/Ve.internal.scaleFactor,oi=si*(St-1);switch(j.baseline){case"bottom":D-=oi;break;case"top":D+=si-oi;break;case"hanging":D+=si-2*oi;break;case"middle":D+=si/2-oi}if((YA=j.maxWidth||0)>0&&(typeof l=="string"?l=Ve.splitTextToSize(l,YA):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(Ue,ye){return Ue.concat(Ve.splitTextToSize(ye,YA))},[]))),hA={text:l,x:m,y:D,options:j,mutex:{pdfEscape:Ut,activeFontKey:ne,fonts:me,activeFontSize:yA}},he.publish("preProcessText",hA),l=hA.text,_A=(j=hA.options).angle,!(Ne instanceof jA)&&_A&&typeof _A=="number"){_A*=Math.PI/180,j.rotationDirection===0&&(_A=-_A),R===x.ADVANCED&&(_A=-_A);var ci=Math.cos(_A),na=Math.sin(_A);Ne=new jA(ci,na,-na,ci,0,0)}else _A&&_A instanceof jA&&(Ne=_A);R!==x.ADVANCED||Ne||(Ne=pr),(Ae=j.charSpace||ti)!==void 0&&(Ze+=X(H(Ae))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Ie=j.horizontalScale)!==void 0&&(Ze+=X(100*Ie)+` Tz
`),j.lang;var yt=-1,uc=j.renderingMode!==void 0?j.renderingMode:j.stroke,ia=Ve.internal.getCurrentPageInfo().pageContext;switch(uc){case 0:case!1:case"fill":yt=0;break;case 1:case!0:case"stroke":yt=1;break;case 2:case"fillThenStroke":yt=2;break;case 3:case"invisible":yt=3;break;case 4:case"fillAndAddForClipping":yt=4;break;case 5:case"strokeAndAddPathForClipping":yt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":yt=6;break;case 7:case"addToPathForClipping":yt=7}var os=ia.usedRenderingMode!==void 0?ia.usedRenderingMode:-1;yt!==-1?Ze+=yt+` Tr
`:os!==-1&&(Ze+=`0 Tr
`),yt!==-1&&(ia.usedRenderingMode=yt),kA=j.align||"left";var Mt,ui=yA*St,cs=Ve.internal.pageSize.getWidth(),us=me[ne];Ae=j.charSpace||ti,YA=j.maxWidth||0,se=Object.assign({autoencode:!0,noBOM:!0},j.flags);var zr=[],xn=function(Ue){return Ve.getStringUnitWidth(Ue,{font:us,charSpace:Ae,fontSize:yA,doKerning:!1})*yA/Qr};if(Object.prototype.toString.call(l)==="[object Array]"){var bt;mA=Aa(l),kA!=="left"&&(Mt=mA.map(xn));var wt,Yr=0;if(kA==="right"){m-=Mt[0],l=[],nt=mA.length;for(var Dr=0;Dr<nt;Dr++)Dr===0?(wt=Cr(m),bt=_r(D)):(wt=H(Yr-Mt[Dr]),bt=-ui),l.push([mA[Dr],wt,bt]),Yr=Mt[Dr]}else if(kA==="center"){m-=Mt[0]/2,l=[],nt=mA.length;for(var Tr=0;Tr<nt;Tr++)Tr===0?(wt=Cr(m),bt=_r(D)):(wt=H((Yr-Mt[Tr])/2),bt=-ui),l.push([mA[Tr],wt,bt]),Yr=Mt[Tr]}else if(kA==="left"){l=[],nt=mA.length;for(var li=0;li<nt;li++)l.push(mA[li])}else if(kA==="justify"&&us.encoding==="Identity-H"){l=[],nt=mA.length,YA=YA!==0?YA:cs;for(var Pr=0,Pe=0;Pe<nt;Pe++)if(bt=Pe===0?_r(D):-ui,wt=Pe===0?Cr(m):Pr,Pe<nt-1){var aa=H((YA-Mt[Pe])/(mA[Pe].split(" ").length-1)),vt=mA[Pe].split(" ");l.push([vt[0]+" ",wt,bt]),Pr=0;for(var Kt=1;Kt<vt.length;Kt++){var fi=(xn(vt[Kt-1]+" "+vt[Kt])-xn(vt[Kt]))*Qr+aa;Kt==vt.length-1?l.push([vt[Kt],fi,0]):l.push([vt[Kt]+" ",fi,0]),Pr-=fi}}else l.push([mA[Pe],wt,bt]);l.push(["",Pr,0])}else{if(kA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(l=[],nt=mA.length,YA=YA!==0?YA:cs,Pe=0;Pe<nt;Pe++)bt=Pe===0?_r(D):-ui,wt=Pe===0?Cr(m):0,Pe<nt-1?zr.push(X(H((YA-Mt[Pe])/(mA[Pe].split(" ").length-1)))):zr.push(0),l.push([mA[Pe],wt,bt])}}var ls=typeof j.R2L=="boolean"?j.R2L:KA;ls===!0&&(l=ea(l,function(Ue,ye,Oe){return[Ue.split("").reverse().join(""),ye,Oe]})),hA={text:l,x:m,y:D,options:j,mutex:{pdfEscape:Ut,activeFontKey:ne,fonts:me,activeFontSize:yA}},he.publish("postProcessText",hA),l=hA.text,nr=hA.mutex.isHex||!1;var sa=me[ne].encoding;sa!=="WinAnsiEncoding"&&sa!=="StandardEncoding"||(l=ea(l,function(Ue,ye,Oe){return[ss(Ue),ye,Oe]})),mA=Aa(l),l=[];for(var In,Hn,Zr,Sn=0,hi=1,Nn=Array.isArray(mA[0])?hi:Sn,$r="",oa=function(Ue,ye,Oe){var ze="";return Oe instanceof jA?(Oe=typeof j.angle=="number"?Zt(Oe,new jA(1,0,0,1,Ue,ye)):Zt(new jA(1,0,0,1,Ue,ye),Oe),R===x.ADVANCED&&(Oe=Zt(new jA(1,0,0,-1,0,0),Oe)),ze=Oe.join(" ")+` Tm
`):ze=X(Ue)+" "+X(ye)+` Td
`,ze},kt=0;kt<mA.length;kt++){switch($r="",Nn){case hi:Zr=(nr?"<":"(")+mA[kt][0]+(nr?">":")"),In=parseFloat(mA[kt][1]),Hn=parseFloat(mA[kt][2]);break;case Sn:Zr=(nr?"<":"(")+mA[kt]+(nr?">":")"),In=Cr(m),Hn=_r(D)}zr!==void 0&&zr[kt]!==void 0&&($r=zr[kt]+` Tw
`),kt===0?l.push($r+oa(In,Hn,Ne)+Zr):Nn===Sn?l.push($r+Zr):Nn===hi&&l.push($r+oa(In,Hn,Ne)+Zr)}l=Nn===Sn?l.join(` Tj
T* `):l.join(` Tj
`),l+=` Tj
`;var Rt=`BT
/`;return Rt+=ne+" "+yA+` Tf
`,Rt+=X(yA*St)+` TL
`,Rt+=Ln+`
`,Rt+=Ze,Rt+=l,O(Rt+="ET"),w[ne]=!0,Ve};var ec=B.__private__.clip=B.clip=function(l){return O(l==="evenodd"?"W*":"W"),this};B.clipEvenOdd=function(){return ec("evenodd")},B.__private__.discardPath=B.discardPath=function(){return O("n"),this};var mr=B.__private__.isValidStyle=function(l){var m=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(l)!==-1&&(m=!0),m};B.__private__.setDefaultPathOperation=B.setDefaultPathOperation=function(l){return mr(l)&&(h=l),this};var $a=B.__private__.getStyle=B.getStyle=function(l){var m=h;switch(l){case"D":case"S":m="S";break;case"F":m="f";break;case"FD":case"DF":m="B";break;case"f":case"f*":case"B":case"B*":m=l}return m},As=B.close=function(){return O("h"),this};B.stroke=function(){return O("S"),this},B.fill=function(l){return Ai("f",l),this},B.fillEvenOdd=function(l){return Ai("f*",l),this},B.fillStroke=function(l){return Ai("B",l),this},B.fillStrokeEvenOdd=function(l){return Ai("B*",l),this};var Ai=function(l,m){Fe(m)==="object"?rc(m,l):O(l)},Gi=function(l){l===null||R===x.ADVANCED&&l===void 0||(l=$a(l),O(l))};function tc(l,m,D,j,AA){var hA=new Si(m||this.boundingBox,D||this.xStep,j||this.yStep,this.gState,AA||this.matrix);hA.stream=this.stream;var mA=l+"$$"+this.cloneIndex+++"$$";return Ft(mA,hA),hA}var rc=function(l,m){var D=Qn[l.key],j=fe[D];if(j instanceof On)O("q"),O(nc(m)),j.gState&&B.setGState(j.gState),O(l.matrix.toString()+" cm"),O("/"+D+" sh"),O("Q");else if(j instanceof Si){var AA=new jA(1,0,0,-1,0,Xr());l.matrix&&(AA=AA.multiply(l.matrix||pr),D=tc.call(j,l.key,l.boundingBox,l.xStep,l.yStep,AA).id),O("q"),O("/Pattern cs"),O("/"+D+" scn"),j.gState&&B.setGState(j.gState),O(m),O("Q")}},nc=function(l){switch(l){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Vi=B.moveTo=function(l,m){return O(X(H(l))+" "+X(M(m))+" m"),this},yn=B.lineTo=function(l,m){return O(X(H(l))+" "+X(M(m))+" l"),this},Wr=B.curveTo=function(l,m,D,j,AA,hA){return O([X(H(l)),X(M(m)),X(H(D)),X(M(j)),X(H(AA)),X(M(hA)),"c"].join(" ")),this};B.__private__.line=B.line=function(l,m,D,j,AA){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(j)||!mr(AA))throw new Error("Invalid arguments passed to jsPDF.line");return R===x.COMPAT?this.lines([[D-l,j-m]],l,m,[1,1],AA||"S"):this.lines([[D-l,j-m]],l,m,[1,1]).stroke()},B.__private__.lines=B.lines=function(l,m,D,j,AA,hA){var mA,_A,kA,Ae,YA,se,Ie,Ne,Ve,ut,Ze,nr;if(typeof l=="number"&&(nr=D,D=m,m=l,l=nr),j=j||[1,1],hA=hA||!1,isNaN(m)||isNaN(D)||!Array.isArray(l)||!Array.isArray(j)||!mr(AA)||typeof hA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Vi(m,D),mA=j[0],_A=j[1],Ae=l.length,ut=m,Ze=D,kA=0;kA<Ae;kA++)(YA=l[kA]).length===2?(ut=YA[0]*mA+ut,Ze=YA[1]*_A+Ze,yn(ut,Ze)):(se=YA[0]*mA+ut,Ie=YA[1]*_A+Ze,Ne=YA[2]*mA+ut,Ve=YA[3]*_A+Ze,ut=YA[4]*mA+ut,Ze=YA[5]*_A+Ze,Wr(se,Ie,Ne,Ve,ut,Ze));return hA&&As(),Gi(AA),this},B.path=function(l){for(var m=0;m<l.length;m++){var D=l[m],j=D.c;switch(D.op){case"m":Vi(j[0],j[1]);break;case"l":yn(j[0],j[1]);break;case"c":Wr.apply(this,j);break;case"h":As()}}return this},B.__private__.rect=B.rect=function(l,m,D,j,AA){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(j)||!mr(AA))throw new Error("Invalid arguments passed to jsPDF.rect");return R===x.COMPAT&&(j=-j),O([X(H(l)),X(M(m)),X(H(D)),X(H(j)),"re"].join(" ")),Gi(AA),this},B.__private__.triangle=B.triangle=function(l,m,D,j,AA,hA,mA){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(j)||isNaN(AA)||isNaN(hA)||!mr(mA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[D-l,j-m],[AA-D,hA-j],[l-AA,m-hA]],l,m,[1,1],mA,!0),this},B.__private__.roundedRect=B.roundedRect=function(l,m,D,j,AA,hA,mA){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(j)||isNaN(AA)||isNaN(hA)||!mr(mA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var _A=4/3*(Math.SQRT2-1);return AA=Math.min(AA,.5*D),hA=Math.min(hA,.5*j),this.lines([[D-2*AA,0],[AA*_A,0,AA,hA-hA*_A,AA,hA],[0,j-2*hA],[0,hA*_A,-AA*_A,hA,-AA,hA],[2*AA-D,0],[-AA*_A,0,-AA,-hA*_A,-AA,-hA],[0,2*hA-j],[0,-hA*_A,AA*_A,-hA,AA,-hA]],l+AA,m,[1,1],mA,!0),this},B.__private__.ellipse=B.ellipse=function(l,m,D,j,AA){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(j)||!mr(AA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var hA=4/3*(Math.SQRT2-1)*D,mA=4/3*(Math.SQRT2-1)*j;return Vi(l+D,m),Wr(l+D,m-mA,l+hA,m-j,l,m-j),Wr(l-hA,m-j,l-D,m-mA,l-D,m),Wr(l-D,m+mA,l-hA,m+j,l,m+j),Wr(l+hA,m+j,l+D,m+mA,l+D,m),Gi(AA),this},B.__private__.circle=B.circle=function(l,m,D,j){if(isNaN(l)||isNaN(m)||isNaN(D)||!mr(j))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(l,m,D,D,j)},B.setFont=function(l,m,D){return D&&(m=$(m,D)),ne=za(l,m,{disableWarning:!1}),this};var ic=B.__private__.getFont=B.getFont=function(){return me[za.apply(B,arguments)]};B.__private__.getFontList=B.getFontList=function(){var l,m,D={};for(l in Ee)if(Ee.hasOwnProperty(l))for(m in D[l]=[],Ee[l])Ee[l].hasOwnProperty(m)&&D[l].push(m);return D},B.addFont=function(l,m,D,j,AA){var hA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&hA.indexOf(arguments[3])!==-1?AA=arguments[3]:arguments[3]&&hA.indexOf(arguments[3])==-1&&(D=$(D,j)),AA=AA||"Identity-H",ki.call(this,l,m,D,AA)};var bn,qi=t.lineWidth||.200025,ei=B.__private__.getLineWidth=B.getLineWidth=function(){return qi},es=B.__private__.setLineWidth=B.setLineWidth=function(l){return qi=l,O(X(H(l))+" w"),this};B.__private__.setLineDash=VA.API.setLineDash=VA.API.setLineDashPattern=function(l,m){if(l=l||[],m=m||0,isNaN(m)||!Array.isArray(l))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return l=l.map(function(D){return X(H(D))}).join(" "),m=X(H(m)),O("["+l+"] "+m+" d"),this};var ts=B.__private__.getLineHeight=B.getLineHeight=function(){return yA*bn};B.__private__.getLineHeight=B.getLineHeight=function(){return yA*bn};var rs=B.__private__.setLineHeightFactor=B.setLineHeightFactor=function(l){return typeof(l=l||1.15)=="number"&&(bn=l),this},ns=B.__private__.getLineHeightFactor=B.getLineHeightFactor=function(){return bn};rs(t.lineHeight);var Cr=B.__private__.getHorizontalCoordinate=function(l){return H(l)},_r=B.__private__.getVerticalCoordinate=function(l){return R===x.ADVANCED?l:zA[_].mediaBox.topRightY-zA[_].mediaBox.bottomLeftY-H(l)},ac=B.__private__.getHorizontalCoordinateString=B.getHorizontalCoordinateString=function(l){return X(Cr(l))},Jr=B.__private__.getVerticalCoordinateString=B.getVerticalCoordinateString=function(l){return X(_r(l))},rr=t.strokeColor||"0 G";B.__private__.getStrokeColor=B.getDrawColor=function(){return Ar(rr)},B.__private__.setStrokeColor=B.setDrawColor=function(l,m,D,j){return rr=er({ch1:l,ch2:m,ch3:D,ch4:j,pdfColorType:"draw",precision:2}),O(rr),this};var Wi=t.fillColor||"0 g";B.__private__.getFillColor=B.getFillColor=function(){return Ar(Wi)},B.__private__.setFillColor=B.setFillColor=function(l,m,D,j){return Wi=er({ch1:l,ch2:m,ch3:D,ch4:j,pdfColorType:"fill",precision:2}),O(Wi),this};var Ln=t.textColor||"0 g",sc=B.__private__.getTextColor=B.getTextColor=function(){return Ar(Ln)};B.__private__.setTextColor=B.setTextColor=function(l,m,D,j){return Ln=er({ch1:l,ch2:m,ch3:D,ch4:j,pdfColorType:"text",precision:3}),this};var ti=t.charSpace,oc=B.__private__.getCharSpace=B.getCharSpace=function(){return parseFloat(ti||0)};B.__private__.setCharSpace=B.setCharSpace=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ti=l,this};var Ji=0;B.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},B.__private__.setLineCap=B.setLineCap=function(l){var m=B.CapJoinStyles[l];if(m===void 0)throw new Error("Line cap style of '"+l+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ji=m,O(m+" J"),this};var Xi=0;B.__private__.setLineJoin=B.setLineJoin=function(l){var m=B.CapJoinStyles[l];if(m===void 0)throw new Error("Line join style of '"+l+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xi=m,O(m+" j"),this},B.__private__.setLineMiterLimit=B.__private__.setMiterLimit=B.setLineMiterLimit=B.setMiterLimit=function(l){if(l=l||0,isNaN(l))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return O(X(H(l))+" M"),this},B.GState=yo,B.setGState=function(l){(l=typeof l=="string"?He[Yt[l]]:is(null,l)).equals(Hr)||(O("/"+l.id+" gs"),Hr=l)};var is=function(l,m){if(!l||!Yt[l]){var D=!1;for(var j in He)if(He.hasOwnProperty(j)&&He[j].equals(m)){D=!0;break}if(D)m=He[j];else{var AA="GS"+(Object.keys(He).length+1).toString(10);He[AA]=m,m.id=AA}return l&&(Yt[l]=m.id),he.publish("addGState",m),m}};B.addGState=function(l,m){return is(l,m),this},B.saveGraphicsState=function(){return O("q"),Br.push({key:ne,size:yA,color:Ln}),this},B.restoreGraphicsState=function(){O("Q");var l=Br.pop();return ne=l.key,yA=l.size,Ln=l.color,Hr=null,this},B.setCurrentTransformationMatrix=function(l){return O(l.toString()+" cm"),this},B.comment=function(l){return O("#"+l),this};var ri=function(l,m){var D=l||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return D},set:function(hA){isNaN(hA)||(D=parseFloat(hA))}});var j=m||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return j},set:function(hA){isNaN(hA)||(j=parseFloat(hA))}});var AA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return AA},set:function(hA){AA=hA.toString()}}),this},zi=function(l,m,D,j){ri.call(this,l,m),this.type="rect";var AA=D||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return AA},set:function(mA){isNaN(mA)||(AA=parseFloat(mA))}});var hA=j||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return hA},set:function(mA){isNaN(mA)||(hA=parseFloat(mA))}}),this},Yi=function(){this.page=Se,this.currentPage=_,this.pages=QA.slice(0),this.pagesContext=zA.slice(0),this.x=ot,this.y=ue,this.matrix=zt,this.width=En(_),this.height=Xr(_),this.outputDestination=LA,this.id="",this.objectNumber=-1};Yi.prototype.restore=function(){Se=this.page,_=this.currentPage,zA=this.pagesContext,QA=this.pages,ot=this.x,ue=this.y,zt=this.matrix,Zi(_,this.width),$i(_,this.height),LA=this.outputDestination};var as=function(l,m,D,j,AA){dr.push(new Yi),Se=_=0,QA=[],ot=l,ue=m,zt=AA,Ri([D,j])},cc=function(l){if(gr[l])dr.pop().restore();else{var m=new Yi,D="Xo"+(Object.keys(rt).length+1).toString(10);m.id=D,gr[l]=D,rt[D]=m,he.publish("addFormObject",m),dr.pop().restore()}};for(var ni in B.beginFormObject=function(l,m,D,j,AA){return as(l,m,D,j,AA),this},B.endFormObject=function(l){return cc(l),this},B.doFormObject=function(l,m){var D=rt[gr[l]];return O("q"),O(m.toString()+" cm"),O("/"+D.id+" Do"),O("Q"),this},B.getFormObject=function(l){var m=rt[gr[l]];return{x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},B.save=function(l,m){return l=l||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||!1,m.returnPromise===!1?(Tn(Zn(Nr()),l),typeof Tn.unload=="function"&&qA.setTimeout&&setTimeout(Tn.unload,911),this):new Promise(function(D,j){try{var AA=Tn(Zn(Nr()),l);typeof Tn.unload=="function"&&qA.setTimeout&&setTimeout(Tn.unload,911),D(AA)}catch(hA){j(hA.message)}})},VA.API)VA.API.hasOwnProperty(ni)&&(ni==="events"&&VA.API.events.length?function(l,m){var D,j,AA;for(AA=m.length-1;AA!==-1;AA--)D=m[AA][0],j=m[AA][1],l.subscribe.apply(l,[D].concat(typeof j=="function"?[j]:j))}(he,VA.API.events):B[ni]=VA.API[ni]);var En=B.getPageWidth=function(l){return(zA[l=l||_].mediaBox.topRightX-zA[l].mediaBox.bottomLeftX)/SA},Zi=B.setPageWidth=function(l,m){zA[l].mediaBox.topRightX=m*SA+zA[l].mediaBox.bottomLeftX},Xr=B.getPageHeight=function(l){return(zA[l=l||_].mediaBox.topRightY-zA[l].mediaBox.bottomLeftY)/SA},$i=B.setPageHeight=function(l,m){zA[l].mediaBox.topRightY=m*SA+zA[l].mediaBox.bottomLeftY};return B.internal={pdfEscape:Ut,getStyle:$a,getFont:ic,getFontSize:xA,getCharSpace:oc,getTextColor:sc,getLineHeight:ts,getLineHeightFactor:ns,getLineWidth:ei,write:$A,getHorizontalCoordinate:Cr,getVerticalCoordinate:_r,getCoordinateString:ac,getVerticalCoordinateString:Jr,collections:{},newObject:Xe,newAdditionalObject:Gn,newObjectDeferred:Ge,newObjectDeferredBegin:Ht,getFilters:wr,putStream:Ot,events:he,scaleFactor:SA,pageSize:{getWidth:function(){return En(_)},setWidth:function(l){Zi(_,l)},getHeight:function(){return Xr(_)},setHeight:function(l){$i(_,l)}},encryptionOptions:g,encryption:ct,getEncryptor:$o,output:$n,getNumberOfPages:Jo,pages:QA,out:O,f2:oA,f3:I,getPageInfo:Za,getPageInfoByObjId:JA,getCurrentPageInfo:Ac,getPDFVersion:y,Point:ri,Rectangle:zi,Matrix:jA,hasHotfix:Ya},Object.defineProperty(B.internal.pageSize,"width",{get:function(){return En(_)},set:function(l){Zi(_,l)},enumerable:!0,configurable:!0}),Object.defineProperty(B.internal.pageSize,"height",{get:function(){return Xr(_)},set:function(l){$i(_,l)},enumerable:!0,configurable:!0}),qo.call(B,CA),ne="F1",Ja(n,e),he.publish("initialized"),B}xi.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},xi.prototype.toHexString=function(t){return t.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},xi.prototype.hexToBytes=function(t){for(var A=[],e=0;e<t.length;e+=2)A.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return A.join("")},xi.prototype.processOwnerPassword=function(t,A){return Tu(Du(A).substr(0,5),t)},xi.prototype.encryptor=function(t,A){var e=Du(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return Tu(e,r)}},yo.prototype.equals=function(t){var A,e="id,objectNumber,equals";if(!t||Fe(t)!==Fe(this))return!1;var r=0;for(A in this)if(!(e.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!t.hasOwnProperty(A)||this[A]!==t[A])return!1;r++}for(A in t)t.hasOwnProperty(A)&&e.indexOf(A)<0&&r--;return r===0},VA.API={events:[]},VA.version="2.5.2";var De=VA.API,Xu=1,jn=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},yi=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ZA=function(t){return t.toFixed(2)},cn=function(t){return t.toFixed(5)};De.__acroform__={};var It=function(t,A){t.prototype=Object.create(A.prototype),t.prototype.constructor=t},Sf=function(t){return t*Xu},yr=function(t){var A=new o0,e=OA.internal.getHeight(t)||0,r=OA.internal.getWidth(t)||0;return A.BBox=[0,0,Number(ZA(r)),Number(ZA(e))],A},$p=De.__acroform__.setBit=function(t,A){if(t=t||0,A=A||0,isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<A},A5=De.__acroform__.clearBit=function(t,A){if(t=t||0,A=A||0,isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<A)},e5=De.__acroform__.getBit=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<A?1:0},ke=De.__acroform__.getBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return e5(t,A-1)},Re=De.__acroform__.setBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $p(t,A-1)},je=De.__acroform__.clearBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return A5(t,A-1)},t5=De.__acroform__.calculateCoordinates=function(t,A){var e=A.internal.getHorizontalCoordinate,r=A.internal.getVerticalCoordinate,n=t[0],i=t[1],s=t[2],c=t[3],u={};return u.lowerLeft_X=e(n)||0,u.lowerLeft_Y=r(i+c)||0,u.upperRight_X=e(n+s)||0,u.upperRight_Y=r(i)||0,[Number(ZA(u.lowerLeft_X)),Number(ZA(u.lowerLeft_Y)),Number(ZA(u.upperRight_X)),Number(ZA(u.upperRight_Y))]},r5=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var A=[],e=t._V||t.DV,r=Pu(t,e),n=t.scope.internal.getFont(t.fontName,t.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(t.scope.__private__.encodeColorString(t.color)),A.push("/"+n+" "+ZA(r.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(r.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=yr(t);return i.scope=t.scope,i.stream=A.join(`
`),i}},Pu=function(t,A){var e=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=t.multiline?n.map(function(I){return I.split(`
`)}):n.map(function(I){return[I]});var i=e,s=OA.internal.getHeight(t)||0;s=s<0?-s:s;var c=OA.internal.getWidth(t)||0;c=c<0?-c:c;var u=function(I,H,K){if(I+1<n.length){var M=H+" "+n[I+1][0];return to(M,t,K).width<=c-4}return!1};i++;A:for(;i>0;){A="",i--;var h,g,d=to("3",t,i).height,w=t.multiline?s-i:(s-d)/2,B=w+=2,L=0,y=0,S=0;if(i<=0){A=`(...) Tj
`,A+="% Width of Text: "+to(A,t,i=12).width+", FieldWidth:"+c+`
`;break}for(var Q="",x=0,R=0;R<n.length;R++)if(n.hasOwnProperty(R)){var Y=!1;if(n[R].length!==1&&S!==n[R].length-1){if((d+2)*(x+2)+2>s)continue A;Q+=n[R][S],Y=!0,y=R,R--}else{Q=(Q+=n[R][S]+" ").substr(Q.length-1)==" "?Q.substr(0,Q.length-1):Q;var Z=parseInt(R),$=u(Z,Q,i),X=R>=n.length-1;if($&&!X){Q+=" ",S=0;continue}if($||X){if(X)y=Z;else if(t.multiline&&(d+2)*(x+2)+2>s)continue A}else{if(!t.multiline||(d+2)*(x+2)+2>s)continue A;y=Z}}for(var P="",q=L;q<=y;q++){var oA=n[q];if(t.multiline){if(q===y){P+=oA[S]+" ",S=(S+1)%oA.length;continue}if(q===L){P+=oA[oA.length-1]+" ";continue}}P+=oA[0]+" "}switch(P=P.substr(P.length-1)==" "?P.substr(0,P.length-1):P,g=to(P,t,i).width,t.textAlign){case"right":h=c-g-2;break;case"center":h=(c-g)/2;break;case"left":default:h=2}A+=ZA(h)+" "+ZA(B)+` Td
`,A+="("+jn(P)+`) Tj
`,A+=-ZA(h)+` 0 Td
`,B=-(i+2),g=0,L=Y?y:y+1,x++,Q=""}break}return r.text=A,r.fontSize=i,r},to=function(t,A,e){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},n5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},i5=function(t,A){var e={type:"reference",object:t};A.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&A.internal.getPageInfo(t.page).pageContext.annotations.push(e)},a5=function(t,A){for(var e in t)if(t.hasOwnProperty(e)){var r=e,n=t[e];A.internal.newObjectDeferredBegin(n.objId,!0),Fe(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete t[r]}},s5=function(t,A){if(A.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(fr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(n5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xu=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new c0,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&i5(i,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(r,n){var i=!r;for(var s in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var c=r[s],u=[],h=c.Rect;if(c.Rect&&(c.Rect=t5(c.Rect,n)),n.internal.newObjectDeferredBegin(c.objId,!0),c.DA=OA.createDefaultAppearanceStream(c),Fe(c)==="object"&&typeof c.getKeyValueListForStream=="function"&&(u=c.getKeyValueListForStream()),c.Rect=h,c.hasAppearanceStream&&!c.appearanceStreamContent){var g=r5(c);u.push({key:"AP",value:"<</N "+g+">>"}),n.internal.acroformPlugin.xForms.push(g)}if(c.appearanceStreamContent){var d="";for(var w in c.appearanceStreamContent)if(c.appearanceStreamContent.hasOwnProperty(w)){var B=c.appearanceStreamContent[w];if(d+="/"+w+" ",d+="<<",Object.keys(B).length>=1||Array.isArray(B)){for(var s in B)if(B.hasOwnProperty(s)){var L=B[s];typeof L=="function"&&(L=L.call(n,c)),d+="/"+s+" "+L+" ",n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L)}}else typeof(L=B)=="function"&&(L=L.call(n,c)),d+="/"+s+" "+L,n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L);d+=">>"}u.push({key:"AP",value:`<<
`+d+">>"})}n.internal.putStream({additionalKeyValues:u,objectId:c.objId}),n.internal.out("endobj")}i&&a5(n.internal.acroformPlugin.xForms,n)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},s0=De.__acroform__.arrayToPdfArray=function(t,A,e){var r=function(s){return s};if(Array.isArray(t)){for(var n="[",i=0;i<t.length;i++)switch(i!==0&&(n+=" "),Fe(t[i])){case"boolean":case"number":case"object":n+=t[i].toString();break;case"string":t[i].substr(0,1)!=="/"?(A!==void 0&&e&&(r=e.internal.getEncryptor(A)),n+="("+jn(r(t[i].toString()))+")"):n+=t[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},tu=function(t,A,e){var r=function(n){return n};return A!==void 0&&e&&(r=e.internal.getEncryptor(A)),(t=t||"").toString(),t="("+jn(r(t))+")"},br=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};br.prototype.toString=function(){return this.objId+" 0 R"},br.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},br.prototype.getKeyValueListForStream=function(){var t=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in A)if(Object.getOwnPropertyDescriptor(this,A[e]).configurable===!1){var r=A[e],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:s0(n,this.objId,this.scope)}):n instanceof br?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&t.push({key:r,value:n}))}return t};var o0=function(){br.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};It(o0,br);var c0=function(){br.call(this);var t,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+jn(e(t))+")"}},set:function(e){t=e}})};It(c0,br);var fr=function t(){br.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(Q){if(isNaN(Q))throw new Error('Invalid value "'+Q+'" for attribute F supplied.');A=Q}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ke(A,3)},set:function(Q){Q?this.F=Re(A,3):this.F=je(A,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(Q){if(isNaN(Q))throw new Error('Invalid value "'+Q+'" for attribute Ff supplied.');e=Q}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(Q){r=Q!==void 0?Q:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(Q){r[0]=Q}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(Q){r[1]=Q}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(Q){r[2]=Q}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(Q){r[3]=Q}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(Q){switch(Q){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=Q;break;default:throw new Error('Invalid value "'+Q+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof bo)return;i="FieldObject"+t.FieldNum++}var Q=function(x){return x};return this.scope&&(Q=this.scope.internal.getEncryptor(this.objId)),"("+jn(Q(i))+")"},set:function(Q){i=Q.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(Q){i=Q}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(Q){s=Q}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(Q){c=Q}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(Q){u=Q}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h===void 0?50/Xu:h},set:function(Q){h=Q}});var g="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return g},set:function(Q){g=Q}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof bo||this instanceof Rn))return tu(d,this.objId,this.scope)},set:function(Q){Q=Q.toString(),d=Q}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof tt?w:tu(w,this.objId,this.scope)},set:function(Q){Q=Q.toString(),w=this instanceof tt?Q:Q.substr(0,1)==="("?yi(Q.substr(1,Q.length-2)):yi(Q)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof tt?yi(w.substr(1,w.length-1)):w},set:function(Q){Q=Q.toString(),w=this instanceof tt?"/"+Q:Q}});var B=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(B)return B},set:function(Q){this.V=Q}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(B)return this instanceof tt?B:tu(B,this.objId,this.scope)},set:function(Q){Q=Q.toString(),B=this instanceof tt?Q:Q.substr(0,1)==="("?yi(Q.substr(1,Q.length-2)):yi(Q)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof tt?yi(B.substr(1,B.length-1)):B},set:function(Q){Q=Q.toString(),B=this instanceof tt?"/"+Q:Q}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var L,y=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return y},set:function(Q){Q=!!Q,y=Q}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(L)return L},set:function(Q){L=Q}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,1)},set:function(Q){Q?this.Ff=Re(this.Ff,1):this.Ff=je(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,2)},set:function(Q){Q?this.Ff=Re(this.Ff,2):this.Ff=je(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,3)},set:function(Q){Q?this.Ff=Re(this.Ff,3):this.Ff=je(this.Ff,3)}});var S=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(S!==null)return S},set:function(Q){if([0,1,2].indexOf(Q)===-1)throw new Error('Invalid value "'+Q+'" for attribute Q supplied.');S=Q}}),Object.defineProperty(this,"textAlign",{get:function(){var Q;switch(S){case 0:default:Q="left";break;case 1:Q="center";break;case 2:Q="right"}return Q},configurable:!0,enumerable:!0,set:function(Q){switch(Q){case"right":case 2:S=2;break;case"center":case 1:S=1;break;case"left":case 0:default:S=0}}})};It(fr,br);var _i=function(){fr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return s0(A,this.objId,this.scope)},set:function(e){var r,n;n=[],typeof(r=e)=="string"&&(n=function(i,s,c){c||(c=1);for(var u,h=[];u=s.exec(i);)h.push(u[c]);return h}(r,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(e){A=e,this.sort&&A.sort()},this.addOption=function(e){e=(e=e||"").toString(),A.push(e),this.sort&&A.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();A.indexOf(e)!==-1&&(A.splice(A.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,18)},set:function(e){e?this.Ff=Re(this.Ff,18):this.Ff=je(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Re(this.Ff,19):this.Ff=je(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,20)},set:function(e){e?(this.Ff=Re(this.Ff,20),A.sort()):this.Ff=je(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,22)},set:function(e){e?this.Ff=Re(this.Ff,22):this.Ff=je(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,23)},set:function(e){e?this.Ff=Re(this.Ff,23):this.Ff=je(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,27)},set:function(e){e?this.Ff=Re(this.Ff,27):this.Ff=je(this.Ff,27)}}),this.hasAppearanceStream=!1};It(_i,fr);var Di=function(){_i.call(this),this.fontName="helvetica",this.combo=!1};It(Di,_i);var Ti=function(){Di.call(this),this.combo=!0};It(Ti,Di);var uo=function(){Ti.call(this),this.edit=!0};It(uo,Ti);var tt=function(){fr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,15)},set:function(e){e?this.Ff=Re(this.Ff,15):this.Ff=je(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,16)},set:function(e){e?this.Ff=Re(this.Ff,16):this.Ff=je(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,17)},set:function(e){e?this.Ff=Re(this.Ff,17):this.Ff=je(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,26)},set:function(e){e?this.Ff=Re(this.Ff,26):this.Ff=je(this.Ff,26)}});var t,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(A).length!==0){var r,n=[];for(r in n.push("<<"),A)n.push("/"+r+" ("+jn(e(A[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(e){Fe(e)==="object"&&(A=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(e){typeof e=="string"&&(A.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};It(tt,fr);var lo=function(){tt.call(this),this.pushButton=!0};It(lo,tt);var Pi=function(){tt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A!==void 0?A:[]}})};It(Pi,tt);var bo=function(){var t,A;fr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(c){return c};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,s=[];for(i in s.push("<<"),r)s.push("/"+i+" ("+jn(n(r[i]))+")");return s.push(">>"),s.join(`
`)},set:function(n){Fe(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=OA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};It(bo,fr),Pi.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var e=this.Kids[A];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},Pi.prototype.createOption=function(t){var A=new bo;return A.Parent=this,A.optionName=t,this.Kids.push(A),o5.call(this.scope,A),A};var fo=function(){tt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=OA.CheckBox.createAppearanceStream()};It(fo,tt);var Rn=function(){fr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,13)},set:function(A){A?this.Ff=Re(this.Ff,13):this.Ff=je(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,21)},set:function(A){A?this.Ff=Re(this.Ff,21):this.Ff=je(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,23)},set:function(A){A?this.Ff=Re(this.Ff,23):this.Ff=je(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,24)},set:function(A){A?this.Ff=Re(this.Ff,24):this.Ff=je(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,25)},set:function(A){A?this.Ff=Re(this.Ff,25):this.Ff=je(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,26)},set:function(A){A?this.Ff=Re(this.Ff,26):this.Ff=je(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(A){Number.isInteger(A)&&(t=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};It(Rn,fr);var ho=function(){Rn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ke(this.Ff,14)},set:function(t){t?this.Ff=Re(this.Ff,14):this.Ff=je(this.Ff,14)}}),this.password=!0};It(ho,Rn);var OA={CheckBox:{createAppearanceStream:function(){return{N:{On:OA.CheckBox.YesNormal},D:{On:OA.CheckBox.YesPushDown,Off:OA.CheckBox.OffPushDown}}},YesPushDown:function(t){var A=yr(t);A.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=Pu(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+ZA(OA.internal.getWidth(t))+" "+ZA(OA.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+ZA(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),A.stream=e.join(`
`),A},YesNormal:function(t){var A=yr(t);A.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),n=[],i=OA.internal.getHeight(t),s=OA.internal.getWidth(t),c=Pu(t,t.caption);return n.push("1 g"),n.push("0 0 "+ZA(s)+" "+ZA(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ZA(s-1)+" "+ZA(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+ZA(c.fontSize)+" Tf "+r),n.push(c.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
`),A},OffPushDown:function(t){var A=yr(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ZA(OA.internal.getWidth(t))+" "+ZA(OA.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
`),A}},RadioButton:{Circle:{createAppearanceStream:function(t){var A={D:{Off:OA.RadioButton.Circle.OffPushDown},N:{}};return A.N[t]=OA.RadioButton.Circle.YesNormal,A.D[t]=OA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(t){var A=yr(t);A.scope=t.scope;var e=[],r=OA.internal.getWidth(t)<=OA.internal.getHeight(t)?OA.internal.getWidth(t)/4:OA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=OA.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+cn(OA.internal.getWidth(t)/2)+" "+cn(OA.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
`),A},YesPushDown:function(t){var A=yr(t);A.scope=t.scope;var e=[],r=OA.internal.getWidth(t)<=OA.internal.getHeight(t)?OA.internal.getWidth(t)/4:OA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*OA.internal.Bezier_C).toFixed(5)),s=Number((r*OA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+cn(OA.internal.getWidth(t)/2)+" "+cn(OA.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+cn(OA.internal.getWidth(t)/2)+" "+cn(OA.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
`),A},OffPushDown:function(t){var A=yr(t);A.scope=t.scope;var e=[],r=OA.internal.getWidth(t)<=OA.internal.getHeight(t)?OA.internal.getWidth(t)/4:OA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*OA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+cn(OA.internal.getWidth(t)/2)+" "+cn(OA.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
`),A}},Cross:{createAppearanceStream:function(t){var A={D:{Off:OA.RadioButton.Cross.OffPushDown},N:{}};return A.N[t]=OA.RadioButton.Cross.YesNormal,A.D[t]=OA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(t){var A=yr(t);A.scope=t.scope;var e=[],r=OA.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+ZA(OA.internal.getWidth(t)-2)+" "+ZA(OA.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(ZA(r.x1.x)+" "+ZA(r.x1.y)+" m"),e.push(ZA(r.x2.x)+" "+ZA(r.x2.y)+" l"),e.push(ZA(r.x4.x)+" "+ZA(r.x4.y)+" m"),e.push(ZA(r.x3.x)+" "+ZA(r.x3.y)+" l"),e.push("s"),e.push("Q"),A.stream=e.join(`
`),A},YesPushDown:function(t){var A=yr(t);A.scope=t.scope;var e=OA.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+ZA(OA.internal.getWidth(t))+" "+ZA(OA.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ZA(OA.internal.getWidth(t)-2)+" "+ZA(OA.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(ZA(e.x1.x)+" "+ZA(e.x1.y)+" m"),r.push(ZA(e.x2.x)+" "+ZA(e.x2.y)+" l"),r.push(ZA(e.x4.x)+" "+ZA(e.x4.y)+" m"),r.push(ZA(e.x3.x)+" "+ZA(e.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
`),A},OffPushDown:function(t){var A=yr(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ZA(OA.internal.getWidth(t))+" "+ZA(OA.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
`),A}}},createDefaultAppearanceStream:function(t){var A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+A+" "+t.fontSize+" Tf "+e}};OA.internal={Bezier_C:.551915024494,calculateCross:function(t){var A=OA.internal.getWidth(t),e=OA.internal.getHeight(t),r=Math.min(A,e);return{x1:{x:(A-r)/2,y:(e-r)/2+r},x2:{x:(A-r)/2+r,y:(e-r)/2},x3:{x:(A-r)/2,y:(e-r)/2},x4:{x:(A-r)/2+r,y:(e-r)/2+r}}}},OA.internal.getWidth=function(t){var A=0;return Fe(t)==="object"&&(A=Sf(t.Rect[2])),A},OA.internal.getHeight=function(t){var A=0;return Fe(t)==="object"&&(A=Sf(t.Rect[3])),A};var o5=De.addField=function(t){if(s5(this,t),!(t instanceof fr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=t).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};De.AcroFormChoiceField=_i,De.AcroFormListBox=Di,De.AcroFormComboBox=Ti,De.AcroFormEditBox=uo,De.AcroFormButton=tt,De.AcroFormPushButton=lo,De.AcroFormRadioButton=Pi,De.AcroFormCheckBox=fo,De.AcroFormTextField=Rn,De.AcroFormPasswordField=ho,De.AcroFormAppearance=OA,De.AcroForm={ChoiceField:_i,ListBox:Di,ComboBox:Ti,EditBox:uo,Button:tt,PushButton:lo,RadioButton:Pi,CheckBox:fo,TextField:Rn,PasswordField:ho,Appearance:OA},VA.AcroForm={ChoiceField:_i,ListBox:Di,ComboBox:Ti,EditBox:uo,Button:tt,PushButton:lo,RadioButton:Pi,CheckBox:fo,TextField:Rn,PasswordField:ho,Appearance:OA};function u0(t){return t.reduce(function(A,e,r){return A[e]=r,A},{})}(function(t){t.__addimage__={};var A="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(I,H){var K,M,uA,iA,cA,eA=A;if((H=H||A)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if($(I))for(cA in e)for(uA=e[cA],K=0;K<uA.length;K+=1){for(iA=!0,M=0;M<uA[K].length;M+=1)if(uA[K][M]!==void 0&&uA[K][M]!==I[M]){iA=!1;break}if(iA===!0){eA=cA;break}}else for(cA in e)for(uA=e[cA],K=0;K<uA.length;K+=1){for(iA=!0,M=0;M<uA[K].length;M+=1)if(uA[K][M]!==void 0&&uA[K][M]!==I.charCodeAt(M)){iA=!1;break}if(iA===!0){eA=cA;break}}return eA===A&&H!==A&&(eA=H),eA},n=function I(H){for(var K=this.internal.write,M=this.internal.putStream,uA=(0,this.internal.getFilters)();uA.indexOf("FlateEncode")!==-1;)uA.splice(uA.indexOf("FlateEncode"),1);H.objectId=this.internal.newObject();var iA=[];if(iA.push({key:"Type",value:"/XObject"}),iA.push({key:"Subtype",value:"/Image"}),iA.push({key:"Width",value:H.width}),iA.push({key:"Height",value:H.height}),H.colorSpace===S.INDEXED?iA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(H.palette.length/3-1)+" "+("sMask"in H&&H.sMask!==void 0?H.objectId+2:H.objectId+1)+" 0 R]"}):(iA.push({key:"ColorSpace",value:"/"+H.colorSpace}),H.colorSpace===S.DEVICE_CMYK&&iA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),iA.push({key:"BitsPerComponent",value:H.bitsPerComponent}),"decodeParameters"in H&&H.decodeParameters!==void 0&&iA.push({key:"DecodeParms",value:"<<"+H.decodeParameters+">>"}),"transparency"in H&&Array.isArray(H.transparency)){for(var cA="",eA=0,lA=H.transparency.length;eA<lA;eA++)cA+=H.transparency[eA]+" "+H.transparency[eA]+" ";iA.push({key:"Mask",value:"["+cA+"]"})}H.sMask!==void 0&&iA.push({key:"SMask",value:H.objectId+1+" 0 R"});var BA=H.filter!==void 0?["/"+H.filter]:void 0;if(M({data:H.data,additionalKeyValues:iA,alreadyAppliedFilters:BA,objectId:H.objectId}),K("endobj"),"sMask"in H&&H.sMask!==void 0){var UA="/Predictor "+H.predictor+" /Colors 1 /BitsPerComponent "+H.bitsPerComponent+" /Columns "+H.width,F={width:H.width,height:H.height,colorSpace:"DeviceGray",bitsPerComponent:H.bitsPerComponent,decodeParameters:UA,data:H.sMask};"filter"in H&&(F.filter=H.filter),I.call(this,F)}if(H.colorSpace===S.INDEXED){var _=this.internal.newObject();M({data:P(new Uint8Array(H.palette)),objectId:_}),K("endobj")}},i=function(){var I=this.internal.collections.addImage_images;for(var H in I)n.call(this,I[H])},s=function(){var I,H=this.internal.collections.addImage_images,K=this.internal.write;for(var M in H)K("/I"+(I=H[M]).index,I.objectId,"0","R")},c=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var I=this.internal.collections.addImage_images;return c.call(this),I},h=function(){return Object.keys(this.internal.collections.addImage_images).length},g=function(I){return typeof t["process"+I.toUpperCase()]=="function"},d=function(I){return Fe(I)==="object"&&I.nodeType===1},w=function(I,H){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var K=""+I.getAttribute("src");if(K.indexOf("data:image/")===0)return Da(unescape(K).split("base64,").pop());var M=t.loadFile(K,!0);if(M!==void 0)return M}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var uA;switch(H){case"PNG":uA="image/png";break;case"WEBP":uA="image/webp";break;case"JPEG":case"JPG":default:uA="image/jpeg"}return Da(I.toDataURL(uA,1).split("base64,").pop())}},B=function(I){var H=this.internal.collections.addImage_images;if(H){for(var K in H)if(I===H[K].alias)return H[K]}},L=function(I,H,K){return I||H||(I=-96,H=-96),I<0&&(I=-1*K.width*72/I/this.internal.scaleFactor),H<0&&(H=-1*K.height*72/H/this.internal.scaleFactor),I===0&&(I=H*K.width/K.height),H===0&&(H=I*K.height/K.width),[I,H]},y=function(I,H,K,M,uA,iA){var cA=L.call(this,K,M,uA),eA=this.internal.getCoordinateString,lA=this.internal.getVerticalCoordinateString,BA=u.call(this);if(K=cA[0],M=cA[1],BA[uA.index]=uA,iA){iA*=Math.PI/180;var UA=Math.cos(iA),F=Math.sin(iA),_=function(k){return k.toFixed(4)},T=[_(UA),_(F),_(-1*F),_(UA),0,0,"cm"]}this.internal.write("q"),iA?(this.internal.write([1,"0","0",1,eA(I),lA(H+M),"cm"].join(" ")),this.internal.write(T.join(" ")),this.internal.write([eA(K),"0","0",eA(M),"0","0","cm"].join(" "))):this.internal.write([eA(K),"0","0",eA(M),eA(I),lA(H+M),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+uA.index+" Do"),this.internal.write("Q")},S=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Q=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x=t.__addimage__.sHashCode=function(I){var H,K,M=0;if(typeof I=="string")for(K=I.length,H=0;H<K;H++)M=(M<<5)-M+I.charCodeAt(H),M|=0;else if($(I))for(K=I.byteLength/2,H=0;H<K;H++)M=(M<<5)-M+I[H],M|=0;return M},R=t.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var H=!0;return I.length===0&&(H=!1),I.length%4!=0&&(H=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(H=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(H=!1),H},Y=t.__addimage__.extractImageFromDataUrl=function(I){var H=(I=I||"").split("base64,"),K=null;if(H.length===2){var M=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(H[0]);Array.isArray(M)&&(K={mimeType:M[1],charset:M[2],data:H[1]})}return K},Z=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(I){return Z()&&I instanceof ArrayBuffer};var $=t.__addimage__.isArrayBufferView=function(I){return Z()&&typeof Uint32Array<"u"&&(I instanceof Int8Array||I instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array)},X=t.__addimage__.binaryStringToUint8Array=function(I){for(var H=I.length,K=new Uint8Array(H),M=0;M<H;M++)K[M]=I.charCodeAt(M);return K},P=t.__addimage__.arrayBufferToBinaryString=function(I){for(var H="",K=$(I)?I:new Uint8Array(I),M=0;M<K.length;M+=8192)H+=String.fromCharCode.apply(null,K.subarray(M,M+8192));return H};t.addImage=function(){var I,H,K,M,uA,iA,cA,eA,lA;if(typeof arguments[1]=="number"?(H=A,K=arguments[1],M=arguments[2],uA=arguments[3],iA=arguments[4],cA=arguments[5],eA=arguments[6],lA=arguments[7]):(H=arguments[1],K=arguments[2],M=arguments[3],uA=arguments[4],iA=arguments[5],cA=arguments[6],eA=arguments[7],lA=arguments[8]),Fe(I=arguments[0])==="object"&&!d(I)&&"imageData"in I){var BA=I;I=BA.imageData,H=BA.format||H||A,K=BA.x||K||0,M=BA.y||M||0,uA=BA.w||BA.width||uA,iA=BA.h||BA.height||iA,cA=BA.alias||cA,eA=BA.compression||eA,lA=BA.rotation||BA.angle||lA}var UA=this.internal.getFilters();if(eA===void 0&&UA.indexOf("FlateEncode")!==-1&&(eA="SLOW"),isNaN(K)||isNaN(M))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var F=q.call(this,I,H,cA,eA);return y.call(this,K,M,uA,iA,F,lA),this};var q=function(I,H,K,M){var uA,iA,cA;if(typeof I=="string"&&r(I)===A){I=unescape(I);var eA=oA(I,!1);(eA!==""||(eA=t.loadFile(I,!0))!==void 0)&&(I=eA)}if(d(I)&&(I=w(I,H)),H=r(I,H),!g(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(((cA=K)==null||cA.length===0)&&(K=function(lA){return typeof lA=="string"||$(lA)?x(lA):$(lA.data)?x(lA.data):null}(I)),(uA=B.call(this,K))||(Z()&&(I instanceof Uint8Array||H==="RGBA"||(iA=I,I=X(I))),uA=this["process"+H.toUpperCase()](I,h.call(this),K,function(lA){return lA&&typeof lA=="string"&&(lA=lA.toUpperCase()),lA in t.image_compression?lA:Q.NONE}(M),iA)),!uA)throw new Error("An unknown error occurred whilst processing the image.");return uA},oA=t.__addimage__.convertBase64ToBinaryString=function(I,H){var K;H=typeof H!="boolean"||H;var M,uA="";if(typeof I=="string"){M=(K=Y(I))!==null?K.data:I;try{uA=Da(M)}catch(iA){if(H)throw R(M)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+iA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return uA};t.getImageProperties=function(I){var H,K,M="";if(d(I)&&(I=w(I)),typeof I=="string"&&r(I)===A&&((M=oA(I,!1))===""&&(M=t.loadFile(I)||""),I=M),K=r(I),!g(K))throw new Error("addImage does not support files of type '"+K+"', please ensure that a plugin for '"+K+"' support is added.");if(!Z()||I instanceof Uint8Array||(I=X(I)),!(H=this["process"+K.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return H.fileType=K,H}})(VA.API),function(t){var A=function(e){if(e!==void 0&&e!="")return!0};VA.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,n,i,s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(e.objId),h=e.pageContext.annotations,g=!1,d=0;d<h.length&&!g;d++)switch((r=h[d]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var w=0;w<h.length;w++){r=h[w];var B=this.internal.pdfEscape,L=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var y=this.internal.newAdditionalObject(),S=this.internal.newAdditionalObject(),Q=this.internal.getEncryptor(y.objId),x=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(r.bounds.x)+" "+c(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+c(r.bounds.y)+"] ")+"/Contents ("+B(Q(r.contents))+")",i+=" /Popup "+S.objId+" 0 R",i+=" /P "+u.objId+" 0 R",i+=" /T ("+B(Q(x))+") >>",y.content=i;var R=y.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(r.bounds.x+30)+" "+c(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+c(r.bounds.y)+"] ")+" /Parent "+R,r.open&&(i+=" /Open true"),i+=" >>",S.content=i,this.internal.write(y.objId,"0 R",S.objId,"0 R");break;case"freetext":n="/Rect ["+s(r.bounds.x)+" "+c(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+c(r.bounds.y+r.bounds.h)+"] ";var Y=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+B(L(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var Z=this.annotations._nameMap[r.options.name];r.options.pageNumber=Z.page,r.options.top=Z.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+B(L(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var $=c(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+$+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,n,i,s){var c=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;c.pageContext.annotations.push({finalBounds:{x:u(e),y:h(r),w:u(e+n),h:h(r+i)},options:s,type:"link"})},t.textWithLink=function(e,r,n,i){var s,c,u=this.getTextWidth(e),h=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){c=i.maxWidth;var g=this.splitTextToSize(e,c).length;s=Math.ceil(h*g)}else c=u,s=h;return this.text(e,r,n,i),n+=.2*h,i.align==="center"&&(r-=u/2),i.align==="right"&&(r-=u),this.link(r,n-h,c,s,i),u},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}}(VA.API),function(t){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(y){return A[y.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(y){return typeof y=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(y)},c=t.__arabicParser__.isArabicEndLetter=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length<=2},u=t.__arabicParser__.isArabicAlfLetter=function(y){return s(y)&&n.indexOf(y.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=1};var h=t.__arabicParser__.arabicLetterHasFinalForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=3};var g=t.__arabicParser__.arabicLetterHasMedialForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length==4},d=t.__arabicParser__.resolveLigatures=function(y){var S=0,Q=e,x="",R=0;for(S=0;S<y.length;S+=1)Q[y.charCodeAt(S)]!==void 0?(R++,typeof(Q=Q[y.charCodeAt(S)])=="number"&&(x+=String.fromCharCode(Q),Q=e,R=0),S===y.length-1&&(Q=e,x+=y.charAt(S-(R-1)),S-=R-1,R=0)):(Q=e,x+=y.charAt(S-R),S-=R,R=0);return x};t.__arabicParser__.isArabicDiacritic=function(y){return y!==void 0&&r[y.charCodeAt(0)]!==void 0};var w=t.__arabicParser__.getCorrectForm=function(y,S,Q){return s(y)?i(y)===!1?-1:!h(y)||!s(S)&&!s(Q)||!s(Q)&&c(S)||c(y)&&!s(S)||c(y)&&u(S)||c(y)&&c(S)?0:g(y)&&s(S)&&!c(S)&&s(Q)&&h(Q)?3:c(y)||!s(Q)?1:2:-1},B=function(y){var S=0,Q=0,x=0,R="",Y="",Z="",$=(y=y||"").split("\\s+"),X=[];for(S=0;S<$.length;S+=1){for(X.push(""),Q=0;Q<$[S].length;Q+=1)R=$[S][Q],Y=$[S][Q-1],Z=$[S][Q+1],s(R)?(x=w(R,Y,Z),X[S]+=x!==-1?String.fromCharCode(A[R.charCodeAt(0)][x]):R):X[S]+=R;X[S]=d(X[S])}return X.join(" ")},L=t.__arabicParser__.processArabic=t.processArabic=function(){var y,S=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Q=[];if(Array.isArray(S)){var x=0;for(Q=[],x=0;x<S.length;x+=1)Array.isArray(S[x])?Q.push([B(S[x][0]),S[x][1],S[x][2]]):Q.push([B(S[x])]);y=Q}else y=B(S);return typeof arguments[0]=="string"?y:(arguments[0].text=y,arguments[0])};t.events.push(["preProcessText",L])}(VA.API),VA.API.autoPrint=function(t){var A;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+A+" 0 R")})}return this},function(t){var A=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(c){e=c}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(c){r=isNaN(c)||Number.isInteger(c)===!1||c<0?150:c,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(c){n=isNaN(c)||Number.isInteger(c)===!1||c<0?300:c,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(c){i=c}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(c){s=c}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(e,r){var n;if((e=e||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(VA.API),function(t){var A={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(y){u=y}});var h=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return h},set:function(y){h=y}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(y){g=y}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(y){d=y}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(y){w=y}});var B=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return B},set:function(y){B=y}});var L=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return L},set:function(y){L=y}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(u){return r.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},t.getTextDimensions=function(u,h){r.call(this);var g=(h=h||{}).fontSize||this.getFontSize(),d=h.font||this.getFont(),w=h.scaleFactor||this.internal.scaleFactor,B=0,L=0,y=0,S=this;if(!Array.isArray(u)&&typeof u!="string"){if(typeof u!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");u=String(u)}var Q=h.maxWidth;Q>0?typeof u=="string"?u=this.splitTextToSize(u,Q):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(R,Y){return R.concat(S.splitTextToSize(Y,Q))},[])):u=Array.isArray(u)?u:[u];for(var x=0;x<u.length;x++)B<(y=this.getStringUnitWidth(u[x],{font:d})*g)&&(B=y);return B!==0&&(L=u.length),{w:B/=w,h:Math.max((L*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/w,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var u=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var u;u=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var h=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,d=this.internal.__cell__.margins||A,w=this.internal.__cell__.tableHeaderRow,B=this.internal.__cell__.printHeaders;return h.lineNumber!==void 0&&(h.lineNumber===u.lineNumber?(u.x=(h.x||0)+(h.width||0),u.y=h.y||0):h.y+h.height+u.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=d.top,B&&w&&(this.printHeaderRow(u.lineNumber,!0),u.y+=w[0].height)):u.y=h.y+h.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,e===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-g,u.y+g,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+g,{align:"center",baseline:"top",maxWidth:u.width-g-g}):this.text(u.text,u.x+g,u.y+g,{align:"left",baseline:"top",maxWidth:u.width-g-g})),this.internal.__cell__.lastCell=u,this};t.table=function(u,h,g,d,w){if(r.call(this),!g)throw new Error("No data for PDF table.");var B,L,y,S,Q=[],x=[],R=[],Y={},Z={},$=[],X=[],P=(w=w||{}).autoSize||!1,q=w.printHeaders!==!1,oA=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,I=w.margins||Object.assign({width:this.getPageWidth()},A),H=typeof w.padding=="number"?w.padding:3,K=w.headerBackgroundColor||"#c8c8c8",M=w.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=q,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=oA,this.internal.__cell__.padding=H,this.internal.__cell__.headerBackgroundColor=K,this.internal.__cell__.headerTextColor=M,this.setFontSize(oA),d==null)x=Q=Object.keys(g[0]),R=Q.map(function(){return"left"});else if(Array.isArray(d)&&Fe(d[0])==="object")for(Q=d.map(function(BA){return BA.name}),x=d.map(function(BA){return BA.prompt||BA.name||""}),R=d.map(function(BA){return BA.align||"left"}),B=0;B<d.length;B+=1)Z[d[B].name]=d[B].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(x=Q=d,R=Q.map(function(){return"left"}));if(P||Array.isArray(d)&&typeof d[0]=="string")for(B=0;B<Q.length;B+=1){for(Y[S=Q[B]]=g.map(function(BA){return BA[S]}),this.setFont(void 0,"bold"),$.push(this.getTextDimensions(x[B],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),L=Y[S],this.setFont(void 0,"normal"),y=0;y<L.length;y+=1)$.push(this.getTextDimensions(L[y],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Z[S]=Math.max.apply(null,$)+H+H,$=[]}if(q){var uA={};for(B=0;B<Q.length;B+=1)uA[Q[B]]={},uA[Q[B]].text=x[B],uA[Q[B]].align=R[B];var iA=c.call(this,uA,Z);X=Q.map(function(BA){return new i(u,h,Z[BA],iA,uA[BA].text,void 0,uA[BA].align)}),this.setTableHeaderRow(X),this.printHeaderRow(1,!1)}var cA=d.reduce(function(BA,UA){return BA[UA.name]=UA.align,BA},{});for(B=0;B<g.length;B+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:B,data:g[B]},this);var eA=c.call(this,g[B],Z);for(y=0;y<Q.length;y+=1){var lA=g[B][Q[y]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:B,col:y,data:lA},this),s.call(this,new i(u,h,Z[Q[y]],eA,lA,B+2,cA[Q[y]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=h,this};var c=function(u,h){var g=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(u).map(function(B){var L=u[B];return this.splitTextToSize(L.hasOwnProperty("text")?L.text:L,h[B]-g-g)},this).map(function(B){return this.getLineHeightFactor()*B.length*d/w+g+g},this).reduce(function(B,L){return Math.max(B,L)},0)};t.setTableHeaderRow=function(u){r.call(this),this.internal.__cell__.tableHeaderRow=u},t.printHeaderRow=function(u,h){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],B=0;B<this.internal.__cell__.tableHeaderRow.length;B+=1){g=this.internal.__cell__.tableHeaderRow[B].clone(),h&&(g.y=this.internal.__cell__.margins.top||0,w.push(g)),g.lineNumber=u;var L=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,g),this.setTextColor(L)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),e=!1}}(VA.API);var l0={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},f0=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ou=u0(f0),h0=[100,200,300,400,500,600,700,800,900],c5=u0(h0);function Mu(t){var A=t.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return l0[i=i||"normal"]?i:"normal"}(t.style),r=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(t.weight),n=function(i){return typeof Ou[i=i||"normal"]=="number"?i:"normal"}(t.stretch);return{family:A,style:e,weight:r,stretch:n,src:t.src||[],ref:t.ref||{name:A,style:[n,e,r].join(" ")}}}function Nf(t,A,e,r){var n;for(n=e;n>=0&&n<A.length;n+=r)if(t[A[n]])return t[A[n]];for(n=e;n>=0&&n<A.length;n-=r)if(t[A[n]])return t[A[n]]}var u5={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},_f={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Df(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function l5(t,A,e){for(var r=(e=e||{}).defaultFontFamily||"times",n=Object.assign({},u5,e.genericFontFamilies||{}),i=null,s=null,c=0;c<A.length;++c)if(n[(i=Mu(A[c])).family]&&(i.family=n[i.family]),t.hasOwnProperty(i.family)){s=t[i.family];break}if(!(s=s||t[r]))throw new Error("Could not find a font-family for the rule '"+Df(i)+"' and default family '"+r+"'.");if(s=function(u,h){if(h[u])return h[u];var g=Ou[u],d=g<=Ou.normal?-1:1,w=Nf(h,f0,g,d);if(!w)throw new Error("Could not find a matching font-stretch value for "+u);return w}(i.stretch,s),s=function(u,h){if(h[u])return h[u];for(var g=l0[u],d=0;d<g.length;++d)if(h[g[d]])return h[g[d]];throw new Error("Could not find a matching font-style for "+u)}(i.style,s),!(s=function(u,h){if(h[u])return h[u];if(u===400&&h[500])return h[500];if(u===500&&h[400])return h[400];var g=c5[u],d=Nf(h,h0,g,u<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+u);return d}(i.weight,s)))throw new Error("Failed to resolve a font for the rule '"+Df(i)+"'.");return s}function Tf(t){return t.trimLeft()}function f5(t,A){for(var e=0;e<t.length;){if(t.charAt(e)===A)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function h5(t){var A=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],t.substring(A[0].length)]}var ro,Pf,Of,ru=["times"];(function(t){var A,e,r,n,i,s,c,u,h,g=function(F){return F=F||{},this.isStrokeTransparent=F.isStrokeTransparent||!1,this.strokeOpacity=F.strokeOpacity||1,this.strokeStyle=F.strokeStyle||"#000000",this.fillStyle=F.fillStyle||"#000000",this.isFillTransparent=F.isFillTransparent||!1,this.fillOpacity=F.fillOpacity||1,this.font=F.font||"10px sans-serif",this.textBaseline=F.textBaseline||"alphabetic",this.textAlign=F.textAlign||"left",this.lineWidth=F.lineWidth||1,this.lineJoin=F.lineJoin||"miter",this.lineCap=F.lineCap||"butt",this.path=F.path||[],this.transform=F.transform!==void 0?F.transform.clone():new u,this.globalCompositeOperation=F.globalCompositeOperation||"normal",this.globalAlpha=F.globalAlpha||1,this.clip_path=F.clip_path||[],this.currentPoint=F.currentPoint||new s,this.miterLimit=F.miterLimit||10,this.lastPoint=F.lastPoint||new s,this.lineDashOffset=F.lineDashOffset||0,this.lineDash=F.lineDash||[],this.margin=F.margin||[0,0,0,0],this.prevPageLastElemOffset=F.prevPageLastElemOffset||0,this.ignoreClearRect=typeof F.ignoreClearRect!="boolean"||F.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),A=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,c=this.internal.Rectangle,u=this.internal.Matrix,h=new g}]);var d=function(F){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _=F;Object.defineProperty(this,"pdf",{get:function(){return _}});var T=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return T},set:function(gA){T=!!gA}});var k=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return k},set:function(gA){k=!!gA}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(gA){isNaN(gA)||(J=gA)}});var nA=0;Object.defineProperty(this,"posY",{get:function(){return nA},set:function(gA){isNaN(gA)||(nA=gA)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(gA){var O;typeof gA=="number"?O=[gA,gA,gA,gA]:((O=new Array(4))[0]=gA[0],O[1]=gA.length>=2?gA[1]:O[0],O[2]=gA.length>=3?gA[2]:O[0],O[3]=gA.length>=4?gA[3]:O[1]),h.margin=O}});var aA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return aA},set:function(gA){aA=gA}});var sA=0;Object.defineProperty(this,"lastBreak",{get:function(){return sA},set:function(gA){sA=gA}});var FA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return FA},set:function(gA){FA=gA}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(gA){gA instanceof g&&(h=gA)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(gA){h.path=gA}});var QA=[];Object.defineProperty(this,"ctxStack",{get:function(){return QA},set:function(gA){QA=gA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(gA){var O;O=w(gA),this.ctx.fillStyle=O.style,this.ctx.isFillTransparent=O.a===0,this.ctx.fillOpacity=O.a,this.pdf.setFillColor(O.r,O.g,O.b,{a:O.a}),this.pdf.setTextColor(O.r,O.g,O.b,{a:O.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(gA){var O=w(gA);this.ctx.strokeStyle=O.style,this.ctx.isStrokeTransparent=O.a===0,this.ctx.strokeOpacity=O.a,O.a===0?this.pdf.setDrawColor(255,255,255):(O.a,this.pdf.setDrawColor(O.r,O.g,O.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(gA){["butt","round","square"].indexOf(gA)!==-1&&(this.ctx.lineCap=gA,this.pdf.setLineCap(gA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(gA){isNaN(gA)||(this.ctx.lineWidth=gA,this.pdf.setLineWidth(gA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(gA){["bevel","round","miter"].indexOf(gA)!==-1&&(this.ctx.lineJoin=gA,this.pdf.setLineJoin(gA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(gA){isNaN(gA)||(this.ctx.miterLimit=gA,this.pdf.setMiterLimit(gA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(gA){this.ctx.textBaseline=gA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(gA){["right","end","center","left","start"].indexOf(gA)!==-1&&(this.ctx.textAlign=gA)}});var IA=null;function LA(gA,O){if(IA===null){var $A=function(MA){var CA=[];return Object.keys(MA).forEach(function(yA){MA[yA].forEach(function(HA){var xA=null;switch(HA){case"bold":xA={family:yA,weight:"bold"};break;case"italic":xA={family:yA,style:"italic"};break;case"bolditalic":xA={family:yA,weight:"bold",style:"italic"};break;case"":case"normal":xA={family:yA}}xA!==null&&(xA.ref={name:yA,style:HA},CA.push(xA))})}),CA}(gA.getFontList());IA=function(MA){for(var CA={},yA=0;yA<MA.length;++yA){var HA=Mu(MA[yA]),xA=HA.family,KA=HA.stretch,XA=HA.style,te=HA.weight;CA[xA]=CA[xA]||{},CA[xA][KA]=CA[xA][KA]||{},CA[xA][KA][XA]=CA[xA][KA][XA]||{},CA[xA][KA][XA][te]=HA}return CA}($A.concat(O))}return IA}var GA=null;Object.defineProperty(this,"fontFaces",{get:function(){return GA},set:function(gA){IA=null,GA=gA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(gA){var O;if(this.ctx.font=gA,(O=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(gA))!==null){var $A=O[1],MA=(O[2],O[3]),CA=O[4],yA=(O[5],O[6]),HA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(CA)[2];CA=Math.floor(HA==="px"?parseFloat(CA)*this.pdf.internal.scaleFactor:HA==="em"?parseFloat(CA)*this.pdf.getFontSize():parseFloat(CA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(CA);var xA=function(WA){var ne,SA,ot=[],ue=WA.trim();if(ue==="")return ru;if(ue in _f)return[_f[ue]];for(;ue!=="";){switch(SA=null,ne=(ue=Tf(ue)).charAt(0)){case'"':case"'":SA=f5(ue.substring(1),ne);break;default:SA=h5(ue)}if(SA===null||(ot.push(SA[0]),(ue=Tf(SA[1]))!==""&&ue.charAt(0)!==","))return ru;ue=ue.replace(/^,/,"")}return ot}(yA);if(this.fontFaces){var KA=l5(LA(this.pdf,this.fontFaces),xA.map(function(WA){return{family:WA,stretch:"normal",weight:MA,style:$A}}));this.pdf.setFont(KA.ref.name,KA.ref.style)}else{var XA="";(MA==="bold"||parseInt(MA,10)>=700||$A==="bold")&&(XA="bold"),$A==="italic"&&(XA+="italic"),XA.length===0&&(XA="normal");for(var te="",re={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},oe=0;oe<xA.length;oe++){if(this.pdf.internal.getFont(xA[oe],XA,{noFallback:!0,disableWarning:!0})!==void 0){te=xA[oe];break}if(XA==="bolditalic"&&this.pdf.internal.getFont(xA[oe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)te=xA[oe],XA="bold";else if(this.pdf.internal.getFont(xA[oe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){te=xA[oe],XA="normal";break}}if(te===""){for(var pe=0;pe<xA.length;pe++)if(re[xA[pe]]){te=re[xA[pe]];break}}te=te===""?"Times":te,this.pdf.setFont(te,XA)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(gA){this.ctx.globalCompositeOperation=gA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(gA){this.ctx.globalAlpha=gA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(gA){this.ctx.lineDashOffset=gA,UA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(gA){this.ctx.lineDash=gA,UA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(gA){this.ctx.ignoreClearRect=!!gA}})};d.prototype.setLineDash=function(F){this.lineDash=F},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){Y.call(this,"fill",!1)},d.prototype.stroke=function(){Y.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(F,_){if(isNaN(F)||isNaN(_))throw Qe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var T=this.ctx.transform.applyToPoint(new s(F,_));this.path.push({type:"mt",x:T.x,y:T.y}),this.ctx.lastPoint=new s(F,_)},d.prototype.closePath=function(){var F=new s(0,0),_=0;for(_=this.path.length-1;_!==-1;_--)if(this.path[_].type==="begin"&&Fe(this.path[_+1])==="object"&&typeof this.path[_+1].x=="number"){F=new s(this.path[_+1].x,this.path[_+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(F.x,F.y)},d.prototype.lineTo=function(F,_){if(isNaN(F)||isNaN(_))throw Qe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var T=this.ctx.transform.applyToPoint(new s(F,_));this.path.push({type:"lt",x:T.x,y:T.y}),this.ctx.lastPoint=new s(T.x,T.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Y.call(this,null,!0)},d.prototype.quadraticCurveTo=function(F,_,T,k){if(isNaN(T)||isNaN(k)||isNaN(F)||isNaN(_))throw Qe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new s(T,k)),nA=this.ctx.transform.applyToPoint(new s(F,_));this.path.push({type:"qct",x1:nA.x,y1:nA.y,x:J.x,y:J.y}),this.ctx.lastPoint=new s(J.x,J.y)},d.prototype.bezierCurveTo=function(F,_,T,k,J,nA){if(isNaN(J)||isNaN(nA)||isNaN(F)||isNaN(_)||isNaN(T)||isNaN(k))throw Qe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var aA=this.ctx.transform.applyToPoint(new s(J,nA)),sA=this.ctx.transform.applyToPoint(new s(F,_)),FA=this.ctx.transform.applyToPoint(new s(T,k));this.path.push({type:"bct",x1:sA.x,y1:sA.y,x2:FA.x,y2:FA.y,x:aA.x,y:aA.y}),this.ctx.lastPoint=new s(aA.x,aA.y)},d.prototype.arc=function(F,_,T,k,J,nA){if(isNaN(F)||isNaN(_)||isNaN(T)||isNaN(k)||isNaN(J))throw Qe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(nA=!!nA,!this.ctx.transform.isIdentity){var aA=this.ctx.transform.applyToPoint(new s(F,_));F=aA.x,_=aA.y;var sA=this.ctx.transform.applyToPoint(new s(0,T)),FA=this.ctx.transform.applyToPoint(new s(0,0));T=Math.sqrt(Math.pow(sA.x-FA.x,2)+Math.pow(sA.y-FA.y,2))}Math.abs(J-k)>=2*Math.PI&&(k=0,J=2*Math.PI),this.path.push({type:"arc",x:F,y:_,radius:T,startAngle:k,endAngle:J,counterclockwise:nA})},d.prototype.arcTo=function(F,_,T,k,J){throw new Error("arcTo not implemented.")},d.prototype.rect=function(F,_,T,k){if(isNaN(F)||isNaN(_)||isNaN(T)||isNaN(k))throw Qe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(F,_),this.lineTo(F+T,_),this.lineTo(F+T,_+k),this.lineTo(F,_+k),this.lineTo(F,_),this.lineTo(F+T,_),this.lineTo(F,_)},d.prototype.fillRect=function(F,_,T,k){if(isNaN(F)||isNaN(_)||isNaN(T)||isNaN(k))throw Qe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!B.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(F,_,T,k),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},d.prototype.strokeRect=function(F,_,T,k){if(isNaN(F)||isNaN(_)||isNaN(T)||isNaN(k))throw Qe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");L.call(this)||(this.beginPath(),this.rect(F,_,T,k),this.stroke())},d.prototype.clearRect=function(F,_,T,k){if(isNaN(F)||isNaN(_)||isNaN(T)||isNaN(k))throw Qe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(F,_,T,k))},d.prototype.save=function(F){F=typeof F!="boolean"||F;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,T=0;T<this.pdf.internal.getNumberOfPages();T++)this.pdf.setPage(T+1),this.pdf.internal.out("q");if(this.pdf.setPage(_),F){this.ctx.fontSize=this.pdf.internal.getFontSize();var k=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=k}},d.prototype.restore=function(F){F=typeof F!="boolean"||F;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,T=0;T<this.pdf.internal.getNumberOfPages();T++)this.pdf.setPage(T+1),this.pdf.internal.out("Q");this.pdf.setPage(_),F&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(F){var _,T,k,J;if(F.isCanvasGradient===!0&&(F=F.getColor()),!F)return{r:0,g:0,b:0,a:0,style:F};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(F))_=0,T=0,k=0,J=0;else{var nA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(F);if(nA!==null)_=parseInt(nA[1]),T=parseInt(nA[2]),k=parseInt(nA[3]),J=1;else if((nA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(F))!==null)_=parseInt(nA[1]),T=parseInt(nA[2]),k=parseInt(nA[3]),J=parseFloat(nA[4]);else{if(J=1,typeof F=="string"&&F.charAt(0)!=="#"){var aA=new n0(F);F=aA.ok?aA.toHex():"#000000"}F.length===4?(_=F.substring(1,2),_+=_,T=F.substring(2,3),T+=T,k=F.substring(3,4),k+=k):(_=F.substring(1,3),T=F.substring(3,5),k=F.substring(5,7)),_=parseInt(_,16),T=parseInt(T,16),k=parseInt(k,16)}}return{r:_,g:T,b:k,a:J,style:F}},B=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},L=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(F,_,T,k){if(isNaN(_)||isNaN(T)||typeof F!="string")throw Qe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(k=isNaN(k)?void 0:k,!B.call(this)){var J=eA(this.ctx.transform.rotation),nA=this.ctx.transform.scaleX;H.call(this,{text:F,x:_,y:T,scale:nA,angle:J,align:this.textAlign,maxWidth:k})}},d.prototype.strokeText=function(F,_,T,k){if(isNaN(_)||isNaN(T)||typeof F!="string")throw Qe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!L.call(this)){k=isNaN(k)?void 0:k;var J=eA(this.ctx.transform.rotation),nA=this.ctx.transform.scaleX;H.call(this,{text:F,x:_,y:T,scale:nA,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:k})}},d.prototype.measureText=function(F){if(typeof F!="string")throw Qe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _=this.pdf,T=this.pdf.internal.scaleFactor,k=_.internal.getFontSize(),J=_.getStringUnitWidth(F)*k/_.internal.scaleFactor,nA=function(aA){var sA=(aA=aA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return sA}}),this};return new nA({width:J*=Math.round(96*T/72*1e4)/1e4})},d.prototype.scale=function(F,_){if(isNaN(F)||isNaN(_))throw Qe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var T=new u(F,0,0,_,0,0);this.ctx.transform=this.ctx.transform.multiply(T)},d.prototype.rotate=function(F){if(isNaN(F))throw Qe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _=new u(Math.cos(F),Math.sin(F),-Math.sin(F),Math.cos(F),0,0);this.ctx.transform=this.ctx.transform.multiply(_)},d.prototype.translate=function(F,_){if(isNaN(F)||isNaN(_))throw Qe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var T=new u(1,0,0,1,F,_);this.ctx.transform=this.ctx.transform.multiply(T)},d.prototype.transform=function(F,_,T,k,J,nA){if(isNaN(F)||isNaN(_)||isNaN(T)||isNaN(k)||isNaN(J)||isNaN(nA))throw Qe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var aA=new u(F,_,T,k,J,nA);this.ctx.transform=this.ctx.transform.multiply(aA)},d.prototype.setTransform=function(F,_,T,k,J,nA){F=isNaN(F)?1:F,_=isNaN(_)?0:_,T=isNaN(T)?0:T,k=isNaN(k)?1:k,J=isNaN(J)?0:J,nA=isNaN(nA)?0:nA,this.ctx.transform=new u(F,_,T,k,J,nA)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(F,_,T,k,J,nA,aA,sA,FA){var QA=this.pdf.getImageProperties(F),IA=1,LA=1,GA=1,gA=1;k!==void 0&&sA!==void 0&&(GA=sA/k,gA=FA/J,IA=QA.width/k*sA/k,LA=QA.height/J*FA/J),nA===void 0&&(nA=_,aA=T,_=0,T=0),k!==void 0&&sA===void 0&&(sA=k,FA=J),k===void 0&&sA===void 0&&(sA=QA.width,FA=QA.height);for(var O,$A=this.ctx.transform.decompose(),MA=eA($A.rotate.shx),CA=new u,yA=(CA=(CA=(CA=CA.multiply($A.translate)).multiply($A.skew)).multiply($A.scale)).applyToRectangle(new c(nA-_*GA,aA-T*gA,k*IA,J*LA)),HA=S.call(this,yA),xA=[],KA=0;KA<HA.length;KA+=1)xA.indexOf(HA[KA])===-1&&xA.push(HA[KA]);if(R(xA),this.autoPaging)for(var XA=xA[0],te=xA[xA.length-1],re=XA;re<te+1;re++){this.pdf.setPage(re);var oe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pe=re===1?this.posY+this.margin[0]:this.margin[0],WA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],SA=re===1?0:WA+(re-2)*ne;if(this.ctx.clip_path.length!==0){var ot=this.path;O=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(O,this.posX+this.margin[3],-SA+pe+this.ctx.prevPageLastElemOffset),Z.call(this,"fill",!0),this.path=ot}var ue=JSON.parse(JSON.stringify(yA));ue=x([ue],this.posX+this.margin[3],-SA+pe+this.ctx.prevPageLastElemOffset)[0];var zt=(re>XA||re<te)&&y.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],oe,ne,null).clip().discardPath()),this.pdf.addImage(F,"JPEG",ue.x,ue.y,ue.w,ue.h,null,null,MA),zt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(F,"JPEG",yA.x,yA.y,yA.w,yA.h,null,null,MA)};var S=function(F,_,T){var k=[];_=_||this.pdf.internal.pageSize.width,T=T||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(F.type){default:case"mt":case"lt":k.push(Math.floor((F.y+J)/T)+1);break;case"arc":k.push(Math.floor((F.y+J-F.radius)/T)+1),k.push(Math.floor((F.y+J+F.radius)/T)+1);break;case"qct":var nA=lA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x,F.y);k.push(Math.floor((nA.y+J)/T)+1),k.push(Math.floor((nA.y+nA.h+J)/T)+1);break;case"bct":var aA=BA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x2,F.y2,F.x,F.y);k.push(Math.floor((aA.y+J)/T)+1),k.push(Math.floor((aA.y+aA.h+J)/T)+1);break;case"rect":k.push(Math.floor((F.y+J)/T)+1),k.push(Math.floor((F.y+F.h+J)/T)+1)}for(var sA=0;sA<k.length;sA+=1)for(;this.pdf.internal.getNumberOfPages()<k[sA];)Q.call(this);return k},Q=function(){var F=this.fillStyle,_=this.strokeStyle,T=this.font,k=this.lineCap,J=this.lineWidth,nA=this.lineJoin;this.pdf.addPage(),this.fillStyle=F,this.strokeStyle=_,this.font=T,this.lineCap=k,this.lineWidth=J,this.lineJoin=nA},x=function(F,_,T){for(var k=0;k<F.length;k++)switch(F[k].type){case"bct":F[k].x2+=_,F[k].y2+=T;case"qct":F[k].x1+=_,F[k].y1+=T;case"mt":case"lt":case"arc":default:F[k].x+=_,F[k].y+=T}return F},R=function(F){return F.sort(function(_,T){return _-T})},Y=function(F,_){for(var T,k,J=this.fillStyle,nA=this.strokeStyle,aA=this.lineCap,sA=this.lineWidth,FA=Math.abs(sA*this.ctx.transform.scaleX),QA=this.lineJoin,IA=JSON.parse(JSON.stringify(this.path)),LA=JSON.parse(JSON.stringify(this.path)),GA=[],gA=0;gA<LA.length;gA++)if(LA[gA].x!==void 0)for(var O=S.call(this,LA[gA]),$A=0;$A<O.length;$A+=1)GA.indexOf(O[$A])===-1&&GA.push(O[$A]);for(var MA=0;MA<GA.length;MA++)for(;this.pdf.internal.getNumberOfPages()<GA[MA];)Q.call(this);if(R(GA),this.autoPaging)for(var CA=GA[0],yA=GA[GA.length-1],HA=CA;HA<yA+1;HA++){this.pdf.setPage(HA),this.fillStyle=J,this.strokeStyle=nA,this.lineCap=aA,this.lineWidth=FA,this.lineJoin=QA;var xA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],KA=HA===1?this.posY+this.margin[0]:this.margin[0],XA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],te=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],re=HA===1?0:XA+(HA-2)*te;if(this.ctx.clip_path.length!==0){var oe=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(T,this.posX+this.margin[3],-re+KA+this.ctx.prevPageLastElemOffset),Z.call(this,F,!0),this.path=oe}if(k=JSON.parse(JSON.stringify(IA)),this.path=x(k,this.posX+this.margin[3],-re+KA+this.ctx.prevPageLastElemOffset),_===!1||HA===0){var pe=(HA>CA||HA<yA)&&y.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xA,te,null).clip().discardPath()),Z.call(this,F,_),pe&&this.pdf.restoreGraphicsState()}this.lineWidth=sA}else this.lineWidth=FA,Z.call(this,F,_),this.lineWidth=sA;this.path=IA},Z=function(F,_){if((F!=="stroke"||_||!L.call(this))&&(F==="stroke"||_||!B.call(this))){for(var T,k,J=[],nA=this.path,aA=0;aA<nA.length;aA++){var sA=nA[aA];switch(sA.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:sA,deltas:[],abs:[]});break;case"lt":var FA=J.length;if(nA[aA-1]&&!isNaN(nA[aA-1].x)&&(T=[sA.x-nA[aA-1].x,sA.y-nA[aA-1].y],FA>0)){for(;FA>=0;FA--)if(J[FA-1].close!==!0&&J[FA-1].begin!==!0){J[FA-1].deltas.push(T),J[FA-1].abs.push(sA);break}}break;case"bct":T=[sA.x1-nA[aA-1].x,sA.y1-nA[aA-1].y,sA.x2-nA[aA-1].x,sA.y2-nA[aA-1].y,sA.x-nA[aA-1].x,sA.y-nA[aA-1].y],J[J.length-1].deltas.push(T);break;case"qct":var QA=nA[aA-1].x+2/3*(sA.x1-nA[aA-1].x),IA=nA[aA-1].y+2/3*(sA.y1-nA[aA-1].y),LA=sA.x+2/3*(sA.x1-sA.x),GA=sA.y+2/3*(sA.y1-sA.y),gA=sA.x,O=sA.y;T=[QA-nA[aA-1].x,IA-nA[aA-1].y,LA-nA[aA-1].x,GA-nA[aA-1].y,gA-nA[aA-1].x,O-nA[aA-1].y],J[J.length-1].deltas.push(T);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(sA)}}k=_?null:F==="stroke"?"stroke":"fill";for(var $A=!1,MA=0;MA<J.length;MA++)if(J[MA].arc)for(var CA=J[MA].abs,yA=0;yA<CA.length;yA++){var HA=CA[yA];HA.type==="arc"?P.call(this,HA.x,HA.y,HA.radius,HA.startAngle,HA.endAngle,HA.counterclockwise,void 0,_,!$A):K.call(this,HA.x,HA.y),$A=!0}else if(J[MA].close===!0)this.pdf.internal.out("h"),$A=!1;else if(J[MA].begin!==!0){var xA=J[MA].start.x,KA=J[MA].start.y;M.call(this,J[MA].deltas,xA,KA),$A=!0}k&&q.call(this,k),_&&oA.call(this)}},$=function(F){var _=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,T=_*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return F-T;case"top":return F+_-T;case"hanging":return F+_-2*T;case"middle":return F+_/2-T;case"ideographic":return F;case"alphabetic":default:return F}},X=function(F){return F+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var F=function(){};return F.colorStops=[],F.addColorStop=function(_,T){this.colorStops.push([_,T])},F.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},F.isCanvasGradient=!0,F},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(F,_,T,k,J,nA,aA,sA,FA){for(var QA=iA.call(this,T,k,J,nA),IA=0;IA<QA.length;IA++){var LA=QA[IA];IA===0&&(FA?I.call(this,LA.x1+F,LA.y1+_):K.call(this,LA.x1+F,LA.y1+_)),uA.call(this,F,_,LA.x2,LA.y2,LA.x3,LA.y3,LA.x4,LA.y4)}sA?oA.call(this):q.call(this,aA)},q=function(F){switch(F){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},oA=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(F,_){this.pdf.internal.out(e(F)+" "+r(_)+" m")},H=function(F){var _;switch(F.align){case"right":case"end":_="right";break;case"center":_="center";break;case"left":case"start":default:_="left"}var T=this.pdf.getTextDimensions(F.text),k=$.call(this,F.y),J=X.call(this,k)-T.h,nA=this.ctx.transform.applyToPoint(new s(F.x,k)),aA=this.ctx.transform.decompose(),sA=new u;sA=(sA=(sA=sA.multiply(aA.translate)).multiply(aA.skew)).multiply(aA.scale);for(var FA,QA,IA,LA=this.ctx.transform.applyToRectangle(new c(F.x,k,T.w,T.h)),GA=sA.applyToRectangle(new c(F.x,J,T.w,T.h)),gA=S.call(this,GA),O=[],$A=0;$A<gA.length;$A+=1)O.indexOf(gA[$A])===-1&&O.push(gA[$A]);if(R(O),this.autoPaging)for(var MA=O[0],CA=O[O.length-1],yA=MA;yA<CA+1;yA++){this.pdf.setPage(yA);var HA=yA===1?this.posY+this.margin[0]:this.margin[0],xA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],KA=this.pdf.internal.pageSize.height-this.margin[2],XA=KA-this.margin[0],te=this.pdf.internal.pageSize.width-this.margin[1],re=te-this.margin[3],oe=yA===1?0:xA+(yA-2)*XA;if(this.ctx.clip_path.length!==0){var pe=this.path;FA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(FA,this.posX+this.margin[3],-1*oe+HA),Z.call(this,"fill",!0),this.path=pe}var WA=x([JSON.parse(JSON.stringify(GA))],this.posX+this.margin[3],-oe+HA+this.ctx.prevPageLastElemOffset)[0];F.scale>=.01&&(QA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(QA*F.scale),IA=this.lineWidth,this.lineWidth=IA*F.scale);var ne=this.autoPaging!=="text";if(ne||WA.y+WA.h<=KA){if(ne||WA.y>=HA&&WA.x<=te){var SA=ne?F.text:this.pdf.splitTextToSize(F.text,F.maxWidth||te-WA.x)[0],ot=x([JSON.parse(JSON.stringify(LA))],this.posX+this.margin[3],-oe+HA+this.ctx.prevPageLastElemOffset)[0],ue=ne&&(yA>MA||yA<CA)&&y.call(this);ue&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],re,XA,null).clip().discardPath()),this.pdf.text(SA,ot.x,ot.y,{angle:F.angle,align:_,renderingMode:F.renderingMode}),ue&&this.pdf.restoreGraphicsState()}}else WA.y<KA&&(this.ctx.prevPageLastElemOffset+=KA-WA.y);F.scale>=.01&&(this.pdf.setFontSize(QA),this.lineWidth=IA)}else F.scale>=.01&&(QA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(QA*F.scale),IA=this.lineWidth,this.lineWidth=IA*F.scale),this.pdf.text(F.text,nA.x+this.posX,nA.y+this.posY,{angle:F.angle,align:_,renderingMode:F.renderingMode,maxWidth:F.maxWidth}),F.scale>=.01&&(this.pdf.setFontSize(QA),this.lineWidth=IA)},K=function(F,_,T,k){T=T||0,k=k||0,this.pdf.internal.out(e(F+T)+" "+r(_+k)+" l")},M=function(F,_,T){return this.pdf.lines(F,_,T,null,null)},uA=function(F,_,T,k,J,nA,aA,sA){this.pdf.internal.out([A(n(T+F)),A(i(k+_)),A(n(J+F)),A(i(nA+_)),A(n(aA+F)),A(i(sA+_)),"c"].join(" "))},iA=function(F,_,T,k){for(var J=2*Math.PI,nA=Math.PI/2;_>T;)_-=J;var aA=Math.abs(T-_);aA<J&&k&&(aA=J-aA);for(var sA=[],FA=k?-1:1,QA=_;aA>1e-5;){var IA=QA+FA*Math.min(aA,nA);sA.push(cA.call(this,F,QA,IA)),aA-=Math.abs(IA-QA),QA=IA}return sA},cA=function(F,_,T){var k=(T-_)/2,J=F*Math.cos(k),nA=F*Math.sin(k),aA=J,sA=-nA,FA=aA*aA+sA*sA,QA=FA+aA*J+sA*nA,IA=4/3*(Math.sqrt(2*FA*QA)-QA)/(aA*nA-sA*J),LA=aA-IA*sA,GA=sA+IA*aA,gA=LA,O=-GA,$A=k+_,MA=Math.cos($A),CA=Math.sin($A);return{x1:F*Math.cos(_),y1:F*Math.sin(_),x2:LA*MA-GA*CA,y2:LA*CA+GA*MA,x3:gA*MA-O*CA,y3:gA*CA+O*MA,x4:F*Math.cos(T),y4:F*Math.sin(T)}},eA=function(F){return 180*F/Math.PI},lA=function(F,_,T,k,J,nA){var aA=F+.5*(T-F),sA=_+.5*(k-_),FA=J+.5*(T-J),QA=nA+.5*(k-nA),IA=Math.min(F,J,aA,FA),LA=Math.max(F,J,aA,FA),GA=Math.min(_,nA,sA,QA),gA=Math.max(_,nA,sA,QA);return new c(IA,GA,LA-IA,gA-GA)},BA=function(F,_,T,k,J,nA,aA,sA){var FA,QA,IA,LA,GA,gA,O,$A,MA,CA,yA,HA,xA,KA,XA=T-F,te=k-_,re=J-T,oe=nA-k,pe=aA-J,WA=sA-nA;for(QA=0;QA<41;QA++)MA=(O=(IA=F+(FA=QA/40)*XA)+FA*((GA=T+FA*re)-IA))+FA*(GA+FA*(J+FA*pe-GA)-O),CA=($A=(LA=_+FA*te)+FA*((gA=k+FA*oe)-LA))+FA*(gA+FA*(nA+FA*WA-gA)-$A),QA==0?(yA=MA,HA=CA,xA=MA,KA=CA):(yA=Math.min(yA,MA),HA=Math.min(HA,CA),xA=Math.max(xA,MA),KA=Math.max(KA,CA));return new c(Math.round(yA),Math.round(HA),Math.round(xA-yA),Math.round(KA-HA))},UA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var F,_,T=(F=this.ctx.lineDash,_=this.ctx.lineDashOffset,JSON.stringify({lineDash:F,lineDashOffset:_}));this.prevLineDash!==T&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=T)}}})(VA.API),function(t){var A=function(i){var s,c,u,h,g,d,w,B,L,y;for(c=[],u=0,h=(i+=s="\0\0\0\0".slice(i.length%4||4)).length;h>u;u+=4)(g=(i.charCodeAt(u)<<24)+(i.charCodeAt(u+1)<<16)+(i.charCodeAt(u+2)<<8)+i.charCodeAt(u+3))!==0?(d=(g=((g=((g=((g=(g-(y=g%85))/85)-(L=g%85))/85)-(B=g%85))/85)-(w=g%85))/85)%85,c.push(d+33,w+33,B+33,L+33,y+33)):c.push(122);return function(S,Q){for(var x=Q;x>0;x--)S.pop()}(c,s.length),String.fromCharCode.apply(String,c)+"~>"},e=function(i){var s,c,u,h,g,d=String,w="length",B=255,L="charCodeAt",y="slice",S="replace";for(i[y](-2),i=i[y](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),u=[],h=0,g=(i+=s="uuuuu"[y](i[w]%5||5))[w];g>h;h+=5)c=52200625*(i[L](h)-33)+614125*(i[L](h+1)-33)+7225*(i[L](h+2)-33)+85*(i[L](h+3)-33)+(i[L](h+4)-33),u.push(B&c>>24,B&c>>16,B&c>>8,B&c);return function(Q,x){for(var R=x;R>0;R--)Q.pop()}(u,s[w]),d.fromCharCode.apply(d,u)},r=function(i){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),s.test(i)===!1)return"";for(var c="",u=0;u<i.length;u+=2)c+=String.fromCharCode("0x"+(i[u]+i[u+1]));return c},n=function(i){for(var s=new Uint8Array(i.length),c=i.length;c--;)s[c]=i.charCodeAt(c);return i=(s=Nu(s)).reduce(function(u,h){return u+String.fromCharCode(h)},"")};t.processDataByFilters=function(i,s){var c=0,u=i||"",h=[];for(typeof(s=s||[])=="string"&&(s=[s]),c=0;c<s.length;c+=1)switch(s[c]){case"ASCII85Decode":case"/ASCII85Decode":u=e(u),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=A(u),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=r(u),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=u.split("").map(function(g){return("0"+g.charCodeAt().toString(16)).slice(-2)}).join("")+">",h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=n(u),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[c]+'" is not implemented')}return{data:u,reverseChain:h.reverse().join(" ")}}}(VA.API),function(t){t.loadFile=function(A,e,r){return function(n,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var c=void 0;try{c=function(u,h,g){var d=new XMLHttpRequest,w=0,B=function(L){var y=L.length,S=[],Q=String.fromCharCode;for(w=0;w<y;w+=1)S.push(Q(255&L.charCodeAt(w)));return S.join("")};if(d.open("GET",u,!h),d.overrideMimeType("text/plain; charset=x-user-defined"),h===!1&&(d.onload=function(){d.status===200?g(B(this.responseText)):g(void 0)}),d.send(null),h&&d.status===200)return B(d.responseText)}(n,i,s)}catch{}return c}(A,e,r)},t.loadImageFile=t.loadFile}(VA.API),function(t){function A(){return(qA.html2canvas?Promise.resolve(qA.html2canvas):iu(()=>Promise.resolve().then(()=>Np),void 0)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function e(){return(qA.DOMPurify?Promise.resolve(qA.DOMPurify):iu(()=>import("./purify.es-2de9db7f.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var c=Fe(s);return c==="undefined"?"undefined":c==="string"||s instanceof String?"string":c==="number"||s instanceof Number?"number":c==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":c==="object"?"object":"unknown"},n=function(s,c){var u=document.createElement(s);for(var h in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[h]=c.style[h];return u},i=function s(c){var u=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),h=s.convert(Promise.resolve(),u);return h=(h=h.setProgress(1,s,1,[s])).set(c)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(s,c){return s.__proto__=c||i.prototype,s},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(s,c){return this.then(function(){switch(c=c||function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(e).then(function(u){return this.set({src:n("div",{innerHTML:s,dompurify:u})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},i.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=function u(h,g){for(var d=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),w=h.firstChild;w;w=w.nextSibling)g!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||d.appendChild(u(w,g));return h.nodeType===1&&(h.nodeName==="CANVAS"?(d.width=h.width,d.height=h.height,d.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(d.value=h.value),d.addEventListener("load",function(){d.scrollTop=h.scrollTop,d.scrollLeft=h.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(A).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(A).then(function(c){var u=this.opt.jsPDF,h=this.opt.fontFaces,g=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:g,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=h,h)for(var w=0;w<h.length;++w){var B=h[w],L=B.src.find(function(y){return y.format==="truetype"});L&&u.addFont(L.url,B.ref.name,B.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,u.context2d.save(!0),c(this.prop.container,d)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(s,c,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(s,c):this.outputPdf(s,c)},i.prototype.outputPdf=function(s,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,c)})},i.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},i.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(s){if(r(s)!=="object")return this;var c=Object.keys(s||{}).map(function(u){if(u in i.template.prop)return function(){this.prop[u]=s[u]};switch(u){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[u]=s[u]}}},this);return this.then(function(){return this.thenList(c)})},i.prototype.get=function(s,c){return this.then(function(){var u=s in i.template.prop?this.prop[s]:this.opt[s];return c?c(u):u})},i.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},i.prototype.setPageSize=function(s){function c(u,h){return Math.floor(u*h/72*96)}return this.then(function(){(s=s||VA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:c(s.inner.width,s.k),height:c(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},i.prototype.setProgress=function(s,c,u,h){return s!=null&&(this.progress.val=s),c!=null&&(this.progress.state=c),u!=null&&(this.progress.n=u),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(s,c,u,h){return this.setProgress(s?this.progress.val+s:null,c||null,u?this.progress.n+u:null,h?this.progress.stack.concat(h):null)},i.prototype.then=function(s,c){var u=this;return this.thenCore(s,c,function(h,g){return u.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(d){return u.updateProgress(null,h),d}).then(h,g).then(function(d){return u.updateProgress(1),d})})},i.prototype.thenCore=function(s,c,u){u=u||Promise.prototype.then,s&&(s=s.bind(this)),c&&(c=c.bind(this));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),g=u.call(h,s,c);return i.convert(g,this.__proto__)},i.prototype.thenExternal=function(s,c){return Promise.prototype.then.call(this,s,c)},i.prototype.thenList=function(s){var c=this;return s.forEach(function(u){c=c.thenCore(u)}),c},i.prototype.catch=function(s){s&&(s=s.bind(this));var c=Promise.prototype.catch.call(this,s);return i.convert(c,this)},i.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},i.prototype.error=function(s){return this.then(function(){throw new Error(s)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,VA.getPageSize=function(s,c,u){if(Fe(s)==="object"){var h=s;s=h.orientation,c=h.unit||c,u=h.format||u}c=c||"mm",u=u||"a4",s=(""+(s||"P")).toLowerCase();var g,d=(""+u).toLowerCase(),w={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]};switch(c){case"pt":g=1;break;case"mm":g=72/25.4;break;case"cm":g=72/2.54;break;case"in":g=72;break;case"px":g=.75;break;case"pc":case"em":g=12;break;case"ex":g=6;break;default:throw"Invalid unit: "+c}var B,L=0,y=0;if(w.hasOwnProperty(d))L=w[d][1]/g,y=w[d][0]/g;else try{L=u[1],y=u[0]}catch{throw new Error("Invalid format: "+u)}if(s==="p"||s==="portrait")s="p",y>L&&(B=y,y=L,L=B);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",L>y&&(B=y,y=L,L=B)}return{width:y,height:L,unit:c,k:g,orientation:s}},t.html=function(s,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(Mu):null;var u=new i(c);return c.worker?u:u.from(s).doCallback()}}(VA.API),VA.API.addJS=function(t){return Of=t,this.internal.events.subscribe("postPutResources",function(){ro=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ro+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Pf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Of+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ro!==void 0&&Pf!==void 0&&this.internal.out("/Names <</JavaScript "+ro+" 0 R>>")}),this},function(t){var A;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var s=n[i],c=r.exec(s);if(c!=null){var u=c[1];e.internal.newObjectDeferredBegin(u,!1)}e.internal.write(s)}if(this.outline.createNamedDestinations){var h=this.internal.pages.length,g=[];for(i=0;i<h;i++){var d=e.internal.newObject();g.push(d);var w=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var B=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<g.length;i++)e.internal.write("(page_"+(i+1)+")"+g[i]+" 0 R");e.internal.write(" ] >>","endobj"),A=e.internal.newObject(),e.internal.write("<< /Dests "+B+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+A+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,i){var s={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(s),s},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var s=r.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var c=this.count=this.count_r({count:0},s);if(c>0&&this.line("/Count "+c),s.options&&s.options.pageNumber){var u=e.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var h=0;h<r.children.length;h++)this.renderItems(r.children[h])},e.outline.line=function(r){this.ctx.val+=r+`\r
`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},e.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(VA.API),function(t){var A=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,n,i,s,c){var u,h=this.decode.DCT_DECODE,g=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=s||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(u=function(d){for(var w,B=256*d.charCodeAt(4)+d.charCodeAt(5),L=d.length,y={width:0,height:0,numcomponents:1},S=4;S<L;S+=2){if(S+=B,A.indexOf(d.charCodeAt(S+1))!==-1){w=256*d.charCodeAt(S+5)+d.charCodeAt(S+6),y={width:256*d.charCodeAt(S+7)+d.charCodeAt(S+8),height:w,numcomponents:d.charCodeAt(S+9)};break}B=256*d.charCodeAt(S+2)+d.charCodeAt(S+3)}return y}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:c=this.color_spaces.DEVICE_GRAY;break;case 4:c=this.color_spaces.DEVICE_CMYK;break;case 3:c=this.color_spaces.DEVICE_RGB}g={data:e,width:u.width,height:u.height,colorSpace:c,bitsPerComponent:8,filter:h,index:r,alias:n}}return g}}(VA.API);var bi,no,Mf,Kf,kf,B5=function(){var t,A,e;function r(i){var s,c,u,h,g,d,w,B,L,y,S,Q,x,R;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},d=null;;){switch(s=this.readUInt32(),L=(function(){var Y,Z;for(Z=[],Y=0;Y<4;++Y)Z.push(String.fromCharCode(this.data[this.pos++]));return Z}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":d&&this.animation.frames.push(d),this.pos+=4,d={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},g=this.readUInt16(),h=this.readUInt16()||100,d.delay=1e3*g/h,d.disposeOp=this.data[this.pos++],d.blendOp=this.data[this.pos++],d.data=[];break;case"IDAT":case"fdAT":for(L==="fdAT"&&(this.pos+=4,s-=4),i=(d!=null?d.data:void 0)||this.imgData,Q=0;0<=s?Q<s:Q>s;0<=s?++Q:--Q)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(u=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>u)throw new Error("More transparent colors than palette size");if((y=u-this.transparency.indexed.length)>0)for(x=0;0<=y?x<y:x>y;0<=y?++x:--x)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":w=(S=this.read(s)).indexOf(0),B=String.fromCharCode.apply(String,S.slice(0,w)),this.text[B]=String.fromCharCode.apply(String,S.slice(w+1));break;case"IEND":return d&&this.animation.frames.push(d),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(R=this.colorType)===4||R===6,c=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*c,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var s,c;for(c=[],s=0;0<=i?s<i:s>i;0<=i?++s:--s)c.push(this.data[this.pos++]);return c},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var s=this.pixelBitlength/8,c=new Uint8Array(this.width*this.height*s),u=0,h=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function g(d,w,B,L){var y,S,Q,x,R,Y,Z,$,X,P,q,oA,I,H,K,M,uA,iA,cA,eA,lA,BA=Math.ceil((h.width-d)/B),UA=Math.ceil((h.height-w)/L),F=h.width==BA&&h.height==UA;for(H=s*BA,oA=F?c:new Uint8Array(H*UA),Y=i.length,I=0,S=0;I<UA&&u<Y;){switch(i[u++]){case 0:for(x=uA=0;uA<H;x=uA+=1)oA[S++]=i[u++];break;case 1:for(x=iA=0;iA<H;x=iA+=1)y=i[u++],R=x<s?0:oA[S-s],oA[S++]=(y+R)%256;break;case 2:for(x=cA=0;cA<H;x=cA+=1)y=i[u++],Q=(x-x%s)/s,K=I&&oA[(I-1)*H+Q*s+x%s],oA[S++]=(K+y)%256;break;case 3:for(x=eA=0;eA<H;x=eA+=1)y=i[u++],Q=(x-x%s)/s,R=x<s?0:oA[S-s],K=I&&oA[(I-1)*H+Q*s+x%s],oA[S++]=(y+Math.floor((R+K)/2))%256;break;case 4:for(x=lA=0;lA<H;x=lA+=1)y=i[u++],Q=(x-x%s)/s,R=x<s?0:oA[S-s],I===0?K=M=0:(K=oA[(I-1)*H+Q*s+x%s],M=Q&&oA[(I-1)*H+(Q-1)*s+x%s]),Z=R+K-M,$=Math.abs(Z-R),P=Math.abs(Z-K),q=Math.abs(Z-M),X=$<=P&&$<=q?R:P<=q?K:M,oA[S++]=(y+X)%256;break;default:throw new Error("Invalid filter algorithm: "+i[u-1])}if(!F){var _=((w+I*L)*h.width+d)*s,T=I*H;for(x=0;x<BA;x+=1){for(var k=0;k<s;k+=1)c[_++]=oA[T++];_+=(B-1)*s}}I++}}return i=qp(i),h.interlaceMethod==1?(g(0,0,8,8),g(4,0,8,8),g(0,4,4,8),g(2,0,4,4),g(0,2,2,4),g(1,0,2,2),g(0,1,1,2)):g(0,0,1,1),c},r.prototype.decodePalette=function(){var i,s,c,u,h,g,d,w,B;for(c=this.palette,g=this.transparency.indexed||[],h=new Uint8Array((g.length||0)+c.length),u=0,i=0,s=d=0,w=c.length;d<w;s=d+=3)h[u++]=c[s],h[u++]=c[s+1],h[u++]=c[s+2],h[u++]=(B=g[i++])!=null?B:255;return h},r.prototype.copyToImageData=function(i,s){var c,u,h,g,d,w,B,L,y,S,Q;if(u=this.colors,y=null,c=this.hasAlphaChannel,this.palette.length&&(y=(Q=this._decodedPalette)!=null?Q:this._decodedPalette=this.decodePalette(),u=4,c=!0),L=(h=i.data||i).length,d=y||s,g=w=0,u===1)for(;g<L;)B=y?4*s[g/4]:w,S=d[B++],h[g++]=S,h[g++]=S,h[g++]=S,h[g++]=c?d[B++]:255,w=B;else for(;g<L;)B=y?4*s[g/4]:w,h[g++]=d[B++],h[g++]=d[B++],h[g++]=d[B++],h[g++]=c?d[B++]:255,w=B},r.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var n=function(){if(Object.prototype.toString.call(qA)==="[object Window]"){try{A=qA.document.createElement("canvas"),e=A.getContext("2d")}catch{return!1}return!0}return!1};return n(),t=function(i){var s;if(n()===!0)return e.width=i.width,e.height=i.height,e.clearRect(0,0,i.width,i.height),e.putImageData(i,0,0),(s=new Image).src=A.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(i){var s,c,u,h,g,d,w,B;if(this.animation){for(B=[],c=g=0,d=(w=this.animation.frames).length;g<d;c=++g)s=w[c],u=i.createImageData(s.width,s.height),h=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(u,h),s.imageData=u,B.push(s.image=t(u));return B}},r.prototype.renderFrame=function(i,s){var c,u,h;return c=(u=this.animation.frames)[s],h=u[s-1],s===0&&i.clearRect(0,0,this.width,this.height),(h!=null?h.disposeOp:void 0)===1?i.clearRect(h.xOffset,h.yOffset,h.width,h.height):(h!=null?h.disposeOp:void 0)===2&&i.putImageData(h.imageData,h.xOffset,h.yOffset),c.blendOp===0&&i.clearRect(c.xOffset,c.yOffset,c.width,c.height),i.drawImage(c.image,c.xOffset,c.yOffset)},r.prototype.animate=function(i){var s,c,u,h,g,d,w=this;return c=0,d=this.animation,h=d.numFrames,u=d.frames,g=d.numPlays,(s=function(){var B,L;if(B=c++%h,L=u[B],w.renderFrame(i,B),h>1&&c/h<g)return w.animation._timeout=setTimeout(s,L.delay)})()},r.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},r.prototype.render=function(i){var s,c;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,s=i.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(c=s.createImageData(this.width,this.height),this.copyToImageData(c,this.decodePixels()),s.putImageData(c,0,0))},r}();/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * 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.
 * ====================================================================
 *//**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * 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.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function g5(t){var A=0;if(t[A++]!==71||t[A++]!==73||t[A++]!==70||t[A++]!==56||(t[A++]+1&253)!=56||t[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[A++]|t[A++]<<8,r=t[A++]|t[A++]<<8,n=t[A++],i=n>>7,s=1<<(7&n)+1;t[A++],t[A++];var c=null,u=null;i&&(c=A,u=s,A+=3*s);var h=!0,g=[],d=0,w=null,B=0,L=null;for(this.width=e,this.height=r;h&&A<t.length;)switch(t[A++]){case 33:switch(t[A++]){case 255:if(t[A]!==11||t[A+1]==78&&t[A+2]==69&&t[A+3]==84&&t[A+4]==83&&t[A+5]==67&&t[A+6]==65&&t[A+7]==80&&t[A+8]==69&&t[A+9]==50&&t[A+10]==46&&t[A+11]==48&&t[A+12]==3&&t[A+13]==1&&t[A+16]==0)A+=14,L=t[A++]|t[A++]<<8,A++;else for(A+=12;;){if(!((I=t[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}break;case 249:if(t[A++]!==4||t[A+4]!==0)throw new Error("Invalid graphics extension block.");var y=t[A++];d=t[A++]|t[A++]<<8,w=t[A++],!(1&y)&&(w=null),B=y>>2&7,A++;break;case 254:for(;;){if(!((I=t[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}break;default:throw new Error("Unknown graphic control label: 0x"+t[A-1].toString(16))}break;case 44:var S=t[A++]|t[A++]<<8,Q=t[A++]|t[A++]<<8,x=t[A++]|t[A++]<<8,R=t[A++]|t[A++]<<8,Y=t[A++],Z=Y>>6&1,$=1<<(7&Y)+1,X=c,P=u,q=!1;Y>>7&&(q=!0,X=A,P=$,A+=3*$);var oA=A;for(A++;;){var I;if(!((I=t[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}g.push({x:S,y:Q,width:x,height:R,has_local_palette:q,palette_offset:X,palette_size:P,data_offset:oA,data_length:A-oA,transparent_index:w,interlaced:!!Z,delay:d,disposal:B});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+t[A-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return L},this.frameInfo=function(H){if(H<0||H>=g.length)throw new Error("Frame index out of range.");return g[H]},this.decodeAndBlitFrameBGRA=function(H,K){var M=this.frameInfo(H),uA=M.width*M.height,iA=new Uint8Array(uA);Rf(t,M.data_offset,iA,uA);var cA=M.palette_offset,eA=M.transparent_index;eA===null&&(eA=256);var lA=M.width,BA=e-lA,UA=lA,F=4*(M.y*e+M.x),_=4*((M.y+M.height)*e+M.x),T=F,k=4*BA;M.interlaced===!0&&(k+=4*e*7);for(var J=8,nA=0,aA=iA.length;nA<aA;++nA){var sA=iA[nA];if(UA===0&&(UA=lA,(T+=k)>=_&&(k=4*BA+4*e*(J-1),T=F+(lA+BA)*(J<<1),J>>=1)),sA===eA)T+=4;else{var FA=t[cA+3*sA],QA=t[cA+3*sA+1],IA=t[cA+3*sA+2];K[T++]=IA,K[T++]=QA,K[T++]=FA,K[T++]=255}--UA}},this.decodeAndBlitFrameRGBA=function(H,K){var M=this.frameInfo(H),uA=M.width*M.height,iA=new Uint8Array(uA);Rf(t,M.data_offset,iA,uA);var cA=M.palette_offset,eA=M.transparent_index;eA===null&&(eA=256);var lA=M.width,BA=e-lA,UA=lA,F=4*(M.y*e+M.x),_=4*((M.y+M.height)*e+M.x),T=F,k=4*BA;M.interlaced===!0&&(k+=4*e*7);for(var J=8,nA=0,aA=iA.length;nA<aA;++nA){var sA=iA[nA];if(UA===0&&(UA=lA,(T+=k)>=_&&(k=4*BA+4*e*(J-1),T=F+(lA+BA)*(J<<1),J>>=1)),sA===eA)T+=4;else{var FA=t[cA+3*sA],QA=t[cA+3*sA+1],IA=t[cA+3*sA+2];K[T++]=FA,K[T++]=QA,K[T++]=IA,K[T++]=255}--UA}}}function Rf(t,A,e,r){for(var n=t[A++],i=1<<n,s=i+1,c=s+1,u=n+1,h=(1<<u)-1,g=0,d=0,w=0,B=t[A++],L=new Int32Array(4096),y=null;;){for(;g<16&&B!==0;)d|=t[A++]<<g,g+=8,B===1?B=t[A++]:--B;if(g<u)break;var S=d&h;if(d>>=u,g-=u,S!==i){if(S===s)break;for(var Q=S<c?S:y,x=0,R=Q;R>i;)R=L[R]>>8,++x;var Y=R;if(w+x+(Q!==S?1:0)>r)return void Qe.log("Warning, gif stream longer than expected.");e[w++]=Y;var Z=w+=x;for(Q!==S&&(e[w++]=Y),R=Q;x--;)R=L[R],e[--Z]=255&R,R>>=8;y!==null&&c<4096&&(L[c++]=y<<8|Y,c>=h+1&&u<12&&(++u,h=h<<1|1)),y=S}else c=s+1,h=(1<<(u=n+1))-1,y=null}return w!==r&&Qe.log("Warning, gif stream shorter than expected."),e}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function nu(t){var A,e,r,n,i,s=Math.floor,c=new Array(64),u=new Array(64),h=new Array(64),g=new Array(64),d=new Array(65535),w=new Array(65535),B=new Array(64),L=new Array(64),y=[],S=0,Q=7,x=new Array(64),R=new Array(64),Y=new Array(64),Z=new Array(256),$=new Array(2048),X=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],P=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],oA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],H=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],K=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],uA=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function iA(F,_){for(var T=0,k=0,J=new Array,nA=1;nA<=16;nA++){for(var aA=1;aA<=F[nA];aA++)J[_[k]]=[],J[_[k]][0]=T,J[_[k]][1]=nA,k++,T++;T*=2}return J}function cA(F){for(var _=F[0],T=F[1]-1;T>=0;)_&1<<T&&(S|=1<<Q),T--,--Q<0&&(S==255?(eA(255),eA(0)):eA(S),Q=7,S=0)}function eA(F){y.push(F)}function lA(F){eA(F>>8&255),eA(255&F)}function BA(F,_,T,k,J){for(var nA,aA=J[0],sA=J[240],FA=function(CA,yA){var HA,xA,KA,XA,te,re,oe,pe,WA,ne,SA=0;for(WA=0;WA<8;++WA){HA=CA[SA],xA=CA[SA+1],KA=CA[SA+2],XA=CA[SA+3],te=CA[SA+4],re=CA[SA+5],oe=CA[SA+6];var ot=HA+(pe=CA[SA+7]),ue=HA-pe,zt=xA+oe,me=xA-oe,Ee=KA+re,Br=KA-re,fe=XA+te,Qn=XA-te,He=ot+fe,Yt=ot-fe,Hr=zt+Ee,Se=zt-Ee;CA[SA]=He+Hr,CA[SA+4]=He-Hr;var zA=.707106781*(Se+Yt);CA[SA+2]=Yt+zA,CA[SA+6]=Yt-zA;var he=.382683433*((He=Qn+Br)-(Se=me+ue)),Fn=.5411961*He+he,rt=1.306562965*Se+he,gr=.707106781*(Hr=Br+me),dr=ue+gr,jA=ue-gr;CA[SA+5]=jA+Fn,CA[SA+3]=jA-Fn,CA[SA+1]=dr+rt,CA[SA+7]=dr-rt,SA+=8}for(SA=0,WA=0;WA<8;++WA){HA=CA[SA],xA=CA[SA+8],KA=CA[SA+16],XA=CA[SA+24],te=CA[SA+32],re=CA[SA+40],oe=CA[SA+48];var Zt=HA+(pe=CA[SA+56]),pr=HA-pe,Ft=xA+oe,Xe=xA-oe,Ge=KA+re,Ht=KA-re,Gn=XA+te,Sr=XA-te,$t=Zt+Gn,Ar=Zt-Gn,er=Ft+Ge,wr=Ft-Ge;CA[SA]=$t+er,CA[SA+32]=$t-er;var Ot=.707106781*(wr+Ar);CA[SA+16]=Ar+Ot,CA[SA+48]=Ar-Ot;var vr=.382683433*(($t=Sr+Ht)-(wr=Xe+pr)),Un=.5411961*$t+vr,Vn=1.306562965*wr+vr,qn=.707106781*(er=Ht+Xe),Wn=pr+qn,Jn=pr-qn;CA[SA+40]=Jn+Un,CA[SA+24]=Jn-Un,CA[SA+8]=Wn+Vn,CA[SA+56]=Wn-Vn,SA++}for(WA=0;WA<64;++WA)ne=CA[WA]*yA[WA],B[WA]=ne>0?ne+.5|0:ne-.5|0;return B}(F,_),QA=0;QA<64;++QA)L[X[QA]]=FA[QA];var IA=L[0]-T;T=L[0],IA==0?cA(k[0]):(cA(k[w[nA=32767+IA]]),cA(d[nA]));for(var LA=63;LA>0&&L[LA]==0;)LA--;if(LA==0)return cA(aA),T;for(var GA,gA=1;gA<=LA;){for(var O=gA;L[gA]==0&&gA<=LA;)++gA;var $A=gA-O;if($A>=16){GA=$A>>4;for(var MA=1;MA<=GA;++MA)cA(sA);$A&=15}nA=32767+L[gA],cA(J[($A<<4)+w[nA]]),cA(d[nA]),gA++}return LA!=63&&cA(aA),T}function UA(F){F=Math.min(Math.max(F,1),100),i!=F&&(function(_){for(var T=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],k=0;k<64;k++){var J=s((T[k]*_+50)/100);J=Math.min(Math.max(J,1),255),c[X[k]]=J}for(var nA=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],aA=0;aA<64;aA++){var sA=s((nA[aA]*_+50)/100);sA=Math.min(Math.max(sA,1),255),u[X[aA]]=sA}for(var FA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],QA=0,IA=0;IA<8;IA++)for(var LA=0;LA<8;LA++)h[QA]=1/(c[X[QA]]*FA[IA]*FA[LA]*8),g[QA]=1/(u[X[QA]]*FA[IA]*FA[LA]*8),QA++}(F<50?Math.floor(5e3/F):Math.floor(200-2*F)),i=F)}this.encode=function(F,_){_&&UA(_),y=new Array,S=0,Q=7,lA(65496),lA(65504),lA(16),eA(74),eA(70),eA(73),eA(70),eA(0),eA(1),eA(1),eA(0),lA(1),lA(1),eA(0),eA(0),function(){lA(65499),lA(132),eA(0);for(var xA=0;xA<64;xA++)eA(c[xA]);eA(1);for(var KA=0;KA<64;KA++)eA(u[KA])}(),function(xA,KA){lA(65472),lA(17),eA(8),lA(KA),lA(xA),eA(3),eA(1),eA(17),eA(0),eA(2),eA(17),eA(1),eA(3),eA(17),eA(1)}(F.width,F.height),function(){lA(65476),lA(418),eA(0);for(var xA=0;xA<16;xA++)eA(P[xA+1]);for(var KA=0;KA<=11;KA++)eA(q[KA]);eA(16);for(var XA=0;XA<16;XA++)eA(oA[XA+1]);for(var te=0;te<=161;te++)eA(I[te]);eA(1);for(var re=0;re<16;re++)eA(H[re+1]);for(var oe=0;oe<=11;oe++)eA(K[oe]);eA(17);for(var pe=0;pe<16;pe++)eA(M[pe+1]);for(var WA=0;WA<=161;WA++)eA(uA[WA])}(),lA(65498),lA(12),eA(3),eA(1),eA(0),eA(2),eA(17),eA(3),eA(17),eA(0),eA(63),eA(0);var T=0,k=0,J=0;S=0,Q=7,this.encode.displayName="_encode_";for(var nA,aA,sA,FA,QA,IA,LA,GA,gA,O=F.data,$A=F.width,MA=F.height,CA=4*$A,yA=0;yA<MA;){for(nA=0;nA<CA;){for(QA=CA*yA+nA,LA=-1,GA=0,gA=0;gA<64;gA++)IA=QA+(GA=gA>>3)*CA+(LA=4*(7&gA)),yA+GA>=MA&&(IA-=CA*(yA+1+GA-MA)),nA+LA>=CA&&(IA-=nA+LA-CA+4),aA=O[IA++],sA=O[IA++],FA=O[IA++],x[gA]=($[aA]+$[sA+256>>0]+$[FA+512>>0]>>16)-128,R[gA]=($[aA+768>>0]+$[sA+1024>>0]+$[FA+1280>>0]>>16)-128,Y[gA]=($[aA+1280>>0]+$[sA+1536>>0]+$[FA+1792>>0]>>16)-128;T=BA(x,h,T,A,r),k=BA(R,g,k,e,n),J=BA(Y,g,J,e,n),nA+=32}yA+=8}if(Q>=0){var HA=[];HA[1]=Q+1,HA[0]=(1<<Q+1)-1,cA(HA)}return lA(65497),new Uint8Array(y)},t=t||50,function(){for(var F=String.fromCharCode,_=0;_<256;_++)Z[_]=F(_)}(),A=iA(P,q),e=iA(H,K),r=iA(oA,I),n=iA(M,uA),function(){for(var F=1,_=2,T=1;T<=15;T++){for(var k=F;k<_;k++)w[32767+k]=T,d[32767+k]=[],d[32767+k][1]=T,d[32767+k][0]=k;for(var J=-(_-1);J<=-F;J++)w[32767+J]=T,d[32767+J]=[],d[32767+J][1]=T,d[32767+J][0]=_-1+J;F<<=1,_<<=1}}(),function(){for(var F=0;F<256;F++)$[F]=19595*F,$[F+256>>0]=38470*F,$[F+512>>0]=7471*F+32768,$[F+768>>0]=-11059*F,$[F+1024>>0]=-21709*F,$[F+1280>>0]=32768*F+8421375,$[F+1536>>0]=-27439*F,$[F+1792>>0]=-5329*F}(),UA(t)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function or(t,A){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function jf(t){function A(P){if(!P)throw Error("assert :P")}function e(P,q,oA){for(var I=0;4>I;I++)if(P[q+I]!=oA.charCodeAt(I))return!0;return!1}function r(P,q,oA,I,H){for(var K=0;K<H;K++)P[q+K]=oA[I+K]}function n(P,q,oA,I){for(var H=0;H<I;H++)P[q+H]=oA}function i(P){return new Int32Array(P)}function s(P,q){for(var oA=[],I=0;I<P;I++)oA.push(new q);return oA}function c(P,q){var oA=[];return function I(H,K,M){for(var uA=M[K],iA=0;iA<uA&&(H.push(M.length>K+1?[]:new q),!(M.length<K+1));iA++)I(H[iA],K+1,M)}(oA,0,P),oA}var u=function(){var P=this;function q(a,o){for(var f=1<<o-1>>>0;a&f;)f>>>=1;return f?(a&f-1)+f:a}function oA(a,o,f,p,v){A(!(p%f));do a[o+(p-=f)]=v;while(0<p)}function I(a,o,f,p,v){if(A(2328>=v),512>=v)var C=i(512);else if((C=i(v))==null)return 0;return function(U,b,E,N,G,tA){var rA,z,wA=b,fA=1<<E,V=i(16),W=i(16);for(A(G!=0),A(N!=null),A(U!=null),A(0<E),z=0;z<G;++z){if(15<N[z])return 0;++V[N[z]]}if(V[0]==G)return 0;for(W[1]=0,rA=1;15>rA;++rA){if(V[rA]>1<<rA)return 0;W[rA+1]=W[rA]+V[rA]}for(z=0;z<G;++z)rA=N[z],0<N[z]&&(tA[W[rA]++]=z);if(W[15]==1)return(N=new H).g=0,N.value=tA[0],oA(U,wA,1,fA,N),fA;var dA,vA=-1,pA=fA-1,DA=0,bA=1,RA=1,EA=1<<E;for(z=0,rA=1,G=2;rA<=E;++rA,G<<=1){if(bA+=RA<<=1,0>(RA-=V[rA]))return 0;for(;0<V[rA];--V[rA])(N=new H).g=rA,N.value=tA[z++],oA(U,wA+DA,G,EA,N),DA=q(DA,rA)}for(rA=E+1,G=2;15>=rA;++rA,G<<=1){if(bA+=RA<<=1,0>(RA-=V[rA]))return 0;for(;0<V[rA];--V[rA]){if(N=new H,(DA&pA)!=vA){for(wA+=EA,dA=1<<(vA=rA)-E;15>vA&&!(0>=(dA-=V[vA]));)++vA,dA<<=1;fA+=EA=1<<(dA=vA-E),U[b+(vA=DA&pA)].g=dA+E,U[b+vA].value=wA-b-vA}N.g=rA-E,N.value=tA[z++],oA(U,wA+(DA>>E),G,EA,N),DA=q(DA,rA)}}return bA!=2*W[15]-1?0:fA}(a,o,f,p,v,C)}function H(){this.value=this.g=0}function K(){this.value=this.g=0}function M(){this.G=s(5,H),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(nt,K)}function uA(a,o,f,p){A(a!=null),A(o!=null),A(2147483648>p),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=o,a.pa=f,a.Jd=o,a.Yc=f+p,a.Zc=4<=p?f+p-4+1:f,nA(a)}function iA(a,o){for(var f=0;0<o--;)f|=sA(a,128)<<o;return f}function cA(a,o){var f=iA(a,o);return aA(a)?-f:f}function eA(a,o,f,p){var v,C=0;for(A(a!=null),A(o!=null),A(4294967288>p),a.Sb=p,a.Ra=0,a.u=0,a.h=0,4<p&&(p=4),v=0;v<p;++v)C+=o[f+v]<<8*v;a.Ra=C,a.bb=p,a.oa=o,a.pa=f}function lA(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<ci-8>>>0,++a.bb,a.u-=8;T(a)&&(a.h=1,a.u=0)}function BA(a,o){if(A(0<=o),!a.h&&o<=oi){var f=_(a)&si[o];return a.u+=o,lA(a),f}return a.h=1,a.u=0}function UA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function F(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(a){return a.Ra>>>(a.u&ci-1)>>>0}function T(a){return A(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>ci}function k(a,o){a.u=o,a.h=T(a)}function J(a){a.u>=na&&(A(a.u>=na),lA(a))}function nA(a){A(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(A(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function aA(a){return iA(a,1)}function sA(a,o){var f=a.Ca;0>a.b&&nA(a);var p=a.b,v=f*o>>>8,C=(a.I>>>p>v)+0;for(C?(f-=v,a.I-=v+1<<p>>>0):f=v+1,p=f,v=0;256<=p;)v+=8,p>>=8;return p=7^v+yt[p],a.b-=p,a.Ca=(f<<p)-1,C}function FA(a,o,f){a[o+0]=f>>24&255,a[o+1]=f>>16&255,a[o+2]=f>>8&255,a[o+3]=f>>0&255}function QA(a,o){return a[o+0]<<0|a[o+1]<<8}function IA(a,o){return QA(a,o)|a[o+2]<<16}function LA(a,o){return QA(a,o)|QA(a,o+2)<<16}function GA(a,o){var f=1<<o;return A(a!=null),A(0<o),a.X=i(f),a.X==null?0:(a.Mb=32-o,a.Xa=o,1)}function gA(a,o){A(a!=null),A(o!=null),A(a.Xa==o.Xa),r(o.X,0,a.X,0,1<<o.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function $A(a,o,f,p){A(f!=null),A(p!=null);var v=f[0],C=p[0];return v==0&&(v=(a*C+o/2)/o),C==0&&(C=(o*v+a/2)/a),0>=v||0>=C?0:(f[0]=v,p[0]=C,1)}function MA(a,o){return a+(1<<o)-1>>>o}function CA(a,o){return((4278255360&a)+(4278255360&o)>>>0&4278255360)+((16711935&a)+(16711935&o)>>>0&16711935)>>>0}function yA(a,o){P[o]=function(f,p,v,C,U,b,E){var N;for(N=0;N<U;++N){var G=P[a](b[E+N-1],v,C+N);b[E+N]=CA(f[p+N],G)}}}function HA(){this.ud=this.hd=this.jd=0}function xA(a,o){return((4278124286&(a^o))>>>1)+(a&o)>>>0}function KA(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function XA(a,o){return KA(a+(a-o+.5>>1))}function te(a,o,f){return Math.abs(o-f)-Math.abs(a-f)}function re(a,o,f,p,v,C,U){for(p=C[U-1],f=0;f<v;++f)C[U+f]=p=CA(a[o+f],p)}function oe(a,o,f,p,v){var C;for(C=0;C<f;++C){var U=a[o+C],b=U>>8&255,E=16711935&(E=(E=16711935&U)+((b<<16)+b));p[v+C]=(4278255360&U)+E>>>0}}function pe(a,o){o.jd=a>>0&255,o.hd=a>>8&255,o.ud=a>>16&255}function WA(a,o,f,p,v,C){var U;for(U=0;U<p;++U){var b=o[f+U],E=b>>>8,N=b,G=255&(G=(G=b>>>16)+((a.jd<<24>>24)*(E<<24>>24)>>>5));N=255&(N=(N=N+((a.hd<<24>>24)*(E<<24>>24)>>>5))+((a.ud<<24>>24)*(G<<24>>24)>>>5)),v[C+U]=(4278255360&b)+(G<<16)+N}}function ne(a,o,f,p,v){P[o]=function(C,U,b,E,N,G,tA,rA,z){for(E=tA;E<rA;++E)for(tA=0;tA<z;++tA)N[G++]=v(b[p(C[U++])])},P[a]=function(C,U,b,E,N,G,tA){var rA=8>>C.b,z=C.Ea,wA=C.K[0],fA=C.w;if(8>rA)for(C=(1<<C.b)-1,fA=(1<<rA)-1;U<b;++U){var V,W=0;for(V=0;V<z;++V)V&C||(W=p(E[N++])),G[tA++]=v(wA[W&fA]),W>>=rA}else P["VP8LMapColor"+f](E,N,wA,fA,G,tA,U,b,z)}}function SA(a,o,f,p,v){for(f=o+f;o<f;){var C=a[o++];p[v++]=C>>16&255,p[v++]=C>>8&255,p[v++]=C>>0&255}}function ot(a,o,f,p,v){for(f=o+f;o<f;){var C=a[o++];p[v++]=C>>16&255,p[v++]=C>>8&255,p[v++]=C>>0&255,p[v++]=C>>24&255}}function ue(a,o,f,p,v){for(f=o+f;o<f;){var C=(U=a[o++])>>16&240|U>>12&15,U=U>>0&240|U>>28&15;p[v++]=C,p[v++]=U}}function zt(a,o,f,p,v){for(f=o+f;o<f;){var C=(U=a[o++])>>16&248|U>>13&7,U=U>>5&224|U>>3&31;p[v++]=C,p[v++]=U}}function me(a,o,f,p,v){for(f=o+f;o<f;){var C=a[o++];p[v++]=C>>0&255,p[v++]=C>>8&255,p[v++]=C>>16&255}}function Ee(a,o,f,p,v,C){if(C==0)for(f=o+f;o<f;)FA(p,((C=a[o++])[0]>>24|C[1]>>8&65280|C[2]<<8&16711680|C[3]<<24)>>>0),v+=32;else r(p,v,a,o,f)}function Br(a,o){P[o][0]=P[a+"0"],P[o][1]=P[a+"1"],P[o][2]=P[a+"2"],P[o][3]=P[a+"3"],P[o][4]=P[a+"4"],P[o][5]=P[a+"5"],P[o][6]=P[a+"6"],P[o][7]=P[a+"7"],P[o][8]=P[a+"8"],P[o][9]=P[a+"9"],P[o][10]=P[a+"10"],P[o][11]=P[a+"11"],P[o][12]=P[a+"12"],P[o][13]=P[a+"13"],P[o][14]=P[a+"0"],P[o][15]=P[a+"0"]}function fe(a){return a==hc||a==Bc||a==ws||a==gc}function Qn(){this.eb=[],this.size=this.A=this.fb=0}function He(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Yt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qn,this.f.kb=new He,this.sd=null}function Hr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Se(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function zA(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function he(a,o){var f=a.T,p=o.ba.f.RGBA,v=p.eb,C=p.fb+a.ka*p.A,U=Gt[o.ba.S],b=a.y,E=a.O,N=a.f,G=a.N,tA=a.ea,rA=a.W,z=o.cc,wA=o.dc,fA=o.Mc,V=o.Nc,W=a.ka,dA=a.ka+a.T,vA=a.U,pA=vA+1>>1;for(W==0?U(b,E,null,null,N,G,tA,rA,N,G,tA,rA,v,C,null,null,vA):(U(o.ec,o.fc,b,E,z,wA,fA,V,N,G,tA,rA,v,C-p.A,v,C,vA),++f);W+2<dA;W+=2)z=N,wA=G,fA=tA,V=rA,G+=a.Rc,rA+=a.Rc,C+=2*p.A,U(b,(E+=2*a.fa)-a.fa,b,E,z,wA,fA,V,N,G,tA,rA,v,C-p.A,v,C,vA);return E+=a.fa,a.j+dA<a.o?(r(o.ec,o.fc,b,E,vA),r(o.cc,o.dc,N,G,pA),r(o.Mc,o.Nc,tA,rA,pA),f--):1&dA||U(b,E,null,null,N,G,tA,rA,N,G,tA,rA,v,C+p.A,null,null,vA),f}function Fn(a,o,f){var p=a.F,v=[a.J];if(p!=null){var C=a.U,U=o.ba.S,b=U==ps||U==ws;o=o.ba.f.RGBA;var E=[0],N=a.ka;E[0]=a.T,a.Kb&&(N==0?--E[0]:(--N,v[0]-=a.width),a.j+a.ka+a.T==a.o&&(E[0]=a.o-a.j-N));var G=o.eb;N=o.fb+N*o.A,a=ye(p,v[0],a.width,C,E,G,N+(b?0:3),o.A),A(f==E),a&&fe(U)&&Rt(G,N,b,C,E,o.A)}return 0}function rt(a){var o=a.ma,f=o.ba.S,p=11>f,v=f==gs||f==ds||f==ps||f==fc||f==12||fe(f);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!ta(o.Oa,a,v?11:12))return 0;if(v&&fe(f)&&mA(),a.da)alert("todo:use_scaling");else{if(p){if(o.Ib=zA,a.Kb){if(f=a.U+1>>1,o.memory=i(a.U+2*f),o.memory==null)return 0;o.ec=o.memory,o.fc=0,o.cc=o.ec,o.dc=o.fc+a.U,o.Mc=o.cc,o.Nc=o.dc+f,o.Ib=he,mA()}}else alert("todo:EmitYUV");v&&(o.Jb=Fn,p&&AA())}if(p&&!al){for(a=0;256>a;++a)_0[a]=89858*(a-128)+ms>>vs,P0[a]=-22014*(a-128)+ms,T0[a]=-45773*(a-128),D0[a]=113618*(a-128)+ms>>vs;for(a=la;a<wc;++a)o=76283*(a-16)+ms>>vs,O0[a-la]=St(o,255),M0[a-la]=St(o+8>>4,15);al=1}return 1}function gr(a){var o=a.ma,f=a.U,p=a.T;return A(!(1&a.ka)),0>=f||0>=p?0:(f=o.Ib(a,o),o.Jb!=null&&o.Jb(a,o,f),o.Dc+=f,1)}function dr(a){a.ma.memory=null}function jA(a,o,f,p){return BA(a,8)!=47?0:(o[0]=BA(a,14)+1,f[0]=BA(a,14)+1,p[0]=BA(a,1),BA(a,3)!=0?0:!a.h)}function Zt(a,o){if(4>a)return a+1;var f=a-2>>1;return(2+(1&a)<<f)+BA(o,f)+1}function pr(a,o){return 120<o?o-120:1<=(f=((f=m0[o-1])>>4)*a+(8-(15&f)))?f:1;var f}function Ft(a,o,f){var p=_(f),v=a[o+=255&p].g-8;return 0<v&&(k(f,f.u+8),p=_(f),o+=a[o].value,o+=p&(1<<v)-1),k(f,f.u+a[o].g),a[o].value}function Xe(a,o,f){return f.g+=a.g,f.value+=a.value<<o>>>0,A(8>=f.g),a.g}function Ge(a,o,f){var p=a.xc;return A((o=p==0?0:a.vc[a.md*(f>>p)+(o>>p)])<a.Wb),a.Ya[o]}function Ht(a,o,f,p){var v=a.ab,C=a.c*o,U=a.C;o=U+o;var b=f,E=p;for(p=a.Ta,f=a.Ua;0<v--;){var N=a.gc[v],G=U,tA=o,rA=b,z=E,wA=(E=p,b=f,N.Ea);switch(A(G<tA),A(tA<=N.nc),N.hc){case 2:os(rA,z,(tA-G)*wA,E,b);break;case 0:var fA=G,V=tA,W=E,dA=b,vA=(EA=N).Ea;fA==0&&(uc(rA,z,null,null,1,W,dA),re(rA,z+1,0,0,vA-1,W,dA+1),z+=vA,dA+=vA,++fA);for(var pA=1<<EA.b,DA=pA-1,bA=MA(vA,EA.b),RA=EA.K,EA=EA.w+(fA>>EA.b)*bA;fA<V;){var le=RA,ge=EA,ce=1;for(ia(rA,z,W,dA-vA,1,W,dA);ce<vA;){var ie=(ce&~DA)+pA;ie>vA&&(ie=vA),(0,zr[le[ge++]>>8&15])(rA,z+ +ce,W,dA+ce-vA,ie-ce,W,dA+ce),ce=ie}z+=vA,dA+=vA,++fA&DA||(EA+=bA)}tA!=N.nc&&r(E,b-wA,E,b+(tA-G-1)*wA,wA);break;case 1:for(wA=rA,V=z,vA=(rA=N.Ea)-(dA=rA&~(W=(z=1<<N.b)-1)),fA=MA(rA,N.b),pA=N.K,N=N.w+(G>>N.b)*fA;G<tA;){for(DA=pA,bA=N,RA=new HA,EA=V+dA,le=V+rA;V<EA;)pe(DA[bA++],RA),xn(RA,wA,V,z,E,b),V+=z,b+=z;V<le&&(pe(DA[bA++],RA),xn(RA,wA,V,vA,E,b),V+=vA,b+=vA),++G&W||(N+=fA)}break;case 3:if(rA==E&&z==b&&0<N.b){for(V=E,rA=wA=b+(tA-G)*wA-(dA=(tA-G)*MA(N.Ea,N.b)),z=E,W=b,fA=[],dA=(vA=dA)-1;0<=dA;--dA)fA[dA]=z[W+dA];for(dA=vA-1;0<=dA;--dA)V[rA+dA]=fA[dA];Mt(N,G,tA,E,wA,E,b)}else Mt(N,G,tA,rA,z,E,b)}b=p,E=f}E!=f&&r(p,f,b,E,C)}function Gn(a,o){var f=a.V,p=a.Ba+a.c*a.C,v=o-a.C;if(A(o<=a.l.o),A(16>=v),0<v){var C=a.l,U=a.Ta,b=a.Ua,E=C.width;if(Ht(a,v,f,p),v=b=[b],A((f=a.C)<(p=o)),A(C.v<C.va),p>C.o&&(p=C.o),f<C.j){var N=C.j-f;f=C.j,v[0]+=N*E}if(f>=p?f=0:(v[0]+=4*C.v,C.ka=f-C.j,C.U=C.va-C.v,C.T=p-f,f=1),f){if(b=b[0],11>(f=a.ca).S){var G=f.f.RGBA,tA=(p=f.S,v=C.U,C=C.T,N=G.eb,G.A),rA=C;for(G=G.fb+a.Ma*G.A;0<rA--;){var z=U,wA=b,fA=v,V=N,W=G;switch(p){case Bs:bt(z,wA,fA,V,W);break;case gs:wt(z,wA,fA,V,W);break;case hc:wt(z,wA,fA,V,W),Rt(V,W,0,fA,1,0);break;case zu:Tr(z,wA,fA,V,W);break;case ds:Ee(z,wA,fA,V,W,1);break;case Bc:Ee(z,wA,fA,V,W,1),Rt(V,W,0,fA,1,0);break;case ps:Ee(z,wA,fA,V,W,0);break;case ws:Ee(z,wA,fA,V,W,0),Rt(V,W,1,fA,1,0);break;case fc:Yr(z,wA,fA,V,W);break;case gc:Yr(z,wA,fA,V,W),Ue(V,W,fA,1,0);break;case Yu:Dr(z,wA,fA,V,W);break;default:A(0)}b+=E,G+=tA}a.Ma+=C}else alert("todo:EmitRescaledRowsYUVA");A(a.Ma<=f.height)}}a.C=o,A(a.C<=a.i)}function Sr(a){var o;if(0<a.ua)return 0;for(o=0;o<a.Wb;++o){var f=a.Ya[o].G,p=a.Ya[o].H;if(0<f[1][p[1]+0].g||0<f[2][p[2]+0].g||0<f[3][p[3]+0].g)return 0}return 1}function $t(a,o,f,p,v,C){if(a.Z!=0){var U=a.qd,b=a.rd;for(A(en[a.Z]!=null);o<f;++o)en[a.Z](U,b,p,v,p,v,C),U=p,b=v,v+=C;a.qd=U,a.rd=b}}function Ar(a,o){var f=a.l.ma,p=f.Z==0||f.Z==1?a.l.j:a.C;if(p=a.C<p?p:a.C,A(o<=a.l.o),o>p){var v=a.l.width,C=f.ca,U=f.tb+v*p,b=a.V,E=a.Ba+a.c*p,N=a.gc;A(a.ab==1),A(N[0].hc==3),cs(N[0],p,o,b,E,C,U),$t(f,p,o,C,U,v)}a.C=a.Ma=o}function er(a,o,f,p,v,C,U){var b=a.$/p,E=a.$%p,N=a.m,G=a.s,tA=f+a.$,rA=tA;v=f+p*v;var z=f+p*C,wA=280+G.ua,fA=a.Pb?b:16777216,V=0<G.ua?G.Wa:null,W=G.wc,dA=tA<z?Ge(G,E,b):null;A(a.C<C),A(z<=v);var vA=!1;A:for(;;){for(;vA||tA<z;){var pA=0;if(b>=fA){var DA=tA-f;A((fA=a).Pb),fA.wd=fA.m,fA.xd=DA,0<fA.s.ua&&gA(fA.s.Wa,fA.s.vb),fA=b+Q0}if(E&W||(dA=Ge(G,E,b)),A(dA!=null),dA.Qb&&(o[tA]=dA.qb,vA=!0),!vA)if(J(N),dA.jc){pA=N,DA=o;var bA=tA,RA=dA.pd[_(pA)&nt-1];A(dA.jc),256>RA.g?(k(pA,pA.u+RA.g),DA[bA]=RA.value,pA=0):(k(pA,pA.u+RA.g-256),A(256<=RA.value),pA=RA.value),pA==0&&(vA=!0)}else pA=Ft(dA.G[0],dA.H[0],N);if(N.h)break;if(vA||256>pA){if(!vA)if(dA.nd)o[tA]=(dA.qb|pA<<8)>>>0;else{if(J(N),vA=Ft(dA.G[1],dA.H[1],N),J(N),DA=Ft(dA.G[2],dA.H[2],N),bA=Ft(dA.G[3],dA.H[3],N),N.h)break;o[tA]=(bA<<24|vA<<16|pA<<8|DA)>>>0}if(vA=!1,++tA,++E>=p&&(E=0,++b,U!=null&&b<=C&&!(b%16)&&U(a,b),V!=null))for(;rA<tA;)pA=o[rA++],V.X[(506832829*pA&4294967295)>>>V.Mb]=pA}else if(280>pA){if(pA=Zt(pA-256,N),DA=Ft(dA.G[4],dA.H[4],N),J(N),DA=pr(p,DA=Zt(DA,N)),N.h)break;if(tA-f<DA||v-tA<pA)break A;for(bA=0;bA<pA;++bA)o[tA+bA]=o[tA+bA-DA];for(tA+=pA,E+=pA;E>=p;)E-=p,++b,U!=null&&b<=C&&!(b%16)&&U(a,b);if(A(tA<=v),E&W&&(dA=Ge(G,E,b)),V!=null)for(;rA<tA;)pA=o[rA++],V.X[(506832829*pA&4294967295)>>>V.Mb]=pA}else{if(!(pA<wA))break A;for(vA=pA-280,A(V!=null);rA<tA;)pA=o[rA++],V.X[(506832829*pA&4294967295)>>>V.Mb]=pA;pA=tA,A(!(vA>>>(DA=V).Xa)),o[pA]=DA.X[vA],vA=!0}vA||A(N.h==T(N))}if(a.Pb&&N.h&&tA<v)A(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&gA(a.s.vb,a.s.Wa);else{if(N.h)break A;U!=null&&U(a,b>C?C:b),a.a=0,a.$=tA-f}return 1}return a.a=3,0}function wr(a){A(a!=null),a.vc=null,a.yc=null,a.Ya=null;var o=a.Wa;o!=null&&(o.X=null),a.vb=null,A(a!=null)}function Ot(){var a=new cc;return a==null?null:(a.a=0,a.xb=Al,Br("Predictor","VP8LPredictors"),Br("Predictor","VP8LPredictors_C"),Br("PredictorAdd","VP8LPredictorsAdd"),Br("PredictorAdd","VP8LPredictorsAdd_C"),os=oe,xn=WA,bt=SA,wt=ot,Yr=ue,Dr=zt,Tr=me,P.VP8LMapColor32b=ui,P.VP8LMapColor8b=us,a)}function vr(a,o,f,p,v){var C=1,U=[a],b=[o],E=p.m,N=p.s,G=null,tA=0;A:for(;;){if(f)for(;C&&BA(E,1);){var rA=U,z=b,wA=p,fA=1,V=wA.m,W=wA.gc[wA.ab],dA=BA(V,2);if(wA.Oc&1<<dA)C=0;else{switch(wA.Oc|=1<<dA,W.hc=dA,W.Ea=rA[0],W.nc=z[0],W.K=[null],++wA.ab,A(4>=wA.ab),dA){case 0:case 1:W.b=BA(V,3)+2,fA=vr(MA(W.Ea,W.b),MA(W.nc,W.b),0,wA,W.K),W.K=W.K[0];break;case 3:var vA,pA=BA(V,8)+1,DA=16<pA?0:4<pA?1:2<pA?2:3;if(rA[0]=MA(W.Ea,DA),W.b=DA,vA=fA=vr(pA,1,0,wA,W.K)){var bA,RA=pA,EA=W,le=1<<(8>>EA.b),ge=i(le);if(ge==null)vA=0;else{var ce=EA.K[0],ie=EA.w;for(ge[0]=EA.K[0][0],bA=1;bA<1*RA;++bA)ge[bA]=CA(ce[ie+bA],ge[bA-1]);for(;bA<4*le;++bA)ge[bA]=0;EA.K[0]=null,EA.K[0]=ge,vA=1}}fA=vA;break;case 2:break;default:A(0)}C=fA}}if(U=U[0],b=b[0],C&&BA(E,1)&&!(C=1<=(tA=BA(E,4))&&11>=tA)){p.a=3;break A}var Ce;if(Ce=C)e:{var we,ee,qe,Lt=p,We=U,Et=b,de=tA,_t=f,Dt=Lt.m,$e=Lt.s,it=[null],mt=1,Vt=0,Fr=C0[de];t:for(;;){if(_t&&BA(Dt,1)){var At=BA(Dt,3)+2,Kr=MA(We,At),_n=MA(Et,At),gi=Kr*_n;if(!vr(Kr,_n,0,Lt,it))break t;for(it=it[0],$e.xc=At,we=0;we<gi;++we){var tn=it[we]>>8&65535;it[we]=tn,tn>=mt&&(mt=tn+1)}}if(Dt.h)break t;for(ee=0;5>ee;++ee){var _e=Zu[ee];!ee&&0<de&&(_e+=1<<de),Vt<_e&&(Vt=_e)}var vc=s(mt*Fr,H),cl=mt,ul=s(cl,M);if(ul==null)var Qs=null;else A(65536>=cl),Qs=ul;var fa=i(Vt);if(Qs==null||fa==null||vc==null){Lt.a=1;break t}var Fs=vc;for(we=qe=0;we<mt;++we){var ar=Qs[we],di=ar.G,pi=ar.H,ll=0,Us=1,fl=0;for(ee=0;5>ee;++ee){_e=Zu[ee],di[ee]=Fs,pi[ee]=qe,!ee&&0<de&&(_e+=1<<de);n:{var ys,mc=_e,bs=Lt,ha=fa,R0=Fs,j0=qe,Cc=0,rn=bs.m,G0=BA(rn,1);if(n(ha,0,0,mc),G0){var V0=BA(rn,1)+1,q0=BA(rn,1),hl=BA(rn,q0==0?1:8);ha[hl]=1,V0==2&&(ha[hl=BA(rn,8)]=1);var Ls=1}else{var Bl=i(19),gl=BA(rn,4)+4;if(19<gl){bs.a=3;var Es=0;break n}for(ys=0;ys<gl;++ys)Bl[v0[ys]]=BA(rn,3);var Qc=void 0,Ba=void 0,dl=bs,W0=Bl,xs=mc,pl=ha,Fc=0,nn=dl.m,wl=8,vl=s(128,H);r:for(;I(vl,0,7,W0,19);){if(BA(nn,1)){var J0=2+2*BA(nn,3);if((Qc=2+BA(nn,J0))>xs)break r}else Qc=xs;for(Ba=0;Ba<xs&&Qc--;){J(nn);var ml=vl[0+(127&_(nn))];k(nn,nn.u+ml.g);var wi=ml.value;if(16>wi)pl[Ba++]=wi,wi!=0&&(wl=wi);else{var X0=wi==16,Cl=wi-16,z0=p0[Cl],Ql=BA(nn,d0[Cl])+z0;if(Ba+Ql>xs)break r;for(var Y0=X0?wl:0;0<Ql--;)pl[Ba++]=Y0}}Fc=1;break r}Fc||(dl.a=3),Ls=Fc}(Ls=Ls&&!rn.h)&&(Cc=I(R0,j0,8,ha,mc)),Ls&&Cc!=0?Es=Cc:(bs.a=3,Es=0)}if(Es==0)break t;if(Us&&w0[ee]==1&&(Us=Fs[qe].g==0),ll+=Fs[qe].g,qe+=Es,3>=ee){var ga,Uc=fa[0];for(ga=1;ga<_e;++ga)fa[ga]>Uc&&(Uc=fa[ga]);fl+=Uc}}if(ar.nd=Us,ar.Qb=0,Us&&(ar.qb=(di[3][pi[3]+0].value<<24|di[1][pi[1]+0].value<<16|di[2][pi[2]+0].value)>>>0,ll==0&&256>di[0][pi[0]+0].value&&(ar.Qb=1,ar.qb+=di[0][pi[0]+0].value<<8)),ar.jc=!ar.Qb&&6>fl,ar.jc){var Is,kr=ar;for(Is=0;Is<nt;++Is){var an=Is,sn=kr.pd[an],Hs=kr.G[0][kr.H[0]+an];256<=Hs.value?(sn.g=Hs.g+256,sn.value=Hs.value):(sn.g=0,sn.value=0,an>>=Xe(Hs,8,sn),an>>=Xe(kr.G[1][kr.H[1]+an],16,sn),an>>=Xe(kr.G[2][kr.H[2]+an],0,sn),Xe(kr.G[3][kr.H[3]+an],24,sn))}}}$e.vc=it,$e.Wb=mt,$e.Ya=Qs,$e.yc=vc,Ce=1;break e}Ce=0}if(!(C=Ce)){p.a=3;break A}if(0<tA){if(N.ua=1<<tA,!GA(N.Wa,tA)){p.a=1,C=0;break A}}else N.ua=0;var yc=p,Fl=U,Z0=b,bc=yc.s,Lc=bc.xc;if(yc.c=Fl,yc.i=Z0,bc.md=MA(Fl,Lc),bc.wc=Lc==0?-1:(1<<Lc)-1,f){p.xb=x0;break A}if((G=i(U*b))==null){p.a=1,C=0;break A}C=(C=er(p,G,0,U,b,b,null))&&!E.h;break A}return C?(v!=null?v[0]=G:(A(G==null),A(f)),p.$=0,f||wr(N)):wr(N),C}function Un(a,o){var f=a.c*a.i,p=f+o+16*o;return A(a.c<=o),a.V=i(p),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+f+o,1)}function Vn(a,o){var f=a.C,p=o-f,v=a.V,C=a.Ba+a.c*f;for(A(o<=a.l.o);0<p;){var U=16<p?16:p,b=a.l.ma,E=a.l.width,N=E*U,G=b.ca,tA=b.tb+E*f,rA=a.Ta,z=a.Ua;Ht(a,U,v,C),Oe(rA,z,G,tA,N),$t(b,f,f+U,G,tA,E),p-=U,v+=U*a.c,f+=U}A(f==o),a.C=a.Ma=o}function qn(){this.ub=this.yd=this.td=this.Rb=0}function Wn(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Jn(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Ra(){this.Yb=function(){var a=[];return function o(f,p,v){for(var C=v[p],U=0;U<C&&(f.push(v.length>p+1?[]:0),!(v.length<p+1));U++)o(f[U],p+1,v)}(a,0,[3,11]),a}()}function Ko(){this.jb=i(3),this.Wc=c([4,8],Ra),this.Xc=c([4,17],Ra)}function ko(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Xn(){this.ld=this.La=this.dd=this.tc=0}function ja(){this.Na=this.la=0}function Ro(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ki(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function jo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Xn),this.Y=0,this.ya=Array(new Ki),this.aa=0,this.l=new zn}function Ga(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Go(){this.cb=this.a=0,this.sc="",this.m=new UA,this.Od=new qn,this.Kc=new Wn,this.ed=new ko,this.Qa=new Jn,this.Ic=this.$c=this.Aa=0,this.D=new jo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,UA),this.ia=0,this.pb=s(4,Ro),this.Pa=new Ko,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ga),this.Hd=0,this.rb=Array(new ja),this.sb=0,this.wa=Array(new Xn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ki),this.L=this.aa=0,this.gd=c([4,2],Xn),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function zn(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Vo(){var a=new Go;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,ua||(ua=Wa)),a}function Te(a,o,f){return a.a==0&&(a.a=o,a.sc=f,a.cb=0),0}function Va(a,o,f){return 3<=f&&a[o+0]==157&&a[o+1]==1&&a[o+2]==42}function qa(a,o){if(a==null)return 0;if(a.a=0,a.sc="OK",o==null)return Te(a,2,"null VP8Io passed to VP8GetHeaders()");var f=o.data,p=o.w,v=o.ha;if(4>v)return Te(a,7,"Truncated header.");var C=f[p+0]|f[p+1]<<8|f[p+2]<<16,U=a.Od;if(U.Rb=!(1&C),U.td=C>>1&7,U.yd=C>>4&1,U.ub=C>>5,3<U.td)return Te(a,3,"Incorrect keyframe parameters.");if(!U.yd)return Te(a,4,"Frame not displayable.");p+=3,v-=3;var b=a.Kc;if(U.Rb){if(7>v)return Te(a,7,"cannot parse picture header");if(!Va(f,p,v))return Te(a,3,"Bad code word");b.c=16383&(f[p+4]<<8|f[p+3]),b.Td=f[p+4]>>6,b.i=16383&(f[p+6]<<8|f[p+5]),b.Ud=f[p+6]>>6,p+=7,v-=7,a.za=b.c+15>>4,a.Ub=b.i+15>>4,o.width=b.c,o.height=b.i,o.Da=0,o.j=0,o.v=0,o.va=o.width,o.o=o.height,o.da=0,o.ib=o.width,o.hb=o.height,o.U=o.width,o.T=o.height,n((C=a.Pa).jb,0,255,C.jb.length),A((C=a.Qa)!=null),C.Cb=0,C.Bb=0,C.Fb=1,n(C.Zb,0,0,C.Zb.length),n(C.Lb,0,0,C.Lb)}if(U.ub>v)return Te(a,7,"bad partition length");uA(C=a.m,f,p,U.ub),p+=U.ub,v-=U.ub,U.Rb&&(b.Ld=aA(C),b.Kd=aA(C)),b=a.Qa;var E,N=a.Pa;if(A(C!=null),A(b!=null),b.Cb=aA(C),b.Cb){if(b.Bb=aA(C),aA(C)){for(b.Fb=aA(C),E=0;4>E;++E)b.Zb[E]=aA(C)?cA(C,7):0;for(E=0;4>E;++E)b.Lb[E]=aA(C)?cA(C,6):0}if(b.Bb)for(E=0;3>E;++E)N.jb[E]=aA(C)?iA(C,8):255}else b.Bb=0;if(C.Ka)return Te(a,3,"cannot parse segment header");if((b=a.ed).zd=aA(C),b.Tb=iA(C,6),b.wb=iA(C,3),b.Pc=aA(C),b.Pc&&aA(C)){for(N=0;4>N;++N)aA(C)&&(b.vd[N]=cA(C,6));for(N=0;4>N;++N)aA(C)&&(b.od[N]=cA(C,6))}if(a.L=b.Tb==0?0:b.zd?1:2,C.Ka)return Te(a,3,"cannot parse filter header");var G=v;if(v=E=p,p=E+G,b=G,a.Xb=(1<<iA(a.m,2))-1,G<3*(N=a.Xb))f=7;else{for(E+=3*N,b-=3*N,G=0;G<N;++G){var tA=f[v+0]|f[v+1]<<8|f[v+2]<<16;tA>b&&(tA=b),uA(a.Jc[+G],f,E,tA),E+=tA,b-=tA,v+=3}uA(a.Jc[+N],f,E,b),f=E<p?0:5}if(f!=0)return Te(a,f,"cannot parse partitions");for(f=iA(E=a.m,7),v=aA(E)?cA(E,4):0,p=aA(E)?cA(E,4):0,b=aA(E)?cA(E,4):0,N=aA(E)?cA(E,4):0,E=aA(E)?cA(E,4):0,G=a.Qa,tA=0;4>tA;++tA){if(G.Cb){var rA=G.Zb[tA];G.Fb||(rA+=f)}else{if(0<tA){a.pb[tA]=a.pb[0];continue}rA=f}var z=a.pb[tA];z.Sc[0]=dc[St(rA+v,127)],z.Sc[1]=pc[St(rA+0,127)],z.Eb[0]=2*dc[St(rA+p,127)],z.Eb[1]=101581*pc[St(rA+b,127)]>>16,8>z.Eb[1]&&(z.Eb[1]=8),z.Qc[0]=dc[St(rA+N,117)],z.Qc[1]=pc[St(rA+E,127)],z.lc=rA+E}if(!U.Rb)return Te(a,4,"Not a key frame.");for(aA(C),U=a.Pa,f=0;4>f;++f){for(v=0;8>v;++v)for(p=0;3>p;++p)for(b=0;11>b;++b)N=sA(C,L0[f][v][p][b])?iA(C,8):y0[f][v][p][b],U.Wc[f][v].Yb[p][b]=N;for(v=0;17>v;++v)U.Xc[f][v]=U.Wc[f][E0[v]]}return a.kc=aA(C),a.kc&&(a.Bd=iA(C,8)),a.cb=1}function Wa(a,o,f,p,v,C,U){var b=o[v].Yb[f];for(f=0;16>v;++v){if(!sA(a,b[f+0]))return v;for(;!sA(a,b[f+1]);)if(b=o[++v].Yb[0],f=0,v==16)return 16;var E=o[v+1].Yb;if(sA(a,b[f+2])){var N=a,G=0;if(sA(N,(rA=b)[(tA=f)+3]))if(sA(N,rA[tA+6])){for(b=0,tA=2*(G=sA(N,rA[tA+8]))+(rA=sA(N,rA[tA+9+G])),G=0,rA=F0[tA];rA[b];++b)G+=G+sA(N,rA[b]);G+=3+(8<<tA)}else sA(N,rA[tA+7])?(G=7+2*sA(N,165),G+=sA(N,145)):G=5+sA(N,159);else G=sA(N,rA[tA+4])?3+sA(N,rA[tA+5]):2;b=E[2]}else G=1,b=E[1];E=U+U0[v],0>(N=a).b&&nA(N);var tA,rA=N.b,z=(tA=N.Ca>>1)-(N.I>>rA)>>31;--N.b,N.Ca+=z,N.Ca|=1,N.I-=(tA+1&z)<<rA,C[E]=((G^z)-z)*p[(0<v)+0]}return 16}function ki(a){var o=a.rb[a.sb-1];o.la=0,o.Na=0,n(a.zc,0,0,a.zc.length),a.ja=0}function qo(a,o){if(a==null)return 0;if(o==null)return Te(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!qa(a,o))return 0;if(A(a.cb),o.ac==null||o.ac(o)){o.ob&&(a.L=0);var f=Cs[a.L];if(a.L==2?(a.yb=0,a.zb=0):(a.yb=o.v-f>>4,a.zb=o.j-f>>4,0>a.yb&&(a.yb=0),0>a.zb&&(a.zb=0)),a.Va=o.o+15+f>>4,a.Hb=o.va+15+f>>4,a.Hb>a.za&&(a.Hb=a.za),a.Va>a.Ub&&(a.Va=a.Ub),0<a.L){var p=a.ed;for(f=0;4>f;++f){var v;if(a.Qa.Cb){var C=a.Qa.Lb[f];a.Qa.Fb||(C+=p.Tb)}else C=p.Tb;for(v=0;1>=v;++v){var U=a.gd[f][v],b=C;if(p.Pc&&(b+=p.vd[0],v&&(b+=p.od[0])),0<(b=0>b?0:63<b?63:b)){var E=b;0<p.wb&&(E=4<p.wb?E>>2:E>>1)>9-p.wb&&(E=9-p.wb),1>E&&(E=1),U.dd=E,U.tc=2*b+E,U.ld=40<=b?2:15<=b?1:0}else U.tc=0;U.La=v}}}f=0}else Te(a,6,"Frame setup failed"),f=a.a;if(f=f==0){if(f){a.$c=0,0<a.Aa||(a.Ic=k0);A:{f=a.Ic,p=4*(E=a.za);var N=32*E,G=E+1,tA=0<a.L?E*(0<a.Aa?2:1):0,rA=(a.Aa==2?2:1)*E;if((U=p+832+(v=3*(16*f+Cs[a.L])/2*N)+(C=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=U)f=0;else{if(U>a.Vb){if(a.Vb=0,a.Ec=i(U),a.Fc=0,a.Ec==null){f=Te(a,1,"no memory during frame initialization.");break A}a.Vb=U}U=a.Ec,b=a.Fc,a.Ac=U,a.Bc=b,b+=p,a.Gd=s(N,Ga),a.Hd=0,a.rb=s(G+1,ja),a.sb=1,a.wa=tA?s(tA,Xn):null,a.Y=0,a.D.Nb=0,a.D.wa=a.wa,a.D.Y=a.Y,0<a.Aa&&(a.D.Y+=E),A(!0),a.oc=U,a.pc=b,b+=832,a.ya=s(rA,Ki),a.aa=0,a.D.ya=a.ya,a.D.aa=a.aa,a.Aa==2&&(a.D.aa+=E),a.R=16*E,a.B=8*E,E=(N=Cs[a.L])*a.R,N=N/2*a.B,a.sa=U,a.ta=b+E,a.qa=a.sa,a.ra=a.ta+16*f*a.R+N,a.Ha=a.qa,a.Ia=a.ra+8*f*a.B+N,a.$c=0,b+=v,a.mb=C?U:null,a.nb=C?b:null,A(b+C<=a.Fc+a.Vb),ki(a),n(a.Ac,a.Bc,0,p),f=1}}if(f){if(o.ka=0,o.y=a.sa,o.O=a.ta,o.f=a.qa,o.N=a.ra,o.ea=a.Ha,o.Vd=a.Ia,o.fa=a.R,o.Rc=a.B,o.F=null,o.J=0,!fs){for(f=-255;255>=f;++f)ze[255+f]=0>f?-f:f;for(f=-1020;1020>=f;++f)Or[1020+f]=-128>f?-128:127<f?127:f;for(f=-112;112>=f;++f)ca[112+f]=-16>f?-16:15<f?15:f;for(f=-255;510>=f;++f)Bi[255+f]=0>f?0:255<f?255:f;fs=1}li=Xo,Pr=Wo,aa=Xa,vt=Jo,Kt=za,Pe=Ja,fi=Wi,ls=Ln,sa=oc,In=Ji,Hn=sc,Zr=ti,Sn=Xi,hi=is,Nn=ns,$r=Cr,oa=_r,kt=ac,ir[0]=mr,ir[1]=zo,ir[2]=Ac,ir[3]=ec,ir[4]=$a,ir[5]=Ai,ir[6]=As,ir[7]=Gi,ir[8]=rc,ir[9]=tc,An[0]=Ya,An[1]=Zo,An[2]=Nr,An[3]=Zn,An[4]=ct,An[5]=$o,An[6]=Za,Mr[0]=Wr,Mr[1]=Yo,Mr[2]=nc,Mr[3]=Vi,Mr[4]=bn,Mr[5]=ic,Mr[6]=qi,f=1}else f=0}f&&(f=function(z,wA){for(z.M=0;z.M<z.Va;++z.M){var fA,V=z.Jc[z.M&z.Xb],W=z.m,dA=z;for(fA=0;fA<dA.za;++fA){var vA=W,pA=dA,DA=pA.Ac,bA=pA.Bc+4*fA,RA=pA.zc,EA=pA.ya[pA.aa+fA];if(pA.Qa.Bb?EA.$b=sA(vA,pA.Pa.jb[0])?2+sA(vA,pA.Pa.jb[2]):sA(vA,pA.Pa.jb[1]):EA.$b=0,pA.kc&&(EA.Ad=sA(vA,pA.Bd)),EA.Za=!sA(vA,145)+0,EA.Za){var le=EA.Ob,ge=0;for(pA=0;4>pA;++pA){var ce,ie=RA[0+pA];for(ce=0;4>ce;++ce){ie=b0[DA[bA+ce]][ie];for(var Ce=$u[sA(vA,ie[0])];0<Ce;)Ce=$u[2*Ce+sA(vA,ie[Ce])];ie=-Ce,DA[bA+ce]=ie}r(le,ge,DA,bA,4),ge+=4,RA[0+pA]=ie}}else ie=sA(vA,156)?sA(vA,128)?1:3:sA(vA,163)?2:0,EA.Ob[0]=ie,n(DA,bA,ie,4),n(RA,0,ie,4);EA.Dd=sA(vA,142)?sA(vA,114)?sA(vA,183)?1:3:2:0}if(dA.m.Ka)return Te(z,7,"Premature end-of-partition0 encountered.");for(;z.ja<z.za;++z.ja){if(dA=V,vA=(W=z).rb[W.sb-1],DA=W.rb[W.sb+W.ja],fA=W.ya[W.aa+W.ja],bA=W.kc?fA.Ad:0)vA.la=DA.la=0,fA.Za||(vA.Na=DA.Na=0),fA.Hc=0,fA.Gc=0,fA.ia=0;else{var we,ee;if(vA=DA,DA=dA,bA=W.Pa.Xc,RA=W.ya[W.aa+W.ja],EA=W.pb[RA.$b],pA=RA.ad,le=0,ge=W.rb[W.sb-1],ie=ce=0,n(pA,le,0,384),RA.Za)var qe=0,Lt=bA[3];else{Ce=i(16);var We=vA.Na+ge.Na;if(We=ua(DA,bA[1],We,EA.Eb,0,Ce,0),vA.Na=ge.Na=(0<We)+0,1<We)li(Ce,0,pA,le);else{var Et=Ce[0]+3>>3;for(Ce=0;256>Ce;Ce+=16)pA[le+Ce]=Et}qe=1,Lt=bA[0]}var de=15&vA.la,_t=15&ge.la;for(Ce=0;4>Ce;++Ce){var Dt=1&_t;for(Et=ee=0;4>Et;++Et)de=de>>1|(Dt=(We=ua(DA,Lt,We=Dt+(1&de),EA.Sc,qe,pA,le))>qe)<<7,ee=ee<<2|(3<We?3:1<We?2:pA[le+0]!=0),le+=16;de>>=4,_t=_t>>1|Dt<<7,ce=(ce<<8|ee)>>>0}for(Lt=de,qe=_t>>4,we=0;4>we;we+=2){for(ee=0,de=vA.la>>4+we,_t=ge.la>>4+we,Ce=0;2>Ce;++Ce){for(Dt=1&_t,Et=0;2>Et;++Et)We=Dt+(1&de),de=de>>1|(Dt=0<(We=ua(DA,bA[2],We,EA.Qc,0,pA,le)))<<3,ee=ee<<2|(3<We?3:1<We?2:pA[le+0]!=0),le+=16;de>>=2,_t=_t>>1|Dt<<5}ie|=ee<<4*we,Lt|=de<<4<<we,qe|=(240&_t)<<we}vA.la=Lt,ge.la=qe,RA.Hc=ce,RA.Gc=ie,RA.ia=43690&ie?0:EA.ia,bA=!(ce|ie)}if(0<W.L&&(W.wa[W.Y+W.ja]=W.gd[fA.$b][fA.Za],W.wa[W.Y+W.ja].La|=!bA),dA.Ka)return Te(z,7,"Premature end-of-file encountered.")}if(ki(z),W=wA,dA=1,fA=(V=z).D,vA=0<V.L&&V.M>=V.zb&&V.M<=V.Va,V.Aa==0)A:{if(fA.M=V.M,fA.uc=vA,ea(V,fA),dA=1,fA=(ee=V.D).Nb,vA=(ie=Cs[V.L])*V.R,DA=ie/2*V.B,Ce=16*fA*V.R,Et=8*fA*V.B,bA=V.sa,RA=V.ta-vA+Ce,EA=V.qa,pA=V.ra-DA+Et,le=V.Ha,ge=V.Ia-DA+Et,_t=(de=ee.M)==0,ce=de>=V.Va-1,V.Aa==2&&ea(V,ee),ee.uc)for(Dt=(We=V).D.M,A(We.D.uc),ee=We.yb;ee<We.Hb;++ee){qe=ee,Lt=Dt;var $e=(it=(_e=We).D).Nb;we=_e.R;var it=it.wa[it.Y+qe],mt=_e.sa,Vt=_e.ta+16*$e*we+16*qe,Fr=it.dd,At=it.tc;if(At!=0)if(A(3<=At),_e.L==1)0<qe&&$r(mt,Vt,we,At+4),it.La&&kt(mt,Vt,we,At),0<Lt&&Nn(mt,Vt,we,At+4),it.La&&oa(mt,Vt,we,At);else{var Kr=_e.B,_n=_e.qa,gi=_e.ra+8*$e*Kr+8*qe,tn=_e.Ha,_e=_e.Ia+8*$e*Kr+8*qe;$e=it.ld,0<qe&&(ls(mt,Vt,we,At+4,Fr,$e),In(_n,gi,tn,_e,Kr,At+4,Fr,$e)),it.La&&(Zr(mt,Vt,we,At,Fr,$e),hi(_n,gi,tn,_e,Kr,At,Fr,$e)),0<Lt&&(fi(mt,Vt,we,At+4,Fr,$e),sa(_n,gi,tn,_e,Kr,At+4,Fr,$e)),it.La&&(Hn(mt,Vt,we,At,Fr,$e),Sn(_n,gi,tn,_e,Kr,At,Fr,$e))}}if(V.ia&&alert("todo:DitherRow"),W.put!=null){if(ee=16*de,de=16*(de+1),_t?(W.y=V.sa,W.O=V.ta+Ce,W.f=V.qa,W.N=V.ra+Et,W.ea=V.Ha,W.W=V.Ia+Et):(ee-=ie,W.y=bA,W.O=RA,W.f=EA,W.N=pA,W.ea=le,W.W=ge),ce||(de-=ie),de>W.o&&(de=W.o),W.F=null,W.J=null,V.Fa!=null&&0<V.Fa.length&&ee<de&&(W.J=$i(V,W,ee,de-ee),W.F=V.mb,W.F==null&&W.F.length==0)){dA=Te(V,3,"Could not decode alpha data.");break A}ee<W.j&&(ie=W.j-ee,ee=W.j,A(!(1&ie)),W.O+=V.R*ie,W.N+=V.B*(ie>>1),W.W+=V.B*(ie>>1),W.F!=null&&(W.J+=W.width*ie)),ee<de&&(W.O+=W.v,W.N+=W.v>>1,W.W+=W.v>>1,W.F!=null&&(W.J+=W.v),W.ka=ee-W.j,W.U=W.va-W.v,W.T=de-ee,dA=W.put(W))}fA+1!=V.Ic||ce||(r(V.sa,V.ta-vA,bA,RA+16*V.R,vA),r(V.qa,V.ra-DA,EA,pA+8*V.B,DA),r(V.Ha,V.Ia-DA,le,ge+8*V.B,DA))}if(!dA)return Te(z,6,"Output aborted.")}return 1}(a,o)),o.bc!=null&&o.bc(o),f&=1}return f?(a.cb=0,f):0}function tr(a,o,f,p,v){v=a[o+f+32*p]+(v>>3),a[o+f+32*p]=-256&v?0>v?0:255:v}function Yn(a,o,f,p,v,C){tr(a,o,0,f,p+v),tr(a,o,1,f,p+C),tr(a,o,2,f,p-C),tr(a,o,3,f,p-v)}function Ut(a){return(20091*a>>16)+a}function Ri(a,o,f,p){var v,C=0,U=i(16);for(v=0;4>v;++v){var b=a[o+0]+a[o+8],E=a[o+0]-a[o+8],N=(35468*a[o+4]>>16)-Ut(a[o+12]),G=Ut(a[o+4])+(35468*a[o+12]>>16);U[C+0]=b+G,U[C+1]=E+N,U[C+2]=E-N,U[C+3]=b-G,C+=4,o++}for(v=C=0;4>v;++v)b=(a=U[C+0]+4)+U[C+8],E=a-U[C+8],N=(35468*U[C+4]>>16)-Ut(U[C+12]),tr(f,p,0,0,b+(G=Ut(U[C+4])+(35468*U[C+12]>>16))),tr(f,p,1,0,E+N),tr(f,p,2,0,E-N),tr(f,p,3,0,b-G),C++,p+=32}function Ja(a,o,f,p){var v=a[o+0]+4,C=35468*a[o+4]>>16,U=Ut(a[o+4]),b=35468*a[o+1]>>16;Yn(f,p,0,v+U,a=Ut(a[o+1]),b),Yn(f,p,1,v+C,a,b),Yn(f,p,2,v-C,a,b),Yn(f,p,3,v-U,a,b)}function Wo(a,o,f,p,v){Ri(a,o,f,p),v&&Ri(a,o+16,f,p+4)}function Xa(a,o,f,p){Pr(a,o+0,f,p,1),Pr(a,o+32,f,p+128,1)}function Jo(a,o,f,p){var v;for(a=a[o+0]+4,v=0;4>v;++v)for(o=0;4>o;++o)tr(f,p,o,v,a)}function za(a,o,f,p){a[o+0]&&vt(a,o+0,f,p),a[o+16]&&vt(a,o+16,f,p+4),a[o+32]&&vt(a,o+32,f,p+128),a[o+48]&&vt(a,o+48,f,p+128+4)}function Xo(a,o,f,p){var v,C=i(16);for(v=0;4>v;++v){var U=a[o+0+v]+a[o+12+v],b=a[o+4+v]+a[o+8+v],E=a[o+4+v]-a[o+8+v],N=a[o+0+v]-a[o+12+v];C[0+v]=U+b,C[8+v]=U-b,C[4+v]=N+E,C[12+v]=N-E}for(v=0;4>v;++v)U=(a=C[0+4*v]+3)+C[3+4*v],b=C[1+4*v]+C[2+4*v],E=C[1+4*v]-C[2+4*v],N=a-C[3+4*v],f[p+0]=U+b>>3,f[p+16]=N+E>>3,f[p+32]=U-b>>3,f[p+48]=N-E>>3,p+=64}function ji(a,o,f){var p,v=o-32,C=Nt,U=255-a[v-1];for(p=0;p<f;++p){var b,E=C,N=U+a[o-1];for(b=0;b<f;++b)a[o+b]=E[N+a[v+b]];o+=32}}function zo(a,o){ji(a,o,4)}function Yo(a,o){ji(a,o,8)}function Zo(a,o){ji(a,o,16)}function Nr(a,o){var f;for(f=0;16>f;++f)r(a,o+32*f,a,o-32,16)}function Zn(a,o){var f;for(f=16;0<f;--f)n(a,o,a[o-1],16),o+=32}function $n(a,o,f){var p;for(p=0;16>p;++p)n(o,f+32*p,a,16)}function Ya(a,o){var f,p=16;for(f=0;16>f;++f)p+=a[o-1+32*f]+a[o+f-32];$n(p>>5,a,o)}function ct(a,o){var f,p=8;for(f=0;16>f;++f)p+=a[o-1+32*f];$n(p>>4,a,o)}function $o(a,o){var f,p=8;for(f=0;16>f;++f)p+=a[o+f-32];$n(p>>4,a,o)}function Za(a,o){$n(128,a,o)}function JA(a,o,f){return a+2*o+f+2>>2}function Ac(a,o){var f,p=o-32;for(p=new Uint8Array([JA(a[p-1],a[p+0],a[p+1]),JA(a[p+0],a[p+1],a[p+2]),JA(a[p+1],a[p+2],a[p+3]),JA(a[p+2],a[p+3],a[p+4])]),f=0;4>f;++f)r(a,o+32*f,p,0,p.length)}function ec(a,o){var f=a[o-1],p=a[o-1+32],v=a[o-1+64],C=a[o-1+96];FA(a,o+0,16843009*JA(a[o-1-32],f,p)),FA(a,o+32,16843009*JA(f,p,v)),FA(a,o+64,16843009*JA(p,v,C)),FA(a,o+96,16843009*JA(v,C,C))}function mr(a,o){var f,p=4;for(f=0;4>f;++f)p+=a[o+f-32]+a[o-1+32*f];for(p>>=3,f=0;4>f;++f)n(a,o+32*f,p,4)}function $a(a,o){var f=a[o-1+0],p=a[o-1+32],v=a[o-1+64],C=a[o-1-32],U=a[o+0-32],b=a[o+1-32],E=a[o+2-32],N=a[o+3-32];a[o+0+96]=JA(p,v,a[o-1+96]),a[o+1+96]=a[o+0+64]=JA(f,p,v),a[o+2+96]=a[o+1+64]=a[o+0+32]=JA(C,f,p),a[o+3+96]=a[o+2+64]=a[o+1+32]=a[o+0+0]=JA(U,C,f),a[o+3+64]=a[o+2+32]=a[o+1+0]=JA(b,U,C),a[o+3+32]=a[o+2+0]=JA(E,b,U),a[o+3+0]=JA(N,E,b)}function As(a,o){var f=a[o+1-32],p=a[o+2-32],v=a[o+3-32],C=a[o+4-32],U=a[o+5-32],b=a[o+6-32],E=a[o+7-32];a[o+0+0]=JA(a[o+0-32],f,p),a[o+1+0]=a[o+0+32]=JA(f,p,v),a[o+2+0]=a[o+1+32]=a[o+0+64]=JA(p,v,C),a[o+3+0]=a[o+2+32]=a[o+1+64]=a[o+0+96]=JA(v,C,U),a[o+3+32]=a[o+2+64]=a[o+1+96]=JA(C,U,b),a[o+3+64]=a[o+2+96]=JA(U,b,E),a[o+3+96]=JA(b,E,E)}function Ai(a,o){var f=a[o-1+0],p=a[o-1+32],v=a[o-1+64],C=a[o-1-32],U=a[o+0-32],b=a[o+1-32],E=a[o+2-32],N=a[o+3-32];a[o+0+0]=a[o+1+64]=C+U+1>>1,a[o+1+0]=a[o+2+64]=U+b+1>>1,a[o+2+0]=a[o+3+64]=b+E+1>>1,a[o+3+0]=E+N+1>>1,a[o+0+96]=JA(v,p,f),a[o+0+64]=JA(p,f,C),a[o+0+32]=a[o+1+96]=JA(f,C,U),a[o+1+32]=a[o+2+96]=JA(C,U,b),a[o+2+32]=a[o+3+96]=JA(U,b,E),a[o+3+32]=JA(b,E,N)}function Gi(a,o){var f=a[o+0-32],p=a[o+1-32],v=a[o+2-32],C=a[o+3-32],U=a[o+4-32],b=a[o+5-32],E=a[o+6-32],N=a[o+7-32];a[o+0+0]=f+p+1>>1,a[o+1+0]=a[o+0+64]=p+v+1>>1,a[o+2+0]=a[o+1+64]=v+C+1>>1,a[o+3+0]=a[o+2+64]=C+U+1>>1,a[o+0+32]=JA(f,p,v),a[o+1+32]=a[o+0+96]=JA(p,v,C),a[o+2+32]=a[o+1+96]=JA(v,C,U),a[o+3+32]=a[o+2+96]=JA(C,U,b),a[o+3+64]=JA(U,b,E),a[o+3+96]=JA(b,E,N)}function tc(a,o){var f=a[o-1+0],p=a[o-1+32],v=a[o-1+64],C=a[o-1+96];a[o+0+0]=f+p+1>>1,a[o+2+0]=a[o+0+32]=p+v+1>>1,a[o+2+32]=a[o+0+64]=v+C+1>>1,a[o+1+0]=JA(f,p,v),a[o+3+0]=a[o+1+32]=JA(p,v,C),a[o+3+32]=a[o+1+64]=JA(v,C,C),a[o+3+64]=a[o+2+64]=a[o+0+96]=a[o+1+96]=a[o+2+96]=a[o+3+96]=C}function rc(a,o){var f=a[o-1+0],p=a[o-1+32],v=a[o-1+64],C=a[o-1+96],U=a[o-1-32],b=a[o+0-32],E=a[o+1-32],N=a[o+2-32];a[o+0+0]=a[o+2+32]=f+U+1>>1,a[o+0+32]=a[o+2+64]=p+f+1>>1,a[o+0+64]=a[o+2+96]=v+p+1>>1,a[o+0+96]=C+v+1>>1,a[o+3+0]=JA(b,E,N),a[o+2+0]=JA(U,b,E),a[o+1+0]=a[o+3+32]=JA(f,U,b),a[o+1+32]=a[o+3+64]=JA(p,f,U),a[o+1+64]=a[o+3+96]=JA(v,p,f),a[o+1+96]=JA(C,v,p)}function nc(a,o){var f;for(f=0;8>f;++f)r(a,o+32*f,a,o-32,8)}function Vi(a,o){var f;for(f=0;8>f;++f)n(a,o,a[o-1],8),o+=32}function yn(a,o,f){var p;for(p=0;8>p;++p)n(o,f+32*p,a,8)}function Wr(a,o){var f,p=8;for(f=0;8>f;++f)p+=a[o+f-32]+a[o-1+32*f];yn(p>>4,a,o)}function ic(a,o){var f,p=4;for(f=0;8>f;++f)p+=a[o+f-32];yn(p>>3,a,o)}function bn(a,o){var f,p=4;for(f=0;8>f;++f)p+=a[o-1+32*f];yn(p>>3,a,o)}function qi(a,o){yn(128,a,o)}function ei(a,o,f){var p=a[o-f],v=a[o+0],C=3*(v-p)+lc[1020+a[o-2*f]-a[o+f]],U=hs[112+(C+4>>3)];a[o-f]=Nt[255+p+hs[112+(C+3>>3)]],a[o+0]=Nt[255+v-U]}function es(a,o,f,p){var v=a[o+0],C=a[o+f];return jt[255+a[o-2*f]-a[o-f]]>p||jt[255+C-v]>p}function ts(a,o,f,p){return 4*jt[255+a[o-f]-a[o+0]]+jt[255+a[o-2*f]-a[o+f]]<=p}function rs(a,o,f,p,v){var C=a[o-3*f],U=a[o-2*f],b=a[o-f],E=a[o+0],N=a[o+f],G=a[o+2*f],tA=a[o+3*f];return 4*jt[255+b-E]+jt[255+U-N]>p?0:jt[255+a[o-4*f]-C]<=v&&jt[255+C-U]<=v&&jt[255+U-b]<=v&&jt[255+tA-G]<=v&&jt[255+G-N]<=v&&jt[255+N-E]<=v}function ns(a,o,f,p){var v=2*p+1;for(p=0;16>p;++p)ts(a,o+p,f,v)&&ei(a,o+p,f)}function Cr(a,o,f,p){var v=2*p+1;for(p=0;16>p;++p)ts(a,o+p*f,1,v)&&ei(a,o+p*f,1)}function _r(a,o,f,p){var v;for(v=3;0<v;--v)ns(a,o+=4*f,f,p)}function ac(a,o,f,p){var v;for(v=3;0<v;--v)Cr(a,o+=4,f,p)}function Jr(a,o,f,p,v,C,U,b){for(C=2*C+1;0<v--;){if(rs(a,o,f,C,U))if(es(a,o,f,b))ei(a,o,f);else{var E=a,N=o,G=f,tA=E[N-2*G],rA=E[N-G],z=E[N+0],wA=E[N+G],fA=E[N+2*G],V=27*(dA=lc[1020+3*(z-rA)+lc[1020+tA-wA]])+63>>7,W=18*dA+63>>7,dA=9*dA+63>>7;E[N-3*G]=Nt[255+E[N-3*G]+dA],E[N-2*G]=Nt[255+tA+W],E[N-G]=Nt[255+rA+V],E[N+0]=Nt[255+z-V],E[N+G]=Nt[255+wA-W],E[N+2*G]=Nt[255+fA-dA]}o+=p}}function rr(a,o,f,p,v,C,U,b){for(C=2*C+1;0<v--;){if(rs(a,o,f,C,U))if(es(a,o,f,b))ei(a,o,f);else{var E=a,N=o,G=f,tA=E[N-G],rA=E[N+0],z=E[N+G],wA=hs[112+((fA=3*(rA-tA))+4>>3)],fA=hs[112+(fA+3>>3)],V=wA+1>>1;E[N-2*G]=Nt[255+E[N-2*G]+V],E[N-G]=Nt[255+tA+fA],E[N+0]=Nt[255+rA-wA],E[N+G]=Nt[255+z-V]}o+=p}}function Wi(a,o,f,p,v,C){Jr(a,o,f,1,16,p,v,C)}function Ln(a,o,f,p,v,C){Jr(a,o,1,f,16,p,v,C)}function sc(a,o,f,p,v,C){var U;for(U=3;0<U;--U)rr(a,o+=4*f,f,1,16,p,v,C)}function ti(a,o,f,p,v,C){var U;for(U=3;0<U;--U)rr(a,o+=4,1,f,16,p,v,C)}function oc(a,o,f,p,v,C,U,b){Jr(a,o,v,1,8,C,U,b),Jr(f,p,v,1,8,C,U,b)}function Ji(a,o,f,p,v,C,U,b){Jr(a,o,1,v,8,C,U,b),Jr(f,p,1,v,8,C,U,b)}function Xi(a,o,f,p,v,C,U,b){rr(a,o+4*v,v,1,8,C,U,b),rr(f,p+4*v,v,1,8,C,U,b)}function is(a,o,f,p,v,C,U,b){rr(a,o+4,1,v,8,C,U,b),rr(f,p+4,1,v,8,C,U,b)}function ri(){this.ba=new Yt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Se,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function zi(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Yi(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function as(){this.ua=0,this.Wa=new O,this.vb=new O,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new M,this.yc=new H}function cc(){this.xb=this.a=0,this.l=new zn,this.ca=new Yt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new F,this.Pb=0,this.wd=new F,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new as,this.ab=0,this.gc=s(4,Yi),this.Oc=0}function ni(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zn,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function En(a,o,f,p,v,C,U){for(a=a==null?0:a[o+0],o=0;o<U;++o)v[C+o]=a+f[p+o]&255,a=v[C+o]}function Zi(a,o,f,p,v,C,U){var b;if(a==null)En(null,null,f,p,v,C,U);else for(b=0;b<U;++b)v[C+b]=a[o+b]+f[p+b]&255}function Xr(a,o,f,p,v,C,U){if(a==null)En(null,null,f,p,v,C,U);else{var b,E=a[o+0],N=E,G=E;for(b=0;b<U;++b)N=G+(E=a[o+b])-N,G=f[p+b]+(-256&N?0>N?0:255:N)&255,N=E,v[C+b]=G}}function $i(a,o,f,p){var v=o.width,C=o.o;if(A(a!=null&&o!=null),0>f||0>=p||f+p>C)return null;if(!a.Cc){if(a.ga==null){var U;if(a.ga=new ni,(U=a.ga==null)||(U=o.width*o.o,A(a.Gb.length==0),a.Gb=i(U),a.Uc=0,a.Gb==null?U=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,U=1),U=!U),!U){U=a.ga;var b=a.Fa,E=a.P,N=a.qc,G=a.mb,tA=a.nb,rA=E+1,z=N-1,wA=U.l;if(A(b!=null&&G!=null&&o!=null),en[0]=null,en[1]=En,en[2]=Zi,en[3]=Xr,U.ca=G,U.tb=tA,U.c=o.width,U.i=o.height,A(0<U.c&&0<U.i),1>=N)o=0;else if(U.$a=b[E+0]>>0&3,U.Z=b[E+0]>>2&3,U.Lc=b[E+0]>>4&3,E=b[E+0]>>6&3,0>U.$a||1<U.$a||4<=U.Z||1<U.Lc||E)o=0;else if(wA.put=gr,wA.ac=rt,wA.bc=dr,wA.ma=U,wA.width=o.width,wA.height=o.height,wA.Da=o.Da,wA.v=o.v,wA.va=o.va,wA.j=o.j,wA.o=o.o,U.$a)A:{A(U.$a==1),o=Ot();e:for(;;){if(o==null){o=0;break A}if(A(U!=null),U.mc=o,o.c=U.c,o.i=U.i,o.l=U.l,o.l.ma=U,o.l.width=U.c,o.l.height=U.i,o.a=0,eA(o.m,b,rA,z),!vr(U.c,U.i,1,o,null)||(o.ab==1&&o.gc[0].hc==3&&Sr(o.s)?(U.ic=1,b=o.c*o.i,o.Ta=null,o.Ua=0,o.V=i(b),o.Ba=0,o.V==null?(o.a=1,o=0):o=1):(U.ic=0,o=Un(o,U.c)),!o))break e;o=1;break A}U.mc=null,o=0}else o=z>=U.c*U.i;U=!o}if(U)return null;a.ga.Lc!=1?a.Ga=0:p=C-f}A(a.ga!=null),A(f+p<=C);A:{if(o=(b=a.ga).c,C=b.l.o,b.$a==0){if(rA=a.rc,z=a.Vc,wA=a.Fa,E=a.P+1+f*o,N=a.mb,G=a.nb+f*o,A(E<=a.P+a.qc),b.Z!=0)for(A(en[b.Z]!=null),U=0;U<p;++U)en[b.Z](rA,z,wA,E,N,G,o),rA=N,z=G,G+=o,E+=o;else for(U=0;U<p;++U)r(N,G,wA,E,o),rA=N,z=G,G+=o,E+=o;a.rc=rA,a.Vc=z}else{if(A(b.mc!=null),o=f+p,A((U=b.mc)!=null),A(o<=U.i),U.C>=o)o=1;else if(b.ic||AA(),b.ic){b=U.V,rA=U.Ba,z=U.c;var fA=U.i,V=(wA=1,E=U.$/z,N=U.$%z,G=U.m,tA=U.s,U.$),W=z*fA,dA=z*o,vA=tA.wc,pA=V<dA?Ge(tA,N,E):null;A(V<=W),A(o<=fA),A(Sr(tA));e:for(;;){for(;!G.h&&V<dA;){if(N&vA||(pA=Ge(tA,N,E)),A(pA!=null),J(G),256>(fA=Ft(pA.G[0],pA.H[0],G)))b[rA+V]=fA,++V,++N>=z&&(N=0,++E<=o&&!(E%16)&&Ar(U,E));else{if(!(280>fA)){wA=0;break e}fA=Zt(fA-256,G);var DA,bA=Ft(pA.G[4],pA.H[4],G);if(J(G),!(V>=(bA=pr(z,bA=Zt(bA,G)))&&W-V>=fA)){wA=0;break e}for(DA=0;DA<fA;++DA)b[rA+V+DA]=b[rA+V+DA-bA];for(V+=fA,N+=fA;N>=z;)N-=z,++E<=o&&!(E%16)&&Ar(U,E);V<dA&&N&vA&&(pA=Ge(tA,N,E))}A(G.h==T(G))}Ar(U,E>o?o:E);break e}!wA||G.h&&V<W?(wA=0,U.a=G.h?5:3):U.$=V,o=wA}else o=er(U,U.V,U.Ba,U.c,U.i,o,Vn);if(!o){p=0;break A}}f+p>=C&&(a.Cc=1),p=1}if(!p)return null;if(a.Cc&&((p=a.ga)!=null&&(p.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+f*v}function l(a,o,f,p,v,C){for(;0<v--;){var U,b=a,E=o+(f?1:0),N=a,G=o+(f?0:3);for(U=0;U<p;++U){var tA=N[G+4*U];tA!=255&&(tA*=32897,b[E+4*U+0]=b[E+4*U+0]*tA>>23,b[E+4*U+1]=b[E+4*U+1]*tA>>23,b[E+4*U+2]=b[E+4*U+2]*tA>>23)}o+=C}}function m(a,o,f,p,v){for(;0<p--;){var C;for(C=0;C<f;++C){var U=a[o+2*C+0],b=15&(N=a[o+2*C+1]),E=4369*b,N=(240&N|N>>4)*E>>16;a[o+2*C+0]=(240&U|U>>4)*E>>16&240|(15&U|U<<4)*E>>16>>4&15,a[o+2*C+1]=240&N|b}o+=v}}function D(a,o,f,p,v,C,U,b){var E,N,G=255;for(N=0;N<v;++N){for(E=0;E<p;++E){var tA=a[o+E];C[U+4*E]=tA,G&=tA}o+=f,U+=b}return G!=255}function j(a,o,f,p,v){var C;for(C=0;C<v;++C)f[p+C]=a[o+C]>>8}function AA(){Rt=l,Ue=m,ye=D,Oe=j}function hA(a,o,f){P[a]=function(p,v,C,U,b,E,N,G,tA,rA,z,wA,fA,V,W,dA,vA){var pA,DA=vA-1>>1,bA=b[E+0]|N[G+0]<<16,RA=tA[rA+0]|z[wA+0]<<16;A(p!=null);var EA=3*bA+RA+131074>>2;for(o(p[v+0],255&EA,EA>>16,fA,V),C!=null&&(EA=3*RA+bA+131074>>2,o(C[U+0],255&EA,EA>>16,W,dA)),pA=1;pA<=DA;++pA){var le=b[E+pA]|N[G+pA]<<16,ge=tA[rA+pA]|z[wA+pA]<<16,ce=bA+le+RA+ge+524296,ie=ce+2*(le+RA)>>3;EA=ie+bA>>1,bA=(ce=ce+2*(bA+ge)>>3)+le>>1,o(p[v+2*pA-1],255&EA,EA>>16,fA,V+(2*pA-1)*f),o(p[v+2*pA-0],255&bA,bA>>16,fA,V+(2*pA-0)*f),C!=null&&(EA=ce+RA>>1,bA=ie+ge>>1,o(C[U+2*pA-1],255&EA,EA>>16,W,dA+(2*pA-1)*f),o(C[U+2*pA+0],255&bA,bA>>16,W,dA+(2*pA+0)*f)),bA=le,RA=ge}1&vA||(EA=3*bA+RA+131074>>2,o(p[v+vA-1],255&EA,EA>>16,fA,V+(vA-1)*f),C!=null&&(EA=3*RA+bA+131074>>2,o(C[U+vA-1],255&EA,EA>>16,W,dA+(vA-1)*f)))}}function mA(){Gt[Bs]=I0,Gt[gs]=el,Gt[zu]=H0,Gt[ds]=tl,Gt[ps]=rl,Gt[fc]=nl,Gt[Yu]=S0,Gt[hc]=el,Gt[Bc]=tl,Gt[ws]=rl,Gt[gc]=nl}function _A(a){return a&~N0?0>a?0:255:a>>il}function kA(a,o){return _A((19077*a>>8)+(26149*o>>8)-14234)}function Ae(a,o,f){return _A((19077*a>>8)-(6419*o>>8)-(13320*f>>8)+8708)}function YA(a,o){return _A((19077*a>>8)+(33050*o>>8)-17685)}function se(a,o,f,p,v){p[v+0]=kA(a,f),p[v+1]=Ae(a,o,f),p[v+2]=YA(a,o)}function Ie(a,o,f,p,v){p[v+0]=YA(a,o),p[v+1]=Ae(a,o,f),p[v+2]=kA(a,f)}function Ne(a,o,f,p,v){var C=Ae(a,o,f);o=C<<3&224|YA(a,o)>>3,p[v+0]=248&kA(a,f)|C>>5,p[v+1]=o}function Ve(a,o,f,p,v){var C=240&YA(a,o)|15;p[v+0]=240&kA(a,f)|Ae(a,o,f)>>4,p[v+1]=C}function ut(a,o,f,p,v){p[v+0]=255,se(a,o,f,p,v+1)}function Ze(a,o,f,p,v){Ie(a,o,f,p,v),p[v+3]=255}function nr(a,o,f,p,v){se(a,o,f,p,v),p[v+3]=255}function St(a,o){return 0>a?0:a>o?o:a}function Qr(a,o,f){P[a]=function(p,v,C,U,b,E,N,G,tA){for(var rA=G+(-2&tA)*f;G!=rA;)o(p[v+0],C[U+0],b[E+0],N,G),o(p[v+1],C[U+0],b[E+0],N,G+f),v+=2,++U,++E,G+=2*f;1&tA&&o(p[v+0],C[U+0],b[E+0],N,G)}}function ss(a,o,f){return f==0?a==0?o==0?6:5:o==0?4:0:f}function Aa(a,o,f,p,v){switch(a>>>30){case 3:Pr(o,f,p,v,0);break;case 2:Pe(o,f,p,v);break;case 1:vt(o,f,p,v)}}function ea(a,o){var f,p,v=o.M,C=o.Nb,U=a.oc,b=a.pc+40,E=a.oc,N=a.pc+584,G=a.oc,tA=a.pc+600;for(f=0;16>f;++f)U[b+32*f-1]=129;for(f=0;8>f;++f)E[N+32*f-1]=129,G[tA+32*f-1]=129;for(0<v?U[b-1-32]=E[N-1-32]=G[tA-1-32]=129:(n(U,b-32-1,127,21),n(E,N-32-1,127,9),n(G,tA-32-1,127,9)),p=0;p<a.za;++p){var rA=o.ya[o.aa+p];if(0<p){for(f=-1;16>f;++f)r(U,b+32*f-4,U,b+32*f+12,4);for(f=-1;8>f;++f)r(E,N+32*f-4,E,N+32*f+4,4),r(G,tA+32*f-4,G,tA+32*f+4,4)}var z=a.Gd,wA=a.Hd+p,fA=rA.ad,V=rA.Hc;if(0<v&&(r(U,b-32,z[wA].y,0,16),r(E,N-32,z[wA].f,0,8),r(G,tA-32,z[wA].ea,0,8)),rA.Za){var W=U,dA=b-32+16;for(0<v&&(p>=a.za-1?n(W,dA,z[wA].y[15],4):r(W,dA,z[wA+1].y,0,4)),f=0;4>f;f++)W[dA+128+f]=W[dA+256+f]=W[dA+384+f]=W[dA+0+f];for(f=0;16>f;++f,V<<=2)W=U,dA=b+sl[f],ir[rA.Ob[f]](W,dA),Aa(V,fA,16*+f,W,dA)}else if(W=ss(p,v,rA.Ob[0]),An[W](U,b),V!=0)for(f=0;16>f;++f,V<<=2)Aa(V,fA,16*+f,U,b+sl[f]);for(f=rA.Gc,W=ss(p,v,rA.Dd),Mr[W](E,N),Mr[W](G,tA),V=fA,W=E,dA=N,255&(rA=f>>0)&&(170&rA?aa(V,256,W,dA):Kt(V,256,W,dA)),rA=G,V=tA,255&(f>>=8)&&(170&f?aa(fA,320,rA,V):Kt(fA,320,rA,V)),v<a.Ub-1&&(r(z[wA].y,0,U,b+480,16),r(z[wA].f,0,E,N+224,8),r(z[wA].ea,0,G,tA+224,8)),f=8*C*a.B,z=a.sa,wA=a.ta+16*p+16*C*a.R,fA=a.qa,rA=a.ra+8*p+f,V=a.Ha,W=a.Ia+8*p+f,f=0;16>f;++f)r(z,wA+f*a.R,U,b+32*f,16);for(f=0;8>f;++f)r(fA,rA+f*a.B,E,N+32*f,8),r(V,W+f*a.B,G,tA+32*f,8)}}function ii(a,o,f,p,v,C,U,b,E){var N=[0],G=[0],tA=0,rA=E!=null?E.kd:0,z=E??new zi;if(a==null||12>f)return 7;z.data=a,z.w=o,z.ha=f,o=[o],f=[f],z.gb=[z.gb];A:{var wA=o,fA=f,V=z.gb;if(A(a!=null),A(fA!=null),A(V!=null),V[0]=0,12<=fA[0]&&!e(a,wA[0],"RIFF")){if(e(a,wA[0]+8,"WEBP")){V=3;break A}var W=LA(a,wA[0]+4);if(12>W||4294967286<W){V=3;break A}if(rA&&W>fA[0]-8){V=7;break A}V[0]=W,wA[0]+=12,fA[0]-=12}V=0}if(V!=0)return V;for(W=0<z.gb[0],f=f[0];;){A:{var dA=a;fA=o,V=f;var vA=N,pA=G,DA=wA=[0];if((EA=tA=[tA])[0]=0,8>V[0])V=7;else{if(!e(dA,fA[0],"VP8X")){if(LA(dA,fA[0]+4)!=10){V=3;break A}if(18>V[0]){V=7;break A}var bA=LA(dA,fA[0]+8),RA=1+IA(dA,fA[0]+12);if(2147483648<=RA*(dA=1+IA(dA,fA[0]+15))){V=3;break A}DA!=null&&(DA[0]=bA),vA!=null&&(vA[0]=RA),pA!=null&&(pA[0]=dA),fA[0]+=18,V[0]-=18,EA[0]=1}V=0}}if(tA=tA[0],wA=wA[0],V!=0)return V;if(fA=!!(2&wA),!W&&tA)return 3;if(C!=null&&(C[0]=!!(16&wA)),U!=null&&(U[0]=fA),b!=null&&(b[0]=0),U=N[0],wA=G[0],tA&&fA&&E==null){V=0;break}if(4>f){V=7;break}if(W&&tA||!W&&!tA&&!e(a,o[0],"ALPH")){f=[f],z.na=[z.na],z.P=[z.P],z.Sa=[z.Sa];A:{bA=a,V=o,W=f;var EA=z.gb;vA=z.na,pA=z.P,DA=z.Sa,RA=22,A(bA!=null),A(W!=null),dA=V[0];var le=W[0];for(A(vA!=null),A(DA!=null),vA[0]=null,pA[0]=null,DA[0]=0;;){if(V[0]=dA,W[0]=le,8>le){V=7;break A}var ge=LA(bA,dA+4);if(4294967286<ge){V=3;break A}var ce=8+ge+1&-2;if(RA+=ce,0<EA&&RA>EA){V=3;break A}if(!e(bA,dA,"VP8 ")||!e(bA,dA,"VP8L")){V=0;break A}if(le[0]<ce){V=7;break A}e(bA,dA,"ALPH")||(vA[0]=bA,pA[0]=dA+8,DA[0]=ge),dA+=ce,le-=ce}}if(f=f[0],z.na=z.na[0],z.P=z.P[0],z.Sa=z.Sa[0],V!=0)break}f=[f],z.Ja=[z.Ja],z.xa=[z.xa];A:if(EA=a,V=o,W=f,vA=z.gb[0],pA=z.Ja,DA=z.xa,bA=V[0],dA=!e(EA,bA,"VP8 "),RA=!e(EA,bA,"VP8L"),A(EA!=null),A(W!=null),A(pA!=null),A(DA!=null),8>W[0])V=7;else{if(dA||RA){if(EA=LA(EA,bA+4),12<=vA&&EA>vA-12){V=3;break A}if(rA&&EA>W[0]-8){V=7;break A}pA[0]=EA,V[0]+=8,W[0]-=8,DA[0]=RA}else DA[0]=5<=W[0]&&EA[bA+0]==47&&!(EA[bA+4]>>5),pA[0]=W[0];V=0}if(f=f[0],z.Ja=z.Ja[0],z.xa=z.xa[0],o=o[0],V!=0)break;if(4294967286<z.Ja)return 3;if(b==null||fA||(b[0]=z.xa?2:1),U=[U],wA=[wA],z.xa){if(5>f){V=7;break}b=U,rA=wA,fA=C,a==null||5>f?a=0:5<=f&&a[o+0]==47&&!(a[o+4]>>5)?(W=[0],EA=[0],vA=[0],eA(pA=new F,a,o,f),jA(pA,W,EA,vA)?(b!=null&&(b[0]=W[0]),rA!=null&&(rA[0]=EA[0]),fA!=null&&(fA[0]=vA[0]),a=1):a=0):a=0}else{if(10>f){V=7;break}b=wA,a==null||10>f||!Va(a,o+3,f-3)?a=0:(rA=a[o+0]|a[o+1]<<8|a[o+2]<<16,fA=16383&(a[o+7]<<8|a[o+6]),a=16383&(a[o+9]<<8|a[o+8]),1&rA||3<(rA>>1&7)||!(rA>>4&1)||rA>>5>=z.Ja||!fA||!a?a=0:(U&&(U[0]=fA),b&&(b[0]=a),a=1))}if(!a||(U=U[0],wA=wA[0],tA&&(N[0]!=U||G[0]!=wA)))return 3;E!=null&&(E[0]=z,E.offset=o-E.w,A(4294967286>o-E.w),A(E.offset==E.ha-f));break}return V==0||V==7&&tA&&E==null?(C!=null&&(C[0]|=z.na!=null&&0<z.na.length),p!=null&&(p[0]=U),v!=null&&(v[0]=wA),0):V}function ta(a,o,f){var p=o.width,v=o.height,C=0,U=0,b=p,E=v;if(o.Da=a!=null&&0<a.Da,o.Da&&(b=a.cd,E=a.bd,C=a.v,U=a.j,11>f||(C&=-2,U&=-2),0>C||0>U||0>=b||0>=E||C+b>p||U+E>v))return 0;if(o.v=C,o.j=U,o.va=C+b,o.o=U+E,o.U=b,o.T=E,o.da=a!=null&&0<a.da,o.da){if(!$A(b,E,f=[a.ib],C=[a.hb]))return 0;o.ib=f[0],o.hb=C[0]}return o.ob=a!=null&&a.ob,o.Kb=a==null||!a.Sd,o.da&&(o.ob=o.ib<3*p/4&&o.hb<3*v/4,o.Kb=0),1}function ra(a){if(a==null)return 2;if(11>a.S){var o=a.f.RGBA;o.fb+=(a.height-1)*o.A,o.A=-o.A}else o=a.f.kb,a=a.height,o.O+=(a-1)*o.fa,o.fa=-o.fa,o.N+=(a-1>>1)*o.Ab,o.Ab=-o.Ab,o.W+=(a-1>>1)*o.Db,o.Db=-o.Db,o.F!=null&&(o.J+=(a-1)*o.lb,o.lb=-o.lb);return 0}function ai(a,o,f,p){if(p==null||0>=a||0>=o)return 2;if(f!=null){if(f.Da){var v=f.cd,C=f.bd,U=-2&f.v,b=-2&f.j;if(0>U||0>b||0>=v||0>=C||U+v>a||b+C>o)return 2;a=v,o=C}if(f.da){if(!$A(a,o,v=[f.ib],C=[f.hb]))return 2;a=v[0],o=C[0]}}p.width=a,p.height=o;A:{var E=p.width,N=p.height;if(a=p.S,0>=E||0>=N||!(a>=Bs&&13>a))a=2;else{if(0>=p.Rd&&p.sd==null){U=C=v=o=0;var G=(b=E*ol[a])*N;if(11>a||(C=(N+1)/2*(o=(E+1)/2),a==12&&(U=(v=E)*N)),(N=i(G+2*C+U))==null){a=1;break A}p.sd=N,11>a?((E=p.f.RGBA).eb=N,E.fb=0,E.A=b,E.size=G):((E=p.f.kb).y=N,E.O=0,E.fa=b,E.Fd=G,E.f=N,E.N=0+G,E.Ab=o,E.Cd=C,E.ea=N,E.W=0+G+C,E.Db=o,E.Ed=C,a==12&&(E.F=N,E.J=0+G+2*C),E.Tc=U,E.lb=v)}if(o=1,v=p.S,C=p.width,U=p.height,v>=Bs&&13>v)if(11>v)a=p.f.RGBA,o&=(b=Math.abs(a.A))*(U-1)+C<=a.size,o&=b>=C*ol[v],o&=a.eb!=null;else{a=p.f.kb,b=(C+1)/2,G=(U+1)/2,E=Math.abs(a.fa),N=Math.abs(a.Ab);var tA=Math.abs(a.Db),rA=Math.abs(a.lb),z=rA*(U-1)+C;o&=E*(U-1)+C<=a.Fd,o&=N*(G-1)+b<=a.Cd,o=(o&=tA*(G-1)+b<=a.Ed)&E>=C&N>=b&tA>=b,o&=a.y!=null,o&=a.f!=null,o&=a.ea!=null,v==12&&(o&=rA>=C,o&=z<=a.Tc,o&=a.F!=null)}else o=0;a=o?0:2}}return a!=0||f!=null&&f.fd&&(a=ra(p)),a}var nt=64,si=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],oi=24,ci=32,na=8,yt=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];yA("Predictor0","PredictorAdd0"),P.Predictor0=function(){return 4278190080},P.Predictor1=function(a){return a},P.Predictor2=function(a,o,f){return o[f+0]},P.Predictor3=function(a,o,f){return o[f+1]},P.Predictor4=function(a,o,f){return o[f-1]},P.Predictor5=function(a,o,f){return xA(xA(a,o[f+1]),o[f+0])},P.Predictor6=function(a,o,f){return xA(a,o[f-1])},P.Predictor7=function(a,o,f){return xA(a,o[f+0])},P.Predictor8=function(a,o,f){return xA(o[f-1],o[f+0])},P.Predictor9=function(a,o,f){return xA(o[f+0],o[f+1])},P.Predictor10=function(a,o,f){return xA(xA(a,o[f-1]),xA(o[f+0],o[f+1]))},P.Predictor11=function(a,o,f){var p=o[f+0];return 0>=te(p>>24&255,a>>24&255,(o=o[f-1])>>24&255)+te(p>>16&255,a>>16&255,o>>16&255)+te(p>>8&255,a>>8&255,o>>8&255)+te(255&p,255&a,255&o)?p:a},P.Predictor12=function(a,o,f){var p=o[f+0];return(KA((a>>24&255)+(p>>24&255)-((o=o[f-1])>>24&255))<<24|KA((a>>16&255)+(p>>16&255)-(o>>16&255))<<16|KA((a>>8&255)+(p>>8&255)-(o>>8&255))<<8|KA((255&a)+(255&p)-(255&o)))>>>0},P.Predictor13=function(a,o,f){var p=o[f-1];return(XA((a=xA(a,o[f+0]))>>24&255,p>>24&255)<<24|XA(a>>16&255,p>>16&255)<<16|XA(a>>8&255,p>>8&255)<<8|XA(a>>0&255,p>>0&255))>>>0};var uc=P.PredictorAdd0;P.PredictorAdd1=re,yA("Predictor2","PredictorAdd2"),yA("Predictor3","PredictorAdd3"),yA("Predictor4","PredictorAdd4"),yA("Predictor5","PredictorAdd5"),yA("Predictor6","PredictorAdd6"),yA("Predictor7","PredictorAdd7"),yA("Predictor8","PredictorAdd8"),yA("Predictor9","PredictorAdd9"),yA("Predictor10","PredictorAdd10"),yA("Predictor11","PredictorAdd11"),yA("Predictor12","PredictorAdd12"),yA("Predictor13","PredictorAdd13");var ia=P.PredictorAdd2;ne("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),ne("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var os,Mt=P.ColorIndexInverseTransform,ui=P.MapARGB,cs=P.VP8LColorIndexInverseTransformAlpha,us=P.MapAlpha,zr=P.VP8LPredictorsAdd=[];zr.length=16,(P.VP8LPredictors=[]).length=16,(P.VP8LPredictorsAdd_C=[]).length=16,(P.VP8LPredictors_C=[]).length=16;var xn,bt,wt,Yr,Dr,Tr,li,Pr,Pe,aa,vt,Kt,fi,ls,sa,In,Hn,Zr,Sn,hi,Nn,$r,oa,kt,Rt,Ue,ye,Oe,ze=i(511),Or=i(2041),ca=i(225),Bi=i(767),fs=0,lc=Or,hs=ca,Nt=Bi,jt=ze,Bs=0,gs=1,zu=2,ds=3,ps=4,fc=5,Yu=6,hc=7,Bc=8,ws=9,gc=10,d0=[2,3,7],p0=[3,3,11],Zu=[280,256,256,256,40],w0=[0,1,1,1,0],v0=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],m0=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],C0=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Q0=8,dc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],pc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ua=null,F0=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],U0=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],$u=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],y0=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],b0=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],L0=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],E0=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],An=[],ir=[],Mr=[],x0=1,Al=2,en=[],Gt=[];hA("UpsampleRgbLinePair",se,3),hA("UpsampleBgrLinePair",Ie,3),hA("UpsampleRgbaLinePair",nr,4),hA("UpsampleBgraLinePair",Ze,4),hA("UpsampleArgbLinePair",ut,4),hA("UpsampleRgba4444LinePair",Ve,2),hA("UpsampleRgb565LinePair",Ne,2);var I0=P.UpsampleRgbLinePair,H0=P.UpsampleBgrLinePair,el=P.UpsampleRgbaLinePair,tl=P.UpsampleBgraLinePair,rl=P.UpsampleArgbLinePair,nl=P.UpsampleRgba4444LinePair,S0=P.UpsampleRgb565LinePair,vs=16,ms=1<<vs-1,la=-227,wc=482,il=6,N0=(256<<il)-1,al=0,_0=i(256),D0=i(256),T0=i(256),P0=i(256),O0=i(wc-la),M0=i(wc-la);Qr("YuvToRgbRow",se,3),Qr("YuvToBgrRow",Ie,3),Qr("YuvToRgbaRow",nr,4),Qr("YuvToBgraRow",Ze,4),Qr("YuvToArgbRow",ut,4),Qr("YuvToRgba4444Row",Ve,2),Qr("YuvToRgb565Row",Ne,2);var sl=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Cs=[0,2,8],K0=[8,7,6,4,4,2,2,2,1,1,1,1],k0=1;this.WebPDecodeRGBA=function(a,o,f,p,v){var C=gs,U=new ri,b=new Yt;U.ba=b,b.S=C,b.width=[b.width],b.height=[b.height];var E=b.width,N=b.height,G=new Hr;if(G==null||a==null)var tA=2;else A(G!=null),tA=ii(a,o,f,G.width,G.height,G.Pd,G.Qd,G.format,null);if(tA!=0?E=0:(E!=null&&(E[0]=G.width[0]),N!=null&&(N[0]=G.height[0]),E=1),E){b.width=b.width[0],b.height=b.height[0],p!=null&&(p[0]=b.width),v!=null&&(v[0]=b.height);A:{if(p=new zn,(v=new zi).data=a,v.w=o,v.ha=f,v.kd=1,o=[0],A(v!=null),((a=ii(v.data,v.w,v.ha,null,null,null,o,null,v))==0||a==7)&&o[0]&&(a=4),(o=a)==0){if(A(U!=null),p.data=v.data,p.w=v.w+v.offset,p.ha=v.ha-v.offset,p.put=gr,p.ac=rt,p.bc=dr,p.ma=U,v.xa){if((a=Ot())==null){U=1;break A}if(function(rA,z){var wA=[0],fA=[0],V=[0];e:for(;;){if(rA==null)return 0;if(z==null)return rA.a=2,0;if(rA.l=z,rA.a=0,eA(rA.m,z.data,z.w,z.ha),!jA(rA.m,wA,fA,V)){rA.a=3;break e}if(rA.xb=Al,z.width=wA[0],z.height=fA[0],!vr(wA[0],fA[0],1,rA,null))break e;return 1}return A(rA.a!=0),0}(a,p)){if(p=(o=ai(p.width,p.height,U.Oa,U.ba))==0){e:{p=a;t:for(;;){if(p==null){p=0;break e}if(A(p.s.yc!=null),A(p.s.Ya!=null),A(0<p.s.Wb),A((f=p.l)!=null),A((v=f.ma)!=null),p.xb!=0){if(p.ca=v.ba,p.tb=v.tb,A(p.ca!=null),!ta(v.Oa,f,ds)){p.a=2;break t}if(!Un(p,f.width)||f.da)break t;if((f.da||fe(p.ca.S))&&AA(),11>p.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),p.ca.f.kb.F!=null&&AA()),p.Pb&&0<p.s.ua&&p.s.vb.X==null&&!GA(p.s.vb,p.s.Wa.Xa)){p.a=1;break t}p.xb=0}if(!er(p,p.V,p.Ba,p.c,p.i,f.o,Gn))break t;v.Dc=p.Ma,p=1;break e}A(p.a!=0),p=0}p=!p}p&&(o=a.a)}else o=a.a}else{if((a=new Vo)==null){U=1;break A}if(a.Fa=v.na,a.P=v.P,a.qc=v.Sa,qa(a,p)){if((o=ai(p.width,p.height,U.Oa,U.ba))==0){if(a.Aa=0,f=U.Oa,A((v=a)!=null),f!=null){if(0<(E=0>(E=f.Md)?0:100<E?255:255*E/100)){for(N=G=0;4>N;++N)12>(tA=v.pb[N]).lc&&(tA.ia=E*K0[0>tA.lc?0:tA.lc]>>3),G|=tA.ia;G&&(alert("todo:VP8InitRandom"),v.ia=1)}v.Ga=f.Id,100<v.Ga?v.Ga=100:0>v.Ga&&(v.Ga=0)}qo(a,p)||(o=a.a)}}else o=a.a}o==0&&U.Oa!=null&&U.Oa.fd&&(o=ra(U.ba))}U=o}C=U!=0?null:11>C?b.f.RGBA.eb:b.f.kb.y}else C=null;return C};var ol=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(P,q){for(var oA="",I=0;I<4;I++)oA+=String.fromCharCode(P[q++]);return oA}function g(P,q){return(P[q+0]<<0|P[q+1]<<8|P[q+2]<<16)>>>0}function d(P,q){return(P[q+0]<<0|P[q+1]<<8|P[q+2]<<16|P[q+3]<<24)>>>0}new u;var w=[0],B=[0],L=[],y=new u,S=t,Q=function(P,q){var oA={},I=0,H=!1,K=0,M=0;if(oA.frames=[],!function(_,T,k,J){for(var nA=0;nA<J;nA++)if(_[T+nA]!=k.charCodeAt(nA))return!0;return!1}(P,q,"RIFF",4)){var uA,iA;for(d(P,q+=4),q+=8;q<P.length;){var cA=h(P,q),eA=d(P,q+=4);q+=4;var lA=eA+(1&eA);switch(cA){case"VP8 ":case"VP8L":oA.frames[I]===void 0&&(oA.frames[I]={}),(F=oA.frames[I]).src_off=H?M:q-8,F.src_size=K+eA+8,I++,H&&(H=!1,K=0,M=0);break;case"VP8X":(F=oA.header={}).feature_flags=P[q];var BA=q+4;F.canvas_width=1+g(P,BA),BA+=3,F.canvas_height=1+g(P,BA),BA+=3;break;case"ALPH":H=!0,K=lA+8,M=q-8;break;case"ANIM":(F=oA.header).bgcolor=d(P,q),BA=q+4,F.loop_count=(uA=P)[(iA=BA)+0]<<0|uA[iA+1]<<8,BA+=2;break;case"ANMF":var UA,F;(F=oA.frames[I]={}).offset_x=2*g(P,q),q+=3,F.offset_y=2*g(P,q),q+=3,F.width=1+g(P,q),q+=3,F.height=1+g(P,q),q+=3,F.duration=g(P,q),q+=3,UA=P[q++],F.dispose=1&UA,F.blend=UA>>1&1}cA!="ANMF"&&(q+=lA)}return oA}}(S,0);Q.response=S,Q.rgbaoutput=!0,Q.dataurl=!1;var x=Q.header?Q.header:null,R=Q.frames?Q.frames:null;if(x){x.loop_counter=x.loop_count,w=[x.canvas_height],B=[x.canvas_width];for(var Y=0;Y<R.length&&R[Y].blend!=0;Y++);}var Z=R[0],$=y.WebPDecodeRGBA(S,Z.src_off,Z.src_size,B,w);Z.rgba=$,Z.imgwidth=B[0],Z.imgheight=w[0];for(var X=0;X<B[0]*w[0]*4;X++)L[X]=$[X];return this.width=B,this.height=w,this.data=L,this}(function(t){var A=function(){return typeof Nu=="function"},e=function(w,B,L,y){var S=4,Q=s;switch(y){case t.image_compression.FAST:S=1,Q=i;break;case t.image_compression.MEDIUM:S=6,Q=c;break;case t.image_compression.SLOW:S=9,Q=u}w=r(w,B,L,Q);var x=Nu(w,{level:S});return t.__addimage__.arrayBufferToBinaryString(x)},r=function(w,B,L,y){for(var S,Q,x,R=w.length/B,Y=new Uint8Array(w.length+R),Z=g(),$=0;$<R;$+=1){if(x=$*B,S=w.subarray(x,x+B),y)Y.set(y(S,L,Q),x+$);else{for(var X,P=Z.length,q=[];X<P;X+=1)q[X]=Z[X](S,L,Q);var oA=d(q.concat());Y.set(q[oA],x+$)}Q=S}return Y},n=function(w){var B=Array.apply([],w);return B.unshift(0),B},i=function(w,B){var L,y=[],S=w.length;y[0]=1;for(var Q=0;Q<S;Q+=1)L=w[Q-B]||0,y[Q+1]=w[Q]-L+256&255;return y},s=function(w,B,L){var y,S=[],Q=w.length;S[0]=2;for(var x=0;x<Q;x+=1)y=L&&L[x]||0,S[x+1]=w[x]-y+256&255;return S},c=function(w,B,L){var y,S,Q=[],x=w.length;Q[0]=3;for(var R=0;R<x;R+=1)y=w[R-B]||0,S=L&&L[R]||0,Q[R+1]=w[R]+256-(y+S>>>1)&255;return Q},u=function(w,B,L){var y,S,Q,x,R=[],Y=w.length;R[0]=4;for(var Z=0;Z<Y;Z+=1)y=w[Z-B]||0,S=L&&L[Z]||0,Q=L&&L[Z-B]||0,x=h(y,S,Q),R[Z+1]=w[Z]-x+256&255;return R},h=function(w,B,L){if(w===B&&B===L)return w;var y=Math.abs(B-L),S=Math.abs(w-L),Q=Math.abs(w+B-L-L);return y<=S&&y<=Q?w:S<=Q?B:L},g=function(){return[n,i,s,c,u]},d=function(w){var B=w.map(function(L){return L.reduce(function(y,S){return y+Math.abs(S)},0)});return B.indexOf(Math.min.apply(null,B))};t.processPNG=function(w,B,L,y){var S,Q,x,R,Y,Z,$,X,P,q,oA,I,H,K,M,uA=this.decode.FLATE_DECODE,iA="";if(this.__addimage__.isArrayBuffer(w)&&(w=new Uint8Array(w)),this.__addimage__.isArrayBufferView(w)){if(w=(x=new B5(w)).imgData,Q=x.bits,S=x.colorSpace,Y=x.colors,[4,6].indexOf(x.colorType)!==-1){if(x.bits===8){P=(X=x.pixelBitlength==32?new Uint32Array(x.decodePixels().buffer):x.pixelBitlength==16?new Uint16Array(x.decodePixels().buffer):new Uint8Array(x.decodePixels().buffer)).length,oA=new Uint8Array(P*x.colors),q=new Uint8Array(P);var cA,eA=x.pixelBitlength-x.bits;for(K=0,M=0;K<P;K++){for(H=X[K],cA=0;cA<eA;)oA[M++]=H>>>cA&255,cA+=x.bits;q[K]=H>>>cA&255}}if(x.bits===16){P=(X=new Uint32Array(x.decodePixels().buffer)).length,oA=new Uint8Array(P*(32/x.pixelBitlength)*x.colors),q=new Uint8Array(P*(32/x.pixelBitlength)),I=x.colors>1,K=0,M=0;for(var lA=0;K<P;)H=X[K++],oA[M++]=H>>>0&255,I&&(oA[M++]=H>>>16&255,H=X[K++],oA[M++]=H>>>0&255),q[lA++]=H>>>16&255;Q=8}y!==t.image_compression.NONE&&A()?(w=e(oA,x.width*x.colors,x.colors,y),$=e(q,x.width,1,y)):(w=oA,$=q,uA=void 0)}if(x.colorType===3&&(S=this.color_spaces.INDEXED,Z=x.palette,x.transparency.indexed)){var BA=x.transparency.indexed,UA=0;for(K=0,P=BA.length;K<P;++K)UA+=BA[K];if((UA/=255)===P-1&&BA.indexOf(0)!==-1)R=[BA.indexOf(0)];else if(UA!==P){for(X=x.decodePixels(),q=new Uint8Array(X.length),K=0,P=X.length;K<P;K++)q[K]=BA[X[K]];$=e(q,x.width,1)}}var F=function(_){var T;switch(_){case t.image_compression.FAST:T=11;break;case t.image_compression.MEDIUM:T=13;break;case t.image_compression.SLOW:T=14;break;default:T=12}return T}(y);return uA===this.decode.FLATE_DECODE&&(iA="/Predictor "+F+" "),iA+="/Colors "+Y+" /BitsPerComponent "+Q+" /Columns "+x.width,(this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),($&&this.__addimage__.isArrayBuffer($)||this.__addimage__.isArrayBufferView($))&&($=this.__addimage__.arrayBufferToBinaryString($)),{alias:L,data:w,index:B,filter:uA,decodeParameters:iA,transparency:R,palette:Z,sMask:$,predictor:F,width:x.width,height:x.height,bitsPerComponent:Q,colorSpace:S}}}})(VA.API),function(t){t.processGIF89A=function(A,e,r,n){var i=new g5(A),s=i.width,c=i.height,u=[];i.decodeAndBlitFrameRGBA(0,u);var h={data:u,width:s,height:c},g=new nu(100).encode(h,100);return t.processJPEG.call(this,g,e,r,n)},t.processGIF87A=t.processGIF89A}(VA.API),or.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var A=0;A<t;A++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[A]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},or.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[t]()}catch(e){Qe.log("bit decode error:"+e)}},or.prototype.bit1=function(){var t,A=Math.ceil(this.width/8),e=A%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*n*4,c=0;c<8&&8*n+c<this.width;c++){var u=this.palette[i>>7-c&1];this.data[s+4*c]=u.blue,this.data[s+4*c+1]=u.green,this.data[s+4*c+2]=u.red,this.data[s+4*c+3]=255}e!==0&&(this.pos+=4-e)}},or.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),A=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<t;n++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*n*4,c=i>>4,u=15&i,h=this.palette[c];if(this.data[s]=h.blue,this.data[s+1]=h.green,this.data[s+2]=h.red,this.data[s+3]=255,2*n+1>=this.width)break;h=this.palette[u],this.data[s+4]=h.blue,this.data[s+4+1]=h.green,this.data[s+4+2]=h.red,this.data[s+4+3]=255}A!==0&&(this.pos+=4-A)}},or.prototype.bit8=function(){for(var t=this.width%4,A=this.height-1;A>=0;A--){for(var e=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var s=this.palette[n];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}t!==0&&(this.pos+=4-t)}},or.prototype.bit15=function(){for(var t=this.width%3,A=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&A)/A*255|0,c=(i>>5&A)/A*255|0,u=(i>>10&A)/A*255|0,h=i>>15?255:0,g=r*this.width*4+4*n;this.data[g]=u,this.data[g+1]=c,this.data[g+2]=s,this.data[g+3]=h}this.pos+=t}},or.prototype.bit16=function(){for(var t=this.width%3,A=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(s&A)/A*255|0,u=(s>>5&e)/e*255|0,h=(s>>11)/A*255|0,g=n*this.width*4+4*i;this.data[g]=h,this.data[g+1]=u,this.data[g+2]=c,this.data[g+3]=255}this.pos+=t}},or.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=A*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},or.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var A=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),c=A*this.width*4+4*e;this.data[c]=i,this.data[c+1]=n,this.data[c+2]=r,this.data[c+3]=s}},or.prototype.getData=function(){return this.data},function(t){t.processBMP=function(A,e,r,n){var i=new or(A,!1),s=i.width,c=i.height,u={data:i.getData(),width:s,height:c},h=new nu(100).encode(u,100);return t.processJPEG.call(this,h,e,r,n)}}(VA.API),jf.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(A,e,r,n){var i=new jf(A),s=i.width,c=i.height,u={data:i.getData(),width:s,height:c},h=new nu(100).encode(u,100);return t.processJPEG.call(this,h,e,r,n)}}(VA.API),VA.API.processRGBA=function(t,A,e){for(var r=t.data,n=r.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),c=0,u=0,h=0;h<n;h+=4){var g=r[h],d=r[h+1],w=r[h+2],B=r[h+3];i[c++]=g,i[c++]=d,i[c++]=w,s[u++]=B}var L=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:L,index:A,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},VA.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},bi=VA.API,no=bi.getCharWidthsArray=function(t,A){var e,r,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),s=A.charSpace||this.internal.getCharSpace(),c=A.widths?A.widths:n.metadata.Unicode.widths,u=c.fof?c.fof:1,h=A.kerning?A.kerning:n.metadata.Unicode.kerning,g=h.fof?h.fof:1,d=A.doKerning!==!1,w=0,B=t.length,L=0,y=c[0]||u,S=[];for(e=0;e<B;e++)r=t.charCodeAt(e),typeof n.metadata.widthOfString=="function"?S.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+s*(1e3/i)||0)/1e3):(w=d&&Fe(h[r])==="object"&&!isNaN(parseInt(h[r][L],10))?h[r][L]/g:0,S.push((c[r]||y)/u+w)),L=r;return S},Mf=bi.getStringUnitWidth=function(t,A){var e=(A=A||{}).fontSize||this.internal.getFontSize(),r=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return bi.processArabic&&(t=bi.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,n)/e:no.apply(this,arguments).reduce(function(i,s){return i+s},0)},Kf=function(t,A,e,r){for(var n=[],i=0,s=t.length,c=0;i!==s&&c+A[i]<e;)c+=A[i],i++;n.push(t.slice(0,i));var u=i;for(c=0;i!==s;)c+A[i]>r&&(n.push(t.slice(u,i)),c=0,u=i),c+=A[i],i++;return u!==i&&n.push(t.slice(u,i)),n},kf=function(t,A,e){e||(e={});var r,n,i,s,c,u,h,g=[],d=[g],w=e.textIndent||0,B=0,L=0,y=t.split(" "),S=no.apply(this,[" ",e])[0];if(u=e.lineIndent===-1?y[0].length+2:e.lineIndent||0){var Q=Array(u).join(" "),x=[];y.map(function(Y){(Y=Y.split(/\s*\n/)).length>1?x=x.concat(Y.map(function(Z,$){return($&&Z.length?`
`:"")+Z})):x.push(Y[0])}),y=x,u=Mf.apply(this,[Q,e])}for(i=0,s=y.length;i<s;i++){var R=0;if(r=y[i],u&&r[0]==`
`&&(r=r.substr(1),R=1),w+B+(L=(n=no.apply(this,[r,e])).reduce(function(Y,Z){return Y+Z},0))>A||R){if(L>A){for(c=Kf.apply(this,[r,n,A-(w+B),A]),g.push(c.shift()),g=[c.pop()];c.length;)d.push([c.shift()]);L=n.slice(r.length-(g[0]?g[0].length:0)).reduce(function(Y,Z){return Y+Z},0)}else g=[r];d.push(g),w=L+u,B=S}else g.push(r),w+=B+L,B=S}return h=u?function(Y,Z){return(Z?Q:"")+Y.join(" ")}:function(Y){return Y.join(" ")},d.map(h)},bi.splitTextToSize=function(t,A,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=(function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var d=this.internal.getFont(g.fontName,g.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*A/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var c,u,h=[];for(c=0,u=r.length;c<u;c++)h=h.concat(kf.apply(this,[r[c],s,i]));return h},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",e={},r={},n=0;n<A.length;n++)e[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(d){return"0x"+parseInt(d,10).toString(16)},s=t.__fontmetrics__.compress=function(d){var w,B,L,y,S=["{"];for(var Q in d){if(w=d[Q],isNaN(parseInt(Q,10))?B="'"+Q+"'":(Q=parseInt(Q,10),B=(B=i(Q).slice(2)).slice(0,-1)+r[B.slice(-1)]),typeof w=="number")w<0?(L=i(w).slice(3),y="-"):(L=i(w).slice(2),y=""),L=y+L.slice(0,-1)+r[L.slice(-1)];else{if(Fe(w)!=="object")throw new Error("Don't know what to do with value type "+Fe(w)+".");L=s(w)}S.push(B+L)}return S.push("}"),S.join("")},c=t.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,B,L,y,S={},Q=1,x=S,R=[],Y="",Z="",$=d.length-1,X=1;X<$;X+=1)(y=d[X])=="'"?w?(L=w.join(""),w=void 0):w=[]:w?w.push(y):y=="{"?(R.push([x,L]),x={},L=void 0):y=="}"?((B=R.pop())[0][B[1]]=x,L=void 0,x=B[0]):y=="-"?Q=-1:L===void 0?e.hasOwnProperty(y)?(Y+=e[y],L=parseInt(Y,16)*Q,Q=1,Y=""):Y+=y:e.hasOwnProperty(y)?(Z+=e[y],x[L]=parseInt(Z,16)*Q,Q=1,L=void 0,Z=""):Z+=y;return S},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},g={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(d){var w=d.font,B=g.Unicode[w.postScriptName];B&&(w.metadata.Unicode={},w.metadata.Unicode.widths=B.widths,w.metadata.Unicode.kerning=B.kerning);var L=h.Unicode[w.postScriptName];L&&(w.metadata.Unicode.encoding=L,w.encoding=L.codePages[0])}])}(VA.API),function(t){var A=function(e){for(var r=e.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=e.charCodeAt(i);return n};t.API.events.push(["addFont",function(e){var r=void 0,n=e.font,i=e.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(s,c){c=/^\x00\x01\x00\x00/.test(c)?A(c):A(Da(c)),s.metadata=t.API.TTFFont.open(c),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(n,r)}}])}(VA),function(t){function A(){return(qA.canvg?Promise.resolve(qA.canvg):iu(()=>import("./index.es-fb53fb09.js"),["assets/index.es-fb53fb09.js","assets/vendor-61f0f29a.js"])).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}VA.API.addSvgAsImage=function(e,r,n,i,s,c,u,h){if(isNaN(r)||isNaN(n))throw Qe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(s))throw Qe.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var g=document.createElement("canvas");g.width=i,g.height=s;var d=g.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,g.width,g.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},B=this;return A().then(function(L){return L.fromString(d,e,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(L){return L.render(w)}).then(function(){B.addImage(g.toDataURL("image/jpeg",1),r,n,i,s,u,h)})}}(),VA.API.putTotalPages=function(t){var A,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(A,e);return this},VA.API.viewerPreferences=function(t,A){var e;t=t||{},A=A||!1;var r,n,i,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,g=0,d=0;function w(L,y){var S,Q=!1;for(S=0;S<L.length;S+=1)L[S]===y&&(Q=!0);return Q}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||A===!0){var B=c.length;for(d=0;d<B;d+=1)e[c[d]].value=e[c[d]].defaultValue,e[c[d]].explicitSet=!1}if(Fe(t)==="object"){for(n in t)if(i=t[n],w(c,n)&&i!==void 0){if(e[n].type==="boolean"&&typeof i=="boolean")e[n].value=i;else if(e[n].type==="name"&&w(e[n].valueSet,i))e[n].value=i;else if(e[n].type==="integer"&&Number.isInteger(i))e[n].value=i;else if(e[n].type==="array"){for(h=0;h<i.length;h+=1)if(r=!0,i[h].length===1&&typeof i[h][0]=="number")u.push(String(i[h]-1));else if(i[h].length>1){for(g=0;g<i[h].length;g+=1)typeof i[h][g]!="number"&&(r=!1);r===!0&&u.push([i[h][0]-1,i[h][1]-1].join(" "))}e[n].value="["+u.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var L,y=[];for(L in e)e[L].explicitSet===!0&&(e[L].type==="name"?y.push("/"+L+" /"+e[L].value):y.push("/"+L+" "+e[L].value));y.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+y.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(t){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),c=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),h=i.length+s.length+c.length+n.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+h+" >>"),this.internal.write("stream"),this.internal.write(n+i+s+c+u),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",A)),this}}(VA.API),function(t){var A=t.API,e=A.pdfEscape16=function(i,s){for(var c,u=s.metadata.Unicode.widths,h=["","0","00","000","0000"],g=[""],d=0,w=i.length;d<w;++d){if(c=s.metadata.characterToGlyph(i.charCodeAt(d)),s.metadata.glyIdsUsed.push(c),s.metadata.toUnicode[c]=i.charCodeAt(d),u.indexOf(c)==-1&&(u.push(c),u.push([parseInt(s.metadata.widthOfGlyph(c),10)])),c=="0")return g.join("");c=c.toString(16),g.push(h[4-c.length],c)}return g.join("")},r=function(i){var s,c,u,h,g,d,w;for(g=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,u=[],d=0,w=(c=Object.keys(i).sort(function(B,L){return B-L})).length;d<w;d++)s=c[d],u.length>=100&&(g+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar`,u=[]),i[s]!==void 0&&i[s]!==null&&typeof i[s].toString=="function"&&(h=("0000"+i[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),u.push("<"+s+"><"+h+">"));return u.length&&(g+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar
`),g+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};A.events.push(["putFont",function(i){(function(s){var c=s.font,u=s.out,h=s.newObject,g=s.putStream;if(c.metadata instanceof t.API.TTFFont&&c.encoding==="Identity-H"){for(var d=c.metadata.Unicode.widths,w=c.metadata.subset.encode(c.metadata.glyIdsUsed,1),B="",L=0;L<w.length;L++)B+=String.fromCharCode(w[L]);var y=h();g({data:B,addLength1:!0,objectId:y}),u("endobj");var S=h();g({data:r(c.metadata.toUnicode),addLength1:!0,objectId:S}),u("endobj");var Q=h();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Ii(c.fontName)),u("/FontFile2 "+y+" 0 R"),u("/FontBBox "+t.API.PDFObject.convert(c.metadata.bbox)),u("/Flags "+c.metadata.flags),u("/StemV "+c.metadata.stemV),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u(">>"),u("endobj");var x=h();u("<<"),u("/Type /Font"),u("/BaseFont /"+Ii(c.fontName)),u("/FontDescriptor "+Q+" 0 R"),u("/W "+t.API.PDFObject.convert(d)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+c.encoding+")"),u(">>"),u(">>"),u("endobj"),c.objectNumber=h(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+S+" 0 R"),u("/BaseFont /"+Ii(c.fontName)),u("/Encoding /"+c.encoding),u("/DescendantFonts ["+x+" 0 R]"),u(">>"),u("endobj"),c.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(s){var c=s.font,u=s.out,h=s.newObject,g=s.putStream;if(c.metadata instanceof t.API.TTFFont&&c.encoding==="WinAnsiEncoding"){for(var d=c.metadata.rawData,w="",B=0;B<d.length;B++)w+=String.fromCharCode(d[B]);var L=h();g({data:w,addLength1:!0,objectId:L}),u("endobj");var y=h();g({data:r(c.metadata.toUnicode),addLength1:!0,objectId:y}),u("endobj");var S=h();u("<<"),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u("/StemV "+c.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+L+" 0 R"),u("/Flags 96"),u("/FontBBox "+t.API.PDFObject.convert(c.metadata.bbox)),u("/FontName /"+Ii(c.fontName)),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u(">>"),u("endobj"),c.objectNumber=h();for(var Q=0;Q<c.metadata.hmtx.widths.length;Q++)c.metadata.hmtx.widths[Q]=parseInt(c.metadata.hmtx.widths[Q]*(1e3/c.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+y+" 0 R/BaseFont/"+Ii(c.fontName)+"/FontDescriptor "+S+" 0 R/Encoding/"+c.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(c.metadata.hmtx.widths)+">>"),u("endobj"),c.isAlreadyPutted=!0}})(i)}]);var n=function(i){var s,c=i.text||"",u=i.x,h=i.y,g=i.options||{},d=i.mutex||{},w=d.pdfEscape,B=d.activeFontKey,L=d.fonts,y=B,S="",Q=0,x="",R=L[y].encoding;if(L[y].encoding!=="Identity-H")return{text:c,x:u,y:h,options:g,mutex:d};for(x=c,y=B,Array.isArray(c)&&(x=c[0]),Q=0;Q<x.length;Q+=1)L[y].metadata.hasOwnProperty("cmap")&&(s=L[y].metadata.cmap.unicode.codeMap[x[Q].charCodeAt(0)]),s||x[Q].charCodeAt(0)<256&&L[y].metadata.hasOwnProperty("Unicode")?S+=x[Q]:S+="";var Y="";return parseInt(y.slice(1))<14||R==="WinAnsiEncoding"?Y=w(S,y).split("").map(function(Z){return Z.charCodeAt(0).toString(16)}).join(""):R==="Identity-H"&&(Y=e(S,L[y])),d.isHex=!0,{text:Y,x:u,y:h,options:g,mutex:d}};A.events.push(["postProcessText",function(i){var s=i.text||"",c=[],u={text:s,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(s)){var h=0;for(h=0;h<s.length;h+=1)Array.isArray(s[h])&&s[h].length===3?c.push([n(Object.assign({},u,{text:s[h][0]})).text,s[h][1],s[h][2]]):c.push(n(Object.assign({},u,{text:s[h]})).text);i.text=c}else i.text=n(Object.assign({},u,{text:s})).text}])}(VA),function(t){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return A.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(VA.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,i,s,c,u,h,g,d=A,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],B=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],L={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},y={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},S=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],Q=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,R=0;this.__bidiEngine__={};var Y=function(I){var H=I.charCodeAt(),K=H>>8,M=y[K];return M!==void 0?d[256*M+(255&H)]:K===252||K===253?"AL":Q.test(K)?"L":K===8?"R":"N"},Z=function(I){for(var H,K=0;K<I.length;K++){if((H=Y(I.charAt(K)))==="L")return!1;if(H==="R")return!0}return!1},$=function(I,H,K,M){var uA,iA,cA,eA,lA=H[M];switch(lA){case"L":case"R":x=!1;break;case"N":case"AN":break;case"EN":x&&(lA="AN");break;case"AL":x=!0,lA="R";break;case"WS":lA="N";break;case"CS":M<1||M+1>=H.length||(uA=K[M-1])!=="EN"&&uA!=="AN"||(iA=H[M+1])!=="EN"&&iA!=="AN"?lA="N":x&&(iA="AN"),lA=iA===uA?iA:"N";break;case"ES":lA=(uA=M>0?K[M-1]:"B")==="EN"&&M+1<H.length&&H[M+1]==="EN"?"EN":"N";break;case"ET":if(M>0&&K[M-1]==="EN"){lA="EN";break}if(x){lA="N";break}for(cA=M+1,eA=H.length;cA<eA&&H[cA]==="ET";)cA++;lA=cA<eA&&H[cA]==="EN"?"EN":"N";break;case"NSM":if(s&&!c){for(eA=H.length,cA=M+1;cA<eA&&H[cA]==="NSM";)cA++;if(cA<eA){var BA=I[M],UA=BA>=1425&&BA<=2303||BA===64286;if(uA=H[cA],UA&&(uA==="R"||uA==="AL")){lA="R";break}}}lA=M<1||(uA=H[M-1])==="B"?"N":K[M-1];break;case"B":x=!1,n=!0,lA=R;break;case"S":i=!0,lA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"BN":lA="N"}return lA},X=function(I,H,K){var M=I.split("");return K&&P(M,K,{hiLevel:R}),M.reverse(),H&&H.reverse(),M.join("")},P=function(I,H,K){var M,uA,iA,cA,eA,lA=-1,BA=I.length,UA=0,F=[],_=R?B:w,T=[];for(x=!1,n=!1,i=!1,uA=0;uA<BA;uA++)T[uA]=Y(I[uA]);for(iA=0;iA<BA;iA++){if(eA=UA,F[iA]=$(I,T,F,iA),M=240&(UA=_[eA][L[F[iA]]]),UA&=15,H[iA]=cA=_[UA][5],M>0)if(M===16){for(uA=lA;uA<iA;uA++)H[uA]=1;lA=-1}else lA=-1;if(_[UA][6])lA===-1&&(lA=iA);else if(lA>-1){for(uA=lA;uA<iA;uA++)H[uA]=cA;lA=-1}T[iA]==="B"&&(H[iA]=0),K.hiLevel|=cA}i&&function(k,J,nA){for(var aA=0;aA<nA;aA++)if(k[aA]==="S"){J[aA]=R;for(var sA=aA-1;sA>=0&&k[sA]==="WS";sA--)J[sA]=R}}(T,H,BA)},q=function(I,H,K,M,uA){if(!(uA.hiLevel<I)){if(I===1&&R===1&&!n)return H.reverse(),void(K&&K.reverse());for(var iA,cA,eA,lA,BA=H.length,UA=0;UA<BA;){if(M[UA]>=I){for(eA=UA+1;eA<BA&&M[eA]>=I;)eA++;for(lA=UA,cA=eA-1;lA<cA;lA++,cA--)iA=H[lA],H[lA]=H[cA],H[cA]=iA,K&&(iA=K[lA],K[lA]=K[cA],K[cA]=iA);UA=eA}UA++}}},oA=function(I,H,K){var M=I.split(""),uA={hiLevel:R};return K||(K=[]),P(M,K,uA),function(iA,cA,eA){if(eA.hiLevel!==0&&g)for(var lA,BA=0;BA<iA.length;BA++)cA[BA]===1&&(lA=S.indexOf(iA[BA]))>=0&&(iA[BA]=S[lA+1])}(M,K,uA),q(2,M,H,K,uA),q(1,M,H,K,uA),M.join("")};return this.__bidiEngine__.doBidiReorder=function(I,H,K){if(function(uA,iA){if(iA)for(var cA=0;cA<uA.length;cA++)iA[cA]=cA;c===void 0&&(c=Z(uA)),h===void 0&&(h=Z(uA))}(I,H),s||!u||h)if(s&&u&&c^h)R=c?1:0,I=X(I,H,K);else if(!s&&u&&h)R=c?1:0,I=oA(I,H,K),I=X(I,H);else if(!s||c||u||h){if(s&&!u&&c^h)I=X(I,H),c?(R=0,I=oA(I,H,K)):(R=1,I=oA(I,H,K),I=X(I,H));else if(s&&c&&!u&&h)R=1,I=oA(I,H,K),I=X(I,H);else if(!s&&!u&&c^h){var M=g;c?(R=1,I=oA(I,H,K),R=0,g=!1,I=oA(I,H,K),g=M):(R=0,I=oA(I,H,K),I=X(I,H),R=1,g=!1,I=oA(I,H,K),g=M,I=X(I,H))}}else R=0,I=oA(I,H,K);else R=c?1:0,I=oA(I,H,K);return I},this.__bidiEngine__.setOptions=function(I){I&&(s=I.isInputVisual,u=I.isOutputVisual,c=I.isInputRtl,h=I.isOutputRtl,g=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var n=r.text,i=(r.x,r.y,r.options||{}),s=(r.mutex,i.lang,[]);if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var c=0;for(s=[],c=0;c<n.length;c+=1)Object.prototype.toString.call(n[c])==="[object Array]"?s.push([e.doBidiReorder(n[c][0]),n[c][1],n[c][2]]):s.push([e.doBidiReorder(n[c])]);r.text=s}else r.text=e.doBidiReorder(n);e.setOptions({isInputVisual:!0})}])}(VA),VA.API.TTFFont=function(){function t(A){var e;if(this.rawData=A,e=this.contents=new Cn(A),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new I5(this),this.registerTTF()}return t.open=function(A){return new t(A)},t.prototype.parse=function(){return this.directory=new d5(this.contents),this.head=new w5(this),this.name=new F5(this),this.cmap=new B0(this),this.toUnicode={},this.hhea=new v5(this),this.maxp=new U5(this),this.hmtx=new y5(this),this.post=new C5(this),this.os2=new m5(this),this.loca=new x5(this),this.glyf=new b5(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var A,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,c,u,h;for(h=[],s=0,c=(u=this.bbox).length;s<c;s++)A=u[s],h.push(Math.round(A*this.scaleFactor));return h}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(A){var e;return((e=this.cmap.unicode)!=null?e.codeMap[A]:void 0)||0},t.prototype.widthOfGlyph=function(A){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*e},t.prototype.widthOfString=function(A,e,r){var n,i,s,c;for(s=0,i=0,c=(A=""+A).length;0<=c?i<c:i>c;i=0<=c?++i:--i)n=A.charCodeAt(i),s+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return s*(e/1e3)},t.prototype.lineHeight=function(A,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*A},t}();var hr,Cn=function(){function t(A){this.data=A??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(A){return this.data[this.pos++]=A},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},t.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},t.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},t.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},t.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},t.prototype.readString=function(A){var e,r;for(r=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(A){var e,r,n;for(n=[],e=0,r=A.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(A.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(A){return this.writeInt16(A)},t.prototype.readLongLong=function(){var A,e,r,n,i,s,c,u;return A=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),c=this.readByte(),u=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^s)+256*(255^c)+(255^u)+1):72057594037927940*A+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*s+256*c+u},t.prototype.writeLongLong=function(A){var e,r;return e=Math.floor(A/4294967296),r=4294967295&A,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(A){return this.writeInt32(A)},t.prototype.read=function(A){var e,r;for(e=[],r=0;0<=A?r<A:r>A;r=0<=A?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(A){var e,r,n,i;for(i=[],r=0,n=A.length;r<n;r++)e=A[r],i.push(this.writeByte(e));return i},t}(),d5=function(){var t;function A(e){var r,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return A.prototype.encode=function(e){var r,n,i,s,c,u,h,g,d,w,B,L,y;for(y in B=Object.keys(e).length,u=Math.log(2),d=16*Math.floor(Math.log(B)/u),s=Math.floor(d/u),g=16*B-d,(n=new Cn).writeInt(this.scalarType),n.writeShort(B),n.writeShort(d),n.writeShort(s),n.writeShort(g),i=16*B,h=n.pos+i,c=null,L=[],e)for(w=e[y],n.writeString(y),n.writeInt(t(w)),n.writeInt(h),n.writeInt(w.length),L=L.concat(w),y==="head"&&(c=h),h+=w.length;h%4;)L.push(0),h++;return n.write(L),r=2981146554-t(n.data),n.pos=c+8,n.writeUInt32(r),n.data},t=function(e){var r,n,i,s;for(e=g0.call(e);e.length%4;)e.push(0);for(i=new Cn(e),n=0,r=0,s=e.length;r<s;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),p5={}.hasOwnProperty,Ir=function(t,A){for(var e in A)p5.call(A,e)&&(t[e]=A[e]);function r(){this.constructor=t}return r.prototype=A.prototype,t.prototype=new r,t.__super__=A.prototype,t};hr=function(){function t(A){var e;this.file=A,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var w5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="head",A.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},A.prototype.encode=function(e){var r;return(r=new Cn).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(e),r.writeShort(this.glyphDataFormat),r.data},A}(),Gf=function(){function t(A,e){var r,n,i,s,c,u,h,g,d,w,B,L,y,S,Q,x,R;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=e+A.readInt(),d=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(u=0;u<256;++u)this.codeMap[u]=A.readByte();break;case 4:for(B=A.readUInt16(),w=B/2,A.pos+=6,i=function(){var Y,Z;for(Z=[],u=Y=0;0<=w?Y<w:Y>w;u=0<=w?++Y:--Y)Z.push(A.readUInt16());return Z}(),A.pos+=2,y=function(){var Y,Z;for(Z=[],u=Y=0;0<=w?Y<w:Y>w;u=0<=w?++Y:--Y)Z.push(A.readUInt16());return Z}(),h=function(){var Y,Z;for(Z=[],u=Y=0;0<=w?Y<w:Y>w;u=0<=w?++Y:--Y)Z.push(A.readUInt16());return Z}(),g=function(){var Y,Z;for(Z=[],u=Y=0;0<=w?Y<w:Y>w;u=0<=w?++Y:--Y)Z.push(A.readUInt16());return Z}(),n=(this.length-A.pos+this.offset)/2,c=function(){var Y,Z;for(Z=[],u=Y=0;0<=n?Y<n:Y>n;u=0<=n?++Y:--Y)Z.push(A.readUInt16());return Z}(),u=Q=0,R=i.length;Q<R;u=++Q)for(S=i[u],r=x=L=y[u];L<=S?x<=S:x>=S;r=L<=S?++x:--x)g[u]===0?s=r+h[u]:(s=c[g[u]/2+(r-L)-(w-u)]||0)!==0&&(s+=h[u]),this.codeMap[r]=65535&s}A.pos=d}return t.encode=function(A,e){var r,n,i,s,c,u,h,g,d,w,B,L,y,S,Q,x,R,Y,Z,$,X,P,q,oA,I,H,K,M,uA,iA,cA,eA,lA,BA,UA,F,_,T,k,J,nA,aA,sA,FA,QA,IA;switch(M=new Cn,s=Object.keys(A).sort(function(LA,GA){return LA-GA}),e){case"macroman":for(y=0,S=function(){var LA=[];for(L=0;L<256;++L)LA.push(0);return LA}(),x={0:0},i={},uA=0,lA=s.length;uA<lA;uA++)x[sA=A[n=s[uA]]]==null&&(x[sA]=++y),i[n]={old:A[n],new:x[A[n]]},S[n]=x[A[n]];return M.writeUInt16(1),M.writeUInt16(0),M.writeUInt32(12),M.writeUInt16(0),M.writeUInt16(262),M.writeUInt16(0),M.write(S),{charMap:i,subtable:M.data,maxGlyphID:y+1};case"unicode":for(H=[],d=[],R=0,x={},r={},Q=h=null,iA=0,BA=s.length;iA<BA;iA++)x[Z=A[n=s[iA]]]==null&&(x[Z]=++R),r[n]={old:Z,new:x[Z]},c=x[Z]-n,Q!=null&&c===h||(Q&&d.push(Q),H.push(n),h=c),Q=n;for(Q&&d.push(Q),d.push(65535),H.push(65535),oA=2*(q=H.length),P=2*Math.pow(Math.log(q)/Math.LN2,2),w=Math.log(P/2)/Math.LN2,X=2*q-P,u=[],$=[],B=[],L=cA=0,UA=H.length;cA<UA;L=++cA){if(I=H[L],g=d[L],I===65535){u.push(0),$.push(0);break}if(I-(K=r[I].new)>=32768)for(u.push(0),$.push(2*(B.length+q-L)),n=eA=I;I<=g?eA<=g:eA>=g;n=I<=g?++eA:--eA)B.push(r[n].new);else u.push(K-I),$.push(0)}for(M.writeUInt16(3),M.writeUInt16(1),M.writeUInt32(12),M.writeUInt16(4),M.writeUInt16(16+8*q+2*B.length),M.writeUInt16(0),M.writeUInt16(oA),M.writeUInt16(P),M.writeUInt16(w),M.writeUInt16(X),nA=0,F=d.length;nA<F;nA++)n=d[nA],M.writeUInt16(n);for(M.writeUInt16(0),aA=0,_=H.length;aA<_;aA++)n=H[aA],M.writeUInt16(n);for(FA=0,T=u.length;FA<T;FA++)c=u[FA],M.writeUInt16(c);for(QA=0,k=$.length;QA<k;QA++)Y=$[QA],M.writeUInt16(Y);for(IA=0,J=B.length;IA<J;IA++)y=B[IA],M.writeUInt16(y);return{charMap:r,subtable:M.data,maxGlyphID:R+1}}},t}(),B0=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="cmap",A.prototype.parse=function(e){var r,n,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new Gf(e,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},A.encode=function(e,r){var n,i;return r==null&&(r="macroman"),n=Gf.encode(e,r),(i=new Cn).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},A}(),v5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="hhea",A.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},A}(),m5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="OS/2",A.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(e.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},A}(),C5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="post",A.prototype.parse=function(e){var r,n,i;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var s;for(n=e.readUInt16(),this.glyphNameIndex=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)r=e.readByte(),i.push(this.names.push(e.readString(r)));return i;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 196608:break;case 262144:return this.map=(function(){var c,u,h;for(h=[],s=c=0,u=this.file.maxp.numGlyphs;0<=u?c<u:c>u;s=0<=u?++c:--c)h.push(e.readUInt32());return h}).call(this)}},A}(),Q5=function(t,A){this.raw=t,this.length=t.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},F5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="name",A.prototype.parse=function(e){var r,n,i,s,c,u,h,g,d,w,B;for(e.pos=this.offset,e.readShort(),r=e.readShort(),u=e.readShort(),n=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+u+e.readShort()});for(h={},s=d=0,w=n.length;d<w;s=++d)i=n[s],e.pos=i.offset,g=e.readString(i.length),c=new Q5(g,i),h[B=i.nameID]==null&&(h[B]=[]),h[i.nameID].push(c);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},A}(),U5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="maxp",A.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},A}(),y5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="hmtx",A.prototype.parse=function(e){var r,n,i,s,c,u,h;for(e.pos=this.offset,this.metrics=[],r=0,u=this.file.hhea.numberOfMetrics;0<=u?r<u:r>u;r=0<=u?++r:--r)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var g,d;for(d=[],r=g=0;0<=i?g<i:g>i;r=0<=i?++g:--g)d.push(e.readInt16());return d}(),this.widths=(function(){var g,d,w,B;for(B=[],g=0,d=(w=this.metrics).length;g<d;g++)s=w[g],B.push(s.advance);return B}).call(this),n=this.widths[this.widths.length-1],h=[],r=c=0;0<=i?c<i:c>i;r=0<=i?++c:--c)h.push(this.widths.push(n));return h},A.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},A}(),g0=[].slice,b5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(e){var r,n,i,s,c,u,h,g,d,w;return e in this.cache?this.cache[e]:(s=this.file.loca,r=this.file.contents,n=s.indexOf(e),(i=s.lengthOf(e))===0?this.cache[e]=null:(r.pos=this.offset+n,c=(u=new Cn(r.read(i))).readShort(),g=u.readShort(),w=u.readShort(),h=u.readShort(),d=u.readShort(),this.cache[e]=c===-1?new E5(u,g,w,h,d):new L5(u,c,g,w,h,d),this.cache[e]))},A.prototype.encode=function(e,r,n){var i,s,c,u,h;for(c=[],s=[],u=0,h=r.length;u<h;u++)i=e[r[u]],s.push(c.length),i&&(c=c.concat(i.encode(n)));return s.push(c.length),{table:c,offsets:s}},A}(),L5=function(){function t(A,e,r,n,i,s){this.raw=A,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),E5=function(){function t(A,e,r,n,i){var s,c;for(this.raw=A,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;c=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&c;)s.pos+=1&c?4:2,128&c?s.pos+=8:64&c?s.pos+=4:8&c&&(s.pos+=2)}return t.prototype.encode=function(){var A,e,r;for(e=new Cn(g0.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)e.pos=this.glyphOffsets[A];return e.data},t}(),x5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ir(A,hr),A.prototype.tag="loca",A.prototype.parse=function(e){var r,n;return e.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,s;for(s=[],n=0,i=this.length;n<i;n+=2)s.push(2*e.readUInt16());return s}).call(this):(function(){var i,s;for(s=[],n=0,i=this.length;n<i;n+=4)s.push(e.readUInt32());return s}).call(this)},A.prototype.indexOf=function(e){return this.offsets[e]},A.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},A.prototype.encode=function(e,r){for(var n=new Uint32Array(this.offsets.length),i=0,s=0,c=0;c<n.length;++c)if(n[c]=i,s<r.length&&r[s]==c){++s,n[c]=i;var u=this.offsets[c],h=this.offsets[c+1]-u;h>0&&(i+=h)}for(var g=new Array(4*n.length),d=0;d<n.length;++d)g[4*d+3]=255&n[d],g[4*d+2]=(65280&n[d])>>8,g[4*d+1]=(16711680&n[d])>>16,g[4*d]=(4278190080&n[d])>>24;return g},A}(),I5=function(){function t(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var A,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)r=i[e],A[e]=n[r];return A},t.prototype.glyphsFor=function(A){var e,r,n,i,s,c,u;for(n={},s=0,c=A.length;s<c;s++)n[i=A[s]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(r=n[i])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in u=this.glyphsFor(e))r=u[i],n[i]=r;return n},t.prototype.encode=function(A,e){var r,n,i,s,c,u,h,g,d,w,B,L,y,S,Q;for(n in r=B0.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(A),B={0:0},Q=r.charMap)B[(u=Q[n]).old]=u.new;for(L in w=r.maxGlyphID,s)L in B||(B[L]=w++);return g=function(x){var R,Y;for(R in Y={},x)Y[x[R]]=R;return Y}(B),d=Object.keys(g).sort(function(x,R){return x-R}),y=function(){var x,R,Y;for(Y=[],x=0,R=d.length;x<R;x++)c=d[x],Y.push(g[c]);return Y}(),i=this.font.glyf.encode(s,y,B),h=this.font.loca.encode(i.offsets,y),S={cmap:this.font.cmap.raw(),glyf:i.table,loca:h,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(S["OS/2"]=this.font.os2.raw()),this.font.directory.encode(S)},t}();VA.API.PDFObject=function(){var t;function A(){}return t=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},A.convert=function(e){var r,n,i,s;if(Array.isArray(e))return"["+function(){var c,u,h;for(h=[],c=0,u=e.length;c<u;c++)r=e[c],h.push(A.convert(r));return h}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(n in i=["<<"],e)s=e[n],i.push("/"+n+" "+A.convert(s));return i.push(">>"),i.join(`
`)}return""+e},A}();const{Title:io,Text:Ct}=aB,H5={CNY:"¥",TWD:"NT$",USD:"$"},_5=()=>{var g,d,w,B,L,y;const{id:t}=AB(),[A,e]=Ec.useState(!1),[r,n]=Ec.useState(null),i=async()=>{try{e(!0);const{data:S,error:Q}=await $0.from("resources").select("*").eq("id",t).single();if(Q)throw Q;n(S)}catch{da.error("获取报价单详情失败")}finally{e(!1)}};Ec.useEffect(()=>{t&&i()},[t]);const s=async()=>{try{da.loading("正在生成PDF...",0);const S=document.getElementById("quotation-content"),Q=await Jh(S,{scale:2,useCORS:!0,logging:!1,backgroundColor:"#ffffff"}),x=210,R=297,Y=Q.height*x/Q.width,Z=x,$=Y,X=Q.toDataURL("image/jpeg",1),P=new VA("p","mm","a4");let q=0,oA=1;for(;q<$;)P.addImage(X,"JPEG",0,q===0?0:-q,Z,$),q+=R,q<$&&(P.addPage(),oA++);P.save(`${r.attributes.quataName||"报价单"}.pdf`),da.destroy(),da.success("PDF导出成功！")}catch(S){console.error("PDF导出失败:",S),da.error("PDF导出失败，请重试")}},c=()=>TA.jsx(sB,{type:"primary",icon:TA.jsx(oB,{}),onClick:s,children:"导出PDF"});if(A)return TA.jsx("div",{className:"flex justify-center items-center h-full",children:TA.jsx(eB,{size:"large"})});if(!r)return null;const{attributes:u}=r,h=H5[u.currency]||"¥";return TA.jsx("div",{className:"max-w-4xl mx-auto p-6",children:TA.jsx(tB,{title:TA.jsxs("div",{className:"flex justify-between items-center",children:[TA.jsxs(Ul,{children:[TA.jsx(rB,{className:"text-blue-500"}),TA.jsx("span",{children:"报价单预览"})]}),TA.jsx(c,{})]}),children:TA.jsxs("div",{id:"quotation-content",className:"p-6",children:[TA.jsxs("div",{className:"text-center mb-8",children:[TA.jsx(io,{level:2,children:u.quataName}),TA.jsxs(Ct,{type:"secondary",children:["创建日期：",new Date(r.created_at).toLocaleDateString()]})]}),TA.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-6",children:[TA.jsx(io,{level:4,children:"基本信息"}),TA.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[TA.jsxs("div",{children:[TA.jsx(Ct,{type:"secondary",children:"客户："}),TA.jsx(Ul,{children:(g=u.customers)==null?void 0:g.map(S=>TA.jsx(nB,{color:"blue",children:S.name},S.id))})]}),TA.jsxs("div",{children:[TA.jsx(Ct,{type:"secondary",children:"货币类型："}),TA.jsx(Ct,{children:u.currency})]})]})]}),(d=u.sections)==null?void 0:d.map((S,Q)=>TA.jsxs("div",{className:"mb-6",children:[TA.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[TA.jsx("div",{className:"h-4 w-1 bg-blue-500 rounded-full"}),TA.jsx(io,{level:4,className:"!mb-0",children:S.sectionName})]}),TA.jsx("div",{className:"overflow-x-auto",children:TA.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[TA.jsx("thead",{className:"bg-gray-50",children:TA.jsxs("tr",{children:[TA.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-gray-500",children:"项目明细"}),TA.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-gray-500",children:"描述/备注"}),TA.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-gray-500",children:"单位"}),TA.jsx("th",{className:"px-4 py-3 text-right text-sm font-medium text-gray-500",children:"数量"}),TA.jsx("th",{className:"px-4 py-3 text-right text-sm font-medium text-gray-500",children:"单价"}),TA.jsx("th",{className:"px-4 py-3 text-right text-sm font-medium text-gray-500",children:"小计"})]})}),TA.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:S.items.map((x,R)=>{var Y;return TA.jsxs("tr",{children:[TA.jsx("td",{className:"px-4 py-3 text-sm text-gray-900",children:x.name}),TA.jsx("td",{className:"px-4 py-3 text-sm text-gray-500",children:x.description}),TA.jsx("td",{className:"px-4 py-3 text-sm text-gray-500",children:x.unit}),TA.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 text-right",children:x.quantity}),TA.jsxs("td",{className:"px-4 py-3 text-sm text-gray-900 text-right",children:[h,(Y=x.price)==null?void 0:Y.toLocaleString()]}),TA.jsxs("td",{className:"px-4 py-3 text-sm text-gray-900 text-right",children:[h,(x.quantity*x.price).toLocaleString()]})]},R)})})]})})]},Q)),TA.jsx("div",{className:"mt-8 border-t pt-4",children:TA.jsx("div",{className:"flex justify-end space-y-2",children:TA.jsxs("div",{className:"w-64 space-y-2",children:[TA.jsxs("div",{className:"flex justify-between",children:[TA.jsx(Ct,{children:"税前总计："}),TA.jsxs(Ct,{children:[h,(w=u.beforeTaxAmount)==null?void 0:w.toLocaleString()]})]}),TA.jsxs("div",{className:"flex justify-between",children:[TA.jsx(Ct,{children:"税率"}),TA.jsxs(Ct,{children:[u.taxRate,"%"]})]}),TA.jsxs("div",{className:"flex justify-between",children:[TA.jsx(Ct,{children:"税后总计："}),TA.jsxs(Ct,{children:[h,(B=u.afterTaxAmount)==null?void 0:B.toLocaleString()]})]}),u.discount>0&&TA.jsxs("div",{className:"flex justify-between",children:[TA.jsx(Ct,{children:"折扣价："}),TA.jsxs(Ct,{type:"success",children:[h,(L=u.discount)==null?void 0:L.toLocaleString()]})]}),TA.jsx(iB,{className:"my-2"}),TA.jsxs("div",{className:"flex justify-between",children:[TA.jsx(Ct,{strong:!0,children:"最终金额："}),TA.jsxs(Ct,{strong:!0,className:"text-blue-500 text-xl",children:[h,(y=u.discount||u.afterTaxAmount)==null?void 0:y.toLocaleString()]})]})]})})}),u.description&&TA.jsxs("div",{className:"mt-8",children:[TA.jsx(io,{level:4,children:"补充说明"}),TA.jsx("div",{className:"bg-gray-50 p-4 rounded-lg",children:TA.jsx(Ct,{children:u.description})})]})]})})})};export{_5 as default};
//# sourceMappingURL=index-230be5c6.js.map
