const __vite__fileDeps=["./index.es-DNkQidfm.js","./index-CKIL6d0V.js","./index-FD1TmIp3.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{aV as Qe,bZ as Xc}from"./index-CKIL6d0V.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 Jc=function(t,A){return Jc=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])},Jc(t,A)};function ar(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Jc(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var zc=function(){return zc=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},zc.apply(this,arguments)};function gt(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(B){try{h(r.next(B))}catch(p){s(p)}}function u(B){try{h(r.throw(B))}catch(p){s(p)}}function h(B){B.done?i(B.value):n(B.value).then(c,u)}h((r=r.apply(t,[])).next())})}function ft(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(B){return u([h,B])}}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(B){h=[6,B],n=0}finally{r=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function Cs(t,A,e){if(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 kr=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}(),Bo=function(t,A){return kr.fromClientRect(t,A.getBoundingClientRect())},G0=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 kr(0,0,r,n)},go=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},Pe=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},vl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qs=0;Qs<vl.length;Qs++)j0[vl.charCodeAt(Qs)]=Qs;var ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ba=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Fs=0;Fs<ml.length;Fs++)Ba[ml.charCodeAt(Fs)]=Fs;var V0=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),B=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<e;r+=4)i=Ba[t.charCodeAt(r)],s=Ba[t.charCodeAt(r+1)],c=Ba[t.charCodeAt(r+2)],u=Ba[t.charCodeAt(r+3)],B[n++]=i<<2|s>>4,B[n++]=(s&15)<<4|c>>2,B[n++]=(c&3)<<6|u&63;return h},q0=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},W0=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},_n=5,xu=11,wc=2,X0=xu-_n,Mf=65536>>_n,J0=1<<_n,vc=J0-1,z0=1024>>_n,Y0=Mf+z0,Z0=Y0,$0=32,AB=Z0+$0,eB=65536>>xu,tB=1<<X0,rB=tB-1,Cl=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},nB=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},iB=function(t,A){var e=V0(t),r=Array.isArray(e)?W0(e):new Uint32Array(e),n=Array.isArray(e)?q0(e):new Uint16Array(e),i=24,s=Cl(n,i/2,r[4]/2),c=r[5]===2?Cl(n,(i+r[4])/2):nB(r,Math.ceil((i+r[4])/4));return new aB(r[0],r[1],r[2],r[3],s,c)},aB=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>>_n],e=(e<<wc)+(A&vc),this.data[e];if(A<=65535)return e=this.index[Mf+(A-55296>>_n)],e=(e<<wc)+(A&vc),this.data[e];if(A<this.highStart)return e=AB-eB+(A>>xu),e=this.index[e],e+=A>>_n&rB,e=this.index[e],e=(e<<wc)+(A&vc),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Us=0;Us<Ql.length;Us++)sB[Ql.charCodeAt(Us)]=Us;var oB=" ",Fl=50,cB=1,Kf=2,kf=3,uB=4,lB=5,Ul=7,Rf=8,yl=9,un=10,Yc=11,bl=12,Zc=13,fB=14,ga=15,$c=16,ys=17,oa=18,hB=19,Ll=20,Au=21,ca=22,mc=23,fi=24,Ht=25,da=26,pa=27,hi=28,BB=29,Hn=30,gB=31,bs=32,Ls=33,eu=34,tu=35,ru=36,La=37,nu=38,Xs=39,Js=40,Cc=41,Gf=42,dB=43,pB=[9001,65288],jf="!",ie="×",Es="÷",iu=iB(oB),Or=[Hn,ru],au=[cB,Kf,kf,lB],Vf=[un,Rf],El=[pa,da],wB=au.concat(Vf),Il=[nu,Xs,Js,eu,tu],vB=[ga,Zc],mB=function(t,A){A===void 0&&(A="strict");var e=[],r=[],n=[];return t.forEach(function(i,s){var c=iu.get(i);if(c>Fl?(n.push(!0),c-=Fl):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),e.push($c);if(c===uB||c===Yc){if(s===0)return r.push(s),e.push(Hn);var u=e[s-1];return wB.indexOf(u)===-1?(r.push(r[s-1]),e.push(u)):(r.push(s),e.push(Hn))}if(r.push(s),c===gB)return e.push(A==="strict"?Au:La);if(c===Gf||c===BB)return e.push(Hn);if(c===dB)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(La):e.push(Hn);e.push(c)}),[r,e,n]},Qc=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!==un)break}if(n===un)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!==un)break}if(c!==un)break}return!1},xl=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===un)e--;else return r}return 0},CB=function(t,A,e,r,n){if(e[r]===0)return ie;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return ie;var s=i-1,c=i+1,u=A[i],h=s>=0?A[s]:0,B=A[c];if(u===Kf&&B===kf)return ie;if(au.indexOf(u)!==-1)return jf;if(au.indexOf(B)!==-1||Vf.indexOf(B)!==-1)return ie;if(xl(i,A)===Rf)return Es;if(iu.get(t[i])===Yc||(u===bs||u===Ls)&&iu.get(t[c])===Yc||u===Ul||B===Ul||u===yl||[un,Zc,ga].indexOf(u)===-1&&B===yl||[ys,oa,hB,fi,hi].indexOf(B)!==-1||xl(i,A)===ca||Qc(mc,ca,i,A)||Qc([ys,oa],Au,i,A)||Qc(bl,bl,i,A))return ie;if(u===un)return Es;if(u===mc||B===mc)return ie;if(B===$c||u===$c)return Es;if([Zc,ga,Au].indexOf(B)!==-1||u===fB||h===ru&&vB.indexOf(u)!==-1||u===hi&&B===ru||B===Ll||Or.indexOf(B)!==-1&&u===Ht||Or.indexOf(u)!==-1&&B===Ht||u===pa&&[La,bs,Ls].indexOf(B)!==-1||[La,bs,Ls].indexOf(u)!==-1&&B===da||Or.indexOf(u)!==-1&&El.indexOf(B)!==-1||El.indexOf(u)!==-1&&Or.indexOf(B)!==-1||[pa,da].indexOf(u)!==-1&&(B===Ht||[ca,ga].indexOf(B)!==-1&&A[c+1]===Ht)||[ca,ga].indexOf(u)!==-1&&B===Ht||u===Ht&&[Ht,hi,fi].indexOf(B)!==-1)return ie;if([Ht,hi,fi,ys,oa].indexOf(B)!==-1)for(var p=i;p>=0;){var w=A[p];if(w===Ht)return ie;if([hi,fi].indexOf(w)!==-1)p--;else break}if([pa,da].indexOf(B)!==-1)for(var p=[ys,oa].indexOf(u)!==-1?s:i;p>=0;){var w=A[p];if(w===Ht)return ie;if([hi,fi].indexOf(w)!==-1)p--;else break}if(nu===u&&[nu,Xs,eu,tu].indexOf(B)!==-1||[Xs,eu].indexOf(u)!==-1&&[Xs,Js].indexOf(B)!==-1||[Js,tu].indexOf(u)!==-1&&B===Js||Il.indexOf(u)!==-1&&[Ll,da].indexOf(B)!==-1||Il.indexOf(B)!==-1&&u===pa||Or.indexOf(u)!==-1&&Or.indexOf(B)!==-1||u===fi&&Or.indexOf(B)!==-1||Or.concat(Ht).indexOf(u)!==-1&&B===ca&&pB.indexOf(t[c])===-1||Or.concat(Ht).indexOf(B)!==-1&&u===oa)return ie;if(u===Cc&&B===Cc){for(var g=e[i],L=1;g>0&&(g--,A[g]===Cc);)L++;if(L%2!==0)return ie}return u===bs&&B===Ls?ie:Es},QB=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=mB(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[Ht,Hn,Gf].indexOf(c)!==-1?La: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]},FB=function(){function t(A,e,r,n){this.codePoints=A,this.required=e===jf,this.start=r,this.end=n}return t.prototype.slice=function(){return Pe.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),UB=function(t,A){var e=go(t),r=QB(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 B=ie;h<c&&(B=CB(e,i,n,++h,s))===ie;);if(B!==ie||h===c){var p=new FB(e,B,u,h);return u=h,{value:p,done:!1}}return{done:!0,value:null}}}},yB=1,bB=2,Sa=4,Hl=8,to=10,Sl=47,Ca=92,LB=9,EB=32,Is=34,ua=61,IB=35,xB=36,HB=37,xs=39,Hs=40,la=41,SB=95,Ft=45,NB=33,_B=60,DB=62,TB=64,OB=91,PB=93,MB=61,KB=123,Ss=63,kB=125,Nl=124,RB=126,GB=128,_l=65533,Fc=42,Nn=43,jB=44,VB=58,qB=59,Ea=46,WB=0,XB=8,JB=11,zB=14,YB=31,ZB=127,wr=-1,qf=48,Wf=97,Xf=101,$B=102,A1=117,e1=122,Jf=65,zf=69,Yf=70,t1=85,r1=90,ht=function(t){return t>=qf&&t<=57},n1=function(t){return t>=55296&&t<=57343},Bi=function(t){return ht(t)||t>=Jf&&t<=Yf||t>=Wf&&t<=$B},i1=function(t){return t>=Wf&&t<=e1},a1=function(t){return t>=Jf&&t<=r1},s1=function(t){return i1(t)||a1(t)},o1=function(t){return t>=GB},Ns=function(t){return t===to||t===LB||t===EB},ro=function(t){return s1(t)||o1(t)||t===SB},Dl=function(t){return ro(t)||ht(t)||t===Ft},c1=function(t){return t>=WB&&t<=XB||t===JB||t>=zB&&t<=YB||t===ZB},cn=function(t,A){return t!==Ca?!1:A!==to},_s=function(t,A,e){return t===Ft?ro(A)||cn(A,e):ro(t)?!0:!!(t===Ca&&cn(t,A))},Uc=function(t,A,e){return t===Nn||t===Ft?ht(A)?!0:A===Ea&&ht(e):ht(t===Ea?A:t)},u1=function(t){var A=0,e=1;(t[A]===Nn||t[A]===Ft)&&(t[A]===Ft&&(e=-1),A++);for(var r=[];ht(t[A]);)r.push(t[A++]);var n=r.length?parseInt(Pe.apply(void 0,r),10):0;t[A]===Ea&&A++;for(var i=[];ht(t[A]);)i.push(t[A++]);var s=i.length,c=s?parseInt(Pe.apply(void 0,i),10):0;(t[A]===zf||t[A]===Xf)&&A++;var u=1;(t[A]===Nn||t[A]===Ft)&&(t[A]===Ft&&(u=-1),A++);for(var h=[];ht(t[A]);)h.push(t[A++]);var B=h.length?parseInt(Pe.apply(void 0,h),10):0;return e*(n+c*Math.pow(10,-s))*Math.pow(10,u*B)},l1={type:2},f1={type:3},h1={type:4},B1={type:13},g1={type:8},d1={type:21},p1={type:9},w1={type:10},v1={type:11},m1={type:12},C1={type:14},Ds={type:23},Q1={type:1},F1={type:25},U1={type:24},y1={type:26},b1={type:27},L1={type:28},E1={type:29},I1={type:31},su={type:32},Zf=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(go(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==su;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Is:return this.consumeStringToken(Is);case IB:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Dl(e)||cn(r,n)){var i=_s(e,r,n)?bB:yB,s=this.consumeName();return{type:5,value:s,flags:i}}break;case xB:if(this.peekCodePoint(0)===ua)return this.consumeCodePoint(),B1;break;case xs:return this.consumeStringToken(xs);case Hs:return l1;case la:return f1;case Fc:if(this.peekCodePoint(0)===ua)return this.consumeCodePoint(),C1;break;case Nn:if(Uc(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case jB:return h1;case Ft:var c=A,u=this.peekCodePoint(0),h=this.peekCodePoint(1);if(Uc(c,u,h))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(_s(c,u,h))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(u===Ft&&h===DB)return this.consumeCodePoint(),this.consumeCodePoint(),U1;break;case Ea:if(Uc(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Sl:if(this.peekCodePoint(0)===Fc)for(this.consumeCodePoint();;){var B=this.consumeCodePoint();if(B===Fc&&(B=this.consumeCodePoint(),B===Sl))return this.consumeToken();if(B===wr)return this.consumeToken()}break;case VB:return y1;case qB:return b1;case _B:if(this.peekCodePoint(0)===NB&&this.peekCodePoint(1)===Ft&&this.peekCodePoint(2)===Ft)return this.consumeCodePoint(),this.consumeCodePoint(),F1;break;case TB:var p=this.peekCodePoint(0),w=this.peekCodePoint(1),g=this.peekCodePoint(2);if(_s(p,w,g)){var s=this.consumeName();return{type:7,value:s}}break;case OB:return L1;case Ca:if(cn(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case PB:return E1;case MB:if(this.peekCodePoint(0)===ua)return this.consumeCodePoint(),g1;break;case KB:return v1;case kB:return m1;case A1:case t1:var L=this.peekCodePoint(0),y=this.peekCodePoint(1);return L===Nn&&(Bi(y)||y===Ss)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Nl:if(this.peekCodePoint(0)===ua)return this.consumeCodePoint(),p1;if(this.peekCodePoint(0)===Nl)return this.consumeCodePoint(),d1;break;case RB:if(this.peekCodePoint(0)===ua)return this.consumeCodePoint(),w1;break;case wr:return su}return Ns(A)?(this.consumeWhiteSpace(),I1):ht(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):ro(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:Pe(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();Bi(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var r=!1;e===Ss&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(Pe.apply(void 0,A.map(function(u){return u===Ss?qf:u})),16),i=parseInt(Pe.apply(void 0,A.map(function(u){return u===Ss?Yf:u})),16);return{type:30,start:n,end:i}}var s=parseInt(Pe.apply(void 0,A),16);if(this.peekCodePoint(0)===Ft&&Bi(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var c=[];Bi(e)&&c.length<6;)c.push(e),e=this.consumeCodePoint();var i=parseInt(Pe.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)===Hs?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Hs?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===wr)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===xs||e===Is){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===wr||this.peekCodePoint(0)===la)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Ds)}for(;;){var n=this.consumeCodePoint();if(n===wr||n===la)return{type:22,value:Pe.apply(void 0,A)};if(Ns(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===wr||this.peekCodePoint(0)===la?(this.consumeCodePoint(),{type:22,value:Pe.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Ds);if(n===Is||n===xs||n===Hs||c1(n))return this.consumeBadUrlRemnants(),Ds;if(n===Ca)if(cn(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ds;else A.push(n)}},t.prototype.consumeWhiteSpace=function(){for(;Ns(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===la||A===wr)return;cn(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+=Pe.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===wr||n===void 0||n===A)return e+=this.consumeStringSlice(r),{type:0,value:e};if(n===to)return this._value.splice(0,r),Q1;if(n===Ca){var i=this._value[r+1];i!==wr&&i!==void 0&&(i===to?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):cn(n,i)&&(e+=this.consumeStringSlice(r),e+=Pe(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=Sa,r=this.peekCodePoint(0);for((r===Nn||r===Ft)&&A.push(this.consumeCodePoint());ht(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Ea&&ht(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Hl;ht(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===zf||r===Xf)&&((n===Nn||n===Ft)&&ht(i)||ht(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Hl;ht(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[u1(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(_s(n,i,s)){var c=this.consumeName();return{type:15,number:e,flags:r,unit:c}}return n===HB?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Bi(A)){for(var e=Pe(A);Bi(this.peekCodePoint(0))&&e.length<6;)e+=Pe(this.consumeCodePoint());Ns(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return r===0||n1(r)||r>1114111?_l:r}return A===wr?_l:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Dl(e))A+=Pe(e);else if(cn(e,this.peekCodePoint(0)))A+=Pe(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),$f=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new Zf;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||H1(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"?su:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),Na=function(t){return t.type===15},Si=function(t){return t.type===17},we=function(t){return t.type===20},x1=function(t){return t.type===0},ou=function(t,A){return we(t)&&t.value===A},Ah=function(t){return t.type!==31},Hi=function(t){return t.type!==31&&t.type!==4},Qr=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},H1=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},dn=function(t){return t.type===17||t.type===15},qe=function(t){return t.type===16||dn(t)},eh=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},nt={type:17,number:0,flags:Sa},Hu={type:16,number:50,flags:Sa},ln={type:16,number:100,flags:Sa},wa=function(t,A,e){var r=t[0],n=t[1];return[ye(r,A),ye(typeof n<"u"?n:r,e)]},ye=function(t,A){if(t.type===16)return t.number/100*A;if(Na(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},th="deg",rh="grad",nh="rad",ih="turn",po={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case th:return Math.PI*A.number/180;case rh:return Math.PI/200*A.number;case nh:return A.number;case ih:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},ah=function(t){return t.type===15&&(t.unit===th||t.unit===rh||t.unit===nh||t.unit===ih)},sh=function(t){var A=t.filter(we).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[nt,nt];case"to top":case"bottom":return Kt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[nt,ln];case"to right":case"left":return Kt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ln,ln];case"to bottom":case"top":return Kt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ln,nt];case"to left":case"right":return Kt(270)}return 0},Kt=function(t){return Math.PI*t/180},Bn={name:"color",parse:function(t,A){if(A.type===18){var e=S1[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 fn(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 fn(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 fn(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 fn(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var c=Kr[A.value.toUpperCase()];if(typeof c<"u")return c}return Kr.TRANSPARENT}},gn=function(t){return(255&t)===0},$e=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+")"},fn=function(t,A,e,r){return(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0},Tl=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},Ol=function(t,A){var e=A.filter(Hi);if(e.length===3){var r=e.map(Tl),n=r[0],i=r[1],s=r[2];return fn(n,i,s,1)}if(e.length===4){var c=e.map(Tl),n=c[0],i=c[1],s=c[2],u=c[3];return fn(n,i,s,u)}return 0};function yc(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 Pl=function(t,A){var e=A.filter(Hi),r=e[0],n=e[1],i=e[2],s=e[3],c=(r.type===17?Kt(r.number):po.parse(t,r))/(Math.PI*2),u=qe(n)?n.number/100:0,h=qe(i)?i.number/100:0,B=typeof s<"u"&&qe(s)?ye(s,1):1;if(u===0)return fn(h*255,h*255,h*255,1);var p=h<=.5?h*(u+1):h+u-h*u,w=h*2-p,g=yc(w,p,c+1/3),L=yc(w,p,c),y=yc(w,p,c-1/3);return fn(g*255,L*255,y*255,B)},S1={hsl:Pl,hsla:Pl,rgb:Ol,rgba:Ol},Qa=function(t,A){return Bn.parse(t,$f.create(A).parseComponentValue())},Kr={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},N1={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(we(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_1={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wo=function(t,A){var e=Bn.parse(t,A[0]),r=A[1];return r&&qe(r)?{color:e,stop:r}:{color:e,stop:null}},Ml=function(t,A){var e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=nt),r.stop===null&&(r.stop=ln);for(var n=[],i=0,s=0;s<t.length;s++){var c=t[s].stop;if(c!==null){var u=ye(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 B=n[s];if(B===null)h===null&&(h=s);else if(h!==null){for(var p=s-h,w=n[h-1],g=(B-w)/(p+1),L=1;L<=p;L++)n[h+L-1]=g*L;h=null}}return t.map(function(y,N){var U=y.color;return{color:U,stop:Math.max(Math.min(1,n[N]/A),0)}})},D1=function(t,A,e){var r=A/2,n=e/2,i=ye(t[0],A)-r,s=n-ye(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},T1=function(t,A,e){var r=typeof t=="number"?t:D1(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]},ir=function(t,A){return Math.sqrt(t*t+A*A)},Kl=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],B=ir(e-u,r-h);return(n?B<s.optimumDistance:B>s.optimumDistance)?{optimumCorner:c,optimumDistance:B}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},O1=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(ir(A,e),ir(A,e-n),ir(A-r,e),ir(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=Kl(r,n,A,e,!0),h=u[0],B=u[1];i=ir(h-A,(B-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(ir(A,e),ir(A,e-n),ir(A-r,e),ir(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)),p=Kl(r,n,A,e,!1),h=p[0],B=p[1];i=ir(h-A,(B-e)/c),s=c*i}break}return Array.isArray(t.size)&&(i=ye(t.size[0],r),s=t.size.length===2?ye(t.size[1],n):i),[i,s]},P1=function(t,A){var e=Kt(180),r=[];return Qr(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){e=sh(n);return}else if(ah(s)){e=po.parse(t,s);return}}var c=wo(t,n);r.push(c)}),{angle:e,stops:r,type:1}},Ts=function(t,A){var e=Kt(180),r=[];return Qr(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=sh(n);return}else if(ah(s)){e=(po.parse(t,s)+Kt(270))%Kt(360);return}}var c=wo(t,n);r.push(c)}),{angle:e,stops:r,type:1}},M1=function(t,A){var e=Kt(180),r=[],n=1,i=0,s=3,c=[];return Qr(A).forEach(function(u,h){var B=u[0];if(h===0){if(we(B)&&B.value==="linear"){n=1;return}else if(we(B)&&B.value==="radial"){n=2;return}}if(B.type===18){if(B.name==="from"){var p=Bn.parse(t,B.values[0]);r.push({stop:nt,color:p})}else if(B.name==="to"){var p=Bn.parse(t,B.values[0]);r.push({stop:ln,color:p})}else if(B.name==="color-stop"){var w=B.values.filter(Hi);if(w.length===2){var p=Bn.parse(t,w[1]),g=w[0];Si(g)&&r.push({stop:{type:16,number:g.number*100,flags:g.flags},color:p})}}}}),n===1?{angle:(e+Kt(180))%Kt(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:c,type:n}},oh="closest-side",ch="farthest-side",uh="closest-corner",lh="farthest-corner",fh="circle",hh="ellipse",Bh="cover",gh="contain",K1=function(t,A){var e=0,r=3,n=[],i=[];return Qr(A).forEach(function(s,c){var u=!0;if(c===0){var h=!1;u=s.reduce(function(p,w){if(h)if(we(w))switch(w.value){case"center":return i.push(Hu),p;case"top":case"left":return i.push(nt),p;case"right":case"bottom":return i.push(ln),p}else(qe(w)||dn(w))&&i.push(w);else if(we(w))switch(w.value){case fh:return e=0,!1;case hh:return e=1,!1;case"at":return h=!0,!1;case oh:return r=0,!1;case Bh:case ch:return r=1,!1;case gh:case uh:return r=2,!1;case lh:return r=3,!1}else if(dn(w)||qe(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return p},u)}if(u){var B=wo(t,s);n.push(B)}}),{size:r,shape:e,stops:n,position:i,type:2}},Os=function(t,A){var e=0,r=3,n=[],i=[];return Qr(A).forEach(function(s,c){var u=!0;if(c===0?u=s.reduce(function(B,p){if(we(p))switch(p.value){case"center":return i.push(Hu),!1;case"top":case"left":return i.push(nt),!1;case"right":case"bottom":return i.push(ln),!1}else if(qe(p)||dn(p))return i.push(p),!1;return B},u):c===1&&(u=s.reduce(function(B,p){if(we(p))switch(p.value){case fh:return e=0,!1;case hh:return e=1,!1;case gh:case oh:return r=0,!1;case ch:return r=1,!1;case uh:return r=2,!1;case Bh:case lh:return r=3,!1}else if(dn(p)||qe(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return B},u)),u){var h=wo(t,s);n.push(h)}}),{size:r,shape:e,stops:n,position:i,type:2}},k1=function(t){return t.type===1},R1=function(t){return t.type===2},Su={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=dh[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 G1(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!dh[t.name])}var dh={"linear-gradient":P1,"-moz-linear-gradient":Ts,"-ms-linear-gradient":Ts,"-o-linear-gradient":Ts,"-webkit-linear-gradient":Ts,"radial-gradient":K1,"-moz-radial-gradient":Os,"-ms-radial-gradient":Os,"-o-radial-gradient":Os,"-webkit-radial-gradient":Os,"-webkit-gradient":M1},j1={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 Hi(r)&&G1(r)}).map(function(r){return Su.parse(t,r)})}},V1={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(we(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},q1={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return Qr(A).map(function(e){return e.filter(qe)}).map(eh)}},W1={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return Qr(A).map(function(e){return e.filter(we).map(function(r){return r.value}).join(" ")}).map(X1)}},X1=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}},bi;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(bi||(bi={}));var J1={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return Qr(A).map(function(e){return e.filter(z1)})}},z1=function(t){return we(t)||qe(t)},vo=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Y1=vo("top"),Z1=vo("right"),$1=vo("bottom"),Ag=vo("left"),mo=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return eh(e.filter(qe))}}},eg=mo("top-left"),tg=mo("top-right"),rg=mo("bottom-right"),ng=mo("bottom-left"),Co=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}}},ig=Co("top"),ag=Co("right"),sg=Co("bottom"),og=Co("left"),Qo=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Na(e)?e.number:0}}},cg=Qo("top"),ug=Qo("right"),lg=Qo("bottom"),fg=Qo("left"),hg={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bg={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},gg={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(we).reduce(function(e,r){return e|dg(r.value)},0)}},dg=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}},wg={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}},no;(function(t){t.NORMAL="normal",t.STRICT="strict"})(no||(no={}));var vg={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return no.STRICT;case"normal":default:return no.NORMAL}}},mg={name:"line-height",initialValue:"normal",prefix:!1,type:4},kl=function(t,A){return we(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:qe(t)?ye(t,A):A},Cg={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:Su.parse(t,A)}},Qg={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}}},cu={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}}},Fo=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Fg=Fo("top"),Ug=Fo("right"),yg=Fo("bottom"),bg=Fo("left"),Lg={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(we).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}})}},Eg={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"}}},Uo=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ig=Uo("top"),xg=Uo("right"),Hg=Uo("bottom"),Sg=Uo("left"),Ng={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}}},_g={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}},Dg={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&ou(A[0],"none")?[]:Qr(A).map(function(e){for(var r={color:Kr.TRANSPARENT,offsetX:nt,offsetY:nt,blur:nt},n=0,i=0;i<e.length;i++){var s=e[i];dn(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:r.blur=s,n++):r.color=Bn.parse(t,s)}return r})}},Tg={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}},Og={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=Kg[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},Pg=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},Mg=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},Kg={matrix:Pg,matrix3d:Mg},Rl={type:16,number:50,flags:Sa},kg=[Rl,Rl],Rg={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(qe);return e.length!==2?kg:[e[0],e[1]]}},Gg={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}}},Fa;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Fa||(Fa={}));var jg={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return Fa.BREAK_ALL;case"keep-all":return Fa.KEEP_ALL;case"normal":default:return Fa.NORMAL}}},Vg={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Si(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},ph={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")}},qg={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Si(A)?A.number:1}},Wg={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Xg={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(we).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})}},Jg={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+"'"})}},zg={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Yg={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Si(A))return A.number;if(we(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},Zg={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(we).map(function(e){return e.value})}},$g={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"}}},Je=function(t,A){return(t&A)!==0},A2={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}},e2={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&&Si(c)?c.number:1;r.push({counter:s.value,increment:u})}}return r}},t2={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(we(i)&&i.value!=="none"){var c=s&&Si(s)?s.number:0;e.push({counter:i.value,reset:c})}}return e}},r2={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(Na).map(function(e){return ph.parse(t,e)})}},n2={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(x1);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}},Gl=function(t,A,e){if(!t)return"";var r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},i2={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&ou(A[0],"none")?[]:Qr(A).map(function(e){for(var r={color:255,offsetX:nt,offsetY:nt,blur:nt,spread:nt,inset:!1},n=0,i=0;i<e.length;i++){var s=e[i];ou(s,"inset")?r.inset=!0:dn(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:n===2?r.blur=s:r.spread=s,n++):r.color=Bn.parse(t,s)}return r})}},a2={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],r=[];return A.filter(we).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}},s2={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},o2={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Na(A)?A.number:0}},c2=function(){function t(A,e){var r,n;this.animationDuration=TA(A,r2,e.animationDuration),this.backgroundClip=TA(A,N1,e.backgroundClip),this.backgroundColor=TA(A,_1,e.backgroundColor),this.backgroundImage=TA(A,j1,e.backgroundImage),this.backgroundOrigin=TA(A,V1,e.backgroundOrigin),this.backgroundPosition=TA(A,q1,e.backgroundPosition),this.backgroundRepeat=TA(A,W1,e.backgroundRepeat),this.backgroundSize=TA(A,J1,e.backgroundSize),this.borderTopColor=TA(A,Y1,e.borderTopColor),this.borderRightColor=TA(A,Z1,e.borderRightColor),this.borderBottomColor=TA(A,$1,e.borderBottomColor),this.borderLeftColor=TA(A,Ag,e.borderLeftColor),this.borderTopLeftRadius=TA(A,eg,e.borderTopLeftRadius),this.borderTopRightRadius=TA(A,tg,e.borderTopRightRadius),this.borderBottomRightRadius=TA(A,rg,e.borderBottomRightRadius),this.borderBottomLeftRadius=TA(A,ng,e.borderBottomLeftRadius),this.borderTopStyle=TA(A,ig,e.borderTopStyle),this.borderRightStyle=TA(A,ag,e.borderRightStyle),this.borderBottomStyle=TA(A,sg,e.borderBottomStyle),this.borderLeftStyle=TA(A,og,e.borderLeftStyle),this.borderTopWidth=TA(A,cg,e.borderTopWidth),this.borderRightWidth=TA(A,ug,e.borderRightWidth),this.borderBottomWidth=TA(A,lg,e.borderBottomWidth),this.borderLeftWidth=TA(A,fg,e.borderLeftWidth),this.boxShadow=TA(A,i2,e.boxShadow),this.color=TA(A,hg,e.color),this.direction=TA(A,Bg,e.direction),this.display=TA(A,gg,e.display),this.float=TA(A,pg,e.cssFloat),this.fontFamily=TA(A,Jg,e.fontFamily),this.fontSize=TA(A,zg,e.fontSize),this.fontStyle=TA(A,$g,e.fontStyle),this.fontVariant=TA(A,Zg,e.fontVariant),this.fontWeight=TA(A,Yg,e.fontWeight),this.letterSpacing=TA(A,wg,e.letterSpacing),this.lineBreak=TA(A,vg,e.lineBreak),this.lineHeight=TA(A,mg,e.lineHeight),this.listStyleImage=TA(A,Cg,e.listStyleImage),this.listStylePosition=TA(A,Qg,e.listStylePosition),this.listStyleType=TA(A,cu,e.listStyleType),this.marginTop=TA(A,Fg,e.marginTop),this.marginRight=TA(A,Ug,e.marginRight),this.marginBottom=TA(A,yg,e.marginBottom),this.marginLeft=TA(A,bg,e.marginLeft),this.opacity=TA(A,qg,e.opacity);var i=TA(A,Lg,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=TA(A,Eg,e.overflowWrap),this.paddingTop=TA(A,Ig,e.paddingTop),this.paddingRight=TA(A,xg,e.paddingRight),this.paddingBottom=TA(A,Hg,e.paddingBottom),this.paddingLeft=TA(A,Sg,e.paddingLeft),this.paintOrder=TA(A,a2,e.paintOrder),this.position=TA(A,_g,e.position),this.textAlign=TA(A,Ng,e.textAlign),this.textDecorationColor=TA(A,Wg,(r=e.textDecorationColor)!==null&&r!==void 0?r:e.color),this.textDecorationLine=TA(A,Xg,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=TA(A,Dg,e.textShadow),this.textTransform=TA(A,Tg,e.textTransform),this.transform=TA(A,Og,e.transform),this.transformOrigin=TA(A,Rg,e.transformOrigin),this.visibility=TA(A,Gg,e.visibility),this.webkitTextStrokeColor=TA(A,s2,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=TA(A,o2,e.webkitTextStrokeWidth),this.wordBreak=TA(A,jg,e.wordBreak),this.zIndex=TA(A,Vg,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return gn(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 Je(this.display,4)||Je(this.display,33554432)||Je(this.display,268435456)||Je(this.display,536870912)||Je(this.display,67108864)||Je(this.display,134217728)},t}(),u2=function(){function t(A,e){this.content=TA(A,A2,e.content),this.quotes=TA(A,n2,e.quotes)}return t}(),jl=function(){function t(A,e){this.counterIncrement=TA(A,e2,e.counterIncrement),this.counterReset=TA(A,t2,e.counterReset)}return t}(),TA=function(t,A,e){var r=new Zf,n=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(n);var i=new $f(r.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,we(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 po.parse(t,i.parseComponentValue());case"color":return Bn.parse(t,i.parseComponentValue());case"image":return Su.parse(t,i.parseComponentValue());case"length":var c=i.parseComponentValue();return dn(c)?c:nt;case"length-percentage":var u=i.parseComponentValue();return qe(u)?u:nt;case"time":return ph.parse(t,i.parseComponentValue())}break}},l2="data-html2canvas-debug",f2=function(t){var A=t.getAttribute(l2);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},uu=function(t,A){var e=f2(t);return e===1||A===e},Fr=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,uu(e,3))debugger;this.styles=new c2(A,window.getComputedStyle(e,null)),hu(e)&&(this.styles.animationDuration.some(function(r){return r>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Bo(this.context,e),uu(e,4)&&(this.flags|=16)}return t}(),h2=" ",Vl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",va=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ps=0;Ps<Vl.length;Ps++)va[Vl.charCodeAt(Ps)]=Ps;var B2=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),B=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<e;r+=4)i=va[t.charCodeAt(r)],s=va[t.charCodeAt(r+1)],c=va[t.charCodeAt(r+2)],u=va[t.charCodeAt(r+3)],B[n++]=i<<2|s>>4,B[n++]=(s&15)<<4|c>>2,B[n++]=(c&3)<<6|u&63;return h},g2=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},d2=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},Dn=5,Nu=11,bc=2,p2=Nu-Dn,wh=65536>>Dn,w2=1<<Dn,Lc=w2-1,v2=1024>>Dn,m2=wh+v2,C2=m2,Q2=32,F2=C2+Q2,U2=65536>>Nu,y2=1<<p2,b2=y2-1,ql=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},L2=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},E2=function(t,A){var e=B2(t),r=Array.isArray(e)?d2(e):new Uint32Array(e),n=Array.isArray(e)?g2(e):new Uint16Array(e),i=24,s=ql(n,i/2,r[4]/2),c=r[5]===2?ql(n,(i+r[4])/2):L2(r,Math.ceil((i+r[4])/4));return new I2(r[0],r[1],r[2],r[3],s,c)},I2=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>>Dn],e=(e<<bc)+(A&Lc),this.data[e];if(A<=65535)return e=this.index[wh+(A-55296>>Dn)],e=(e<<bc)+(A&Lc),this.data[e];if(A<this.highStart)return e=F2-U2+(A>>Nu),e=this.index[e],e+=A>>Dn&b2,e=this.index[e],e=(e<<bc)+(A&Lc),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Wl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x2=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ms=0;Ms<Wl.length;Ms++)x2[Wl.charCodeAt(Ms)]=Ms;var H2=1,Ec=2,Ic=3,Xl=4,Jl=5,S2=7,zl=8,xc=9,Hc=10,Yl=11,Zl=12,$l=13,Af=14,Sc=15,N2=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},_2=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},D2=E2(h2),Pt="×",Nc="÷",T2=function(t){return D2.get(t)},O2=function(t,A,e){var r=e-2,n=A[r],i=A[e-1],s=A[e];if(i===Ec&&s===Ic)return Pt;if(i===Ec||i===Ic||i===Xl||s===Ec||s===Ic||s===Xl)return Nc;if(i===zl&&[zl,xc,Yl,Zl].indexOf(s)!==-1||(i===Yl||i===xc)&&(s===xc||s===Hc)||(i===Zl||i===Hc)&&s===Hc||s===$l||s===Jl||s===S2||i===H2)return Pt;if(i===$l&&s===Af){for(;n===Jl;)n=A[--r];if(n===Af)return Pt}if(i===Sc&&s===Sc){for(var c=0;n===Sc;)c++,n=A[--r];if(c%2===0)return Pt}return Nc},P2=function(t){var A=N2(t),e=A.length,r=0,n=0,i=A.map(T2);return{next:function(){if(r>=e)return{done:!0,value:null};for(var s=Pt;r<e&&(s=O2(A,i,++r))===Pt;);if(s!==Pt||r===e){var c=_2.apply(null,A.slice(n,r));return n=r,{value:c,done:!1}}return{done:!0,value:null}}}},M2=function(t){for(var A=P2(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e},K2=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},k2=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=go(r.data).map(function(u){return Pe(u)}),i=0,s={},c=n.every(function(u,h){e.setStart(r,i),e.setEnd(r,i+u.length);var B=e.getBoundingClientRect();i+=u.length;var p=B.x>s.x||B.y>s.y;return s=B,h===0?!0:p});return t.body.removeChild(A),c},R2=function(){return typeof new Image().crossOrigin<"u"},G2=function(){return typeof new XMLHttpRequest().responseType=="string"},j2=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},ef=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},V2=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=lu(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),tf(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",ef(u)?tf(lu(e,e,0,0,h)):Promise.reject(!1)}).then(function(c){return r.drawImage(c,0,0),ef(r.getImageData(0,0,e,e).data)}).catch(function(){return!1})},lu=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},tf=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))})},rt={get SUPPORT_RANGE_BOUNDS(){var t=K2(document);return Object.defineProperty(rt,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=rt.SUPPORT_RANGE_BOUNDS&&k2(document);return Object.defineProperty(rt,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=j2(document);return Object.defineProperty(rt,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?V2(document):Promise.resolve(!1);return Object.defineProperty(rt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=R2();return Object.defineProperty(rt,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=G2();return Object.defineProperty(rt,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(rt,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(rt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Ua=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),q2=function(t,A,e,r){var n=J2(A,e),i=[],s=0;return n.forEach(function(c){if(e.textDecorationLine.length||c.trim().length>0)if(rt.SUPPORT_RANGE_BOUNDS){var u=rf(r,s,c.length).getClientRects();if(u.length>1){var h=_u(c),B=0;h.forEach(function(w){i.push(new Ua(w,kr.fromDOMRectList(t,rf(r,B+s,w.length).getClientRects()))),B+=w.length})}else i.push(new Ua(c,kr.fromDOMRectList(t,u)))}else{var p=r.splitText(c.length);i.push(new Ua(c,W2(t,r))),r=p}else rt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(c.length));s+=c.length}),i},W2=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=Bo(t,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return kr.EMPTY},rf=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},_u=function(t){if(rt.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 M2(t)},X2=function(t,A){if(rt.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 Y2(t,A)},J2=function(t,A){return A.letterSpacing!==0?_u(t):X2(t,A)},z2=[32,160,4961,65792,65793,4153,4241],Y2=function(t,A){for(var e=UB(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=go(s),u="";c.forEach(function(h){z2.indexOf(h)===-1?u+=Pe(h):(u.length&&r.push(u),r.push(Pe(h)),u="")}),u.length&&r.push(u)}};!(n=e.next()).done;)i();return r},Z2=function(){function t(A,e,r){this.text=$2(e.data,r.textTransform),this.textBounds=q2(A,this.text,r,e)}return t}(),$2=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(Ad,ed);case 2:return t.toUpperCase();default:return t}},Ad=/(^|\s|:|-|\(|\))([a-z])/g,ed=function(t,A,e){return t.length>0?A+e.toUpperCase():t},vh=function(t){ar(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}(Fr),mh=function(t){ar(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}(Fr),Ch=function(t){ar(A,t);function A(e,r){var n=t.call(this,e,r)||this,i=new XMLSerializer,s=Bo(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}(Fr),Qh=function(t){ar(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(Fr),fu=function(t){ar(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}(Fr),td=[{type:15,flags:0,unit:"px",number:3}],rd=[{type:16,flags:0,number:50}],nd=function(t){return t.width>t.height?new kr(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new kr(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},id=function(t){var A=t.type===ad?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},io="checkbox",ao="radio",ad="password",nf=707406591,Du=function(t){ar(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=id(r),(n.type===io||n.type===ao)&&(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=nd(n.bounds)),n.type){case io:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=td;break;case ao:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=rd;break}return n}return A}(Fr),Fh=function(t){ar(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}(Fr),Uh=function(t){ar(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(Fr),yh=function(t){ar(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=Lh(e,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?Qa(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Kr.TRANSPARENT,s=r.contentWindow.document.body?Qa(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):Kr.TRANSPARENT;n.backgroundColor=gn(i)?gn(s)?n.styles.backgroundColor:s:i}}catch{}return n}return A}(Fr),sd=["OL","UL","MENU"],zs=function(t,A,e,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,Eh(n)&&n.data.trim().length>0)e.textNodes.push(new Z2(t,n,e.styles));else if(Ui(n))if(Sh(n)&&n.assignedNodes)n.assignedNodes().forEach(function(c){return zs(t,c,e,r)});else{var s=bh(t,n);s.styles.isVisible()&&(od(n,s,r)?s.flags|=4:cd(s.styles)&&(s.flags|=2),sd.indexOf(n.tagName)!==-1&&(s.flags|=8),e.elements.push(s),n.slot,n.shadowRoot?zs(t,n.shadowRoot,s,r):!so(n)&&!Ih(n)&&!oo(n)&&zs(t,n,s,r))}},bh=function(t,A){return Bu(A)?new vh(t,A):xh(A)?new mh(t,A):Ih(A)?new Ch(t,A):ud(A)?new Qh(t,A):ld(A)?new fu(t,A):fd(A)?new Du(t,A):oo(A)?new Fh(t,A):so(A)?new Uh(t,A):Hh(A)?new yh(t,A):new Fr(t,A)},Lh=function(t,A){var e=bh(t,A);return e.flags|=4,zs(t,A,e,e),e},od=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Tu(t)&&e.styles.isTransparent()},cd=function(t){return t.isPositioned()||t.isFloating()},Eh=function(t){return t.nodeType===Node.TEXT_NODE},Ui=function(t){return t.nodeType===Node.ELEMENT_NODE},hu=function(t){return Ui(t)&&typeof t.style<"u"&&!Ys(t)},Ys=function(t){return typeof t.className=="object"},ud=function(t){return t.tagName==="LI"},ld=function(t){return t.tagName==="OL"},fd=function(t){return t.tagName==="INPUT"},hd=function(t){return t.tagName==="HTML"},Ih=function(t){return t.tagName==="svg"},Tu=function(t){return t.tagName==="BODY"},xh=function(t){return t.tagName==="CANVAS"},af=function(t){return t.tagName==="VIDEO"},Bu=function(t){return t.tagName==="IMG"},Hh=function(t){return t.tagName==="IFRAME"},sf=function(t){return t.tagName==="STYLE"},Bd=function(t){return t.tagName==="SCRIPT"},so=function(t){return t.tagName==="TEXTAREA"},oo=function(t){return t.tagName==="SELECT"},Sh=function(t){return t.tagName==="SLOT"},of=function(t){return t.tagName.indexOf("-")>0},gd=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}(),cf={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"]},uf={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},dd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},gi=function(t,A,e,r,n,i){return t<A||t>e?Ia(t,n,i.length>0):r.integers.reduce(function(s,c,u){for(;t>=c;)t-=c,s+=r.values[u];return s},"")+i},Nh=function(t,A,e,r){var n="";do e||t--,n=r(t)+n,t/=A;while(t*A>=A);return n},Oe=function(t,A,e,r,n){var i=e-A+1;return(t<0?"-":"")+(Nh(Math.abs(t),i,r,function(s){return Pe(Math.floor(s%i)+A)})+n)},In=function(t,A,e){e===void 0&&(e=". ");var r=A.length;return Nh(Math.abs(t),r,!1,function(n){return A[Math.floor(n%r)]})+e},mi=1,sn=2,on=4,ma=8,Pr=function(t,A,e,r,n,i){if(t<-9999||t>9999)return Ia(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&&Je(i,mi)&&c!==""?c=A[h]+c:h>1||h===1&&u===0||h===1&&u===1&&Je(i,sn)||h===1&&u===1&&Je(i,on)&&t>100||h===1&&u>1&&Je(i,ma)?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},lf="十百千萬",ff="拾佰仟萬",hf="マイナス",_c="마이너스",Ia=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=Oe(t,48,57,!0,r);return c.length<4?"0"+c:c;case 4:return In(t,"〇一二三四五六七八九",n);case 6:return gi(t,1,3999,cf,3,r).toLowerCase();case 7:return gi(t,1,3999,cf,3,r);case 8:return Oe(t,945,969,!1,r);case 9:return Oe(t,97,122,!1,r);case 10:return Oe(t,65,90,!1,r);case 11:return Oe(t,1632,1641,!0,r);case 12:case 49:return gi(t,1,9999,uf,3,r);case 35:return gi(t,1,9999,uf,3,r).toLowerCase();case 13:return Oe(t,2534,2543,!0,r);case 14:case 30:return Oe(t,6112,6121,!0,r);case 15:return In(t,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return In(t,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Pr(t,"零一二三四五六七八九",lf,"負",n,sn|on|ma);case 47:return Pr(t,"零壹貳參肆伍陸柒捌玖",ff,"負",n,mi|sn|on|ma);case 42:return Pr(t,"零一二三四五六七八九",lf,"负",n,sn|on|ma);case 41:return Pr(t,"零壹贰叁肆伍陆柒捌玖",ff,"负",n,mi|sn|on|ma);case 26:return Pr(t,"〇一二三四五六七八九","十百千万",hf,n,0);case 25:return Pr(t,"零壱弐参四伍六七八九","拾百千万",hf,n,mi|sn|on);case 31:return Pr(t,"영일이삼사오육칠팔구","십백천만",_c,i,mi|sn|on);case 33:return Pr(t,"零一二三四五六七八九","十百千萬",_c,i,0);case 32:return Pr(t,"零壹貳參四五六七八九","拾百千",_c,i,mi|sn|on);case 18:return Oe(t,2406,2415,!0,r);case 20:return gi(t,1,19999,pd,3,r);case 21:return Oe(t,2790,2799,!0,r);case 22:return Oe(t,2662,2671,!0,r);case 22:return gi(t,1,10999,dd,3,r);case 23:return In(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return In(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Oe(t,3302,3311,!0,r);case 28:return In(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return In(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Oe(t,3792,3801,!0,r);case 37:return Oe(t,6160,6169,!0,r);case 38:return Oe(t,4160,4169,!0,r);case 39:return Oe(t,2918,2927,!0,r);case 40:return Oe(t,1776,1785,!0,r);case 43:return Oe(t,3046,3055,!0,r);case 44:return Oe(t,3174,3183,!0,r);case 45:return Oe(t,3664,3673,!0,r);case 46:return Oe(t,3872,3881,!0,r);case 3:default:return Oe(t,48,57,!0,r)}},_h="data-html2canvas-ignore",Bf=function(){function t(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new gd,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=wd(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=Cd(n).then(function(){return gt(r,void 0,void 0,function(){var B,p;return ft(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(yd),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))),B=this.options.onclone,p=this.clonedReferenceElement,typeof p>"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,md(u)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof B=="function"?[2,Promise.resolve().then(function(){return B(u,p)}).then(function(){return n})]:[2,n]}})})});return u.open(),u.write(Fd(document.doctype)+"<html></html>"),Ud(this.referenceElement.ownerDocument,i,s),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),h},t.prototype.createElementClone=function(A){if(uu(A,2))debugger;if(xh(A))return this.createCanvasClone(A);if(af(A))return this.createVideoClone(A);if(sf(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Bu(e)&&(Bu(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),of(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Dc(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){(!Ui(e)||!Bd(e)&&!e.hasAttribute(_h)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Ui(e)||!sf(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(Ui(i)&&Sh(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(Eh(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&Ui(A)&&(hu(A)||Ys(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&&hu(n)&&(this.clonedReferenceElement=n),Tu(n)&&Ed(n);var u=this.counters.parse(new jl(this.context,i)),h=this.resolvePseudoContent(A,n,s,ya.BEFORE);of(A)&&(e=!0),af(A)||this.cloneChildNodes(A,n,e),h&&n.insertBefore(h,n.firstChild);var B=this.resolvePseudoContent(A,n,c,ya.AFTER);return B&&n.appendChild(B),this.counters.pop(u),(i&&(this.options.copyStyles||Ys(A))&&!Hh(A)||e)&&Dc(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(so(A)||oo(A))&&(so(n)||oo(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 jl(this.context,r));var u=new u2(this.context,r),h=c.createElement("html2canvaspseudoelement");Dc(r,h),u.content.forEach(function(p){if(p.type===0)h.appendChild(c.createTextNode(p.value));else if(p.type===22){var w=c.createElement("img");w.src=p.value,w.style.opacity="1",h.appendChild(w)}else if(p.type===18){if(p.name==="attr"){var g=p.values.filter(we);g.length&&h.appendChild(c.createTextNode(A.getAttribute(g[0].value)||""))}else if(p.name==="counter"){var L=p.values.filter(Hi),y=L[0],N=L[1];if(y&&we(y)){var U=i.counters.getCounterValue(y.value),I=N&&we(N)?cu.parse(i.context,N.value):3;h.appendChild(c.createTextNode(Ia(U,I,!1)))}}else if(p.name==="counters"){var j=p.values.filter(Hi),y=j[0],Z=j[1],N=j[2];if(y&&we(y)){var Y=i.counters.getCounterValues(y.value),z=N&&we(N)?cu.parse(i.context,N.value):3,W=Z&&Z.type===0?Z.value:"",T=Y.map(function(H){return Ia(H,z,!1)}).join(W);h.appendChild(c.createTextNode(T))}}}else if(p.type===20)switch(p.value){case"open-quote":h.appendChild(c.createTextNode(Gl(u.quotes,i.quoteDepth++,!0)));break;case"close-quote":h.appendChild(c.createTextNode(Gl(u.quotes,--i.quoteDepth,!1)));break;default:h.appendChild(c.createTextNode(p.value))}}),h.className=gu+" "+du;var B=n===ya.BEFORE?" "+gu:" "+du;return Ys(e)?e.className.baseValue+=B:e.className+=B,h}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),ya;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(ya||(ya={}));var wd=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(_h,"true"),t.body.appendChild(e),e},vd=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},md=function(t){return Promise.all([].slice.call(t.images,0).map(vd))},Cd=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)}})},Qd=["all","d","content"],Dc=function(t,A){for(var e=t.length-1;e>=0;e--){var r=t.item(e);Qd.indexOf(r)===-1&&A.style.setProperty(r,t.getPropertyValue(r))}return A},Fd=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},Ud=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},yd=function(t){var A=t[0],e=t[1],r=t[2];A.scrollLeft=e,A.scrollTop=r},bd=":before",Ld=":after",gu="___html2canvas___pseudoelement_before",du="___html2canvas___pseudoelement_after",gf=`{
    content: "" !important;
    display: none !important;
}`,Ed=function(t){Id(t,"."+gu+bd+gf+`
         .`+du+Ld+gf)},Id=function(t,A){var e=t.ownerDocument;if(e){var r=e.createElement("style");r.textContent=A,t.appendChild(r)}},Dh=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}(),xd=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)||(Oc(A)||_d(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 gt(this,void 0,void 0,function(){var e,r,n,i,s=this;return ft(this,function(c){switch(c.label){case 0:return e=Dh.isSameOrigin(A),r=!Tc(A)&&this._options.useCORS===!0&&rt.SUPPORT_CORS_IMAGES&&!e,n=!Tc(A)&&!e&&!Oc(A)&&typeof this._options.proxy=="string"&&rt.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!Tc(A)&&!Oc(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 B=new Image;B.onload=function(){return u(B)},B.onerror=h,(Dd(i)||r)&&(B.crossOrigin="anonymous"),B.src=i,B.complete===!0&&setTimeout(function(){return u(B)},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=rt.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(c==="text")i(u.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(w){return s(w)},!1),p.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 B=e._options.imageTimeout;u.timeout=B,u.ontimeout=function(){return s("Timed out ("+B+"ms) proxying "+n)}}u.send()})},t}(),Hd=/^data:image\/svg\+xml/i,Sd=/^data:image\/.*;base64,/i,Nd=/^data:image\/.*/i,_d=function(t){return rt.SUPPORT_SVG_DRAWING||!Td(t)},Tc=function(t){return Nd.test(t)},Dd=function(t){return Sd.test(t)},Oc=function(t){return t.substr(0,4)==="blob"},Td=function(t){return t.substr(-3).toLowerCase()==="svg"||Hd.test(t)},HA=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}(),di=function(t,A,e){return new HA(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Ks=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=di(this.start,this.startControl,A),n=di(this.startControl,this.endControl,A),i=di(this.endControl,this.end,A),s=di(r,n,A),c=di(n,i,A),u=di(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}(),Mt=function(t){return t.type===1},Od=function(){function t(A){var e=A.styles,r=A.bounds,n=wa(e.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],c=wa(e.borderTopRightRadius,r.width,r.height),u=c[0],h=c[1],B=wa(e.borderBottomRightRadius,r.width,r.height),p=B[0],w=B[1],g=wa(e.borderBottomLeftRadius,r.width,r.height),L=g[0],y=g[1],N=[];N.push((i+u)/r.width),N.push((L+p)/r.width),N.push((s+y)/r.height),N.push((h+w)/r.height);var U=Math.max.apply(Math,N);U>1&&(i/=U,s/=U,u/=U,h/=U,p/=U,w/=U,L/=U,y/=U);var I=r.width-u,j=r.height-w,Z=r.width-p,Y=r.height-y,z=e.borderTopWidth,W=e.borderRightWidth,T=e.borderBottomWidth,AA=e.borderLeftWidth,uA=ye(e.paddingTop,A.bounds.width),H=ye(e.paddingRight,A.bounds.width),x=ye(e.paddingBottom,A.bounds.width),K=ye(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?Ee(r.left+AA/3,r.top+z/3,i-AA/3,s-z/3,he.TOP_LEFT):new HA(r.left+AA/3,r.top+z/3),this.topRightBorderDoubleOuterBox=i>0||s>0?Ee(r.left+I,r.top+z/3,u-W/3,h-z/3,he.TOP_RIGHT):new HA(r.left+r.width-W/3,r.top+z/3),this.bottomRightBorderDoubleOuterBox=p>0||w>0?Ee(r.left+Z,r.top+j,p-W/3,w-T/3,he.BOTTOM_RIGHT):new HA(r.left+r.width-W/3,r.top+r.height-T/3),this.bottomLeftBorderDoubleOuterBox=L>0||y>0?Ee(r.left+AA/3,r.top+Y,L-AA/3,y-T/3,he.BOTTOM_LEFT):new HA(r.left+AA/3,r.top+r.height-T/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?Ee(r.left+AA*2/3,r.top+z*2/3,i-AA*2/3,s-z*2/3,he.TOP_LEFT):new HA(r.left+AA*2/3,r.top+z*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?Ee(r.left+I,r.top+z*2/3,u-W*2/3,h-z*2/3,he.TOP_RIGHT):new HA(r.left+r.width-W*2/3,r.top+z*2/3),this.bottomRightBorderDoubleInnerBox=p>0||w>0?Ee(r.left+Z,r.top+j,p-W*2/3,w-T*2/3,he.BOTTOM_RIGHT):new HA(r.left+r.width-W*2/3,r.top+r.height-T*2/3),this.bottomLeftBorderDoubleInnerBox=L>0||y>0?Ee(r.left+AA*2/3,r.top+Y,L-AA*2/3,y-T*2/3,he.BOTTOM_LEFT):new HA(r.left+AA*2/3,r.top+r.height-T*2/3),this.topLeftBorderStroke=i>0||s>0?Ee(r.left+AA/2,r.top+z/2,i-AA/2,s-z/2,he.TOP_LEFT):new HA(r.left+AA/2,r.top+z/2),this.topRightBorderStroke=i>0||s>0?Ee(r.left+I,r.top+z/2,u-W/2,h-z/2,he.TOP_RIGHT):new HA(r.left+r.width-W/2,r.top+z/2),this.bottomRightBorderStroke=p>0||w>0?Ee(r.left+Z,r.top+j,p-W/2,w-T/2,he.BOTTOM_RIGHT):new HA(r.left+r.width-W/2,r.top+r.height-T/2),this.bottomLeftBorderStroke=L>0||y>0?Ee(r.left+AA/2,r.top+Y,L-AA/2,y-T/2,he.BOTTOM_LEFT):new HA(r.left+AA/2,r.top+r.height-T/2),this.topLeftBorderBox=i>0||s>0?Ee(r.left,r.top,i,s,he.TOP_LEFT):new HA(r.left,r.top),this.topRightBorderBox=u>0||h>0?Ee(r.left+I,r.top,u,h,he.TOP_RIGHT):new HA(r.left+r.width,r.top),this.bottomRightBorderBox=p>0||w>0?Ee(r.left+Z,r.top+j,p,w,he.BOTTOM_RIGHT):new HA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=L>0||y>0?Ee(r.left,r.top+Y,L,y,he.BOTTOM_LEFT):new HA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?Ee(r.left+AA,r.top+z,Math.max(0,i-AA),Math.max(0,s-z),he.TOP_LEFT):new HA(r.left+AA,r.top+z),this.topRightPaddingBox=u>0||h>0?Ee(r.left+Math.min(I,r.width-W),r.top+z,I>r.width+W?0:Math.max(0,u-W),Math.max(0,h-z),he.TOP_RIGHT):new HA(r.left+r.width-W,r.top+z),this.bottomRightPaddingBox=p>0||w>0?Ee(r.left+Math.min(Z,r.width-AA),r.top+Math.min(j,r.height-T),Math.max(0,p-W),Math.max(0,w-T),he.BOTTOM_RIGHT):new HA(r.left+r.width-W,r.top+r.height-T),this.bottomLeftPaddingBox=L>0||y>0?Ee(r.left+AA,r.top+Math.min(Y,r.height-T),Math.max(0,L-AA),Math.max(0,y-T),he.BOTTOM_LEFT):new HA(r.left+AA,r.top+r.height-T),this.topLeftContentBox=i>0||s>0?Ee(r.left+AA+K,r.top+z+uA,Math.max(0,i-(AA+K)),Math.max(0,s-(z+uA)),he.TOP_LEFT):new HA(r.left+AA+K,r.top+z+uA),this.topRightContentBox=u>0||h>0?Ee(r.left+Math.min(I,r.width+AA+K),r.top+z+uA,I>r.width+AA+K?0:u-AA+K,h-(z+uA),he.TOP_RIGHT):new HA(r.left+r.width-(W+H),r.top+z+uA),this.bottomRightContentBox=p>0||w>0?Ee(r.left+Math.min(Z,r.width-(AA+K)),r.top+Math.min(j,r.height+z+uA),Math.max(0,p-(W+H)),w-(T+x),he.BOTTOM_RIGHT):new HA(r.left+r.width-(W+H),r.top+r.height-(T+x)),this.bottomLeftContentBox=L>0||y>0?Ee(r.left+AA+K,r.top+Y,Math.max(0,L-(AA+K)),y-(T+x),he.BOTTOM_LEFT):new HA(r.left+AA+K,r.top+r.height-(T+x))}return t}(),he;(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"})(he||(he={}));var Ee=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 he.TOP_LEFT:return new Ks(new HA(t,h),new HA(t,h-c),new HA(u-s,A),new HA(u,A));case he.TOP_RIGHT:return new Ks(new HA(t,A),new HA(t+s,A),new HA(u,h-c),new HA(u,h));case he.BOTTOM_RIGHT:return new Ks(new HA(u,A),new HA(u,A+c),new HA(t+s,h),new HA(t,h));case he.BOTTOM_LEFT:default:return new Ks(new HA(u,h),new HA(u-s,h),new HA(t,A+c),new HA(t,A))}},co=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Pd=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},uo=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Md=function(){function t(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}return t}(),ks=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),Kd=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),kd=function(t){return t.type===0},Th=function(t){return t.type===1},Rd=function(t){return t.type===2},df=function(t,A){return t.length===A.length?t.some(function(e,r){return e===A[r]}):!1},Gd=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})},Oh=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),Ph=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Od(this.container),this.container.styles.opacity<1&&this.effects.push(new Kd(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 Md(r,n,i))}if(this.container.styles.overflowX!==0){var s=co(this.curves),c=uo(this.curves);df(s,c)?this.effects.push(new ks(s,6)):(this.effects.push(new ks(s,2)),this.effects.push(new ks(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!Th(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=co(r.curves),c=uo(r.curves);df(s,c)||n.unshift(new ks(c,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(u){return Je(u.target,A)})},t}(),pu=function(t,A,e,r){t.container.elements.forEach(function(n){var i=Je(n.flags,4),s=Je(n.flags,2),c=new Ph(n,t);Je(n.styles.display,2048)&&r.push(c);var u=Je(n.flags,8)?[]:r;if(i||s){var h=i||n.styles.isPositioned()?e:A,B=new Oh(c);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var p=n.styles.zIndex.order;if(p<0){var w=0;h.negativeZIndex.some(function(L,y){return p>L.element.container.styles.zIndex.order?(w=y,!1):w>0}),h.negativeZIndex.splice(w,0,B)}else if(p>0){var g=0;h.positiveZIndex.some(function(L,y){return p>=L.element.container.styles.zIndex.order?(g=y+1,!1):g>0}),h.positiveZIndex.splice(g,0,B)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(B)}else n.styles.isFloating()?h.nonPositionedFloats.push(B):h.nonPositionedInlineLevel.push(B);pu(c,B,i?B:e,u)}else n.styles.isInlineLevel()?A.inlineLevel.push(c):A.nonInlineLevel.push(c),pu(c,A,e,u);Je(n.flags,8)&&Mh(n,u)})},Mh=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 Qh&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Ia(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},jd=function(t){var A=new Ph(t,null),e=new Oh(A),r=[];return pu(A,e,e,r),Mh(A.container,r),e},pf=function(t,A){switch(A){case 0:return kt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return kt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return kt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return kt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Vd=function(t,A){switch(A){case 0:return kt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return kt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return kt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return kt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},qd=function(t,A){switch(A){case 0:return kt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return kt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return kt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return kt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Wd=function(t,A){switch(A){case 0:return Rs(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Rs(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Rs(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Rs(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Rs=function(t,A){var e=[];return Mt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Mt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},kt=function(t,A,e,r){var n=[];return Mt(t)?n.push(t.subdivide(.5,!1)):n.push(t),Mt(e)?n.push(e.subdivide(.5,!0)):n.push(e),Mt(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Mt(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},Kh=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},lo=function(t){var A=t.styles,e=t.bounds,r=ye(A.paddingLeft,e.width),n=ye(A.paddingRight,e.width),i=ye(A.paddingTop,e.width),s=ye(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))},Xd=function(t,A){return t===0?A.bounds:t===2?lo(A):Kh(A)},Jd=function(t,A){return t===0?A.bounds:t===2?lo(A):Kh(A)},Pc=function(t,A,e){var r=Xd(Ci(t.styles.backgroundOrigin,A),t),n=Jd(Ci(t.styles.backgroundClip,A),t),i=zd(Ci(t.styles.backgroundSize,A),e,r),s=i[0],c=i[1],u=wa(Ci(t.styles.backgroundPosition,A),r.width-s,r.height-c),h=Yd(Ci(t.styles.backgroundRepeat,A),u,i,r,n),B=Math.round(r.left+u[0]),p=Math.round(r.top+u[1]);return[h,B,p,s,c]},pi=function(t){return we(t)&&t.value===bi.AUTO},Gs=function(t){return typeof t=="number"},zd=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(qe(s)&&c&&qe(c))return[ye(s,e.width),ye(c,e.height)];var u=Gs(i);if(we(s)&&(s.value===bi.CONTAIN||s.value===bi.COVER)){if(Gs(i)){var h=e.width/e.height;return h<i!=(s.value===bi.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var B=Gs(r),p=Gs(n),w=B||p;if(pi(s)&&(!c||pi(c))){if(B&&p)return[r,n];if(!u&&!w)return[e.width,e.height];if(w&&u){var g=B?r:n*i,L=p?n:r/i;return[g,L]}var y=B?r:e.width,N=p?n:e.height;return[y,N]}if(u){var U=0,I=0;return qe(s)?U=ye(s,e.width):qe(c)&&(I=ye(c,e.height)),pi(s)?U=I*i:(!c||pi(c))&&(I=U/i),[U,I]}var j=null,Z=null;if(qe(s)?j=ye(s,e.width):c&&qe(c)&&(Z=ye(c,e.height)),j!==null&&(!c||pi(c))&&(Z=B&&p?j/r*n:e.height),Z!==null&&pi(s)&&(j=B&&p?Z/n*r:e.width),j!==null&&Z!==null)return[j,Z];throw new Error("Unable to calculate background-size for element")},Ci=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},Yd=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 HA(Math.round(r.left),Math.round(r.top+s)),new HA(Math.round(r.left+r.width),Math.round(r.top+s)),new HA(Math.round(r.left+r.width),Math.round(u+r.top+s)),new HA(Math.round(r.left),Math.round(u+r.top+s))];case 3:return[new HA(Math.round(r.left+i),Math.round(r.top)),new HA(Math.round(r.left+i+c),Math.round(r.top)),new HA(Math.round(r.left+i+c),Math.round(r.height+r.top)),new HA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new HA(Math.round(r.left+i),Math.round(r.top+s)),new HA(Math.round(r.left+i+c),Math.round(r.top+s)),new HA(Math.round(r.left+i+c),Math.round(r.top+s+u)),new HA(Math.round(r.left+i),Math.round(r.top+s+u))];default:return[new HA(Math.round(n.left),Math.round(n.top)),new HA(Math.round(n.left+n.width),Math.round(n.top)),new HA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new HA(Math.round(n.left),Math.round(n.height+n.top))]}},Zd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",wf="Hidden Text",$d=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=Zd,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(wf)),r.appendChild(i),r.appendChild(n);var c=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(wf)),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}(),kh=function(){function t(A,e){this.context=A,this.options=e}return t}(),Ap=1e4,ep=function(t){ar(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 $d(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(),Rd(e)&&(this.ctx.globalAlpha=e.opacity),kd(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)),Th(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 gt(this,void 0,void 0,function(){var r;return ft(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 gt(this,void 0,void 0,function(){return ft(this,function(r){switch(r.label){case 0:if(Je(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=_u(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=ap(e.fontFamily).join(", "),i=Na(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 gt(this,void 0,void 0,function(){var n,i,s,c,u,h,B,p,w=this;return ft(this,function(g){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,B=u.middle,p=r.paintOrder,e.textBounds.forEach(function(L){p.forEach(function(y){switch(y){case 0:w.ctx.fillStyle=$e(r.color),w.renderTextWithLetterSpacing(L,r.letterSpacing,h);var N=r.textShadow;N.length&&L.text.trim().length&&(N.slice(0).reverse().forEach(function(U){w.ctx.shadowColor=$e(U.color),w.ctx.shadowOffsetX=U.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=U.offsetY.number*w.options.scale,w.ctx.shadowBlur=U.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=$e(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(U){switch(U){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+B),L.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&L.text.trim().length&&(w.ctx.strokeStyle=$e(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=lo(e),s=uo(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 gt(this,void 0,void 0,function(){var r,n,i,s,c,u,I,I,h,B,p,w,Z,g,L,Y,y,N,U,I,j,Z,Y;return ft(this,function(z){switch(z.label){case 0:this.applyEffects(e.getEffects(4)),r=e.container,n=e.curves,i=r.styles,s=0,c=r.textNodes,z.label=1;case 1:return s<c.length?(u=c[s],[4,this.renderTextNode(u,i)]):[3,4];case 2:z.sent(),z.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof vh))return[3,8];z.label=5;case 5:return z.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return I=z.sent(),this.renderReplacedElement(r,n,I),[3,8];case 7:return z.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof mh&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Ch))return[3,12];z.label=9;case 9:return z.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return I=z.sent(),this.renderReplacedElement(r,n,I),[3,12];case 11:return z.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof yh&&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:B=z.sent(),r.width&&r.height&&this.ctx.drawImage(B,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),z.label=14;case 14:if(r instanceof Du&&(p=Math.min(r.bounds.width,r.bounds.height),r.type===io?r.checked&&(this.ctx.save(),this.path([new HA(r.bounds.left+p*.39363,r.bounds.top+p*.79),new HA(r.bounds.left+p*.16,r.bounds.top+p*.5549),new HA(r.bounds.left+p*.27347,r.bounds.top+p*.44071),new HA(r.bounds.left+p*.39694,r.bounds.top+p*.5649),new HA(r.bounds.left+p*.72983,r.bounds.top+p*.23),new HA(r.bounds.left+p*.84,r.bounds.top+p*.34085),new HA(r.bounds.left+p*.39363,r.bounds.top+p*.79)]),this.ctx.fillStyle=$e(nf),this.ctx.fill(),this.ctx.restore()):r.type===ao&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+p/2,r.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=$e(nf),this.ctx.fill(),this.ctx.restore())),tp(r)&&r.value.length){switch(w=this.createFontStyle(i),Z=w[0],g=w[1],L=this.fontMetrics.getMetrics(Z,g).baseline,this.ctx.font=Z,this.ctx.fillStyle=$e(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=np(r.styles.textAlign),Y=lo(r),y=0,r.styles.textAlign){case 1:y+=Y.width/2;break;case 2:y+=Y.width;break}N=Y.add(y,0,0,-Y.height/2+1),this.ctx.save(),this.path([new HA(Y.left,Y.top),new HA(Y.left+Y.width,Y.top),new HA(Y.left+Y.width,Y.top+Y.height),new HA(Y.left,Y.top+Y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ua(r.value,N),i.letterSpacing,L),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Je(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(U=r.styles.listStyleImage,U.type!==0)return[3,18];I=void 0,j=U.url,z.label=15;case 15:return z.trys.push([15,17,,18]),[4,this.context.cache.match(j)];case 16:return I=z.sent(),this.ctx.drawImage(I,r.bounds.left-(I.width+10),r.bounds.top),[3,18];case 17:return z.sent(),this.context.logger.error("Error loading list-style-image "+j),[3,18];case 18:return[3,20];case 19:e.listValue&&r.styles.listStyleType!==-1&&(Z=this.createFontStyle(i)[0],this.ctx.font=Z,this.ctx.fillStyle=$e(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Y=new kr(r.bounds.left,r.bounds.top+ye(r.styles.paddingTop,r.bounds.width),r.bounds.width,kl(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ua(e.listValue,Y),i.letterSpacing,kl(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),z.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return gt(this,void 0,void 0,function(){var r,n,U,i,s,U,c,u,U,h,B,U,p,w,U,g,L,U,y,N,U;return ft(this,function(I){switch(I.label){case 0:if(Je(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:I.sent(),r=0,n=e.negativeZIndex,I.label=2;case 2:return r<n.length?(U=n[r],[4,this.renderStack(U)]):[3,5];case 3:I.sent(),I.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:I.sent(),i=0,s=e.nonInlineLevel,I.label=7;case 7:return i<s.length?(U=s[i],[4,this.renderNode(U)]):[3,10];case 8:I.sent(),I.label=9;case 9:return i++,[3,7];case 10:c=0,u=e.nonPositionedFloats,I.label=11;case 11:return c<u.length?(U=u[c],[4,this.renderStack(U)]):[3,14];case 12:I.sent(),I.label=13;case 13:return c++,[3,11];case 14:h=0,B=e.nonPositionedInlineLevel,I.label=15;case 15:return h<B.length?(U=B[h],[4,this.renderStack(U)]):[3,18];case 16:I.sent(),I.label=17;case 17:return h++,[3,15];case 18:p=0,w=e.inlineLevel,I.label=19;case 19:return p<w.length?(U=w[p],[4,this.renderNode(U)]):[3,22];case 20:I.sent(),I.label=21;case 21:return p++,[3,19];case 22:g=0,L=e.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return g<L.length?(U=L[g],[4,this.renderStack(U)]):[3,26];case 24:I.sent(),I.label=25;case 25:return g++,[3,23];case 26:y=0,N=e.positiveZIndex,I.label=27;case 27:return y<N.length?(U=N[y],[4,this.renderStack(U)]):[3,30];case 28:I.sent(),I.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=Mt(n)?n.start:n;i===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Mt(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 gt(this,void 0,void 0,function(){var r,n,i,s,c,u;return ft(this,function(h){switch(h.label){case 0:r=e.styles.backgroundImage.length-1,n=function(B){var p,w,g,uA,nA,cA,K,P,T,L,uA,nA,cA,K,P,y,N,U,I,j,Z,Y,z,W,T,AA,uA,H,x,K,P,sA,nA,cA,eA,hA,fA,UA,Q,_,O,R;return ft(this,function(X){switch(X.label){case 0:if(B.type!==0)return[3,5];p=void 0,w=B.url,X.label=1;case 1:return X.trys.push([1,3,,4]),[4,i.context.cache.match(w)];case 2:return p=X.sent(),[3,4];case 3:return X.sent(),i.context.logger.error("Error loading background-image "+w),[3,4];case 4:return p&&(g=Pc(e,r,[p.width,p.height,p.width/p.height]),uA=g[0],nA=g[1],cA=g[2],K=g[3],P=g[4],T=i.ctx.createPattern(i.resizeImage(p,K,P),"repeat"),i.renderRepeat(uA,T,nA,cA)),[3,6];case 5:k1(B)?(L=Pc(e,r,[null,null,null]),uA=L[0],nA=L[1],cA=L[2],K=L[3],P=L[4],y=T1(B.angle,K,P),N=y[0],U=y[1],I=y[2],j=y[3],Z=y[4],Y=document.createElement("canvas"),Y.width=K,Y.height=P,z=Y.getContext("2d"),W=z.createLinearGradient(U,j,I,Z),Ml(B.stops,N).forEach(function(iA){return W.addColorStop(iA.stop,$e(iA.color))}),z.fillStyle=W,z.fillRect(0,0,K,P),K>0&&P>0&&(T=i.ctx.createPattern(Y,"repeat"),i.renderRepeat(uA,T,nA,cA))):R1(B)&&(AA=Pc(e,r,[null,null,null]),uA=AA[0],H=AA[1],x=AA[2],K=AA[3],P=AA[4],sA=B.position.length===0?[Hu]:B.position,nA=ye(sA[0],K),cA=ye(sA[sA.length-1],P),eA=O1(B,nA,cA,K,P),hA=eA[0],fA=eA[1],hA>0&&fA>0&&(UA=i.ctx.createRadialGradient(H+nA,x+cA,0,H+nA,x+cA,hA),Ml(B.stops,hA*2).forEach(function(iA){return UA.addColorStop(iA.stop,$e(iA.color))}),i.path(uA),i.ctx.fillStyle=UA,hA!==fA?(Q=e.bounds.left+.5*e.bounds.width,_=e.bounds.top+.5*e.bounds.height,O=fA/hA,R=1/O,i.ctx.save(),i.ctx.translate(Q,_),i.ctx.transform(1,0,0,O,0,0),i.ctx.translate(-Q,-_),i.ctx.fillRect(H,R*(x-_)+_,K,P*R),i.ctx.restore()):i.ctx.fill())),X.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 gt(this,void 0,void 0,function(){return ft(this,function(i){return this.path(pf(n,r)),this.ctx.fillStyle=$e(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,r,n,i){return gt(this,void 0,void 0,function(){var s,c;return ft(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=Vd(i,n),this.path(s),this.ctx.fillStyle=$e(e),this.ctx.fill(),c=qd(i,n),this.path(c),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return gt(this,void 0,void 0,function(){var r,n,i,s,c,u,h,B,p=this;return ft(this,function(w){switch(w.label){case 0:return this.applyEffects(e.getEffects(2)),r=e.container.styles,n=!gn(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=rp(Ci(r.backgroundClip,0),e.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),gn(r.backgroundColor)||(this.ctx.fillStyle=$e(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(g){p.ctx.save();var L=co(e.curves),y=g.inset?0:Ap,N=Gd(L,-y+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(p.path(L),p.ctx.clip(),p.mask(N)):(p.mask(L),p.ctx.clip(),p.path(N)),p.ctx.shadowOffsetX=g.offsetX.number+y,p.ctx.shadowOffsetY=g.offsetY.number,p.ctx.shadowColor=$e(g.color),p.ctx.shadowBlur=g.blur.number,p.ctx.fillStyle=g.inset?$e(g.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),w.label=2;case 2:c=0,u=0,h=i,w.label=3;case 3:return u<h.length?(B=h[u],B.style!==0&&!gn(B.color)&&B.width>0?B.style!==2?[3,5]:[4,this.renderDashedDottedBorder(B.color,B.width,c,e.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return B.style!==3?[3,7]:[4,this.renderDashedDottedBorder(B.color,B.width,c,e.curves,3)];case 6:return w.sent(),[3,11];case 7:return B.style!==4?[3,9]:[4,this.renderDoubleBorder(B.color,B.width,c,e.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(B.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 gt(this,void 0,void 0,function(){var c,u,h,B,p,w,g,L,y,N,U,I,j,Z,Y,z,Y,z;return ft(this,function(W){return this.ctx.save(),c=Wd(i,n),u=pf(i,n),s===2&&(this.path(u),this.ctx.clip()),Mt(u[0])?(h=u[0].start.x,B=u[0].start.y):(h=u[0].x,B=u[0].y),Mt(u[1])?(p=u[1].end.x,w=u[1].end.y):(p=u[1].x,w=u[1].y),n===0||n===2?g=Math.abs(h-p):g=Math.abs(B-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),N=!0,g<=L*2?N=!1:g<=L*2+y?(U=g/(2*L+y),L*=U,y*=U):(I=Math.floor((g+y)/(L+y)),j=(g-I*L)/(I-1),Z=(g-(I+1)*L)/I,y=Z<=0||Math.abs(y-j)<Math.abs(y-Z)?j:Z),N&&(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=$e(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Mt(u[0])&&(Y=u[3],z=u[0],this.ctx.beginPath(),this.formatPath([new HA(Y.end.x,Y.end.y),new HA(z.start.x,z.start.y)]),this.ctx.stroke()),Mt(u[1])&&(Y=u[1],z=u[2],this.ctx.beginPath(),this.formatPath([new HA(Y.end.x,Y.end.y),new HA(z.start.x,z.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return gt(this,void 0,void 0,function(){var r;return ft(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=$e(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=jd(e),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(kh),tp=function(t){return t instanceof Uh||t instanceof Fh?!0:t instanceof Du&&t.type!==ao&&t.type!==io},rp=function(t,A){switch(t){case 0:return co(A);case 2:return Pd(A);case 1:default:return uo(A)}},np=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ip=["-apple-system","system-ui"],ap=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return ip.indexOf(A)===-1}):t},sp=function(t){ar(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 gt(this,void 0,void 0,function(){var r,n;return ft(this,function(i){switch(i.label){case 0:return r=lu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,op(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=$e(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}(kh),op=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))})},cp=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,Cs([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,Cs([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,Cs([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,Cs([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),up=function(){function t(A,e){var r;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new cp({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new xd(this,A)}return t.instanceCount=1,t}(),Rh=function(t,A){return A===void 0&&(A={}),lp(t,A)};typeof window<"u"&&Dh.setContext(window);var lp=function(t,A){return gt(void 0,void 0,void 0,function(){var e,r,n,i,s,c,u,h,B,p,w,g,L,y,N,U,I,j,Z,Y,W,z,W,T,AA,uA,H,x,K,P,sA,nA,cA,eA,hA,fA,UA,Q,_,O;return ft(this,function(R){switch(R.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:(T=A.allowTaint)!==null&&T!==void 0?T:!1,imageTimeout:(AA=A.imageTimeout)!==null&&AA!==void 0?AA:15e3,proxy:A.proxy,useCORS:(uA=A.useCORS)!==null&&uA!==void 0?uA:!1},i=zc({logging:(H=A.logging)!==null&&H!==void 0?H:!0,cache:A.cache},n),s={windowWidth:(x=A.windowWidth)!==null&&x!==void 0?x:r.innerWidth,windowHeight:(K=A.windowHeight)!==null&&K!==void 0?K:r.innerHeight,scrollX:(P=A.scrollX)!==null&&P!==void 0?P:r.pageXOffset,scrollY:(sA=A.scrollY)!==null&&sA!==void 0?sA:r.pageYOffset},c=new kr(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),u=new up(i,c),h=(nA=A.foreignObjectRendering)!==null&&nA!==void 0?nA:!1,B={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),p=new Bf(u,t,B),w=p.clonedReferenceElement,w?[4,p.toIFrame(e,c)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=R.sent(),L=Tu(w)||hd(w)?G0(w.ownerDocument):Bo(u,w),y=L.width,N=L.height,U=L.left,I=L.top,j=fp(u,w,A.backgroundColor),Z={canvas:A.canvas,backgroundColor:j,scale:(hA=(eA=A.scale)!==null&&eA!==void 0?eA:r.devicePixelRatio)!==null&&hA!==void 0?hA:1,x:((fA=A.x)!==null&&fA!==void 0?fA:0)+U,y:((UA=A.y)!==null&&UA!==void 0?UA:0)+I,width:(Q=A.width)!==null&&Q!==void 0?Q:Math.ceil(y),height:(_=A.height)!==null&&_!==void 0?_:Math.ceil(N)},h?(u.logger.debug("Document cloned, using foreign object rendering"),W=new sp(u,Z),[4,W.render(w)]):[3,3];case 2:return Y=R.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+U+","+I+" with size "+y+"x"+N+" using computed rendering"),u.logger.debug("Starting DOM parsing"),z=Lh(u,w),j===z.styles.backgroundColor&&(z.styles.backgroundColor=Kr.TRANSPARENT),u.logger.debug("Starting renderer for element at "+Z.x+","+Z.y+" with size "+Z.width+"x"+Z.height),W=new ep(u,Z),[4,W.render(z)];case 4:Y=R.sent(),R.label=5;case 5:return(!((O=A.removeContainer)!==null&&O!==void 0)||O)&&(Bf.destroy(g)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,Y]}})})},fp=function(t,A,e){var r=A.ownerDocument,n=r.documentElement?Qa(t,getComputedStyle(r.documentElement).backgroundColor):Kr.TRANSPARENT,i=r.body?Qa(t,getComputedStyle(r.body).backgroundColor):Kr.TRANSPARENT,s=typeof e=="string"?Qa(t,e):e===null?Kr.TRANSPARENT:4294967295;return A===r.documentElement?gn(n)?gn(i)?s:i:n:s};const hp=Object.freeze(Object.defineProperty({__proto__:null,default:Rh},Symbol.toStringTag,{value:"Module"}));var Ut=Uint8Array,dt=Uint16Array,xa=Uint32Array,yo=new Ut([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]),bo=new Ut([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]),wu=new Ut([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gh=function(t,A){for(var e=new dt(31),r=0;r<31;++r)e[r]=A+=1<<t[r-1];for(var n=new xa(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[e,n]},jh=Gh(yo,2),Vh=jh[0],vu=jh[1];Vh[28]=258,vu[258]=28;var qh=Gh(bo,0),Bp=qh[0],vf=qh[1],mu=new dt(32768);for(var be=0;be<32768;++be){var nn=(be&43690)>>>1|(be&21845)<<1;nn=(nn&52428)>>>2|(nn&13107)<<2,nn=(nn&61680)>>>4|(nn&3855)<<4,mu[be]=((nn&65280)>>>8|(nn&255)<<8)>>>1}var Cr=function(t,A,e){for(var r=t.length,n=0,i=new dt(A);n<r;++n)++i[t[n]-1];var s=new dt(A);for(n=0;n<A;++n)s[n]=s[n-1]+i[n-1]<<1;var c;if(e){c=new dt(1<<A);var u=15-A;for(n=0;n<r;++n)if(t[n])for(var h=n<<4|t[n],B=A-t[n],p=s[t[n]-1]++<<B,w=p|(1<<B)-1;p<=w;++p)c[mu[p]>>>u]=h}else for(c=new dt(r),n=0;n<r;++n)c[n]=mu[s[t[n]-1]++]>>>15-t[n];return c},pn=new Ut(288);for(var be=0;be<144;++be)pn[be]=8;for(var be=144;be<256;++be)pn[be]=9;for(var be=256;be<280;++be)pn[be]=7;for(var be=280;be<288;++be)pn[be]=8;var Ha=new Ut(32);for(var be=0;be<32;++be)Ha[be]=5;var gp=Cr(pn,9,0),dp=Cr(pn,9,1),pp=Cr(Ha,5,0),wp=Cr(Ha,5,1),Mc=function(t){for(var A=t[0],e=1;e<t.length;++e)t[e]>A&&(A=t[e]);return A},rr=function(t,A,e){var r=A/8>>0;return(t[r]|t[r+1]<<8)>>>(A&7)&e},Kc=function(t,A){var e=A/8>>0;return(t[e]|t[e+1]<<8|t[e+2]<<16)>>>(A&7)},Ou=function(t){return(t/8>>0)+(t&7&&1)},Wh=function(t,A,e){(e==null||e>t.length)&&(e=t.length);var r=new(t instanceof dt?dt:t instanceof xa?xa:Ut)(e-A);return r.set(t.subarray(A,e)),r},vp=function(t,A,e){var r=t.length,n=!A||e,i=!e||e.i;e||(e={}),A||(A=new Ut(r*3));var s=function(X){var iA=A.length;if(X>iA){var aA=new Ut(Math.max(iA*2,X));aA.set(A),A=aA}},c=e.f||0,u=e.p||0,h=e.b||0,B=e.l,p=e.d,w=e.m,g=e.n,L=r*8;do{if(!B){e.f=c=rr(t,u,1);var y=rr(t,u+1,3);if(u+=3,y)if(y==1)B=dp,p=wp,w=9,g=5;else if(y==2){var j=rr(t,u,31)+257,Z=rr(t,u+10,15)+4,Y=j+rr(t,u+5,31)+1;u+=14;for(var z=new Ut(Y),W=new Ut(19),T=0;T<Z;++T)W[wu[T]]=rr(t,u+T*3,7);u+=Z*3;var AA=Mc(W),uA=(1<<AA)-1;if(!i&&u+Y*(AA+7)>L)break;for(var H=Cr(W,AA,1),T=0;T<Y;){var x=H[rr(t,u,uA)];u+=x&15;var N=x>>>4;if(N<16)z[T++]=N;else{var K=0,P=0;for(N==16?(P=3+rr(t,u,3),u+=2,K=z[T-1]):N==17?(P=3+rr(t,u,7),u+=3):N==18&&(P=11+rr(t,u,127),u+=7);P--;)z[T++]=K}}var sA=z.subarray(0,j),nA=z.subarray(j);w=Mc(sA),g=Mc(nA),B=Cr(sA,w,1),p=Cr(nA,g,1)}else throw"invalid block type";else{var N=Ou(u)+4,U=t[N-4]|t[N-3]<<8,I=N+U;if(I>r){if(i)throw"unexpected EOF";break}n&&s(h+U),A.set(t.subarray(N,I),h),e.b=h+=U,e.p=u=I*8;continue}if(u>L)throw"unexpected EOF"}n&&s(h+131072);for(var cA=(1<<w)-1,eA=(1<<g)-1,hA=w+g+18;i||u+hA<L;){var K=B[Kc(t,u)&cA],fA=K>>>4;if(u+=K&15,u>L)throw"unexpected EOF";if(!K)throw"invalid length/literal";if(fA<256)A[h++]=fA;else if(fA==256){B=null;break}else{var UA=fA-254;if(fA>264){var T=fA-257,Q=yo[T];UA=rr(t,u,(1<<Q)-1)+Vh[T],u+=Q}var _=p[Kc(t,u)&eA],O=_>>>4;if(!_)throw"invalid distance";u+=_&15;var nA=Bp[O];if(O>3){var Q=bo[O];nA+=Kc(t,u)&(1<<Q)-1,u+=Q}if(u>L)throw"unexpected EOF";n&&s(h+131072);for(var R=h+UA;h<R;h+=4)A[h]=A[h-nA],A[h+1]=A[h+1-nA],A[h+2]=A[h+2-nA],A[h+3]=A[h+3-nA];h=R}}e.l=B,e.p=u,e.b=h,B&&(c=1,e.m=w,e.d=p,e.n=g)}while(!c);return h==A.length?A:Wh(A,0,h)},Mr=function(t,A,e){e<<=A&7;var r=A/8>>0;t[r]|=e,t[r+1]|=e>>>8},fa=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},kc=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[new Ut(0),0];if(n==1){var s=new Ut(e[0].s+1);return s[e[0].s]=1,[s,1]}e.sort(function(Y,z){return Y.f-z.f}),e.push({s:-1,f:25001});var c=e[0],u=e[1],h=0,B=1,p=2;for(e[0]={s:-1,f:c.f+u.f,l:c,r:u};B!=n-1;)c=e[e[h].f<e[p].f?h++:p++],u=e[h!=B&&e[h].f<e[p].f?h++:p++],e[B++]={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 g=new dt(w+1),L=Cu(e[B-1],g,0);if(L>A){var r=0,y=0,N=L-A,U=1<<N;for(i.sort(function(z,W){return g[W.s]-g[z.s]||z.f-W.f});r<n;++r){var I=i[r].s;if(g[I]>A)y+=U-(1<<L-g[I]),g[I]=A;else break}for(y>>>=N;y>0;){var j=i[r].s;g[j]<A?y-=1<<A-g[j]++-1:++r}for(;r>=0&&y;--r){var Z=i[r].s;g[Z]==A&&(--g[Z],++y)}L=A}return[new Ut(g),L]},Cu=function(t,A,e){return t.s==-1?Math.max(Cu(t.l,A,e+1),Cu(t.r,A,e+1)):A[t.s]=e},mf=function(t){for(var A=t.length;A&&!t[--A];);for(var e=new dt(++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[e.subarray(0,r),A]},ha=function(t,A){for(var e=0,r=0;r<A.length;++r)e+=t[r]*A[r];return e},Qu=function(t,A,e){var r=e.length,n=Ou(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},Cf=function(t,A,e,r,n,i,s,c,u,h,B){Mr(A,B++,e),++n[256];for(var p=kc(n,15),w=p[0],g=p[1],L=kc(i,15),y=L[0],N=L[1],U=mf(w),I=U[0],j=U[1],Z=mf(y),Y=Z[0],z=Z[1],W=new dt(19),T=0;T<I.length;++T)W[I[T]&31]++;for(var T=0;T<Y.length;++T)W[Y[T]&31]++;for(var AA=kc(W,7),uA=AA[0],H=AA[1],x=19;x>4&&!uA[wu[x-1]];--x);var K=h+5<<3,P=ha(n,pn)+ha(i,Ha)+s,sA=ha(n,w)+ha(i,y)+s+14+3*x+ha(W,uA)+(2*W[16]+3*W[17]+7*W[18]);if(K<=P&&K<=sA)return Qu(A,B,t.subarray(u,u+h));var nA,cA,eA,hA;if(Mr(A,B,1+(sA<P)),B+=2,sA<P){nA=Cr(w,g,0),cA=w,eA=Cr(y,N,0),hA=y;var fA=Cr(uA,H,0);Mr(A,B,j-257),Mr(A,B+5,z-1),Mr(A,B+10,x-4),B+=14;for(var T=0;T<x;++T)Mr(A,B+3*T,uA[wu[T]]);B+=3*x;for(var UA=[I,Y],Q=0;Q<2;++Q)for(var _=UA[Q],T=0;T<_.length;++T){var O=_[T]&31;Mr(A,B,fA[O]),B+=uA[O],O>15&&(Mr(A,B,_[T]>>>5&127),B+=_[T]>>>12)}}else nA=gp,cA=pn,eA=pp,hA=Ha;for(var T=0;T<c;++T)if(r[T]>255){var O=r[T]>>>18&31;fa(A,B,nA[O+257]),B+=cA[O+257],O>7&&(Mr(A,B,r[T]>>>23&31),B+=yo[O]);var R=r[T]&31;fa(A,B,eA[R]),B+=hA[R],R>3&&(fa(A,B,r[T]>>>5&8191),B+=bo[R])}else fa(A,B,nA[r[T]]),B+=cA[r[T]];return fa(A,B,nA[256]),B+cA[256]},mp=new xa([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Cp=function(t,A,e,r,n,i){var s=t.length,c=new Ut(r+s+5*(1+Math.floor(s/7e3))+n),u=c.subarray(r,c.length-n),h=0;if(!A||s<8)for(var B=0;B<=s;B+=65535){var p=B+65535;p<s?h=Qu(u,h,t.subarray(B,p)):(u[B]=i,h=Qu(u,h,t.subarray(B,s)))}else{for(var w=mp[A-1],g=w>>>13,L=w&8191,y=(1<<e)-1,N=new dt(32768),U=new dt(y+1),I=Math.ceil(e/3),j=2*I,Z=function(GA){return(t[GA]^t[GA+1]<<I^t[GA+2]<<j)&y},Y=new xa(25e3),z=new dt(288),W=new dt(32),T=0,AA=0,B=0,uA=0,H=0,x=0;B<s;++B){var K=Z(B),P=B&32767,sA=U[K];if(N[P]=sA,U[K]=P,H<=B){var nA=s-B;if((T>7e3||uA>24576)&&nA>423){h=Cf(t,u,0,Y,z,W,AA,uA,x,B-x,h),uA=T=AA=0,x=B;for(var cA=0;cA<286;++cA)z[cA]=0;for(var cA=0;cA<30;++cA)W[cA]=0}var eA=2,hA=0,fA=L,UA=P-sA&32767;if(nA>2&&K==Z(B-UA))for(var Q=Math.min(g,nA)-1,_=Math.min(32767,B),O=Math.min(258,nA);UA<=_&&--fA&&P!=sA;){if(t[B+eA]==t[B+eA-UA]){for(var R=0;R<O&&t[B+R]==t[B+R-UA];++R);if(R>eA){if(eA=R,hA=UA,R>Q)break;for(var X=Math.min(UA,R-2),iA=0,cA=0;cA<X;++cA){var aA=B-UA+cA+32768&32767,oA=N[aA],FA=aA-oA+32768&32767;FA>iA&&(iA=FA,sA=aA)}}}P=sA,sA=N[P],UA+=P-sA+32768&32767}if(hA){Y[uA++]=268435456|vu[eA]<<18|vf[hA];var QA=vu[eA]&31,SA=vf[hA]&31;AA+=yo[QA]+bo[SA],++z[257+QA],++W[SA],H=B+eA,++T}else Y[uA++]=t[B],++z[t[B]]}}h=Cf(t,u,i,Y,z,W,AA,uA,x,B-x,h)}return Wh(c,0,r+Ou(h)+n)},Qp=function(){var t=1,A=0;return{p:function(e){for(var r=t,n=A,i=e.length,s=0;s!=i;){for(var c=Math.min(s+5552,i);s<c;++s)r+=e[s],n+=r;r%=65521,n%=65521}t=r,A=n},d:function(){return(t>>>8<<16|(A&255)<<8|A>>>8)+((t&255)<<23)*2}}},Fp=function(t,A,e,r,n){return Cp(t,A.level==null?6:A.level,A.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):12+A.mem,e,r,!n)},Up=function(t,A,e){for(;e;++A)t[A]=e,e>>>=8},yp=function(t,A){var e=A.level,r=e==0?0:e<6?1:e==9?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},bp=function(t){if((t[0]&15)!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(t[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Fu(t,A){A===void 0&&(A={});var e=Qp();e.p(t);var r=Fp(t,A,2,4);return yp(r,A),Up(r,r.length-4,e.d()),r}function Lp(t,A){return vp((bp(t),t.subarray(2,-4)),A)}var VA=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Rc(){VA.console&&typeof VA.console.log=="function"&&VA.console.log.apply(VA.console,arguments)}var Ce={log:Rc,warn:function(t){VA.console&&(typeof VA.console.warn=="function"?VA.console.warn.apply(VA.console,arguments):Rc.call(null,arguments))},error:function(t){VA.console&&(typeof VA.console.error=="function"?VA.console.error.apply(VA.console,arguments):Rc(t))}};function Gc(t,A,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){xn(r.response,A,e)},r.onerror=function(){Ce.error("could not download file")},r.send()}function Qf(t){var A=new XMLHttpRequest;A.open("HEAD",t,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function js(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 ba,Uu,xn=VA.saveAs||((typeof window>"u"?"undefined":Qe(window))!=="object"||window!==VA?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,A,e){var r=VA.URL||VA.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?Qf(n.href)?Gc(t,A,e):js(n,n.target="_blank"):js(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){js(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,A,e){if(A=A||t.name||"download",typeof t=="string")if(Qf(t))Gc(t,A,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){js(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Qe(i)!=="object"&&(Ce.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(["\uFEFF",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 Gc(t,A,e);var n=t.type==="application/octet-stream",i=/constructor/i.test(VA.HTMLElement)||VA.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":Qe(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var B=c.result;B=s?B:B.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=B:location=B,r=null},c.readAsDataURL(t)}else{var u=VA.URL||VA.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 Xh(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 jc(t,A){var e=t[0],r=t[1],n=t[2],i=t[3];e=ot(e,r,n,i,A[0],7,-680876936),i=ot(i,e,r,n,A[1],12,-389564586),n=ot(n,i,e,r,A[2],17,606105819),r=ot(r,n,i,e,A[3],22,-1044525330),e=ot(e,r,n,i,A[4],7,-176418897),i=ot(i,e,r,n,A[5],12,1200080426),n=ot(n,i,e,r,A[6],17,-1473231341),r=ot(r,n,i,e,A[7],22,-45705983),e=ot(e,r,n,i,A[8],7,1770035416),i=ot(i,e,r,n,A[9],12,-1958414417),n=ot(n,i,e,r,A[10],17,-42063),r=ot(r,n,i,e,A[11],22,-1990404162),e=ot(e,r,n,i,A[12],7,1804603682),i=ot(i,e,r,n,A[13],12,-40341101),n=ot(n,i,e,r,A[14],17,-1502002290),e=ct(e,r=ot(r,n,i,e,A[15],22,1236535329),n,i,A[1],5,-165796510),i=ct(i,e,r,n,A[6],9,-1069501632),n=ct(n,i,e,r,A[11],14,643717713),r=ct(r,n,i,e,A[0],20,-373897302),e=ct(e,r,n,i,A[5],5,-701558691),i=ct(i,e,r,n,A[10],9,38016083),n=ct(n,i,e,r,A[15],14,-660478335),r=ct(r,n,i,e,A[4],20,-405537848),e=ct(e,r,n,i,A[9],5,568446438),i=ct(i,e,r,n,A[14],9,-1019803690),n=ct(n,i,e,r,A[3],14,-187363961),r=ct(r,n,i,e,A[8],20,1163531501),e=ct(e,r,n,i,A[13],5,-1444681467),i=ct(i,e,r,n,A[2],9,-51403784),n=ct(n,i,e,r,A[7],14,1735328473),e=ut(e,r=ct(r,n,i,e,A[12],20,-1926607734),n,i,A[5],4,-378558),i=ut(i,e,r,n,A[8],11,-2022574463),n=ut(n,i,e,r,A[11],16,1839030562),r=ut(r,n,i,e,A[14],23,-35309556),e=ut(e,r,n,i,A[1],4,-1530992060),i=ut(i,e,r,n,A[4],11,1272893353),n=ut(n,i,e,r,A[7],16,-155497632),r=ut(r,n,i,e,A[10],23,-1094730640),e=ut(e,r,n,i,A[13],4,681279174),i=ut(i,e,r,n,A[0],11,-358537222),n=ut(n,i,e,r,A[3],16,-722521979),r=ut(r,n,i,e,A[6],23,76029189),e=ut(e,r,n,i,A[9],4,-640364487),i=ut(i,e,r,n,A[12],11,-421815835),n=ut(n,i,e,r,A[15],16,530742520),e=lt(e,r=ut(r,n,i,e,A[2],23,-995338651),n,i,A[0],6,-198630844),i=lt(i,e,r,n,A[7],10,1126891415),n=lt(n,i,e,r,A[14],15,-1416354905),r=lt(r,n,i,e,A[5],21,-57434055),e=lt(e,r,n,i,A[12],6,1700485571),i=lt(i,e,r,n,A[3],10,-1894986606),n=lt(n,i,e,r,A[10],15,-1051523),r=lt(r,n,i,e,A[1],21,-2054922799),e=lt(e,r,n,i,A[8],6,1873313359),i=lt(i,e,r,n,A[15],10,-30611744),n=lt(n,i,e,r,A[6],15,-1560198380),r=lt(r,n,i,e,A[13],21,1309151649),e=lt(e,r,n,i,A[4],6,-145523070),i=lt(i,e,r,n,A[11],10,-1120210379),n=lt(n,i,e,r,A[2],15,718787259),r=lt(r,n,i,e,A[9],21,-343485551),t[0]=hn(e,t[0]),t[1]=hn(r,t[1]),t[2]=hn(n,t[2]),t[3]=hn(i,t[3])}function Lo(t,A,e,r,n,i){return A=hn(hn(A,t),hn(r,i)),hn(A<<n|A>>>32-n,e)}function ot(t,A,e,r,n,i,s){return Lo(A&e|~A&r,t,A,n,i,s)}function ct(t,A,e,r,n,i,s){return Lo(A&r|e&~r,t,A,n,i,s)}function ut(t,A,e,r,n,i,s){return Lo(A^e^r,t,A,n,i,s)}function lt(t,A,e,r,n,i,s){return Lo(e^(A|~r),t,A,n,i,s)}function Jh(t){var A,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=t.length;A+=64)jc(r,Ep(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(jc(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*e,jc(r,n),r}function Ep(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}ba=VA.atob.bind(VA),Uu=VA.btoa.bind(VA);var Ff="0123456789abcdef".split("");function Ip(t){for(var A="",e=0;e<4;e++)A+=Ff[t>>8*e+4&15]+Ff[t>>8*e&15];return A}function xp(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function yu(t){return Jh(t).map(xp).join("")}var Hp=function(t){for(var A=0;A<t.length;A++)t[A]=Ip(t[A]);return t.join("")}(Jh("hello"))!="5d41402abc4b2a76b9719d911017c592";function hn(t,A){if(Hp){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 bu(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 B=c[u];h=(h+B+s.charCodeAt(u))%256,c[u]=c[h],c[h]=B}e=t,r=c}else c=r;var p=A.length,w=0,g=0,L="";for(u=0;u<p;u++)g=(g+(B=c[w=(w+1)%256]))%256,c[w]=c[g],c[g]=B,s=c[(c[w]+c[g])%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 Uf={print:4,modify:8,copy:16,"annot-forms":32};function Qi(t,A,e,r){this.v=1,this.r=2;var n=192;t.forEach(function(c){if(Uf.perm!==void 0)throw new Error("Invalid permission: "+c);n+=Uf[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=yu(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=bu(this.encryptionKey,this.padding)}function Fi(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 yf(t){if(Qe(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){VA.console&&Ce.error("jsPDF PubSub Error",c.message,c)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function fo(t){if(!(this instanceof fo))return new fo(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 zh(t,A){this.gState=t,this.matrix=A,this.id="",this.objectNumber=-1}function Sn(t,A,e,r,n){if(!(this instanceof Sn))return new Sn(t,A,e,r,n);this.type=t==="axial"?2:3,this.coords=A,this.colors=e,zh.call(this,r,n)}function yi(t,A,e,r,n){if(!(this instanceof yi))return new yi(t,A,e,r,n);this.boundingBox=t,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,zh.call(this,r,n)}function jA(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",B=null;Qe(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(B=t.encryption||null)!==null&&(B.userPassword=B.userPassword||"",B.ownerPassword=B.ownerPassword||"",B.userPermissions=B.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 p=t.putOnlyUsedFonts||!1,w={},g={internal:{},__private__:{}};g.__private__.PubSub=yf;var L="1.3",y=g.__private__.getPdfVersion=function(){return L};g.__private__.setPdfVersion=function(l){L=l};var N={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]};g.__private__.getPageFormats=function(){return N};var U=g.__private__.getPageFormat=function(l){return N[l]};n=n||"a4";var I={COMPAT:"compat",ADVANCED:"advanced"},j=I.COMPAT;function Z(){this.saveGraphicsState(),M(new RA(xA,0,0,-xA,0,Vr()*xA).toString()+" cm"),this.setFontSize(this.getFontSize()/xA),h="n",j=I.ADVANCED}function Y(){this.restoreGraphicsState(),h="S",j=I.COMPAT}var z=g.__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};g.advancedAPI=function(l){var m=j===I.COMPAT;return m&&Z.call(this),typeof l!="function"||(l(this),m&&Y.call(this)),this},g.compatAPI=function(l){var m=j===I.ADVANCED;return m&&Y.call(this),typeof l!="function"||(l(this),m&&Z.call(this)),this},g.isAdvancedAPI=function(){return j===I.ADVANCED};var W,T=function(l){if(j!==I.ADVANCED)throw new Error(l+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},AA=g.roundToPrecision=g.__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+$/,"")};W=g.hpf=g.__private__.hpf=typeof u=="number"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return AA(l,u)}:u==="smart"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return AA(l,l>-1&&l<1?16:5)}:function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return AA(l,16)};var uA=g.f2=g.__private__.f2=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f2");return AA(l,2)},H=g.__private__.f3=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f3");return AA(l,3)},x=g.scale=g.__private__.scale=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.scale");return j===I.COMPAT?l*xA:j===I.ADVANCED?l:void 0},K=function(l){return j===I.COMPAT?Vr()-l:j===I.ADVANCED?l:void 0},P=function(l){return x(K(l))};g.__private__.setPrecision=g.setPrecision=function(l){typeof parseInt(l,10)=="number"&&(A=parseInt(l,10))};var sA,nA="00000000000000000000000000000000",cA=g.__private__.getFileId=function(){return nA},eA=g.__private__.setFileId=function(l){return nA=l!==void 0&&/^[a-fA-F0-9]{32}$/.test(l)?l.toUpperCase():nA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),B!==null&&(at=new Qi(B.userPermissions,B.userPassword,B.ownerPassword,nA)),nA};g.setFileId=function(l){return eA(l),this},g.getFileId=function(){return cA()};var hA=g.__private__.convertDateToPDFDate=function(l){var m=l.getTimezoneOffset(),D=m<0?"+":"-",k=Math.floor(Math.abs(m/60)),$=Math.abs(m%60),BA=[D,O(k),"'",O($),"'"].join("");return["D:",l.getFullYear(),O(l.getMonth()+1),O(l.getDate()),O(l.getHours()),O(l.getMinutes()),O(l.getSeconds()),BA].join("")},fA=g.__private__.convertPDFDateToDate=function(l){var m=parseInt(l.substr(2,4),10),D=parseInt(l.substr(6,2),10)-1,k=parseInt(l.substr(8,2),10),$=parseInt(l.substr(10,2),10),BA=parseInt(l.substr(12,2),10),mA=parseInt(l.substr(14,2),10);return new Date(m,D,k,$,BA,mA,0)},UA=g.__private__.setCreationDate=function(l){var m;if(l===void 0&&(l=new Date),l instanceof Date)m=hA(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 sA=m},Q=g.__private__.getCreationDate=function(l){var m=sA;return l==="jsDate"&&(m=fA(sA)),m};g.setCreationDate=function(l){return UA(l),this},g.getCreationDate=function(l){return Q(l)};var _,O=g.__private__.padd2=function(l){return("0"+parseInt(l)).slice(-2)},R=g.__private__.padd2Hex=function(l){return("00"+(l=l.toString())).substr(l.length)},X=0,iA=[],aA=[],oA=0,FA=[],QA=[],SA=!1,DA=aA,GA=function(){X=0,oA=0,aA=[],iA=[],FA=[],br=Re(),Vt=Re()};g.__private__.setCustomOutputDestination=function(l){SA=!0,DA=l};var gA=function(l){SA||(DA=l)};g.__private__.resetCustomOutputDestination=function(){SA=!1,DA=aA};var M=g.__private__.out=function(l){return l=l.toString(),oA+=l.length+1,DA.push(l),DA},YA=g.__private__.write=function(l){return M(arguments.length===1?l.toString():Array.prototype.join.call(arguments," "))},PA=g.__private__.getArrayBuffer=function(l){for(var m=l.length,D=new ArrayBuffer(m),k=new Uint8Array(D);m--;)k[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]];g.__private__.getStandardFonts=function(){return CA};var yA=t.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(l){return yA=j===I.ADVANCED?l/xA:l,this};var IA,EA=g.__private__.getFontSize=g.getFontSize=function(){return j===I.COMPAT?yA:yA*xA},MA=t.R2L||!1;g.__private__.setR2L=g.setR2L=function(l){return MA=l,this},g.__private__.getR2L=g.getR2L=function(){return MA};var XA,Ae=g.__private__.setZoomMode=function(l){var m=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(l))IA=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.');IA=l}else IA=parseInt(l,10)};g.__private__.getZoomMode=function(){return IA};var te,se=g.__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};g.__private__.getPageMode=function(){return XA};var de=g.__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.');te=l};g.__private__.getLayoutMode=function(){return te},g.__private__.setDisplayMode=g.setDisplayMode=function(l,m,D){return Ae(l),de(m),se(D),this};var qA={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(l){if(Object.keys(qA).indexOf(l)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return qA[l]},g.__private__.getDocumentProperties=function(){return qA},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(l){for(var m in qA)qA.hasOwnProperty(m)&&l[m]&&(qA[m]=l[m]);return this},g.__private__.setDocumentProperty=function(l,m){if(Object.keys(qA).indexOf(l)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return qA[l]=m};var re,xA,it,ce,Rt,ve={},Le={},cr=[],le={},vn={},xe={},Gt={},yr=null,He=0,JA=[],fe=new yf(g),mn=t.hotfixes||[],et={},ur={},lr=[],RA=function l(m,D,k,$,BA,mA){if(!(this instanceof l))return new l(m,D,k,$,BA,mA);isNaN(m)&&(m=1),isNaN(D)&&(D=0),isNaN(k)&&(k=0),isNaN($)&&($=1),isNaN(BA)&&(BA=0),isNaN(mA)&&(mA=0),this._matrix=[m,D,k,$,BA,mA]};Object.defineProperty(RA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(RA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(RA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(RA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(RA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(RA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(RA.prototype,"a",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(RA.prototype,"b",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(RA.prototype,"c",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(RA.prototype,"d",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(RA.prototype,"e",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(RA.prototype,"f",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(RA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(RA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(RA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(RA.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),RA.prototype.join=function(l){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(W).join(l)},RA.prototype.multiply=function(l){var m=l.sx*this.sx+l.shy*this.shx,D=l.sx*this.shy+l.shy*this.sy,k=l.shx*this.sx+l.sy*this.shx,$=l.shx*this.shy+l.sy*this.sy,BA=l.tx*this.sx+l.ty*this.shx+this.tx,mA=l.tx*this.shy+l.ty*this.sy+this.ty;return new RA(m,D,k,$,BA,mA)},RA.prototype.decompose=function(){var l=this.sx,m=this.shy,D=this.shx,k=this.sy,$=this.tx,BA=this.ty,mA=Math.sqrt(l*l+m*m),NA=(l/=mA)*D+(m/=mA)*k;D-=l*NA,k-=m*NA;var KA=Math.sqrt(D*D+k*k);return NA/=KA,l*(k/=KA)<m*(D/=KA)&&(l=-l,m=-m,NA=-NA,mA=-mA),{scale:new RA(mA,0,0,KA,0,0),translate:new RA(1,0,0,1,$,BA),rotate:new RA(l,m,-m,l,0,0),skew:new RA(1,0,NA,1,0,0)}},RA.prototype.toString=function(l){return this.join(" ")},RA.prototype.inversed=function(){var l=this.sx,m=this.shy,D=this.shx,k=this.sy,$=this.tx,BA=this.ty,mA=1/(l*k-m*D),NA=k*mA,KA=-m*mA,ZA=-D*mA,ee=l*mA;return new RA(NA,KA,ZA,ee,-NA*$-ZA*BA,-KA*$-ee*BA)},RA.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 Yn(m,D)},RA.prototype.applyToRectangle=function(l){var m=this.applyToPoint(l),D=this.applyToPoint(new Yn(l.x+l.w,l.y+l.h));return new Gi(m.x,m.y,D.x-m.x,D.y-m.y)},RA.prototype.clone=function(){var l=this.sx,m=this.shy,D=this.shx,k=this.sy,$=this.tx,BA=this.ty;return new RA(l,m,D,k,$,BA)},g.Matrix=RA;var jt=g.matrixMult=function(l,m){return m.multiply(l)},fr=new RA(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=fr;var pt=function(l,m){if(!vn[l]){var D=(m instanceof Sn?"Sh":"P")+(Object.keys(le).length+1).toString(10);m.id=D,vn[l]=D,le[D]=m,fe.publish("addPattern",m)}};g.ShadingPattern=Sn,g.TilingPattern=yi,g.addShadingPattern=function(l,m){return T("addShadingPattern()"),pt(l,m),this},g.beginTilingPattern=function(l){T("beginTilingPattern()"),Za(l.boundingBox[0],l.boundingBox[1],l.boundingBox[2]-l.boundingBox[0],l.boundingBox[3]-l.boundingBox[1],l.matrix)},g.endTilingPattern=function(l,m){T("endTilingPattern()"),m.stream=QA[_].join(`
`),pt(l,m),fe.publish("endTilingPattern",m),lr.pop().restore()};var We=g.__private__.newObject=function(){var l=Re();return bt(l,!0),l},Re=g.__private__.newObjectDeferred=function(){return X++,iA[X]=function(){return oA},X},bt=function(l,m){return m=typeof m=="boolean"&&m,iA[l]=oA,m&&M(l+" 0 obj"),l},Pn=g.__private__.newAdditionalObject=function(){var l={objId:Re(),content:""};return FA.push(l),l},br=Re(),Vt=Re(),qt=g.__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 k="#",$=0;$<3;$++)k+=("0"+Math.floor(255*parseFloat(m[$])).toString(16)).slice(-2);return k},Wt=g.__private__.encodeColorString=function(l){var m;typeof l=="string"&&(l={ch1:l});var D=l.ch1,k=l.ch2,$=l.ch3,BA=l.ch4,mA=l.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof D=="string"&&D.charAt(0)!=="#"){var NA=new Xh(D);if(NA.ok)D=NA.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,k=KA>>8&255,$=255&KA}if(k===void 0||BA===void 0&&D===k&&k===$)if(typeof D=="string")m=D+" "+mA[0];else switch(l.precision){case 2:m=uA(D/255)+" "+mA[0];break;case 3:default:m=H(D/255)+" "+mA[0]}else if(BA===void 0||Qe(BA)==="object"){if(BA&&!isNaN(BA.a)&&BA.a===0)return m=["1.","1.","1.",mA[1]].join(" ");if(typeof D=="string")m=[D,k,$,mA[1]].join(" ");else switch(l.precision){case 2:m=[uA(D/255),uA(k/255),uA($/255),mA[1]].join(" ");break;default:case 3:m=[H(D/255),H(k/255),H($/255),mA[1]].join(" ")}}else if(typeof D=="string")m=[D,k,$,BA,mA[2]].join(" ");else switch(l.precision){case 2:m=[uA(D),uA(k),uA($),uA(BA),mA[2]].join(" ");break;case 3:default:m=[H(D),H(k),H($),H(BA),mA[2]].join(" ")}return m},hr=g.__private__.getFilters=function(){return s},St=g.__private__.putStream=function(l){var m=(l=l||{}).data||"",D=l.filters||hr(),k=l.alreadyAppliedFilters||[],$=l.addLength1||!1,BA=m.length,mA=l.objectId,NA=function(st){return st};if(B!==null&&mA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");B!==null&&(NA=at.encryptor(mA,0));var KA={};D===!0&&(D=["FlateEncode"]);var ZA=l.additionalKeyValues||[],ee=(KA=jA.API.processDataByFilters!==void 0?jA.API.processDataByFilters(m,D):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(k)?k.join(" "):k.toString());if(KA.data.length!==0&&(ZA.push({key:"Length",value:KA.data.length}),$===!0&&ZA.push({key:"Length1",value:BA})),ee.length!=0)if(ee.split("/").length-1==1)ZA.push({key:"Filter",value:ee});else{ZA.push({key:"Filter",value:"["+ee+"]"});for(var ae=0;ae<ZA.length;ae+=1)if(ZA[ae].key==="DecodeParms"){for(var Ie=[],Se=0;Se<KA.reverseChain.split("/").length-1;Se+=1)Ie.push("null");Ie.push(ZA[ae].value),ZA[ae].value="["+Ie.join(" ")+"]"}}M("<<");for(var Ge=0;Ge<ZA.length;Ge++)M("/"+ZA[Ge].key+" "+ZA[Ge].value);M(">>"),KA.data.length!==0&&(M("stream"),M(NA(KA.data)),M("endstream"))},Br=g.__private__.putPage=function(l){var m=l.number,D=l.data,k=l.objId,$=l.contentsObjId;bt(k,!0),M("<</Type /Page"),M("/Parent "+l.rootDictionaryObjId+" 0 R"),M("/Resources "+l.resourceDictionaryObjId+" 0 R"),M("/MediaBox ["+parseFloat(W(l.mediaBox.bottomLeftX))+" "+parseFloat(W(l.mediaBox.bottomLeftY))+" "+W(l.mediaBox.topRightX)+" "+W(l.mediaBox.topRightY)+"]"),l.cropBox!==null&&M("/CropBox ["+W(l.cropBox.bottomLeftX)+" "+W(l.cropBox.bottomLeftY)+" "+W(l.cropBox.topRightX)+" "+W(l.cropBox.topRightY)+"]"),l.bleedBox!==null&&M("/BleedBox ["+W(l.bleedBox.bottomLeftX)+" "+W(l.bleedBox.bottomLeftY)+" "+W(l.bleedBox.topRightX)+" "+W(l.bleedBox.topRightY)+"]"),l.trimBox!==null&&M("/TrimBox ["+W(l.trimBox.bottomLeftX)+" "+W(l.trimBox.bottomLeftY)+" "+W(l.trimBox.topRightX)+" "+W(l.trimBox.topRightY)+"]"),l.artBox!==null&&M("/ArtBox ["+W(l.artBox.bottomLeftX)+" "+W(l.artBox.bottomLeftY)+" "+W(l.artBox.topRightX)+" "+W(l.artBox.topRightY)+"]"),typeof l.userUnit=="number"&&l.userUnit!==1&&M("/UserUnit "+l.userUnit),fe.publish("putPage",{objId:k,pageContext:JA[m],pageNumber:m,page:D}),M("/Contents "+$+" 0 R"),M(">>"),M("endobj");var BA=D.join(`
`);return j===I.ADVANCED&&(BA+=`
Q`),bt($,!0),St({data:BA,filters:hr(),objectId:$}),M("endobj"),k},Cn=g.__private__.putPages=function(){var l,m,D=[];for(l=1;l<=He;l++)JA[l].objId=Re(),JA[l].contentsObjId=Re();for(l=1;l<=He;l++)D.push(Br({number:l,data:QA[l],objId:JA[l].objId,contentsObjId:JA[l].contentsObjId,mediaBox:JA[l].mediaBox,cropBox:JA[l].cropBox,bleedBox:JA[l].bleedBox,trimBox:JA[l].trimBox,artBox:JA[l].artBox,userUnit:JA[l].userUnit,rootDictionaryObjId:br,resourceDictionaryObjId:Vt}));bt(br,!0),M("<</Type /Pages");var k="/Kids [";for(m=0;m<He;m++)k+=D[m]+" 0 R ";M(k+"]"),M("/Count "+He),M(">>"),M("endobj"),fe.publish("postPutPages")},Mn=function(l){fe.publish("putFont",{font:l,out:M,newObject:We,putStream:St}),l.isAlreadyPutted!==!0&&(l.objectNumber=We(),M("<<"),M("/Type /Font"),M("/BaseFont /"+Fi(l.postScriptName)),M("/Subtype /Type1"),typeof l.encoding=="string"&&M("/Encoding /"+l.encoding),M("/FirstChar 32"),M("/LastChar 255"),M(">>"),M("endobj"))},Kn=function(){for(var l in ve)ve.hasOwnProperty(l)&&(p===!1||p===!0&&w.hasOwnProperty(l))&&Mn(ve[l])},kn=function(l){l.objectNumber=We();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[W(l.x),W(l.y),W(l.x+l.width),W(l.y+l.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+l.matrix.toString()+"]"});var D=l.pages[1].join(`
`);St({data:D,additionalKeyValues:m,objectId:l.objectNumber}),M("endobj")},Rn=function(){for(var l in et)et.hasOwnProperty(l)&&kn(et[l])},_a=function(l,m){var D,k=[],$=1/(m-1);for(D=0;D<1;D+=$)k.push(D);if(k.push(1),l[0].offset!=0){var BA={offset:0,color:l[0].color};l.unshift(BA)}if(l[l.length-1].offset!=1){var mA={offset:1,color:l[l.length-1].color};l.push(mA)}for(var NA="",KA=0,ZA=0;ZA<k.length;ZA++){for(D=k[ZA];D>l[KA+1].offset;)KA++;var ee=l[KA].offset,ae=(D-ee)/(l[KA+1].offset-ee),Ie=l[KA].color,Se=l[KA+1].color;NA+=R(Math.round((1-ae)*Ie[0]+ae*Se[0]).toString(16))+R(Math.round((1-ae)*Ie[1]+ae*Se[1]).toString(16))+R(Math.round((1-ae)*Ie[2]+ae*Se[2]).toString(16))}return NA.trim()},Eo=function(l,m){m||(m=21);var D=We(),k=_a(l.colors,m),$=[];$.push({key:"FunctionType",value:"0"}),$.push({key:"Domain",value:"[0.0 1.0]"}),$.push({key:"Size",value:"["+m+"]"}),$.push({key:"BitsPerSample",value:"8"}),$.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),St({data:k,additionalKeyValues:$,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:D}),M("endobj"),l.objectNumber=We(),M("<< /ShadingType "+l.type),M("/ColorSpace /DeviceRGB");var BA="/Coords ["+W(parseFloat(l.coords[0]))+" "+W(parseFloat(l.coords[1]))+" ";l.type===2?BA+=W(parseFloat(l.coords[2]))+" "+W(parseFloat(l.coords[3])):BA+=W(parseFloat(l.coords[2]))+" "+W(parseFloat(l.coords[3]))+" "+W(parseFloat(l.coords[4]))+" "+W(parseFloat(l.coords[5])),M(BA+="]"),l.matrix&&M("/Matrix ["+l.matrix.toString()+"]"),M("/Function "+D+" 0 R"),M("/Extend [true true]"),M(">>"),M("endobj")},Io=function(l,m){var D=Re(),k=We();m.push({resourcesOid:D,objectOid:k}),l.objectNumber=k;var $=[];$.push({key:"Type",value:"/Pattern"}),$.push({key:"PatternType",value:"1"}),$.push({key:"PaintType",value:"1"}),$.push({key:"TilingType",value:"1"}),$.push({key:"BBox",value:"["+l.boundingBox.map(W).join(" ")+"]"}),$.push({key:"XStep",value:W(l.xStep)}),$.push({key:"YStep",value:W(l.yStep)}),$.push({key:"Resources",value:D+" 0 R"}),l.matrix&&$.push({key:"Matrix",value:"["+l.matrix.toString()+"]"}),St({data:l.stream,additionalKeyValues:$,objectId:l.objectNumber}),M("endobj")},Gn=function(l){var m;for(m in le)le.hasOwnProperty(m)&&(le[m]instanceof Sn?Eo(le[m]):le[m]instanceof yi&&Io(le[m],l))},Da=function(l){for(var m in l.objectNumber=We(),M("<<"),l)switch(m){case"opacity":M("/ca "+uA(l[m]));break;case"stroke-opacity":M("/CA "+uA(l[m]))}M(">>"),M("endobj")},xo=function(){var l;for(l in xe)xe.hasOwnProperty(l)&&Da(xe[l])},Ni=function(){for(var l in M("/XObject <<"),et)et.hasOwnProperty(l)&&et[l].objectNumber>=0&&M("/"+l+" "+et[l].objectNumber+" 0 R");fe.publish("putXobjectDict"),M(">>")},Ho=function(){at.oid=We(),M("<<"),M("/Filter /Standard"),M("/V "+at.v),M("/R "+at.r),M("/U <"+at.toHexString(at.U)+">"),M("/O <"+at.toHexString(at.O)+">"),M("/P "+at.P),M(">>"),M("endobj")},Ta=function(){for(var l in M("/Font <<"),ve)ve.hasOwnProperty(l)&&(p===!1||p===!0&&w.hasOwnProperty(l))&&M("/"+l+" "+ve[l].objectNumber+" 0 R");M(">>")},So=function(){if(Object.keys(le).length>0){for(var l in M("/Shading <<"),le)le.hasOwnProperty(l)&&le[l]instanceof Sn&&le[l].objectNumber>=0&&M("/"+l+" "+le[l].objectNumber+" 0 R");fe.publish("putShadingPatternDict"),M(">>")}},jn=function(l){if(Object.keys(le).length>0){for(var m in M("/Pattern <<"),le)le.hasOwnProperty(m)&&le[m]instanceof g.TilingPattern&&le[m].objectNumber>=0&&le[m].objectNumber<l&&M("/"+m+" "+le[m].objectNumber+" 0 R");fe.publish("putTilingPatternDict"),M(">>")}},No=function(){if(Object.keys(xe).length>0){var l;for(l in M("/ExtGState <<"),xe)xe.hasOwnProperty(l)&&xe[l].objectNumber>=0&&M("/"+l+" "+xe[l].objectNumber+" 0 R");fe.publish("putGStateDict"),M(">>")}},De=function(l){bt(l.resourcesOid,!0),M("<<"),M("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ta(),So(),jn(l.objectOid),No(),Ni(),M(">>"),M("endobj")},Oa=function(){var l=[];Kn(),xo(),Rn(),Gn(l),fe.publish("putResources"),l.forEach(De),De({resourcesOid:Vt,objectOid:Number.MAX_SAFE_INTEGER}),fe.publish("postPutResources")},Pa=function(){fe.publish("putAdditionalObjects");for(var l=0;l<FA.length;l++){var m=FA[l];bt(m.objId,!0),M(m.content),M("endobj")}fe.publish("postPutAdditionalObjects")},Ma=function(l){Le[l.fontName]=Le[l.fontName]||{},Le[l.fontName][l.fontStyle]=l.id},_i=function(l,m,D,k,$){var BA={id:"F"+(Object.keys(ve).length+1).toString(10),postScriptName:l,fontName:m,fontStyle:D,encoding:k,isStandardFont:$||!1,metadata:{}};return fe.publish("addFont",{font:BA,instance:this}),ve[BA.id]=BA,Ma(BA),BA.id},_o=function(l){for(var m=0,D=CA.length;m<D;m++){var k=_i.call(this,l[m][0],l[m][1],l[m][2],CA[m][3],!0);p===!1&&(w[k]=!0);var $=l[m][0].split("-");Ma({id:k,fontName:$[0],fontStyle:$[1]||""})}fe.publish("addFonts",{fonts:ve,dictionary:Le})},Xt=function(l){return l.foo=function(){try{return l.apply(this,arguments)}catch(k){var m=k.stack||"";~m.indexOf(" at ")&&(m=m.split(" at ")[1]);var D="Error in function "+m.split(`
`)[0].split("<")[0]+": "+k.message;if(!VA.console)throw new Error(D);VA.console.error(D,k),VA.alert&&alert(D)}},l.foo.bar=l,l.foo},Vn=function(l,m){var D,k,$,BA,mA,NA,KA,ZA,ee;if($=(m=m||{}).sourceEncoding||"Unicode",mA=m.outputEncoding,(m.autoencode||mA)&&ve[re].metadata&&ve[re].metadata[$]&&ve[re].metadata[$].encoding&&(BA=ve[re].metadata[$].encoding,!mA&&ve[re].encoding&&(mA=ve[re].encoding),!mA&&BA.codePages&&(mA=BA.codePages[0]),typeof mA=="string"&&(mA=BA[mA]),mA)){for(KA=!1,NA=[],D=0,k=l.length;D<k;D++)(ZA=mA[l.charCodeAt(D)])?NA.push(String.fromCharCode(ZA)):NA.push(l[D]),NA[D].charCodeAt(0)>>8&&(KA=!0);l=NA.join("")}for(D=l.length;KA===void 0&&D!==0;)l.charCodeAt(D-1)>>8&&(KA=!0),D--;if(!KA)return l;for(NA=m.noBOM?[]:[254,255],D=0,k=l.length;D<k;D++){if((ee=(ZA=l.charCodeAt(D))>>8)>>8)throw new Error("Character at position "+D+" of string '"+l+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");NA.push(ee),NA.push(ZA-(ee<<8))}return String.fromCharCode.apply(void 0,NA)},wt=g.__private__.pdfEscape=g.pdfEscape=function(l,m){return Vn(l,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Di=g.__private__.beginPage=function(l){QA[++He]=[],JA[He]={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])}},ka(He),gA(QA[_])},Ka=function(l,m){var D,k,$;switch(e=m||e,typeof l=="string"&&(D=U(l.toLowerCase()),Array.isArray(D)&&(k=D[0],$=D[1])),Array.isArray(l)&&(k=l[0]*xA,$=l[1]*xA),isNaN(k)&&(k=n[0],$=n[1]),(k>14400||$>14400)&&(Ce.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),k=Math.min(14400,k),$=Math.min(14400,$)),n=[k,$],e.substr(0,1)){case"l":$>k&&(n=[$,k]);break;case"p":k>$&&(n=[$,k])}Di(n),Wa(Mi),M(Jt),ki!==0&&M(ki+" J"),Ri!==0&&M(Ri+" j"),fe.publish("addPage",{pageNumber:He})},Do=function(l){l>0&&l<=He&&(QA.splice(l,1),JA.splice(l,1),He--,_>He&&(_=He),this.setPage(_))},ka=function(l){l>0&&l<=He&&(_=l)},To=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return QA.length-1},Ra=function(l,m,D){var k,$=void 0;return D=D||{},l=l!==void 0?l:ve[re].fontName,m=m!==void 0?m:ve[re].fontStyle,k=l.toLowerCase(),Le[k]!==void 0&&Le[k][m]!==void 0?$=Le[k][m]:Le[l]!==void 0&&Le[l][m]!==void 0?$=Le[l][m]:D.disableWarning===!1&&Ce.warn("Unable to look up font label for font '"+l+"', '"+m+"'. Refer to getFontList() for available fonts."),$||D.noFallback||($=Le.times[m])==null&&($=Le.times.normal),$},Oo=g.__private__.putInfo=function(){var l=We(),m=function(k){return k};for(var D in B!==null&&(m=at.encryptor(l,0)),M("<<"),M("/Producer ("+wt(m("jsPDF "+jA.version))+")"),qA)qA.hasOwnProperty(D)&&qA[D]&&M("/"+D.substr(0,1).toUpperCase()+D.substr(1)+" ("+wt(m(qA[D]))+")");M("/CreationDate ("+wt(m(sA))+")"),M(">>"),M("endobj")},Ti=g.__private__.putCatalog=function(l){var m=(l=l||{}).rootDictionaryObjId||br;switch(We(),M("<<"),M("/Type /Catalog"),M("/Pages "+m+" 0 R"),IA||(IA="fullwidth"),IA){case"fullwidth":M("/OpenAction [3 0 R /FitH null]");break;case"fullheight":M("/OpenAction [3 0 R /FitV null]");break;case"fullpage":M("/OpenAction [3 0 R /Fit]");break;case"original":M("/OpenAction [3 0 R /XYZ null null 1]");break;default:var D=""+IA;D.substr(D.length-1)==="%"&&(IA=parseInt(IA)/100),typeof IA=="number"&&M("/OpenAction [3 0 R /XYZ null null "+uA(IA)+"]")}switch(te||(te="continuous"),te){case"continuous":M("/PageLayout /OneColumn");break;case"single":M("/PageLayout /SinglePage");break;case"two":case"twoleft":M("/PageLayout /TwoColumnLeft");break;case"tworight":M("/PageLayout /TwoColumnRight")}XA&&M("/PageMode /"+XA),fe.publish("putCatalog"),M(">>"),M("endobj")},Po=g.__private__.putTrailer=function(){M("trailer"),M("<<"),M("/Size "+(X+1)),M("/Root "+X+" 0 R"),M("/Info "+(X-1)+" 0 R"),B!==null&&M("/Encrypt "+at.oid+" 0 R"),M("/ID [ <"+nA+"> <"+nA+"> ]"),M(">>")},Mo=g.__private__.putHeader=function(){M("%PDF-"+L),M("%ºß¬à")},Ko=g.__private__.putXRef=function(){var l="0000000000";M("xref"),M("0 "+(X+1)),M("0000000000 65535 f ");for(var m=1;m<=X;m++)typeof iA[m]=="function"?M((l+iA[m]()).slice(-10)+" 00000 n "):iA[m]!==void 0?M((l+iA[m]).slice(-10)+" 00000 n "):M("0000000000 00000 n ")},Lr=g.__private__.buildDocument=function(){GA(),gA(aA),fe.publish("buildDocument"),Mo(),Cn(),Pa(),Oa(),B!==null&&Ho(),Oo(),Ti();var l=oA;return Ko(),Po(),M("startxref"),M(""+l),M("%%EOF"),gA(QA[_]),aA.join(`
`)},qn=g.__private__.getBlob=function(l){return new Blob([PA(l)],{type:"application/pdf"})},Wn=g.output=g.__private__.output=Xt(function(l,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",l){case void 0:return Lr();case"save":g.save(m.filename);break;case"arraybuffer":return PA(Lr());case"blob":return qn(Lr());case"bloburi":case"bloburl":if(VA.URL!==void 0&&typeof VA.URL.createObjectURL=="function")return VA.URL&&VA.URL.createObjectURL(qn(Lr()))||void 0;Ce.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var D="",k=Lr();try{D=Uu(k)}catch{D=Uu(unescape(encodeURIComponent(k)))}return"data:application/pdf;filename="+m.filename+";base64,"+D;case"pdfobjectnewwindow":if(Object.prototype.toString.call(VA)==="[object Window]"){var $="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",BA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';m.pdfObjectUrl&&($=m.pdfObjectUrl,BA="");var mA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+$+'"'+BA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(m)+");<\/script></body></html>",NA=VA.open();return NA!==null&&NA.document.write(mA),NA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(VA)==="[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>',ZA=VA.open();if(ZA!==null){ZA.document.write(KA);var ee=this;ZA.document.documentElement.querySelector("#pdfViewer").onload=function(){ZA.document.title=m.filename,ZA.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ee.output("bloburl"))}}return ZA}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(VA)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ae='<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=VA.open();if(Ie!==null&&(Ie.document.write(ae),Ie.document.title=m.filename),Ie||typeof safari>"u")return Ie;break;case"datauri":case"dataurl":return VA.document.location.href=this.output("datauristring",m);default:return null}}),Ga=function(l){return Array.isArray(mn)===!0&&mn.indexOf(l)>-1};switch(r){case"pt":xA=1;break;case"mm":xA=72/25.4;break;case"cm":xA=72/2.54;break;case"in":xA=72;break;case"px":xA=Ga("px_scaling")==1?.75:96/72;break;case"pc":case"em":xA=12;break;case"ex":xA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);xA=r}var at=null;UA(),eA();var ko=function(l){return B!==null?at.encryptor(l,0):function(m){return m}},ja=g.__private__.getPageInfo=g.getPageInfo=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:JA[l].objId,pageNumber:l,pageContext:JA[l]}},WA=g.__private__.getPageInfoByObjId=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in JA)if(JA[m].objId===l)break;return ja(m)},Ro=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:JA[_].objId,pageNumber:_,pageContext:JA[_]}};g.addPage=function(){return Ka.apply(this,arguments),this},g.setPage=function(){return ka.apply(this,arguments),gA.call(this,QA[_]),this},g.insertPage=function(l){return this.addPage(),this.movePage(_,l),this},g.movePage=function(l,m){var D,k;if(l>m){D=QA[l],k=JA[l];for(var $=l;$>m;$--)QA[$]=QA[$-1],JA[$]=JA[$-1];QA[m]=D,JA[m]=k,this.setPage(m)}else if(l<m){D=QA[l],k=JA[l];for(var BA=l;BA<m;BA++)QA[BA]=QA[BA+1],JA[BA]=JA[BA+1];QA[m]=D,JA[m]=k,this.setPage(m)}return this},g.deletePage=function(){return Do.apply(this,arguments),this},g.__private__.text=g.text=function(l,m,D,k,$){var BA,mA,NA,KA,ZA,ee,ae,Ie,Se,Ge=(k=k||{}).scope||this;if(typeof l=="number"&&typeof m=="number"&&(typeof D=="string"||Array.isArray(D))){var st=D;D=m,m=l,l=st}if(arguments[3]instanceof RA?(T("The transform parameter of text() with a Matrix value"),Se=$):(NA=arguments[4],KA=arguments[5],Qe(ae=arguments[3])==="object"&&ae!==null||(typeof NA=="string"&&(KA=NA,NA=null),typeof ae=="string"&&(KA=ae,ae=null),typeof ae=="number"&&(NA=ae,ae=null),k={flags:ae,angle:NA,align:KA})),isNaN(m)||isNaN(D)||l==null)throw new Error("Invalid arguments passed to jsPDF.text");if(l.length===0)return Ge;var ze="",zt=!1,Lt=typeof k.lineHeightFactor=="number"?k.lineHeightFactor:Fn,Ir=Ge.internal.scaleFactor;function $a(Fe){return Fe=Fe.split("	").join(Array(k.TabLen||9).join(" ")),wt(Fe,ae)}function Wi(Fe){for(var Ue,Te=Fe.concat(),Xe=[],Nr=Te.length;Nr--;)typeof(Ue=Te.shift())=="string"?Xe.push(Ue):Array.isArray(Fe)&&(Ue.length===1||Ue[1]===void 0&&Ue[2]===void 0)?Xe.push(Ue[0]):Xe.push([Ue[0],Ue[1],Ue[2]]);return Xe}function Xi(Fe,Ue){var Te;if(typeof Fe=="string")Te=Ue(Fe)[0];else if(Array.isArray(Fe)){for(var Xe,Nr,zr=Fe.concat(),si=[],es=zr.length;es--;)typeof(Xe=zr.shift())=="string"?si.push(Ue(Xe)[0]):Array.isArray(Xe)&&typeof Xe[0]=="string"&&(Nr=Ue(Xe[0],Xe[1],Xe[2]),si.push([Nr[0],Nr[1],Nr[2]]));Te=si}return Te}var $n=!1,Ji=!0;if(typeof l=="string")$n=!0;else if(Array.isArray(l)){var zi=l.concat();mA=[];for(var Ai,vt=zi.length;vt--;)(typeof(Ai=zi.shift())!="string"||Array.isArray(Ai)&&typeof Ai[0]!="string")&&(Ji=!1);$n=Ji}if($n===!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 ei=yA/Ge.internal.scaleFactor,ti=ei*(Lt-1);switch(k.baseline){case"bottom":D-=ti;break;case"top":D+=ei-ti;break;case"hanging":D+=ei-2*ti;break;case"middle":D+=ei/2-ti}if((ee=k.maxWidth||0)>0&&(typeof l=="string"?l=Ge.splitTextToSize(l,ee):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(Fe,Ue){return Fe.concat(Ge.splitTextToSize(Ue,ee))},[]))),BA={text:l,x:m,y:D,options:k,mutex:{pdfEscape:wt,activeFontKey:re,fonts:ve,activeFontSize:yA}},fe.publish("preProcessText",BA),l=BA.text,NA=(k=BA.options).angle,!(Se instanceof RA)&&NA&&typeof NA=="number"){NA*=Math.PI/180,k.rotationDirection===0&&(NA=-NA),j===I.ADVANCED&&(NA=-NA);var ri=Math.cos(NA),Yi=Math.sin(NA);Se=new RA(ri,Yi,-Yi,ri,0,0)}else NA&&NA instanceof RA&&(Se=NA);j!==I.ADVANCED||Se||(Se=fr),(ZA=k.charSpace||zn)!==void 0&&(ze+=W(x(ZA))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Ie=k.horizontalScale)!==void 0&&(ze+=W(100*Ie)+` Tz
`),k.lang;var mt=-1,Zo=k.renderingMode!==void 0?k.renderingMode:k.stroke,Zi=Ge.internal.getCurrentPageInfo().pageContext;switch(Zo){case 0:case!1:case"fill":mt=0;break;case 1:case!0:case"stroke":mt=1;break;case 2:case"fillThenStroke":mt=2;break;case 3:case"invisible":mt=3;break;case 4:case"fillAndAddForClipping":mt=4;break;case 5:case"strokeAndAddPathForClipping":mt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mt=6;break;case 7:case"addToPathForClipping":mt=7}var As=Zi.usedRenderingMode!==void 0?Zi.usedRenderingMode:-1;mt!==-1?ze+=mt+` Tr
`:As!==-1&&(ze+=`0 Tr
`),mt!==-1&&(Zi.usedRenderingMode=mt),KA=k.align||"left";var Yt,$i=yA*Lt,$o=Ge.internal.pageSize.getWidth(),Ac=ve[re];ZA=k.charSpace||zn,ee=k.maxWidth||0,ae=Object.assign({autoencode:!0,noBOM:!0},k.flags);var qr=[];if(Object.prototype.toString.call(l)==="[object Array]"){var Nt;mA=Wi(l),KA!=="left"&&(Yt=mA.map(function(Fe){return Ge.getStringUnitWidth(Fe,{font:Ac,charSpace:ZA,fontSize:yA,doKerning:!1})*yA/Ir}));var Zt,Wr=0;if(KA==="right"){m-=Yt[0],l=[],vt=mA.length;for(var dr=0;dr<vt;dr++)dr===0?(Zt=Er(m),Nt=Gr(D)):(Zt=x(Wr-Yt[dr]),Nt=-$i),l.push([mA[dr],Zt,Nt]),Wr=Yt[dr]}else if(KA==="center"){m-=Yt[0]/2,l=[],vt=mA.length;for(var xr=0;xr<vt;xr++)xr===0?(Zt=Er(m),Nt=Gr(D)):(Zt=x((Wr-Yt[xr])/2),Nt=-$i),l.push([mA[xr],Zt,Nt]),Wr=Yt[xr]}else if(KA==="left"){l=[],vt=mA.length;for(var ni=0;ni<vt;ni++)l.push(mA[ni])}else{if(KA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');l=[],vt=mA.length,ee=ee!==0?ee:$o;for(var $t=0;$t<vt;$t++)Nt=$t===0?Gr(D):-$i,Zt=$t===0?Er(m):0,$t<vt-1?qr.push(W(x((ee-Yt[$t])/(mA[$t].split(" ").length-1)))):qr.push(0),l.push([mA[$t],Zt,Nt])}}var ii=typeof k.R2L=="boolean"?k.R2L:MA;ii===!0&&(l=Xi(l,function(Fe,Ue,Te){return[Fe.split("").reverse().join(""),Ue,Te]})),BA={text:l,x:m,y:D,options:k,mutex:{pdfEscape:wt,activeFontKey:re,fonts:ve,activeFontSize:yA}},fe.publish("postProcessText",BA),l=BA.text,zt=BA.mutex.isHex||!1;var Aa=ve[re].encoding;Aa!=="WinAnsiEncoding"&&Aa!=="StandardEncoding"||(l=Xi(l,function(Fe,Ue,Te){return[$a(Fe),Ue,Te]})),mA=Wi(l),l=[];for(var Xr,Ar,Hr,bn=0,ai=1,Ln=Array.isArray(mA[0])?ai:bn,Jr="",ea=function(Fe,Ue,Te){var Xe="";return Te instanceof RA?(Te=typeof k.angle=="number"?jt(Te,new RA(1,0,0,1,Fe,Ue)):jt(new RA(1,0,0,1,Fe,Ue),Te),j===I.ADVANCED&&(Te=jt(new RA(1,0,0,-1,0,0),Te)),Xe=Te.join(" ")+` Tm
`):Xe=W(Fe)+" "+W(Ue)+` Td
`,Xe},_t=0;_t<mA.length;_t++){switch(Jr="",Ln){case ai:Hr=(zt?"<":"(")+mA[_t][0]+(zt?">":")"),Xr=parseFloat(mA[_t][1]),Ar=parseFloat(mA[_t][2]);break;case bn:Hr=(zt?"<":"(")+mA[_t]+(zt?">":")"),Xr=Er(m),Ar=Gr(D)}qr!==void 0&&qr[_t]!==void 0&&(Jr=qr[_t]+` Tw
`),_t===0?l.push(Jr+ea(Xr,Ar,Se)+Hr):Ln===bn?l.push(Jr+Hr):Ln===ai&&l.push(Jr+ea(Xr,Ar,Se)+Hr)}l=Ln===bn?l.join(` Tj
T* `):l.join(` Tj
`),l+=` Tj
`;var Sr=`BT
/`;return Sr+=re+" "+yA+` Tf
`,Sr+=W(yA*Lt)+` TL
`,Sr+=Un+`
`,Sr+=ze,Sr+=l,M(Sr+="ET"),w[re]=!0,Ge};var Go=g.__private__.clip=g.clip=function(l){return M(l==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Go("evenodd")},g.__private__.discardPath=g.discardPath=function(){return M("n"),this};var gr=g.__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};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(l){return gr(l)&&(h=l),this};var Va=g.__private__.getStyle=g.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},qa=g.close=function(){return M("h"),this};g.stroke=function(){return M("S"),this},g.fill=function(l){return Xn("f",l),this},g.fillEvenOdd=function(l){return Xn("f*",l),this},g.fillStroke=function(l){return Xn("B",l),this},g.fillStrokeEvenOdd=function(l){return Xn("B*",l),this};var Xn=function(l,m){Qe(m)==="object"?Vo(m,l):M(l)},Oi=function(l){l===null||j===I.ADVANCED&&l===void 0||(l=Va(l),M(l))};function jo(l,m,D,k,$){var BA=new yi(m||this.boundingBox,D||this.xStep,k||this.yStep,this.gState,$||this.matrix);BA.stream=this.stream;var mA=l+"$$"+this.cloneIndex+++"$$";return pt(mA,BA),BA}var Vo=function(l,m){var D=vn[l.key],k=le[D];if(k instanceof Sn)M("q"),M(qo(m)),k.gState&&g.setGState(k.gState),M(l.matrix.toString()+" cm"),M("/"+D+" sh"),M("Q");else if(k instanceof yi){var $=new RA(1,0,0,-1,0,Vr());l.matrix&&($=$.multiply(l.matrix||fr),D=jo.call(k,l.key,l.boundingBox,l.xStep,l.yStep,$).id),M("q"),M("/Pattern cs"),M("/"+D+" scn"),k.gState&&g.setGState(k.gState),M(m),M("Q")}},qo=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"}},Pi=g.moveTo=function(l,m){return M(W(x(l))+" "+W(P(m))+" m"),this},Qn=g.lineTo=function(l,m){return M(W(x(l))+" "+W(P(m))+" l"),this},Rr=g.curveTo=function(l,m,D,k,$,BA){return M([W(x(l)),W(P(m)),W(x(D)),W(P(k)),W(x($)),W(P(BA)),"c"].join(" ")),this};g.__private__.line=g.line=function(l,m,D,k,$){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(k)||!gr($))throw new Error("Invalid arguments passed to jsPDF.line");return j===I.COMPAT?this.lines([[D-l,k-m]],l,m,[1,1],$||"S"):this.lines([[D-l,k-m]],l,m,[1,1]).stroke()},g.__private__.lines=g.lines=function(l,m,D,k,$,BA){var mA,NA,KA,ZA,ee,ae,Ie,Se,Ge,st,ze,zt;if(typeof l=="number"&&(zt=D,D=m,m=l,l=zt),k=k||[1,1],BA=BA||!1,isNaN(m)||isNaN(D)||!Array.isArray(l)||!Array.isArray(k)||!gr($)||typeof BA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Pi(m,D),mA=k[0],NA=k[1],ZA=l.length,st=m,ze=D,KA=0;KA<ZA;KA++)(ee=l[KA]).length===2?(st=ee[0]*mA+st,ze=ee[1]*NA+ze,Qn(st,ze)):(ae=ee[0]*mA+st,Ie=ee[1]*NA+ze,Se=ee[2]*mA+st,Ge=ee[3]*NA+ze,st=ee[4]*mA+st,ze=ee[5]*NA+ze,Rr(ae,Ie,Se,Ge,st,ze));return BA&&qa(),Oi($),this},g.path=function(l){for(var m=0;m<l.length;m++){var D=l[m],k=D.c;switch(D.op){case"m":Pi(k[0],k[1]);break;case"l":Qn(k[0],k[1]);break;case"c":Rr.apply(this,k);break;case"h":qa()}}return this},g.__private__.rect=g.rect=function(l,m,D,k,$){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(k)||!gr($))throw new Error("Invalid arguments passed to jsPDF.rect");return j===I.COMPAT&&(k=-k),M([W(x(l)),W(P(m)),W(x(D)),W(x(k)),"re"].join(" ")),Oi($),this},g.__private__.triangle=g.triangle=function(l,m,D,k,$,BA,mA){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(k)||isNaN($)||isNaN(BA)||!gr(mA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[D-l,k-m],[$-D,BA-k],[l-$,m-BA]],l,m,[1,1],mA,!0),this},g.__private__.roundedRect=g.roundedRect=function(l,m,D,k,$,BA,mA){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(k)||isNaN($)||isNaN(BA)||!gr(mA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var NA=4/3*(Math.SQRT2-1);return $=Math.min($,.5*D),BA=Math.min(BA,.5*k),this.lines([[D-2*$,0],[$*NA,0,$,BA-BA*NA,$,BA],[0,k-2*BA],[0,BA*NA,-$*NA,BA,-$,BA],[2*$-D,0],[-$*NA,0,-$,-BA*NA,-$,-BA],[0,2*BA-k],[0,-BA*NA,$*NA,-BA,$,-BA]],l+$,m,[1,1],mA,!0),this},g.__private__.ellipse=g.ellipse=function(l,m,D,k,$){if(isNaN(l)||isNaN(m)||isNaN(D)||isNaN(k)||!gr($))throw new Error("Invalid arguments passed to jsPDF.ellipse");var BA=4/3*(Math.SQRT2-1)*D,mA=4/3*(Math.SQRT2-1)*k;return Pi(l+D,m),Rr(l+D,m-mA,l+BA,m-k,l,m-k),Rr(l-BA,m-k,l-D,m-mA,l-D,m),Rr(l-D,m+mA,l-BA,m+k,l,m+k),Rr(l+BA,m+k,l+D,m+mA,l+D,m),Oi($),this},g.__private__.circle=g.circle=function(l,m,D,k){if(isNaN(l)||isNaN(m)||isNaN(D)||!gr(k))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(l,m,D,D,k)},g.setFont=function(l,m,D){return D&&(m=z(m,D)),re=Ra(l,m,{disableWarning:!1}),this};var Wo=g.__private__.getFont=g.getFont=function(){return ve[Ra.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var l,m,D={};for(l in Le)if(Le.hasOwnProperty(l))for(m in D[l]=[],Le[l])Le[l].hasOwnProperty(m)&&D[l].push(m);return D},g.addFont=function(l,m,D,k,$){var BA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&BA.indexOf(arguments[3])!==-1?$=arguments[3]:arguments[3]&&BA.indexOf(arguments[3])==-1&&(D=z(D,k)),$=$||"Identity-H",_i.call(this,l,m,D,$)};var Fn,Mi=t.lineWidth||.200025,Jn=g.__private__.getLineWidth=g.getLineWidth=function(){return Mi},Wa=g.__private__.setLineWidth=g.setLineWidth=function(l){return Mi=l,M(W(x(l))+" w"),this};g.__private__.setLineDash=jA.API.setLineDash=jA.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 W(x(D))}).join(" "),m=W(x(m)),M("["+l+"] "+m+" d"),this};var Xa=g.__private__.getLineHeight=g.getLineHeight=function(){return yA*Fn};g.__private__.getLineHeight=g.getLineHeight=function(){return yA*Fn};var Ja=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(l){return typeof(l=l||1.15)=="number"&&(Fn=l),this},za=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return Fn};Ja(t.lineHeight);var Er=g.__private__.getHorizontalCoordinate=function(l){return x(l)},Gr=g.__private__.getVerticalCoordinate=function(l){return j===I.ADVANCED?l:JA[_].mediaBox.topRightY-JA[_].mediaBox.bottomLeftY-x(l)},Xo=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(l){return W(Er(l))},jr=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(l){return W(Gr(l))},Jt=t.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return qt(Jt)},g.__private__.setStrokeColor=g.setDrawColor=function(l,m,D,k){return Jt=Wt({ch1:l,ch2:m,ch3:D,ch4:k,pdfColorType:"draw",precision:2}),M(Jt),this};var Ki=t.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return qt(Ki)},g.__private__.setFillColor=g.setFillColor=function(l,m,D,k){return Ki=Wt({ch1:l,ch2:m,ch3:D,ch4:k,pdfColorType:"fill",precision:2}),M(Ki),this};var Un=t.textColor||"0 g",Jo=g.__private__.getTextColor=g.getTextColor=function(){return qt(Un)};g.__private__.setTextColor=g.setTextColor=function(l,m,D,k){return Un=Wt({ch1:l,ch2:m,ch3:D,ch4:k,pdfColorType:"text",precision:3}),this};var zn=t.charSpace,zo=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(zn||0)};g.__private__.setCharSpace=g.setCharSpace=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return zn=l,this};var ki=0;g.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},g.__private__.setLineCap=g.setLineCap=function(l){var m=g.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 ki=m,M(m+" J"),this};var Ri=0;g.__private__.setLineJoin=g.setLineJoin=function(l){var m=g.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 Ri=m,M(m+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(l){if(l=l||0,isNaN(l))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return M(W(x(l))+" M"),this},g.GState=fo,g.setGState=function(l){(l=typeof l=="string"?xe[Gt[l]]:Ya(null,l)).equals(yr)||(M("/"+l.id+" gs"),yr=l)};var Ya=function(l,m){if(!l||!Gt[l]){var D=!1;for(var k in xe)if(xe.hasOwnProperty(k)&&xe[k].equals(m)){D=!0;break}if(D)m=xe[k];else{var $="GS"+(Object.keys(xe).length+1).toString(10);xe[$]=m,m.id=$}return l&&(Gt[l]=m.id),fe.publish("addGState",m),m}};g.addGState=function(l,m){return Ya(l,m),this},g.saveGraphicsState=function(){return M("q"),cr.push({key:re,size:yA,color:Un}),this},g.restoreGraphicsState=function(){M("Q");var l=cr.pop();return re=l.key,yA=l.size,Un=l.color,yr=null,this},g.setCurrentTransformationMatrix=function(l){return M(l.toString()+" cm"),this},g.comment=function(l){return M("#"+l),this};var Yn=function(l,m){var D=l||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return D},set:function(BA){isNaN(BA)||(D=parseFloat(BA))}});var k=m||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return k},set:function(BA){isNaN(BA)||(k=parseFloat(BA))}});var $="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return $},set:function(BA){$=BA.toString()}}),this},Gi=function(l,m,D,k){Yn.call(this,l,m),this.type="rect";var $=D||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return $},set:function(mA){isNaN(mA)||($=parseFloat(mA))}});var BA=k||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return BA},set:function(mA){isNaN(mA)||(BA=parseFloat(mA))}}),this},ji=function(){this.page=He,this.currentPage=_,this.pages=QA.slice(0),this.pagesContext=JA.slice(0),this.x=it,this.y=ce,this.matrix=Rt,this.width=yn(_),this.height=Vr(_),this.outputDestination=DA,this.id="",this.objectNumber=-1};ji.prototype.restore=function(){He=this.page,_=this.currentPage,JA=this.pagesContext,QA=this.pages,it=this.x,ce=this.y,Rt=this.matrix,Vi(_,this.width),qi(_,this.height),DA=this.outputDestination};var Za=function(l,m,D,k,$){lr.push(new ji),He=_=0,QA=[],it=l,ce=m,Rt=$,Di([D,k])},Yo=function(l){if(ur[l])lr.pop().restore();else{var m=new ji,D="Xo"+(Object.keys(et).length+1).toString(10);m.id=D,ur[l]=D,et[D]=m,fe.publish("addFormObject",m),lr.pop().restore()}};for(var Zn in g.beginFormObject=function(l,m,D,k,$){return Za(l,m,D,k,$),this},g.endFormObject=function(l){return Yo(l),this},g.doFormObject=function(l,m){var D=et[ur[l]];return M("q"),M(m.toString()+" cm"),M("/"+D.id+" Do"),M("Q"),this},g.getFormObject=function(l){var m=et[ur[l]];return{x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},g.save=function(l,m){return l=l||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||!1,m.returnPromise===!1?(xn(qn(Lr()),l),typeof xn.unload=="function"&&VA.setTimeout&&setTimeout(xn.unload,911),this):new Promise(function(D,k){try{var $=xn(qn(Lr()),l);typeof xn.unload=="function"&&VA.setTimeout&&setTimeout(xn.unload,911),D($)}catch(BA){k(BA.message)}})},jA.API)jA.API.hasOwnProperty(Zn)&&(Zn==="events"&&jA.API.events.length?function(l,m){var D,k,$;for($=m.length-1;$!==-1;$--)D=m[$][0],k=m[$][1],l.subscribe.apply(l,[D].concat(typeof k=="function"?[k]:k))}(fe,jA.API.events):g[Zn]=jA.API[Zn]);var yn=g.getPageWidth=function(l){return(JA[l=l||_].mediaBox.topRightX-JA[l].mediaBox.bottomLeftX)/xA},Vi=g.setPageWidth=function(l,m){JA[l].mediaBox.topRightX=m*xA+JA[l].mediaBox.bottomLeftX},Vr=g.getPageHeight=function(l){return(JA[l=l||_].mediaBox.topRightY-JA[l].mediaBox.bottomLeftY)/xA},qi=g.setPageHeight=function(l,m){JA[l].mediaBox.topRightY=m*xA+JA[l].mediaBox.bottomLeftY};return g.internal={pdfEscape:wt,getStyle:Va,getFont:Wo,getFontSize:EA,getCharSpace:zo,getTextColor:Jo,getLineHeight:Xa,getLineHeightFactor:za,getLineWidth:Jn,write:YA,getHorizontalCoordinate:Er,getVerticalCoordinate:Gr,getCoordinateString:Xo,getVerticalCoordinateString:jr,collections:{},newObject:We,newAdditionalObject:Pn,newObjectDeferred:Re,newObjectDeferredBegin:bt,getFilters:hr,putStream:St,events:fe,scaleFactor:xA,pageSize:{getWidth:function(){return yn(_)},setWidth:function(l){Vi(_,l)},getHeight:function(){return Vr(_)},setHeight:function(l){qi(_,l)}},encryptionOptions:B,encryption:at,getEncryptor:ko,output:Wn,getNumberOfPages:To,pages:QA,out:M,f2:uA,f3:H,getPageInfo:ja,getPageInfoByObjId:WA,getCurrentPageInfo:Ro,getPDFVersion:y,Point:Yn,Rectangle:Gi,Matrix:RA,hasHotfix:Ga},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return yn(_)},set:function(l){Vi(_,l)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return Vr(_)},set:function(l){qi(_,l)},enumerable:!0,configurable:!0}),_o.call(g,CA),re="F1",Ka(n,e),fe.publish("initialized"),g}Qi.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},Qi.prototype.toHexString=function(t){return t.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Qi.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("")},Qi.prototype.processOwnerPassword=function(t,A){return bu(yu(A).substr(0,5),t)},Qi.prototype.encryptor=function(t,A){var e=yu(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return bu(e,r)}},fo.prototype.equals=function(t){var A,e="id,objectNumber,equals";if(!t||Qe(t)!==Qe(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},jA.API={events:[]},jA.version="2.5.1";var _e=jA.API,Pu=1,On=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wi=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},zA=function(t){return t.toFixed(2)},an=function(t){return t.toFixed(5)};_e.__acroform__={};var yt=function(t,A){t.prototype=Object.create(A.prototype),t.prototype.constructor=t},bf=function(t){return t*Pu},vr=function(t){var A=new Zh,e=OA.internal.getHeight(t)||0,r=OA.internal.getWidth(t)||0;return A.BBox=[0,0,Number(zA(r)),Number(zA(e))],A},Sp=_e.__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},Np=_e.__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)},_p=_e.__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},Me=_e.__acroform__.getBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return _p(t,A-1)},Ke=_e.__acroform__.setBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Sp(t,A-1)},ke=_e.__acroform__.clearBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Np(t,A-1)},Dp=_e.__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))]},Tp=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var A=[],e=t._V||t.DV,r=Lu(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=vr(t);return i.scope=t.scope,i.stream=A.join(`
`),i}},Lu=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(H){return H.split(`
`)}):n.map(function(H){return[H]});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(H,x,K){if(H+1<n.length){var P=x+" "+n[H+1][0];return Vs(P,t,K).width<=c-4}return!1};i++;A:for(;i>0;){A="",i--;var h,B,p=Vs("3",t,i).height,w=t.multiline?s-i:(s-p)/2,g=w+=2,L=0,y=0,N=0;if(i<=0){A=`(...) Tj
`,A+="% Width of Text: "+Vs(A,t,i=12).width+", FieldWidth:"+c+`
`;break}for(var U="",I=0,j=0;j<n.length;j++)if(n.hasOwnProperty(j)){var Z=!1;if(n[j].length!==1&&N!==n[j].length-1){if((p+2)*(I+2)+2>s)continue A;U+=n[j][N],Z=!0,y=j,j--}else{U=(U+=n[j][N]+" ").substr(U.length-1)==" "?U.substr(0,U.length-1):U;var Y=parseInt(j),z=u(Y,U,i),W=j>=n.length-1;if(z&&!W){U+=" ",N=0;continue}if(z||W){if(W)y=Y;else if(t.multiline&&(p+2)*(I+2)+2>s)continue A}else{if(!t.multiline||(p+2)*(I+2)+2>s)continue A;y=Y}}for(var T="",AA=L;AA<=y;AA++){var uA=n[AA];if(t.multiline){if(AA===y){T+=uA[N]+" ",N=(N+1)%uA.length;continue}if(AA===L){T+=uA[uA.length-1]+" ";continue}}T+=uA[0]+" "}switch(T=T.substr(T.length-1)==" "?T.substr(0,T.length-1):T,B=Vs(T,t,i).width,t.textAlign){case"right":h=c-B-2;break;case"center":h=(c-B)/2;break;case"left":default:h=2}A+=zA(h)+" "+zA(g)+` Td
`,A+="("+On(T)+`) Tj
`,A+=-zA(h)+` 0 Td
`,g=-(i+2),B=0,L=Z?y:y+1,I++,U=""}break}return r.text=A,r.fontSize=i,r},Vs=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}},Op={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Pp=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)},Mp=function(t,A){for(var e in t)if(t.hasOwnProperty(e)){var r=e,n=t[e];A.internal.newObjectDeferredBegin(n.objId,!0),Qe(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete t[r]}},Kp=function(t,A){if(A.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(sr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Op)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Pu=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new $h,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&&Pp(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=Dp(c.Rect,n)),n.internal.newObjectDeferredBegin(c.objId,!0),c.DA=OA.createDefaultAppearanceStream(c),Qe(c)==="object"&&typeof c.getKeyValueListForStream=="function"&&(u=c.getKeyValueListForStream()),c.Rect=h,c.hasAppearanceStream&&!c.appearanceStreamContent){var B=Tp(c);u.push({key:"AP",value:"<</N "+B+">>"}),n.internal.acroformPlugin.xForms.push(B)}if(c.appearanceStreamContent){var p="";for(var w in c.appearanceStreamContent)if(c.appearanceStreamContent.hasOwnProperty(w)){var g=c.appearanceStreamContent[w];if(p+="/"+w+" ",p+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var s in g)if(g.hasOwnProperty(s)){var L=g[s];typeof L=="function"&&(L=L.call(n,c)),p+="/"+s+" "+L+" ",n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L)}}else typeof(L=g)=="function"&&(L=L.call(n,c)),p+="/"+s+" "+L,n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L);p+=">>"}u.push({key:"AP",value:`<<
`+p+">>"})}n.internal.putStream({additionalKeyValues:u,objectId:c.objId}),n.internal.out("endobj")}i&&Mp(n.internal.acroformPlugin.xForms,n)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},Yh=_e.__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+=" "),Qe(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+="("+On(r(t[i].toString()))+")"):n+=t[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Vc=function(t,A,e){var r=function(n){return n};return A!==void 0&&e&&(r=e.internal.getEncryptor(A)),(t=t||"").toString(),t="("+On(r(t))+")"},mr=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})};mr.prototype.toString=function(){return this.objId+" 0 R"},mr.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},mr.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:Yh(n,this.objId,this.scope)}):n instanceof mr?(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 Zh=function(){mr.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}})};yt(Zh,mr);var $h=function(){mr.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)),"("+On(e(t))+")"}},set:function(e){t=e}})};yt($h,mr);var sr=function t(){mr.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(U){if(isNaN(U))throw new Error('Invalid value "'+U+'" for attribute F supplied.');A=U}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Me(A,3)},set:function(U){U?this.F=Ke(A,3):this.F=ke(A,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(U){if(isNaN(U))throw new Error('Invalid value "'+U+'" for attribute Ff supplied.');e=U}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(U){r=U!==void 0?U:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(U){r[0]=U}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(U){r[1]=U}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(U){r[2]=U}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(U){r[3]=U}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(U){switch(U){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=U;break;default:throw new Error('Invalid value "'+U+'" 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 ho)return;i="FieldObject"+t.FieldNum++}var U=function(I){return I};return this.scope&&(U=this.scope.internal.getEncryptor(this.objId)),"("+On(U(i))+")"},set:function(U){i=U.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(U){i=U}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(U){s=U}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(U){c=U}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(U){u=U}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h===void 0?50/Pu:h},set:function(U){h=U}});var B="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return B},set:function(U){B=U}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof ho||this instanceof Tn))return Vc(p,this.objId,this.scope)},set:function(U){U=U.toString(),p=U}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof At?w:Vc(w,this.objId,this.scope)},set:function(U){U=U.toString(),w=this instanceof At?U:U.substr(0,1)==="("?wi(U.substr(1,U.length-2)):wi(U)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof At?wi(w.substr(1,w.length-1)):w},set:function(U){U=U.toString(),w=this instanceof At?"/"+U:U}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(U){this.V=U}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof At?g:Vc(g,this.objId,this.scope)},set:function(U){U=U.toString(),g=this instanceof At?U:U.substr(0,1)==="("?wi(U.substr(1,U.length-2)):wi(U)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof At?wi(g.substr(1,g.length-1)):g},set:function(U){U=U.toString(),g=this instanceof At?"/"+U:U}}),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(U){U=!!U,y=U}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(L)return L},set:function(U){L=U}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,1)},set:function(U){U?this.Ff=Ke(this.Ff,1):this.Ff=ke(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,2)},set:function(U){U?this.Ff=Ke(this.Ff,2):this.Ff=ke(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,3)},set:function(U){U?this.Ff=Ke(this.Ff,3):this.Ff=ke(this.Ff,3)}});var N=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(N!==null)return N},set:function(U){if([0,1,2].indexOf(U)===-1)throw new Error('Invalid value "'+U+'" for attribute Q supplied.');N=U}}),Object.defineProperty(this,"textAlign",{get:function(){var U;switch(N){case 0:default:U="left";break;case 1:U="center";break;case 2:U="right"}return U},configurable:!0,enumerable:!0,set:function(U){switch(U){case"right":case 2:N=2;break;case"center":case 1:N=1;break;case"left":case 0:default:N=0}}})};yt(sr,mr);var Li=function(){sr.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 Yh(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!!Me(this.Ff,18)},set:function(e){e?this.Ff=Ke(this.Ff,18):this.Ff=ke(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Ke(this.Ff,19):this.Ff=ke(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,20)},set:function(e){e?(this.Ff=Ke(this.Ff,20),A.sort()):this.Ff=ke(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,22)},set:function(e){e?this.Ff=Ke(this.Ff,22):this.Ff=ke(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,23)},set:function(e){e?this.Ff=Ke(this.Ff,23):this.Ff=ke(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,27)},set:function(e){e?this.Ff=Ke(this.Ff,27):this.Ff=ke(this.Ff,27)}}),this.hasAppearanceStream=!1};yt(Li,sr);var Ei=function(){Li.call(this),this.fontName="helvetica",this.combo=!1};yt(Ei,Li);var Ii=function(){Ei.call(this),this.combo=!0};yt(Ii,Ei);var Zs=function(){Ii.call(this),this.edit=!0};yt(Zs,Ii);var At=function(){sr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,15)},set:function(e){e?this.Ff=Ke(this.Ff,15):this.Ff=ke(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,16)},set:function(e){e?this.Ff=Ke(this.Ff,16):this.Ff=ke(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,17)},set:function(e){e?this.Ff=Ke(this.Ff,17):this.Ff=ke(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,26)},set:function(e){e?this.Ff=Ke(this.Ff,26):this.Ff=ke(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+" ("+On(e(A[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(e){Qe(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}})};yt(At,sr);var $s=function(){At.call(this),this.pushButton=!0};yt($s,At);var xi=function(){At.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:[]}})};yt(xi,At);var ho=function(){var t,A;sr.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+" ("+On(n(r[i]))+")");return s.push(">>"),s.join(`
`)},set:function(n){Qe(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)};yt(ho,sr),xi.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()}},xi.prototype.createOption=function(t){var A=new ho;return A.Parent=this,A.optionName=t,this.Kids.push(A),kp.call(this.scope,A),A};var Ao=function(){At.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=OA.CheckBox.createAppearanceStream()};yt(Ao,At);var Tn=function(){sr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,13)},set:function(A){A?this.Ff=Ke(this.Ff,13):this.Ff=ke(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,21)},set:function(A){A?this.Ff=Ke(this.Ff,21):this.Ff=ke(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,23)},set:function(A){A?this.Ff=Ke(this.Ff,23):this.Ff=ke(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,24)},set:function(A){A?this.Ff=Ke(this.Ff,24):this.Ff=ke(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,25)},set:function(A){A?this.Ff=Ke(this.Ff,25):this.Ff=ke(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,26)},set:function(A){A?this.Ff=Ke(this.Ff,26):this.Ff=ke(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}})};yt(Tn,sr);var eo=function(){Tn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Me(this.Ff,14)},set:function(t){t?this.Ff=Ke(this.Ff,14):this.Ff=ke(this.Ff,14)}}),this.password=!0};yt(eo,Tn);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=vr(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=Lu(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=vr(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=Lu(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=vr(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=vr(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 "+an(OA.internal.getWidth(t)/2)+" "+an(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=vr(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 "+an(OA.internal.getWidth(t)/2)+" "+an(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 "+an(OA.internal.getWidth(t)/2)+" "+an(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=vr(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 "+an(OA.internal.getWidth(t)/2)+" "+an(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=vr(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=vr(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=vr(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 Qe(t)==="object"&&(A=bf(t.Rect[2])),A},OA.internal.getHeight=function(t){var A=0;return Qe(t)==="object"&&(A=bf(t.Rect[3])),A};var kp=_e.addField=function(t){if(Kp(this,t),!(t instanceof sr))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};_e.AcroFormChoiceField=Li,_e.AcroFormListBox=Ei,_e.AcroFormComboBox=Ii,_e.AcroFormEditBox=Zs,_e.AcroFormButton=At,_e.AcroFormPushButton=$s,_e.AcroFormRadioButton=xi,_e.AcroFormCheckBox=Ao,_e.AcroFormTextField=Tn,_e.AcroFormPasswordField=eo,_e.AcroFormAppearance=OA,_e.AcroForm={ChoiceField:Li,ListBox:Ei,ComboBox:Ii,EditBox:Zs,Button:At,PushButton:$s,RadioButton:xi,CheckBox:Ao,TextField:Tn,PasswordField:eo,Appearance:OA},jA.AcroForm={ChoiceField:Li,ListBox:Ei,ComboBox:Ii,EditBox:Zs,Button:At,PushButton:$s,RadioButton:xi,CheckBox:Ao,TextField:Tn,PasswordField:eo,Appearance:OA};function A0(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(H,x){var K,P,sA,nA,cA,eA=A;if((x=x||A)==="RGBA"||H.data!==void 0&&H.data instanceof Uint8ClampedArray&&"height"in H&&"width"in H)return"RGBA";if(z(H))for(cA in e)for(sA=e[cA],K=0;K<sA.length;K+=1){for(nA=!0,P=0;P<sA[K].length;P+=1)if(sA[K][P]!==void 0&&sA[K][P]!==H[P]){nA=!1;break}if(nA===!0){eA=cA;break}}else for(cA in e)for(sA=e[cA],K=0;K<sA.length;K+=1){for(nA=!0,P=0;P<sA[K].length;P+=1)if(sA[K][P]!==void 0&&sA[K][P]!==H.charCodeAt(P)){nA=!1;break}if(nA===!0){eA=cA;break}}return eA===A&&x!==A&&(eA=x),eA},n=function H(x){for(var K=this.internal.write,P=this.internal.putStream,sA=(0,this.internal.getFilters)();sA.indexOf("FlateEncode")!==-1;)sA.splice(sA.indexOf("FlateEncode"),1);x.objectId=this.internal.newObject();var nA=[];if(nA.push({key:"Type",value:"/XObject"}),nA.push({key:"Subtype",value:"/Image"}),nA.push({key:"Width",value:x.width}),nA.push({key:"Height",value:x.height}),x.colorSpace===N.INDEXED?nA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(x.palette.length/3-1)+" "+("sMask"in x&&x.sMask!==void 0?x.objectId+2:x.objectId+1)+" 0 R]"}):(nA.push({key:"ColorSpace",value:"/"+x.colorSpace}),x.colorSpace===N.DEVICE_CMYK&&nA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),nA.push({key:"BitsPerComponent",value:x.bitsPerComponent}),"decodeParameters"in x&&x.decodeParameters!==void 0&&nA.push({key:"DecodeParms",value:"<<"+x.decodeParameters+">>"}),"transparency"in x&&Array.isArray(x.transparency)){for(var cA="",eA=0,hA=x.transparency.length;eA<hA;eA++)cA+=x.transparency[eA]+" "+x.transparency[eA]+" ";nA.push({key:"Mask",value:"["+cA+"]"})}x.sMask!==void 0&&nA.push({key:"SMask",value:x.objectId+1+" 0 R"});var fA=x.filter!==void 0?["/"+x.filter]:void 0;if(P({data:x.data,additionalKeyValues:nA,alreadyAppliedFilters:fA,objectId:x.objectId}),K("endobj"),"sMask"in x&&x.sMask!==void 0){var UA="/Predictor "+x.predictor+" /Colors 1 /BitsPerComponent "+x.bitsPerComponent+" /Columns "+x.width,Q={width:x.width,height:x.height,colorSpace:"DeviceGray",bitsPerComponent:x.bitsPerComponent,decodeParameters:UA,data:x.sMask};"filter"in x&&(Q.filter=x.filter),H.call(this,Q)}if(x.colorSpace===N.INDEXED){var _=this.internal.newObject();P({data:T(new Uint8Array(x.palette)),objectId:_}),K("endobj")}},i=function(){var H=this.internal.collections.addImage_images;for(var x in H)n.call(this,H[x])},s=function(){var H,x=this.internal.collections.addImage_images,K=this.internal.write;for(var P in x)K("/I"+(H=x[P]).index,H.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 H=this.internal.collections.addImage_images;return c.call(this),H},h=function(){return Object.keys(this.internal.collections.addImage_images).length},B=function(H){return typeof t["process"+H.toUpperCase()]=="function"},p=function(H){return Qe(H)==="object"&&H.nodeType===1},w=function(H,x){if(H.nodeName==="IMG"&&H.hasAttribute("src")){var K=""+H.getAttribute("src");if(K.indexOf("data:image/")===0)return ba(unescape(K).split("base64,").pop());var P=t.loadFile(K,!0);if(P!==void 0)return P}if(H.nodeName==="CANVAS"){if(H.width===0||H.height===0)throw new Error("Given canvas must have data. Canvas width: "+H.width+", height: "+H.height);var sA;switch(x){case"PNG":sA="image/png";break;case"WEBP":sA="image/webp";break;case"JPEG":case"JPG":default:sA="image/jpeg"}return ba(H.toDataURL(sA,1).split("base64,").pop())}},g=function(H){var x=this.internal.collections.addImage_images;if(x){for(var K in x)if(H===x[K].alias)return x[K]}},L=function(H,x,K){return H||x||(H=-96,x=-96),H<0&&(H=-1*K.width*72/H/this.internal.scaleFactor),x<0&&(x=-1*K.height*72/x/this.internal.scaleFactor),H===0&&(H=x*K.width/K.height),x===0&&(x=H*K.height/K.width),[H,x]},y=function(H,x,K,P,sA,nA){var cA=L.call(this,K,P,sA),eA=this.internal.getCoordinateString,hA=this.internal.getVerticalCoordinateString,fA=u.call(this);if(K=cA[0],P=cA[1],fA[sA.index]=sA,nA){nA*=Math.PI/180;var UA=Math.cos(nA),Q=Math.sin(nA),_=function(R){return R.toFixed(4)},O=[_(UA),_(Q),_(-1*Q),_(UA),0,0,"cm"]}this.internal.write("q"),nA?(this.internal.write([1,"0","0",1,eA(H),hA(x+P),"cm"].join(" ")),this.internal.write(O.join(" ")),this.internal.write([eA(K),"0","0",eA(P),"0","0","cm"].join(" "))):this.internal.write([eA(K),"0","0",eA(P),eA(H),hA(x+P),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+sA.index+" Do"),this.internal.write("Q")},N=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 U=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},I=t.__addimage__.sHashCode=function(H){var x,K,P=0;if(typeof H=="string")for(K=H.length,x=0;x<K;x++)P=(P<<5)-P+H.charCodeAt(x),P|=0;else if(z(H))for(K=H.byteLength/2,x=0;x<K;x++)P=(P<<5)-P+H[x],P|=0;return P},j=t.__addimage__.validateStringAsBase64=function(H){(H=H||"").toString().trim();var x=!0;return H.length===0&&(x=!1),H.length%4!=0&&(x=!1),/^[A-Za-z0-9+/]+$/.test(H.substr(0,H.length-2))===!1&&(x=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(H.substr(-2))===!1&&(x=!1),x},Z=t.__addimage__.extractImageFromDataUrl=function(H){var x=(H=H||"").split("base64,"),K=null;if(x.length===2){var P=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(x[0]);Array.isArray(P)&&(K={mimeType:P[1],charset:P[2],data:x[1]})}return K},Y=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(H){return Y()&&H instanceof ArrayBuffer};var z=t.__addimage__.isArrayBufferView=function(H){return Y()&&typeof Uint32Array<"u"&&(H instanceof Int8Array||H instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&H instanceof Uint8ClampedArray||H instanceof Int16Array||H instanceof Uint16Array||H instanceof Int32Array||H instanceof Uint32Array||H instanceof Float32Array||H instanceof Float64Array)},W=t.__addimage__.binaryStringToUint8Array=function(H){for(var x=H.length,K=new Uint8Array(x),P=0;P<x;P++)K[P]=H.charCodeAt(P);return K},T=t.__addimage__.arrayBufferToBinaryString=function(H){for(var x="",K=z(H)?H:new Uint8Array(H),P=0;P<K.length;P+=8192)x+=String.fromCharCode.apply(null,K.subarray(P,P+8192));return x};t.addImage=function(){var H,x,K,P,sA,nA,cA,eA,hA;if(typeof arguments[1]=="number"?(x=A,K=arguments[1],P=arguments[2],sA=arguments[3],nA=arguments[4],cA=arguments[5],eA=arguments[6],hA=arguments[7]):(x=arguments[1],K=arguments[2],P=arguments[3],sA=arguments[4],nA=arguments[5],cA=arguments[6],eA=arguments[7],hA=arguments[8]),Qe(H=arguments[0])==="object"&&!p(H)&&"imageData"in H){var fA=H;H=fA.imageData,x=fA.format||x||A,K=fA.x||K||0,P=fA.y||P||0,sA=fA.w||fA.width||sA,nA=fA.h||fA.height||nA,cA=fA.alias||cA,eA=fA.compression||eA,hA=fA.rotation||fA.angle||hA}var UA=this.internal.getFilters();if(eA===void 0&&UA.indexOf("FlateEncode")!==-1&&(eA="SLOW"),isNaN(K)||isNaN(P))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var Q=AA.call(this,H,x,cA,eA);return y.call(this,K,P,sA,nA,Q,hA),this};var AA=function(H,x,K,P){var sA,nA,cA;if(typeof H=="string"&&r(H)===A){H=unescape(H);var eA=uA(H,!1);(eA!==""||(eA=t.loadFile(H,!0))!==void 0)&&(H=eA)}if(p(H)&&(H=w(H,x)),x=r(H,x),!B(x))throw new Error("addImage does not support files of type '"+x+"', please ensure that a plugin for '"+x+"' support is added.");if(((cA=K)==null||cA.length===0)&&(K=function(hA){return typeof hA=="string"||z(hA)?I(hA):z(hA.data)?I(hA.data):null}(H)),(sA=g.call(this,K))||(Y()&&(H instanceof Uint8Array||x==="RGBA"||(nA=H,H=W(H))),sA=this["process"+x.toUpperCase()](H,h.call(this),K,function(hA){return hA&&typeof hA=="string"&&(hA=hA.toUpperCase()),hA in t.image_compression?hA:U.NONE}(P),nA)),!sA)throw new Error("An unknown error occurred whilst processing the image.");return sA},uA=t.__addimage__.convertBase64ToBinaryString=function(H,x){var K;x=typeof x!="boolean"||x;var P,sA="";if(typeof H=="string"){P=(K=Z(H))!==null?K.data:H;try{sA=ba(P)}catch(nA){if(x)throw j(P)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+nA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return sA};t.getImageProperties=function(H){var x,K,P="";if(p(H)&&(H=w(H)),typeof H=="string"&&r(H)===A&&((P=uA(H,!1))===""&&(P=t.loadFile(H)||""),H=P),K=r(H),!B(K))throw new Error("addImage does not support files of type '"+K+"', please ensure that a plugin for '"+K+"' support is added.");if(!Y()||H instanceof Uint8Array||(H=W(H)),!(x=this["process"+K.toUpperCase()](H)))throw new Error("An unknown error occurred whilst processing the image");return x.fileType=K,x}})(jA.API),function(t){var A=function(e){if(e!==void 0&&e!="")return!0};jA.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,B=!1,p=0;p<h.length&&!B;p++)switch((r=h[p]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(B=!0);break;case"reference":case"text":case"freetext":B=!0}if(B!=0){this.internal.write("/Annots [");for(var w=0;w<h.length;w++){r=h[w];var g=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(),N=this.internal.newAdditionalObject(),U=this.internal.getEncryptor(y.objId),I=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 ("+g(U(r.contents))+")",i+=" /Popup "+N.objId+" 0 R",i+=" /P "+u.objId+" 0 R",i+=" /T ("+g(U(I))+") >>",y.content=i;var j=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 "+j,r.open&&(i+=" /Open true"),i+=" >>",N.content=i,this.internal.write(y.objId,"0 R",N.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 Z=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+g(L(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Z+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var Y=this.annotations._nameMap[r.options.name];r.options.pageNumber=Y.page,r.options.top=Y.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 ("+g(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 z=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+" "+z+" "+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 B=this.splitTextToSize(e,c).length;s=Math.ceil(h*B)}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}}(jA.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 B=t.__arabicParser__.arabicLetterHasMedialForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length==4},p=t.__arabicParser__.resolveLigatures=function(y){var N=0,U=e,I="",j=0;for(N=0;N<y.length;N+=1)U[y.charCodeAt(N)]!==void 0?(j++,typeof(U=U[y.charCodeAt(N)])=="number"&&(I+=String.fromCharCode(U),U=e,j=0),N===y.length-1&&(U=e,I+=y.charAt(N-(j-1)),N-=j-1,j=0)):(U=e,I+=y.charAt(N-j),N-=j,j=0);return I};t.__arabicParser__.isArabicDiacritic=function(y){return y!==void 0&&r[y.charCodeAt(0)]!==void 0};var w=t.__arabicParser__.getCorrectForm=function(y,N,U){return s(y)?i(y)===!1?-1:!h(y)||!s(N)&&!s(U)||!s(U)&&c(N)||c(y)&&!s(N)||c(y)&&u(N)||c(y)&&c(N)?0:B(y)&&s(N)&&!c(N)&&s(U)&&h(U)?3:c(y)||!s(U)?1:2:-1},g=function(y){var N=0,U=0,I=0,j="",Z="",Y="",z=(y=y||"").split("\\s+"),W=[];for(N=0;N<z.length;N+=1){for(W.push(""),U=0;U<z[N].length;U+=1)j=z[N][U],Z=z[N][U-1],Y=z[N][U+1],s(j)?(I=w(j,Z,Y),W[N]+=I!==-1?String.fromCharCode(A[j.charCodeAt(0)][I]):j):W[N]+=j;W[N]=p(W[N])}return W.join(" ")},L=t.__arabicParser__.processArabic=t.processArabic=function(){var y,N=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,U=[];if(Array.isArray(N)){var I=0;for(U=[],I=0;I<N.length;I+=1)Array.isArray(N[I])?U.push([g(N[I][0]),N[I][1],N[I][2]]):U.push([g(N[I])]);y=U}else y=g(N);return typeof arguments[0]=="string"?y:(arguments[0].text=y,arguments[0])};t.events.push(["preProcessText",L])}(jA.API),jA.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}])}(jA.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 B=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return B},set:function(y){B=y}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(y){p=y}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(y){w=y}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(y){g=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 B=(h=h||{}).fontSize||this.getFontSize(),p=h.font||this.getFont(),w=h.scaleFactor||this.internal.scaleFactor,g=0,L=0,y=0,N=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 U=h.maxWidth;U>0?typeof u=="string"?u=this.splitTextToSize(u,U):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(j,Z){return j.concat(N.splitTextToSize(Z,U))},[])):u=Array.isArray(u)?u:[u];for(var I=0;I<u.length;I++)g<(y=this.getStringUnitWidth(u[I],{font:p})*B)&&(g=y);return g!==0&&(L=u.length),{w:g/=w,h:Math.max((L*B*this.getLineHeightFactor()-B*(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,B=this.internal.__cell__.padding,p=this.internal.__cell__.margins||A,w=this.internal.__cell__.tableHeaderRow,g=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+p.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=p.top,g&&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-B,u.y+B,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+B,{align:"center",baseline:"top",maxWidth:u.width-B-B}):this.text(u.text,u.x+B,u.y+B,{align:"left",baseline:"top",maxWidth:u.width-B-B})),this.internal.__cell__.lastCell=u,this};t.table=function(u,h,B,p,w){if(r.call(this),!B)throw new Error("No data for PDF table.");var g,L,y,N,U=[],I=[],j=[],Z={},Y={},z=[],W=[],T=(w=w||{}).autoSize||!1,AA=w.printHeaders!==!1,uA=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,H=w.margins||Object.assign({width:this.getPageWidth()},A),x=typeof w.padding=="number"?w.padding:3,K=w.headerBackgroundColor||"#c8c8c8",P=w.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=AA,this.internal.__cell__.margins=H,this.internal.__cell__.table_font_size=uA,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=K,this.internal.__cell__.headerTextColor=P,this.setFontSize(uA),p==null)I=U=Object.keys(B[0]),j=U.map(function(){return"left"});else if(Array.isArray(p)&&Qe(p[0])==="object")for(U=p.map(function(fA){return fA.name}),I=p.map(function(fA){return fA.prompt||fA.name||""}),j=p.map(function(fA){return fA.align||"left"}),g=0;g<p.length;g+=1)Y[p[g].name]=p[g].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(I=U=p,j=U.map(function(){return"left"}));if(T||Array.isArray(p)&&typeof p[0]=="string")for(g=0;g<U.length;g+=1){for(Z[N=U[g]]=B.map(function(fA){return fA[N]}),this.setFont(void 0,"bold"),z.push(this.getTextDimensions(I[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),L=Z[N],this.setFont(void 0,"normal"),y=0;y<L.length;y+=1)z.push(this.getTextDimensions(L[y],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Y[N]=Math.max.apply(null,z)+x+x,z=[]}if(AA){var sA={};for(g=0;g<U.length;g+=1)sA[U[g]]={},sA[U[g]].text=I[g],sA[U[g]].align=j[g];var nA=c.call(this,sA,Y);W=U.map(function(fA){return new i(u,h,Y[fA],nA,sA[fA].text,void 0,sA[fA].align)}),this.setTableHeaderRow(W),this.printHeaderRow(1,!1)}var cA=p.reduce(function(fA,UA){return fA[UA.name]=UA.align,fA},{});for(g=0;g<B.length;g+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:g,data:B[g]},this);var eA=c.call(this,B[g],Y);for(y=0;y<U.length;y+=1){var hA=B[g][U[y]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:g,col:y,data:hA},this),s.call(this,new i(u,h,Y[U[y]],eA,hA,g+2,cA[U[y]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=h,this};var c=function(u,h){var B=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(u).map(function(g){var L=u[g];return this.splitTextToSize(L.hasOwnProperty("text")?L.text:L,h[g]-B-B)},this).map(function(g){return this.getLineHeightFactor()*g.length*p/w+B+B},this).reduce(function(g,L){return Math.max(g,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 B;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){B=this.internal.__cell__.tableHeaderRow[g].clone(),h&&(B.y=this.internal.__cell__.margins.top||0,w.push(B)),B.lineNumber=u;var L=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,B),this.setTextColor(L)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),e=!1}}(jA.API);var e0={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},t0=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Eu=A0(t0),r0=[100,200,300,400,500,600,700,800,900],Rp=A0(r0);function Iu(t){var A=t.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return e0[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 Eu[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 Lf(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 Gp={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ef={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function If(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function jp(t,A,e){for(var r=(e=e||{}).defaultFontFamily||"times",n=Object.assign({},Gp,e.genericFontFamilies||{}),i=null,s=null,c=0;c<A.length;++c)if(n[(i=Iu(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 '"+If(i)+"' and default family '"+r+"'.");if(s=function(u,h){if(h[u])return h[u];var B=Eu[u],p=B<=Eu.normal?-1:1,w=Lf(h,t0,B,p);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 B=e0[u],p=0;p<B.length;++p)if(h[B[p]])return h[B[p]];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 B=Rp[u],p=Lf(h,r0,B,u<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+u);return p}(i.weight,s)))throw new Error("Failed to resolve a font for the rule '"+If(i)+"'.");return s}function xf(t){return t.trimLeft()}function Vp(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 qp(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 qs,Hf,Sf,qc=["times"];(function(t){var A,e,r,n,i,s,c,u,h,B=function(Q){return Q=Q||{},this.isStrokeTransparent=Q.isStrokeTransparent||!1,this.strokeOpacity=Q.strokeOpacity||1,this.strokeStyle=Q.strokeStyle||"#000000",this.fillStyle=Q.fillStyle||"#000000",this.isFillTransparent=Q.isFillTransparent||!1,this.fillOpacity=Q.fillOpacity||1,this.font=Q.font||"10px sans-serif",this.textBaseline=Q.textBaseline||"alphabetic",this.textAlign=Q.textAlign||"left",this.lineWidth=Q.lineWidth||1,this.lineJoin=Q.lineJoin||"miter",this.lineCap=Q.lineCap||"butt",this.path=Q.path||[],this.transform=Q.transform!==void 0?Q.transform.clone():new u,this.globalCompositeOperation=Q.globalCompositeOperation||"normal",this.globalAlpha=Q.globalAlpha||1,this.clip_path=Q.clip_path||[],this.currentPoint=Q.currentPoint||new s,this.miterLimit=Q.miterLimit||10,this.lastPoint=Q.lastPoint||new s,this.lineDashOffset=Q.lineDashOffset||0,this.lineDash=Q.lineDash||[],this.margin=Q.margin||[0,0,0,0],this.prevPageLastElemOffset=Q.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Q.ignoreClearRect!="boolean"||Q.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(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 B}]);var p=function(Q){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _=Q;Object.defineProperty(this,"pdf",{get:function(){return _}});var O=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return O},set:function(gA){O=!!gA}});var R=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return R},set:function(gA){R=!!gA}});var X=0;Object.defineProperty(this,"posX",{get:function(){return X},set:function(gA){isNaN(gA)||(X=gA)}});var iA=0;Object.defineProperty(this,"posY",{get:function(){return iA},set:function(gA){isNaN(gA)||(iA=gA)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(gA){var M;typeof gA=="number"?M=[gA,gA,gA,gA]:((M=new Array(4))[0]=gA[0],M[1]=gA.length>=2?gA[1]:M[0],M[2]=gA.length>=3?gA[2]:M[0],M[3]=gA.length>=4?gA[3]:M[1]),h.margin=M}});var aA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return aA},set:function(gA){aA=gA}});var oA=0;Object.defineProperty(this,"lastBreak",{get:function(){return oA},set:function(gA){oA=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 B&&(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 M;M=w(gA),this.ctx.fillStyle=M.style,this.ctx.isFillTransparent=M.a===0,this.ctx.fillOpacity=M.a,this.pdf.setFillColor(M.r,M.g,M.b,{a:M.a}),this.pdf.setTextColor(M.r,M.g,M.b,{a:M.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(gA){var M=w(gA);this.ctx.strokeStyle=M.style,this.ctx.isStrokeTransparent=M.a===0,this.ctx.strokeOpacity=M.a,M.a===0?this.pdf.setDrawColor(255,255,255):(M.a,this.pdf.setDrawColor(M.r,M.g,M.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 SA=null;function DA(gA,M){if(SA===null){var YA=function(PA){var CA=[];return Object.keys(PA).forEach(function(yA){PA[yA].forEach(function(IA){var EA=null;switch(IA){case"bold":EA={family:yA,weight:"bold"};break;case"italic":EA={family:yA,style:"italic"};break;case"bolditalic":EA={family:yA,weight:"bold",style:"italic"};break;case"":case"normal":EA={family:yA}}EA!==null&&(EA.ref={name:yA,style:IA},CA.push(EA))})}),CA}(gA.getFontList());SA=function(PA){for(var CA={},yA=0;yA<PA.length;++yA){var IA=Iu(PA[yA]),EA=IA.family,MA=IA.stretch,XA=IA.style,Ae=IA.weight;CA[EA]=CA[EA]||{},CA[EA][MA]=CA[EA][MA]||{},CA[EA][MA][XA]=CA[EA][MA][XA]||{},CA[EA][MA][XA][Ae]=IA}return CA}(YA.concat(M))}return SA}var GA=null;Object.defineProperty(this,"fontFaces",{get:function(){return GA},set:function(gA){SA=null,GA=gA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(gA){var M;if(this.ctx.font=gA,(M=/^\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 YA=M[1],PA=(M[2],M[3]),CA=M[4],yA=(M[5],M[6]),IA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(CA)[2];CA=Math.floor(IA==="px"?parseFloat(CA)*this.pdf.internal.scaleFactor:IA==="em"?parseFloat(CA)*this.pdf.getFontSize():parseFloat(CA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(CA);var EA=function(qA){var re,xA,it=[],ce=qA.trim();if(ce==="")return qc;if(ce in Ef)return[Ef[ce]];for(;ce!=="";){switch(xA=null,re=(ce=xf(ce)).charAt(0)){case'"':case"'":xA=Vp(ce.substring(1),re);break;default:xA=qp(ce)}if(xA===null||(it.push(xA[0]),(ce=xf(xA[1]))!==""&&ce.charAt(0)!==","))return qc;ce=ce.replace(/^,/,"")}return it}(yA);if(this.fontFaces){var MA=jp(DA(this.pdf,this.fontFaces),EA.map(function(qA){return{family:qA,stretch:"normal",weight:PA,style:YA}}));this.pdf.setFont(MA.ref.name,MA.ref.style)}else{var XA="";(PA==="bold"||parseInt(PA,10)>=700||YA==="bold")&&(XA="bold"),YA==="italic"&&(XA+="italic"),XA.length===0&&(XA="normal");for(var Ae="",te={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"},se=0;se<EA.length;se++){if(this.pdf.internal.getFont(EA[se],XA,{noFallback:!0,disableWarning:!0})!==void 0){Ae=EA[se];break}if(XA==="bolditalic"&&this.pdf.internal.getFont(EA[se],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ae=EA[se],XA="bold";else if(this.pdf.internal.getFont(EA[se],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ae=EA[se],XA="normal";break}}if(Ae===""){for(var de=0;de<EA.length;de++)if(te[EA[de]]){Ae=te[EA[de]];break}}Ae=Ae===""?"Times":Ae,this.pdf.setFont(Ae,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}})};p.prototype.setLineDash=function(Q){this.lineDash=Q},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){Z.call(this,"fill",!1)},p.prototype.stroke=function(){Z.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(Q,_){if(isNaN(Q)||isNaN(_))throw Ce.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var O=this.ctx.transform.applyToPoint(new s(Q,_));this.path.push({type:"mt",x:O.x,y:O.y}),this.ctx.lastPoint=new s(Q,_)},p.prototype.closePath=function(){var Q=new s(0,0),_=0;for(_=this.path.length-1;_!==-1;_--)if(this.path[_].type==="begin"&&Qe(this.path[_+1])==="object"&&typeof this.path[_+1].x=="number"){Q=new s(this.path[_+1].x,this.path[_+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(Q.x,Q.y)},p.prototype.lineTo=function(Q,_){if(isNaN(Q)||isNaN(_))throw Ce.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var O=this.ctx.transform.applyToPoint(new s(Q,_));this.path.push({type:"lt",x:O.x,y:O.y}),this.ctx.lastPoint=new s(O.x,O.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Z.call(this,null,!0)},p.prototype.quadraticCurveTo=function(Q,_,O,R){if(isNaN(O)||isNaN(R)||isNaN(Q)||isNaN(_))throw Ce.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var X=this.ctx.transform.applyToPoint(new s(O,R)),iA=this.ctx.transform.applyToPoint(new s(Q,_));this.path.push({type:"qct",x1:iA.x,y1:iA.y,x:X.x,y:X.y}),this.ctx.lastPoint=new s(X.x,X.y)},p.prototype.bezierCurveTo=function(Q,_,O,R,X,iA){if(isNaN(X)||isNaN(iA)||isNaN(Q)||isNaN(_)||isNaN(O)||isNaN(R))throw Ce.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var aA=this.ctx.transform.applyToPoint(new s(X,iA)),oA=this.ctx.transform.applyToPoint(new s(Q,_)),FA=this.ctx.transform.applyToPoint(new s(O,R));this.path.push({type:"bct",x1:oA.x,y1:oA.y,x2:FA.x,y2:FA.y,x:aA.x,y:aA.y}),this.ctx.lastPoint=new s(aA.x,aA.y)},p.prototype.arc=function(Q,_,O,R,X,iA){if(isNaN(Q)||isNaN(_)||isNaN(O)||isNaN(R)||isNaN(X))throw Ce.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(iA=!!iA,!this.ctx.transform.isIdentity){var aA=this.ctx.transform.applyToPoint(new s(Q,_));Q=aA.x,_=aA.y;var oA=this.ctx.transform.applyToPoint(new s(0,O)),FA=this.ctx.transform.applyToPoint(new s(0,0));O=Math.sqrt(Math.pow(oA.x-FA.x,2)+Math.pow(oA.y-FA.y,2))}Math.abs(X-R)>=2*Math.PI&&(R=0,X=2*Math.PI),this.path.push({type:"arc",x:Q,y:_,radius:O,startAngle:R,endAngle:X,counterclockwise:iA})},p.prototype.arcTo=function(Q,_,O,R,X){throw new Error("arcTo not implemented.")},p.prototype.rect=function(Q,_,O,R){if(isNaN(Q)||isNaN(_)||isNaN(O)||isNaN(R))throw Ce.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Q,_),this.lineTo(Q+O,_),this.lineTo(Q+O,_+R),this.lineTo(Q,_+R),this.lineTo(Q,_),this.lineTo(Q+O,_),this.lineTo(Q,_)},p.prototype.fillRect=function(Q,_,O,R){if(isNaN(Q)||isNaN(_)||isNaN(O)||isNaN(R))throw Ce.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var X={};this.lineCap!=="butt"&&(X.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(X.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Q,_,O,R),this.fill(),X.hasOwnProperty("lineCap")&&(this.lineCap=X.lineCap),X.hasOwnProperty("lineJoin")&&(this.lineJoin=X.lineJoin)}},p.prototype.strokeRect=function(Q,_,O,R){if(isNaN(Q)||isNaN(_)||isNaN(O)||isNaN(R))throw Ce.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");L.call(this)||(this.beginPath(),this.rect(Q,_,O,R),this.stroke())},p.prototype.clearRect=function(Q,_,O,R){if(isNaN(Q)||isNaN(_)||isNaN(O)||isNaN(R))throw Ce.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Q,_,O,R))},p.prototype.save=function(Q){Q=typeof Q!="boolean"||Q;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,O=0;O<this.pdf.internal.getNumberOfPages();O++)this.pdf.setPage(O+1),this.pdf.internal.out("q");if(this.pdf.setPage(_),Q){this.ctx.fontSize=this.pdf.internal.getFontSize();var R=new B(this.ctx);this.ctxStack.push(this.ctx),this.ctx=R}},p.prototype.restore=function(Q){Q=typeof Q!="boolean"||Q;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,O=0;O<this.pdf.internal.getNumberOfPages();O++)this.pdf.setPage(O+1),this.pdf.internal.out("Q");this.pdf.setPage(_),Q&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(Q){var _,O,R,X;if(Q.isCanvasGradient===!0&&(Q=Q.getColor()),!Q)return{r:0,g:0,b:0,a:0,style:Q};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Q))_=0,O=0,R=0,X=0;else{var iA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Q);if(iA!==null)_=parseInt(iA[1]),O=parseInt(iA[2]),R=parseInt(iA[3]),X=1;else if((iA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Q))!==null)_=parseInt(iA[1]),O=parseInt(iA[2]),R=parseInt(iA[3]),X=parseFloat(iA[4]);else{if(X=1,typeof Q=="string"&&Q.charAt(0)!=="#"){var aA=new Xh(Q);Q=aA.ok?aA.toHex():"#000000"}Q.length===4?(_=Q.substring(1,2),_+=_,O=Q.substring(2,3),O+=O,R=Q.substring(3,4),R+=R):(_=Q.substring(1,3),O=Q.substring(3,5),R=Q.substring(5,7)),_=parseInt(_,16),O=parseInt(O,16),R=parseInt(R,16)}}return{r:_,g:O,b:R,a:X,style:Q}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},L=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(Q,_,O,R){if(isNaN(_)||isNaN(O)||typeof Q!="string")throw Ce.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(R=isNaN(R)?void 0:R,!g.call(this)){var X=eA(this.ctx.transform.rotation),iA=this.ctx.transform.scaleX;x.call(this,{text:Q,x:_,y:O,scale:iA,angle:X,align:this.textAlign,maxWidth:R})}},p.prototype.strokeText=function(Q,_,O,R){if(isNaN(_)||isNaN(O)||typeof Q!="string")throw Ce.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!L.call(this)){R=isNaN(R)?void 0:R;var X=eA(this.ctx.transform.rotation),iA=this.ctx.transform.scaleX;x.call(this,{text:Q,x:_,y:O,scale:iA,renderingMode:"stroke",angle:X,align:this.textAlign,maxWidth:R})}},p.prototype.measureText=function(Q){if(typeof Q!="string")throw Ce.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _=this.pdf,O=this.pdf.internal.scaleFactor,R=_.internal.getFontSize(),X=_.getStringUnitWidth(Q)*R/_.internal.scaleFactor,iA=function(aA){var oA=(aA=aA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return oA}}),this};return new iA({width:X*=Math.round(96*O/72*1e4)/1e4})},p.prototype.scale=function(Q,_){if(isNaN(Q)||isNaN(_))throw Ce.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var O=new u(Q,0,0,_,0,0);this.ctx.transform=this.ctx.transform.multiply(O)},p.prototype.rotate=function(Q){if(isNaN(Q))throw Ce.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _=new u(Math.cos(Q),Math.sin(Q),-Math.sin(Q),Math.cos(Q),0,0);this.ctx.transform=this.ctx.transform.multiply(_)},p.prototype.translate=function(Q,_){if(isNaN(Q)||isNaN(_))throw Ce.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var O=new u(1,0,0,1,Q,_);this.ctx.transform=this.ctx.transform.multiply(O)},p.prototype.transform=function(Q,_,O,R,X,iA){if(isNaN(Q)||isNaN(_)||isNaN(O)||isNaN(R)||isNaN(X)||isNaN(iA))throw Ce.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var aA=new u(Q,_,O,R,X,iA);this.ctx.transform=this.ctx.transform.multiply(aA)},p.prototype.setTransform=function(Q,_,O,R,X,iA){Q=isNaN(Q)?1:Q,_=isNaN(_)?0:_,O=isNaN(O)?0:O,R=isNaN(R)?1:R,X=isNaN(X)?0:X,iA=isNaN(iA)?0:iA,this.ctx.transform=new u(Q,_,O,R,X,iA)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(Q,_,O,R,X,iA,aA,oA,FA){var QA=this.pdf.getImageProperties(Q),SA=1,DA=1,GA=1,gA=1;R!==void 0&&oA!==void 0&&(GA=oA/R,gA=FA/X,SA=QA.width/R*oA/R,DA=QA.height/X*FA/X),iA===void 0&&(iA=_,aA=O,_=0,O=0),R!==void 0&&oA===void 0&&(oA=R,FA=X),R===void 0&&oA===void 0&&(oA=QA.width,FA=QA.height);for(var M,YA=this.ctx.transform.decompose(),PA=eA(YA.rotate.shx),CA=new u,yA=(CA=(CA=(CA=CA.multiply(YA.translate)).multiply(YA.skew)).multiply(YA.scale)).applyToRectangle(new c(iA-_*GA,aA-O*gA,R*SA,X*DA)),IA=N.call(this,yA),EA=[],MA=0;MA<IA.length;MA+=1)EA.indexOf(IA[MA])===-1&&EA.push(IA[MA]);if(j(EA),this.autoPaging)for(var XA=EA[0],Ae=EA[EA.length-1],te=XA;te<Ae+1;te++){this.pdf.setPage(te);var se=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],de=te===1?this.posY+this.margin[0]:this.margin[0],qA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],re=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],xA=te===1?0:qA+(te-2)*re;if(this.ctx.clip_path.length!==0){var it=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=I(M,this.posX+this.margin[3],-xA+de+this.ctx.prevPageLastElemOffset),Y.call(this,"fill",!0),this.path=it}var ce=JSON.parse(JSON.stringify(yA));ce=I([ce],this.posX+this.margin[3],-xA+de+this.ctx.prevPageLastElemOffset)[0];var Rt=(te>XA||te<Ae)&&y.call(this);Rt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],se,re,null).clip().discardPath()),this.pdf.addImage(Q,"JPEG",ce.x,ce.y,ce.w,ce.h,null,null,PA),Rt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Q,"JPEG",yA.x,yA.y,yA.w,yA.h,null,null,PA)};var N=function(Q,_,O){var R=[];_=_||this.pdf.internal.pageSize.width,O=O||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var X=this.posY+this.ctx.prevPageLastElemOffset;switch(Q.type){default:case"mt":case"lt":R.push(Math.floor((Q.y+X)/O)+1);break;case"arc":R.push(Math.floor((Q.y+X-Q.radius)/O)+1),R.push(Math.floor((Q.y+X+Q.radius)/O)+1);break;case"qct":var iA=hA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x,Q.y);R.push(Math.floor((iA.y+X)/O)+1),R.push(Math.floor((iA.y+iA.h+X)/O)+1);break;case"bct":var aA=fA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);R.push(Math.floor((aA.y+X)/O)+1),R.push(Math.floor((aA.y+aA.h+X)/O)+1);break;case"rect":R.push(Math.floor((Q.y+X)/O)+1),R.push(Math.floor((Q.y+Q.h+X)/O)+1)}for(var oA=0;oA<R.length;oA+=1)for(;this.pdf.internal.getNumberOfPages()<R[oA];)U.call(this);return R},U=function(){var Q=this.fillStyle,_=this.strokeStyle,O=this.font,R=this.lineCap,X=this.lineWidth,iA=this.lineJoin;this.pdf.addPage(),this.fillStyle=Q,this.strokeStyle=_,this.font=O,this.lineCap=R,this.lineWidth=X,this.lineJoin=iA},I=function(Q,_,O){for(var R=0;R<Q.length;R++)switch(Q[R].type){case"bct":Q[R].x2+=_,Q[R].y2+=O;case"qct":Q[R].x1+=_,Q[R].y1+=O;case"mt":case"lt":case"arc":default:Q[R].x+=_,Q[R].y+=O}return Q},j=function(Q){return Q.sort(function(_,O){return _-O})},Z=function(Q,_){for(var O,R,X=this.fillStyle,iA=this.strokeStyle,aA=this.lineCap,oA=this.lineWidth,FA=Math.abs(oA*this.ctx.transform.scaleX),QA=this.lineJoin,SA=JSON.parse(JSON.stringify(this.path)),DA=JSON.parse(JSON.stringify(this.path)),GA=[],gA=0;gA<DA.length;gA++)if(DA[gA].x!==void 0)for(var M=N.call(this,DA[gA]),YA=0;YA<M.length;YA+=1)GA.indexOf(M[YA])===-1&&GA.push(M[YA]);for(var PA=0;PA<GA.length;PA++)for(;this.pdf.internal.getNumberOfPages()<GA[PA];)U.call(this);if(j(GA),this.autoPaging)for(var CA=GA[0],yA=GA[GA.length-1],IA=CA;IA<yA+1;IA++){this.pdf.setPage(IA),this.fillStyle=X,this.strokeStyle=iA,this.lineCap=aA,this.lineWidth=FA,this.lineJoin=QA;var EA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],MA=IA===1?this.posY+this.margin[0]:this.margin[0],XA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ae=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=IA===1?0:XA+(IA-2)*Ae;if(this.ctx.clip_path.length!==0){var se=this.path;O=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=I(O,this.posX+this.margin[3],-te+MA+this.ctx.prevPageLastElemOffset),Y.call(this,Q,!0),this.path=se}if(R=JSON.parse(JSON.stringify(SA)),this.path=I(R,this.posX+this.margin[3],-te+MA+this.ctx.prevPageLastElemOffset),_===!1||IA===0){var de=(IA>CA||IA<yA)&&y.call(this);de&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],EA,Ae,null).clip().discardPath()),Y.call(this,Q,_),de&&this.pdf.restoreGraphicsState()}this.lineWidth=oA}else this.lineWidth=FA,Y.call(this,Q,_),this.lineWidth=oA;this.path=SA},Y=function(Q,_){if((Q!=="stroke"||_||!L.call(this))&&(Q==="stroke"||_||!g.call(this))){for(var O,R,X=[],iA=this.path,aA=0;aA<iA.length;aA++){var oA=iA[aA];switch(oA.type){case"begin":X.push({begin:!0});break;case"close":X.push({close:!0});break;case"mt":X.push({start:oA,deltas:[],abs:[]});break;case"lt":var FA=X.length;if(iA[aA-1]&&!isNaN(iA[aA-1].x)&&(O=[oA.x-iA[aA-1].x,oA.y-iA[aA-1].y],FA>0)){for(;FA>=0;FA--)if(X[FA-1].close!==!0&&X[FA-1].begin!==!0){X[FA-1].deltas.push(O),X[FA-1].abs.push(oA);break}}break;case"bct":O=[oA.x1-iA[aA-1].x,oA.y1-iA[aA-1].y,oA.x2-iA[aA-1].x,oA.y2-iA[aA-1].y,oA.x-iA[aA-1].x,oA.y-iA[aA-1].y],X[X.length-1].deltas.push(O);break;case"qct":var QA=iA[aA-1].x+2/3*(oA.x1-iA[aA-1].x),SA=iA[aA-1].y+2/3*(oA.y1-iA[aA-1].y),DA=oA.x+2/3*(oA.x1-oA.x),GA=oA.y+2/3*(oA.y1-oA.y),gA=oA.x,M=oA.y;O=[QA-iA[aA-1].x,SA-iA[aA-1].y,DA-iA[aA-1].x,GA-iA[aA-1].y,gA-iA[aA-1].x,M-iA[aA-1].y],X[X.length-1].deltas.push(O);break;case"arc":X.push({deltas:[],abs:[],arc:!0}),Array.isArray(X[X.length-1].abs)&&X[X.length-1].abs.push(oA)}}R=_?null:Q==="stroke"?"stroke":"fill";for(var YA=!1,PA=0;PA<X.length;PA++)if(X[PA].arc)for(var CA=X[PA].abs,yA=0;yA<CA.length;yA++){var IA=CA[yA];IA.type==="arc"?T.call(this,IA.x,IA.y,IA.radius,IA.startAngle,IA.endAngle,IA.counterclockwise,void 0,_,!YA):K.call(this,IA.x,IA.y),YA=!0}else if(X[PA].close===!0)this.pdf.internal.out("h"),YA=!1;else if(X[PA].begin!==!0){var EA=X[PA].start.x,MA=X[PA].start.y;P.call(this,X[PA].deltas,EA,MA),YA=!0}R&&AA.call(this,R),_&&uA.call(this)}},z=function(Q){var _=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,O=_*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Q-O;case"top":return Q+_-O;case"hanging":return Q+_-2*O;case"middle":return Q+_/2-O;case"ideographic":return Q;case"alphabetic":default:return Q}},W=function(Q){return Q+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var Q=function(){};return Q.colorStops=[],Q.addColorStop=function(_,O){this.colorStops.push([_,O])},Q.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Q.isCanvasGradient=!0,Q},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var T=function(Q,_,O,R,X,iA,aA,oA,FA){for(var QA=nA.call(this,O,R,X,iA),SA=0;SA<QA.length;SA++){var DA=QA[SA];SA===0&&(FA?H.call(this,DA.x1+Q,DA.y1+_):K.call(this,DA.x1+Q,DA.y1+_)),sA.call(this,Q,_,DA.x2,DA.y2,DA.x3,DA.y3,DA.x4,DA.y4)}oA?uA.call(this):AA.call(this,aA)},AA=function(Q){switch(Q){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},uA=function(){this.pdf.clip(),this.pdf.discardPath()},H=function(Q,_){this.pdf.internal.out(e(Q)+" "+r(_)+" m")},x=function(Q){var _;switch(Q.align){case"right":case"end":_="right";break;case"center":_="center";break;case"left":case"start":default:_="left"}var O=this.pdf.getTextDimensions(Q.text),R=z.call(this,Q.y),X=W.call(this,R)-O.h,iA=this.ctx.transform.applyToPoint(new s(Q.x,R)),aA=this.ctx.transform.decompose(),oA=new u;oA=(oA=(oA=oA.multiply(aA.translate)).multiply(aA.skew)).multiply(aA.scale);for(var FA,QA,SA,DA=this.ctx.transform.applyToRectangle(new c(Q.x,R,O.w,O.h)),GA=oA.applyToRectangle(new c(Q.x,X,O.w,O.h)),gA=N.call(this,GA),M=[],YA=0;YA<gA.length;YA+=1)M.indexOf(gA[YA])===-1&&M.push(gA[YA]);if(j(M),this.autoPaging)for(var PA=M[0],CA=M[M.length-1],yA=PA;yA<CA+1;yA++){this.pdf.setPage(yA);var IA=yA===1?this.posY+this.margin[0]:this.margin[0],EA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],MA=this.pdf.internal.pageSize.height-this.margin[2],XA=MA-this.margin[0],Ae=this.pdf.internal.pageSize.width-this.margin[1],te=Ae-this.margin[3],se=yA===1?0:EA+(yA-2)*XA;if(this.ctx.clip_path.length!==0){var de=this.path;FA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=I(FA,this.posX+this.margin[3],-1*se+IA),Y.call(this,"fill",!0),this.path=de}var qA=I([JSON.parse(JSON.stringify(GA))],this.posX+this.margin[3],-se+IA+this.ctx.prevPageLastElemOffset)[0];Q.scale>=.01&&(QA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(QA*Q.scale),SA=this.lineWidth,this.lineWidth=SA*Q.scale);var re=this.autoPaging!=="text";if(re||qA.y+qA.h<=MA){if(re||qA.y>=IA&&qA.x<=Ae){var xA=re?Q.text:this.pdf.splitTextToSize(Q.text,Q.maxWidth||Ae-qA.x)[0],it=I([JSON.parse(JSON.stringify(DA))],this.posX+this.margin[3],-se+IA+this.ctx.prevPageLastElemOffset)[0],ce=re&&(yA>PA||yA<CA)&&y.call(this);ce&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,XA,null).clip().discardPath()),this.pdf.text(xA,it.x,it.y,{angle:Q.angle,align:_,renderingMode:Q.renderingMode}),ce&&this.pdf.restoreGraphicsState()}}else qA.y<MA&&(this.ctx.prevPageLastElemOffset+=MA-qA.y);Q.scale>=.01&&(this.pdf.setFontSize(QA),this.lineWidth=SA)}else Q.scale>=.01&&(QA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(QA*Q.scale),SA=this.lineWidth,this.lineWidth=SA*Q.scale),this.pdf.text(Q.text,iA.x+this.posX,iA.y+this.posY,{angle:Q.angle,align:_,renderingMode:Q.renderingMode,maxWidth:Q.maxWidth}),Q.scale>=.01&&(this.pdf.setFontSize(QA),this.lineWidth=SA)},K=function(Q,_,O,R){O=O||0,R=R||0,this.pdf.internal.out(e(Q+O)+" "+r(_+R)+" l")},P=function(Q,_,O){return this.pdf.lines(Q,_,O,null,null)},sA=function(Q,_,O,R,X,iA,aA,oA){this.pdf.internal.out([A(n(O+Q)),A(i(R+_)),A(n(X+Q)),A(i(iA+_)),A(n(aA+Q)),A(i(oA+_)),"c"].join(" "))},nA=function(Q,_,O,R){for(var X=2*Math.PI,iA=Math.PI/2;_>O;)_-=X;var aA=Math.abs(O-_);aA<X&&R&&(aA=X-aA);for(var oA=[],FA=R?-1:1,QA=_;aA>1e-5;){var SA=QA+FA*Math.min(aA,iA);oA.push(cA.call(this,Q,QA,SA)),aA-=Math.abs(SA-QA),QA=SA}return oA},cA=function(Q,_,O){var R=(O-_)/2,X=Q*Math.cos(R),iA=Q*Math.sin(R),aA=X,oA=-iA,FA=aA*aA+oA*oA,QA=FA+aA*X+oA*iA,SA=4/3*(Math.sqrt(2*FA*QA)-QA)/(aA*iA-oA*X),DA=aA-SA*oA,GA=oA+SA*aA,gA=DA,M=-GA,YA=R+_,PA=Math.cos(YA),CA=Math.sin(YA);return{x1:Q*Math.cos(_),y1:Q*Math.sin(_),x2:DA*PA-GA*CA,y2:DA*CA+GA*PA,x3:gA*PA-M*CA,y3:gA*CA+M*PA,x4:Q*Math.cos(O),y4:Q*Math.sin(O)}},eA=function(Q){return 180*Q/Math.PI},hA=function(Q,_,O,R,X,iA){var aA=Q+.5*(O-Q),oA=_+.5*(R-_),FA=X+.5*(O-X),QA=iA+.5*(R-iA),SA=Math.min(Q,X,aA,FA),DA=Math.max(Q,X,aA,FA),GA=Math.min(_,iA,oA,QA),gA=Math.max(_,iA,oA,QA);return new c(SA,GA,DA-SA,gA-GA)},fA=function(Q,_,O,R,X,iA,aA,oA){var FA,QA,SA,DA,GA,gA,M,YA,PA,CA,yA,IA,EA,MA,XA=O-Q,Ae=R-_,te=X-O,se=iA-R,de=aA-X,qA=oA-iA;for(QA=0;QA<41;QA++)PA=(M=(SA=Q+(FA=QA/40)*XA)+FA*((GA=O+FA*te)-SA))+FA*(GA+FA*(X+FA*de-GA)-M),CA=(YA=(DA=_+FA*Ae)+FA*((gA=R+FA*se)-DA))+FA*(gA+FA*(iA+FA*qA-gA)-YA),QA==0?(yA=PA,IA=CA,EA=PA,MA=CA):(yA=Math.min(yA,PA),IA=Math.min(IA,CA),EA=Math.max(EA,PA),MA=Math.max(MA,CA));return new c(Math.round(yA),Math.round(IA),Math.round(EA-yA),Math.round(MA-IA))},UA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Q,_,O=(Q=this.ctx.lineDash,_=this.ctx.lineDashOffset,JSON.stringify({lineDash:Q,lineDashOffset:_}));this.prevLineDash!==O&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=O)}}})(jA.API),function(t){var A=function(i){var s,c,u,h,B,p,w,g,L,y;for(c=[],u=0,h=(i+=s="\0\0\0\0".slice(i.length%4||4)).length;h>u;u+=4)(B=(i.charCodeAt(u)<<24)+(i.charCodeAt(u+1)<<16)+(i.charCodeAt(u+2)<<8)+i.charCodeAt(u+3))!==0?(p=(B=((B=((B=((B=(B-(y=B%85))/85)-(L=B%85))/85)-(g=B%85))/85)-(w=B%85))/85)%85,c.push(p+33,w+33,g+33,L+33,y+33)):c.push(122);return function(N,U){for(var I=U;I>0;I--)N.pop()}(c,s.length),String.fromCharCode.apply(String,c)+"~>"},e=function(i){var s,c,u,h,B,p=String,w="length",g=255,L="charCodeAt",y="slice",N="replace";for(i[y](-2),i=i[y](0,-2)[N](/\s/g,"")[N]("z","!!!!!"),u=[],h=0,B=(i+=s="uuuuu"[y](i[w]%5||5))[w];B>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(g&c>>24,g&c>>16,g&c>>8,g&c);return function(U,I){for(var j=I;j>0;j--)U.pop()}(u,s[w]),p.fromCharCode.apply(p,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=Fu(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(B){return("0"+B.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(" ")}}}(jA.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,B){var p=new XMLHttpRequest,w=0,g=function(L){var y=L.length,N=[],U=String.fromCharCode;for(w=0;w<y;w+=1)N.push(U(255&L.charCodeAt(w)));return N.join("")};if(p.open("GET",u,!h),p.overrideMimeType("text/plain; charset=x-user-defined"),h===!1&&(p.onload=function(){p.status===200?B(g(this.responseText)):B(void 0)}),p.send(null),h&&p.status===200)return g(p.responseText)}(n,i,s)}catch{}return c}(A,e,r)},t.loadImageFile=t.loadFile}(jA.API),function(t){function A(){return(VA.html2canvas?Promise.resolve(VA.html2canvas):Xc(()=>Promise.resolve().then(()=>hp),void 0,import.meta.url)).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(VA.DOMPurify?Promise.resolve(VA.DOMPurify):Xc(()=>import("./purify.es-BZcJlXyC.js"),[],import.meta.url)).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=Qe(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,B){for(var p=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),w=h.firstChild;w;w=w.nextSibling)B!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||p.appendChild(u(w,B));return h.nodeType===1&&(h.nodeName==="CANVAS"?(p.width=h.width,p.height=h.height,p.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(p.value=h.value),p.addEventListener("load",function(){p.scrollTop=h.scrollTop,p.scrollLeft=h.scrollLeft},!0)),p}(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,B=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,p=Object.assign({async:!0,allowTaint:!0,scale:B,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 p.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 g=h[w],L=g.src.find(function(y){return y.format==="truetype"});L&&u.addFont(L.url,g.ref.name,g.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,u.context2d.save(!0),c(this.prop.container,p)}).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||jA.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,B){return u.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(p){return u.updateProgress(null,h),p}).then(h,B).then(function(p){return u.updateProgress(1),p})})},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),B=u.call(h,s,c);return i.convert(B,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,jA.getPageSize=function(s,c,u){if(Qe(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 B,p=(""+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":B=1;break;case"mm":B=72/25.4;break;case"cm":B=72/2.54;break;case"in":B=72;break;case"px":B=.75;break;case"pc":case"em":B=12;break;case"ex":B=6;break;default:throw"Invalid unit: "+c}var g,L=0,y=0;if(w.hasOwnProperty(p))L=w[p][1]/B,y=w[p][0]/B;else try{L=u[1],y=u[0]}catch{throw new Error("Invalid format: "+u)}if(s==="p"||s==="portrait")s="p",y>L&&(g=y,y=L,L=g);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",L>y&&(g=y,y=L,L=g)}return{width:y,height:L,unit:c,k:B,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(Iu):null;var u=new i(c);return c.worker?u:u.from(s).doCallback()}}(jA.API),jA.API.addJS=function(t){return Sf=t,this.internal.events.subscribe("postPutResources",function(){qs=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(qs+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Hf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Sf+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){qs!==void 0&&Hf!==void 0&&this.internal.out("/Names <</JavaScript "+qs+" 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,B=[];for(i=0;i<h;i++){var p=e.internal.newObject();B.push(p);var w=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var g=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<B.length;i++)e.internal.write("(page_"+(i+1)+")"+B[i]+" 0 R");e.internal.write(" ] >>","endobj"),A=e.internal.newObject(),e.internal.write("<< /Dests "+g+" 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}}])}(jA.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,B=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(p){for(var w,g=256*p.charCodeAt(4)+p.charCodeAt(5),L=p.length,y={width:0,height:0,numcomponents:1},N=4;N<L;N+=2){if(N+=g,A.indexOf(p.charCodeAt(N+1))!==-1){w=256*p.charCodeAt(N+5)+p.charCodeAt(N+6),y={width:256*p.charCodeAt(N+7)+p.charCodeAt(N+8),height:w,numcomponents:p.charCodeAt(N+9)};break}g=256*p.charCodeAt(N+2)+p.charCodeAt(N+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}B={data:e,width:u.width,height:u.height,colorSpace:c,bitsPerComponent:8,filter:h,index:r,alias:n}}return B}}(jA.API);var vi,Ws,Nf,_f,Df,Wp=function(){var t,A,e;function r(i){var s,c,u,h,B,p,w,g,L,y,N,U,I,j;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(s=this.readUInt32(),L=(function(){var Z,Y;for(Y=[],Z=0;Z<4;++Z)Y.push(String.fromCharCode(this.data[this.pos++]));return Y}).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":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},B=this.readUInt16(),h=this.readUInt16()||100,p.delay=1e3*B/h,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(L==="fdAT"&&(this.pos+=4,s-=4),i=(p!=null?p.data:void 0)||this.imgData,U=0;0<=s?U<s:U>s;0<=s?++U:--U)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(I=0;0<=y?I<y:I>y;0<=y?++I:--I)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=(N=this.read(s)).indexOf(0),g=String.fromCharCode.apply(String,N.slice(0,w)),this.text[g]=String.fromCharCode.apply(String,N.slice(w+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(j=this.colorType)===4||j===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 B(p,w,g,L){var y,N,U,I,j,Z,Y,z,W,T,AA,uA,H,x,K,P,sA,nA,cA,eA,hA,fA=Math.ceil((h.width-p)/g),UA=Math.ceil((h.height-w)/L),Q=h.width==fA&&h.height==UA;for(x=s*fA,uA=Q?c:new Uint8Array(x*UA),Z=i.length,H=0,N=0;H<UA&&u<Z;){switch(i[u++]){case 0:for(I=sA=0;sA<x;I=sA+=1)uA[N++]=i[u++];break;case 1:for(I=nA=0;nA<x;I=nA+=1)y=i[u++],j=I<s?0:uA[N-s],uA[N++]=(y+j)%256;break;case 2:for(I=cA=0;cA<x;I=cA+=1)y=i[u++],U=(I-I%s)/s,K=H&&uA[(H-1)*x+U*s+I%s],uA[N++]=(K+y)%256;break;case 3:for(I=eA=0;eA<x;I=eA+=1)y=i[u++],U=(I-I%s)/s,j=I<s?0:uA[N-s],K=H&&uA[(H-1)*x+U*s+I%s],uA[N++]=(y+Math.floor((j+K)/2))%256;break;case 4:for(I=hA=0;hA<x;I=hA+=1)y=i[u++],U=(I-I%s)/s,j=I<s?0:uA[N-s],H===0?K=P=0:(K=uA[(H-1)*x+U*s+I%s],P=U&&uA[(H-1)*x+(U-1)*s+I%s]),Y=j+K-P,z=Math.abs(Y-j),T=Math.abs(Y-K),AA=Math.abs(Y-P),W=z<=T&&z<=AA?j:T<=AA?K:P,uA[N++]=(y+W)%256;break;default:throw new Error("Invalid filter algorithm: "+i[u-1])}if(!Q){var _=((w+H*L)*h.width+p)*s,O=H*x;for(I=0;I<fA;I+=1){for(var R=0;R<s;R+=1)c[_++]=uA[O++];_+=(g-1)*s}}H++}}return i=Lp(i),h.interlaceMethod==1?(B(0,0,8,8),B(4,0,8,8),B(0,4,4,8),B(2,0,4,4),B(0,2,2,4),B(1,0,2,2),B(0,1,1,2)):B(0,0,1,1),c},r.prototype.decodePalette=function(){var i,s,c,u,h,B,p,w,g;for(c=this.palette,B=this.transparency.indexed||[],h=new Uint8Array((B.length||0)+c.length),u=0,i=0,s=p=0,w=c.length;p<w;s=p+=3)h[u++]=c[s],h[u++]=c[s+1],h[u++]=c[s+2],h[u++]=(g=B[i++])!=null?g:255;return h},r.prototype.copyToImageData=function(i,s){var c,u,h,B,p,w,g,L,y,N,U;if(u=this.colors,y=null,c=this.hasAlphaChannel,this.palette.length&&(y=(U=this._decodedPalette)!=null?U:this._decodedPalette=this.decodePalette(),u=4,c=!0),L=(h=i.data||i).length,p=y||s,B=w=0,u===1)for(;B<L;)g=y?4*s[B/4]:w,N=p[g++],h[B++]=N,h[B++]=N,h[B++]=N,h[B++]=c?p[g++]:255,w=g;else for(;B<L;)g=y?4*s[B/4]:w,h[B++]=p[g++],h[B++]=p[g++],h[B++]=p[g++],h[B++]=c?p[g++]:255,w=g},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(VA)==="[object Window]"){try{A=VA.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,B,p,w,g;if(this.animation){for(g=[],c=B=0,p=(w=this.animation.frames).length;B<p;c=++B)s=w[c],u=i.createImageData(s.width,s.height),h=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(u,h),s.imageData=u,g.push(s.image=t(u));return g}},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,B,p,w=this;return c=0,p=this.animation,h=p.numFrames,u=p.frames,B=p.numPlays,(s=function(){var g,L;if(g=c++%h,L=u[g],w.renderFrame(i,g),h>1&&c/h<B)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 Xp(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,B=[],p=0,w=null,g=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(!((H=t[A++])>=0))throw Error("Invalid block size");if(H===0)break;A+=H}break;case 249:if(t[A++]!==4||t[A+4]!==0)throw new Error("Invalid graphics extension block.");var y=t[A++];p=t[A++]|t[A++]<<8,w=t[A++],!(1&y)&&(w=null),g=y>>2&7,A++;break;case 254:for(;;){if(!((H=t[A++])>=0))throw Error("Invalid block size");if(H===0)break;A+=H}break;default:throw new Error("Unknown graphic control label: 0x"+t[A-1].toString(16))}break;case 44:var N=t[A++]|t[A++]<<8,U=t[A++]|t[A++]<<8,I=t[A++]|t[A++]<<8,j=t[A++]|t[A++]<<8,Z=t[A++],Y=Z>>6&1,z=1<<(7&Z)+1,W=c,T=u,AA=!1;Z>>7&&(AA=!0,W=A,T=z,A+=3*z);var uA=A;for(A++;;){var H;if(!((H=t[A++])>=0))throw Error("Invalid block size");if(H===0)break;A+=H}B.push({x:N,y:U,width:I,height:j,has_local_palette:AA,palette_offset:W,palette_size:T,data_offset:uA,data_length:A-uA,transparent_index:w,interlaced:!!Y,delay:p,disposal:g});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+t[A-1].toString(16))}this.numFrames=function(){return B.length},this.loopCount=function(){return L},this.frameInfo=function(x){if(x<0||x>=B.length)throw new Error("Frame index out of range.");return B[x]},this.decodeAndBlitFrameBGRA=function(x,K){var P=this.frameInfo(x),sA=P.width*P.height,nA=new Uint8Array(sA);Tf(t,P.data_offset,nA,sA);var cA=P.palette_offset,eA=P.transparent_index;eA===null&&(eA=256);var hA=P.width,fA=e-hA,UA=hA,Q=4*(P.y*e+P.x),_=4*((P.y+P.height)*e+P.x),O=Q,R=4*fA;P.interlaced===!0&&(R+=4*e*7);for(var X=8,iA=0,aA=nA.length;iA<aA;++iA){var oA=nA[iA];if(UA===0&&(UA=hA,(O+=R)>=_&&(R=4*fA+4*e*(X-1),O=Q+(hA+fA)*(X<<1),X>>=1)),oA===eA)O+=4;else{var FA=t[cA+3*oA],QA=t[cA+3*oA+1],SA=t[cA+3*oA+2];K[O++]=SA,K[O++]=QA,K[O++]=FA,K[O++]=255}--UA}},this.decodeAndBlitFrameRGBA=function(x,K){var P=this.frameInfo(x),sA=P.width*P.height,nA=new Uint8Array(sA);Tf(t,P.data_offset,nA,sA);var cA=P.palette_offset,eA=P.transparent_index;eA===null&&(eA=256);var hA=P.width,fA=e-hA,UA=hA,Q=4*(P.y*e+P.x),_=4*((P.y+P.height)*e+P.x),O=Q,R=4*fA;P.interlaced===!0&&(R+=4*e*7);for(var X=8,iA=0,aA=nA.length;iA<aA;++iA){var oA=nA[iA];if(UA===0&&(UA=hA,(O+=R)>=_&&(R=4*fA+4*e*(X-1),O=Q+(hA+fA)*(X<<1),X>>=1)),oA===eA)O+=4;else{var FA=t[cA+3*oA],QA=t[cA+3*oA+1],SA=t[cA+3*oA+2];K[O++]=FA,K[O++]=QA,K[O++]=SA,K[O++]=255}--UA}}}function Tf(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,B=0,p=0,w=0,g=t[A++],L=new Int32Array(4096),y=null;;){for(;B<16&&g!==0;)p|=t[A++]<<B,B+=8,g===1?g=t[A++]:--g;if(B<u)break;var N=p&h;if(p>>=u,B-=u,N!==i){if(N===s)break;for(var U=N<c?N:y,I=0,j=U;j>i;)j=L[j]>>8,++I;var Z=j;if(w+I+(U!==N?1:0)>r)return void Ce.log("Warning, gif stream longer than expected.");e[w++]=Z;var Y=w+=I;for(U!==N&&(e[w++]=Z),j=U;I--;)j=L[j],e[--Y]=255&j,j>>=8;y!==null&&c<4096&&(L[c++]=y<<8|Z,c>=h+1&&u<12&&(++u,h=h<<1|1)),y=N}else c=s+1,h=(1<<(u=n+1))-1,y=null}return w!==r&&Ce.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 Wc(t){var A,e,r,n,i,s=Math.floor,c=new Array(64),u=new Array(64),h=new Array(64),B=new Array(64),p=new Array(65535),w=new Array(65535),g=new Array(64),L=new Array(64),y=[],N=0,U=7,I=new Array(64),j=new Array(64),Z=new Array(64),Y=new Array(256),z=new Array(2048),W=[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],T=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],AA=[0,1,2,3,4,5,6,7,8,9,10,11],uA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],H=[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],x=[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],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],sA=[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 nA(Q,_){for(var O=0,R=0,X=new Array,iA=1;iA<=16;iA++){for(var aA=1;aA<=Q[iA];aA++)X[_[R]]=[],X[_[R]][0]=O,X[_[R]][1]=iA,R++,O++;O*=2}return X}function cA(Q){for(var _=Q[0],O=Q[1]-1;O>=0;)_&1<<O&&(N|=1<<U),O--,--U<0&&(N==255?(eA(255),eA(0)):eA(N),U=7,N=0)}function eA(Q){y.push(Q)}function hA(Q){eA(Q>>8&255),eA(255&Q)}function fA(Q,_,O,R,X){for(var iA,aA=X[0],oA=X[240],FA=function(CA,yA){var IA,EA,MA,XA,Ae,te,se,de,qA,re,xA=0;for(qA=0;qA<8;++qA){IA=CA[xA],EA=CA[xA+1],MA=CA[xA+2],XA=CA[xA+3],Ae=CA[xA+4],te=CA[xA+5],se=CA[xA+6];var it=IA+(de=CA[xA+7]),ce=IA-de,Rt=EA+se,ve=EA-se,Le=MA+te,cr=MA-te,le=XA+Ae,vn=XA-Ae,xe=it+le,Gt=it-le,yr=Rt+Le,He=Rt-Le;CA[xA]=xe+yr,CA[xA+4]=xe-yr;var JA=.707106781*(He+Gt);CA[xA+2]=Gt+JA,CA[xA+6]=Gt-JA;var fe=.382683433*((xe=vn+cr)-(He=ve+ce)),mn=.5411961*xe+fe,et=1.306562965*He+fe,ur=.707106781*(yr=cr+ve),lr=ce+ur,RA=ce-ur;CA[xA+5]=RA+mn,CA[xA+3]=RA-mn,CA[xA+1]=lr+et,CA[xA+7]=lr-et,xA+=8}for(xA=0,qA=0;qA<8;++qA){IA=CA[xA],EA=CA[xA+8],MA=CA[xA+16],XA=CA[xA+24],Ae=CA[xA+32],te=CA[xA+40],se=CA[xA+48];var jt=IA+(de=CA[xA+56]),fr=IA-de,pt=EA+se,We=EA-se,Re=MA+te,bt=MA-te,Pn=XA+Ae,br=XA-Ae,Vt=jt+Pn,qt=jt-Pn,Wt=pt+Re,hr=pt-Re;CA[xA]=Vt+Wt,CA[xA+32]=Vt-Wt;var St=.707106781*(hr+qt);CA[xA+16]=qt+St,CA[xA+48]=qt-St;var Br=.382683433*((Vt=br+bt)-(hr=We+fr)),Cn=.5411961*Vt+Br,Mn=1.306562965*hr+Br,Kn=.707106781*(Wt=bt+We),kn=fr+Kn,Rn=fr-Kn;CA[xA+40]=Rn+Cn,CA[xA+24]=Rn-Cn,CA[xA+8]=kn+Mn,CA[xA+56]=kn-Mn,xA++}for(qA=0;qA<64;++qA)re=CA[qA]*yA[qA],g[qA]=re>0?re+.5|0:re-.5|0;return g}(Q,_),QA=0;QA<64;++QA)L[W[QA]]=FA[QA];var SA=L[0]-O;O=L[0],SA==0?cA(R[0]):(cA(R[w[iA=32767+SA]]),cA(p[iA]));for(var DA=63;DA>0&&L[DA]==0;)DA--;if(DA==0)return cA(aA),O;for(var GA,gA=1;gA<=DA;){for(var M=gA;L[gA]==0&&gA<=DA;)++gA;var YA=gA-M;if(YA>=16){GA=YA>>4;for(var PA=1;PA<=GA;++PA)cA(oA);YA&=15}iA=32767+L[gA],cA(X[(YA<<4)+w[iA]]),cA(p[iA]),gA++}return DA!=63&&cA(aA),O}function UA(Q){Q=Math.min(Math.max(Q,1),100),i!=Q&&(function(_){for(var O=[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],R=0;R<64;R++){var X=s((O[R]*_+50)/100);X=Math.min(Math.max(X,1),255),c[W[R]]=X}for(var iA=[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 oA=s((iA[aA]*_+50)/100);oA=Math.min(Math.max(oA,1),255),u[W[aA]]=oA}for(var FA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],QA=0,SA=0;SA<8;SA++)for(var DA=0;DA<8;DA++)h[QA]=1/(c[W[QA]]*FA[SA]*FA[DA]*8),B[QA]=1/(u[W[QA]]*FA[SA]*FA[DA]*8),QA++}(Q<50?Math.floor(5e3/Q):Math.floor(200-2*Q)),i=Q)}this.encode=function(Q,_){_&&UA(_),y=new Array,N=0,U=7,hA(65496),hA(65504),hA(16),eA(74),eA(70),eA(73),eA(70),eA(0),eA(1),eA(1),eA(0),hA(1),hA(1),eA(0),eA(0),function(){hA(65499),hA(132),eA(0);for(var EA=0;EA<64;EA++)eA(c[EA]);eA(1);for(var MA=0;MA<64;MA++)eA(u[MA])}(),function(EA,MA){hA(65472),hA(17),eA(8),hA(MA),hA(EA),eA(3),eA(1),eA(17),eA(0),eA(2),eA(17),eA(1),eA(3),eA(17),eA(1)}(Q.width,Q.height),function(){hA(65476),hA(418),eA(0);for(var EA=0;EA<16;EA++)eA(T[EA+1]);for(var MA=0;MA<=11;MA++)eA(AA[MA]);eA(16);for(var XA=0;XA<16;XA++)eA(uA[XA+1]);for(var Ae=0;Ae<=161;Ae++)eA(H[Ae]);eA(1);for(var te=0;te<16;te++)eA(x[te+1]);for(var se=0;se<=11;se++)eA(K[se]);eA(17);for(var de=0;de<16;de++)eA(P[de+1]);for(var qA=0;qA<=161;qA++)eA(sA[qA])}(),hA(65498),hA(12),eA(3),eA(1),eA(0),eA(2),eA(17),eA(3),eA(17),eA(0),eA(63),eA(0);var O=0,R=0,X=0;N=0,U=7,this.encode.displayName="_encode_";for(var iA,aA,oA,FA,QA,SA,DA,GA,gA,M=Q.data,YA=Q.width,PA=Q.height,CA=4*YA,yA=0;yA<PA;){for(iA=0;iA<CA;){for(QA=CA*yA+iA,DA=-1,GA=0,gA=0;gA<64;gA++)SA=QA+(GA=gA>>3)*CA+(DA=4*(7&gA)),yA+GA>=PA&&(SA-=CA*(yA+1+GA-PA)),iA+DA>=CA&&(SA-=iA+DA-CA+4),aA=M[SA++],oA=M[SA++],FA=M[SA++],I[gA]=(z[aA]+z[oA+256>>0]+z[FA+512>>0]>>16)-128,j[gA]=(z[aA+768>>0]+z[oA+1024>>0]+z[FA+1280>>0]>>16)-128,Z[gA]=(z[aA+1280>>0]+z[oA+1536>>0]+z[FA+1792>>0]>>16)-128;O=fA(I,h,O,A,r),R=fA(j,B,R,e,n),X=fA(Z,B,X,e,n),iA+=32}yA+=8}if(U>=0){var IA=[];IA[1]=U+1,IA[0]=(1<<U+1)-1,cA(IA)}return hA(65497),new Uint8Array(y)},t=t||50,function(){for(var Q=String.fromCharCode,_=0;_<256;_++)Y[_]=Q(_)}(),A=nA(T,AA),e=nA(x,K),r=nA(uA,H),n=nA(P,sA),function(){for(var Q=1,_=2,O=1;O<=15;O++){for(var R=Q;R<_;R++)w[32767+R]=O,p[32767+R]=[],p[32767+R][1]=O,p[32767+R][0]=R;for(var X=-(_-1);X<=-Q;X++)w[32767+X]=O,p[32767+X]=[],p[32767+X][1]=O,p[32767+X][0]=_-1+X;Q<<=1,_<<=1}}(),function(){for(var Q=0;Q<256;Q++)z[Q]=19595*Q,z[Q+256>>0]=38470*Q,z[Q+512>>0]=7471*Q+32768,z[Q+768>>0]=-11059*Q,z[Q+1024>>0]=-21709*Q,z[Q+1280>>0]=32768*Q+8421375,z[Q+1536>>0]=-27439*Q,z[Q+1792>>0]=-5329*Q}(),UA(t)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function nr(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 Of(t){function A(T){if(!T)throw Error("assert :P")}function e(T,AA,uA){for(var H=0;4>H;H++)if(T[AA+H]!=uA.charCodeAt(H))return!0;return!1}function r(T,AA,uA,H,x){for(var K=0;K<x;K++)T[AA+K]=uA[H+K]}function n(T,AA,uA,H){for(var x=0;x<H;x++)T[AA+x]=uA}function i(T){return new Int32Array(T)}function s(T,AA){for(var uA=[],H=0;H<T;H++)uA.push(new AA);return uA}function c(T,AA){var uA=[];return function H(x,K,P){for(var sA=P[K],nA=0;nA<sA&&(x.push(P.length>K+1?[]:new AA),!(P.length<K+1));nA++)H(x[nA],K+1,P)}(uA,0,T),uA}var u=function(){var T=this;function AA(a,o){for(var f=1<<o-1>>>0;a&f;)f>>>=1;return f?(a&f-1)+f:a}function uA(a,o,f,d,v){A(!(d%f));do a[o+(d-=f)]=v;while(0<d)}function H(a,o,f,d,v){if(A(2328>=v),512>=v)var C=i(512);else if((C=i(v))==null)return 0;return function(F,b,E,S,G,tA){var rA,J,wA=b,lA=1<<E,V=i(16),q=i(16);for(A(G!=0),A(S!=null),A(F!=null),A(0<E),J=0;J<G;++J){if(15<S[J])return 0;++V[S[J]]}if(V[0]==G)return 0;for(q[1]=0,rA=1;15>rA;++rA){if(V[rA]>1<<rA)return 0;q[rA+1]=q[rA]+V[rA]}for(J=0;J<G;++J)rA=S[J],0<S[J]&&(tA[q[rA]++]=J);if(q[15]==1)return(S=new x).g=0,S.value=tA[0],uA(F,wA,1,lA,S),lA;var dA,vA=-1,pA=lA-1,_A=0,bA=1,kA=1,LA=1<<E;for(J=0,rA=1,G=2;rA<=E;++rA,G<<=1){if(bA+=kA<<=1,0>(kA-=V[rA]))return 0;for(;0<V[rA];--V[rA])(S=new x).g=rA,S.value=tA[J++],uA(F,wA+_A,G,LA,S),_A=AA(_A,rA)}for(rA=E+1,G=2;15>=rA;++rA,G<<=1){if(bA+=kA<<=1,0>(kA-=V[rA]))return 0;for(;0<V[rA];--V[rA]){if(S=new x,(_A&pA)!=vA){for(wA+=LA,dA=1<<(vA=rA)-E;15>vA&&!(0>=(dA-=V[vA]));)++vA,dA<<=1;lA+=LA=1<<(dA=vA-E),F[b+(vA=_A&pA)].g=dA+E,F[b+vA].value=wA-b-vA}S.g=rA-E,S.value=tA[J++],uA(F,wA+(_A>>E),G,LA,S),_A=AA(_A,rA)}}return bA!=2*q[15]-1?0:lA}(a,o,f,d,v,C)}function x(){this.value=this.g=0}function K(){this.value=this.g=0}function P(){this.G=s(5,x),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(vt,K)}function sA(a,o,f,d){A(a!=null),A(o!=null),A(2147483648>d),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=o,a.pa=f,a.Jd=o,a.Yc=f+d,a.Zc=4<=d?f+d-4+1:f,iA(a)}function nA(a,o){for(var f=0;0<o--;)f|=oA(a,128)<<o;return f}function cA(a,o){var f=nA(a,o);return aA(a)?-f:f}function eA(a,o,f,d){var v,C=0;for(A(a!=null),A(o!=null),A(4294967288>d),a.Sb=d,a.Ra=0,a.u=0,a.h=0,4<d&&(d=4),v=0;v<d;++v)C+=o[f+v]<<8*v;a.Ra=C,a.bb=d,a.oa=o,a.pa=f}function hA(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<ri-8>>>0,++a.bb,a.u-=8;O(a)&&(a.h=1,a.u=0)}function fA(a,o){if(A(0<=o),!a.h&&o<=ti){var f=_(a)&ei[o];return a.u+=o,hA(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 Q(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(a){return a.Ra>>>(a.u&ri-1)>>>0}function O(a){return A(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>ri}function R(a,o){a.u=o,a.h=O(a)}function X(a){a.u>=Yi&&(A(a.u>=Yi),hA(a))}function iA(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 nA(a,1)}function oA(a,o){var f=a.Ca;0>a.b&&iA(a);var d=a.b,v=f*o>>>8,C=(a.I>>>d>v)+0;for(C?(f-=v,a.I-=v+1<<d>>>0):f=v+1,d=f,v=0;256<=d;)v+=8,d>>=8;return d=7^v+mt[d],a.b-=d,a.Ca=(f<<d)-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 SA(a,o){return QA(a,o)|a[o+2]<<16}function DA(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 M(){this.X=[],this.Xa=this.Mb=0}function YA(a,o,f,d){A(f!=null),A(d!=null);var v=f[0],C=d[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,d[0]=C,1)}function PA(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){T[o]=function(f,d,v,C,F,b,E){var S;for(S=0;S<F;++S){var G=T[a](b[E+S-1],v,C+S);b[E+S]=CA(f[d+S],G)}}}function IA(){this.ud=this.hd=this.jd=0}function EA(a,o){return((4278124286&(a^o))>>>1)+(a&o)>>>0}function MA(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function XA(a,o){return MA(a+(a-o+.5>>1))}function Ae(a,o,f){return Math.abs(o-f)-Math.abs(a-f)}function te(a,o,f,d,v,C,F){for(d=C[F-1],f=0;f<v;++f)C[F+f]=d=CA(a[o+f],d)}function se(a,o,f,d,v){var C;for(C=0;C<f;++C){var F=a[o+C],b=F>>8&255,E=16711935&(E=(E=16711935&F)+((b<<16)+b));d[v+C]=(4278255360&F)+E>>>0}}function de(a,o){o.jd=a>>0&255,o.hd=a>>8&255,o.ud=a>>16&255}function qA(a,o,f,d,v,C){var F;for(F=0;F<d;++F){var b=o[f+F],E=b>>>8,S=b,G=255&(G=(G=b>>>16)+((a.jd<<24>>24)*(E<<24>>24)>>>5));S=255&(S=(S=S+((a.hd<<24>>24)*(E<<24>>24)>>>5))+((a.ud<<24>>24)*(G<<24>>24)>>>5)),v[C+F]=(4278255360&b)+(G<<16)+S}}function re(a,o,f,d,v){T[o]=function(C,F,b,E,S,G,tA,rA,J){for(E=tA;E<rA;++E)for(tA=0;tA<J;++tA)S[G++]=v(b[d(C[F++])])},T[a]=function(C,F,b,E,S,G,tA){var rA=8>>C.b,J=C.Ea,wA=C.K[0],lA=C.w;if(8>rA)for(C=(1<<C.b)-1,lA=(1<<rA)-1;F<b;++F){var V,q=0;for(V=0;V<J;++V)V&C||(q=d(E[S++])),G[tA++]=v(wA[q&lA]),q>>=rA}else T["VP8LMapColor"+f](E,S,wA,lA,G,tA,F,b,J)}}function xA(a,o,f,d,v){for(f=o+f;o<f;){var C=a[o++];d[v++]=C>>16&255,d[v++]=C>>8&255,d[v++]=C>>0&255}}function it(a,o,f,d,v){for(f=o+f;o<f;){var C=a[o++];d[v++]=C>>16&255,d[v++]=C>>8&255,d[v++]=C>>0&255,d[v++]=C>>24&255}}function ce(a,o,f,d,v){for(f=o+f;o<f;){var C=(F=a[o++])>>16&240|F>>12&15,F=F>>0&240|F>>28&15;d[v++]=C,d[v++]=F}}function Rt(a,o,f,d,v){for(f=o+f;o<f;){var C=(F=a[o++])>>16&248|F>>13&7,F=F>>5&224|F>>3&31;d[v++]=C,d[v++]=F}}function ve(a,o,f,d,v){for(f=o+f;o<f;){var C=a[o++];d[v++]=C>>0&255,d[v++]=C>>8&255,d[v++]=C>>16&255}}function Le(a,o,f,d,v,C){if(C==0)for(f=o+f;o<f;)FA(d,((C=a[o++])[0]>>24|C[1]>>8&65280|C[2]<<8&16711680|C[3]<<24)>>>0),v+=32;else r(d,v,a,o,f)}function cr(a,o){T[o][0]=T[a+"0"],T[o][1]=T[a+"1"],T[o][2]=T[a+"2"],T[o][3]=T[a+"3"],T[o][4]=T[a+"4"],T[o][5]=T[a+"5"],T[o][6]=T[a+"6"],T[o][7]=T[a+"7"],T[o][8]=T[a+"8"],T[o][9]=T[a+"9"],T[o][10]=T[a+"10"],T[o][11]=T[a+"11"],T[o][12]=T[a+"12"],T[o][13]=T[a+"13"],T[o][14]=T[a+"0"],T[o][15]=T[a+"0"]}function le(a){return a==rc||a==nc||a==ss||a==ic}function vn(){this.eb=[],this.size=this.A=this.fb=0}function xe(){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 Gt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new vn,this.f.kb=new xe,this.sd=null}function yr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function He(){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 JA(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function fe(a,o){var f=a.T,d=o.ba.f.RGBA,v=d.eb,C=d.fb+a.ka*d.A,F=Tt[o.ba.S],b=a.y,E=a.O,S=a.f,G=a.N,tA=a.ea,rA=a.W,J=o.cc,wA=o.dc,lA=o.Mc,V=o.Nc,q=a.ka,dA=a.ka+a.T,vA=a.U,pA=vA+1>>1;for(q==0?F(b,E,null,null,S,G,tA,rA,S,G,tA,rA,v,C,null,null,vA):(F(o.ec,o.fc,b,E,J,wA,lA,V,S,G,tA,rA,v,C-d.A,v,C,vA),++f);q+2<dA;q+=2)J=S,wA=G,lA=tA,V=rA,G+=a.Rc,rA+=a.Rc,C+=2*d.A,F(b,(E+=2*a.fa)-a.fa,b,E,J,wA,lA,V,S,G,tA,rA,v,C-d.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,S,G,pA),r(o.Mc,o.Nc,tA,rA,pA),f--):1&dA||F(b,E,null,null,S,G,tA,rA,S,G,tA,rA,v,C+d.A,null,null,vA),f}function mn(a,o,f){var d=a.F,v=[a.J];if(d!=null){var C=a.U,F=o.ba.S,b=F==as||F==ss;o=o.ba.f.RGBA;var E=[0],S=a.ka;E[0]=a.T,a.Kb&&(S==0?--E[0]:(--S,v[0]-=a.width),a.j+a.ka+a.T==a.o&&(E[0]=a.o-a.j-S));var G=o.eb;S=o.fb+S*o.A,a=es(d,v[0],a.width,C,E,G,S+(b?0:3),o.A),A(f==E),a&&le(F)&&zr(G,S,b,C,E,o.A)}return 0}function et(a){var o=a.ma,f=o.ba.S,d=11>f,v=f==ns||f==is||f==as||f==tc||f==12||le(f);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!Ji(o.Oa,a,v?11:12))return 0;if(v&&le(f)&&mA(),a.da)alert("todo:use_scaling");else{if(d){if(o.Ib=JA,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=fe,mA()}}else alert("todo:EmitYUV");v&&(o.Jb=mn,d&&$())}if(d&&!el){for(a=0;256>a;++a)U0[a]=89858*(a-128)+cs>>os,L0[a]=-22014*(a-128)+cs,b0[a]=-45773*(a-128),y0[a]=113618*(a-128)+cs>>os;for(a=ra;a<oc;++a)o=76283*(a-16)+cs>>os,E0[a-ra]=Lt(o,255),I0[a-ra]=Lt(o+8>>4,15);el=1}return 1}function ur(a){var o=a.ma,f=a.U,d=a.T;return A(!(1&a.ka)),0>=f||0>=d?0:(f=o.Ib(a,o),o.Jb!=null&&o.Jb(a,o,f),o.Dc+=f,1)}function lr(a){a.ma.memory=null}function RA(a,o,f,d){return fA(a,8)!=47?0:(o[0]=fA(a,14)+1,f[0]=fA(a,14)+1,d[0]=fA(a,1),fA(a,3)!=0?0:!a.h)}function jt(a,o){if(4>a)return a+1;var f=a-2>>1;return(2+(1&a)<<f)+fA(o,f)+1}function fr(a,o){return 120<o?o-120:1<=(f=((f=u0[o-1])>>4)*a+(8-(15&f)))?f:1;var f}function pt(a,o,f){var d=_(f),v=a[o+=255&d].g-8;return 0<v&&(R(f,f.u+8),d=_(f),o+=a[o].value,o+=d&(1<<v)-1),R(f,f.u+a[o].g),a[o].value}function We(a,o,f){return f.g+=a.g,f.value+=a.value<<o>>>0,A(8>=f.g),a.g}function Re(a,o,f){var d=a.xc;return A((o=d==0?0:a.vc[a.md*(f>>d)+(o>>d)])<a.Wb),a.Ya[o]}function bt(a,o,f,d){var v=a.ab,C=a.c*o,F=a.C;o=F+o;var b=f,E=d;for(d=a.Ta,f=a.Ua;0<v--;){var S=a.gc[v],G=F,tA=o,rA=b,J=E,wA=(E=d,b=f,S.Ea);switch(A(G<tA),A(tA<=S.nc),S.hc){case 2:As(rA,J,(tA-G)*wA,E,b);break;case 0:var lA=G,V=tA,q=E,dA=b,vA=(LA=S).Ea;lA==0&&(Zo(rA,J,null,null,1,q,dA),te(rA,J+1,0,0,vA-1,q,dA+1),J+=vA,dA+=vA,++lA);for(var pA=1<<LA.b,_A=pA-1,bA=PA(vA,LA.b),kA=LA.K,LA=LA.w+(lA>>LA.b)*bA;lA<V;){var ue=kA,Be=LA,oe=1;for(Zi(rA,J,q,dA-vA,1,q,dA);oe<vA;){var ne=(oe&~_A)+pA;ne>vA&&(ne=vA),(0,qr[ue[Be++]>>8&15])(rA,J+ +oe,q,dA+oe-vA,ne-oe,q,dA+oe),oe=ne}J+=vA,dA+=vA,++lA&_A||(LA+=bA)}tA!=S.nc&&r(E,b-wA,E,b+(tA-G-1)*wA,wA);break;case 1:for(wA=rA,V=J,vA=(rA=S.Ea)-(dA=rA&~(q=(J=1<<S.b)-1)),lA=PA(rA,S.b),pA=S.K,S=S.w+(G>>S.b)*lA;G<tA;){for(_A=pA,bA=S,kA=new IA,LA=V+dA,ue=V+rA;V<LA;)de(_A[bA++],kA),Nt(kA,wA,V,J,E,b),V+=J,b+=J;V<ue&&(de(_A[bA++],kA),Nt(kA,wA,V,vA,E,b),V+=vA,b+=vA),++G&q||(S+=lA)}break;case 3:if(rA==E&&J==b&&0<S.b){for(V=E,rA=wA=b+(tA-G)*wA-(dA=(tA-G)*PA(S.Ea,S.b)),J=E,q=b,lA=[],dA=(vA=dA)-1;0<=dA;--dA)lA[dA]=J[q+dA];for(dA=vA-1;0<=dA;--dA)V[rA+dA]=lA[dA];Yt(S,G,tA,E,wA,E,b)}else Yt(S,G,tA,rA,J,E,b)}b=d,E=f}E!=f&&r(d,f,b,E,C)}function Pn(a,o){var f=a.V,d=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,F=a.Ta,b=a.Ua,E=C.width;if(bt(a,v,f,d),v=b=[b],A((f=a.C)<(d=o)),A(C.v<C.va),d>C.o&&(d=C.o),f<C.j){var S=C.j-f;f=C.j,v[0]+=S*E}if(f>=d?f=0:(v[0]+=4*C.v,C.ka=f-C.j,C.U=C.va-C.v,C.T=d-f,f=1),f){if(b=b[0],11>(f=a.ca).S){var G=f.f.RGBA,tA=(d=f.S,v=C.U,C=C.T,S=G.eb,G.A),rA=C;for(G=G.fb+a.Ma*G.A;0<rA--;){var J=F,wA=b,lA=v,V=S,q=G;switch(d){case rs:Zt(J,wA,lA,V,q);break;case ns:Wr(J,wA,lA,V,q);break;case rc:Wr(J,wA,lA,V,q),zr(V,q,0,lA,1,0);break;case Vu:ni(J,wA,lA,V,q);break;case is:Le(J,wA,lA,V,q,1);break;case nc:Le(J,wA,lA,V,q,1),zr(V,q,0,lA,1,0);break;case as:Le(J,wA,lA,V,q,0);break;case ss:Le(J,wA,lA,V,q,0),zr(V,q,1,lA,1,0);break;case tc:dr(J,wA,lA,V,q);break;case ic:dr(J,wA,lA,V,q),si(V,q,lA,1,0);break;case qu:xr(J,wA,lA,V,q);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 br(a){var o;if(0<a.ua)return 0;for(o=0;o<a.Wb;++o){var f=a.Ya[o].G,d=a.Ya[o].H;if(0<f[1][d[1]+0].g||0<f[2][d[2]+0].g||0<f[3][d[3]+0].g)return 0}return 1}function Vt(a,o,f,d,v,C){if(a.Z!=0){var F=a.qd,b=a.rd;for(A(Zr[a.Z]!=null);o<f;++o)Zr[a.Z](F,b,d,v,d,v,C),F=d,b=v,v+=C;a.qd=F,a.rd=b}}function qt(a,o){var f=a.l.ma,d=f.Z==0||f.Z==1?a.l.j:a.C;if(d=a.C<d?d:a.C,A(o<=a.l.o),o>d){var v=a.l.width,C=f.ca,F=f.tb+v*d,b=a.V,E=a.Ba+a.c*d,S=a.gc;A(a.ab==1),A(S[0].hc==3),$o(S[0],d,o,b,E,C,F),Vt(f,d,o,C,F,v)}a.C=a.Ma=o}function Wt(a,o,f,d,v,C,F){var b=a.$/d,E=a.$%d,S=a.m,G=a.s,tA=f+a.$,rA=tA;v=f+d*v;var J=f+d*C,wA=280+G.ua,lA=a.Pb?b:16777216,V=0<G.ua?G.Wa:null,q=G.wc,dA=tA<J?Re(G,E,b):null;A(a.C<C),A(J<=v);var vA=!1;A:for(;;){for(;vA||tA<J;){var pA=0;if(b>=lA){var _A=tA-f;A((lA=a).Pb),lA.wd=lA.m,lA.xd=_A,0<lA.s.ua&&gA(lA.s.Wa,lA.s.vb),lA=b+f0}if(E&q||(dA=Re(G,E,b)),A(dA!=null),dA.Qb&&(o[tA]=dA.qb,vA=!0),!vA)if(X(S),dA.jc){pA=S,_A=o;var bA=tA,kA=dA.pd[_(pA)&vt-1];A(dA.jc),256>kA.g?(R(pA,pA.u+kA.g),_A[bA]=kA.value,pA=0):(R(pA,pA.u+kA.g-256),A(256<=kA.value),pA=kA.value),pA==0&&(vA=!0)}else pA=pt(dA.G[0],dA.H[0],S);if(S.h)break;if(vA||256>pA){if(!vA)if(dA.nd)o[tA]=(dA.qb|pA<<8)>>>0;else{if(X(S),vA=pt(dA.G[1],dA.H[1],S),X(S),_A=pt(dA.G[2],dA.H[2],S),bA=pt(dA.G[3],dA.H[3],S),S.h)break;o[tA]=(bA<<24|vA<<16|pA<<8|_A)>>>0}if(vA=!1,++tA,++E>=d&&(E=0,++b,F!=null&&b<=C&&!(b%16)&&F(a,b),V!=null))for(;rA<tA;)pA=o[rA++],V.X[(506832829*pA&4294967295)>>>V.Mb]=pA}else if(280>pA){if(pA=jt(pA-256,S),_A=pt(dA.G[4],dA.H[4],S),X(S),_A=fr(d,_A=jt(_A,S)),S.h)break;if(tA-f<_A||v-tA<pA)break A;for(bA=0;bA<pA;++bA)o[tA+bA]=o[tA+bA-_A];for(tA+=pA,E+=pA;E>=d;)E-=d,++b,F!=null&&b<=C&&!(b%16)&&F(a,b);if(A(tA<=v),E&q&&(dA=Re(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>>>(_A=V).Xa)),o[pA]=_A.X[vA],vA=!0}vA||A(S.h==O(S))}if(a.Pb&&S.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(S.h)break A;F!=null&&F(a,b>C?C:b),a.a=0,a.$=tA-f}return 1}return a.a=3,0}function hr(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 St(){var a=new Yo;return a==null?null:(a.a=0,a.xb=Ju,cr("Predictor","VP8LPredictors"),cr("Predictor","VP8LPredictors_C"),cr("PredictorAdd","VP8LPredictorsAdd"),cr("PredictorAdd","VP8LPredictorsAdd_C"),As=se,Nt=qA,Zt=xA,Wr=it,dr=ce,xr=Rt,ni=ve,T.VP8LMapColor32b=$i,T.VP8LMapColor8b=Ac,a)}function Br(a,o,f,d,v){var C=1,F=[a],b=[o],E=d.m,S=d.s,G=null,tA=0;A:for(;;){if(f)for(;C&&fA(E,1);){var rA=F,J=b,wA=d,lA=1,V=wA.m,q=wA.gc[wA.ab],dA=fA(V,2);if(wA.Oc&1<<dA)C=0;else{switch(wA.Oc|=1<<dA,q.hc=dA,q.Ea=rA[0],q.nc=J[0],q.K=[null],++wA.ab,A(4>=wA.ab),dA){case 0:case 1:q.b=fA(V,3)+2,lA=Br(PA(q.Ea,q.b),PA(q.nc,q.b),0,wA,q.K),q.K=q.K[0];break;case 3:var vA,pA=fA(V,8)+1,_A=16<pA?0:4<pA?1:2<pA?2:3;if(rA[0]=PA(q.Ea,_A),q.b=_A,vA=lA=Br(pA,1,0,wA,q.K)){var bA,kA=pA,LA=q,ue=1<<(8>>LA.b),Be=i(ue);if(Be==null)vA=0;else{var oe=LA.K[0],ne=LA.w;for(Be[0]=LA.K[0][0],bA=1;bA<1*kA;++bA)Be[bA]=CA(oe[ne+bA],Be[bA-1]);for(;bA<4*ue;++bA)Be[bA]=0;LA.K[0]=null,LA.K[0]=Be,vA=1}}lA=vA;break;case 2:break;default:A(0)}C=lA}}if(F=F[0],b=b[0],C&&fA(E,1)&&!(C=1<=(tA=fA(E,4))&&11>=tA)){d.a=3;break A}var me;if(me=C)e:{var pe,$A,je,Ct=d,Ve=F,Qt=b,ge=tA,It=f,xt=Ct.m,Ye=Ct.s,tt=[null],Bt=1,Ot=0,pr=l0[ge];t:for(;;){if(It&&fA(xt,1)){var Ze=fA(xt,3)+2,Dr=PA(Ve,Ze),En=PA(Qt,Ze),oi=Dr*En;if(!Br(Dr,En,0,Ct,tt))break t;for(tt=tt[0],Ye.xc=Ze,pe=0;pe<oi;++pe){var $r=tt[pe]>>8&65535;tt[pe]=$r,$r>=Bt&&(Bt=$r+1)}}if(xt.h)break t;for($A=0;5>$A;++$A){var Ne=Wu[$A];!$A&&0<ge&&(Ne+=1<<ge),Ot<Ne&&(Ot=Ne)}var cc=s(Bt*pr,x),nl=Bt,il=s(nl,P);if(il==null)var ls=null;else A(65536>=nl),ls=il;var na=i(Ot);if(ls==null||na==null||cc==null){Ct.a=1;break t}var fs=cc;for(pe=je=0;pe<Bt;++pe){var tr=ls[pe],ci=tr.G,ui=tr.H,al=0,hs=1,sl=0;for($A=0;5>$A;++$A){Ne=Wu[$A],ci[$A]=fs,ui[$A]=je,!$A&&0<ge&&(Ne+=1<<ge);n:{var Bs,uc=Ne,gs=Ct,ia=na,S0=fs,N0=je,lc=0,An=gs.m,_0=fA(An,1);if(n(ia,0,0,uc),_0){var D0=fA(An,1)+1,T0=fA(An,1),ol=fA(An,T0==0?1:8);ia[ol]=1,D0==2&&(ia[ol=fA(An,8)]=1);var ds=1}else{var cl=i(19),ul=fA(An,4)+4;if(19<ul){gs.a=3;var ps=0;break n}for(Bs=0;Bs<ul;++Bs)cl[c0[Bs]]=fA(An,3);var fc=void 0,aa=void 0,ll=gs,O0=cl,ws=uc,fl=ia,hc=0,en=ll.m,hl=8,Bl=s(128,x);r:for(;H(Bl,0,7,O0,19);){if(fA(en,1)){var P0=2+2*fA(en,3);if((fc=2+fA(en,P0))>ws)break r}else fc=ws;for(aa=0;aa<ws&&fc--;){X(en);var gl=Bl[0+(127&_(en))];R(en,en.u+gl.g);var li=gl.value;if(16>li)fl[aa++]=li,li!=0&&(hl=li);else{var M0=li==16,dl=li-16,K0=s0[dl],pl=fA(en,a0[dl])+K0;if(aa+pl>ws)break r;for(var k0=M0?hl:0;0<pl--;)fl[aa++]=k0}}hc=1;break r}hc||(ll.a=3),ds=hc}(ds=ds&&!An.h)&&(lc=H(S0,N0,8,ia,uc)),ds&&lc!=0?ps=lc:(gs.a=3,ps=0)}if(ps==0)break t;if(hs&&o0[$A]==1&&(hs=fs[je].g==0),al+=fs[je].g,je+=ps,3>=$A){var sa,Bc=na[0];for(sa=1;sa<Ne;++sa)na[sa]>Bc&&(Bc=na[sa]);sl+=Bc}}if(tr.nd=hs,tr.Qb=0,hs&&(tr.qb=(ci[3][ui[3]+0].value<<24|ci[1][ui[1]+0].value<<16|ci[2][ui[2]+0].value)>>>0,al==0&&256>ci[0][ui[0]+0].value&&(tr.Qb=1,tr.qb+=ci[0][ui[0]+0].value<<8)),tr.jc=!tr.Qb&&6>sl,tr.jc){var vs,Tr=tr;for(vs=0;vs<vt;++vs){var tn=vs,rn=Tr.pd[tn],ms=Tr.G[0][Tr.H[0]+tn];256<=ms.value?(rn.g=ms.g+256,rn.value=ms.value):(rn.g=0,rn.value=0,tn>>=We(ms,8,rn),tn>>=We(Tr.G[1][Tr.H[1]+tn],16,rn),tn>>=We(Tr.G[2][Tr.H[2]+tn],0,rn),We(Tr.G[3][Tr.H[3]+tn],24,rn))}}}Ye.vc=tt,Ye.Wb=Bt,Ye.Ya=ls,Ye.yc=cc,me=1;break e}me=0}if(!(C=me)){d.a=3;break A}if(0<tA){if(S.ua=1<<tA,!GA(S.Wa,tA)){d.a=1,C=0;break A}}else S.ua=0;var gc=d,wl=F,R0=b,dc=gc.s,pc=dc.xc;if(gc.c=wl,gc.i=R0,dc.md=PA(wl,pc),dc.wc=pc==0?-1:(1<<pc)-1,f){d.xb=v0;break A}if((G=i(F*b))==null){d.a=1,C=0;break A}C=(C=Wt(d,G,0,F,b,b,null))&&!E.h;break A}return C?(v!=null?v[0]=G:(A(G==null),A(f)),d.$=0,f||hr(S)):hr(S),C}function Cn(a,o){var f=a.c*a.i,d=f+o+16*o;return A(a.c<=o),a.V=i(d),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 Mn(a,o){var f=a.C,d=o-f,v=a.V,C=a.Ba+a.c*f;for(A(o<=a.l.o);0<d;){var F=16<d?16:d,b=a.l.ma,E=a.l.width,S=E*F,G=b.ca,tA=b.tb+E*f,rA=a.Ta,J=a.Ua;bt(a,F,v,C),Mu(rA,J,G,tA,S),Vt(b,f,f+F,G,tA,E),d-=F,v+=F*a.c,f+=F}A(f==o),a.C=a.Ma=o}function Kn(){this.ub=this.yd=this.td=this.Rb=0}function kn(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Rn(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function _a(){this.Yb=function(){var a=[];return function o(f,d,v){for(var C=v[d],F=0;F<C&&(f.push(v.length>d+1?[]:0),!(v.length<d+1));F++)o(f[F],d+1,v)}(a,0,[3,11]),a}()}function Eo(){this.jb=i(3),this.Wc=c([4,8],_a),this.Xc=c([4,17],_a)}function Io(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Gn(){this.ld=this.La=this.dd=this.tc=0}function Da(){this.Na=this.la=0}function xo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ni(){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 Ho(){this.uc=this.M=this.Nb=0,this.wa=Array(new Gn),this.Y=0,this.ya=Array(new Ni),this.aa=0,this.l=new jn}function Ta(){this.y=i(16),this.f=i(8),this.ea=i(8)}function So(){this.cb=this.a=0,this.sc="",this.m=new UA,this.Od=new Kn,this.Kc=new kn,this.ed=new Io,this.Qa=new Rn,this.Ic=this.$c=this.Aa=0,this.D=new Ho,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,xo),this.Pa=new Eo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ta),this.Hd=0,this.rb=Array(new Da),this.sb=0,this.wa=Array(new Gn),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 Ni),this.L=this.aa=0,this.gd=c([4,2],Gn),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 jn(){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 No(){var a=new So;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,ta||(ta=Ma)),a}function De(a,o,f){return a.a==0&&(a.a=o,a.sc=f,a.cb=0),0}function Oa(a,o,f){return 3<=f&&a[o+0]==157&&a[o+1]==1&&a[o+2]==42}function Pa(a,o){if(a==null)return 0;if(a.a=0,a.sc="OK",o==null)return De(a,2,"null VP8Io passed to VP8GetHeaders()");var f=o.data,d=o.w,v=o.ha;if(4>v)return De(a,7,"Truncated header.");var C=f[d+0]|f[d+1]<<8|f[d+2]<<16,F=a.Od;if(F.Rb=!(1&C),F.td=C>>1&7,F.yd=C>>4&1,F.ub=C>>5,3<F.td)return De(a,3,"Incorrect keyframe parameters.");if(!F.yd)return De(a,4,"Frame not displayable.");d+=3,v-=3;var b=a.Kc;if(F.Rb){if(7>v)return De(a,7,"cannot parse picture header");if(!Oa(f,d,v))return De(a,3,"Bad code word");b.c=16383&(f[d+4]<<8|f[d+3]),b.Td=f[d+4]>>6,b.i=16383&(f[d+6]<<8|f[d+5]),b.Ud=f[d+6]>>6,d+=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(F.ub>v)return De(a,7,"bad partition length");sA(C=a.m,f,d,F.ub),d+=F.ub,v-=F.ub,F.Rb&&(b.Ld=aA(C),b.Kd=aA(C)),b=a.Qa;var E,S=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)S.jb[E]=aA(C)?nA(C,8):255}else b.Bb=0;if(C.Ka)return De(a,3,"cannot parse segment header");if((b=a.ed).zd=aA(C),b.Tb=nA(C,6),b.wb=nA(C,3),b.Pc=aA(C),b.Pc&&aA(C)){for(S=0;4>S;++S)aA(C)&&(b.vd[S]=cA(C,6));for(S=0;4>S;++S)aA(C)&&(b.od[S]=cA(C,6))}if(a.L=b.Tb==0?0:b.zd?1:2,C.Ka)return De(a,3,"cannot parse filter header");var G=v;if(v=E=d,d=E+G,b=G,a.Xb=(1<<nA(a.m,2))-1,G<3*(S=a.Xb))f=7;else{for(E+=3*S,b-=3*S,G=0;G<S;++G){var tA=f[v+0]|f[v+1]<<8|f[v+2]<<16;tA>b&&(tA=b),sA(a.Jc[+G],f,E,tA),E+=tA,b-=tA,v+=3}sA(a.Jc[+S],f,E,b),f=E<d?0:5}if(f!=0)return De(a,f,"cannot parse partitions");for(f=nA(E=a.m,7),v=aA(E)?cA(E,4):0,d=aA(E)?cA(E,4):0,b=aA(E)?cA(E,4):0,S=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 J=a.pb[tA];J.Sc[0]=ac[Lt(rA+v,127)],J.Sc[1]=sc[Lt(rA+0,127)],J.Eb[0]=2*ac[Lt(rA+d,127)],J.Eb[1]=101581*sc[Lt(rA+b,127)]>>16,8>J.Eb[1]&&(J.Eb[1]=8),J.Qc[0]=ac[Lt(rA+S,117)],J.Qc[1]=sc[Lt(rA+E,127)],J.lc=rA+E}if(!F.Rb)return De(a,4,"Not a key frame.");for(aA(C),F=a.Pa,f=0;4>f;++f){for(v=0;8>v;++v)for(d=0;3>d;++d)for(b=0;11>b;++b)S=oA(C,p0[f][v][d][b])?nA(C,8):g0[f][v][d][b],F.Wc[f][v].Yb[d][b]=S;for(v=0;17>v;++v)F.Xc[f][v]=F.Wc[f][w0[v]]}return a.kc=aA(C),a.kc&&(a.Bd=nA(C,8)),a.cb=1}function Ma(a,o,f,d,v,C,F){var b=o[v].Yb[f];for(f=0;16>v;++v){if(!oA(a,b[f+0]))return v;for(;!oA(a,b[f+1]);)if(b=o[++v].Yb[0],f=0,v==16)return 16;var E=o[v+1].Yb;if(oA(a,b[f+2])){var S=a,G=0;if(oA(S,(rA=b)[(tA=f)+3]))if(oA(S,rA[tA+6])){for(b=0,tA=2*(G=oA(S,rA[tA+8]))+(rA=oA(S,rA[tA+9+G])),G=0,rA=h0[tA];rA[b];++b)G+=G+oA(S,rA[b]);G+=3+(8<<tA)}else oA(S,rA[tA+7])?(G=7+2*oA(S,165),G+=oA(S,145)):G=5+oA(S,159);else G=oA(S,rA[tA+4])?3+oA(S,rA[tA+5]):2;b=E[2]}else G=1,b=E[1];E=F+B0[v],0>(S=a).b&&iA(S);var tA,rA=S.b,J=(tA=S.Ca>>1)-(S.I>>rA)>>31;--S.b,S.Ca+=J,S.Ca|=1,S.I-=(tA+1&J)<<rA,C[E]=((G^J)-J)*d[(0<v)+0]}return 16}function _i(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 _o(a,o){if(a==null)return 0;if(o==null)return De(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!Pa(a,o))return 0;if(A(a.cb),o.ac==null||o.ac(o)){o.ob&&(a.L=0);var f=us[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 d=a.ed;for(f=0;4>f;++f){var v;if(a.Qa.Cb){var C=a.Qa.Lb[f];a.Qa.Fb||(C+=d.Tb)}else C=d.Tb;for(v=0;1>=v;++v){var F=a.gd[f][v],b=C;if(d.Pc&&(b+=d.vd[0],v&&(b+=d.od[0])),0<(b=0>b?0:63<b?63:b)){var E=b;0<d.wb&&(E=4<d.wb?E>>2:E>>1)>9-d.wb&&(E=9-d.wb),1>E&&(E=1),F.dd=E,F.tc=2*b+E,F.ld=40<=b?2:15<=b?1:0}else F.tc=0;F.La=v}}}f=0}else De(a,6,"Frame setup failed"),f=a.a;if(f=f==0){if(f){a.$c=0,0<a.Aa||(a.Ic=H0);A:{f=a.Ic,d=4*(E=a.za);var S=32*E,G=E+1,tA=0<a.L?E*(0<a.Aa?2:1):0,rA=(a.Aa==2?2:1)*E;if((F=d+832+(v=3*(16*f+us[a.L])/2*S)+(C=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=F)f=0;else{if(F>a.Vb){if(a.Vb=0,a.Ec=i(F),a.Fc=0,a.Ec==null){f=De(a,1,"no memory during frame initialization.");break A}a.Vb=F}F=a.Ec,b=a.Fc,a.Ac=F,a.Bc=b,b+=d,a.Gd=s(S,Ta),a.Hd=0,a.rb=s(G+1,Da),a.sb=1,a.wa=tA?s(tA,Gn):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=F,a.pc=b,b+=832,a.ya=s(rA,Ni),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=(S=us[a.L])*a.R,S=S/2*a.B,a.sa=F,a.ta=b+E,a.qa=a.sa,a.ra=a.ta+16*f*a.R+S,a.Ha=a.qa,a.Ia=a.ra+8*f*a.B+S,a.$c=0,b+=v,a.mb=C?F:null,a.nb=C?b:null,A(b+C<=a.Fc+a.Vb),_i(a),n(a.Ac,a.Bc,0,d),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,!ju){for(f=-255;255>=f;++f)Ku[255+f]=0>f?-f:f;for(f=-1020;1020>=f;++f)ku[1020+f]=-128>f?-128:127<f?127:f;for(f=-112;112>=f;++f)Ru[112+f]=-16>f?-16:15<f?15:f;for(f=-255;510>=f;++f)Gu[255+f]=0>f?0:255<f?255:f;ju=1}$t=Oo,ii=Do,Xr=ka,Ar=To,Hr=Ra,Aa=Ka,bn=Ki,ai=Un,Ln=zo,Jr=ki,ea=Jo,_t=zn,Sr=Ri,Fe=Ya,Ue=za,Te=Er,Xe=Gr,Nr=Xo,er[0]=gr,er[1]=Po,er[2]=Ro,er[3]=Go,er[4]=Va,er[5]=Xn,er[6]=qa,er[7]=Oi,er[8]=Vo,er[9]=jo,Yr[0]=Ga,Yr[1]=Ko,Yr[2]=Lr,Yr[3]=qn,Yr[4]=at,Yr[5]=ko,Yr[6]=ja,_r[0]=Rr,_r[1]=Mo,_r[2]=qo,_r[3]=Pi,_r[4]=Fn,_r[5]=Wo,_r[6]=Mi,f=1}else f=0}f&&(f=function(J,wA){for(J.M=0;J.M<J.Va;++J.M){var lA,V=J.Jc[J.M&J.Xb],q=J.m,dA=J;for(lA=0;lA<dA.za;++lA){var vA=q,pA=dA,_A=pA.Ac,bA=pA.Bc+4*lA,kA=pA.zc,LA=pA.ya[pA.aa+lA];if(pA.Qa.Bb?LA.$b=oA(vA,pA.Pa.jb[0])?2+oA(vA,pA.Pa.jb[2]):oA(vA,pA.Pa.jb[1]):LA.$b=0,pA.kc&&(LA.Ad=oA(vA,pA.Bd)),LA.Za=!oA(vA,145)+0,LA.Za){var ue=LA.Ob,Be=0;for(pA=0;4>pA;++pA){var oe,ne=kA[0+pA];for(oe=0;4>oe;++oe){ne=d0[_A[bA+oe]][ne];for(var me=Xu[oA(vA,ne[0])];0<me;)me=Xu[2*me+oA(vA,ne[me])];ne=-me,_A[bA+oe]=ne}r(ue,Be,_A,bA,4),Be+=4,kA[0+pA]=ne}}else ne=oA(vA,156)?oA(vA,128)?1:3:oA(vA,163)?2:0,LA.Ob[0]=ne,n(_A,bA,ne,4),n(kA,0,ne,4);LA.Dd=oA(vA,142)?oA(vA,114)?oA(vA,183)?1:3:2:0}if(dA.m.Ka)return De(J,7,"Premature end-of-partition0 encountered.");for(;J.ja<J.za;++J.ja){if(dA=V,vA=(q=J).rb[q.sb-1],_A=q.rb[q.sb+q.ja],lA=q.ya[q.aa+q.ja],bA=q.kc?lA.Ad:0)vA.la=_A.la=0,lA.Za||(vA.Na=_A.Na=0),lA.Hc=0,lA.Gc=0,lA.ia=0;else{var pe,$A;if(vA=_A,_A=dA,bA=q.Pa.Xc,kA=q.ya[q.aa+q.ja],LA=q.pb[kA.$b],pA=kA.ad,ue=0,Be=q.rb[q.sb-1],ne=oe=0,n(pA,ue,0,384),kA.Za)var je=0,Ct=bA[3];else{me=i(16);var Ve=vA.Na+Be.Na;if(Ve=ta(_A,bA[1],Ve,LA.Eb,0,me,0),vA.Na=Be.Na=(0<Ve)+0,1<Ve)$t(me,0,pA,ue);else{var Qt=me[0]+3>>3;for(me=0;256>me;me+=16)pA[ue+me]=Qt}je=1,Ct=bA[0]}var ge=15&vA.la,It=15&Be.la;for(me=0;4>me;++me){var xt=1&It;for(Qt=$A=0;4>Qt;++Qt)ge=ge>>1|(xt=(Ve=ta(_A,Ct,Ve=xt+(1&ge),LA.Sc,je,pA,ue))>je)<<7,$A=$A<<2|(3<Ve?3:1<Ve?2:pA[ue+0]!=0),ue+=16;ge>>=4,It=It>>1|xt<<7,oe=(oe<<8|$A)>>>0}for(Ct=ge,je=It>>4,pe=0;4>pe;pe+=2){for($A=0,ge=vA.la>>4+pe,It=Be.la>>4+pe,me=0;2>me;++me){for(xt=1&It,Qt=0;2>Qt;++Qt)Ve=xt+(1&ge),ge=ge>>1|(xt=0<(Ve=ta(_A,bA[2],Ve,LA.Qc,0,pA,ue)))<<3,$A=$A<<2|(3<Ve?3:1<Ve?2:pA[ue+0]!=0),ue+=16;ge>>=2,It=It>>1|xt<<5}ne|=$A<<4*pe,Ct|=ge<<4<<pe,je|=(240&It)<<pe}vA.la=Ct,Be.la=je,kA.Hc=oe,kA.Gc=ne,kA.ia=43690&ne?0:LA.ia,bA=!(oe|ne)}if(0<q.L&&(q.wa[q.Y+q.ja]=q.gd[lA.$b][lA.Za],q.wa[q.Y+q.ja].La|=!bA),dA.Ka)return De(J,7,"Premature end-of-file encountered.")}if(_i(J),q=wA,dA=1,lA=(V=J).D,vA=0<V.L&&V.M>=V.zb&&V.M<=V.Va,V.Aa==0)A:{if(lA.M=V.M,lA.uc=vA,Xi(V,lA),dA=1,lA=($A=V.D).Nb,vA=(ne=us[V.L])*V.R,_A=ne/2*V.B,me=16*lA*V.R,Qt=8*lA*V.B,bA=V.sa,kA=V.ta-vA+me,LA=V.qa,pA=V.ra-_A+Qt,ue=V.Ha,Be=V.Ia-_A+Qt,It=(ge=$A.M)==0,oe=ge>=V.Va-1,V.Aa==2&&Xi(V,$A),$A.uc)for(xt=(Ve=V).D.M,A(Ve.D.uc),$A=Ve.yb;$A<Ve.Hb;++$A){je=$A,Ct=xt;var Ye=(tt=(Ne=Ve).D).Nb;pe=Ne.R;var tt=tt.wa[tt.Y+je],Bt=Ne.sa,Ot=Ne.ta+16*Ye*pe+16*je,pr=tt.dd,Ze=tt.tc;if(Ze!=0)if(A(3<=Ze),Ne.L==1)0<je&&Te(Bt,Ot,pe,Ze+4),tt.La&&Nr(Bt,Ot,pe,Ze),0<Ct&&Ue(Bt,Ot,pe,Ze+4),tt.La&&Xe(Bt,Ot,pe,Ze);else{var Dr=Ne.B,En=Ne.qa,oi=Ne.ra+8*Ye*Dr+8*je,$r=Ne.Ha,Ne=Ne.Ia+8*Ye*Dr+8*je;Ye=tt.ld,0<je&&(ai(Bt,Ot,pe,Ze+4,pr,Ye),Jr(En,oi,$r,Ne,Dr,Ze+4,pr,Ye)),tt.La&&(_t(Bt,Ot,pe,Ze,pr,Ye),Fe(En,oi,$r,Ne,Dr,Ze,pr,Ye)),0<Ct&&(bn(Bt,Ot,pe,Ze+4,pr,Ye),Ln(En,oi,$r,Ne,Dr,Ze+4,pr,Ye)),tt.La&&(ea(Bt,Ot,pe,Ze,pr,Ye),Sr(En,oi,$r,Ne,Dr,Ze,pr,Ye))}}if(V.ia&&alert("todo:DitherRow"),q.put!=null){if($A=16*ge,ge=16*(ge+1),It?(q.y=V.sa,q.O=V.ta+me,q.f=V.qa,q.N=V.ra+Qt,q.ea=V.Ha,q.W=V.Ia+Qt):($A-=ne,q.y=bA,q.O=kA,q.f=LA,q.N=pA,q.ea=ue,q.W=Be),oe||(ge-=ne),ge>q.o&&(ge=q.o),q.F=null,q.J=null,V.Fa!=null&&0<V.Fa.length&&$A<ge&&(q.J=qi(V,q,$A,ge-$A),q.F=V.mb,q.F==null&&q.F.length==0)){dA=De(V,3,"Could not decode alpha data.");break A}$A<q.j&&(ne=q.j-$A,$A=q.j,A(!(1&ne)),q.O+=V.R*ne,q.N+=V.B*(ne>>1),q.W+=V.B*(ne>>1),q.F!=null&&(q.J+=q.width*ne)),$A<ge&&(q.O+=q.v,q.N+=q.v>>1,q.W+=q.v>>1,q.F!=null&&(q.J+=q.v),q.ka=$A-q.j,q.U=q.va-q.v,q.T=ge-$A,dA=q.put(q))}lA+1!=V.Ic||oe||(r(V.sa,V.ta-vA,bA,kA+16*V.R,vA),r(V.qa,V.ra-_A,LA,pA+8*V.B,_A),r(V.Ha,V.Ia-_A,ue,Be+8*V.B,_A))}if(!dA)return De(J,6,"Output aborted.")}return 1}(a,o)),o.bc!=null&&o.bc(o),f&=1}return f?(a.cb=0,f):0}function Xt(a,o,f,d,v){v=a[o+f+32*d]+(v>>3),a[o+f+32*d]=-256&v?0>v?0:255:v}function Vn(a,o,f,d,v,C){Xt(a,o,0,f,d+v),Xt(a,o,1,f,d+C),Xt(a,o,2,f,d-C),Xt(a,o,3,f,d-v)}function wt(a){return(20091*a>>16)+a}function Di(a,o,f,d){var v,C=0,F=i(16);for(v=0;4>v;++v){var b=a[o+0]+a[o+8],E=a[o+0]-a[o+8],S=(35468*a[o+4]>>16)-wt(a[o+12]),G=wt(a[o+4])+(35468*a[o+12]>>16);F[C+0]=b+G,F[C+1]=E+S,F[C+2]=E-S,F[C+3]=b-G,C+=4,o++}for(v=C=0;4>v;++v)b=(a=F[C+0]+4)+F[C+8],E=a-F[C+8],S=(35468*F[C+4]>>16)-wt(F[C+12]),Xt(f,d,0,0,b+(G=wt(F[C+4])+(35468*F[C+12]>>16))),Xt(f,d,1,0,E+S),Xt(f,d,2,0,E-S),Xt(f,d,3,0,b-G),C++,d+=32}function Ka(a,o,f,d){var v=a[o+0]+4,C=35468*a[o+4]>>16,F=wt(a[o+4]),b=35468*a[o+1]>>16;Vn(f,d,0,v+F,a=wt(a[o+1]),b),Vn(f,d,1,v+C,a,b),Vn(f,d,2,v-C,a,b),Vn(f,d,3,v-F,a,b)}function Do(a,o,f,d,v){Di(a,o,f,d),v&&Di(a,o+16,f,d+4)}function ka(a,o,f,d){ii(a,o+0,f,d,1),ii(a,o+32,f,d+128,1)}function To(a,o,f,d){var v;for(a=a[o+0]+4,v=0;4>v;++v)for(o=0;4>o;++o)Xt(f,d,o,v,a)}function Ra(a,o,f,d){a[o+0]&&Ar(a,o+0,f,d),a[o+16]&&Ar(a,o+16,f,d+4),a[o+32]&&Ar(a,o+32,f,d+128),a[o+48]&&Ar(a,o+48,f,d+128+4)}function Oo(a,o,f,d){var v,C=i(16);for(v=0;4>v;++v){var F=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],S=a[o+0+v]-a[o+12+v];C[0+v]=F+b,C[8+v]=F-b,C[4+v]=S+E,C[12+v]=S-E}for(v=0;4>v;++v)F=(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],S=a-C[3+4*v],f[d+0]=F+b>>3,f[d+16]=S+E>>3,f[d+32]=F-b>>3,f[d+48]=S-E>>3,d+=64}function Ti(a,o,f){var d,v=o-32,C=Et,F=255-a[v-1];for(d=0;d<f;++d){var b,E=C,S=F+a[o-1];for(b=0;b<f;++b)a[o+b]=E[S+a[v+b]];o+=32}}function Po(a,o){Ti(a,o,4)}function Mo(a,o){Ti(a,o,8)}function Ko(a,o){Ti(a,o,16)}function Lr(a,o){var f;for(f=0;16>f;++f)r(a,o+32*f,a,o-32,16)}function qn(a,o){var f;for(f=16;0<f;--f)n(a,o,a[o-1],16),o+=32}function Wn(a,o,f){var d;for(d=0;16>d;++d)n(o,f+32*d,a,16)}function Ga(a,o){var f,d=16;for(f=0;16>f;++f)d+=a[o-1+32*f]+a[o+f-32];Wn(d>>5,a,o)}function at(a,o){var f,d=8;for(f=0;16>f;++f)d+=a[o-1+32*f];Wn(d>>4,a,o)}function ko(a,o){var f,d=8;for(f=0;16>f;++f)d+=a[o+f-32];Wn(d>>4,a,o)}function ja(a,o){Wn(128,a,o)}function WA(a,o,f){return a+2*o+f+2>>2}function Ro(a,o){var f,d=o-32;for(d=new Uint8Array([WA(a[d-1],a[d+0],a[d+1]),WA(a[d+0],a[d+1],a[d+2]),WA(a[d+1],a[d+2],a[d+3]),WA(a[d+2],a[d+3],a[d+4])]),f=0;4>f;++f)r(a,o+32*f,d,0,d.length)}function Go(a,o){var f=a[o-1],d=a[o-1+32],v=a[o-1+64],C=a[o-1+96];FA(a,o+0,16843009*WA(a[o-1-32],f,d)),FA(a,o+32,16843009*WA(f,d,v)),FA(a,o+64,16843009*WA(d,v,C)),FA(a,o+96,16843009*WA(v,C,C))}function gr(a,o){var f,d=4;for(f=0;4>f;++f)d+=a[o+f-32]+a[o-1+32*f];for(d>>=3,f=0;4>f;++f)n(a,o+32*f,d,4)}function Va(a,o){var f=a[o-1+0],d=a[o-1+32],v=a[o-1+64],C=a[o-1-32],F=a[o+0-32],b=a[o+1-32],E=a[o+2-32],S=a[o+3-32];a[o+0+96]=WA(d,v,a[o-1+96]),a[o+1+96]=a[o+0+64]=WA(f,d,v),a[o+2+96]=a[o+1+64]=a[o+0+32]=WA(C,f,d),a[o+3+96]=a[o+2+64]=a[o+1+32]=a[o+0+0]=WA(F,C,f),a[o+3+64]=a[o+2+32]=a[o+1+0]=WA(b,F,C),a[o+3+32]=a[o+2+0]=WA(E,b,F),a[o+3+0]=WA(S,E,b)}function qa(a,o){var f=a[o+1-32],d=a[o+2-32],v=a[o+3-32],C=a[o+4-32],F=a[o+5-32],b=a[o+6-32],E=a[o+7-32];a[o+0+0]=WA(a[o+0-32],f,d),a[o+1+0]=a[o+0+32]=WA(f,d,v),a[o+2+0]=a[o+1+32]=a[o+0+64]=WA(d,v,C),a[o+3+0]=a[o+2+32]=a[o+1+64]=a[o+0+96]=WA(v,C,F),a[o+3+32]=a[o+2+64]=a[o+1+96]=WA(C,F,b),a[o+3+64]=a[o+2+96]=WA(F,b,E),a[o+3+96]=WA(b,E,E)}function Xn(a,o){var f=a[o-1+0],d=a[o-1+32],v=a[o-1+64],C=a[o-1-32],F=a[o+0-32],b=a[o+1-32],E=a[o+2-32],S=a[o+3-32];a[o+0+0]=a[o+1+64]=C+F+1>>1,a[o+1+0]=a[o+2+64]=F+b+1>>1,a[o+2+0]=a[o+3+64]=b+E+1>>1,a[o+3+0]=E+S+1>>1,a[o+0+96]=WA(v,d,f),a[o+0+64]=WA(d,f,C),a[o+0+32]=a[o+1+96]=WA(f,C,F),a[o+1+32]=a[o+2+96]=WA(C,F,b),a[o+2+32]=a[o+3+96]=WA(F,b,E),a[o+3+32]=WA(b,E,S)}function Oi(a,o){var f=a[o+0-32],d=a[o+1-32],v=a[o+2-32],C=a[o+3-32],F=a[o+4-32],b=a[o+5-32],E=a[o+6-32],S=a[o+7-32];a[o+0+0]=f+d+1>>1,a[o+1+0]=a[o+0+64]=d+v+1>>1,a[o+2+0]=a[o+1+64]=v+C+1>>1,a[o+3+0]=a[o+2+64]=C+F+1>>1,a[o+0+32]=WA(f,d,v),a[o+1+32]=a[o+0+96]=WA(d,v,C),a[o+2+32]=a[o+1+96]=WA(v,C,F),a[o+3+32]=a[o+2+96]=WA(C,F,b),a[o+3+64]=WA(F,b,E),a[o+3+96]=WA(b,E,S)}function jo(a,o){var f=a[o-1+0],d=a[o-1+32],v=a[o-1+64],C=a[o-1+96];a[o+0+0]=f+d+1>>1,a[o+2+0]=a[o+0+32]=d+v+1>>1,a[o+2+32]=a[o+0+64]=v+C+1>>1,a[o+1+0]=WA(f,d,v),a[o+3+0]=a[o+1+32]=WA(d,v,C),a[o+3+32]=a[o+1+64]=WA(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 Vo(a,o){var f=a[o-1+0],d=a[o-1+32],v=a[o-1+64],C=a[o-1+96],F=a[o-1-32],b=a[o+0-32],E=a[o+1-32],S=a[o+2-32];a[o+0+0]=a[o+2+32]=f+F+1>>1,a[o+0+32]=a[o+2+64]=d+f+1>>1,a[o+0+64]=a[o+2+96]=v+d+1>>1,a[o+0+96]=C+v+1>>1,a[o+3+0]=WA(b,E,S),a[o+2+0]=WA(F,b,E),a[o+1+0]=a[o+3+32]=WA(f,F,b),a[o+1+32]=a[o+3+64]=WA(d,f,F),a[o+1+64]=a[o+3+96]=WA(v,d,f),a[o+1+96]=WA(C,v,d)}function qo(a,o){var f;for(f=0;8>f;++f)r(a,o+32*f,a,o-32,8)}function Pi(a,o){var f;for(f=0;8>f;++f)n(a,o,a[o-1],8),o+=32}function Qn(a,o,f){var d;for(d=0;8>d;++d)n(o,f+32*d,a,8)}function Rr(a,o){var f,d=8;for(f=0;8>f;++f)d+=a[o+f-32]+a[o-1+32*f];Qn(d>>4,a,o)}function Wo(a,o){var f,d=4;for(f=0;8>f;++f)d+=a[o+f-32];Qn(d>>3,a,o)}function Fn(a,o){var f,d=4;for(f=0;8>f;++f)d+=a[o-1+32*f];Qn(d>>3,a,o)}function Mi(a,o){Qn(128,a,o)}function Jn(a,o,f){var d=a[o-f],v=a[o+0],C=3*(v-d)+ec[1020+a[o-2*f]-a[o+f]],F=ts[112+(C+4>>3)];a[o-f]=Et[255+d+ts[112+(C+3>>3)]],a[o+0]=Et[255+v-F]}function Wa(a,o,f,d){var v=a[o+0],C=a[o+f];return Dt[255+a[o-2*f]-a[o-f]]>d||Dt[255+C-v]>d}function Xa(a,o,f,d){return 4*Dt[255+a[o-f]-a[o+0]]+Dt[255+a[o-2*f]-a[o+f]]<=d}function Ja(a,o,f,d,v){var C=a[o-3*f],F=a[o-2*f],b=a[o-f],E=a[o+0],S=a[o+f],G=a[o+2*f],tA=a[o+3*f];return 4*Dt[255+b-E]+Dt[255+F-S]>d?0:Dt[255+a[o-4*f]-C]<=v&&Dt[255+C-F]<=v&&Dt[255+F-b]<=v&&Dt[255+tA-G]<=v&&Dt[255+G-S]<=v&&Dt[255+S-E]<=v}function za(a,o,f,d){var v=2*d+1;for(d=0;16>d;++d)Xa(a,o+d,f,v)&&Jn(a,o+d,f)}function Er(a,o,f,d){var v=2*d+1;for(d=0;16>d;++d)Xa(a,o+d*f,1,v)&&Jn(a,o+d*f,1)}function Gr(a,o,f,d){var v;for(v=3;0<v;--v)za(a,o+=4*f,f,d)}function Xo(a,o,f,d){var v;for(v=3;0<v;--v)Er(a,o+=4,f,d)}function jr(a,o,f,d,v,C,F,b){for(C=2*C+1;0<v--;){if(Ja(a,o,f,C,F))if(Wa(a,o,f,b))Jn(a,o,f);else{var E=a,S=o,G=f,tA=E[S-2*G],rA=E[S-G],J=E[S+0],wA=E[S+G],lA=E[S+2*G],V=27*(dA=ec[1020+3*(J-rA)+ec[1020+tA-wA]])+63>>7,q=18*dA+63>>7,dA=9*dA+63>>7;E[S-3*G]=Et[255+E[S-3*G]+dA],E[S-2*G]=Et[255+tA+q],E[S-G]=Et[255+rA+V],E[S+0]=Et[255+J-V],E[S+G]=Et[255+wA-q],E[S+2*G]=Et[255+lA-dA]}o+=d}}function Jt(a,o,f,d,v,C,F,b){for(C=2*C+1;0<v--;){if(Ja(a,o,f,C,F))if(Wa(a,o,f,b))Jn(a,o,f);else{var E=a,S=o,G=f,tA=E[S-G],rA=E[S+0],J=E[S+G],wA=ts[112+((lA=3*(rA-tA))+4>>3)],lA=ts[112+(lA+3>>3)],V=wA+1>>1;E[S-2*G]=Et[255+E[S-2*G]+V],E[S-G]=Et[255+tA+lA],E[S+0]=Et[255+rA-wA],E[S+G]=Et[255+J-V]}o+=d}}function Ki(a,o,f,d,v,C){jr(a,o,f,1,16,d,v,C)}function Un(a,o,f,d,v,C){jr(a,o,1,f,16,d,v,C)}function Jo(a,o,f,d,v,C){var F;for(F=3;0<F;--F)Jt(a,o+=4*f,f,1,16,d,v,C)}function zn(a,o,f,d,v,C){var F;for(F=3;0<F;--F)Jt(a,o+=4,1,f,16,d,v,C)}function zo(a,o,f,d,v,C,F,b){jr(a,o,v,1,8,C,F,b),jr(f,d,v,1,8,C,F,b)}function ki(a,o,f,d,v,C,F,b){jr(a,o,1,v,8,C,F,b),jr(f,d,1,v,8,C,F,b)}function Ri(a,o,f,d,v,C,F,b){Jt(a,o+4*v,v,1,8,C,F,b),Jt(f,d+4*v,v,1,8,C,F,b)}function Ya(a,o,f,d,v,C,F,b){Jt(a,o+4,1,v,8,C,F,b),Jt(f,d+4,1,v,8,C,F,b)}function Yn(){this.ba=new Gt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new He,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Gi(){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 ji(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Za(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new P,this.yc=new x}function Yo(){this.xb=this.a=0,this.l=new jn,this.ca=new Gt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Q,this.Pb=0,this.wd=new Q,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Za,this.ab=0,this.gc=s(4,ji),this.Oc=0}function Zn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new jn,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function yn(a,o,f,d,v,C,F){for(a=a==null?0:a[o+0],o=0;o<F;++o)v[C+o]=a+f[d+o]&255,a=v[C+o]}function Vi(a,o,f,d,v,C,F){var b;if(a==null)yn(null,null,f,d,v,C,F);else for(b=0;b<F;++b)v[C+b]=a[o+b]+f[d+b]&255}function Vr(a,o,f,d,v,C,F){if(a==null)yn(null,null,f,d,v,C,F);else{var b,E=a[o+0],S=E,G=E;for(b=0;b<F;++b)S=G+(E=a[o+b])-S,G=f[d+b]+(-256&S?0>S?0:255:S)&255,S=E,v[C+b]=G}}function qi(a,o,f,d){var v=o.width,C=o.o;if(A(a!=null&&o!=null),0>f||0>=d||f+d>C)return null;if(!a.Cc){if(a.ga==null){var F;if(a.ga=new Zn,(F=a.ga==null)||(F=o.width*o.o,A(a.Gb.length==0),a.Gb=i(F),a.Uc=0,a.Gb==null?F=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,F=1),F=!F),!F){F=a.ga;var b=a.Fa,E=a.P,S=a.qc,G=a.mb,tA=a.nb,rA=E+1,J=S-1,wA=F.l;if(A(b!=null&&G!=null&&o!=null),Zr[0]=null,Zr[1]=yn,Zr[2]=Vi,Zr[3]=Vr,F.ca=G,F.tb=tA,F.c=o.width,F.i=o.height,A(0<F.c&&0<F.i),1>=S)o=0;else if(F.$a=b[E+0]>>0&3,F.Z=b[E+0]>>2&3,F.Lc=b[E+0]>>4&3,E=b[E+0]>>6&3,0>F.$a||1<F.$a||4<=F.Z||1<F.Lc||E)o=0;else if(wA.put=ur,wA.ac=et,wA.bc=lr,wA.ma=F,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,F.$a)A:{A(F.$a==1),o=St();e:for(;;){if(o==null){o=0;break A}if(A(F!=null),F.mc=o,o.c=F.c,o.i=F.i,o.l=F.l,o.l.ma=F,o.l.width=F.c,o.l.height=F.i,o.a=0,eA(o.m,b,rA,J),!Br(F.c,F.i,1,o,null)||(o.ab==1&&o.gc[0].hc==3&&br(o.s)?(F.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):(F.ic=0,o=Cn(o,F.c)),!o))break e;o=1;break A}F.mc=null,o=0}else o=J>=F.c*F.i;F=!o}if(F)return null;a.ga.Lc!=1?a.Ga=0:d=C-f}A(a.ga!=null),A(f+d<=C);A:{if(o=(b=a.ga).c,C=b.l.o,b.$a==0){if(rA=a.rc,J=a.Vc,wA=a.Fa,E=a.P+1+f*o,S=a.mb,G=a.nb+f*o,A(E<=a.P+a.qc),b.Z!=0)for(A(Zr[b.Z]!=null),F=0;F<d;++F)Zr[b.Z](rA,J,wA,E,S,G,o),rA=S,J=G,G+=o,E+=o;else for(F=0;F<d;++F)r(S,G,wA,E,o),rA=S,J=G,G+=o,E+=o;a.rc=rA,a.Vc=J}else{if(A(b.mc!=null),o=f+d,A((F=b.mc)!=null),A(o<=F.i),F.C>=o)o=1;else if(b.ic||$(),b.ic){b=F.V,rA=F.Ba,J=F.c;var lA=F.i,V=(wA=1,E=F.$/J,S=F.$%J,G=F.m,tA=F.s,F.$),q=J*lA,dA=J*o,vA=tA.wc,pA=V<dA?Re(tA,S,E):null;A(V<=q),A(o<=lA),A(br(tA));e:for(;;){for(;!G.h&&V<dA;){if(S&vA||(pA=Re(tA,S,E)),A(pA!=null),X(G),256>(lA=pt(pA.G[0],pA.H[0],G)))b[rA+V]=lA,++V,++S>=J&&(S=0,++E<=o&&!(E%16)&&qt(F,E));else{if(!(280>lA)){wA=0;break e}lA=jt(lA-256,G);var _A,bA=pt(pA.G[4],pA.H[4],G);if(X(G),!(V>=(bA=fr(J,bA=jt(bA,G)))&&q-V>=lA)){wA=0;break e}for(_A=0;_A<lA;++_A)b[rA+V+_A]=b[rA+V+_A-bA];for(V+=lA,S+=lA;S>=J;)S-=J,++E<=o&&!(E%16)&&qt(F,E);V<dA&&S&vA&&(pA=Re(tA,S,E))}A(G.h==O(G))}qt(F,E>o?o:E);break e}!wA||G.h&&V<q?(wA=0,F.a=G.h?5:3):F.$=V,o=wA}else o=Wt(F,F.V,F.Ba,F.c,F.i,o,Mn);if(!o){d=0;break A}}f+d>=C&&(a.Cc=1),d=1}if(!d)return null;if(a.Cc&&((d=a.ga)!=null&&(d.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+f*v}function l(a,o,f,d,v,C){for(;0<v--;){var F,b=a,E=o+(f?1:0),S=a,G=o+(f?0:3);for(F=0;F<d;++F){var tA=S[G+4*F];tA!=255&&(tA*=32897,b[E+4*F+0]=b[E+4*F+0]*tA>>23,b[E+4*F+1]=b[E+4*F+1]*tA>>23,b[E+4*F+2]=b[E+4*F+2]*tA>>23)}o+=C}}function m(a,o,f,d,v){for(;0<d--;){var C;for(C=0;C<f;++C){var F=a[o+2*C+0],b=15&(S=a[o+2*C+1]),E=4369*b,S=(240&S|S>>4)*E>>16;a[o+2*C+0]=(240&F|F>>4)*E>>16&240|(15&F|F<<4)*E>>16>>4&15,a[o+2*C+1]=240&S|b}o+=v}}function D(a,o,f,d,v,C,F,b){var E,S,G=255;for(S=0;S<v;++S){for(E=0;E<d;++E){var tA=a[o+E];C[F+4*E]=tA,G&=tA}o+=f,F+=b}return G!=255}function k(a,o,f,d,v){var C;for(C=0;C<v;++C)f[d+C]=a[o+C]>>8}function $(){zr=l,si=m,es=D,Mu=k}function BA(a,o,f){T[a]=function(d,v,C,F,b,E,S,G,tA,rA,J,wA,lA,V,q,dA,vA){var pA,_A=vA-1>>1,bA=b[E+0]|S[G+0]<<16,kA=tA[rA+0]|J[wA+0]<<16;A(d!=null);var LA=3*bA+kA+131074>>2;for(o(d[v+0],255&LA,LA>>16,lA,V),C!=null&&(LA=3*kA+bA+131074>>2,o(C[F+0],255&LA,LA>>16,q,dA)),pA=1;pA<=_A;++pA){var ue=b[E+pA]|S[G+pA]<<16,Be=tA[rA+pA]|J[wA+pA]<<16,oe=bA+ue+kA+Be+524296,ne=oe+2*(ue+kA)>>3;LA=ne+bA>>1,bA=(oe=oe+2*(bA+Be)>>3)+ue>>1,o(d[v+2*pA-1],255&LA,LA>>16,lA,V+(2*pA-1)*f),o(d[v+2*pA-0],255&bA,bA>>16,lA,V+(2*pA-0)*f),C!=null&&(LA=oe+kA>>1,bA=ne+Be>>1,o(C[F+2*pA-1],255&LA,LA>>16,q,dA+(2*pA-1)*f),o(C[F+2*pA+0],255&bA,bA>>16,q,dA+(2*pA+0)*f)),bA=ue,kA=Be}1&vA||(LA=3*bA+kA+131074>>2,o(d[v+vA-1],255&LA,LA>>16,lA,V+(vA-1)*f),C!=null&&(LA=3*kA+bA+131074>>2,o(C[F+vA-1],255&LA,LA>>16,q,dA+(vA-1)*f)))}}function mA(){Tt[rs]=m0,Tt[ns]=zu,Tt[Vu]=C0,Tt[is]=Yu,Tt[as]=Zu,Tt[tc]=$u,Tt[qu]=Q0,Tt[rc]=zu,Tt[nc]=Yu,Tt[ss]=Zu,Tt[ic]=$u}function NA(a){return a&~F0?0>a?0:255:a>>Al}function KA(a,o){return NA((19077*a>>8)+(26149*o>>8)-14234)}function ZA(a,o,f){return NA((19077*a>>8)-(6419*o>>8)-(13320*f>>8)+8708)}function ee(a,o){return NA((19077*a>>8)+(33050*o>>8)-17685)}function ae(a,o,f,d,v){d[v+0]=KA(a,f),d[v+1]=ZA(a,o,f),d[v+2]=ee(a,o)}function Ie(a,o,f,d,v){d[v+0]=ee(a,o),d[v+1]=ZA(a,o,f),d[v+2]=KA(a,f)}function Se(a,o,f,d,v){var C=ZA(a,o,f);o=C<<3&224|ee(a,o)>>3,d[v+0]=248&KA(a,f)|C>>5,d[v+1]=o}function Ge(a,o,f,d,v){var C=240&ee(a,o)|15;d[v+0]=240&KA(a,f)|ZA(a,o,f)>>4,d[v+1]=C}function st(a,o,f,d,v){d[v+0]=255,ae(a,o,f,d,v+1)}function ze(a,o,f,d,v){Ie(a,o,f,d,v),d[v+3]=255}function zt(a,o,f,d,v){ae(a,o,f,d,v),d[v+3]=255}function Lt(a,o){return 0>a?0:a>o?o:a}function Ir(a,o,f){T[a]=function(d,v,C,F,b,E,S,G,tA){for(var rA=G+(-2&tA)*f;G!=rA;)o(d[v+0],C[F+0],b[E+0],S,G),o(d[v+1],C[F+0],b[E+0],S,G+f),v+=2,++F,++E,G+=2*f;1&tA&&o(d[v+0],C[F+0],b[E+0],S,G)}}function $a(a,o,f){return f==0?a==0?o==0?6:5:o==0?4:0:f}function Wi(a,o,f,d,v){switch(a>>>30){case 3:ii(o,f,d,v,0);break;case 2:Aa(o,f,d,v);break;case 1:Ar(o,f,d,v)}}function Xi(a,o){var f,d,v=o.M,C=o.Nb,F=a.oc,b=a.pc+40,E=a.oc,S=a.pc+584,G=a.oc,tA=a.pc+600;for(f=0;16>f;++f)F[b+32*f-1]=129;for(f=0;8>f;++f)E[S+32*f-1]=129,G[tA+32*f-1]=129;for(0<v?F[b-1-32]=E[S-1-32]=G[tA-1-32]=129:(n(F,b-32-1,127,21),n(E,S-32-1,127,9),n(G,tA-32-1,127,9)),d=0;d<a.za;++d){var rA=o.ya[o.aa+d];if(0<d){for(f=-1;16>f;++f)r(F,b+32*f-4,F,b+32*f+12,4);for(f=-1;8>f;++f)r(E,S+32*f-4,E,S+32*f+4,4),r(G,tA+32*f-4,G,tA+32*f+4,4)}var J=a.Gd,wA=a.Hd+d,lA=rA.ad,V=rA.Hc;if(0<v&&(r(F,b-32,J[wA].y,0,16),r(E,S-32,J[wA].f,0,8),r(G,tA-32,J[wA].ea,0,8)),rA.Za){var q=F,dA=b-32+16;for(0<v&&(d>=a.za-1?n(q,dA,J[wA].y[15],4):r(q,dA,J[wA+1].y,0,4)),f=0;4>f;f++)q[dA+128+f]=q[dA+256+f]=q[dA+384+f]=q[dA+0+f];for(f=0;16>f;++f,V<<=2)q=F,dA=b+tl[f],er[rA.Ob[f]](q,dA),Wi(V,lA,16*+f,q,dA)}else if(q=$a(d,v,rA.Ob[0]),Yr[q](F,b),V!=0)for(f=0;16>f;++f,V<<=2)Wi(V,lA,16*+f,F,b+tl[f]);for(f=rA.Gc,q=$a(d,v,rA.Dd),_r[q](E,S),_r[q](G,tA),V=lA,q=E,dA=S,255&(rA=f>>0)&&(170&rA?Xr(V,256,q,dA):Hr(V,256,q,dA)),rA=G,V=tA,255&(f>>=8)&&(170&f?Xr(lA,320,rA,V):Hr(lA,320,rA,V)),v<a.Ub-1&&(r(J[wA].y,0,F,b+480,16),r(J[wA].f,0,E,S+224,8),r(J[wA].ea,0,G,tA+224,8)),f=8*C*a.B,J=a.sa,wA=a.ta+16*d+16*C*a.R,lA=a.qa,rA=a.ra+8*d+f,V=a.Ha,q=a.Ia+8*d+f,f=0;16>f;++f)r(J,wA+f*a.R,F,b+32*f,16);for(f=0;8>f;++f)r(lA,rA+f*a.B,E,S+32*f,8),r(V,q+f*a.B,G,tA+32*f,8)}}function $n(a,o,f,d,v,C,F,b,E){var S=[0],G=[0],tA=0,rA=E!=null?E.kd:0,J=E??new Gi;if(a==null||12>f)return 7;J.data=a,J.w=o,J.ha=f,o=[o],f=[f],J.gb=[J.gb];A:{var wA=o,lA=f,V=J.gb;if(A(a!=null),A(lA!=null),A(V!=null),V[0]=0,12<=lA[0]&&!e(a,wA[0],"RIFF")){if(e(a,wA[0]+8,"WEBP")){V=3;break A}var q=DA(a,wA[0]+4);if(12>q||4294967286<q){V=3;break A}if(rA&&q>lA[0]-8){V=7;break A}V[0]=q,wA[0]+=12,lA[0]-=12}V=0}if(V!=0)return V;for(q=0<J.gb[0],f=f[0];;){A:{var dA=a;lA=o,V=f;var vA=S,pA=G,_A=wA=[0];if((LA=tA=[tA])[0]=0,8>V[0])V=7;else{if(!e(dA,lA[0],"VP8X")){if(DA(dA,lA[0]+4)!=10){V=3;break A}if(18>V[0]){V=7;break A}var bA=DA(dA,lA[0]+8),kA=1+SA(dA,lA[0]+12);if(2147483648<=kA*(dA=1+SA(dA,lA[0]+15))){V=3;break A}_A!=null&&(_A[0]=bA),vA!=null&&(vA[0]=kA),pA!=null&&(pA[0]=dA),lA[0]+=18,V[0]-=18,LA[0]=1}V=0}}if(tA=tA[0],wA=wA[0],V!=0)return V;if(lA=!!(2&wA),!q&&tA)return 3;if(C!=null&&(C[0]=!!(16&wA)),F!=null&&(F[0]=lA),b!=null&&(b[0]=0),F=S[0],wA=G[0],tA&&lA&&E==null){V=0;break}if(4>f){V=7;break}if(q&&tA||!q&&!tA&&!e(a,o[0],"ALPH")){f=[f],J.na=[J.na],J.P=[J.P],J.Sa=[J.Sa];A:{bA=a,V=o,q=f;var LA=J.gb;vA=J.na,pA=J.P,_A=J.Sa,kA=22,A(bA!=null),A(q!=null),dA=V[0];var ue=q[0];for(A(vA!=null),A(_A!=null),vA[0]=null,pA[0]=null,_A[0]=0;;){if(V[0]=dA,q[0]=ue,8>ue){V=7;break A}var Be=DA(bA,dA+4);if(4294967286<Be){V=3;break A}var oe=8+Be+1&-2;if(kA+=oe,0<LA&&kA>LA){V=3;break A}if(!e(bA,dA,"VP8 ")||!e(bA,dA,"VP8L")){V=0;break A}if(ue[0]<oe){V=7;break A}e(bA,dA,"ALPH")||(vA[0]=bA,pA[0]=dA+8,_A[0]=Be),dA+=oe,ue-=oe}}if(f=f[0],J.na=J.na[0],J.P=J.P[0],J.Sa=J.Sa[0],V!=0)break}f=[f],J.Ja=[J.Ja],J.xa=[J.xa];A:if(LA=a,V=o,q=f,vA=J.gb[0],pA=J.Ja,_A=J.xa,bA=V[0],dA=!e(LA,bA,"VP8 "),kA=!e(LA,bA,"VP8L"),A(LA!=null),A(q!=null),A(pA!=null),A(_A!=null),8>q[0])V=7;else{if(dA||kA){if(LA=DA(LA,bA+4),12<=vA&&LA>vA-12){V=3;break A}if(rA&&LA>q[0]-8){V=7;break A}pA[0]=LA,V[0]+=8,q[0]-=8,_A[0]=kA}else _A[0]=5<=q[0]&&LA[bA+0]==47&&!(LA[bA+4]>>5),pA[0]=q[0];V=0}if(f=f[0],J.Ja=J.Ja[0],J.xa=J.xa[0],o=o[0],V!=0)break;if(4294967286<J.Ja)return 3;if(b==null||lA||(b[0]=J.xa?2:1),F=[F],wA=[wA],J.xa){if(5>f){V=7;break}b=F,rA=wA,lA=C,a==null||5>f?a=0:5<=f&&a[o+0]==47&&!(a[o+4]>>5)?(q=[0],LA=[0],vA=[0],eA(pA=new Q,a,o,f),RA(pA,q,LA,vA)?(b!=null&&(b[0]=q[0]),rA!=null&&(rA[0]=LA[0]),lA!=null&&(lA[0]=vA[0]),a=1):a=0):a=0}else{if(10>f){V=7;break}b=wA,a==null||10>f||!Oa(a,o+3,f-3)?a=0:(rA=a[o+0]|a[o+1]<<8|a[o+2]<<16,lA=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>=J.Ja||!lA||!a?a=0:(F&&(F[0]=lA),b&&(b[0]=a),a=1))}if(!a||(F=F[0],wA=wA[0],tA&&(S[0]!=F||G[0]!=wA)))return 3;E!=null&&(E[0]=J,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]|=J.na!=null&&0<J.na.length),d!=null&&(d[0]=F),v!=null&&(v[0]=wA),0):V}function Ji(a,o,f){var d=o.width,v=o.height,C=0,F=0,b=d,E=v;if(o.Da=a!=null&&0<a.Da,o.Da&&(b=a.cd,E=a.bd,C=a.v,F=a.j,11>f||(C&=-2,F&=-2),0>C||0>F||0>=b||0>=E||C+b>d||F+E>v))return 0;if(o.v=C,o.j=F,o.va=C+b,o.o=F+E,o.U=b,o.T=E,o.da=a!=null&&0<a.da,o.da){if(!YA(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*d/4&&o.hb<3*v/4,o.Kb=0),1}function zi(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,d){if(d==null||0>=a||0>=o)return 2;if(f!=null){if(f.Da){var v=f.cd,C=f.bd,F=-2&f.v,b=-2&f.j;if(0>F||0>b||0>=v||0>=C||F+v>a||b+C>o)return 2;a=v,o=C}if(f.da){if(!YA(a,o,v=[f.ib],C=[f.hb]))return 2;a=v[0],o=C[0]}}d.width=a,d.height=o;A:{var E=d.width,S=d.height;if(a=d.S,0>=E||0>=S||!(a>=rs&&13>a))a=2;else{if(0>=d.Rd&&d.sd==null){F=C=v=o=0;var G=(b=E*rl[a])*S;if(11>a||(C=(S+1)/2*(o=(E+1)/2),a==12&&(F=(v=E)*S)),(S=i(G+2*C+F))==null){a=1;break A}d.sd=S,11>a?((E=d.f.RGBA).eb=S,E.fb=0,E.A=b,E.size=G):((E=d.f.kb).y=S,E.O=0,E.fa=b,E.Fd=G,E.f=S,E.N=0+G,E.Ab=o,E.Cd=C,E.ea=S,E.W=0+G+C,E.Db=o,E.Ed=C,a==12&&(E.F=S,E.J=0+G+2*C),E.Tc=F,E.lb=v)}if(o=1,v=d.S,C=d.width,F=d.height,v>=rs&&13>v)if(11>v)a=d.f.RGBA,o&=(b=Math.abs(a.A))*(F-1)+C<=a.size,o&=b>=C*rl[v],o&=a.eb!=null;else{a=d.f.kb,b=(C+1)/2,G=(F+1)/2,E=Math.abs(a.fa),S=Math.abs(a.Ab);var tA=Math.abs(a.Db),rA=Math.abs(a.lb),J=rA*(F-1)+C;o&=E*(F-1)+C<=a.Fd,o&=S*(G-1)+b<=a.Cd,o=(o&=tA*(G-1)+b<=a.Ed)&E>=C&S>=b&tA>=b,o&=a.y!=null,o&=a.f!=null,o&=a.ea!=null,v==12&&(o&=rA>=C,o&=J<=a.Tc,o&=a.F!=null)}else o=0;a=o?0:2}}return a!=0||f!=null&&f.fd&&(a=zi(d)),a}var vt=64,ei=[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],ti=24,ri=32,Yi=8,mt=[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"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(a){return a},T.Predictor2=function(a,o,f){return o[f+0]},T.Predictor3=function(a,o,f){return o[f+1]},T.Predictor4=function(a,o,f){return o[f-1]},T.Predictor5=function(a,o,f){return EA(EA(a,o[f+1]),o[f+0])},T.Predictor6=function(a,o,f){return EA(a,o[f-1])},T.Predictor7=function(a,o,f){return EA(a,o[f+0])},T.Predictor8=function(a,o,f){return EA(o[f-1],o[f+0])},T.Predictor9=function(a,o,f){return EA(o[f+0],o[f+1])},T.Predictor10=function(a,o,f){return EA(EA(a,o[f-1]),EA(o[f+0],o[f+1]))},T.Predictor11=function(a,o,f){var d=o[f+0];return 0>=Ae(d>>24&255,a>>24&255,(o=o[f-1])>>24&255)+Ae(d>>16&255,a>>16&255,o>>16&255)+Ae(d>>8&255,a>>8&255,o>>8&255)+Ae(255&d,255&a,255&o)?d:a},T.Predictor12=function(a,o,f){var d=o[f+0];return(MA((a>>24&255)+(d>>24&255)-((o=o[f-1])>>24&255))<<24|MA((a>>16&255)+(d>>16&255)-(o>>16&255))<<16|MA((a>>8&255)+(d>>8&255)-(o>>8&255))<<8|MA((255&a)+(255&d)-(255&o)))>>>0},T.Predictor13=function(a,o,f){var d=o[f-1];return(XA((a=EA(a,o[f+0]))>>24&255,d>>24&255)<<24|XA(a>>16&255,d>>16&255)<<16|XA(a>>8&255,d>>8&255)<<8|XA(a>>0&255,d>>0&255))>>>0};var Zo=T.PredictorAdd0;T.PredictorAdd1=te,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 Zi=T.PredictorAdd2;re("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),re("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var As,Yt=T.ColorIndexInverseTransform,$i=T.MapARGB,$o=T.VP8LColorIndexInverseTransformAlpha,Ac=T.MapAlpha,qr=T.VP8LPredictorsAdd=[];qr.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var Nt,Zt,Wr,dr,xr,ni,$t,ii,Aa,Xr,Ar,Hr,bn,ai,Ln,Jr,ea,_t,Sr,Fe,Ue,Te,Xe,Nr,zr,si,es,Mu,Ku=i(511),ku=i(2041),Ru=i(225),Gu=i(767),ju=0,ec=ku,ts=Ru,Et=Gu,Dt=Ku,rs=0,ns=1,Vu=2,is=3,as=4,tc=5,qu=6,rc=7,nc=8,ss=9,ic=10,a0=[2,3,7],s0=[3,3,11],Wu=[280,256,256,256,40],o0=[0,1,1,1,0],c0=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],u0=[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],l0=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],f0=8,ac=[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],sc=[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],ta=null,h0=[[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]],B0=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Xu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],g0=[[[[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]]]],d0=[[[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]]],p0=[[[[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]]]],w0=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Yr=[],er=[],_r=[],v0=1,Ju=2,Zr=[],Tt=[];BA("UpsampleRgbLinePair",ae,3),BA("UpsampleBgrLinePair",Ie,3),BA("UpsampleRgbaLinePair",zt,4),BA("UpsampleBgraLinePair",ze,4),BA("UpsampleArgbLinePair",st,4),BA("UpsampleRgba4444LinePair",Ge,2),BA("UpsampleRgb565LinePair",Se,2);var m0=T.UpsampleRgbLinePair,C0=T.UpsampleBgrLinePair,zu=T.UpsampleRgbaLinePair,Yu=T.UpsampleBgraLinePair,Zu=T.UpsampleArgbLinePair,$u=T.UpsampleRgba4444LinePair,Q0=T.UpsampleRgb565LinePair,os=16,cs=1<<os-1,ra=-227,oc=482,Al=6,F0=(256<<Al)-1,el=0,U0=i(256),y0=i(256),b0=i(256),L0=i(256),E0=i(oc-ra),I0=i(oc-ra);Ir("YuvToRgbRow",ae,3),Ir("YuvToBgrRow",Ie,3),Ir("YuvToRgbaRow",zt,4),Ir("YuvToBgraRow",ze,4),Ir("YuvToArgbRow",st,4),Ir("YuvToRgba4444Row",Ge,2),Ir("YuvToRgb565Row",Se,2);var tl=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],us=[0,2,8],x0=[8,7,6,4,4,2,2,2,1,1,1,1],H0=1;this.WebPDecodeRGBA=function(a,o,f,d,v){var C=ns,F=new Yn,b=new Gt;F.ba=b,b.S=C,b.width=[b.width],b.height=[b.height];var E=b.width,S=b.height,G=new yr;if(G==null||a==null)var tA=2;else A(G!=null),tA=$n(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]),S!=null&&(S[0]=G.height[0]),E=1),E){b.width=b.width[0],b.height=b.height[0],d!=null&&(d[0]=b.width),v!=null&&(v[0]=b.height);A:{if(d=new jn,(v=new Gi).data=a,v.w=o,v.ha=f,v.kd=1,o=[0],A(v!=null),((a=$n(v.data,v.w,v.ha,null,null,null,o,null,v))==0||a==7)&&o[0]&&(a=4),(o=a)==0){if(A(F!=null),d.data=v.data,d.w=v.w+v.offset,d.ha=v.ha-v.offset,d.put=ur,d.ac=et,d.bc=lr,d.ma=F,v.xa){if((a=St())==null){F=1;break A}if(function(rA,J){var wA=[0],lA=[0],V=[0];e:for(;;){if(rA==null)return 0;if(J==null)return rA.a=2,0;if(rA.l=J,rA.a=0,eA(rA.m,J.data,J.w,J.ha),!RA(rA.m,wA,lA,V)){rA.a=3;break e}if(rA.xb=Ju,J.width=wA[0],J.height=lA[0],!Br(wA[0],lA[0],1,rA,null))break e;return 1}return A(rA.a!=0),0}(a,d)){if(d=(o=Ai(d.width,d.height,F.Oa,F.ba))==0){e:{d=a;t:for(;;){if(d==null){d=0;break e}if(A(d.s.yc!=null),A(d.s.Ya!=null),A(0<d.s.Wb),A((f=d.l)!=null),A((v=f.ma)!=null),d.xb!=0){if(d.ca=v.ba,d.tb=v.tb,A(d.ca!=null),!Ji(v.Oa,f,is)){d.a=2;break t}if(!Cn(d,f.width)||f.da)break t;if((f.da||le(d.ca.S))&&$(),11>d.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),d.ca.f.kb.F!=null&&$()),d.Pb&&0<d.s.ua&&d.s.vb.X==null&&!GA(d.s.vb,d.s.Wa.Xa)){d.a=1;break t}d.xb=0}if(!Wt(d,d.V,d.Ba,d.c,d.i,f.o,Pn))break t;v.Dc=d.Ma,d=1;break e}A(d.a!=0),d=0}d=!d}d&&(o=a.a)}else o=a.a}else{if((a=new No)==null){F=1;break A}if(a.Fa=v.na,a.P=v.P,a.qc=v.Sa,Pa(a,d)){if((o=Ai(d.width,d.height,F.Oa,F.ba))==0){if(a.Aa=0,f=F.Oa,A((v=a)!=null),f!=null){if(0<(E=0>(E=f.Md)?0:100<E?255:255*E/100)){for(S=G=0;4>S;++S)12>(tA=v.pb[S]).lc&&(tA.ia=E*x0[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)}_o(a,d)||(o=a.a)}}else o=a.a}o==0&&F.Oa!=null&&F.Oa.fd&&(o=zi(F.ba))}F=o}C=F!=0?null:11>C?b.f.RGBA.eb:b.f.kb.y}else C=null;return C};var rl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(T,AA){for(var uA="",H=0;H<4;H++)uA+=String.fromCharCode(T[AA++]);return uA}function B(T,AA){return(T[AA+0]<<0|T[AA+1]<<8|T[AA+2]<<16)>>>0}function p(T,AA){return(T[AA+0]<<0|T[AA+1]<<8|T[AA+2]<<16|T[AA+3]<<24)>>>0}new u;var w=[0],g=[0],L=[],y=new u,N=t,U=function(T,AA){var uA={},H=0,x=!1,K=0,P=0;if(uA.frames=[],!function(_,O,R,X){for(var iA=0;iA<X;iA++)if(_[O+iA]!=R.charCodeAt(iA))return!0;return!1}(T,AA,"RIFF",4)){var sA,nA;for(p(T,AA+=4),AA+=8;AA<T.length;){var cA=h(T,AA),eA=p(T,AA+=4);AA+=4;var hA=eA+(1&eA);switch(cA){case"VP8 ":case"VP8L":uA.frames[H]===void 0&&(uA.frames[H]={}),(Q=uA.frames[H]).src_off=x?P:AA-8,Q.src_size=K+eA+8,H++,x&&(x=!1,K=0,P=0);break;case"VP8X":(Q=uA.header={}).feature_flags=T[AA];var fA=AA+4;Q.canvas_width=1+B(T,fA),fA+=3,Q.canvas_height=1+B(T,fA),fA+=3;break;case"ALPH":x=!0,K=hA+8,P=AA-8;break;case"ANIM":(Q=uA.header).bgcolor=p(T,AA),fA=AA+4,Q.loop_count=(sA=T)[(nA=fA)+0]<<0|sA[nA+1]<<8,fA+=2;break;case"ANMF":var UA,Q;(Q=uA.frames[H]={}).offset_x=2*B(T,AA),AA+=3,Q.offset_y=2*B(T,AA),AA+=3,Q.width=1+B(T,AA),AA+=3,Q.height=1+B(T,AA),AA+=3,Q.duration=B(T,AA),AA+=3,UA=T[AA++],Q.dispose=1&UA,Q.blend=UA>>1&1}cA!="ANMF"&&(AA+=hA)}return uA}}(N,0);U.response=N,U.rgbaoutput=!0,U.dataurl=!1;var I=U.header?U.header:null,j=U.frames?U.frames:null;if(I){I.loop_counter=I.loop_count,w=[I.canvas_height],g=[I.canvas_width];for(var Z=0;Z<j.length&&j[Z].blend!=0;Z++);}var Y=j[0],z=y.WebPDecodeRGBA(N,Y.src_off,Y.src_size,g,w);Y.rgba=z,Y.imgwidth=g[0],Y.imgheight=w[0];for(var W=0;W<g[0]*w[0]*4;W++)L[W]=z[W];return this.width=g,this.height=w,this.data=L,this}(function(t){var A=function(){return typeof Fu=="function"},e=function(w,g,L,y){var N=4,U=s;switch(y){case t.image_compression.FAST:N=1,U=i;break;case t.image_compression.MEDIUM:N=6,U=c;break;case t.image_compression.SLOW:N=9,U=u}w=r(w,g,L,U);var I=Fu(w,{level:N});return t.__addimage__.arrayBufferToBinaryString(I)},r=function(w,g,L,y){for(var N,U,I,j=w.length/g,Z=new Uint8Array(w.length+j),Y=B(),z=0;z<j;z+=1){if(I=z*g,N=w.subarray(I,I+g),y)Z.set(y(N,L,U),I+z);else{for(var W,T=Y.length,AA=[];W<T;W+=1)AA[W]=Y[W](N,L,U);var uA=p(AA.concat());Z.set(AA[uA],I+z)}U=N}return Z},n=function(w){var g=Array.apply([],w);return g.unshift(0),g},i=function(w,g){var L,y=[],N=w.length;y[0]=1;for(var U=0;U<N;U+=1)L=w[U-g]||0,y[U+1]=w[U]-L+256&255;return y},s=function(w,g,L){var y,N=[],U=w.length;N[0]=2;for(var I=0;I<U;I+=1)y=L&&L[I]||0,N[I+1]=w[I]-y+256&255;return N},c=function(w,g,L){var y,N,U=[],I=w.length;U[0]=3;for(var j=0;j<I;j+=1)y=w[j-g]||0,N=L&&L[j]||0,U[j+1]=w[j]+256-(y+N>>>1)&255;return U},u=function(w,g,L){var y,N,U,I,j=[],Z=w.length;j[0]=4;for(var Y=0;Y<Z;Y+=1)y=w[Y-g]||0,N=L&&L[Y]||0,U=L&&L[Y-g]||0,I=h(y,N,U),j[Y+1]=w[Y]-I+256&255;return j},h=function(w,g,L){if(w===g&&g===L)return w;var y=Math.abs(g-L),N=Math.abs(w-L),U=Math.abs(w+g-L-L);return y<=N&&y<=U?w:N<=U?g:L},B=function(){return[n,i,s,c,u]},p=function(w){var g=w.map(function(L){return L.reduce(function(y,N){return y+Math.abs(N)},0)});return g.indexOf(Math.min.apply(null,g))};t.processPNG=function(w,g,L,y){var N,U,I,j,Z,Y,z,W,T,AA,uA,H,x,K,P,sA=this.decode.FLATE_DECODE,nA="";if(this.__addimage__.isArrayBuffer(w)&&(w=new Uint8Array(w)),this.__addimage__.isArrayBufferView(w)){if(w=(I=new Wp(w)).imgData,U=I.bits,N=I.colorSpace,Z=I.colors,[4,6].indexOf(I.colorType)!==-1){if(I.bits===8){T=(W=I.pixelBitlength==32?new Uint32Array(I.decodePixels().buffer):I.pixelBitlength==16?new Uint16Array(I.decodePixels().buffer):new Uint8Array(I.decodePixels().buffer)).length,uA=new Uint8Array(T*I.colors),AA=new Uint8Array(T);var cA,eA=I.pixelBitlength-I.bits;for(K=0,P=0;K<T;K++){for(x=W[K],cA=0;cA<eA;)uA[P++]=x>>>cA&255,cA+=I.bits;AA[K]=x>>>cA&255}}if(I.bits===16){T=(W=new Uint32Array(I.decodePixels().buffer)).length,uA=new Uint8Array(T*(32/I.pixelBitlength)*I.colors),AA=new Uint8Array(T*(32/I.pixelBitlength)),H=I.colors>1,K=0,P=0;for(var hA=0;K<T;)x=W[K++],uA[P++]=x>>>0&255,H&&(uA[P++]=x>>>16&255,x=W[K++],uA[P++]=x>>>0&255),AA[hA++]=x>>>16&255;U=8}y!==t.image_compression.NONE&&A()?(w=e(uA,I.width*I.colors,I.colors,y),z=e(AA,I.width,1,y)):(w=uA,z=AA,sA=void 0)}if(I.colorType===3&&(N=this.color_spaces.INDEXED,Y=I.palette,I.transparency.indexed)){var fA=I.transparency.indexed,UA=0;for(K=0,T=fA.length;K<T;++K)UA+=fA[K];if((UA/=255)===T-1&&fA.indexOf(0)!==-1)j=[fA.indexOf(0)];else if(UA!==T){for(W=I.decodePixels(),AA=new Uint8Array(W.length),K=0,T=W.length;K<T;K++)AA[K]=fA[W[K]];z=e(AA,I.width,1)}}var Q=function(_){var O;switch(_){case t.image_compression.FAST:O=11;break;case t.image_compression.MEDIUM:O=13;break;case t.image_compression.SLOW:O=14;break;default:O=12}return O}(y);return sA===this.decode.FLATE_DECODE&&(nA="/Predictor "+Q+" "),nA+="/Colors "+Z+" /BitsPerComponent "+U+" /Columns "+I.width,(this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),(z&&this.__addimage__.isArrayBuffer(z)||this.__addimage__.isArrayBufferView(z))&&(z=this.__addimage__.arrayBufferToBinaryString(z)),{alias:L,data:w,index:g,filter:sA,decodeParameters:nA,transparency:j,palette:Y,sMask:z,predictor:Q,width:I.width,height:I.height,bitsPerComponent:U,colorSpace:N}}}})(jA.API),function(t){t.processGIF89A=function(A,e,r,n){var i=new Xp(A),s=i.width,c=i.height,u=[];i.decodeAndBlitFrameRGBA(0,u);var h={data:u,width:s,height:c},B=new Wc(100).encode(h,100);return t.processJPEG.call(this,B,e,r,n)},t.processGIF87A=t.processGIF89A}(jA.API),nr.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)},nr.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){Ce.log("bit decode error:"+e)}},nr.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)}},nr.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)}},nr.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)}},nr.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,B=r*this.width*4+4*n;this.data[B]=u,this.data[B+1]=c,this.data[B+2]=s,this.data[B+3]=h}this.pos+=t}},nr.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,B=n*this.width*4+4*i;this.data[B]=h,this.data[B+1]=u,this.data[B+2]=c,this.data[B+3]=255}this.pos+=t}},nr.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}},nr.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}},nr.prototype.getData=function(){return this.data},function(t){t.processBMP=function(A,e,r,n){var i=new nr(A,!1),s=i.width,c=i.height,u={data:i.getData(),width:s,height:c},h=new Wc(100).encode(u,100);return t.processJPEG.call(this,h,e,r,n)}}(jA.API),Of.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(A,e,r,n){var i=new Of(A),s=i.width,c=i.height,u={data:i.getData(),width:s,height:c},h=new Wc(100).encode(u,100);return t.processJPEG.call(this,h,e,r,n)}}(jA.API),jA.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 B=r[h],p=r[h+1],w=r[h+2],g=r[h+3];i[c++]=B,i[c++]=p,i[c++]=w,s[u++]=g}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}},jA.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},vi=jA.API,Ws=vi.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,B=h.fof?h.fof:1,p=A.doKerning!==!1,w=0,g=t.length,L=0,y=c[0]||u,N=[];for(e=0;e<g;e++)r=t.charCodeAt(e),typeof n.metadata.widthOfString=="function"?N.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+s*(1e3/i)||0)/1e3):(w=p&&Qe(h[r])==="object"&&!isNaN(parseInt(h[r][L],10))?h[r][L]/B:0,N.push((c[r]||y)/u+w)),L=r;return N},Nf=vi.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 vi.processArabic&&(t=vi.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,n)/e:Ws.apply(this,arguments).reduce(function(i,s){return i+s},0)},_f=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},Df=function(t,A,e){e||(e={});var r,n,i,s,c,u,h,B=[],p=[B],w=e.textIndent||0,g=0,L=0,y=t.split(" "),N=Ws.apply(this,[" ",e])[0];if(u=e.lineIndent===-1?y[0].length+2:e.lineIndent||0){var U=Array(u).join(" "),I=[];y.map(function(Z){(Z=Z.split(/\s*\n/)).length>1?I=I.concat(Z.map(function(Y,z){return(z&&Y.length?`
`:"")+Y})):I.push(Z[0])}),y=I,u=Nf.apply(this,[U,e])}for(i=0,s=y.length;i<s;i++){var j=0;if(r=y[i],u&&r[0]==`
`&&(r=r.substr(1),j=1),w+g+(L=(n=Ws.apply(this,[r,e])).reduce(function(Z,Y){return Z+Y},0))>A||j){if(L>A){for(c=_f.apply(this,[r,n,A-(w+g),A]),B.push(c.shift()),B=[c.pop()];c.length;)p.push([c.shift()]);L=n.slice(r.length-(B[0]?B[0].length:0)).reduce(function(Z,Y){return Z+Y},0)}else B=[r];p.push(B),w=L+u,g=N}else B.push(r),w+=g+L,g=N}return h=u?function(Z,Y){return(Y?U:"")+Z.join(" ")}:function(Z){return Z.join(" ")},p.map(h)},vi.splitTextToSize=function(t,A,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=(function(B){if(B.widths&&B.kerning)return{widths:B.widths,kerning:B.kerning};var p=this.internal.getFont(B.fontName,B.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.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(Df.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(p){return"0x"+parseInt(p,10).toString(16)},s=t.__fontmetrics__.compress=function(p){var w,g,L,y,N=["{"];for(var U in p){if(w=p[U],isNaN(parseInt(U,10))?g="'"+U+"'":(U=parseInt(U,10),g=(g=i(U).slice(2)).slice(0,-1)+r[g.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(Qe(w)!=="object")throw new Error("Don't know what to do with value type "+Qe(w)+".");L=s(w)}N.push(g+L)}return N.push("}"),N.join("")},c=t.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,g,L,y,N={},U=1,I=N,j=[],Z="",Y="",z=p.length-1,W=1;W<z;W+=1)(y=p[W])=="'"?w?(L=w.join(""),w=void 0):w=[]:w?w.push(y):y=="{"?(j.push([I,L]),I={},L=void 0):y=="}"?((g=j.pop())[0][g[1]]=I,L=void 0,I=g[0]):y=="-"?U=-1:L===void 0?e.hasOwnProperty(y)?(Z+=e[y],L=parseInt(Z,16)*U,U=1,Z=""):Z+=y:e.hasOwnProperty(y)?(Y+=e[y],I[L]=parseInt(Y,16)*U,U=1,L=void 0,Y=""):Y+=y;return N},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}},B={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(p){var w=p.font,g=B.Unicode[w.postScriptName];g&&(w.metadata.Unicode={},w.metadata.Unicode.widths=g.widths,w.metadata.Unicode.kerning=g.kerning);var L=h.Unicode[w.postScriptName];L&&(w.metadata.Unicode.encoding=L,w.encoding=L.codePages[0])}])}(jA.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(ba(c)),s.metadata=t.API.TTFFont.open(c),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(n,r)}}])}(jA),function(t){function A(){return(VA.canvg?Promise.resolve(VA.canvg):Xc(()=>import("./index.es-DNkQidfm.js"),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}jA.API.addSvgAsImage=function(e,r,n,i,s,c,u,h){if(isNaN(r)||isNaN(n))throw Ce.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(s))throw Ce.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var B=document.createElement("canvas");B.width=i,B.height=s;var p=B.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,B.width,B.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return A().then(function(L){return L.fromString(p,e,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(L){return L.render(w)}).then(function(){g.addImage(B.toDataURL("image/jpeg",1),r,n,i,s,u,h)})}}(),jA.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},jA.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,B=0,p=0;function w(L,y){var N,U=!1;for(N=0;N<L.length;N+=1)L[N]===y&&(U=!0);return U}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 g=c.length;for(p=0;p<g;p+=1)e[c[p]].value=e[c[p]].defaultValue,e[c[p]].explicitSet=!1}if(Qe(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(B=0;B<i[h].length;B+=1)typeof i[h][B]!="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}}(jA.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"],B=[""],p=0,w=i.length;p<w;++p){if(c=s.metadata.characterToGlyph(i.charCodeAt(p)),s.metadata.glyIdsUsed.push(c),s.metadata.toUnicode[c]=i.charCodeAt(p),u.indexOf(c)==-1&&(u.push(c),u.push([parseInt(s.metadata.widthOfGlyph(c),10)])),c=="0")return B.join("");c=c.toString(16),B.push(h[4-c.length],c)}return B.join("")},r=function(i){var s,c,u,h,B,p,w;for(B=`/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=[],p=0,w=(c=Object.keys(i).sort(function(g,L){return g-L})).length;p<w;p++)s=c[p],u.length>=100&&(B+=`
`+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&&(B+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar
`),B+=`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,B=s.putStream;if(c.metadata instanceof t.API.TTFFont&&c.encoding==="Identity-H"){for(var p=c.metadata.Unicode.widths,w=c.metadata.subset.encode(c.metadata.glyIdsUsed,1),g="",L=0;L<w.length;L++)g+=String.fromCharCode(w[L]);var y=h();B({data:g,addLength1:!0,objectId:y}),u("endobj");var N=h();B({data:r(c.metadata.toUnicode),addLength1:!0,objectId:N}),u("endobj");var U=h();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Fi(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 I=h();u("<<"),u("/Type /Font"),u("/BaseFont /"+Fi(c.fontName)),u("/FontDescriptor "+U+" 0 R"),u("/W "+t.API.PDFObject.convert(p)),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 "+N+" 0 R"),u("/BaseFont /"+Fi(c.fontName)),u("/Encoding /"+c.encoding),u("/DescendantFonts ["+I+" 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,B=s.putStream;if(c.metadata instanceof t.API.TTFFont&&c.encoding==="WinAnsiEncoding"){for(var p=c.metadata.rawData,w="",g=0;g<p.length;g++)w+=String.fromCharCode(p[g]);var L=h();B({data:w,addLength1:!0,objectId:L}),u("endobj");var y=h();B({data:r(c.metadata.toUnicode),addLength1:!0,objectId:y}),u("endobj");var N=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 /"+Fi(c.fontName)),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u(">>"),u("endobj"),c.objectNumber=h();for(var U=0;U<c.metadata.hmtx.widths.length;U++)c.metadata.hmtx.widths[U]=parseInt(c.metadata.hmtx.widths[U]*(1e3/c.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+y+" 0 R/BaseFont/"+Fi(c.fontName)+"/FontDescriptor "+N+" 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,B=i.options||{},p=i.mutex||{},w=p.pdfEscape,g=p.activeFontKey,L=p.fonts,y=g,N="",U=0,I="",j=L[y].encoding;if(L[y].encoding!=="Identity-H")return{text:c,x:u,y:h,options:B,mutex:p};for(I=c,y=g,Array.isArray(c)&&(I=c[0]),U=0;U<I.length;U+=1)L[y].metadata.hasOwnProperty("cmap")&&(s=L[y].metadata.cmap.unicode.codeMap[I[U].charCodeAt(0)]),s||I[U].charCodeAt(0)<256&&L[y].metadata.hasOwnProperty("Unicode")?N+=I[U]:N+="";var Z="";return parseInt(y.slice(1))<14||j==="WinAnsiEncoding"?Z=w(N,y).split("").map(function(Y){return Y.charCodeAt(0).toString(16)}).join(""):j==="Identity-H"&&(Z=e(N,L[y])),p.isHex=!0,{text:Z,x:u,y:h,options:B,mutex:p}};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}])}(jA),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}}(jA.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,i,s,c,u,h,B,p=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]],g=[[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},N=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],U=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)$/),I=!1,j=0;this.__bidiEngine__={};var Z=function(H){var x=H.charCodeAt(),K=x>>8,P=y[K];return P!==void 0?p[256*P+(255&x)]:K===252||K===253?"AL":U.test(K)?"L":K===8?"R":"N"},Y=function(H){for(var x,K=0;K<H.length;K++){if((x=Z(H.charAt(K)))==="L")return!1;if(x==="R")return!0}return!1},z=function(H,x,K,P){var sA,nA,cA,eA,hA=x[P];switch(hA){case"L":case"R":I=!1;break;case"N":case"AN":break;case"EN":I&&(hA="AN");break;case"AL":I=!0,hA="R";break;case"WS":hA="N";break;case"CS":P<1||P+1>=x.length||(sA=K[P-1])!=="EN"&&sA!=="AN"||(nA=x[P+1])!=="EN"&&nA!=="AN"?hA="N":I&&(nA="AN"),hA=nA===sA?nA:"N";break;case"ES":hA=(sA=P>0?K[P-1]:"B")==="EN"&&P+1<x.length&&x[P+1]==="EN"?"EN":"N";break;case"ET":if(P>0&&K[P-1]==="EN"){hA="EN";break}if(I){hA="N";break}for(cA=P+1,eA=x.length;cA<eA&&x[cA]==="ET";)cA++;hA=cA<eA&&x[cA]==="EN"?"EN":"N";break;case"NSM":if(s&&!c){for(eA=x.length,cA=P+1;cA<eA&&x[cA]==="NSM";)cA++;if(cA<eA){var fA=H[P],UA=fA>=1425&&fA<=2303||fA===64286;if(sA=x[cA],UA&&(sA==="R"||sA==="AL")){hA="R";break}}}hA=P<1||(sA=x[P-1])==="B"?"N":K[P-1];break;case"B":I=!1,n=!0,hA=j;break;case"S":i=!0,hA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":I=!1;break;case"BN":hA="N"}return hA},W=function(H,x,K){var P=H.split("");return K&&T(P,K,{hiLevel:j}),P.reverse(),x&&x.reverse(),P.join("")},T=function(H,x,K){var P,sA,nA,cA,eA,hA=-1,fA=H.length,UA=0,Q=[],_=j?g:w,O=[];for(I=!1,n=!1,i=!1,sA=0;sA<fA;sA++)O[sA]=Z(H[sA]);for(nA=0;nA<fA;nA++){if(eA=UA,Q[nA]=z(H,O,Q,nA),P=240&(UA=_[eA][L[Q[nA]]]),UA&=15,x[nA]=cA=_[UA][5],P>0)if(P===16){for(sA=hA;sA<nA;sA++)x[sA]=1;hA=-1}else hA=-1;if(_[UA][6])hA===-1&&(hA=nA);else if(hA>-1){for(sA=hA;sA<nA;sA++)x[sA]=cA;hA=-1}O[nA]==="B"&&(x[nA]=0),K.hiLevel|=cA}i&&function(R,X,iA){for(var aA=0;aA<iA;aA++)if(R[aA]==="S"){X[aA]=j;for(var oA=aA-1;oA>=0&&R[oA]==="WS";oA--)X[oA]=j}}(O,x,fA)},AA=function(H,x,K,P,sA){if(!(sA.hiLevel<H)){if(H===1&&j===1&&!n)return x.reverse(),void(K&&K.reverse());for(var nA,cA,eA,hA,fA=x.length,UA=0;UA<fA;){if(P[UA]>=H){for(eA=UA+1;eA<fA&&P[eA]>=H;)eA++;for(hA=UA,cA=eA-1;hA<cA;hA++,cA--)nA=x[hA],x[hA]=x[cA],x[cA]=nA,K&&(nA=K[hA],K[hA]=K[cA],K[cA]=nA);UA=eA}UA++}}},uA=function(H,x,K){var P=H.split(""),sA={hiLevel:j};return K||(K=[]),T(P,K,sA),function(nA,cA,eA){if(eA.hiLevel!==0&&B)for(var hA,fA=0;fA<nA.length;fA++)cA[fA]===1&&(hA=N.indexOf(nA[fA]))>=0&&(nA[fA]=N[hA+1])}(P,K,sA),AA(2,P,x,K,sA),AA(1,P,x,K,sA),P.join("")};return this.__bidiEngine__.doBidiReorder=function(H,x,K){if(function(sA,nA){if(nA)for(var cA=0;cA<sA.length;cA++)nA[cA]=cA;c===void 0&&(c=Y(sA)),h===void 0&&(h=Y(sA))}(H,x),s||!u||h)if(s&&u&&c^h)j=c?1:0,H=W(H,x,K);else if(!s&&u&&h)j=c?1:0,H=uA(H,x,K),H=W(H,x);else if(!s||c||u||h){if(s&&!u&&c^h)H=W(H,x),c?(j=0,H=uA(H,x,K)):(j=1,H=uA(H,x,K),H=W(H,x));else if(s&&c&&!u&&h)j=1,H=uA(H,x,K),H=W(H,x);else if(!s&&!u&&c^h){var P=B;c?(j=1,H=uA(H,x,K),j=0,B=!1,H=uA(H,x,K),B=P):(j=0,H=uA(H,x,K),H=W(H,x),j=1,B=!1,H=uA(H,x,K),B=P,H=W(H,x))}}else j=0,H=uA(H,x,K);else j=c?1:0,H=uA(H,x,K);return H},this.__bidiEngine__.setOptions=function(H){H&&(s=H.isInputVisual,u=H.isOutputVisual,c=H.isInputRtl,h=H.isOutputRtl,B=H.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})}])}(jA),jA.API.TTFFont=function(){function t(A){var e;if(this.rawData=A,e=this.contents=new wn(A),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new c5(this),this.registerTTF()}return t.open=function(A){return new t(A)},t.prototype.parse=function(){return this.directory=new Jp(this.contents),this.head=new Yp(this),this.name=new t5(this),this.cmap=new n0(this),this.toUnicode={},this.hhea=new Zp(this),this.maxp=new r5(this),this.hmtx=new n5(this),this.post=new A5(this),this.os2=new $p(this),this.loca=new o5(this),this.glyf=new i5(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 or,wn=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}(),Jp=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,B,p,w,g,L,y;for(y in g=Object.keys(e).length,u=Math.log(2),p=16*Math.floor(Math.log(g)/u),s=Math.floor(p/u),B=16*g-p,(n=new wn).writeInt(this.scalarType),n.writeShort(g),n.writeShort(p),n.writeShort(s),n.writeShort(B),i=16*g,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=i0.call(e);e.length%4;)e.push(0);for(i=new wn(e),n=0,r=0,s=e.length;r<s;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),zp={}.hasOwnProperty,Ur=function(t,A){for(var e in A)zp.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};or=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 Yp=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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 wn).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}(),Pf=function(){function t(A,e){var r,n,i,s,c,u,h,B,p,w,g,L,y,N,U,I,j;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=e+A.readInt(),p=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(g=A.readUInt16(),w=g/2,A.pos+=6,i=function(){var Z,Y;for(Y=[],u=Z=0;0<=w?Z<w:Z>w;u=0<=w?++Z:--Z)Y.push(A.readUInt16());return Y}(),A.pos+=2,y=function(){var Z,Y;for(Y=[],u=Z=0;0<=w?Z<w:Z>w;u=0<=w?++Z:--Z)Y.push(A.readUInt16());return Y}(),h=function(){var Z,Y;for(Y=[],u=Z=0;0<=w?Z<w:Z>w;u=0<=w?++Z:--Z)Y.push(A.readUInt16());return Y}(),B=function(){var Z,Y;for(Y=[],u=Z=0;0<=w?Z<w:Z>w;u=0<=w?++Z:--Z)Y.push(A.readUInt16());return Y}(),n=(this.length-A.pos+this.offset)/2,c=function(){var Z,Y;for(Y=[],u=Z=0;0<=n?Z<n:Z>n;u=0<=n?++Z:--Z)Y.push(A.readUInt16());return Y}(),u=U=0,j=i.length;U<j;u=++U)for(N=i[u],r=I=L=y[u];L<=N?I<=N:I>=N;r=L<=N?++I:--I)B[u]===0?s=r+h[u]:(s=c[B[u]/2+(r-L)-(w-u)]||0)!==0&&(s+=h[u]),this.codeMap[r]=65535&s}A.pos=p}return t.encode=function(A,e){var r,n,i,s,c,u,h,B,p,w,g,L,y,N,U,I,j,Z,Y,z,W,T,AA,uA,H,x,K,P,sA,nA,cA,eA,hA,fA,UA,Q,_,O,R,X,iA,aA,oA,FA,QA,SA;switch(P=new wn,s=Object.keys(A).sort(function(DA,GA){return DA-GA}),e){case"macroman":for(y=0,N=function(){var DA=[];for(L=0;L<256;++L)DA.push(0);return DA}(),I={0:0},i={},sA=0,hA=s.length;sA<hA;sA++)I[oA=A[n=s[sA]]]==null&&(I[oA]=++y),i[n]={old:A[n],new:I[A[n]]},N[n]=I[A[n]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(N),{charMap:i,subtable:P.data,maxGlyphID:y+1};case"unicode":for(x=[],p=[],j=0,I={},r={},U=h=null,nA=0,fA=s.length;nA<fA;nA++)I[Y=A[n=s[nA]]]==null&&(I[Y]=++j),r[n]={old:Y,new:I[Y]},c=I[Y]-n,U!=null&&c===h||(U&&p.push(U),x.push(n),h=c),U=n;for(U&&p.push(U),p.push(65535),x.push(65535),uA=2*(AA=x.length),T=2*Math.pow(Math.log(AA)/Math.LN2,2),w=Math.log(T/2)/Math.LN2,W=2*AA-T,u=[],z=[],g=[],L=cA=0,UA=x.length;cA<UA;L=++cA){if(H=x[L],B=p[L],H===65535){u.push(0),z.push(0);break}if(H-(K=r[H].new)>=32768)for(u.push(0),z.push(2*(g.length+AA-L)),n=eA=H;H<=B?eA<=B:eA>=B;n=H<=B?++eA:--eA)g.push(r[n].new);else u.push(K-H),z.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*AA+2*g.length),P.writeUInt16(0),P.writeUInt16(uA),P.writeUInt16(T),P.writeUInt16(w),P.writeUInt16(W),iA=0,Q=p.length;iA<Q;iA++)n=p[iA],P.writeUInt16(n);for(P.writeUInt16(0),aA=0,_=x.length;aA<_;aA++)n=x[aA],P.writeUInt16(n);for(FA=0,O=u.length;FA<O;FA++)c=u[FA],P.writeUInt16(c);for(QA=0,R=z.length;QA<R;QA++)Z=z[QA],P.writeUInt16(Z);for(SA=0,X=g.length;SA<X;SA++)y=g[SA],P.writeUInt16(y);return{charMap:r,subtable:P.data,maxGlyphID:j+1}}},t}(),n0=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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 Pf(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=Pf.encode(e,r),(i=new wn).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},A}(),Zp=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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}(),$p=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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}(),A5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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}(),e5=function(t,A){this.raw=t,this.length=t.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},t5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),A.prototype.tag="name",A.prototype.parse=function(e){var r,n,i,s,c,u,h,B,p,w,g;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=p=0,w=n.length;p<w;s=++p)i=n[s],e.pos=i.offset,B=e.readString(i.length),c=new e5(B,i),h[g=i.nameID]==null&&(h[g]=[]),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}(),r5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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}(),n5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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 B,p;for(p=[],r=B=0;0<=i?B<i:B>i;r=0<=i?++B:--B)p.push(e.readInt16());return p}(),this.widths=(function(){var B,p,w,g;for(g=[],B=0,p=(w=this.metrics).length;B<p;B++)s=w[B],g.push(s.advance);return g}).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}(),i0=[].slice,i5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(e){var r,n,i,s,c,u,h,B,p,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 wn(r.read(i))).readShort(),B=u.readShort(),w=u.readShort(),h=u.readShort(),p=u.readShort(),this.cache[e]=c===-1?new s5(u,B,w,h,p):new a5(u,c,B,w,h,p),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}(),a5=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}(),s5=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 wn(i0.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)e.pos=this.glyphOffsets[A];return e.data},t}(),o5=function(t){function A(){return A.__super__.constructor.apply(this,arguments)}return Ur(A,or),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 B=new Array(4*n.length),p=0;p<n.length;++p)B[4*p+3]=255&n[p],B[4*p+2]=(65280&n[p])>>8,B[4*p+1]=(16711680&n[p])>>16,B[4*p]=(4278190080&n[p])>>24;return B},A}(),c5=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,B,p,w,g,L,y,N,U;for(n in r=n0.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(A),g={0:0},U=r.charMap)g[(u=U[n]).old]=u.new;for(L in w=r.maxGlyphID,s)L in g||(g[L]=w++);return B=function(I){var j,Z;for(j in Z={},I)Z[I[j]]=j;return Z}(g),p=Object.keys(B).sort(function(I,j){return I-j}),y=function(){var I,j,Z;for(Z=[],I=0,j=p.length;I<j;I++)c=p[I],Z.push(B[c]);return Z}(),i=this.font.glyf.encode(s,y,g),h=this.font.loca.encode(i.offsets,y),N={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&&(N["OS/2"]=this.font.os2.raw()),this.font.directory.encode(N)},t}();jA.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 l5=async(t,A)=>{const e=window.devicePixelRatio>2?window.devicePixelRatio:4;let r=new jA("p","pt","a4"),n=A.offsetWidth,i=A.offsetHeight;const s=document.createElement("canvas");s.width=n*e,s.height=i*e;const c=s.width,u=s.height,h=c/592.28*841.89;let B=u,p=0;const w=595.28,g=592.28/c*u,y=(await Rh(A,{useCORS:!0,canvas:s,scale:e,width:n,height:i,x:0,y:0})).toDataURL();if(i>14400){const N=14400/i;n=n*N}if(i=i*r.internal.pageSize.getWidth()/n,n=r.internal.pageSize.getWidth(),B<h)r.addImage(y,"png",0,0,w,g);else for(;B>0;)r.addImage(y,"png",0,p,w,g),B-=h,p-=841.89,B>0&&r.addPage();await r.save(`${t}.pdf`)};export{l5 as d};
