const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-C7awBMnN.js","./index-sga-FecS.js","./index-Cv40YHD5.css","./DefaultLayout-R679muSx.js","./index.esm-7CdJvro0.js","./university-logo-full-HPG0vyLU.js","./cil-user-Dlmw-Gem.js","./DefaultLayout-e3CUNOYS.css","./CRow-BaMSc2yS.js","./CAlert-UiIGbbv-.js","./CCardBody-e8lVonr1.js","./CCardHeader-B7SoQ3bq.js","./CForm-C4v7yst3.js","./CInputGroupText-BmnVX3pg.js","./CFormInput-DmJ_XO-V.js","./CFormSelect-M-2HeJEB.js","./CTable-BWbWBbo-.js"])))=>i.map(i=>d[i]);
import{d as Fc,e as kv,r as Ei,j as $A,C as E1,f as yc}from"./index-sga-FecS.js";import{u as Pv,f as _1}from"./DefaultLayout-R679muSx.js";import{b as Z0,a as yo}from"./index.esm-7CdJvro0.js";import{C as Eo,a as _o}from"./CRow-BaMSc2yS.js";import{C as Ec}from"./CAlert-UiIGbbv-.js";import{C as Rv,a as Mv}from"./CCardBody-e8lVonr1.js";import{C as Kv}from"./CCardHeader-B7SoQ3bq.js";import{C as Gv}from"./CForm-C4v7yst3.js";import{C as Vv,a as jv}from"./CInputGroupText-BmnVX3pg.js";import{C as Wv}from"./CFormInput-DmJ_XO-V.js";import{C as _c}from"./CFormSelect-M-2HeJEB.js";import{C as Xv,a as qv,b as Uc,c as Oa,d as zv,e as ds}from"./CTable-BWbWBbo-.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 Eu=function(A,e){return Eu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Eu(A,e)};function Kn(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Eu(A,e);function t(){this.constructor=A}A.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var _u=function(){return _u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_u.apply(this,arguments)};function Or(A,e,t,r){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(l){try{f(r.next(l))}catch(d){a(d)}}function o(l){try{f(r.throw(l))}catch(d){a(d)}}function f(l){l.done?i(l.value):n(l.value).then(s,o)}f((r=r.apply(A,[])).next())})}function Ur(A,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(f){return function(l){return o([f,l])}}function o(f){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=f[0]&2?n.return:f[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,f[1])).done)return i;switch(n=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t.label=f[1];break}if(f[0]===6&&t.label<i[1]){t.label=i[1],i=f;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(f);break}i[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(A,t)}catch(l){f=[6,l],n=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function $0(A,e,t){if(arguments.length===2)for(var r=0,n=e.length,i;r<n;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return A.concat(i||e)}var Oi=(function(){function A(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),_l=function(A,e){return Oi.fromClientRect(A,e.getBoundingClientRect())},Yv=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new Oi(0,0,r,n)},Ul=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);(i&64512)===56320?e.push(((n&1023)<<10)+(i&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},Ot=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=A[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},U1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jv=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Af=0;Af<U1.length;Af++)Jv[U1.charCodeAt(Af)]=Af;var b1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",No=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ef=0;ef<b1.length;ef++)No[b1.charCodeAt(ef)]=ef;var Zv=function(A){var e=A.length*.75,t=A.length,r,n=0,i,a,s,o;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var f=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),l=Array.isArray(f)?f:new Uint8Array(f);for(r=0;r<t;r+=4)i=No[A.charCodeAt(r)],a=No[A.charCodeAt(r+1)],s=No[A.charCodeAt(r+2)],o=No[A.charCodeAt(r+3)],l[n++]=i<<2|a>>4,l[n++]=(a&15)<<4|s>>2,l[n++]=(s&3)<<6|o&63;return f},$v=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},A5=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Ka=5,fh=11,bc=2,e5=fh-Ka,_g=65536>>Ka,t5=1<<Ka,Qc=t5-1,r5=1024>>Ka,n5=_g+r5,i5=n5,a5=32,s5=i5+a5,o5=65536>>fh,f5=1<<e5,l5=f5-1,Q1=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},c5=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},u5=function(A,e){var t=Zv(A),r=Array.isArray(t)?A5(t):new Uint32Array(t),n=Array.isArray(t)?$v(t):new Uint16Array(t),i=24,a=Q1(n,i/2,r[4]/2),s=r[5]===2?Q1(n,(i+r[4])/2):c5(r,Math.ceil((i+r[4])/4));return new h5(r[0],r[1],r[2],r[3],a,s)},h5=(function(){function A(e,t,r,n,i,a){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Ka],t=(t<<bc)+(e&Qc),this.data[t];if(e<=65535)return t=this.index[_g+(e-55296>>Ka)],t=(t<<bc)+(e&Qc),this.data[t];if(e<this.highStart)return t=s5-o5+(e>>fh),t=this.index[t],t+=e>>Ka&l5,t=this.index[t],t=(t<<bc)+(e&Qc),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),S1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d5=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var tf=0;tf<S1.length;tf++)d5[S1.charCodeAt(tf)]=tf;var g5=" ",T1=50,p5=1,Ug=2,bg=3,B5=4,w5=5,L1=7,Qg=8,I1=9,sa=10,Uu=11,N1=12,bu=13,v5=14,Oo=15,Qu=16,rf=17,Uo=18,m5=19,O1=20,Su=21,bo=22,Sc=23,gs=24,tn=25,Do=26,Ho=27,ps=28,x5=29,ka=30,C5=31,nf=32,af=33,Tu=34,Lu=35,Iu=36,e0=37,Nu=38,Mf=39,Kf=40,Tc=41,Sg=42,F5=43,y5=[9001,65288],Tg="!",Me="×",sf="÷",Ou=u5(g5),_i=[ka,Iu],Du=[p5,Ug,bg,w5],Lg=[sa,Qg],D1=[Ho,Do],E5=Du.concat(Lg),H1=[Nu,Mf,Kf,Tu,Lu],_5=[Oo,bu],U5=function(A,e){e===void 0&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(i,a){var s=Ou.get(i);if(s>T1?(n.push(!0),s-=T1):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(a),t.push(Qu);if(s===B5||s===Uu){if(a===0)return r.push(a),t.push(ka);var o=t[a-1];return E5.indexOf(o)===-1?(r.push(r[a-1]),t.push(o)):(r.push(a),t.push(ka))}if(r.push(a),s===C5)return t.push(e==="strict"?Su:e0);if(s===Sg||s===x5)return t.push(ka);if(s===F5)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(e0):t.push(ka);t.push(s)}),[r,t,n]},Lc=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var i=t;i<=r.length;){i++;var a=r[i];if(a===e)return!0;if(a!==sa)break}if(n===sa)for(var i=t;i>0;){i--;var s=r[i];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s)for(var o=t;o<=r.length;){o++;var a=r[o];if(a===e)return!0;if(a!==sa)break}if(s!==sa)break}return!1},k1=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r===sa)t--;else return r}return 0},b5=function(A,e,t,r,n){if(t[r]===0)return Me;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return Me;var a=i-1,s=i+1,o=e[i],f=a>=0?e[a]:0,l=e[s];if(o===Ug&&l===bg)return Me;if(Du.indexOf(o)!==-1)return Tg;if(Du.indexOf(l)!==-1||Lg.indexOf(l)!==-1)return Me;if(k1(i,e)===Qg)return sf;if(Ou.get(A[i])===Uu||(o===nf||o===af)&&Ou.get(A[s])===Uu||o===L1||l===L1||o===I1||[sa,bu,Oo].indexOf(o)===-1&&l===I1||[rf,Uo,m5,gs,ps].indexOf(l)!==-1||k1(i,e)===bo||Lc(Sc,bo,i,e)||Lc([rf,Uo],Su,i,e)||Lc(N1,N1,i,e))return Me;if(o===sa)return sf;if(o===Sc||l===Sc)return Me;if(l===Qu||o===Qu)return sf;if([bu,Oo,Su].indexOf(l)!==-1||o===v5||f===Iu&&_5.indexOf(o)!==-1||o===ps&&l===Iu||l===O1||_i.indexOf(l)!==-1&&o===tn||_i.indexOf(o)!==-1&&l===tn||o===Ho&&[e0,nf,af].indexOf(l)!==-1||[e0,nf,af].indexOf(o)!==-1&&l===Do||_i.indexOf(o)!==-1&&D1.indexOf(l)!==-1||D1.indexOf(o)!==-1&&_i.indexOf(l)!==-1||[Ho,Do].indexOf(o)!==-1&&(l===tn||[bo,Oo].indexOf(l)!==-1&&e[s+1]===tn)||[bo,Oo].indexOf(o)!==-1&&l===tn||o===tn&&[tn,ps,gs].indexOf(l)!==-1)return Me;if([tn,ps,gs,rf,Uo].indexOf(l)!==-1)for(var d=i;d>=0;){var g=e[d];if(g===tn)return Me;if([ps,gs].indexOf(g)!==-1)d--;else break}if([Ho,Do].indexOf(l)!==-1)for(var d=[rf,Uo].indexOf(o)!==-1?a:i;d>=0;){var g=e[d];if(g===tn)return Me;if([ps,gs].indexOf(g)!==-1)d--;else break}if(Nu===o&&[Nu,Mf,Tu,Lu].indexOf(l)!==-1||[Mf,Tu].indexOf(o)!==-1&&[Mf,Kf].indexOf(l)!==-1||[Kf,Lu].indexOf(o)!==-1&&l===Kf||H1.indexOf(o)!==-1&&[O1,Do].indexOf(l)!==-1||H1.indexOf(l)!==-1&&o===Ho||_i.indexOf(o)!==-1&&_i.indexOf(l)!==-1||o===gs&&_i.indexOf(l)!==-1||_i.concat(tn).indexOf(o)!==-1&&l===bo&&y5.indexOf(A[s])===-1||_i.concat(tn).indexOf(l)!==-1&&o===Uo)return Me;if(o===Tc&&l===Tc){for(var u=t[i],v=1;u>0&&(u--,e[u]===Tc);)v++;if(v%2!==0)return Me}return o===nf&&l===af?Me:sf},Q5=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=U5(A,e.lineBreak),r=t[0],n=t[1],i=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(s){return[tn,ka,Sg].indexOf(s)!==-1?e0:s}));var a=e.wordBreak==="keep-all"?i.map(function(s,o){return s&&A[o]>=19968&&A[o]<=40959}):void 0;return[r,n,a]},S5=(function(){function A(e,t,r,n){this.codePoints=e,this.required=t===Tg,this.start=r,this.end=n}return A.prototype.slice=function(){return Ot.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),T5=function(A,e){var t=Ul(A),r=Q5(t,e),n=r[0],i=r[1],a=r[2],s=t.length,o=0,f=0;return{next:function(){if(f>=s)return{done:!0,value:null};for(var l=Me;f<s&&(l=b5(t,i,n,++f,a))===Me;);if(l!==Me||f===s){var d=new S5(t,l,o,f);return o=f,{value:d,done:!1}}return{done:!0,value:null}}}},L5=1,I5=2,h0=4,P1=8,Jf=10,R1=47,Ko=92,N5=9,O5=32,of=34,Qo=61,D5=35,H5=36,k5=37,ff=39,lf=40,So=41,P5=95,Kr=45,R5=33,M5=60,K5=62,G5=64,V5=91,j5=93,W5=61,X5=123,cf=63,q5=125,M1=124,z5=126,Y5=128,K1=65533,Ic=42,Ma=43,J5=44,Z5=58,$5=59,t0=46,Am=0,em=8,tm=11,rm=14,nm=31,im=127,Zn=-1,Ig=48,Ng=97,Og=101,am=102,sm=117,om=122,Dg=65,Hg=69,kg=70,fm=85,lm=90,br=function(A){return A>=Ig&&A<=57},cm=function(A){return A>=55296&&A<=57343},Bs=function(A){return br(A)||A>=Dg&&A<=kg||A>=Ng&&A<=am},um=function(A){return A>=Ng&&A<=om},hm=function(A){return A>=Dg&&A<=lm},dm=function(A){return um(A)||hm(A)},gm=function(A){return A>=Y5},uf=function(A){return A===Jf||A===N5||A===O5},Zf=function(A){return dm(A)||gm(A)||A===P5},G1=function(A){return Zf(A)||br(A)||A===Kr},pm=function(A){return A>=Am&&A<=em||A===tm||A>=rm&&A<=nm||A===im},aa=function(A,e){return A!==Ko?!1:e!==Jf},hf=function(A,e,t){return A===Kr?Zf(e)||aa(e,t):Zf(A)?!0:!!(A===Ko&&aa(A,e))},Nc=function(A,e,t){return A===Ma||A===Kr?br(e)?!0:e===t0&&br(t):br(A===t0?e:A)},Bm=function(A){var e=0,t=1;(A[e]===Ma||A[e]===Kr)&&(A[e]===Kr&&(t=-1),e++);for(var r=[];br(A[e]);)r.push(A[e++]);var n=r.length?parseInt(Ot.apply(void 0,r),10):0;A[e]===t0&&e++;for(var i=[];br(A[e]);)i.push(A[e++]);var a=i.length,s=a?parseInt(Ot.apply(void 0,i),10):0;(A[e]===Hg||A[e]===Og)&&e++;var o=1;(A[e]===Ma||A[e]===Kr)&&(A[e]===Kr&&(o=-1),e++);for(var f=[];br(A[e]);)f.push(A[e++]);var l=f.length?parseInt(Ot.apply(void 0,f),10):0;return t*(n+s*Math.pow(10,-a))*Math.pow(10,o*l)},wm={type:2},vm={type:3},mm={type:4},xm={type:13},Cm={type:8},Fm={type:21},ym={type:9},Em={type:10},_m={type:11},Um={type:12},bm={type:14},df={type:23},Qm={type:1},Sm={type:25},Tm={type:24},Lm={type:26},Im={type:27},Nm={type:28},Om={type:29},Dm={type:31},Hu={type:32},Pg=(function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(Ul(e))},A.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Hu;)e.push(t),t=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case of:return this.consumeStringToken(of);case D5:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(G1(t)||aa(r,n)){var i=hf(t,r,n)?I5:L5,a=this.consumeName();return{type:5,value:a,flags:i}}break;case H5:if(this.peekCodePoint(0)===Qo)return this.consumeCodePoint(),xm;break;case ff:return this.consumeStringToken(ff);case lf:return wm;case So:return vm;case Ic:if(this.peekCodePoint(0)===Qo)return this.consumeCodePoint(),bm;break;case Ma:if(Nc(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case J5:return mm;case Kr:var s=e,o=this.peekCodePoint(0),f=this.peekCodePoint(1);if(Nc(s,o,f))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(hf(s,o,f))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===Kr&&f===K5)return this.consumeCodePoint(),this.consumeCodePoint(),Tm;break;case t0:if(Nc(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case R1:if(this.peekCodePoint(0)===Ic)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===Ic&&(l=this.consumeCodePoint(),l===R1))return this.consumeToken();if(l===Zn)return this.consumeToken()}break;case Z5:return Lm;case $5:return Im;case M5:if(this.peekCodePoint(0)===R5&&this.peekCodePoint(1)===Kr&&this.peekCodePoint(2)===Kr)return this.consumeCodePoint(),this.consumeCodePoint(),Sm;break;case G5:var d=this.peekCodePoint(0),g=this.peekCodePoint(1),u=this.peekCodePoint(2);if(hf(d,g,u)){var a=this.consumeName();return{type:7,value:a}}break;case V5:return Nm;case Ko:if(aa(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case j5:return Om;case W5:if(this.peekCodePoint(0)===Qo)return this.consumeCodePoint(),Cm;break;case X5:return _m;case q5:return Um;case sm:case fm:var v=this.peekCodePoint(0),B=this.peekCodePoint(1);return v===Ma&&(Bs(B)||B===cf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case M1:if(this.peekCodePoint(0)===Qo)return this.consumeCodePoint(),ym;if(this.peekCodePoint(0)===M1)return this.consumeCodePoint(),Fm;break;case z5:if(this.peekCodePoint(0)===Qo)return this.consumeCodePoint(),Em;break;case Zn:return Hu}return uf(e)?(this.consumeWhiteSpace(),Dm):br(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Zf(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Ot(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Bs(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===cf&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(Ot.apply(void 0,e.map(function(o){return o===cf?Ig:o})),16),i=parseInt(Ot.apply(void 0,e.map(function(o){return o===cf?kg:o})),16);return{type:30,start:n,end:i}}var a=parseInt(Ot.apply(void 0,e),16);if(this.peekCodePoint(0)===Kr&&Bs(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];Bs(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var i=parseInt(Ot.apply(void 0,s),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===lf?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===lf?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===ff||t===of){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||this.peekCodePoint(0)===So)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),df)}for(;;){var n=this.consumeCodePoint();if(n===Zn||n===So)return{type:22,value:Ot.apply(void 0,e)};if(uf(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||this.peekCodePoint(0)===So?(this.consumeCodePoint(),{type:22,value:Ot.apply(void 0,e)}):(this.consumeBadUrlRemnants(),df);if(n===of||n===ff||n===lf||pm(n))return this.consumeBadUrlRemnants(),df;if(n===Ko)if(aa(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),df;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;uf(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===So||e===Zn)return;aa(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var n=Math.min(t,e);r+=Ot.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(e){var t="",r=0;do{var n=this._value[r];if(n===Zn||n===void 0||n===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===Jf)return this._value.splice(0,r),Qm;if(n===Ko){var i=this._value[r+1];i!==Zn&&i!==void 0&&(i===Jf?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):aa(n,i)&&(t+=this.consumeStringSlice(r),t+=Ot(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var e=[],t=h0,r=this.peekCodePoint(0);for((r===Ma||r===Kr)&&e.push(this.consumeCodePoint());br(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===t0&&br(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=P1;br(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Hg||r===Og)&&((n===Ma||n===Kr)&&br(i)||br(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=P1;br(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Bm(e),t]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(hf(n,i,a)){var s=this.consumeName();return{type:15,number:t,flags:r,unit:s}}return n===k5?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Bs(e)){for(var t=Ot(e);Bs(this.peekCodePoint(0))&&t.length<6;)t+=Ot(this.consumeCodePoint());uf(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||cm(r)||r>1114111?K1:r}return e===Zn?K1:e},A.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(G1(t))e+=Ot(t);else if(aa(t,this.peekCodePoint(0)))e+=Ot(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},A})(),Rg=(function(){function A(e){this._tokens=e}return A.create=function(e){var t=new Pg;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||km(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Hu:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A})(),d0=function(A){return A.type===15},Ws=function(A){return A.type===17},st=function(A){return A.type===20},Hm=function(A){return A.type===0},ku=function(A,e){return st(A)&&A.value===e},Mg=function(A){return A.type!==31},Vs=function(A){return A.type!==31&&A.type!==4},ai=function(A){var e=[],t=[];return A.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},km=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},ga=function(A){return A.type===17||A.type===15},jt=function(A){return A.type===16||ga(A)},Kg=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},wr={type:17,number:0,flags:h0},lh={type:16,number:50,flags:h0},oa={type:16,number:100,flags:h0},ko=function(A,e,t){var r=A[0],n=A[1];return[gt(r,e),gt(typeof n<"u"?n:r,t)]},gt=function(A,e){if(A.type===16)return A.number/100*e;if(d0(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},Gg="deg",Vg="grad",jg="rad",Wg="turn",bl={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case Gg:return Math.PI*e.number/180;case Vg:return Math.PI/200*e.number;case jg:return e.number;case Wg:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Xg=function(A){return A.type===15&&(A.unit===Gg||A.unit===Vg||A.unit===jg||A.unit===Wg)},qg=function(A){var e=A.filter(st).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[wr,wr];case"to top":case"bottom":return xn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[wr,oa];case"to right":case"left":return xn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[oa,oa];case"to bottom":case"top":return xn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[oa,wr];case"to left":case"right":return xn(270)}return 0},xn=function(A){return Math.PI*A/180},ha={name:"color",parse:function(A,e){if(e.type===18){var t=Pm[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3);return fa(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3),a=e.value.substring(3,4);return fa(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6);return fa(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6),a=e.value.substring(6,8);return fa(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(e.type===20){var s=Ti[e.value.toUpperCase()];if(typeof s<"u")return s}return Ti.TRANSPARENT}},da=function(A){return(255&A)===0},rr=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},fa=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},V1=function(A,e){if(A.type===17)return A.number;if(A.type===16){var t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},j1=function(A,e){var t=e.filter(Vs);if(t.length===3){var r=t.map(V1),n=r[0],i=r[1],a=r[2];return fa(n,i,a,1)}if(t.length===4){var s=t.map(V1),n=s[0],i=s[1],a=s[2],o=s[3];return fa(n,i,a,o)}return 0};function Oc(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A}var W1=function(A,e){var t=e.filter(Vs),r=t[0],n=t[1],i=t[2],a=t[3],s=(r.type===17?xn(r.number):bl.parse(A,r))/(Math.PI*2),o=jt(n)?n.number/100:0,f=jt(i)?i.number/100:0,l=typeof a<"u"&&jt(a)?gt(a,1):1;if(o===0)return fa(f*255,f*255,f*255,1);var d=f<=.5?f*(o+1):f+o-f*o,g=f*2-d,u=Oc(g,d,s+1/3),v=Oc(g,d,s),B=Oc(g,d,s-1/3);return fa(u*255,v*255,B*255,l)},Pm={hsl:W1,hsla:W1,rgb:j1,rgba:j1},Go=function(A,e){return ha.parse(A,Rg.create(e).parseComponentValue())},Ti={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},Rm={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(st(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Mm={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ql=function(A,e){var t=ha.parse(A,e[0]),r=e[1];return r&&jt(r)?{color:t,stop:r}:{color:t,stop:null}},X1=function(A,e){var t=A[0],r=A[A.length-1];t.stop===null&&(t.stop=wr),r.stop===null&&(r.stop=oa);for(var n=[],i=0,a=0;a<A.length;a++){var s=A[a].stop;if(s!==null){var o=gt(s,e);o>i?n.push(o):n.push(i),i=o}else n.push(null)}for(var f=null,a=0;a<n.length;a++){var l=n[a];if(l===null)f===null&&(f=a);else if(f!==null){for(var d=a-f,g=n[f-1],u=(l-g)/(d+1),v=1;v<=d;v++)n[f+v-1]=u*v;f=null}}return A.map(function(B,x){var F=B.color;return{color:F,stop:Math.max(Math.min(1,n[x]/e),0)}})},Km=function(A,e,t){var r=e/2,n=t/2,i=gt(A[0],e)-r,a=n-gt(A[1],t);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},Gm=function(A,e,t){var r=typeof A=="number"?A:Km(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),i=e/2,a=t/2,s=n/2,o=Math.sin(r-Math.PI/2)*s,f=Math.cos(r-Math.PI/2)*s;return[n,i-f,i+f,a-o,a+o]},Hn=function(A,e){return Math.sqrt(A*A+e*e)},q1=function(A,e,t,r,n){var i=[[0,0],[0,e],[A,0],[A,e]];return i.reduce(function(a,s){var o=s[0],f=s[1],l=Hn(t-o,r-f);return(n?l<a.optimumDistance:l>a.optimumDistance)?{optimumCorner:s,optimumDistance:l}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Vm=function(A,e,t,r,n){var i=0,a=0;switch(A.size){case 0:A.shape===0?i=a=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-r)),a=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(A.shape===0)i=a=Math.min(Hn(e,t),Hn(e,t-n),Hn(e-r,t),Hn(e-r,t-n));else if(A.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),o=q1(r,n,e,t,!0),f=o[0],l=o[1];i=Hn(f-e,(l-t)/s),a=s*i}break;case 1:A.shape===0?i=a=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-r)),a=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(A.shape===0)i=a=Math.max(Hn(e,t),Hn(e,t-n),Hn(e-r,t),Hn(e-r,t-n));else if(A.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r)),d=q1(r,n,e,t,!1),f=d[0],l=d[1];i=Hn(f-e,(l-t)/s),a=s*i}break}return Array.isArray(A.size)&&(i=gt(A.size[0],r),a=A.size.length===2?gt(A.size[1],n):i),[i,a]},jm=function(A,e){var t=xn(180),r=[];return ai(e).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){t=qg(n);return}else if(Xg(a)){t=bl.parse(A,a);return}}var s=Ql(A,n);r.push(s)}),{angle:t,stops:r,type:1}},gf=function(A,e){var t=xn(180),r=[];return ai(e).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=qg(n);return}else if(Xg(a)){t=(bl.parse(A,a)+xn(270))%xn(360);return}}var s=Ql(A,n);r.push(s)}),{angle:t,stops:r,type:1}},Wm=function(A,e){var t=xn(180),r=[],n=1,i=0,a=3,s=[];return ai(e).forEach(function(o,f){var l=o[0];if(f===0){if(st(l)&&l.value==="linear"){n=1;return}else if(st(l)&&l.value==="radial"){n=2;return}}if(l.type===18){if(l.name==="from"){var d=ha.parse(A,l.values[0]);r.push({stop:wr,color:d})}else if(l.name==="to"){var d=ha.parse(A,l.values[0]);r.push({stop:oa,color:d})}else if(l.name==="color-stop"){var g=l.values.filter(Vs);if(g.length===2){var d=ha.parse(A,g[1]),u=g[0];Ws(u)&&r.push({stop:{type:16,number:u.number*100,flags:u.flags},color:d})}}}}),n===1?{angle:(t+xn(180))%xn(360),stops:r,type:n}:{size:a,shape:i,stops:r,position:s,type:n}},zg="closest-side",Yg="farthest-side",Jg="closest-corner",Zg="farthest-corner",$g="circle",Ap="ellipse",ep="cover",tp="contain",Xm=function(A,e){var t=0,r=3,n=[],i=[];return ai(e).forEach(function(a,s){var o=!0;if(s===0){var f=!1;o=a.reduce(function(d,g){if(f)if(st(g))switch(g.value){case"center":return i.push(lh),d;case"top":case"left":return i.push(wr),d;case"right":case"bottom":return i.push(oa),d}else(jt(g)||ga(g))&&i.push(g);else if(st(g))switch(g.value){case $g:return t=0,!1;case Ap:return t=1,!1;case"at":return f=!0,!1;case zg:return r=0,!1;case ep:case Yg:return r=1,!1;case tp:case Jg:return r=2,!1;case Zg:return r=3,!1}else if(ga(g)||jt(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return d},o)}if(o){var l=Ql(A,a);n.push(l)}}),{size:r,shape:t,stops:n,position:i,type:2}},pf=function(A,e){var t=0,r=3,n=[],i=[];return ai(e).forEach(function(a,s){var o=!0;if(s===0?o=a.reduce(function(l,d){if(st(d))switch(d.value){case"center":return i.push(lh),!1;case"top":case"left":return i.push(wr),!1;case"right":case"bottom":return i.push(oa),!1}else if(jt(d)||ga(d))return i.push(d),!1;return l},o):s===1&&(o=a.reduce(function(l,d){if(st(d))switch(d.value){case $g:return t=0,!1;case Ap:return t=1,!1;case tp:case zg:return r=0,!1;case Yg:return r=1,!1;case Jg:return r=2,!1;case ep:case Zg:return r=3,!1}else if(ga(d)||jt(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return l},o)),o){var f=Ql(A,a);n.push(f)}}),{size:r,shape:t,stops:n,position:i,type:2}},qm=function(A){return A.type===1},zm=function(A){return A.type===2},ch={name:"image",parse:function(A,e){if(e.type===22){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){var r=rp[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function Ym(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!rp[A.name])}var rp={"linear-gradient":jm,"-moz-linear-gradient":gf,"-ms-linear-gradient":gf,"-o-linear-gradient":gf,"-webkit-linear-gradient":gf,"radial-gradient":Xm,"-moz-radial-gradient":pf,"-ms-radial-gradient":pf,"-o-radial-gradient":pf,"-webkit-radial-gradient":pf,"-webkit-gradient":Wm},Jm={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return Vs(r)&&Ym(r)}).map(function(r){return ch.parse(A,r)})}},Zm={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(st(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$m={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return ai(e).map(function(t){return t.filter(jt)}).map(Kg)}},Ax={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return ai(e).map(function(t){return t.filter(st).map(function(r){return r.value}).join(" ")}).map(ex)}},ex=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Os;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(Os||(Os={}));var tx={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return ai(e).map(function(t){return t.filter(rx)})}},rx=function(A){return st(A)||jt(A)},Sl=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},nx=Sl("top"),ix=Sl("right"),ax=Sl("bottom"),sx=Sl("left"),Tl=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Kg(t.filter(jt))}}},ox=Tl("top-left"),fx=Tl("top-right"),lx=Tl("bottom-right"),cx=Tl("bottom-left"),Ll=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ux=Ll("top"),hx=Ll("right"),dx=Ll("bottom"),gx=Ll("left"),Il=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return d0(t)?t.number:0}}},px=Il("top"),Bx=Il("right"),wx=Il("bottom"),vx=Il("left"),mx={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xx={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Cx={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(st).reduce(function(t,r){return t|Fx(r.value)},0)}},Fx=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},yx={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ex={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},$f;(function(A){A.NORMAL="normal",A.STRICT="strict"})($f||($f={}));var _x={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return $f.STRICT;case"normal":default:return $f.NORMAL}}},Ux={name:"line-height",initialValue:"normal",prefix:!1,type:4},z1=function(A,e){return st(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:jt(A)?gt(A,e):e},bx={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:ch.parse(A,e)}},Qx={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Pu={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":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}}},Nl=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Sx=Nl("top"),Tx=Nl("right"),Lx=Nl("bottom"),Ix=Nl("left"),Nx={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(st).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Ox={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ol=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Dx=Ol("top"),Hx=Ol("right"),kx=Ol("bottom"),Px=Ol("left"),Rx={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Mx={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Kx={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&ku(e[0],"none")?[]:ai(e).map(function(t){for(var r={color:Ti.TRANSPARENT,offsetX:wr,offsetY:wr,blur:wr},n=0,i=0;i<t.length;i++){var a=t[i];ga(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:r.blur=a,n++):r.color=ha.parse(A,a)}return r})}},Gx={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Vx={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=Xx[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},jx=function(A){var e=A.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},Wx=function(A){var e=A.filter(function(o){return o.type===17}).map(function(o){return o.number}),t=e[0],r=e[1];e[2],e[3];var n=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var a=e[12],s=e[13];return e[14],e[15],e.length===16?[t,r,n,i,a,s]:null},Xx={matrix:jx,matrix3d:Wx},Y1={type:16,number:50,flags:h0},qx=[Y1,Y1],zx={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(jt);return t.length!==2?qx:[t[0],t[1]]}},Yx={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Vo;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(Vo||(Vo={}));var Jx={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return Vo.BREAK_ALL;case"keep-all":return Vo.KEEP_ALL;case"normal":default:return Vo.NORMAL}}},Zx={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(Ws(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},np={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},$x={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Ws(e)?e.number:1}},A4={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},e4={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(st).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},t4={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},r4={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},n4={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){if(Ws(e))return e.number;if(st(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},i4={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(st).map(function(t){return t.value})}},a4={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},er=function(A,e){return(A&e)!==0},s4={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},o4={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=e.filter(Mg),i=0;i<n.length;i++){var a=n[i],s=n[i+1];if(a.type===20){var o=s&&Ws(s)?s.number:1;r.push({counter:a.value,increment:o})}}return r}},f4={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var t=[],r=e.filter(Mg),n=0;n<r.length;n++){var i=r[n],a=r[n+1];if(st(i)&&i.value!=="none"){var s=a&&Ws(a)?a.number:0;t.push({counter:i.value,reset:s})}}return t}},l4={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(d0).map(function(t){return np.parse(A,t)})}},c4={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var r=[],n=e.filter(Hm);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var a=n[i].value,s=n[i+1].value;r.push({open:a,close:s})}return r}},J1=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},u4={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&ku(e[0],"none")?[]:ai(e).map(function(t){for(var r={color:255,offsetX:wr,offsetY:wr,blur:wr,spread:wr,inset:!1},n=0,i=0;i<t.length;i++){var a=t[i];ku(a,"inset")?r.inset=!0:ga(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:n===2?r.blur=a:r.spread=a,n++):r.color=ha.parse(A,a)}return r})}},h4={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(st).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},d4={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},g4={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return d0(e)?e.number:0}},p4=(function(){function A(e,t){var r,n;this.animationDuration=Ae(e,l4,t.animationDuration),this.backgroundClip=Ae(e,Rm,t.backgroundClip),this.backgroundColor=Ae(e,Mm,t.backgroundColor),this.backgroundImage=Ae(e,Jm,t.backgroundImage),this.backgroundOrigin=Ae(e,Zm,t.backgroundOrigin),this.backgroundPosition=Ae(e,$m,t.backgroundPosition),this.backgroundRepeat=Ae(e,Ax,t.backgroundRepeat),this.backgroundSize=Ae(e,tx,t.backgroundSize),this.borderTopColor=Ae(e,nx,t.borderTopColor),this.borderRightColor=Ae(e,ix,t.borderRightColor),this.borderBottomColor=Ae(e,ax,t.borderBottomColor),this.borderLeftColor=Ae(e,sx,t.borderLeftColor),this.borderTopLeftRadius=Ae(e,ox,t.borderTopLeftRadius),this.borderTopRightRadius=Ae(e,fx,t.borderTopRightRadius),this.borderBottomRightRadius=Ae(e,lx,t.borderBottomRightRadius),this.borderBottomLeftRadius=Ae(e,cx,t.borderBottomLeftRadius),this.borderTopStyle=Ae(e,ux,t.borderTopStyle),this.borderRightStyle=Ae(e,hx,t.borderRightStyle),this.borderBottomStyle=Ae(e,dx,t.borderBottomStyle),this.borderLeftStyle=Ae(e,gx,t.borderLeftStyle),this.borderTopWidth=Ae(e,px,t.borderTopWidth),this.borderRightWidth=Ae(e,Bx,t.borderRightWidth),this.borderBottomWidth=Ae(e,wx,t.borderBottomWidth),this.borderLeftWidth=Ae(e,vx,t.borderLeftWidth),this.boxShadow=Ae(e,u4,t.boxShadow),this.color=Ae(e,mx,t.color),this.direction=Ae(e,xx,t.direction),this.display=Ae(e,Cx,t.display),this.float=Ae(e,yx,t.cssFloat),this.fontFamily=Ae(e,t4,t.fontFamily),this.fontSize=Ae(e,r4,t.fontSize),this.fontStyle=Ae(e,a4,t.fontStyle),this.fontVariant=Ae(e,i4,t.fontVariant),this.fontWeight=Ae(e,n4,t.fontWeight),this.letterSpacing=Ae(e,Ex,t.letterSpacing),this.lineBreak=Ae(e,_x,t.lineBreak),this.lineHeight=Ae(e,Ux,t.lineHeight),this.listStyleImage=Ae(e,bx,t.listStyleImage),this.listStylePosition=Ae(e,Qx,t.listStylePosition),this.listStyleType=Ae(e,Pu,t.listStyleType),this.marginTop=Ae(e,Sx,t.marginTop),this.marginRight=Ae(e,Tx,t.marginRight),this.marginBottom=Ae(e,Lx,t.marginBottom),this.marginLeft=Ae(e,Ix,t.marginLeft),this.opacity=Ae(e,$x,t.opacity);var i=Ae(e,Nx,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Ae(e,Ox,t.overflowWrap),this.paddingTop=Ae(e,Dx,t.paddingTop),this.paddingRight=Ae(e,Hx,t.paddingRight),this.paddingBottom=Ae(e,kx,t.paddingBottom),this.paddingLeft=Ae(e,Px,t.paddingLeft),this.paintOrder=Ae(e,h4,t.paintOrder),this.position=Ae(e,Mx,t.position),this.textAlign=Ae(e,Rx,t.textAlign),this.textDecorationColor=Ae(e,A4,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=Ae(e,e4,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=Ae(e,Kx,t.textShadow),this.textTransform=Ae(e,Gx,t.textTransform),this.transform=Ae(e,Vx,t.transform),this.transformOrigin=Ae(e,zx,t.transformOrigin),this.visibility=Ae(e,Yx,t.visibility),this.webkitTextStrokeColor=Ae(e,d4,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ae(e,g4,t.webkitTextStrokeWidth),this.wordBreak=Ae(e,Jx,t.wordBreak),this.zIndex=Ae(e,Zx,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return da(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return er(this.display,4)||er(this.display,33554432)||er(this.display,268435456)||er(this.display,536870912)||er(this.display,67108864)||er(this.display,134217728)},A})(),B4=(function(){function A(e,t){this.content=Ae(e,s4,t.content),this.quotes=Ae(e,c4,t.quotes)}return A})(),Z1=(function(){function A(e,t){this.counterIncrement=Ae(e,o4,t.counterIncrement),this.counterReset=Ae(e,f4,t.counterReset)}return A})(),Ae=function(A,e,t){var r=new Pg,n=t!==null&&typeof t<"u"?t.toString():e.initialValue;r.write(n);var i=new Rg(r.read());switch(e.type){case 2:var a=i.parseComponentValue();return e.parse(A,st(a)?a.value:e.initialValue);case 0:return e.parse(A,i.parseComponentValue());case 1:return e.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return bl.parse(A,i.parseComponentValue());case"color":return ha.parse(A,i.parseComponentValue());case"image":return ch.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return ga(s)?s:wr;case"length-percentage":var o=i.parseComponentValue();return jt(o)?o:wr;case"time":return np.parse(A,i.parseComponentValue())}break}},w4="data-html2canvas-debug",v4=function(A){var e=A.getAttribute(w4);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ru=function(A,e){var t=v4(A);return t===1||e===t},si=(function(){function A(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Ru(t,3))debugger;this.styles=new p4(e,window.getComputedStyle(t,null)),Gu(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=_l(this.context,t),Ru(t,4)&&(this.flags|=16)}return A})(),m4=" ",$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Po=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Bf=0;Bf<$1.length;Bf++)Po[$1.charCodeAt(Bf)]=Bf;var x4=function(A){var e=A.length*.75,t=A.length,r,n=0,i,a,s,o;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var f=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),l=Array.isArray(f)?f:new Uint8Array(f);for(r=0;r<t;r+=4)i=Po[A.charCodeAt(r)],a=Po[A.charCodeAt(r+1)],s=Po[A.charCodeAt(r+2)],o=Po[A.charCodeAt(r+3)],l[n++]=i<<2|a>>4,l[n++]=(a&15)<<4|s>>2,l[n++]=(s&3)<<6|o&63;return f},C4=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},F4=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Ga=5,uh=11,Dc=2,y4=uh-Ga,ip=65536>>Ga,E4=1<<Ga,Hc=E4-1,_4=1024>>Ga,U4=ip+_4,b4=U4,Q4=32,S4=b4+Q4,T4=65536>>uh,L4=1<<y4,I4=L4-1,Ad=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},N4=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},O4=function(A,e){var t=x4(A),r=Array.isArray(t)?F4(t):new Uint32Array(t),n=Array.isArray(t)?C4(t):new Uint16Array(t),i=24,a=Ad(n,i/2,r[4]/2),s=r[5]===2?Ad(n,(i+r[4])/2):N4(r,Math.ceil((i+r[4])/4));return new D4(r[0],r[1],r[2],r[3],a,s)},D4=(function(){function A(e,t,r,n,i,a){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Ga],t=(t<<Dc)+(e&Hc),this.data[t];if(e<=65535)return t=this.index[ip+(e-55296>>Ga)],t=(t<<Dc)+(e&Hc),this.data[t];if(e<this.highStart)return t=S4-T4+(e>>uh),t=this.index[t],t+=e>>Ga&I4,t=this.index[t],t=(t<<Dc)+(e&Hc),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),ed="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H4=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var wf=0;wf<ed.length;wf++)H4[ed.charCodeAt(wf)]=wf;var k4=1,kc=2,Pc=3,td=4,rd=5,P4=7,nd=8,Rc=9,Mc=10,id=11,ad=12,sd=13,od=14,Kc=15,R4=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);(i&64512)===56320?e.push(((n&1023)<<10)+(i&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},M4=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=A[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},K4=O4(m4),wn="×",Gc="÷",G4=function(A){return K4.get(A)},V4=function(A,e,t){var r=t-2,n=e[r],i=e[t-1],a=e[t];if(i===kc&&a===Pc)return wn;if(i===kc||i===Pc||i===td||a===kc||a===Pc||a===td)return Gc;if(i===nd&&[nd,Rc,id,ad].indexOf(a)!==-1||(i===id||i===Rc)&&(a===Rc||a===Mc)||(i===ad||i===Mc)&&a===Mc||a===sd||a===rd||a===P4||i===k4)return wn;if(i===sd&&a===od){for(;n===rd;)n=e[--r];if(n===od)return wn}if(i===Kc&&a===Kc){for(var s=0;n===Kc;)s++,n=e[--r];if(s%2===0)return wn}return Gc},j4=function(A){var e=R4(A),t=e.length,r=0,n=0,i=e.map(G4);return{next:function(){if(r>=t)return{done:!0,value:null};for(var a=wn;r<t&&(a=V4(e,i,++r))===wn;);if(a!==wn||r===t){var s=M4.apply(null,e.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},W4=function(A){for(var e=j4(A),t=[],r;!(r=e.next()).done;)r.value&&t.push(r.value.slice());return t},X4=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(A.body.removeChild(r),i===e)return!0}}return!1},q4=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=e.firstChild,n=Ul(r.data).map(function(o){return Ot(o)}),i=0,a={},s=n.every(function(o,f){t.setStart(r,i),t.setEnd(r,i+o.length);var l=t.getBoundingClientRect();i+=o.length;var d=l.x>a.x||l.y>a.y;return a=l,f===0?!0:d});return A.body.removeChild(e),s},z4=function(){return typeof new Image().crossOrigin<"u"},Y4=function(){return typeof new XMLHttpRequest().responseType=="string"},J4=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},fd=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},Z4=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=e.toDataURL();n.src=i;var a=Mu(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),ld(a).then(function(s){r.drawImage(s,0,0);var o=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var f=A.createElement("div");return f.style.backgroundImage="url("+i+")",f.style.height=t+"px",fd(o)?ld(Mu(t,t,0,0,f)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),fd(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Mu=function(A,e,t,r,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",A.toString()),a.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(n),a},ld=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},dr={get SUPPORT_RANGE_BOUNDS(){var A=X4(document);return Object.defineProperty(dr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=dr.SUPPORT_RANGE_BOUNDS&&q4(document);return Object.defineProperty(dr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=J4(document);return Object.defineProperty(dr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?Z4(document):Promise.resolve(!1);return Object.defineProperty(dr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=z4();return Object.defineProperty(dr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Y4();return Object.defineProperty(dr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(dr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(dr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},jo=(function(){function A(e,t){this.text=e,this.bounds=t}return A})(),$4=function(A,e,t,r){var n=tC(e,t),i=[],a=0;return n.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(dr.SUPPORT_RANGE_BOUNDS){var o=cd(r,a,s.length).getClientRects();if(o.length>1){var f=hh(s),l=0;f.forEach(function(g){i.push(new jo(g,Oi.fromDOMRectList(A,cd(r,l+a,g.length).getClientRects()))),l+=g.length})}else i.push(new jo(s,Oi.fromDOMRectList(A,o)))}else{var d=r.splitText(s.length);i.push(new jo(s,AC(A,r))),r=d}else dr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));a+=s.length}),i},AC=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var i=_l(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return Oi.EMPTY},cd=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},hh=function(A){if(dr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(t){return t.segment})}return W4(A)},eC=function(A,e){if(dr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(r){return r.segment})}return nC(A,e)},tC=function(A,e){return e.letterSpacing!==0?hh(A):eC(A,e)},rC=[32,160,4961,65792,65793,4153,4241],nC=function(A,e){for(var t=T5(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],n,i=function(){if(n.value){var a=n.value.slice(),s=Ul(a),o="";s.forEach(function(f){rC.indexOf(f)===-1?o+=Ot(f):(o.length&&r.push(o),r.push(Ot(f)),o="")}),o.length&&r.push(o)}};!(n=t.next()).done;)i();return r},iC=(function(){function A(e,t,r){this.text=aC(t.data,r.textTransform),this.textBounds=$4(e,this.text,r,t)}return A})(),aC=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(sC,oC);case 2:return A.toUpperCase();default:return A}},sC=/(^|\s|:|-|\(|\))([a-z])/g,oC=function(A,e,t){return A.length>0?e+t.toUpperCase():A},ap=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,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 e})(si),sp=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return e})(si),op=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,r)||this,i=new XMLSerializer,a=_l(t,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.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 e})(si),fp=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e})(si),Ku=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return e})(si),fC=[{type:15,flags:0,unit:"px",number:3}],lC=[{type:16,flags:0,number:50}],cC=function(A){return A.width>A.height?new Oi(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new Oi(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},uC=function(A){var e=A.type===hC?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},Al="checkbox",el="radio",hC="password",ud=707406591,dh=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=uC(r),(n.type===Al||n.type===el)&&(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=cC(n.bounds)),n.type){case Al:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=fC;break;case el:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=lC;break}return n}return e})(si),lp=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return e})(si),cp=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e})(si),up=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,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=dp(t,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?Go(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Ti.TRANSPARENT,a=r.contentWindow.document.body?Go(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):Ti.TRANSPARENT;n.backgroundColor=da(i)?da(a)?n.styles.backgroundColor:a:i}}catch{}return n}return e})(si),dC=["OL","UL","MENU"],Gf=function(A,e,t,r){for(var n=e.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,gp(n)&&n.data.trim().length>0)t.textNodes.push(new iC(A,n,t.styles));else if(Ls(n))if(vp(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return Gf(A,s,t,r)});else{var a=hp(A,n);a.styles.isVisible()&&(gC(n,a,r)?a.flags|=4:pC(a.styles)&&(a.flags|=2),dC.indexOf(n.tagName)!==-1&&(a.flags|=8),t.elements.push(a),n.slot,n.shadowRoot?Gf(A,n.shadowRoot,a,r):!tl(n)&&!pp(n)&&!rl(n)&&Gf(A,n,a,r))}},hp=function(A,e){return Vu(e)?new ap(A,e):Bp(e)?new sp(A,e):pp(e)?new op(A,e):BC(e)?new fp(A,e):wC(e)?new Ku(A,e):vC(e)?new dh(A,e):rl(e)?new lp(A,e):tl(e)?new cp(A,e):wp(e)?new up(A,e):new si(A,e)},dp=function(A,e){var t=hp(A,e);return t.flags|=4,Gf(A,e,t,t),t},gC=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||gh(A)&&t.styles.isTransparent()},pC=function(A){return A.isPositioned()||A.isFloating()},gp=function(A){return A.nodeType===Node.TEXT_NODE},Ls=function(A){return A.nodeType===Node.ELEMENT_NODE},Gu=function(A){return Ls(A)&&typeof A.style<"u"&&!Vf(A)},Vf=function(A){return typeof A.className=="object"},BC=function(A){return A.tagName==="LI"},wC=function(A){return A.tagName==="OL"},vC=function(A){return A.tagName==="INPUT"},mC=function(A){return A.tagName==="HTML"},pp=function(A){return A.tagName==="svg"},gh=function(A){return A.tagName==="BODY"},Bp=function(A){return A.tagName==="CANVAS"},hd=function(A){return A.tagName==="VIDEO"},Vu=function(A){return A.tagName==="IMG"},wp=function(A){return A.tagName==="IFRAME"},dd=function(A){return A.tagName==="STYLE"},xC=function(A){return A.tagName==="SCRIPT"},tl=function(A){return A.tagName==="TEXTAREA"},rl=function(A){return A.tagName==="SELECT"},vp=function(A){return A.tagName==="SLOT"},gd=function(A){return A.tagName.indexOf("-")>0},CC=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},A.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},A.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,i=!0;r!==null&&r.forEach(function(s){var o=t.counters[s.counter];o&&s.increment!==0&&(i=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});var a=[];return i&&n.forEach(function(s){var o=t.counters[s.counter];a.push(s.counter),o||(o=t.counters[s.counter]=[]),o.push(s.reset)}),a},A})(),pd={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"]},Bd={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},FC={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},yC={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ws=function(A,e,t,r,n,i){return A<e||A>t?r0(A,n,i.length>0):r.integers.reduce(function(a,s,o){for(;A>=s;)A-=s,a+=r.values[o];return a},"")+i},mp=function(A,e,t,r){var n="";do t||A--,n=r(A)+n,A/=e;while(A*e>=e);return n},Nt=function(A,e,t,r,n){var i=t-e+1;return(A<0?"-":"")+(mp(Math.abs(A),i,r,function(a){return Ot(Math.floor(a%i)+e)})+n)},Da=function(A,e,t){t===void 0&&(t=". ");var r=e.length;return mp(Math.abs(A),r,!1,function(n){return e[Math.floor(n%r)]})+t},Us=1,na=2,ia=4,Ro=8,Ui=function(A,e,t,r,n,i){if(A<-9999||A>9999)return r0(A,4,n.length>0);var a=Math.abs(A),s=n;if(a===0)return e[0]+s;for(var o=0;a>0&&o<=4;o++){var f=a%10;f===0&&er(i,Us)&&s!==""?s=e[f]+s:f>1||f===1&&o===0||f===1&&o===1&&er(i,na)||f===1&&o===1&&er(i,ia)&&A>100||f===1&&o>1&&er(i,Ro)?s=e[f]+(o>0?t[o-1]:"")+s:f===1&&o>0&&(s=t[o-1]+s),a=Math.floor(a/10)}return(A<0?r:"")+s},wd="十百千萬",vd="拾佰仟萬",md="マイナス",Vc="마이너스",r0=function(A,e,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",a=t?" ":"";switch(e){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=Nt(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Da(A,"〇一二三四五六七八九",n);case 6:return ws(A,1,3999,pd,3,r).toLowerCase();case 7:return ws(A,1,3999,pd,3,r);case 8:return Nt(A,945,969,!1,r);case 9:return Nt(A,97,122,!1,r);case 10:return Nt(A,65,90,!1,r);case 11:return Nt(A,1632,1641,!0,r);case 12:case 49:return ws(A,1,9999,Bd,3,r);case 35:return ws(A,1,9999,Bd,3,r).toLowerCase();case 13:return Nt(A,2534,2543,!0,r);case 14:case 30:return Nt(A,6112,6121,!0,r);case 15:return Da(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Da(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Ui(A,"零一二三四五六七八九",wd,"負",n,na|ia|Ro);case 47:return Ui(A,"零壹貳參肆伍陸柒捌玖",vd,"負",n,Us|na|ia|Ro);case 42:return Ui(A,"零一二三四五六七八九",wd,"负",n,na|ia|Ro);case 41:return Ui(A,"零壹贰叁肆伍陆柒捌玖",vd,"负",n,Us|na|ia|Ro);case 26:return Ui(A,"〇一二三四五六七八九","十百千万",md,n,0);case 25:return Ui(A,"零壱弐参四伍六七八九","拾百千万",md,n,Us|na|ia);case 31:return Ui(A,"영일이삼사오육칠팔구","십백천만",Vc,i,Us|na|ia);case 33:return Ui(A,"零一二三四五六七八九","十百千萬",Vc,i,0);case 32:return Ui(A,"零壹貳參四五六七八九","拾百千",Vc,i,Us|na|ia);case 18:return Nt(A,2406,2415,!0,r);case 20:return ws(A,1,19999,yC,3,r);case 21:return Nt(A,2790,2799,!0,r);case 22:return Nt(A,2662,2671,!0,r);case 22:return ws(A,1,10999,FC,3,r);case 23:return Da(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Da(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Nt(A,3302,3311,!0,r);case 28:return Da(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Da(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Nt(A,3792,3801,!0,r);case 37:return Nt(A,6160,6169,!0,r);case 38:return Nt(A,4160,4169,!0,r);case 39:return Nt(A,2918,2927,!0,r);case 40:return Nt(A,1776,1785,!0,r);case 43:return Nt(A,3046,3055,!0,r);case 44:return Nt(A,3174,3183,!0,r);case 45:return Nt(A,3664,3673,!0,r);case 46:return Nt(A,3872,3881,!0,r);case 3:default:return Nt(A,48,57,!0,r)}},xp="data-html2canvas-ignore",xd=(function(){function A(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new CC,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,t){var r=this,n=EC(e,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,s=n.contentWindow,o=s.document,f=bC(n).then(function(){return Or(r,void 0,void 0,function(){var l,d;return Ur(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(LC),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),l=this.options.onclone,d=this.clonedReferenceElement,typeof d>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,UC(o)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof l=="function"?[2,Promise.resolve().then(function(){return l(o,d)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(SC(document.doctype)+"<html></html>"),TC(this.referenceElement.ownerDocument,i,a),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),f},A.prototype.createElementClone=function(e){if(Ru(e,2))debugger;if(Bp(e))return this.createCanvasClone(e);if(hd(e))return this.createVideoClone(e);if(dd(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Vu(t)&&(Vu(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),gd(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return jc(e.style,t),t},A.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),n=e.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 e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var i=e.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var o=s.getContextAttributes();o?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}a.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,t,r){(!Ls(t)||!xC(t)&&!t.hasAttribute(xp)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Ls(t)||!dd(t))&&e.appendChild(this.cloneNode(t,r))},A.prototype.cloneChildNodes=function(e,t,r){for(var n=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Ls(i)&&vp(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(s){return n.appendChildNode(t,s,r)})}else this.appendChildNode(t,i,r)},A.prototype.cloneNode=function(e,t){if(gp(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Ls(e)&&(Gu(e)||Vf(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var i=r.getComputedStyle(e),a=r.getComputedStyle(e,":before"),s=r.getComputedStyle(e,":after");this.referenceElement===e&&Gu(n)&&(this.clonedReferenceElement=n),gh(n)&&OC(n);var o=this.counters.parse(new Z1(this.context,i)),f=this.resolvePseudoContent(e,n,a,Wo.BEFORE);gd(e)&&(t=!0),hd(e)||this.cloneChildNodes(e,n,t),f&&n.insertBefore(f,n.firstChild);var l=this.resolvePseudoContent(e,n,s,Wo.AFTER);return l&&n.appendChild(l),this.counters.pop(o),(i&&(this.options.copyStyles||Vf(e))&&!wp(e)||t)&&jc(i,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(tl(e)||rl(e))&&(tl(n)||rl(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,t,r,n){var i=this;if(r){var a=r.content,s=t.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Z1(this.context,r));var o=new B4(this.context,r),f=s.createElement("html2canvaspseudoelement");jc(r,f),o.content.forEach(function(d){if(d.type===0)f.appendChild(s.createTextNode(d.value));else if(d.type===22){var g=s.createElement("img");g.src=d.value,g.style.opacity="1",f.appendChild(g)}else if(d.type===18){if(d.name==="attr"){var u=d.values.filter(st);u.length&&f.appendChild(s.createTextNode(e.getAttribute(u[0].value)||""))}else if(d.name==="counter"){var v=d.values.filter(Vs),B=v[0],x=v[1];if(B&&st(B)){var F=i.counters.getCounterValue(B.value),_=x&&st(x)?Pu.parse(i.context,x.value):3;f.appendChild(s.createTextNode(r0(F,_,!1)))}}else if(d.name==="counters"){var I=d.values.filter(Vs),B=I[0],L=I[1],x=I[2];if(B&&st(B)){var q=i.counters.getCounterValues(B.value),rA=x&&st(x)?Pu.parse(i.context,x.value):3,M=L&&L.type===0?L.value:"",R=q.map(function(y){return r0(y,rA,!1)}).join(M);f.appendChild(s.createTextNode(R))}}}else if(d.type===20)switch(d.value){case"open-quote":f.appendChild(s.createTextNode(J1(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":f.appendChild(s.createTextNode(J1(o.quotes,--i.quoteDepth,!1)));break;default:f.appendChild(s.createTextNode(d.value))}}),f.className=ju+" "+Wu;var l=n===Wo.BEFORE?" "+ju:" "+Wu;return Vf(t)?t.className.baseValue+=l:t.className+=l,f}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A})(),Wo;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(Wo||(Wo={}));var EC=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(xp,"true"),A.body.appendChild(t),t},_C=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},UC=function(A){return Promise.all([].slice.call(A.images,0).map(_C))},bC=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),e(A))},50)}})},QC=["all","d","content"],jc=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);QC.indexOf(r)===-1&&e.style.setProperty(r,A.getPropertyValue(r))}return e},SC=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},TC=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},LC=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},IC=":before",NC=":after",ju="___html2canvas___pseudoelement_before",Wu="___html2canvas___pseudoelement_after",Cd=`{
    content: "" !important;
    display: none !important;
}`,OC=function(A){DC(A,"."+ju+IC+Cd+`
         .`+Wu+NC+Cd)},DC=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Cp=(function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),HC=(function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Xc(e)||MC(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return Or(this,void 0,void 0,function(){var t,r,n,i,a=this;return Ur(this,function(s){switch(s.label){case 0:return t=Cp.isSameOrigin(e),r=!Wc(e)&&this._options.useCORS===!0&&dr.SUPPORT_CORS_IMAGES&&!t,n=!Wc(e)&&!t&&!Xc(e)&&typeof this._options.proxy=="string"&&dr.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Wc(e)&&!Xc(e)&&!n&&!r?[2]:(i=e,n?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(o,f){var l=new Image;l.onload=function(){return o(l)},l.onerror=f,(KC(i)||r)&&(l.crossOrigin="anonymous"),l.src=i,l.complete===!0&&setTimeout(function(){return o(l)},500),a._options.imageTimeout>0&&setTimeout(function(){return f("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(i,a){var s=dr.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(s==="text")i(o.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(g){return a(g)},!1),d.readAsDataURL(o.response)}else a("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=a;var f=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+f+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),t._options.imageTimeout){var l=t._options.imageTimeout;o.timeout=l,o.ontimeout=function(){return a("Timed out ("+l+"ms) proxying "+n)}}o.send()})},A})(),kC=/^data:image\/svg\+xml/i,PC=/^data:image\/.*;base64,/i,RC=/^data:image\/.*/i,MC=function(A){return dr.SUPPORT_SVG_DRAWING||!GC(A)},Wc=function(A){return RC.test(A)},KC=function(A){return PC.test(A)},Xc=function(A){return A.substr(0,4)==="blob"},GC=function(A){return A.substr(-3).toLowerCase()==="svg"||kC.test(A)},JA=(function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A})(),vs=function(A,e,t){return new JA(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},vf=(function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=vs(this.start,this.startControl,e),n=vs(this.startControl,this.endControl,e),i=vs(this.endControl,this.end,e),a=vs(r,n,e),s=vs(n,i,e),o=vs(a,s,e);return t?new A(this.start,r,a,o):new A(o,s,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),mn=function(A){return A.type===1},VC=(function(){function A(e){var t=e.styles,r=e.bounds,n=ko(t.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],s=ko(t.borderTopRightRadius,r.width,r.height),o=s[0],f=s[1],l=ko(t.borderBottomRightRadius,r.width,r.height),d=l[0],g=l[1],u=ko(t.borderBottomLeftRadius,r.width,r.height),v=u[0],B=u[1],x=[];x.push((i+o)/r.width),x.push((v+d)/r.width),x.push((a+B)/r.height),x.push((f+g)/r.height);var F=Math.max.apply(Math,x);F>1&&(i/=F,a/=F,o/=F,f/=F,d/=F,g/=F,v/=F,B/=F);var _=r.width-o,I=r.height-g,L=r.width-d,q=r.height-B,rA=t.borderTopWidth,M=t.borderRightWidth,R=t.borderBottomWidth,E=t.borderLeftWidth,X=gt(t.paddingTop,e.bounds.width),y=gt(t.paddingRight,e.bounds.width),T=gt(t.paddingBottom,e.bounds.width),P=gt(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?xt(r.left+E/3,r.top+rA/3,i-E/3,a-rA/3,Ye.TOP_LEFT):new JA(r.left+E/3,r.top+rA/3),this.topRightBorderDoubleOuterBox=i>0||a>0?xt(r.left+_,r.top+rA/3,o-M/3,f-rA/3,Ye.TOP_RIGHT):new JA(r.left+r.width-M/3,r.top+rA/3),this.bottomRightBorderDoubleOuterBox=d>0||g>0?xt(r.left+L,r.top+I,d-M/3,g-R/3,Ye.BOTTOM_RIGHT):new JA(r.left+r.width-M/3,r.top+r.height-R/3),this.bottomLeftBorderDoubleOuterBox=v>0||B>0?xt(r.left+E/3,r.top+q,v-E/3,B-R/3,Ye.BOTTOM_LEFT):new JA(r.left+E/3,r.top+r.height-R/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?xt(r.left+E*2/3,r.top+rA*2/3,i-E*2/3,a-rA*2/3,Ye.TOP_LEFT):new JA(r.left+E*2/3,r.top+rA*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?xt(r.left+_,r.top+rA*2/3,o-M*2/3,f-rA*2/3,Ye.TOP_RIGHT):new JA(r.left+r.width-M*2/3,r.top+rA*2/3),this.bottomRightBorderDoubleInnerBox=d>0||g>0?xt(r.left+L,r.top+I,d-M*2/3,g-R*2/3,Ye.BOTTOM_RIGHT):new JA(r.left+r.width-M*2/3,r.top+r.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||B>0?xt(r.left+E*2/3,r.top+q,v-E*2/3,B-R*2/3,Ye.BOTTOM_LEFT):new JA(r.left+E*2/3,r.top+r.height-R*2/3),this.topLeftBorderStroke=i>0||a>0?xt(r.left+E/2,r.top+rA/2,i-E/2,a-rA/2,Ye.TOP_LEFT):new JA(r.left+E/2,r.top+rA/2),this.topRightBorderStroke=i>0||a>0?xt(r.left+_,r.top+rA/2,o-M/2,f-rA/2,Ye.TOP_RIGHT):new JA(r.left+r.width-M/2,r.top+rA/2),this.bottomRightBorderStroke=d>0||g>0?xt(r.left+L,r.top+I,d-M/2,g-R/2,Ye.BOTTOM_RIGHT):new JA(r.left+r.width-M/2,r.top+r.height-R/2),this.bottomLeftBorderStroke=v>0||B>0?xt(r.left+E/2,r.top+q,v-E/2,B-R/2,Ye.BOTTOM_LEFT):new JA(r.left+E/2,r.top+r.height-R/2),this.topLeftBorderBox=i>0||a>0?xt(r.left,r.top,i,a,Ye.TOP_LEFT):new JA(r.left,r.top),this.topRightBorderBox=o>0||f>0?xt(r.left+_,r.top,o,f,Ye.TOP_RIGHT):new JA(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||g>0?xt(r.left+L,r.top+I,d,g,Ye.BOTTOM_RIGHT):new JA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=v>0||B>0?xt(r.left,r.top+q,v,B,Ye.BOTTOM_LEFT):new JA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?xt(r.left+E,r.top+rA,Math.max(0,i-E),Math.max(0,a-rA),Ye.TOP_LEFT):new JA(r.left+E,r.top+rA),this.topRightPaddingBox=o>0||f>0?xt(r.left+Math.min(_,r.width-M),r.top+rA,_>r.width+M?0:Math.max(0,o-M),Math.max(0,f-rA),Ye.TOP_RIGHT):new JA(r.left+r.width-M,r.top+rA),this.bottomRightPaddingBox=d>0||g>0?xt(r.left+Math.min(L,r.width-E),r.top+Math.min(I,r.height-R),Math.max(0,d-M),Math.max(0,g-R),Ye.BOTTOM_RIGHT):new JA(r.left+r.width-M,r.top+r.height-R),this.bottomLeftPaddingBox=v>0||B>0?xt(r.left+E,r.top+Math.min(q,r.height-R),Math.max(0,v-E),Math.max(0,B-R),Ye.BOTTOM_LEFT):new JA(r.left+E,r.top+r.height-R),this.topLeftContentBox=i>0||a>0?xt(r.left+E+P,r.top+rA+X,Math.max(0,i-(E+P)),Math.max(0,a-(rA+X)),Ye.TOP_LEFT):new JA(r.left+E+P,r.top+rA+X),this.topRightContentBox=o>0||f>0?xt(r.left+Math.min(_,r.width+E+P),r.top+rA+X,_>r.width+E+P?0:o-E+P,f-(rA+X),Ye.TOP_RIGHT):new JA(r.left+r.width-(M+y),r.top+rA+X),this.bottomRightContentBox=d>0||g>0?xt(r.left+Math.min(L,r.width-(E+P)),r.top+Math.min(I,r.height+rA+X),Math.max(0,d-(M+y)),g-(R+T),Ye.BOTTOM_RIGHT):new JA(r.left+r.width-(M+y),r.top+r.height-(R+T)),this.bottomLeftContentBox=v>0||B>0?xt(r.left+E+P,r.top+q,Math.max(0,v-(E+P)),B-(R+T),Ye.BOTTOM_LEFT):new JA(r.left+E+P,r.top+r.height-(R+T))}return A})(),Ye;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ye||(Ye={}));var xt=function(A,e,t,r,n){var i=4*((Math.sqrt(2)-1)/3),a=t*i,s=r*i,o=A+t,f=e+r;switch(n){case Ye.TOP_LEFT:return new vf(new JA(A,f),new JA(A,f-s),new JA(o-a,e),new JA(o,e));case Ye.TOP_RIGHT:return new vf(new JA(A,e),new JA(A+a,e),new JA(o,f-s),new JA(o,f));case Ye.BOTTOM_RIGHT:return new vf(new JA(o,e),new JA(o,e+s),new JA(A+a,f),new JA(A,f));case Ye.BOTTOM_LEFT:default:return new vf(new JA(o,f),new JA(o-a,f),new JA(A,e+s),new JA(A,e))}},nl=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},jC=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},il=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},WC=(function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A})(),mf=(function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A})(),XC=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),qC=function(A){return A.type===0},Fp=function(A){return A.type===1},zC=function(A){return A.type===2},Fd=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},YC=function(A,e,t,r,n){return A.map(function(i,a){switch(a){case 0:return i.add(e,t);case 1:return i.add(e+r,t);case 2:return i.add(e+r,t+n);case 3:return i.add(e,t+n)}return i})},yp=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),Ep=(function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new VC(this.container),this.container.styles.opacity<1&&this.effects.push(new XC(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 WC(r,n,i))}if(this.container.styles.overflowX!==0){var a=nl(this.curves),s=il(this.curves);Fd(a,s)?this.effects.push(new mf(a,6)):(this.effects.push(new mf(a,2)),this.effects.push(new mf(s,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(o){return!Fp(o)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var a=nl(r.curves),s=il(r.curves);Fd(a,s)||n.unshift(new mf(s,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(o){return er(o.target,e)})},A})(),Xu=function(A,e,t,r){A.container.elements.forEach(function(n){var i=er(n.flags,4),a=er(n.flags,2),s=new Ep(n,A);er(n.styles.display,2048)&&r.push(s);var o=er(n.flags,8)?[]:r;if(i||a){var f=i||n.styles.isPositioned()?t:e,l=new yp(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var g=0;f.negativeZIndex.some(function(v,B){return d>v.element.container.styles.zIndex.order?(g=B,!1):g>0}),f.negativeZIndex.splice(g,0,l)}else if(d>0){var u=0;f.positiveZIndex.some(function(v,B){return d>=v.element.container.styles.zIndex.order?(u=B+1,!1):u>0}),f.positiveZIndex.splice(u,0,l)}else f.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else n.styles.isFloating()?f.nonPositionedFloats.push(l):f.nonPositionedInlineLevel.push(l);Xu(s,l,i?l:t,o)}else n.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Xu(s,e,t,o);er(n.flags,8)&&_p(n,o)})},_p=function(A,e){for(var t=A instanceof Ku?A.start:1,r=A instanceof Ku?A.reversed:!1,n=0;n<e.length;n++){var i=e[n];i.container instanceof fp&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=r0(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},JC=function(A){var e=new Ep(A,null),t=new yp(e),r=[];return Xu(e,t,t,r),_p(e.container,r),t},yd=function(A,e){switch(e){case 0:return Cn(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Cn(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Cn(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return Cn(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},ZC=function(A,e){switch(e){case 0:return Cn(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Cn(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Cn(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return Cn(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},$C=function(A,e){switch(e){case 0:return Cn(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Cn(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Cn(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return Cn(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},AF=function(A,e){switch(e){case 0:return xf(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return xf(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return xf(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return xf(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},xf=function(A,e){var t=[];return mn(A)?t.push(A.subdivide(.5,!1)):t.push(A),mn(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Cn=function(A,e,t,r){var n=[];return mn(A)?n.push(A.subdivide(.5,!1)):n.push(A),mn(t)?n.push(t.subdivide(.5,!0)):n.push(t),mn(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),mn(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Up=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},al=function(A){var e=A.styles,t=A.bounds,r=gt(e.paddingLeft,t.width),n=gt(e.paddingRight,t.width),i=gt(e.paddingTop,t.width),a=gt(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+i+a))},eF=function(A,e){return A===0?e.bounds:A===2?al(e):Up(e)},tF=function(A,e){return A===0?e.bounds:A===2?al(e):Up(e)},qc=function(A,e,t){var r=eF(bs(A.styles.backgroundOrigin,e),A),n=tF(bs(A.styles.backgroundClip,e),A),i=rF(bs(A.styles.backgroundSize,e),t,r),a=i[0],s=i[1],o=ko(bs(A.styles.backgroundPosition,e),r.width-a,r.height-s),f=nF(bs(A.styles.backgroundRepeat,e),o,i,r,n),l=Math.round(r.left+o[0]),d=Math.round(r.top+o[1]);return[f,l,d,a,s]},ms=function(A){return st(A)&&A.value===Os.AUTO},Cf=function(A){return typeof A=="number"},rF=function(A,e,t){var r=e[0],n=e[1],i=e[2],a=A[0],s=A[1];if(!a)return[0,0];if(jt(a)&&s&&jt(s))return[gt(a,t.width),gt(s,t.height)];var o=Cf(i);if(st(a)&&(a.value===Os.CONTAIN||a.value===Os.COVER)){if(Cf(i)){var f=t.width/t.height;return f<i!=(a.value===Os.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var l=Cf(r),d=Cf(n),g=l||d;if(ms(a)&&(!s||ms(s))){if(l&&d)return[r,n];if(!o&&!g)return[t.width,t.height];if(g&&o){var u=l?r:n*i,v=d?n:r/i;return[u,v]}var B=l?r:t.width,x=d?n:t.height;return[B,x]}if(o){var F=0,_=0;return jt(a)?F=gt(a,t.width):jt(s)&&(_=gt(s,t.height)),ms(a)?F=_*i:(!s||ms(s))&&(_=F/i),[F,_]}var I=null,L=null;if(jt(a)?I=gt(a,t.width):s&&jt(s)&&(L=gt(s,t.height)),I!==null&&(!s||ms(s))&&(L=l&&d?I/r*n:t.height),L!==null&&ms(a)&&(I=l&&d?L/n*r:t.width),I!==null&&L!==null)return[I,L];throw new Error("Unable to calculate background-size for element")},bs=function(A,e){var t=A[e];return typeof t>"u"?A[0]:t},nF=function(A,e,t,r,n){var i=e[0],a=e[1],s=t[0],o=t[1];switch(A){case 2:return[new JA(Math.round(r.left),Math.round(r.top+a)),new JA(Math.round(r.left+r.width),Math.round(r.top+a)),new JA(Math.round(r.left+r.width),Math.round(o+r.top+a)),new JA(Math.round(r.left),Math.round(o+r.top+a))];case 3:return[new JA(Math.round(r.left+i),Math.round(r.top)),new JA(Math.round(r.left+i+s),Math.round(r.top)),new JA(Math.round(r.left+i+s),Math.round(r.height+r.top)),new JA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new JA(Math.round(r.left+i),Math.round(r.top+a)),new JA(Math.round(r.left+i+s),Math.round(r.top+a)),new JA(Math.round(r.left+i+s),Math.round(r.top+a+o)),new JA(Math.round(r.left+i),Math.round(r.top+a+o))];default:return[new JA(Math.round(n.left),Math.round(n.top)),new JA(Math.round(n.left+n.width),Math.round(n.top)),new JA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new JA(Math.round(n.left),Math.round(n.height+n.top))]}},iF="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ed="Hidden Text",aF=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=iF,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Ed)),r.appendChild(i),r.appendChild(n);var s=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Ed)),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:s,middle:o}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A})(),bp=(function(){function A(e,t){this.context=e,this.options=t}return A})(),sF=1e4,oF=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,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 aF(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 e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),zC(t)&&(this.ctx.globalAlpha=t.opacity),qC(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Fp(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Or(this,void 0,void 0,function(){var r;return Ur(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Or(this,void 0,void 0,function(){return Ur(this,function(r){switch(r.label){case 0:if(er(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var i=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var a=hh(t.text);a.reduce(function(s,o){return i.ctx.fillText(o,s,t.bounds.top+n),s+i.ctx.measureText(o).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=hF(t.fontFamily).join(", "),i=d0(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},e.prototype.renderTextNode=function(t,r){return Or(this,void 0,void 0,function(){var n,i,a,s,o,f,l,d,g=this;return Ur(this,function(u){return n=this.createFontStyle(r),i=n[0],a=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,s),f=o.baseline,l=o.middle,d=r.paintOrder,t.textBounds.forEach(function(v){d.forEach(function(B){switch(B){case 0:g.ctx.fillStyle=rr(r.color),g.renderTextWithLetterSpacing(v,r.letterSpacing,f);var x=r.textShadow;x.length&&v.text.trim().length&&(x.slice(0).reverse().forEach(function(F){g.ctx.shadowColor=rr(F.color),g.ctx.shadowOffsetX=F.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=F.offsetY.number*g.options.scale,g.ctx.shadowBlur=F.blur.number,g.renderTextWithLetterSpacing(v,r.letterSpacing,f)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),r.textDecorationLine.length&&(g.ctx.fillStyle=rr(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(F){switch(F){case 1:g.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+f),v.bounds.width,1);break;case 2:g.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:g.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+l),v.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&v.text.trim().length&&(g.ctx.strokeStyle=rr(r.webkitTextStrokeColor),g.ctx.lineWidth=r.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+f)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=al(t),a=il(r);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Or(this,void 0,void 0,function(){var r,n,i,a,s,o,_,_,f,l,d,g,L,u,v,q,B,x,F,_,I,L,q;return Ur(this,function(rA){switch(rA.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,a=0,s=r.textNodes,rA.label=1;case 1:return a<s.length?(o=s[a],[4,this.renderTextNode(o,i)]):[3,4];case 2:rA.sent(),rA.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof ap))return[3,8];rA.label=5;case 5:return rA.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return _=rA.sent(),this.renderReplacedElement(r,n,_),[3,8];case 7:return rA.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof sp&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof op))return[3,12];rA.label=9;case 9:return rA.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return _=rA.sent(),this.renderReplacedElement(r,n,_),[3,12];case 11:return rA.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof up&&r.tree?(f=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,f.render(r.tree)]):[3,14];case 13:l=rA.sent(),r.width&&r.height&&this.ctx.drawImage(l,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),rA.label=14;case 14:if(r instanceof dh&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===Al?r.checked&&(this.ctx.save(),this.path([new JA(r.bounds.left+d*.39363,r.bounds.top+d*.79),new JA(r.bounds.left+d*.16,r.bounds.top+d*.5549),new JA(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new JA(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new JA(r.bounds.left+d*.72983,r.bounds.top+d*.23),new JA(r.bounds.left+d*.84,r.bounds.top+d*.34085),new JA(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=rr(ud),this.ctx.fill(),this.ctx.restore()):r.type===el&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=rr(ud),this.ctx.fill(),this.ctx.restore())),fF(r)&&r.value.length){switch(g=this.createFontStyle(i),L=g[0],u=g[1],v=this.fontMetrics.getMetrics(L,u).baseline,this.ctx.font=L,this.ctx.fillStyle=rr(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cF(r.styles.textAlign),q=al(r),B=0,r.styles.textAlign){case 1:B+=q.width/2;break;case 2:B+=q.width;break}x=q.add(B,0,0,-q.height/2+1),this.ctx.save(),this.path([new JA(q.left,q.top),new JA(q.left+q.width,q.top),new JA(q.left+q.width,q.top+q.height),new JA(q.left,q.top+q.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jo(r.value,x),i.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!er(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(F=r.styles.listStyleImage,F.type!==0)return[3,18];_=void 0,I=F.url,rA.label=15;case 15:return rA.trys.push([15,17,,18]),[4,this.context.cache.match(I)];case 16:return _=rA.sent(),this.ctx.drawImage(_,r.bounds.left-(_.width+10),r.bounds.top),[3,18];case 17:return rA.sent(),this.context.logger.error("Error loading list-style-image "+I),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(L=this.createFontStyle(i)[0],this.ctx.font=L,this.ctx.fillStyle=rr(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",q=new Oi(r.bounds.left,r.bounds.top+gt(r.styles.paddingTop,r.bounds.width),r.bounds.width,z1(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jo(t.listValue,q),i.letterSpacing,z1(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),rA.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Or(this,void 0,void 0,function(){var r,n,F,i,a,F,s,o,F,f,l,F,d,g,F,u,v,F,B,x,F;return Ur(this,function(_){switch(_.label){case 0:if(er(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:_.sent(),r=0,n=t.negativeZIndex,_.label=2;case 2:return r<n.length?(F=n[r],[4,this.renderStack(F)]):[3,5];case 3:_.sent(),_.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:_.sent(),i=0,a=t.nonInlineLevel,_.label=7;case 7:return i<a.length?(F=a[i],[4,this.renderNode(F)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:s=0,o=t.nonPositionedFloats,_.label=11;case 11:return s<o.length?(F=o[s],[4,this.renderStack(F)]):[3,14];case 12:_.sent(),_.label=13;case 13:return s++,[3,11];case 14:f=0,l=t.nonPositionedInlineLevel,_.label=15;case 15:return f<l.length?(F=l[f],[4,this.renderStack(F)]):[3,18];case 16:_.sent(),_.label=17;case 17:return f++,[3,15];case 18:d=0,g=t.inlineLevel,_.label=19;case 19:return d<g.length?(F=g[d],[4,this.renderNode(F)]):[3,22];case 20:_.sent(),_.label=21;case 21:return d++,[3,19];case 22:u=0,v=t.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return u<v.length?(F=v[u],[4,this.renderStack(F)]):[3,26];case 24:_.sent(),_.label=25;case 25:return u++,[3,23];case 26:B=0,x=t.positiveZIndex,_.label=27;case 27:return B<x.length?(F=x[B],[4,this.renderStack(F)]):[3,30];case 28:_.sent(),_.label=29;case 29:return B++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){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(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(n,i){var a=mn(n)?n.start:n;i===0?r.ctx.moveTo(a.x,a.y):r.ctx.lineTo(a.x,a.y),mn(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,r,n,i){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},e.prototype.resizeImage=function(t,r,n){var i;if(t.width===r&&t.height===n)return t;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=a.createElement("canvas");s.width=Math.max(1,r),s.height=Math.max(1,n);var o=s.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,r,n),s},e.prototype.renderBackgroundImage=function(t){return Or(this,void 0,void 0,function(){var r,n,i,a,s,o;return Ur(this,function(f){switch(f.label){case 0:r=t.styles.backgroundImage.length-1,n=function(l){var d,g,u,X,wA,gA,P,eA,R,v,X,wA,gA,P,eA,B,x,F,_,I,L,q,rA,M,R,E,X,y,T,P,eA,sA,wA,gA,hA,CA,IA,_A,m,Q,U,N;return Ur(this,function(j){switch(j.label){case 0:if(l.type!==0)return[3,5];d=void 0,g=l.url,j.label=1;case 1:return j.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return d=j.sent(),[3,4];case 3:return j.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return d&&(u=qc(t,r,[d.width,d.height,d.width/d.height]),X=u[0],wA=u[1],gA=u[2],P=u[3],eA=u[4],R=i.ctx.createPattern(i.resizeImage(d,P,eA),"repeat"),i.renderRepeat(X,R,wA,gA)),[3,6];case 5:qm(l)?(v=qc(t,r,[null,null,null]),X=v[0],wA=v[1],gA=v[2],P=v[3],eA=v[4],B=Gm(l.angle,P,eA),x=B[0],F=B[1],_=B[2],I=B[3],L=B[4],q=document.createElement("canvas"),q.width=P,q.height=eA,rA=q.getContext("2d"),M=rA.createLinearGradient(F,I,_,L),X1(l.stops,x).forEach(function(nA){return M.addColorStop(nA.stop,rr(nA.color))}),rA.fillStyle=M,rA.fillRect(0,0,P,eA),P>0&&eA>0&&(R=i.ctx.createPattern(q,"repeat"),i.renderRepeat(X,R,wA,gA))):zm(l)&&(E=qc(t,r,[null,null,null]),X=E[0],y=E[1],T=E[2],P=E[3],eA=E[4],sA=l.position.length===0?[lh]:l.position,wA=gt(sA[0],P),gA=gt(sA[sA.length-1],eA),hA=Vm(l,wA,gA,P,eA),CA=hA[0],IA=hA[1],CA>0&&IA>0&&(_A=i.ctx.createRadialGradient(y+wA,T+gA,0,y+wA,T+gA,CA),X1(l.stops,CA*2).forEach(function(nA){return _A.addColorStop(nA.stop,rr(nA.color))}),i.path(X),i.ctx.fillStyle=_A,CA!==IA?(m=t.bounds.left+.5*t.bounds.width,Q=t.bounds.top+.5*t.bounds.height,U=IA/CA,N=1/U,i.ctx.save(),i.ctx.translate(m,Q),i.ctx.transform(1,0,0,U,0,0),i.ctx.translate(-m,-Q),i.ctx.fillRect(y,N*(T-Q)+Q,P,eA*N),i.ctx.restore()):i.ctx.fill())),j.label=6;case 6:return r--,[2]}})},i=this,a=0,s=t.styles.backgroundImage.slice(0).reverse(),f.label=1;case 1:return a<s.length?(o=s[a],[5,n(o)]):[3,4];case 2:f.sent(),f.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,n){return Or(this,void 0,void 0,function(){return Ur(this,function(i){return this.path(yd(n,r)),this.ctx.fillStyle=rr(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,n,i){return Or(this,void 0,void 0,function(){var a,s;return Ur(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return a=ZC(i,n),this.path(a),this.ctx.fillStyle=rr(t),this.ctx.fill(),s=$C(i,n),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Or(this,void 0,void 0,function(){var r,n,i,a,s,o,f,l,d=this;return Ur(this,function(g){switch(g.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!da(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}],a=lF(bs(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),da(r.backgroundColor)||(this.ctx.fillStyle=rr(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(u){d.ctx.save();var v=nl(t.curves),B=u.inset?0:sF,x=YC(v,-B+(u.inset?1:-1)*u.spread.number,(u.inset?1:-1)*u.spread.number,u.spread.number*(u.inset?-2:2),u.spread.number*(u.inset?-2:2));u.inset?(d.path(v),d.ctx.clip(),d.mask(x)):(d.mask(v),d.ctx.clip(),d.path(x)),d.ctx.shadowOffsetX=u.offsetX.number+B,d.ctx.shadowOffsetY=u.offsetY.number,d.ctx.shadowColor=rr(u.color),d.ctx.shadowBlur=u.blur.number,d.ctx.fillStyle=u.inset?rr(u.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),g.label=2;case 2:s=0,o=0,f=i,g.label=3;case 3:return o<f.length?(l=f[o],l.style!==0&&!da(l.color)&&l.width>0?l.style!==2?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return l.style!==3?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,s,t.curves,3)];case 6:return g.sent(),[3,11];case 7:return l.style!==4?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,s,t.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,s,t.curves)];case 10:g.sent(),g.label=11;case 11:s++,g.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,i,a){return Or(this,void 0,void 0,function(){var s,o,f,l,d,g,u,v,B,x,F,_,I,L,q,rA,q,rA;return Ur(this,function(M){return this.ctx.save(),s=AF(i,n),o=yd(i,n),a===2&&(this.path(o),this.ctx.clip()),mn(o[0])?(f=o[0].start.x,l=o[0].start.y):(f=o[0].x,l=o[0].y),mn(o[1])?(d=o[1].end.x,g=o[1].end.y):(d=o[1].x,g=o[1].y),n===0||n===2?u=Math.abs(f-d):u=Math.abs(l-g),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(o.slice(0,2)),v=r<3?r*3:r*2,B=r<3?r*2:r,a===3&&(v=r,B=r),x=!0,u<=v*2?x=!1:u<=v*2+B?(F=u/(2*v+B),v*=F,B*=F):(_=Math.floor((u+B)/(v+B)),I=(u-_*v)/(_-1),L=(u-(_+1)*v)/_,B=L<=0||Math.abs(B-I)<Math.abs(B-L)?I:L),x&&(a===3?this.ctx.setLineDash([0,v+B]):this.ctx.setLineDash([v,B])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=rr(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(mn(o[0])&&(q=o[3],rA=o[0],this.ctx.beginPath(),this.formatPath([new JA(q.end.x,q.end.y),new JA(rA.start.x,rA.start.y)]),this.ctx.stroke()),mn(o[1])&&(q=o[1],rA=o[2],this.ctx.beginPath(),this.formatPath([new JA(q.end.x,q.end.y),new JA(rA.start.x,rA.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Or(this,void 0,void 0,function(){var r;return Ur(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=rr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=JC(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(bp),fF=function(A){return A instanceof cp||A instanceof lp?!0:A instanceof dh&&A.type!==el&&A.type!==Al},lF=function(A,e){switch(A){case 0:return nl(e);case 2:return jC(e);case 1:default:return il(e)}},cF=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},uF=["-apple-system","system-ui"],hF=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return uF.indexOf(e)===-1}):A},dF=(function(A){Kn(e,A);function e(t,r){var n=A.call(this,t,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 e.prototype.render=function(t){return Or(this,void 0,void 0,function(){var r,n;return Ur(this,function(i){switch(i.label){case 0:return r=Mu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,gF(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=rr(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]}})})},e})(bp),gF=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},pF=(function(){function A(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,$0([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,$0([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,$0([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,$0([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),BF=(function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new pF({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new HC(this,e)}return A.instanceCount=1,A})(),Qp=function(A,e){return e===void 0&&(e={}),wF(A,e)};typeof window<"u"&&Cp.setContext(window);var wF=function(A,e){return Or(void 0,void 0,void 0,function(){var t,r,n,i,a,s,o,f,l,d,g,u,v,B,x,F,_,I,L,q,M,rA,M,R,E,X,y,T,P,eA,sA,wA,gA,hA,CA,IA,_A,m,Q,U;return Ur(this,function(N){switch(N.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=A.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(R=e.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(E=e.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:e.proxy,useCORS:(X=e.useCORS)!==null&&X!==void 0?X:!1},i=_u({logging:(y=e.logging)!==null&&y!==void 0?y:!0,cache:e.cache},n),a={windowWidth:(T=e.windowWidth)!==null&&T!==void 0?T:r.innerWidth,windowHeight:(P=e.windowHeight)!==null&&P!==void 0?P:r.innerHeight,scrollX:(eA=e.scrollX)!==null&&eA!==void 0?eA:r.pageXOffset,scrollY:(sA=e.scrollY)!==null&&sA!==void 0?sA:r.pageYOffset},s=new Oi(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),o=new BF(i,s),f=(wA=e.foreignObjectRendering)!==null&&wA!==void 0?wA:!1,l={allowTaint:(gA=e.allowTaint)!==null&&gA!==void 0?gA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:f,copyStyles:f},o.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),d=new xd(o,A,l),g=d.clonedReferenceElement,g?[4,d.toIFrame(t,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return u=N.sent(),v=gh(g)||mC(g)?Yv(g.ownerDocument):_l(o,g),B=v.width,x=v.height,F=v.left,_=v.top,I=vF(o,g,e.backgroundColor),L={canvas:e.canvas,backgroundColor:I,scale:(CA=(hA=e.scale)!==null&&hA!==void 0?hA:r.devicePixelRatio)!==null&&CA!==void 0?CA:1,x:((IA=e.x)!==null&&IA!==void 0?IA:0)+F,y:((_A=e.y)!==null&&_A!==void 0?_A:0)+_,width:(m=e.width)!==null&&m!==void 0?m:Math.ceil(B),height:(Q=e.height)!==null&&Q!==void 0?Q:Math.ceil(x)},f?(o.logger.debug("Document cloned, using foreign object rendering"),M=new dF(o,L),[4,M.render(g)]):[3,3];case 2:return q=N.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+F+","+_+" with size "+B+"x"+x+" using computed rendering"),o.logger.debug("Starting DOM parsing"),rA=dp(o,g),I===rA.styles.backgroundColor&&(rA.styles.backgroundColor=Ti.TRANSPARENT),o.logger.debug("Starting renderer for element at "+L.x+","+L.y+" with size "+L.width+"x"+L.height),M=new oF(o,L),[4,M.render(rA)];case 4:q=N.sent(),N.label=5;case 5:return(!((U=e.removeContainer)!==null&&U!==void 0)||U)&&(xd.destroy(u)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,q]}})})},vF=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?Go(A,getComputedStyle(r.documentElement).backgroundColor):Ti.TRANSPARENT,i=r.body?Go(A,getComputedStyle(r.body).backgroundColor):Ti.TRANSPARENT,a=typeof t=="string"?Go(A,t):t===null?Ti.TRANSPARENT:4294967295;return e===r.documentElement?da(n)?da(i)?a:i:n:a};const mF=Object.freeze(Object.defineProperty({__proto__:null,default:Qp},Symbol.toStringTag,{value:"Module"}));function tt(A){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(A)}var Mn=Uint8Array,on=Uint16Array,ph=Int32Array,Bh=new Mn([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]),wh=new Mn([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]),_d=new Mn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Sp=function(A,e){for(var t=new on(31),r=0;r<31;++r)t[r]=e+=1<<A[r-1];for(var n=new ph(t[30]),r=1;r<30;++r)for(var i=t[r];i<t[r+1];++i)n[i]=i-t[r]<<5|r;return{b:t,r:n}},Tp=Sp(Bh,2),xF=Tp.b,qu=Tp.r;xF[28]=258,qu[258]=28;var CF=Sp(wh,0),Ud=CF.r,zu=new on(32768);for(var Bt=0;Bt<32768;++Bt){var ea=(Bt&43690)>>1|(Bt&21845)<<1;ea=(ea&52428)>>2|(ea&13107)<<2,ea=(ea&61680)>>4|(ea&3855)<<4,zu[Bt]=((ea&65280)>>8|(ea&255)<<8)>>1}var Xo=(function(A,e,t){for(var r=A.length,n=0,i=new on(e);n<r;++n)A[n]&&++i[A[n]-1];var a=new on(e);for(n=1;n<e;++n)a[n]=a[n-1]+i[n-1]<<1;var s;if(t){s=new on(1<<e);var o=15-e;for(n=0;n<r;++n)if(A[n])for(var f=n<<4|A[n],l=e-A[n],d=a[A[n]-1]++<<l,g=d|(1<<l)-1;d<=g;++d)s[zu[d]>>o]=f}else for(s=new on(r),n=0;n<r;++n)A[n]&&(s[n]=zu[a[A[n]-1]++]>>15-A[n]);return s}),Wa=new Mn(288);for(var Bt=0;Bt<144;++Bt)Wa[Bt]=8;for(var Bt=144;Bt<256;++Bt)Wa[Bt]=9;for(var Bt=256;Bt<280;++Bt)Wa[Bt]=7;for(var Bt=280;Bt<288;++Bt)Wa[Bt]=8;var sl=new Mn(32);for(var Bt=0;Bt<32;++Bt)sl[Bt]=5;var FF=Xo(Wa,9,0),yF=Xo(sl,5,0),Lp=function(A){return(A+7)/8|0},EF=function(A,e,t){return(t==null||t>A.length)&&(t=A.length),new Mn(A.subarray(e,t))},bi=function(A,e,t){t<<=e&7;var r=e/8|0;A[r]|=t,A[r+1]|=t>>8},To=function(A,e,t){t<<=e&7;var r=e/8|0;A[r]|=t,A[r+1]|=t>>8,A[r+2]|=t>>16},zc=function(A,e){for(var t=[],r=0;r<A.length;++r)A[r]&&t.push({s:r,f:A[r]});var n=t.length,i=t.slice();if(!n)return{t:Np,l:0};if(n==1){var a=new Mn(t[0].s+1);return a[t[0].s]=1,{t:a,l:1}}t.sort(function(q,rA){return q.f-rA.f}),t.push({s:-1,f:25001});var s=t[0],o=t[1],f=0,l=1,d=2;for(t[0]={s:-1,f:s.f+o.f,l:s,r:o};l!=n-1;)s=t[t[f].f<t[d].f?f++:d++],o=t[f!=l&&t[f].f<t[d].f?f++:d++],t[l++]={s:-1,f:s.f+o.f,l:s,r:o};for(var g=i[0].s,r=1;r<n;++r)i[r].s>g&&(g=i[r].s);var u=new on(g+1),v=Yu(t[l-1],u,0);if(v>e){var r=0,B=0,x=v-e,F=1<<x;for(i.sort(function(rA,M){return u[M.s]-u[rA.s]||rA.f-M.f});r<n;++r){var _=i[r].s;if(u[_]>e)B+=F-(1<<v-u[_]),u[_]=e;else break}for(B>>=x;B>0;){var I=i[r].s;u[I]<e?B-=1<<e-u[I]++-1:++r}for(;r>=0&&B;--r){var L=i[r].s;u[L]==e&&(--u[L],++B)}v=e}return{t:new Mn(u),l:v}},Yu=function(A,e,t){return A.s==-1?Math.max(Yu(A.l,e,t+1),Yu(A.r,e,t+1)):e[A.s]=t},bd=function(A){for(var e=A.length;e&&!A[--e];);for(var t=new on(++e),r=0,n=A[0],i=1,a=function(o){t[r++]=o},s=1;s<=e;++s)if(A[s]==n&&s!=e)++i;else{if(!n&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(n),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(n);i=1,n=A[s]}return{c:t.subarray(0,r),n:e}},Lo=function(A,e){for(var t=0,r=0;r<e.length;++r)t+=A[r]*e[r];return t},Ip=function(A,e,t){var r=t.length,n=Lp(e+2);A[n]=r&255,A[n+1]=r>>8,A[n+2]=A[n]^255,A[n+3]=A[n+1]^255;for(var i=0;i<r;++i)A[n+i+4]=t[i];return(n+4+r)*8},Qd=function(A,e,t,r,n,i,a,s,o,f,l){bi(e,l++,t),++n[256];for(var d=zc(n,15),g=d.t,u=d.l,v=zc(i,15),B=v.t,x=v.l,F=bd(g),_=F.c,I=F.n,L=bd(B),q=L.c,rA=L.n,M=new on(19),R=0;R<_.length;++R)++M[_[R]&31];for(var R=0;R<q.length;++R)++M[q[R]&31];for(var E=zc(M,7),X=E.t,y=E.l,T=19;T>4&&!X[_d[T-1]];--T);var P=f+5<<3,eA=Lo(n,Wa)+Lo(i,sl)+a,sA=Lo(n,g)+Lo(i,B)+a+14+3*T+Lo(M,X)+2*M[16]+3*M[17]+7*M[18];if(o>=0&&P<=eA&&P<=sA)return Ip(e,l,A.subarray(o,o+f));var wA,gA,hA,CA;if(bi(e,l,1+(sA<eA)),l+=2,sA<eA){wA=Xo(g,u,0),gA=g,hA=Xo(B,x,0),CA=B;var IA=Xo(X,y,0);bi(e,l,I-257),bi(e,l+5,rA-1),bi(e,l+10,T-4),l+=14;for(var R=0;R<T;++R)bi(e,l+3*R,X[_d[R]]);l+=3*T;for(var _A=[_,q],m=0;m<2;++m)for(var Q=_A[m],R=0;R<Q.length;++R){var U=Q[R]&31;bi(e,l,IA[U]),l+=X[U],U>15&&(bi(e,l,Q[R]>>5&127),l+=Q[R]>>12)}}else wA=FF,gA=Wa,hA=yF,CA=sl;for(var R=0;R<s;++R){var N=r[R];if(N>255){var U=N>>18&31;To(e,l,wA[U+257]),l+=gA[U+257],U>7&&(bi(e,l,N>>23&31),l+=Bh[U]);var j=N&31;To(e,l,hA[j]),l+=CA[j],j>3&&(To(e,l,N>>5&8191),l+=wh[j])}else To(e,l,wA[N]),l+=gA[N]}return To(e,l,wA[256]),l+gA[256]},_F=new ph([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Np=new Mn(0),UF=function(A,e,t,r,n,i){var a=i.z||A.length,s=new Mn(r+a+5*(1+Math.ceil(a/7e3))+n),o=s.subarray(r,s.length-n),f=i.l,l=(i.r||0)&7;if(e){l&&(o[0]=i.r>>3);for(var d=_F[e-1],g=d>>13,u=d&8191,v=(1<<t)-1,B=i.p||new on(32768),x=i.h||new on(v+1),F=Math.ceil(t/3),_=2*F,I=function(VA){return(A[VA]^A[VA+1]<<F^A[VA+2]<<_)&v},L=new ph(25e3),q=new on(288),rA=new on(32),M=0,R=0,E=i.i||0,X=0,y=i.w||0,T=0;E+2<a;++E){var P=I(E),eA=E&32767,sA=x[P];if(B[eA]=sA,x[P]=eA,y<=E){var wA=a-E;if((M>7e3||X>24576)&&(wA>423||!f)){l=Qd(A,o,0,L,q,rA,R,X,T,E-T,l),X=M=R=0,T=E;for(var gA=0;gA<286;++gA)q[gA]=0;for(var gA=0;gA<30;++gA)rA[gA]=0}var hA=2,CA=0,IA=u,_A=eA-sA&32767;if(wA>2&&P==I(E-_A))for(var m=Math.min(g,wA)-1,Q=Math.min(32767,E),U=Math.min(258,wA);_A<=Q&&--IA&&eA!=sA;){if(A[E+hA]==A[E+hA-_A]){for(var N=0;N<U&&A[E+N]==A[E+N-_A];++N);if(N>hA){if(hA=N,CA=_A,N>m)break;for(var j=Math.min(_A,N-2),nA=0,gA=0;gA<j;++gA){var fA=E-_A+gA&32767,oA=B[fA],lA=fA-oA&32767;lA>nA&&(nA=lA,sA=fA)}}}eA=sA,sA=B[eA],_A+=eA-sA&32767}if(CA){L[X++]=268435456|qu[hA]<<18|Ud[CA];var SA=qu[hA]&31,HA=Ud[CA]&31;R+=Bh[SA]+wh[HA],++q[257+SA],++rA[HA],y=E+hA,++M}else L[X++]=A[E],++q[A[E]]}}for(E=Math.max(E,y);E<a;++E)L[X++]=A[E],++q[A[E]];l=Qd(A,o,f,L,q,rA,R,X,T,E-T,l),f||(i.r=l&7|o[l/8|0]<<3,l-=7,i.h=x,i.p=B,i.i=E,i.w=y)}else{for(var E=i.w||0;E<a+f;E+=65535){var GA=E+65535;GA>=a&&(o[l/8|0]=f,GA=a),l=Ip(o,l+1,A.subarray(E,GA))}i.i=a}return EF(s,0,r+Lp(l)+n)},Op=function(){var A=1,e=0;return{p:function(t){for(var r=A,n=e,i=t.length|0,a=0;a!=i;){for(var s=Math.min(a+2655,i);a<s;++a)n+=r+=t[a];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}A=r,e=n},d:function(){return A%=65521,e%=65521,(A&255)<<24|(A&65280)<<8|(e&255)<<8|e>>8}}},bF=function(A,e,t,r,n){if(!n&&(n={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),a=new Mn(i.length+A.length);a.set(i),a.set(A,i.length),A=a,n.w=i.length}return UF(A,e.level==null?6:e.level,e.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(A.length)))*1.5):20:12+e.mem,t,r,n)},Dp=function(A,e,t){for(;t;++e)A[e]=t,t>>>=8},QF=function(A,e){var t=e.level,r=t==0?0:t<6?1:t==9?3:2;if(A[0]=120,A[1]=r<<6|(e.dictionary&&32),A[1]|=31-(A[0]<<8|A[1])%31,e.dictionary){var n=Op();n.p(e.dictionary),Dp(A,2,n.d())}};function Ju(A,e){e||(e={});var t=Op();t.p(A);var r=bF(A,e,e.dictionary?6:2,4);return QF(r,e),Dp(r,r.length-4,t.d()),r}var SF=typeof TextDecoder<"u"&&new TextDecoder,TF=0;try{SF.decode(Np,{stream:!0}),TF=1}catch{}function LF(A){if(Array.isArray(A))return A}function IF(A,e){var t=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(t!=null){var r,n,i,a,s=[],o=!0,f=!1;try{if(i=(t=t.call(A)).next,e!==0)for(;!(o=(r=i.call(t)).done)&&(s.push(r.value),s.length!==e);o=!0);}catch(l){f=!0,n=l}finally{try{if(!o&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(f)throw n}}return s}}function Sd(A,e){(e==null||e>A.length)&&(e=A.length);for(var t=0,r=Array(e);t<e;t++)r[t]=A[t];return r}function NF(A,e){if(A){if(typeof A=="string")return Sd(A,e);var t={}.toString.call(A).slice(8,-1);return t==="Object"&&A.constructor&&(t=A.constructor.name),t==="Map"||t==="Set"?Array.from(A):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Sd(A,e):void 0}}function OF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Td(A,e){return LF(A)||IF(A,e)||NF(A,e)||OF()}function Ld(A,e="utf8"){return new TextDecoder(e).decode(A)}const DF=new TextEncoder;function HF(A){return DF.encode(A)}const kF=1024*8,PF=(()=>{const A=new Uint8Array(4),e=new Uint32Array(A.buffer);return!((e[0]=1)&A[0])})(),Yc={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class vh{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=kF,t={}){let r=!1;typeof e=="number"?e=new ArrayBuffer(e):(r=!0,this.lastWrittenByte=e.byteLength);const n=t.offset?t.offset>>>0:0,i=e.byteLength-n;let a=n;(ArrayBuffer.isView(e)||e instanceof vh)&&(e.byteLength!==e.buffer.byteLength&&(a=e.byteOffset+n),e=e.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=e,this.length=i,this.byteLength=i,this.byteOffset=a,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,a,i),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const r=(this.offset+e)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const r=Yc[t].BYTES_PER_ELEMENT*e,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===PF&&t!=="uint8"&&t!=="int8"){const s=new Uint8Array(this.buffer.slice(n,n+r));s.reverse();const o=new Yc[t](s.buffer);return this.offset+=r,o.reverse(),o}const a=new Yc[t](i);return this.offset+=r,a}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let r=0;r<e;r++)t+=this.readChar();return t}readUtf8(e=1){return Ld(this.readBytes(e))}decodeText(e=1,t="utf8"){return Ld(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(HF(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Xs(A){let e=A.length;for(;--e>=0;)A[e]=0}const RF=3,MF=258,Hp=29,KF=256,GF=KF+1+Hp,kp=30,VF=512,jF=new Array((GF+2)*2);Xs(jF);const WF=new Array(kp*2);Xs(WF);const XF=new Array(VF);Xs(XF);const qF=new Array(MF-RF+1);Xs(qF);const zF=new Array(Hp);Xs(zF);const YF=new Array(kp);Xs(YF);const JF=(A,e,t,r)=>{let n=A&65535|0,i=A>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do n=n+e[r++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0};var Zu=JF;const ZF=()=>{let A,e=[];for(var t=0;t<256;t++){A=t;for(var r=0;r<8;r++)A=A&1?3988292384^A>>>1:A>>>1;e[t]=A}return e},$F=new Uint32Array(ZF()),A3=(A,e,t,r)=>{const n=$F,i=r+t;A^=-1;for(let a=r;a<i;a++)A=A>>>8^n[(A^e[a])&255];return A^-1};var $n=A3,$u={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Pp={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const e3=(A,e)=>Object.prototype.hasOwnProperty.call(A,e);var t3=function(A){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const r in t)e3(t,r)&&(A[r]=t[r])}}return A},r3=A=>{let e=0;for(let r=0,n=A.length;r<n;r++)e+=A[r].length;const t=new Uint8Array(e);for(let r=0,n=0,i=A.length;r<i;r++){let a=A[r];t.set(a,n),n+=a.length}return t},Rp={assign:t3,flattenChunks:r3};let Mp=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Mp=!1}const n0=new Uint8Array(256);for(let A=0;A<256;A++)n0[A]=A>=252?6:A>=248?5:A>=240?4:A>=224?3:A>=192?2:1;n0[254]=n0[254]=1;var n3=A=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(A);let e,t,r,n,i,a=A.length,s=0;for(n=0;n<a;n++)t=A.charCodeAt(n),(t&64512)===55296&&n+1<a&&(r=A.charCodeAt(n+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),n++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(s),i=0,n=0;i<s;n++)t=A.charCodeAt(n),(t&64512)===55296&&n+1<a&&(r=A.charCodeAt(n+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),n++)),t<128?e[i++]=t:t<2048?(e[i++]=192|t>>>6,e[i++]=128|t&63):t<65536?(e[i++]=224|t>>>12,e[i++]=128|t>>>6&63,e[i++]=128|t&63):(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63,e[i++]=128|t>>>6&63,e[i++]=128|t&63);return e};const i3=(A,e)=>{if(e<65534&&A.subarray&&Mp)return String.fromCharCode.apply(null,A.length===e?A:A.subarray(0,e));let t="";for(let r=0;r<e;r++)t+=String.fromCharCode(A[r]);return t};var a3=(A,e)=>{const t=e||A.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(A.subarray(0,e));let r,n;const i=new Array(t*2);for(n=0,r=0;r<t;){let a=A[r++];if(a<128){i[n++]=a;continue}let s=n0[a];if(s>4){i[n++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<t;)a=a<<6|A[r++]&63,s--;if(s>1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return i3(i,n)},s3=(A,e)=>{e=e||A.length,e>A.length&&(e=A.length);let t=e-1;for(;t>=0&&(A[t]&192)===128;)t--;return t<0||t===0?e:t+n0[A[t]]>e?t:e},Ah={string2buf:n3,buf2string:a3,utf8border:s3};function o3(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var f3=o3;const Ff=16209,l3=16191;var c3=function(e,t){let r,n,i,a,s,o,f,l,d,g,u,v,B,x,F,_,I,L,q,rA,M,R,E,X;const y=e.state;r=e.next_in,E=e.input,n=r+(e.avail_in-5),i=e.next_out,X=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),o=y.dmax,f=y.wsize,l=y.whave,d=y.wnext,g=y.window,u=y.hold,v=y.bits,B=y.lencode,x=y.distcode,F=(1<<y.lenbits)-1,_=(1<<y.distbits)-1;A:do{v<15&&(u+=E[r++]<<v,v+=8,u+=E[r++]<<v,v+=8),I=B[u&F];e:for(;;){if(L=I>>>24,u>>>=L,v-=L,L=I>>>16&255,L===0)X[i++]=I&65535;else if(L&16){q=I&65535,L&=15,L&&(v<L&&(u+=E[r++]<<v,v+=8),q+=u&(1<<L)-1,u>>>=L,v-=L),v<15&&(u+=E[r++]<<v,v+=8,u+=E[r++]<<v,v+=8),I=x[u&_];t:for(;;){if(L=I>>>24,u>>>=L,v-=L,L=I>>>16&255,L&16){if(rA=I&65535,L&=15,v<L&&(u+=E[r++]<<v,v+=8,v<L&&(u+=E[r++]<<v,v+=8)),rA+=u&(1<<L)-1,rA>o){e.msg="invalid distance too far back",y.mode=Ff;break A}if(u>>>=L,v-=L,L=i-a,rA>L){if(L=rA-L,L>l&&y.sane){e.msg="invalid distance too far back",y.mode=Ff;break A}if(M=0,R=g,d===0){if(M+=f-L,L<q){q-=L;do X[i++]=g[M++];while(--L);M=i-rA,R=X}}else if(d<L){if(M+=f+d-L,L-=d,L<q){q-=L;do X[i++]=g[M++];while(--L);if(M=0,d<q){L=d,q-=L;do X[i++]=g[M++];while(--L);M=i-rA,R=X}}}else if(M+=d-L,L<q){q-=L;do X[i++]=g[M++];while(--L);M=i-rA,R=X}for(;q>2;)X[i++]=R[M++],X[i++]=R[M++],X[i++]=R[M++],q-=3;q&&(X[i++]=R[M++],q>1&&(X[i++]=R[M++]))}else{M=i-rA;do X[i++]=X[M++],X[i++]=X[M++],X[i++]=X[M++],q-=3;while(q>2);q&&(X[i++]=X[M++],q>1&&(X[i++]=X[M++]))}}else if((L&64)===0){I=x[(I&65535)+(u&(1<<L)-1)];continue t}else{e.msg="invalid distance code",y.mode=Ff;break A}break}}else if((L&64)===0){I=B[(I&65535)+(u&(1<<L)-1)];continue e}else if(L&32){y.mode=l3;break A}else{e.msg="invalid literal/length code",y.mode=Ff;break A}break}}while(r<n&&i<s);q=v>>3,r-=q,v-=q<<3,u&=(1<<v)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?5+(n-r):5-(r-n),e.avail_out=i<s?257+(s-i):257-(i-s),y.hold=u,y.bits=v};const xs=15,Id=852,Nd=592,Od=0,Jc=1,Dd=2,u3=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),h3=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),d3=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),g3=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),p3=(A,e,t,r,n,i,a,s)=>{const o=s.bits;let f=0,l=0,d=0,g=0,u=0,v=0,B=0,x=0,F=0,_=0,I,L,q,rA,M,R=null,E;const X=new Uint16Array(xs+1),y=new Uint16Array(xs+1);let T=null,P,eA,sA;for(f=0;f<=xs;f++)X[f]=0;for(l=0;l<r;l++)X[e[t+l]]++;for(u=o,g=xs;g>=1&&X[g]===0;g--);if(u>g&&(u=g),g===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d<g&&X[d]===0;d++);for(u<d&&(u=d),x=1,f=1;f<=xs;f++)if(x<<=1,x-=X[f],x<0)return-1;if(x>0&&(A===Od||g!==1))return-1;for(y[1]=0,f=1;f<xs;f++)y[f+1]=y[f]+X[f];for(l=0;l<r;l++)e[t+l]!==0&&(a[y[e[t+l]]++]=l);if(A===Od?(R=T=a,E=20):A===Jc?(R=u3,T=h3,E=257):(R=d3,T=g3,E=0),_=0,l=0,f=d,M=i,v=u,B=0,q=-1,F=1<<u,rA=F-1,A===Jc&&F>Id||A===Dd&&F>Nd)return 1;for(;;){P=f-B,a[l]+1<E?(eA=0,sA=a[l]):a[l]>=E?(eA=T[a[l]-E],sA=R[a[l]-E]):(eA=96,sA=0),I=1<<f-B,L=1<<v,d=L;do L-=I,n[M+(_>>B)+L]=P<<24|eA<<16|sA|0;while(L!==0);for(I=1<<f-1;_&I;)I>>=1;if(I!==0?(_&=I-1,_+=I):_=0,l++,--X[f]===0){if(f===g)break;f=e[t+a[l]]}if(f>u&&(_&rA)!==q){for(B===0&&(B=u),M+=d,v=f-B,x=1<<v;v+B<g&&(x-=X[v+B],!(x<=0));)v++,x<<=1;if(F+=1<<v,A===Jc&&F>Id||A===Dd&&F>Nd)return 1;q=_&rA,n[q]=u<<24|v<<16|M-i|0}}return _!==0&&(n[M+_]=f-B<<24|64<<16|0),s.bits=u,0};var qo=p3;const B3=0,Kp=1,Gp=2,{Z_FINISH:Hd,Z_BLOCK:w3,Z_TREES:yf,Z_OK:Xa,Z_STREAM_END:v3,Z_NEED_DICT:m3,Z_STREAM_ERROR:Fn,Z_DATA_ERROR:Vp,Z_MEM_ERROR:jp,Z_BUF_ERROR:x3,Z_DEFLATED:kd}=Pp,Dl=16180,Pd=16181,Rd=16182,Md=16183,Kd=16184,Gd=16185,Vd=16186,jd=16187,Wd=16188,Xd=16189,ol=16190,Qi=16191,Zc=16192,qd=16193,$c=16194,zd=16195,Yd=16196,Jd=16197,Zd=16198,Ef=16199,_f=16200,$d=16201,A2=16202,e2=16203,t2=16204,r2=16205,Au=16206,n2=16207,i2=16208,Ct=16209,Wp=16210,Xp=16211,C3=852,F3=592,y3=15,E3=y3,a2=A=>(A>>>24&255)+(A>>>8&65280)+((A&65280)<<8)+((A&255)<<24);function _3(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ja=A=>{if(!A)return 1;const e=A.state;return!e||e.strm!==A||e.mode<Dl||e.mode>Xp?1:0},qp=A=>{if(Ja(A))return Fn;const e=A.state;return A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=e.wrap&1),e.mode=Dl,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(C3),e.distcode=e.distdyn=new Int32Array(F3),e.sane=1,e.back=-1,Xa},zp=A=>{if(Ja(A))return Fn;const e=A.state;return e.wsize=0,e.whave=0,e.wnext=0,qp(A)},Yp=(A,e)=>{let t;if(Ja(A))return Fn;const r=A.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Fn:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,zp(A))},Jp=(A,e)=>{if(!A)return Fn;const t=new _3;A.state=t,t.strm=A,t.window=null,t.mode=Dl;const r=Yp(A,e);return r!==Xa&&(A.state=null),r},U3=A=>Jp(A,E3);let s2=!0,eu,tu;const b3=A=>{if(s2){eu=new Int32Array(512),tu=new Int32Array(32);let e=0;for(;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(qo(Kp,A.lens,0,288,eu,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;qo(Gp,A.lens,0,32,tu,0,A.work,{bits:5}),s2=!1}A.lencode=eu,A.lenbits=9,A.distcode=tu,A.distbits=5},Zp=(A,e,t,r)=>{let n;const i=A.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(e.subarray(t-i.wsize,t),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(e.subarray(t-r,t-r+n),i.wnext),r-=n,r?(i.window.set(e.subarray(t-r,t),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},Q3=(A,e)=>{let t,r,n,i,a,s,o,f,l,d,g,u,v,B,x=0,F,_,I,L,q,rA,M,R;const E=new Uint8Array(4);let X,y;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ja(A)||!A.output||!A.input&&A.avail_in!==0)return Fn;t=A.state,t.mode===Qi&&(t.mode=Zc),a=A.next_out,n=A.output,o=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,f=t.hold,l=t.bits,d=s,g=o,R=Xa;A:for(;;)switch(t.mode){case Dl:if(t.wrap===0){t.mode=Zc;break}for(;l<16;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(t.wrap&2&&f===35615){t.wbits===0&&(t.wbits=15),t.check=0,E[0]=f&255,E[1]=f>>>8&255,t.check=$n(t.check,E,2,0),f=0,l=0,t.mode=Pd;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((f&255)<<8)+(f>>8))%31){A.msg="incorrect header check",t.mode=Ct;break}if((f&15)!==kd){A.msg="unknown compression method",t.mode=Ct;break}if(f>>>=4,l-=4,M=(f&15)+8,t.wbits===0&&(t.wbits=M),M>15||M>t.wbits){A.msg="invalid window size",t.mode=Ct;break}t.dmax=1<<t.wbits,t.flags=0,A.adler=t.check=1,t.mode=f&512?Xd:Qi,f=0,l=0;break;case Pd:for(;l<16;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(t.flags=f,(t.flags&255)!==kd){A.msg="unknown compression method",t.mode=Ct;break}if(t.flags&57344){A.msg="unknown header flags set",t.mode=Ct;break}t.head&&(t.head.text=f>>8&1),t.flags&512&&t.wrap&4&&(E[0]=f&255,E[1]=f>>>8&255,t.check=$n(t.check,E,2,0)),f=0,l=0,t.mode=Rd;case Rd:for(;l<32;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}t.head&&(t.head.time=f),t.flags&512&&t.wrap&4&&(E[0]=f&255,E[1]=f>>>8&255,E[2]=f>>>16&255,E[3]=f>>>24&255,t.check=$n(t.check,E,4,0)),f=0,l=0,t.mode=Md;case Md:for(;l<16;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}t.head&&(t.head.xflags=f&255,t.head.os=f>>8),t.flags&512&&t.wrap&4&&(E[0]=f&255,E[1]=f>>>8&255,t.check=$n(t.check,E,2,0)),f=0,l=0,t.mode=Kd;case Kd:if(t.flags&1024){for(;l<16;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}t.length=f,t.head&&(t.head.extra_len=f),t.flags&512&&t.wrap&4&&(E[0]=f&255,E[1]=f>>>8&255,t.check=$n(t.check,E,2,0)),f=0,l=0}else t.head&&(t.head.extra=null);t.mode=Gd;case Gd:if(t.flags&1024&&(u=t.length,u>s&&(u=s),u&&(t.head&&(M=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(i,i+u),M)),t.flags&512&&t.wrap&4&&(t.check=$n(t.check,r,u,i)),s-=u,i+=u,t.length-=u),t.length))break A;t.length=0,t.mode=Vd;case Vd:if(t.flags&2048){if(s===0)break A;u=0;do M=r[i+u++],t.head&&M&&t.length<65536&&(t.head.name+=String.fromCharCode(M));while(M&&u<s);if(t.flags&512&&t.wrap&4&&(t.check=$n(t.check,r,u,i)),s-=u,i+=u,M)break A}else t.head&&(t.head.name=null);t.length=0,t.mode=jd;case jd:if(t.flags&4096){if(s===0)break A;u=0;do M=r[i+u++],t.head&&M&&t.length<65536&&(t.head.comment+=String.fromCharCode(M));while(M&&u<s);if(t.flags&512&&t.wrap&4&&(t.check=$n(t.check,r,u,i)),s-=u,i+=u,M)break A}else t.head&&(t.head.comment=null);t.mode=Wd;case Wd:if(t.flags&512){for(;l<16;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(t.wrap&4&&f!==(t.check&65535)){A.msg="header crc mismatch",t.mode=Ct;break}f=0,l=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=Qi;break;case Xd:for(;l<32;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}A.adler=t.check=a2(f),f=0,l=0,t.mode=ol;case ol:if(t.havedict===0)return A.next_out=a,A.avail_out=o,A.next_in=i,A.avail_in=s,t.hold=f,t.bits=l,m3;A.adler=t.check=1,t.mode=Qi;case Qi:if(e===w3||e===yf)break A;case Zc:if(t.last){f>>>=l&7,l-=l&7,t.mode=Au;break}for(;l<3;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}switch(t.last=f&1,f>>>=1,l-=1,f&3){case 0:t.mode=qd;break;case 1:if(b3(t),t.mode=Ef,e===yf){f>>>=2,l-=2;break A}break;case 2:t.mode=Yd;break;case 3:A.msg="invalid block type",t.mode=Ct}f>>>=2,l-=2;break;case qd:for(f>>>=l&7,l-=l&7;l<32;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if((f&65535)!==(f>>>16^65535)){A.msg="invalid stored block lengths",t.mode=Ct;break}if(t.length=f&65535,f=0,l=0,t.mode=$c,e===yf)break A;case $c:t.mode=zd;case zd:if(u=t.length,u){if(u>s&&(u=s),u>o&&(u=o),u===0)break A;n.set(r.subarray(i,i+u),a),s-=u,i+=u,o-=u,a+=u,t.length-=u;break}t.mode=Qi;break;case Yd:for(;l<14;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(t.nlen=(f&31)+257,f>>>=5,l-=5,t.ndist=(f&31)+1,f>>>=5,l-=5,t.ncode=(f&15)+4,f>>>=4,l-=4,t.nlen>286||t.ndist>30){A.msg="too many length or distance symbols",t.mode=Ct;break}t.have=0,t.mode=Jd;case Jd:for(;t.have<t.ncode;){for(;l<3;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}t.lens[T[t.have++]]=f&7,f>>>=3,l-=3}for(;t.have<19;)t.lens[T[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,X={bits:t.lenbits},R=qo(B3,t.lens,0,19,t.lencode,0,t.work,X),t.lenbits=X.bits,R){A.msg="invalid code lengths set",t.mode=Ct;break}t.have=0,t.mode=Zd;case Zd:for(;t.have<t.nlen+t.ndist;){for(;x=t.lencode[f&(1<<t.lenbits)-1],F=x>>>24,_=x>>>16&255,I=x&65535,!(F<=l);){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(I<16)f>>>=F,l-=F,t.lens[t.have++]=I;else{if(I===16){for(y=F+2;l<y;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(f>>>=F,l-=F,t.have===0){A.msg="invalid bit length repeat",t.mode=Ct;break}M=t.lens[t.have-1],u=3+(f&3),f>>>=2,l-=2}else if(I===17){for(y=F+3;l<y;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}f>>>=F,l-=F,M=0,u=3+(f&7),f>>>=3,l-=3}else{for(y=F+7;l<y;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}f>>>=F,l-=F,M=0,u=11+(f&127),f>>>=7,l-=7}if(t.have+u>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=Ct;break}for(;u--;)t.lens[t.have++]=M}}if(t.mode===Ct)break;if(t.lens[256]===0){A.msg="invalid code -- missing end-of-block",t.mode=Ct;break}if(t.lenbits=9,X={bits:t.lenbits},R=qo(Kp,t.lens,0,t.nlen,t.lencode,0,t.work,X),t.lenbits=X.bits,R){A.msg="invalid literal/lengths set",t.mode=Ct;break}if(t.distbits=6,t.distcode=t.distdyn,X={bits:t.distbits},R=qo(Gp,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,X),t.distbits=X.bits,R){A.msg="invalid distances set",t.mode=Ct;break}if(t.mode=Ef,e===yf)break A;case Ef:t.mode=_f;case _f:if(s>=6&&o>=258){A.next_out=a,A.avail_out=o,A.next_in=i,A.avail_in=s,t.hold=f,t.bits=l,c3(A,g),a=A.next_out,n=A.output,o=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,f=t.hold,l=t.bits,t.mode===Qi&&(t.back=-1);break}for(t.back=0;x=t.lencode[f&(1<<t.lenbits)-1],F=x>>>24,_=x>>>16&255,I=x&65535,!(F<=l);){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(_&&(_&240)===0){for(L=F,q=_,rA=I;x=t.lencode[rA+((f&(1<<L+q)-1)>>L)],F=x>>>24,_=x>>>16&255,I=x&65535,!(L+F<=l);){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}f>>>=L,l-=L,t.back+=L}if(f>>>=F,l-=F,t.back+=F,t.length=I,_===0){t.mode=r2;break}if(_&32){t.back=-1,t.mode=Qi;break}if(_&64){A.msg="invalid literal/length code",t.mode=Ct;break}t.extra=_&15,t.mode=$d;case $d:if(t.extra){for(y=t.extra;l<y;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}t.length+=f&(1<<t.extra)-1,f>>>=t.extra,l-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=A2;case A2:for(;x=t.distcode[f&(1<<t.distbits)-1],F=x>>>24,_=x>>>16&255,I=x&65535,!(F<=l);){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if((_&240)===0){for(L=F,q=_,rA=I;x=t.distcode[rA+((f&(1<<L+q)-1)>>L)],F=x>>>24,_=x>>>16&255,I=x&65535,!(L+F<=l);){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}f>>>=L,l-=L,t.back+=L}if(f>>>=F,l-=F,t.back+=F,_&64){A.msg="invalid distance code",t.mode=Ct;break}t.offset=I,t.extra=_&15,t.mode=e2;case e2:if(t.extra){for(y=t.extra;l<y;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}t.offset+=f&(1<<t.extra)-1,f>>>=t.extra,l-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=Ct;break}t.mode=t2;case t2:if(o===0)break A;if(u=g-o,t.offset>u){if(u=t.offset-u,u>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=Ct;break}u>t.wnext?(u-=t.wnext,v=t.wsize-u):v=t.wnext-u,u>t.length&&(u=t.length),B=t.window}else B=n,v=a-t.offset,u=t.length;u>o&&(u=o),o-=u,t.length-=u;do n[a++]=B[v++];while(--u);t.length===0&&(t.mode=_f);break;case r2:if(o===0)break A;n[a++]=t.length,o--,t.mode=_f;break;case Au:if(t.wrap){for(;l<32;){if(s===0)break A;s--,f|=r[i++]<<l,l+=8}if(g-=o,A.total_out+=g,t.total+=g,t.wrap&4&&g&&(A.adler=t.check=t.flags?$n(t.check,n,g,a-g):Zu(t.check,n,g,a-g)),g=o,t.wrap&4&&(t.flags?f:a2(f))!==t.check){A.msg="incorrect data check",t.mode=Ct;break}f=0,l=0}t.mode=n2;case n2:if(t.wrap&&t.flags){for(;l<32;){if(s===0)break A;s--,f+=r[i++]<<l,l+=8}if(t.wrap&4&&f!==(t.total&4294967295)){A.msg="incorrect length check",t.mode=Ct;break}f=0,l=0}t.mode=i2;case i2:R=v3;break A;case Ct:R=Vp;break A;case Wp:return jp;case Xp:default:return Fn}return A.next_out=a,A.avail_out=o,A.next_in=i,A.avail_in=s,t.hold=f,t.bits=l,(t.wsize||g!==A.avail_out&&t.mode<Ct&&(t.mode<Au||e!==Hd))&&Zp(A,A.output,A.next_out,g-A.avail_out),d-=A.avail_in,g-=A.avail_out,A.total_in+=d,A.total_out+=g,t.total+=g,t.wrap&4&&g&&(A.adler=t.check=t.flags?$n(t.check,n,g,A.next_out-g):Zu(t.check,n,g,A.next_out-g)),A.data_type=t.bits+(t.last?64:0)+(t.mode===Qi?128:0)+(t.mode===Ef||t.mode===$c?256:0),(d===0&&g===0||e===Hd)&&R===Xa&&(R=x3),R},S3=A=>{if(Ja(A))return Fn;let e=A.state;return e.window&&(e.window=null),A.state=null,Xa},T3=(A,e)=>{if(Ja(A))return Fn;const t=A.state;return(t.wrap&2)===0?Fn:(t.head=e,e.done=!1,Xa)},L3=(A,e)=>{const t=e.length;let r,n,i;return Ja(A)||(r=A.state,r.wrap!==0&&r.mode!==ol)?Fn:r.mode===ol&&(n=1,n=Zu(n,e,t,0),n!==r.check)?Vp:(i=Zp(A,e,t,t),i?(r.mode=Wp,jp):(r.havedict=1,Xa))};var I3=zp,N3=Yp,O3=qp,D3=U3,H3=Jp,k3=Q3,P3=S3,R3=T3,M3=L3,K3="pako inflate (from Nodeca project)",Si={inflateReset:I3,inflateReset2:N3,inflateResetKeep:O3,inflateInit:D3,inflateInit2:H3,inflate:k3,inflateEnd:P3,inflateGetHeader:R3,inflateSetDictionary:M3,inflateInfo:K3};function G3(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var V3=G3;const $p=Object.prototype.toString,{Z_NO_FLUSH:j3,Z_FINISH:W3,Z_OK:i0,Z_STREAM_END:ru,Z_NEED_DICT:nu,Z_STREAM_ERROR:X3,Z_DATA_ERROR:o2,Z_MEM_ERROR:q3}=Pp;function g0(A){this.options=Rp.assign({chunkSize:1024*64,windowBits:15,to:""},A||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(A&&A.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f3,this.strm.avail_out=0;let t=Si.inflateInit2(this.strm,e.windowBits);if(t!==i0)throw new Error($u[t]);if(this.header=new V3,Si.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Ah.string2buf(e.dictionary):$p.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Si.inflateSetDictionary(this.strm,e.dictionary),t!==i0)))throw new Error($u[t])}g0.prototype.push=function(A,e){const t=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,a,s;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?W3:j3,$p.call(A)==="[object ArrayBuffer]"?t.input=new Uint8Array(A):t.input=A,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),i=Si.inflate(t,a),i===nu&&n&&(i=Si.inflateSetDictionary(t,n),i===i0?i=Si.inflate(t,a):i===o2&&(i=nu));t.avail_in>0&&i===ru&&t.state.wrap>0&&A[t.next_in]!==0;)Si.inflateReset(t),i=Si.inflate(t,a);switch(i){case X3:case o2:case nu:case q3:return this.onEnd(i),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||i===ru))if(this.options.to==="string"){let o=Ah.utf8border(t.output,t.next_out),f=t.next_out-o,l=Ah.buf2string(t.output,o);t.next_out=f,t.avail_out=r-f,f&&t.output.set(t.output.subarray(o,o+f),0),this.onData(l)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(i===i0&&s===0)){if(i===ru)return i=Si.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};g0.prototype.onData=function(A){this.chunks.push(A)};g0.prototype.onEnd=function(A){A===i0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Rp.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function z3(A,e){const t=new g0(e);if(t.push(A),t.err)throw t.msg||$u[t.err];return t.result}var Y3=g0,J3=z3,Z3={Inflate:Y3,inflate:J3};const{Inflate:$3,inflate:Ay}=Z3;var f2=$3,ey=Ay;const AB=[];for(let A=0;A<256;A++){let e=A;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;AB[A]=e}const l2=4294967295;function ty(A,e,t){let r=A;for(let n=0;n<t;n++)r=AB[(r^e[n])&255]^r>>>8;return r}function ry(A,e){return(ty(l2,A,e)^l2)>>>0}function c2(A,e,t){const r=A.readUint32(),n=ry(new Uint8Array(A.buffer,A.byteOffset+A.offset-e-4,e),e);if(n!==r)throw new Error(`CRC mismatch for chunk ${t}. Expected ${r}, found ${n}`)}function eB(A,e,t){for(let r=0;r<t;r++)e[r]=A[r]}function tB(A,e,t,r){let n=0;for(;n<r;n++)e[n]=A[n];for(;n<t;n++)e[n]=A[n]+e[n-r]&255}function rB(A,e,t,r){let n=0;if(t.length===0)for(;n<r;n++)e[n]=A[n];else for(;n<r;n++)e[n]=A[n]+t[n]&255}function nB(A,e,t,r,n){let i=0;if(t.length===0){for(;i<n;i++)e[i]=A[i];for(;i<r;i++)e[i]=A[i]+(e[i-n]>>1)&255}else{for(;i<n;i++)e[i]=A[i]+(t[i]>>1)&255;for(;i<r;i++)e[i]=A[i]+(e[i-n]+t[i]>>1)&255}}function iB(A,e,t,r,n){let i=0;if(t.length===0){for(;i<n;i++)e[i]=A[i];for(;i<r;i++)e[i]=A[i]+e[i-n]&255}else{for(;i<n;i++)e[i]=A[i]+t[i]&255;for(;i<r;i++)e[i]=A[i]+ny(e[i-n],t[i],t[i-n])&255}}function ny(A,e,t){const r=A+e-t,n=Math.abs(r-A),i=Math.abs(r-e),a=Math.abs(r-t);return n<=i&&n<=a?A:i<=a?e:t}function iy(A,e,t,r,n,i){switch(A){case 0:eB(e,t,n);break;case 1:tB(e,t,n,i);break;case 2:rB(e,t,r,n);break;case 3:nB(e,t,r,n,i);break;case 4:iB(e,t,r,n,i);break;default:throw new Error(`Unsupported filter: ${A}`)}}const ay=new Uint16Array([255]),sy=new Uint8Array(ay.buffer),oy=sy[0]===255;function fy(A){const{data:e,width:t,height:r,channels:n,depth:i}=A,a=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(i/8)*n,o=new Uint8Array(r*t*s);let f=0;for(let l=0;l<7;l++){const d=a[l],g=Math.ceil((t-d.x)/d.xStep),u=Math.ceil((r-d.y)/d.yStep);if(g<=0||u<=0)continue;const v=g*s,B=new Uint8Array(v);for(let x=0;x<u;x++){const F=e[f++],_=e.subarray(f,f+v);f+=v;const I=new Uint8Array(v);iy(F,_,I,B,v,s),B.set(I);for(let L=0;L<g;L++){const q=d.x+L*d.xStep,rA=d.y+x*d.yStep;if(!(q>=t||rA>=r))for(let M=0;M<s;M++)o[(rA*t+q)*s+M]=I[L*s+M]}}}if(i===16){const l=new Uint16Array(o.buffer);if(oy)for(let d=0;d<l.length;d++)l[d]=ly(l[d]);return l}else return o}function ly(A){return(A&255)<<8|A>>8&255}const cy=new Uint16Array([255]),uy=new Uint8Array(cy.buffer),hy=uy[0]===255,dy=new Uint8Array(0);function u2(A){const{data:e,width:t,height:r,channels:n,depth:i}=A,a=Math.ceil(i/8)*n,s=Math.ceil(i/8*n*t),o=new Uint8Array(r*s);let f=dy,l=0,d,g;for(let u=0;u<r;u++){switch(d=e.subarray(l+1,l+1+s),g=o.subarray(u*s,(u+1)*s),e[l]){case 0:eB(d,g,s);break;case 1:tB(d,g,s,a);break;case 2:rB(d,g,f,s);break;case 3:nB(d,g,f,s,a);break;case 4:iB(d,g,f,s,a);break;default:throw new Error(`Unsupported filter: ${e[l]}`)}f=g,l+=s+1}if(i===16){const u=new Uint16Array(o.buffer);if(hy)for(let v=0;v<u.length;v++)u[v]=gy(u[v]);return u}else return o}function gy(A){return(A&255)<<8|A>>8&255}const jf=Uint8Array.of(137,80,78,71,13,10,26,10);function h2(A){if(!py(A.readBytes(jf.length)))throw new Error("wrong PNG signature")}function py(A){if(A.length<jf.length)return!1;for(let e=0;e<jf.length;e++)if(A[e]!==jf[e])return!1;return!0}const By="tEXt",wy=0,aB=new TextDecoder("latin1");function vy(A){if(xy(A),A.length===0||A.length>79)throw new Error("keyword length must be between 1 and 79")}const my=/^[\u0000-\u00FF]*$/;function xy(A){if(!my.test(A))throw new Error("invalid latin1 text")}function Cy(A,e,t){const r=sB(e);A[r]=Fy(e,t-r.length-1)}function sB(A){for(A.mark();A.readByte()!==wy;);const e=A.offset;A.reset();const t=aB.decode(A.readBytes(e-A.offset-1));return A.skip(1),vy(t),t}function Fy(A,e){return aB.decode(A.readBytes(e))}const en={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},iu={UNKNOWN:-1,DEFLATE:0},d2={UNKNOWN:-1,ADAPTIVE:0},au={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Uf={NONE:0,BACKGROUND:1,PREVIOUS:2},su={SOURCE:0,OVER:1};class yy extends vh{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,t={}){super(e);const{checkCrc:r=!1}=t;this._checkCrc=r,this._inflator=new f2,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=iu.UNKNOWN,this._filterMethod=d2.UNKNOWN,this._interlaceMethod=au.UNKNOWN,this._colorType=en.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(h2(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for(h2(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){const r=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case By:Cy(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-r!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?c2(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){const r=this.offset;switch(t!=="fdAT"&&t!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=r+e;break}if(this.offset-r!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?c2(this,e+4,t):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=Ey(this.readUint8());const t=this.readUint8();this._colorType=t;let r;switch(t){case en.GREYSCALE:r=1;break;case en.TRUECOLOUR:r=3;break;case en.INDEXED_COLOUR:r=1;break;case en.GREYSCALE_ALPHA:r=2;break;case en.TRUECOLOUR_ALPHA:r=4;break;case en.UNKNOWN:default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==iu.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const t=e/3;this._hasPalette=!0;const r=[];this._palette=r;for(let n=0;n<t;n++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const t=e,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,r=this.offset+this.byteOffset;if(r+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,r,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case en.GREYSCALE:case en.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break}case en.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){const r=this.readByte();this._palette[t].push(r)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}case en.UNKNOWN:case en.GREYSCALE_ALPHA:case en.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const t=sB(this),r=this.readUint8();if(r!==iu.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const n=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:ey(n)}}decodepHYs(){const e=this.readUint32(),t=this.readUint32(),r=this.readByte();this._png.resolution={x:e,y:t,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(e);if(r){if(r.data=u2({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)t.data=r.data;else{const n=this._apng.frames.at(e-1);this.disposeFrame(r,n,t),this.addFrameDataToCanvas(t,r)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,r){switch(e.disposeOp){case Uf.NONE:break;case Uf.BACKGROUND:for(let n=0;n<this._png.height;n++)for(let i=0;i<this._png.width;i++){const a=(n*e.width+i)*this._png.channels;for(let s=0;s<this._png.channels;s++)r.data[a+s]=0}break;case Uf.PREVIOUS:r.data.set(t.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,t){const r=1<<this._png.depth,n=(i,a)=>{const s=((i+t.yOffset)*this._png.width+t.xOffset+a)*this._png.channels,o=(i*t.width+a)*this._png.channels;return{index:s,frameIndex:o}};switch(t.blendOp){case su.SOURCE:for(let i=0;i<t.height;i++)for(let a=0;a<t.width;a++){const{index:s,frameIndex:o}=n(i,a);for(let f=0;f<this._png.channels;f++)e.data[s+f]=t.data[o+f]}break;case su.OVER:for(let i=0;i<t.height;i++)for(let a=0;a<t.width;a++){const{index:s,frameIndex:o}=n(i,a);for(let f=0;f<this._png.channels;f++){const l=t.data[o+this._png.channels-1]/r,d=f%(this._png.channels-1)===0?1:t.data[o+f],g=Math.floor(l*d+(1-l)*e.data[s+f]);e.data[s+f]+=g}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==d2.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===au.NO_INTERLACE)this._png.data=u2({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===au.ADAM7)this._png.data=fy({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Uf.NONE,blendOp:su.SOURCE,data:e}),this._inflator=new f2,this._writingDataChunks=!1}}function Ey(A){if(A!==1&&A!==2&&A!==4&&A!==8&&A!==16)throw new Error(`invalid bit depth: ${A}`);return A}var g2;(function(A){A[A.UNKNOWN=0]="UNKNOWN",A[A.METRE=1]="METRE"})(g2||(g2={}));function _y(A,e){return new yy(A,e).decode()}var xe=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function ou(){xe.console&&typeof xe.console.log=="function"&&xe.console.log.apply(xe.console,arguments)}var lt={log:ou,warn:function(A){xe.console&&(typeof xe.console.warn=="function"?xe.console.warn.apply(xe.console,arguments):ou.call(null,arguments))},error:function(A){xe.console&&(typeof xe.console.error=="function"?xe.console.error.apply(xe.console,arguments):ou(A))}};function fu(A,e,t){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){Ha(r.response,e,t)},r.onerror=function(){lt.error("could not download file")},r.send()}function p2(A){var e=new XMLHttpRequest;e.open("HEAD",A,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function bf(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(e)}}var Ha=xe.saveAs||((typeof window>"u"?"undefined":tt(window))!=="object"||window!==xe?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(A,e,t){var r=xe.URL||xe.webkitURL,n=document.createElement("a");e=e||A.name||"download",n.download=e,n.rel="noopener",typeof A=="string"?(n.href=A,n.origin!==location.origin?p2(n.href)?fu(A,e,t):bf(n,n.target="_blank"):bf(n)):(n.href=r.createObjectURL(A),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){bf(n)},0))}:"msSaveOrOpenBlob"in navigator?function(A,e,t){if(e=e||A.name||"download",typeof A=="string")if(p2(A))fu(A,e,t);else{var r=document.createElement("a");r.href=A,r.target="_blank",setTimeout(function(){bf(r)})}else navigator.msSaveOrOpenBlob((function(n,i){return i===void 0?i={autoBom:!1}:tt(i)!=="object"&&(lt.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})(A,t),e)}:function(A,e,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof A=="string")return fu(A,e,t);var n=A.type==="application/octet-stream",i=/constructor/i.test(xe.HTMLElement)||xe.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader>"u"?"undefined":tt(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var l=s.result;l=a?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location=l,r=null},s.readAsDataURL(A)}else{var o=xe.URL||xe.webkitURL,f=o.createObjectURL(A);r?r.location=f:location.href=f,r=null,setTimeout(function(){o.revokeObjectURL(f)},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 oB(A){var e;A=A||"",this.ok=!1,A.charAt(0)=="#"&&(A=A.substr(1,6)),A={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"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,a=n.exec(A);a&&(e=i(a),this.r=e[0],this.g=e[1],this.b=e[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 s=this.r.toString(16),o=this.g.toString(16),f=this.b.toString(16);return s.length==1&&(s="0"+s),o.length==1&&(o="0"+o),f.length==1&&(f="0"+f),"#"+s+o+f}}var Wf=xe.atob.bind(xe),B2=xe.btoa.bind(xe);/**
 * @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 lu(A,e){var t=A[0],r=A[1],n=A[2],i=A[3];t=Fr(t,r,n,i,e[0],7,-680876936),i=Fr(i,t,r,n,e[1],12,-389564586),n=Fr(n,i,t,r,e[2],17,606105819),r=Fr(r,n,i,t,e[3],22,-1044525330),t=Fr(t,r,n,i,e[4],7,-176418897),i=Fr(i,t,r,n,e[5],12,1200080426),n=Fr(n,i,t,r,e[6],17,-1473231341),r=Fr(r,n,i,t,e[7],22,-45705983),t=Fr(t,r,n,i,e[8],7,1770035416),i=Fr(i,t,r,n,e[9],12,-1958414417),n=Fr(n,i,t,r,e[10],17,-42063),r=Fr(r,n,i,t,e[11],22,-1990404162),t=Fr(t,r,n,i,e[12],7,1804603682),i=Fr(i,t,r,n,e[13],12,-40341101),n=Fr(n,i,t,r,e[14],17,-1502002290),t=yr(t,r=Fr(r,n,i,t,e[15],22,1236535329),n,i,e[1],5,-165796510),i=yr(i,t,r,n,e[6],9,-1069501632),n=yr(n,i,t,r,e[11],14,643717713),r=yr(r,n,i,t,e[0],20,-373897302),t=yr(t,r,n,i,e[5],5,-701558691),i=yr(i,t,r,n,e[10],9,38016083),n=yr(n,i,t,r,e[15],14,-660478335),r=yr(r,n,i,t,e[4],20,-405537848),t=yr(t,r,n,i,e[9],5,568446438),i=yr(i,t,r,n,e[14],9,-1019803690),n=yr(n,i,t,r,e[3],14,-187363961),r=yr(r,n,i,t,e[8],20,1163531501),t=yr(t,r,n,i,e[13],5,-1444681467),i=yr(i,t,r,n,e[2],9,-51403784),n=yr(n,i,t,r,e[7],14,1735328473),t=Er(t,r=yr(r,n,i,t,e[12],20,-1926607734),n,i,e[5],4,-378558),i=Er(i,t,r,n,e[8],11,-2022574463),n=Er(n,i,t,r,e[11],16,1839030562),r=Er(r,n,i,t,e[14],23,-35309556),t=Er(t,r,n,i,e[1],4,-1530992060),i=Er(i,t,r,n,e[4],11,1272893353),n=Er(n,i,t,r,e[7],16,-155497632),r=Er(r,n,i,t,e[10],23,-1094730640),t=Er(t,r,n,i,e[13],4,681279174),i=Er(i,t,r,n,e[0],11,-358537222),n=Er(n,i,t,r,e[3],16,-722521979),r=Er(r,n,i,t,e[6],23,76029189),t=Er(t,r,n,i,e[9],4,-640364487),i=Er(i,t,r,n,e[12],11,-421815835),n=Er(n,i,t,r,e[15],16,530742520),t=_r(t,r=Er(r,n,i,t,e[2],23,-995338651),n,i,e[0],6,-198630844),i=_r(i,t,r,n,e[7],10,1126891415),n=_r(n,i,t,r,e[14],15,-1416354905),r=_r(r,n,i,t,e[5],21,-57434055),t=_r(t,r,n,i,e[12],6,1700485571),i=_r(i,t,r,n,e[3],10,-1894986606),n=_r(n,i,t,r,e[10],15,-1051523),r=_r(r,n,i,t,e[1],21,-2054922799),t=_r(t,r,n,i,e[8],6,1873313359),i=_r(i,t,r,n,e[15],10,-30611744),n=_r(n,i,t,r,e[6],15,-1560198380),r=_r(r,n,i,t,e[13],21,1309151649),t=_r(t,r,n,i,e[4],6,-145523070),i=_r(i,t,r,n,e[11],10,-1120210379),n=_r(n,i,t,r,e[2],15,718787259),r=_r(r,n,i,t,e[9],21,-343485551),A[0]=la(t,A[0]),A[1]=la(r,A[1]),A[2]=la(n,A[2]),A[3]=la(i,A[3])}function Hl(A,e,t,r,n,i){return e=la(la(e,A),la(r,i)),la(e<<n|e>>>32-n,t)}function Fr(A,e,t,r,n,i,a){return Hl(e&t|~e&r,A,e,n,i,a)}function yr(A,e,t,r,n,i,a){return Hl(e&r|t&~r,A,e,n,i,a)}function Er(A,e,t,r,n,i,a){return Hl(e^t^r,A,e,n,i,a)}function _r(A,e,t,r,n,i,a){return Hl(t^(e|~r),A,e,n,i,a)}function fB(A){var e,t=A.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=A.length;e+=64)lu(r,Uy(A.substring(e-64,e)));A=A.substring(e-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<A.length;e++)n[e>>2]|=A.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),e>55)for(lu(r,n),e=0;e<16;e++)n[e]=0;return n[14]=8*t,lu(r,n),r}function Uy(A){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=A.charCodeAt(e)+(A.charCodeAt(e+1)<<8)+(A.charCodeAt(e+2)<<16)+(A.charCodeAt(e+3)<<24);return t}var w2="0123456789abcdef".split("");function by(A){for(var e="",t=0;t<4;t++)e+=w2[A>>8*t+4&15]+w2[A>>8*t&15];return e}function Qy(A){return String.fromCharCode(255&A,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function eh(A){return fB(A).map(Qy).join("")}var Sy=(function(A){for(var e=0;e<A.length;e++)A[e]=by(A[e]);return A.join("")})(fB("hello"))!="5d41402abc4b2a76b9719d911017c592";function la(A,e){if(Sy){var t=(65535&A)+(65535&e);return(A>>16)+(e>>16)+(t>>16)<<16|65535&t}return A+e&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 th(A,e){var t,r,n,i;if(A!==t){for(var a=(n=A,i=1+(256/A.length|0),new Array(i+1).join(n)),s=[],o=0;o<256;o++)s[o]=o;var f=0;for(o=0;o<256;o++){var l=s[o];f=(f+l+a.charCodeAt(o))%256,s[o]=s[f],s[f]=l}t=A,r=s}else s=r;var d=e.length,g=0,u=0,v="";for(o=0;o<d;o++)u=(u+(l=s[g=(g+1)%256]))%256,s[g]=s[u],s[u]=l,a=s[(s[g]+s[u])%256],v+=String.fromCharCode(e.charCodeAt(o)^a);return v}/**
 * @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 v2={print:4,modify:8,copy:16,"annot-forms":32};function Qs(A,e,t,r){this.v=1,this.r=2;var n=192;A.forEach(function(s){if(v2.perm!==void 0)throw new Error("Invalid permission: "+s);n+=v2[s]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(e+this.padding).substr(0,32),a=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=eh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=th(this.encryptionKey,this.padding)}function Ss(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var e="",t=A.length,r=0;r<t;r++){var n=A.charCodeAt(r);e+=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?"#"+("0"+n.toString(16)).slice(-2):A[r]}return e}function m2(A){if(tt(A)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,typeof t!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in e[t]){var a=e[t][i];try{a[0].apply(A,r)}catch(s){xe.console&&lt.error("jsPDF PubSub Error",s.message,s)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function fl(A){if(!(this instanceof fl))return new fl(A);var e="opacity,stroke-opacity".split(",");for(var t in A)A.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=A[t]);this.id="",this.objectNumber=-1}function lB(A,e){this.gState=A,this.matrix=e,this.id="",this.objectNumber=-1}function Pa(A,e,t,r,n){if(!(this instanceof Pa))return new Pa(A,e,t,r,n);this.type=A==="axial"?2:3,this.coords=e,this.colors=t,lB.call(this,r,n)}function Is(A,e,t,r,n){if(!(this instanceof Is))return new Is(A,e,t,r,n);this.boundingBox=A,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,lB.call(this,r,n)}function he(A){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],s=1,o=16,f="S",l=null;tt(A=A||{})==="object"&&(t=A.orientation,r=A.unit||r,n=A.format||n,i=A.compress||A.compressPdf||i,(l=A.encryption||null)!==null&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),s=typeof A.userUnit=="number"?Math.abs(A.userUnit):1,A.precision!==void 0&&(e=A.precision),A.floatPrecision!==void 0&&(o=A.floatPrecision),f=A.defaultPathOperation||"S"),a=A.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",t=(""+(t||"P")).toLowerCase();var d=A.putOnlyUsedFonts||!1,g={},u={internal:{},__private__:{}};u.__private__.PubSub=m2;var v="1.3",B=u.__private__.getPdfVersion=function(){return v};u.__private__.setPdfVersion=function(p){v=p};var x={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]};u.__private__.getPageFormats=function(){return x};var F=u.__private__.getPageFormat=function(p){return x[p]};n=n||"a4";var _="compat",I="advanced",L=_;function q(){this.saveGraphicsState(),W(new we(ye,0,0,-ye,0,Ea()*ye).toString()+" cm"),this.setFontSize(this.getFontSize()/ye),f="n",L=I}function rA(){this.restoreGraphicsState(),f="S",L=_}var M=u.__private__.combineFontStyleAndFontWeight=function(p,b){if(p=="bold"&&b=="normal"||p=="bold"&&b==400||p=="normal"&&b=="italic"||p=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(p=b==400||b==="normal"?p==="italic"?"italic":"normal":b!=700&&b!=="bold"||p!=="normal"?(b==700?"bold":b)+""+p:"bold"),p};u.advancedAPI=function(p){var b=L===_;return b&&q.call(this),typeof p!="function"||(p(this),b&&rA.call(this)),this},u.compatAPI=function(p){var b=L===I;return b&&rA.call(this),typeof p!="function"||(p(this),b&&q.call(this)),this},u.isAdvancedAPI=function(){return L===I};var R,E=function(p){if(L!==I)throw new Error(p+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},X=u.roundToPrecision=u.__private__.roundToPrecision=function(p,b){var AA=e||b;if(isNaN(p)||isNaN(AA))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return p.toFixed(AA).replace(/0+$/,"")};R=u.hpf=u.__private__.hpf=typeof o=="number"?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return X(p,o)}:o==="smart"?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return X(p,p>-1&&p<1?16:5)}:function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return X(p,16)};var y=u.f2=u.__private__.f2=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.f2");return X(p,2)},T=u.__private__.f3=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.f3");return X(p,3)},P=u.scale=u.__private__.scale=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.scale");return L===_?p*ye:L===I?p:void 0},eA=function(p){return P((function(b){return L===_?Ea()-b:L===I?b:void 0})(p))};u.__private__.setPrecision=u.setPrecision=function(p){typeof parseInt(p,10)=="number"&&(e=parseInt(p,10))};var sA,wA="00000000000000000000000000000000",gA=u.__private__.getFileId=function(){return wA},hA=u.__private__.setFileId=function(p){return wA=p!==void 0&&/^[a-fA-F0-9]{32}$/.test(p)?p.toUpperCase():wA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),l!==null&&(qt=new Qs(l.userPermissions,l.userPassword,l.ownerPassword,wA)),wA};u.setFileId=function(p){return hA(p),this},u.getFileId=function(){return gA()};var CA=u.__private__.convertDateToPDFDate=function(p){var b=p.getTimezoneOffset(),AA=b<0?"+":"-",iA=Math.floor(Math.abs(b/60)),uA=Math.abs(b%60),QA=[AA,U(iA),"'",U(uA),"'"].join("");return["D:",p.getFullYear(),U(p.getMonth()+1),U(p.getDate()),U(p.getHours()),U(p.getMinutes()),U(p.getSeconds()),QA].join("")},IA=u.__private__.convertPDFDateToDate=function(p){var b=parseInt(p.substr(2,4),10),AA=parseInt(p.substr(6,2),10)-1,iA=parseInt(p.substr(8,2),10),uA=parseInt(p.substr(10,2),10),QA=parseInt(p.substr(12,2),10),OA=parseInt(p.substr(14,2),10);return new Date(b,AA,iA,uA,QA,OA,0)},_A=u.__private__.setCreationDate=function(p){var b;if(p===void 0&&(p=new Date),p instanceof Date)b=CA(p);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(p))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=p}return sA=b},m=u.__private__.getCreationDate=function(p){var b=sA;return p==="jsDate"&&(b=IA(sA)),b};u.setCreationDate=function(p){return _A(p),this},u.getCreationDate=function(p){return m(p)};var Q,U=u.__private__.padd2=function(p){return("0"+parseInt(p)).slice(-2)},N=u.__private__.padd2Hex=function(p){return("00"+(p=p.toString())).substr(p.length)},j=0,nA=[],fA=[],oA=0,lA=[],SA=[],HA=!1,GA=fA;u.__private__.setCustomOutputDestination=function(p){HA=!0,GA=p};var VA=function(p){HA||(GA=p)};u.__private__.resetCustomOutputDestination=function(){HA=!1,GA=fA};var W=u.__private__.out=function(p){return p=p.toString(),oA+=p.length+1,GA.push(p),GA},RA=u.__private__.write=function(p){return W(arguments.length===1?p.toString():Array.prototype.join.call(arguments," "))},kA=u.__private__.getArrayBuffer=function(p){for(var b=p.length,AA=new ArrayBuffer(b),iA=new Uint8Array(AA);b--;)iA[b]=p.charCodeAt(b);return AA},te=[["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]];u.__private__.getStandardFonts=function(){return te};var LA=A.fontSize||16;u.__private__.setFontSize=u.setFontSize=function(p){return LA=L===I?p/ye:p,this};var fe,ZA=u.__private__.getFontSize=u.getFontSize=function(){return L===_?LA:LA*ye},de=A.R2L||!1;u.__private__.setR2L=u.setR2L=function(p){return de=p,this},u.__private__.getR2L=u.getR2L=function(){return de};var ce,Le=u.__private__.setZoomMode=function(p){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(p))fe=p;else if(isNaN(p)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(p)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+p+'" is not recognized.');fe=p}else fe=parseInt(p,10)};u.__private__.getZoomMode=function(){return fe};var Ie,me=u.__private__.setPageMode=function(p){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(p)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+p+'" is not recognized.');ce=p};u.__private__.getPageMode=function(){return ce};var ke=u.__private__.setLayoutMode=function(p){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(p)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+p+'" is not recognized.');Ie=p};u.__private__.getLayoutMode=function(){return Ie},u.__private__.setDisplayMode=u.setDisplayMode=function(p,b,AA){return Le(p),ke(b),me(AA),this};var _e={title:"",subject:"",author:"",keywords:"",creator:""};u.__private__.getDocumentProperty=function(p){if(Object.keys(_e).indexOf(p)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _e[p]},u.__private__.getDocumentProperties=function(){return _e},u.__private__.setDocumentProperties=u.setProperties=u.setDocumentProperties=function(p){for(var b in _e)_e.hasOwnProperty(b)&&p[b]&&(_e[b]=p[b]);return this},u.__private__.setDocumentProperty=function(p,b){if(Object.keys(_e).indexOf(p)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _e[p]=b};var ie,ye,oe,vt,Pe,Qe={},Se={},ct=[],ge={},Je={},Be={},Ce={},ut=null,De=0,pe=[],We=new m2(u),fi=A.hotfixes||[],tr={},En={},ln=[],we=function p(b,AA,iA,uA,QA,OA){if(!(this instanceof p))return new p(b,AA,iA,uA,QA,OA);isNaN(b)&&(b=1),isNaN(AA)&&(AA=0),isNaN(iA)&&(iA=0),isNaN(uA)&&(uA=1),isNaN(QA)&&(QA=0),isNaN(OA)&&(OA=0),this._matrix=[b,AA,iA,uA,QA,OA]};Object.defineProperty(we.prototype,"sx",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(we.prototype,"shy",{get:function(){return this._matrix[1]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(we.prototype,"shx",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(we.prototype,"sy",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(we.prototype,"tx",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(we.prototype,"ty",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(we.prototype,"a",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(we.prototype,"b",{get:function(){return this._matrix[1]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(we.prototype,"c",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(we.prototype,"d",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(we.prototype,"e",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(we.prototype,"f",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(we.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(we.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(we.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(we.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),we.prototype.join=function(p){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(R).join(p)},we.prototype.multiply=function(p){var b=p.sx*this.sx+p.shy*this.shx,AA=p.sx*this.shy+p.shy*this.sy,iA=p.shx*this.sx+p.sy*this.shx,uA=p.shx*this.shy+p.sy*this.sy,QA=p.tx*this.sx+p.ty*this.shx+this.tx,OA=p.tx*this.shy+p.ty*this.sy+this.ty;return new we(b,AA,iA,uA,QA,OA)},we.prototype.decompose=function(){var p=this.sx,b=this.shy,AA=this.shx,iA=this.sy,uA=this.tx,QA=this.ty,OA=Math.sqrt(p*p+b*b),ne=(p/=OA)*AA+(b/=OA)*iA;AA-=p*ne,iA-=b*ne;var le=Math.sqrt(AA*AA+iA*iA);return ne/=le,p*(iA/=le)<b*(AA/=le)&&(p=-p,b=-b,ne=-ne,OA=-OA),{scale:new we(OA,0,0,le,0,0),translate:new we(1,0,0,1,uA,QA),rotate:new we(p,b,-b,p,0,0),skew:new we(1,0,ne,1,0,0)}},we.prototype.toString=function(p){return this.join(" ")},we.prototype.inversed=function(){var p=this.sx,b=this.shy,AA=this.shx,iA=this.sy,uA=this.tx,QA=this.ty,OA=1/(p*iA-b*AA),ne=iA*OA,le=-b*OA,Fe=-AA*OA,Te=p*OA;return new we(ne,le,Fe,Te,-ne*uA-Fe*QA,-le*uA-Te*QA)},we.prototype.applyToPoint=function(p){var b=p.x*this.sx+p.y*this.shx+this.tx,AA=p.x*this.shy+p.y*this.sy+this.ty;return new di(b,AA)},we.prototype.applyToRectangle=function(p){var b=this.applyToPoint(p),AA=this.applyToPoint(new di(p.x+p.w,p.y+p.h));return new ro(b.x,b.y,AA.x-b.x,AA.y-b.y)},we.prototype.clone=function(){var p=this.sx,b=this.shy,AA=this.shx,iA=this.sy,uA=this.tx,QA=this.ty;return new we(p,b,AA,iA,uA,QA)},u.Matrix=we;var _n=u.matrixMult=function(p,b){return b.multiply(p)},Un=new we(1,0,0,1,0,0);u.unitMatrix=u.identityMatrix=Un;var xr=function(p,b){if(!Je[p]){var AA=(b instanceof Pa?"Sh":"P")+(Object.keys(ge).length+1).toString(10);b.id=AA,Je[p]=AA,ge[AA]=b,We.publish("addPattern",b)}};u.ShadingPattern=Pa,u.TilingPattern=Is,u.addShadingPattern=function(p,b){return E("addShadingPattern()"),xr(p,b),this},u.beginTilingPattern=function(p){E("beginTilingPattern()"),no(p.boundingBox[0],p.boundingBox[1],p.boundingBox[2]-p.boundingBox[0],p.boundingBox[3]-p.boundingBox[1],p.matrix)},u.endTilingPattern=function(p,b){E("endTilingPattern()"),b.stream=SA[Q].join(`
`),xr(p,b),We.publish("endTilingPattern",b),ln.pop().restore()};var Pr,mt=u.__private__.newObject=function(){var p=Pt();return O(p,!0),p},Pt=u.__private__.newObjectDeferred=function(){return j++,nA[j]=function(){return oA},j},O=function(p,b){return b=typeof b=="boolean"&&b,nA[p]=oA,b&&W(p+" 0 obj"),p},J=u.__private__.newAdditionalObject=function(){var p={objId:Pt(),content:""};return lA.push(p),p},K=Pt(),V=Pt(),Z=u.__private__.decodeColorString=function(p){var b=p.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length!==5||b[4]!=="k"&&b[4]!=="K"||(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var AA=parseFloat(b[0]);b=[AA,AA,AA,"r"]}for(var iA="#",uA=0;uA<3;uA++)iA+=("0"+Math.floor(255*parseFloat(b[uA])).toString(16)).slice(-2);return iA},tA=u.__private__.encodeColorString=function(p){var b;typeof p=="string"&&(p={ch1:p});var AA=p.ch1,iA=p.ch2,uA=p.ch3,QA=p.ch4,OA=p.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof AA=="string"&&AA.charAt(0)!=="#"){var ne=new oB(AA);if(ne.ok)AA=ne.toHex();else if(!/^\d*\.?\d*$/.test(AA))throw new Error('Invalid color "'+AA+'" passed to jsPDF.encodeColorString.')}if(typeof AA=="string"&&/^#[0-9A-Fa-f]{3}$/.test(AA)&&(AA="#"+AA[1]+AA[1]+AA[2]+AA[2]+AA[3]+AA[3]),typeof AA=="string"&&/^#[0-9A-Fa-f]{6}$/.test(AA)){var le=parseInt(AA.substr(1),16);AA=le>>16&255,iA=le>>8&255,uA=255&le}if(iA===void 0||QA===void 0&&AA===iA&&iA===uA)b=typeof AA=="string"?AA+" "+OA[0]:p.precision===2?y(AA/255)+" "+OA[0]:T(AA/255)+" "+OA[0];else if(QA===void 0||tt(QA)==="object"){if(QA&&!isNaN(QA.a)&&QA.a===0)return["1.","1.","1.",OA[1]].join(" ");b=typeof AA=="string"?[AA,iA,uA,OA[1]].join(" "):p.precision===2?[y(AA/255),y(iA/255),y(uA/255),OA[1]].join(" "):[T(AA/255),T(iA/255),T(uA/255),OA[1]].join(" ")}else b=typeof AA=="string"?[AA,iA,uA,QA,OA[2]].join(" "):p.precision===2?[y(AA),y(iA),y(uA),y(QA),OA[2]].join(" "):[T(AA),T(iA),T(uA),T(QA),OA[2]].join(" ");return b},pA=u.__private__.getFilters=function(){return a},yA=u.__private__.putStream=function(p){var b=(p=p||{}).data||"",AA=p.filters||pA(),iA=p.alreadyAppliedFilters||[],uA=p.addLength1||!1,QA=b.length,OA=p.objectId,ne=function(zt){return zt};if(l!==null&&OA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");l!==null&&(ne=qt.encryptor(OA,0));var le={};AA===!0&&(AA=["FlateEncode"]);var Fe=p.additionalKeyValues||[],Te=(le=he.API.processDataByFilters!==void 0?he.API.processDataByFilters(b,AA):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(iA)?iA.join(" "):iA.toString());if(le.data.length!==0&&(Fe.push({key:"Length",value:le.data.length}),uA===!0&&Fe.push({key:"Length1",value:QA})),Te.length!=0)if(Te.split("/").length-1==1)Fe.push({key:"Filter",value:Te});else{Fe.push({key:"Filter",value:"["+Te+"]"});for(var Ve=0;Ve<Fe.length;Ve+=1)if(Fe[Ve].key==="DecodeParms"){for(var Ft=[],Kt=0;Kt<le.reverseChain.split("/").length-1;Kt+=1)Ft.push("null");Ft.push(Fe[Ve].value),Fe[Ve].value="["+Ft.join(" ")+"]"}}W("<<");for(var ht=0;ht<Fe.length;ht++)W("/"+Fe[ht].key+" "+Fe[ht].value);W(">>"),le.data.length!==0&&(W("stream"),W(ne(le.data)),W("endstream"))},BA=u.__private__.putPage=function(p){var b=p.number,AA=p.data,iA=p.objId,uA=p.contentsObjId;O(iA,!0),W("<</Type /Page"),W("/Parent "+p.rootDictionaryObjId+" 0 R"),W("/Resources "+p.resourceDictionaryObjId+" 0 R"),W("/MediaBox ["+parseFloat(R(p.mediaBox.bottomLeftX))+" "+parseFloat(R(p.mediaBox.bottomLeftY))+" "+R(p.mediaBox.topRightX)+" "+R(p.mediaBox.topRightY)+"]"),p.cropBox!==null&&W("/CropBox ["+R(p.cropBox.bottomLeftX)+" "+R(p.cropBox.bottomLeftY)+" "+R(p.cropBox.topRightX)+" "+R(p.cropBox.topRightY)+"]"),p.bleedBox!==null&&W("/BleedBox ["+R(p.bleedBox.bottomLeftX)+" "+R(p.bleedBox.bottomLeftY)+" "+R(p.bleedBox.topRightX)+" "+R(p.bleedBox.topRightY)+"]"),p.trimBox!==null&&W("/TrimBox ["+R(p.trimBox.bottomLeftX)+" "+R(p.trimBox.bottomLeftY)+" "+R(p.trimBox.topRightX)+" "+R(p.trimBox.topRightY)+"]"),p.artBox!==null&&W("/ArtBox ["+R(p.artBox.bottomLeftX)+" "+R(p.artBox.bottomLeftY)+" "+R(p.artBox.topRightX)+" "+R(p.artBox.topRightY)+"]"),typeof p.userUnit=="number"&&p.userUnit!==1&&W("/UserUnit "+p.userUnit),We.publish("putPage",{objId:iA,pageContext:pe[b],pageNumber:b,page:AA}),W("/Contents "+uA+" 0 R"),W(">>"),W("endobj");var QA=AA.join(`
`);return L===I&&(QA+=`
Q`),O(uA,!0),yA({data:QA,filters:pA(),objectId:uA}),W("endobj"),iA},vA=u.__private__.putPages=function(){var p,b,AA=[];for(p=1;p<=De;p++)pe[p].objId=Pt(),pe[p].contentsObjId=Pt();for(p=1;p<=De;p++)AA.push(BA({number:p,data:SA[p],objId:pe[p].objId,contentsObjId:pe[p].contentsObjId,mediaBox:pe[p].mediaBox,cropBox:pe[p].cropBox,bleedBox:pe[p].bleedBox,trimBox:pe[p].trimBox,artBox:pe[p].artBox,userUnit:pe[p].userUnit,rootDictionaryObjId:K,resourceDictionaryObjId:V}));O(K,!0),W("<</Type /Pages");var iA="/Kids [";for(b=0;b<De;b++)iA+=AA[b]+" 0 R ";W(iA+"]"),W("/Count "+De),W(">>"),W("endobj"),We.publish("postPutPages")},FA=function(p){We.publish("putFont",{font:p,out:W,newObject:mt,putStream:yA}),p.isAlreadyPutted!==!0&&(p.objectNumber=mt(),W("<<"),W("/Type /Font"),W("/BaseFont /"+Ss(p.postScriptName)),W("/Subtype /Type1"),typeof p.encoding=="string"&&W("/Encoding /"+p.encoding),W("/FirstChar 32"),W("/LastChar 255"),W(">>"),W("endobj"))},PA=function(p){p.objectNumber=mt();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[R(p.x),R(p.y),R(p.x+p.width),R(p.y+p.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+p.matrix.toString()+"]"});var AA=p.pages[1].join(`
`);yA({data:AA,additionalKeyValues:b,objectId:p.objectNumber}),W("endobj")},jA=function(p,b){b||(b=21);var AA=mt(),iA=(function(OA,ne){var le,Fe=[],Te=1/(ne-1);for(le=0;le<1;le+=Te)Fe.push(le);if(Fe.push(1),OA[0].offset!=0){var Ve={offset:0,color:OA[0].color};OA.unshift(Ve)}if(OA[OA.length-1].offset!=1){var Ft={offset:1,color:OA[OA.length-1].color};OA.push(Ft)}for(var Kt="",ht=0,zt=0;zt<Fe.length;zt++){for(le=Fe[zt];le>OA[ht+1].offset;)ht++;var Gt=OA[ht].offset,or=(le-Gt)/(OA[ht+1].offset-Gt),Bi=OA[ht].color,Sn=OA[ht+1].color;Kt+=N(Math.round((1-or)*Bi[0]+or*Sn[0]).toString(16))+N(Math.round((1-or)*Bi[1]+or*Sn[1]).toString(16))+N(Math.round((1-or)*Bi[2]+or*Sn[2]).toString(16))}return Kt.trim()})(p.colors,b),uA=[];uA.push({key:"FunctionType",value:"0"}),uA.push({key:"Domain",value:"[0.0 1.0]"}),uA.push({key:"Size",value:"["+b+"]"}),uA.push({key:"BitsPerSample",value:"8"}),uA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),uA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),yA({data:iA,additionalKeyValues:uA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:AA}),W("endobj"),p.objectNumber=mt(),W("<< /ShadingType "+p.type),W("/ColorSpace /DeviceRGB");var QA="/Coords ["+R(parseFloat(p.coords[0]))+" "+R(parseFloat(p.coords[1]))+" ";p.type===2?QA+=R(parseFloat(p.coords[2]))+" "+R(parseFloat(p.coords[3])):QA+=R(parseFloat(p.coords[2]))+" "+R(parseFloat(p.coords[3]))+" "+R(parseFloat(p.coords[4]))+" "+R(parseFloat(p.coords[5])),W(QA+="]"),p.matrix&&W("/Matrix ["+p.matrix.toString()+"]"),W("/Function "+AA+" 0 R"),W("/Extend [true true]"),W(">>"),W("endobj")},YA=function(p,b){var AA=Pt(),iA=mt();b.push({resourcesOid:AA,objectOid:iA}),p.objectNumber=iA;var uA=[];uA.push({key:"Type",value:"/Pattern"}),uA.push({key:"PatternType",value:"1"}),uA.push({key:"PaintType",value:"1"}),uA.push({key:"TilingType",value:"1"}),uA.push({key:"BBox",value:"["+p.boundingBox.map(R).join(" ")+"]"}),uA.push({key:"XStep",value:R(p.xStep)}),uA.push({key:"YStep",value:R(p.yStep)}),uA.push({key:"Resources",value:AA+" 0 R"}),p.matrix&&uA.push({key:"Matrix",value:"["+p.matrix.toString()+"]"}),yA({data:p.stream,additionalKeyValues:uA,objectId:p.objectNumber}),W("endobj")},KA=function(p){for(var b in p.objectNumber=mt(),W("<<"),p)switch(b){case"opacity":W("/ca "+y(p[b]));break;case"stroke-opacity":W("/CA "+y(p[b]))}W(">>"),W("endobj")},zA=function(p){O(p.resourcesOid,!0),W("<<"),W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in W("/Font <<"),Qe)Qe.hasOwnProperty(b)&&(d===!1||d===!0&&g.hasOwnProperty(b))&&W("/"+b+" "+Qe[b].objectNumber+" 0 R");W(">>")})(),(function(){if(Object.keys(ge).length>0){for(var b in W("/Shading <<"),ge)ge.hasOwnProperty(b)&&ge[b]instanceof Pa&&ge[b].objectNumber>=0&&W("/"+b+" "+ge[b].objectNumber+" 0 R");We.publish("putShadingPatternDict"),W(">>")}})(),(function(b){if(Object.keys(ge).length>0){for(var AA in W("/Pattern <<"),ge)ge.hasOwnProperty(AA)&&ge[AA]instanceof u.TilingPattern&&ge[AA].objectNumber>=0&&ge[AA].objectNumber<b&&W("/"+AA+" "+ge[AA].objectNumber+" 0 R");We.publish("putTilingPatternDict"),W(">>")}})(p.objectOid),(function(){if(Object.keys(Be).length>0){var b;for(b in W("/ExtGState <<"),Be)Be.hasOwnProperty(b)&&Be[b].objectNumber>=0&&W("/"+b+" "+Be[b].objectNumber+" 0 R");We.publish("putGStateDict"),W(">>")}})(),(function(){for(var b in W("/XObject <<"),tr)tr.hasOwnProperty(b)&&tr[b].objectNumber>=0&&W("/"+b+" "+tr[b].objectNumber+" 0 R");We.publish("putXobjectDict"),W(">>")})(),W(">>"),W("endobj")},ve=function(p){Se[p.fontName]=Se[p.fontName]||{},Se[p.fontName][p.fontStyle]=p.id},it=function(p,b,AA,iA,uA){var QA={id:"F"+(Object.keys(Qe).length+1).toString(10),postScriptName:p,fontName:b,fontStyle:AA,encoding:iA,isStandardFont:uA||!1,metadata:{}};return We.publish("addFont",{font:QA,instance:this}),Qe[QA.id]=QA,ve(QA),QA.id},Re=u.__private__.pdfEscape=u.pdfEscape=function(p,b){return(function(AA,iA){var uA,QA,OA,ne,le,Fe,Te,Ve,Ft;if(OA=(iA=iA||{}).sourceEncoding||"Unicode",le=iA.outputEncoding,(iA.autoencode||le)&&Qe[ie].metadata&&Qe[ie].metadata[OA]&&Qe[ie].metadata[OA].encoding&&(ne=Qe[ie].metadata[OA].encoding,!le&&Qe[ie].encoding&&(le=Qe[ie].encoding),!le&&ne.codePages&&(le=ne.codePages[0]),typeof le=="string"&&(le=ne[le]),le)){for(Te=!1,Fe=[],uA=0,QA=AA.length;uA<QA;uA++)(Ve=le[AA.charCodeAt(uA)])?Fe.push(String.fromCharCode(Ve)):Fe.push(AA[uA]),Fe[uA].charCodeAt(0)>>8&&(Te=!0);AA=Fe.join("")}for(uA=AA.length;Te===void 0&&uA!==0;)AA.charCodeAt(uA-1)>>8&&(Te=!0),uA--;if(!Te)return AA;for(Fe=iA.noBOM?[]:[254,255],uA=0,QA=AA.length;uA<QA;uA++){if((Ft=(Ve=AA.charCodeAt(uA))>>8)>>8)throw new Error("Character at position "+uA+" of string '"+AA+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Fe.push(Ft),Fe.push(Ve-(Ft<<8))}return String.fromCharCode.apply(void 0,Fe)})(p,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},yt=u.__private__.beginPage=function(p){SA[++De]=[],pe[De]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(p[0]),topRightY:Number(p[1])}},Wn(De),VA(SA[Q])},jn=function(p,b){var AA,iA,uA;switch(t=b||t,typeof p=="string"&&(AA=F(p.toLowerCase()),Array.isArray(AA)&&(iA=AA[0],uA=AA[1])),Array.isArray(p)&&(iA=p[0]*ye,uA=p[1]*ye),isNaN(iA)&&(iA=n[0],uA=n[1]),(iA>14400||uA>14400)&&(lt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),iA=Math.min(14400,iA),uA=Math.min(14400,uA)),n=[iA,uA],t.substr(0,1)){case"l":uA>iA&&(n=[uA,iA]);break;case"p":iA>uA&&(n=[uA,iA])}yt(n),Ee($s),W(ss),eo!==0&&W(eo+" J"),to!==0&&W(to+" j"),We.publish("addPage",{pageNumber:De})},bn=function(p){p>0&&p<=De&&(SA.splice(p,1),pe.splice(p,1),De--,Q>De&&(Q=De),this.setPage(Q))},Wn=function(p){p>0&&p<=De&&(Q=p)},cn=u.__private__.getNumberOfPages=u.getNumberOfPages=function(){return SA.length-1},Pi=function(p,b,AA){var iA,uA=void 0;return AA=AA||{},p=p!==void 0?p:Qe[ie].fontName,b=b!==void 0?b:Qe[ie].fontStyle,iA=p.toLowerCase(),Se[iA]!==void 0&&Se[iA][b]!==void 0?uA=Se[iA][b]:Se[p]!==void 0&&Se[p][b]!==void 0?uA=Se[p][b]:AA.disableWarning===!1&&lt.warn("Unable to look up font label for font '"+p+"', '"+b+"'. Refer to getFontList() for available fonts."),uA||AA.noFallback||(uA=Se.times[b])==null&&(uA=Se.times.normal),uA},Rt=u.__private__.putInfo=function(){var p=mt(),b=function(iA){return iA};for(var AA in l!==null&&(b=qt.encryptor(p,0)),W("<<"),W("/Producer ("+Re(b("jsPDF "+he.version))+")"),_e)_e.hasOwnProperty(AA)&&_e[AA]&&W("/"+AA.substr(0,1).toUpperCase()+AA.substr(1)+" ("+Re(b(_e[AA]))+")");W("/CreationDate ("+Re(b(sA))+")"),W(">>"),W("endobj")},ns=u.__private__.putCatalog=function(p){var b=(p=p||{}).rootDictionaryObjId||K;switch(mt(),W("<<"),W("/Type /Catalog"),W("/Pages "+b+" 0 R"),fe||(fe="fullwidth"),fe){case"fullwidth":W("/OpenAction [3 0 R /FitH null]");break;case"fullheight":W("/OpenAction [3 0 R /FitV null]");break;case"fullpage":W("/OpenAction [3 0 R /Fit]");break;case"original":W("/OpenAction [3 0 R /XYZ null null 1]");break;default:var AA=""+fe;AA.substr(AA.length-1)==="%"&&(fe=parseInt(fe)/100),typeof fe=="number"&&W("/OpenAction [3 0 R /XYZ null null "+y(fe)+"]")}switch(Ie||(Ie="continuous"),Ie){case"continuous":W("/PageLayout /OneColumn");break;case"single":W("/PageLayout /SinglePage");break;case"two":case"twoleft":W("/PageLayout /TwoColumnLeft");break;case"tworight":W("/PageLayout /TwoColumnRight")}ce&&W("/PageMode /"+ce),We.publish("putCatalog"),W(">>"),W("endobj")},Wl=u.__private__.putTrailer=function(){W("trailer"),W("<<"),W("/Size "+(j+1)),W("/Root "+j+" 0 R"),W("/Info "+(j-1)+" 0 R"),l!==null&&W("/Encrypt "+qt.oid+" 0 R"),W("/ID [ <"+wA+"> <"+wA+"> ]"),W(">>")},Mt=u.__private__.putHeader=function(){W("%PDF-"+v),W("%ºß¬à")},C0=u.__private__.putXRef=function(){var p="0000000000";W("xref"),W("0 "+(j+1)),W("0000000000 65535 f ");for(var b=1;b<=j;b++)typeof nA[b]=="function"?W((p+nA[b]()).slice(-10)+" 00000 n "):nA[b]!==void 0?W((p+nA[b]).slice(-10)+" 00000 n "):W("0000000000 00000 n ")},Xn=u.__private__.buildDocument=function(){var p;j=0,oA=0,fA=[],nA=[],lA=[],K=Pt(),V=Pt(),VA(fA),We.publish("buildDocument"),Mt(),vA(),(function(){We.publish("putAdditionalObjects");for(var AA=0;AA<lA.length;AA++){var iA=lA[AA];O(iA.objId,!0),W(iA.content),W("endobj")}We.publish("postPutAdditionalObjects")})(),p=[],(function(){for(var AA in Qe)Qe.hasOwnProperty(AA)&&(d===!1||d===!0&&g.hasOwnProperty(AA))&&FA(Qe[AA])})(),(function(){var AA;for(AA in Be)Be.hasOwnProperty(AA)&&KA(Be[AA])})(),(function(){for(var AA in tr)tr.hasOwnProperty(AA)&&PA(tr[AA])})(),(function(AA){var iA;for(iA in ge)ge.hasOwnProperty(iA)&&(ge[iA]instanceof Pa?jA(ge[iA]):ge[iA]instanceof Is&&YA(ge[iA],AA))})(p),We.publish("putResources"),p.forEach(zA),zA({resourcesOid:V,objectOid:Number.MAX_SAFE_INTEGER}),We.publish("postPutResources"),l!==null&&(qt.oid=mt(),W("<<"),W("/Filter /Standard"),W("/V "+qt.v),W("/R "+qt.r),W("/U <"+qt.toHexString(qt.U)+">"),W("/O <"+qt.toHexString(qt.O)+">"),W("/P "+qt.P),W(">>"),W("endobj")),Rt(),ns();var b=oA;return C0(),Wl(),W("startxref"),W(""+b),W("%%EOF"),VA(SA[Q]),fA.join(`
`)},is=u.__private__.getBlob=function(p){return new Blob([kA(p)],{type:"application/pdf"})},F0=u.output=u.__private__.output=(Pr=function(p,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",p){case void 0:return Xn();case"save":u.save(b.filename);break;case"arraybuffer":return kA(Xn());case"blob":return is(Xn());case"bloburi":case"bloburl":if(xe.URL!==void 0&&typeof xe.URL.createObjectURL=="function")return xe.URL&&xe.URL.createObjectURL(is(Xn()))||void 0;lt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var AA="",iA=Xn();try{AA=B2(iA)}catch{AA=B2(unescape(encodeURIComponent(iA)))}return"data:application/pdf;filename="+b.filename+";base64,"+AA;case"pdfobjectnewwindow":if(Object.prototype.toString.call(xe)==="[object Window]"){var uA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",QA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(uA=b.pdfObjectUrl,QA="");var OA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+uA+'"'+QA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(b)+");<\/script></body></html>",ne=xe.open();return ne!==null&&ne.document.write(OA),ne}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(xe)==="[object Window]"){var le='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(b.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+b.filename+'" width="500px" height="400px" /></body></html>',Fe=xe.open();if(Fe!==null){Fe.document.write(le);var Te=this;Fe.document.documentElement.querySelector("#pdfViewer").onload=function(){Fe.document.title=b.filename,Fe.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Te.output("bloburl"))}}return Fe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(xe)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",b)+'"></iframe></body></html>',Ft=xe.open();if(Ft!==null&&(Ft.document.write(Ve),Ft.document.title=b.filename),Ft||typeof safari>"u")return Ft;break;case"datauri":case"dataurl":return xe.document.location.href=this.output("datauristring",b);default:return null}},Pr.foo=function(){try{return Pr.apply(this,arguments)}catch(AA){var p=AA.stack||"";~p.indexOf(" at ")&&(p=p.split(" at ")[1]);var b="Error in function "+p.split(`
`)[0].split("<")[0]+": "+AA.message;if(!xe.console)throw new Error(b);xe.console.error(b,AA),xe.alert&&alert(b)}},Pr.foo.bar=Pr,Pr.foo),un=function(p){return Array.isArray(fi)===!0&&fi.indexOf(p)>-1};switch(r){case"pt":ye=1;break;case"mm":ye=72/25.4;break;case"cm":ye=72/2.54;break;case"in":ye=72;break;case"px":ye=un("px_scaling")==1?.75:96/72;break;case"pc":case"em":ye=12;break;case"ex":ye=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);ye=r}var qt=null;_A(),hA();var li=u.__private__.getPageInfo=u.getPageInfo=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:pe[p].objId,pageNumber:p,pageContext:pe[p]}},y0=u.__private__.getPageInfoByObjId=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in pe)if(pe[b].objId===p)break;return li(b)},Xl=u.__private__.getCurrentPageInfo=u.getCurrentPageInfo=function(){return{objId:pe[Q].objId,pageNumber:Q,pageContext:pe[Q]}};u.addPage=function(){return jn.apply(this,arguments),this},u.setPage=function(){return Wn.apply(this,arguments),VA.call(this,SA[Q]),this},u.insertPage=function(p){return this.addPage(),this.movePage(Q,p),this},u.movePage=function(p,b){var AA,iA;if(p>b){AA=SA[p],iA=pe[p];for(var uA=p;uA>b;uA--)SA[uA]=SA[uA-1],pe[uA]=pe[uA-1];SA[b]=AA,pe[b]=iA,this.setPage(b)}else if(p<b){AA=SA[p],iA=pe[p];for(var QA=p;QA<b;QA++)SA[QA]=SA[QA+1],pe[QA]=pe[QA+1];SA[b]=AA,pe[b]=iA,this.setPage(b)}return this},u.deletePage=function(){return bn.apply(this,arguments),this},u.__private__.text=u.text=function(p,b,AA,iA,uA){var QA,OA,ne,le,Fe,Te,Ve,Ft,Kt,ht=(iA=iA||{}).scope||this;if(typeof p=="number"&&typeof b=="number"&&(typeof AA=="string"||Array.isArray(AA))){var zt=AA;AA=b,b=p,p=zt}if(arguments[3]instanceof we==0?(ne=arguments[4],le=arguments[5],tt(Ve=arguments[3])==="object"&&Ve!==null||(typeof ne=="string"&&(le=ne,ne=null),typeof Ve=="string"&&(le=Ve,Ve=null),typeof Ve=="number"&&(ne=Ve,Ve=null),iA={flags:Ve,angle:ne,align:le})):(E("The transform parameter of text() with a Matrix value"),Kt=uA),isNaN(b)||isNaN(AA)||p==null)throw new Error("Invalid arguments passed to jsPDF.text");if(p.length===0)return ht;var Gt,or="",Bi=typeof iA.lineHeightFactor=="number"?iA.lineHeightFactor:Ca,Sn=ht.internal.scaleFactor;function wi(ze){return ze=ze.split("	").join(Array(iA.TabLen||9).join(" ")),Re(ze,Ve)}function ao(ze){for(var ot,Tt=ze.concat(),Yt=[],xi=Tt.length;xi--;)typeof(ot=Tt.shift())=="string"?Yt.push(ot):Array.isArray(ze)&&(ot.length===1||ot[1]===void 0&&ot[2]===void 0)?Yt.push(ot[0]):Yt.push([ot[0],ot[1],ot[2]]);return Yt}function fs(ze,ot){var Tt;if(typeof ze=="string")Tt=ot(ze)[0];else if(Array.isArray(ze)){for(var Yt,xi,Bo=ze.concat(),us=[],O0=Bo.length;O0--;)typeof(Yt=Bo.shift())=="string"?us.push(ot(Yt)[0]):Array.isArray(Yt)&&typeof Yt[0]=="string"&&(xi=ot(Yt[0],Yt[1],Yt[2]),us.push([xi[0],xi[1],xi[2]]));Tt=us}return Tt}var Ri=!1,_a=!0;if(typeof p=="string")Ri=!0;else if(Array.isArray(p)){var Ua=p.concat();OA=[];for(var Mi,fr=Ua.length;fr--;)(typeof(Mi=Ua.shift())!="string"||Array.isArray(Mi)&&typeof Mi[0]!="string")&&(_a=!1);Ri=_a}if(Ri===!1)throw new Error('Type of text must be string or Array. "'+p+'" is not recognized.');typeof p=="string"&&(p=p.match(/[\r?\n]/)?p.split(/\r\n|\r|\n/g):[p]);var ba=LA/ht.internal.scaleFactor,Qa=ba*(Bi-1);switch(iA.baseline){case"bottom":AA-=Qa;break;case"top":AA+=ba-Qa;break;case"hanging":AA+=ba-2*Qa;break;case"middle":AA+=ba/2-Qa}if((Te=iA.maxWidth||0)>0&&(typeof p=="string"?p=ht.splitTextToSize(p,Te):Object.prototype.toString.call(p)==="[object Array]"&&(p=p.reduce(function(ze,ot){return ze.concat(ht.splitTextToSize(ot,Te))},[]))),QA={text:p,x:b,y:AA,options:iA,mutex:{pdfEscape:Re,activeFontKey:ie,fonts:Qe,activeFontSize:LA}},We.publish("preProcessText",QA),p=QA.text,ne=(iA=QA.options).angle,Kt instanceof we==0&&ne&&typeof ne=="number"){ne*=Math.PI/180,iA.rotationDirection===0&&(ne=-ne),L===I&&(ne=-ne);var so=Math.cos(ne),oo=Math.sin(ne);Kt=new we(so,oo,-oo,so,0,0)}else ne&&ne instanceof we&&(Kt=ne);L!==I||Kt||(Kt=Un),(Fe=iA.charSpace||hi)!==void 0&&(or+=R(P(Fe))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Ft=iA.horizontalScale)!==void 0&&(or+=R(100*Ft)+` Tz
`),iA.lang;var Tr=-1,vi=iA.renderingMode!==void 0?iA.renderingMode:iA.stroke,ls=ht.internal.getCurrentPageInfo().pageContext;switch(vi){case 0:case!1:case"fill":Tr=0;break;case 1:case!0:case"stroke":Tr=1;break;case 2:case"fillThenStroke":Tr=2;break;case 3:case"invisible":Tr=3;break;case 4:case"fillAndAddForClipping":Tr=4;break;case 5:case"strokeAndAddPathForClipping":Tr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Tr=6;break;case 7:case"addToPathForClipping":Tr=7}var I0=ls.usedRenderingMode!==void 0?ls.usedRenderingMode:-1;Tr!==-1?or+=Tr+` Tr
`:I0!==-1&&(or+=`0 Tr
`),Tr!==-1&&(ls.usedRenderingMode=Tr),le=iA.align||"left";var hn,Sa=LA*Bi,fo=ht.internal.pageSize.getWidth(),lo=Qe[ie];Fe=iA.charSpace||hi,Te=iA.maxWidth||0,Ve=Object.assign({autoencode:!0,noBOM:!0},iA.flags);var Ki=[],Ta=function(ze){return ht.getStringUnitWidth(ze,{font:lo,charSpace:Fe,fontSize:LA,doKerning:!1})*LA/Sn};if(Object.prototype.toString.call(p)==="[object Array]"){var Xr;OA=ao(p),le!=="left"&&(hn=OA.map(Ta));var qr,Gi=0;if(le==="right"){b-=hn[0],p=[],fr=OA.length;for(var mi=0;mi<fr;mi++)mi===0?(qr=ci(b),Xr=ui(AA)):(qr=P(Gi-hn[mi]),Xr=-Sa),p.push([OA[mi],qr,Xr]),Gi=hn[mi]}else if(le==="center"){b-=hn[0]/2,p=[],fr=OA.length;for(var Vi=0;Vi<fr;Vi++)Vi===0?(qr=ci(b),Xr=ui(AA)):(qr=P((Gi-hn[Vi])/2),Xr=-Sa),p.push([OA[Vi],qr,Xr]),Gi=hn[Vi]}else if(le==="left"){p=[],fr=OA.length;for(var co=0;co<fr;co++)p.push(OA[co])}else if(le==="justify"&&lo.encoding==="Identity-H"){p=[],fr=OA.length,Te=Te!==0?Te:fo;for(var cs=0,St=0;St<fr;St++)if(Xr=St===0?ui(AA):-Sa,qr=St===0?ci(b):cs,St<fr-1){var N0=P((Te-hn[St])/(OA[St].split(" ").length-1)),zn=OA[St].split(" ");p.push([zn[0]+" ",qr,Xr]),cs=0;for(var Yn=1;Yn<zn.length;Yn++){var uo=(Ta(zn[Yn-1]+" "+zn[Yn])-Ta(zn[Yn]))*Sn+N0;Yn==zn.length-1?p.push([zn[Yn],uo,0]):p.push([zn[Yn]+" ",uo,0]),cs-=uo}}else p.push([OA[St],qr,Xr]);p.push(["",cs,0])}else{if(le!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(p=[],fr=OA.length,Te=Te!==0?Te:fo,St=0;St<fr;St++){Xr=St===0?ui(AA):-Sa,qr=St===0?ci(b):0;var ho=OA[St].split(" ").length-1,go=ho>0?(Te-hn[St])/ho:0;St<fr-1?Ki.push(R(P(go))):Ki.push(0),p.push([OA[St],qr,Xr])}}}(typeof iA.R2L=="boolean"?iA.R2L:de)===!0&&(p=fs(p,function(ze,ot,Tt){return[ze.split("").reverse().join(""),ot,Tt]})),QA={text:p,x:b,y:AA,options:iA,mutex:{pdfEscape:Re,activeFontKey:ie,fonts:Qe,activeFontSize:LA}},We.publish("postProcessText",QA),p=QA.text,Gt=QA.mutex.isHex||!1;var po=Qe[ie].encoding;po!=="WinAnsiEncoding"&&po!=="StandardEncoding"||(p=fs(p,function(ze,ot,Tt){return[wi(ze),ot,Tt]})),OA=ao(p),p=[];for(var ji,Wi,Xi,La=Array.isArray(OA[0])?1:0,qi="",Ia=function(ze,ot,Tt){var Yt="";return Tt instanceof we?(Tt=typeof iA.angle=="number"?_n(Tt,new we(1,0,0,1,ze,ot)):_n(new we(1,0,0,1,ze,ot),Tt),L===I&&(Tt=_n(new we(1,0,0,-1,0,0),Tt)),Yt=Tt.join(" ")+` Tm
`):Yt=R(ze)+" "+R(ot)+` Td
`,Yt},dn=0;dn<OA.length;dn++){switch(qi="",La){case 1:Xi=(Gt?"<":"(")+OA[dn][0]+(Gt?">":")"),ji=parseFloat(OA[dn][1]),Wi=parseFloat(OA[dn][2]);break;case 0:Xi=(Gt?"<":"(")+OA[dn]+(Gt?">":")"),ji=ci(b),Wi=ui(AA)}Ki!==void 0&&Ki[dn]!==void 0&&(qi=Ki[dn]+` Tw
`),dn===0?p.push(qi+Ia(ji,Wi,Kt)+Xi):La===0?p.push(qi+Xi):La===1&&p.push(qi+Ia(ji,Wi,Kt)+Xi)}p=La===0?p.join(` Tj
T* `):p.join(` Tj
`),p+=` Tj
`;var Jn=`BT
/`;return Jn+=ie+" "+LA+` Tf
`,Jn+=R(LA*Bi)+` TL
`,Jn+=Fa+`
`,Jn+=or,Jn+=p,W(Jn+="ET"),g[ie]=!0,ht};var ql=u.__private__.clip=u.clip=function(p){return W(p==="evenodd"?"W*":"W"),this};u.clipEvenOdd=function(){return ql("evenodd")},u.__private__.discardPath=u.discardPath=function(){return W("n"),this};var qn=u.__private__.isValidStyle=function(p){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(p)!==-1&&(b=!0),b};u.__private__.setDefaultPathOperation=u.setDefaultPathOperation=function(p){return qn(p)&&(f=p),this};var E0=u.__private__.getStyle=u.getStyle=function(p){var b=f;switch(p){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=p}return b},_0=u.close=function(){return W("h"),this};u.stroke=function(){return W("S"),this},u.fill=function(p){return as("f",p),this},u.fillEvenOdd=function(p){return as("f*",p),this},u.fillStroke=function(p){return as("B",p),this},u.fillStrokeEvenOdd=function(p){return as("B*",p),this};var as=function(p,b){tt(b)==="object"?Yl(b,p):W(p)},xa=function(p){p===null||L===I&&p===void 0||(p=E0(p),W(p))};function zl(p,b,AA,iA,uA){var QA=new Is(b||this.boundingBox,AA||this.xStep,iA||this.yStep,this.gState,uA||this.matrix);QA.stream=this.stream;var OA=p+"$$"+this.cloneIndex+++"$$";return xr(OA,QA),QA}var Yl=function(p,b){var AA=Je[p.key],iA=ge[AA];if(iA instanceof Pa)W("q"),W(Jl(b)),iA.gState&&u.setGState(iA.gState),W(p.matrix.toString()+" cm"),W("/"+AA+" sh"),W("Q");else if(iA instanceof Is){var uA=new we(1,0,0,-1,0,Ea());p.matrix&&(uA=uA.multiply(p.matrix||Un),AA=zl.call(iA,p.key,p.boundingBox,p.xStep,p.yStep,uA).id),W("q"),W("/Pattern cs"),W("/"+AA+" scn"),iA.gState&&u.setGState(iA.gState),W(b),W("Q")}},Jl=function(p){switch(p){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Zs=u.moveTo=function(p,b){return W(R(P(p))+" "+R(eA(b))+" m"),this},U0=u.lineTo=function(p,b){return W(R(P(p))+" "+R(eA(b))+" l"),this},Qn=u.curveTo=function(p,b,AA,iA,uA,QA){return W([R(P(p)),R(eA(b)),R(P(AA)),R(eA(iA)),R(P(uA)),R(eA(QA)),"c"].join(" ")),this};u.__private__.line=u.line=function(p,b,AA,iA,uA){if(isNaN(p)||isNaN(b)||isNaN(AA)||isNaN(iA)||!qn(uA))throw new Error("Invalid arguments passed to jsPDF.line");return L===_?this.lines([[AA-p,iA-b]],p,b,[1,1],uA||"S"):this.lines([[AA-p,iA-b]],p,b,[1,1]).stroke()},u.__private__.lines=u.lines=function(p,b,AA,iA,uA,QA){var OA,ne,le,Fe,Te,Ve,Ft,Kt,ht,zt,Gt,or;if(typeof p=="number"&&(or=AA,AA=b,b=p,p=or),iA=iA||[1,1],QA=QA||!1,isNaN(b)||isNaN(AA)||!Array.isArray(p)||!Array.isArray(iA)||!qn(uA)||typeof QA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Zs(b,AA),OA=iA[0],ne=iA[1],Fe=p.length,zt=b,Gt=AA,le=0;le<Fe;le++)(Te=p[le]).length===2?(zt=Te[0]*OA+zt,Gt=Te[1]*ne+Gt,U0(zt,Gt)):(Ve=Te[0]*OA+zt,Ft=Te[1]*ne+Gt,Kt=Te[2]*OA+zt,ht=Te[3]*ne+Gt,zt=Te[4]*OA+zt,Gt=Te[5]*ne+Gt,Qn(Ve,Ft,Kt,ht,zt,Gt));return QA&&_0(),xa(uA),this},u.path=function(p){for(var b=0;b<p.length;b++){var AA=p[b],iA=AA.c;switch(AA.op){case"m":Zs(iA[0],iA[1]);break;case"l":U0(iA[0],iA[1]);break;case"c":Qn.apply(this,iA);break;case"h":_0()}}return this},u.__private__.rect=u.rect=function(p,b,AA,iA,uA){if(isNaN(p)||isNaN(b)||isNaN(AA)||isNaN(iA)||!qn(uA))throw new Error("Invalid arguments passed to jsPDF.rect");return L===_&&(iA=-iA),W([R(P(p)),R(eA(b)),R(P(AA)),R(P(iA)),"re"].join(" ")),xa(uA),this},u.__private__.triangle=u.triangle=function(p,b,AA,iA,uA,QA,OA){if(isNaN(p)||isNaN(b)||isNaN(AA)||isNaN(iA)||isNaN(uA)||isNaN(QA)||!qn(OA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[AA-p,iA-b],[uA-AA,QA-iA],[p-uA,b-QA]],p,b,[1,1],OA,!0),this},u.__private__.roundedRect=u.roundedRect=function(p,b,AA,iA,uA,QA,OA){if(isNaN(p)||isNaN(b)||isNaN(AA)||isNaN(iA)||isNaN(uA)||isNaN(QA)||!qn(OA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ne=4/3*(Math.SQRT2-1);return uA=Math.min(uA,.5*AA),QA=Math.min(QA,.5*iA),this.lines([[AA-2*uA,0],[uA*ne,0,uA,QA-QA*ne,uA,QA],[0,iA-2*QA],[0,QA*ne,-uA*ne,QA,-uA,QA],[2*uA-AA,0],[-uA*ne,0,-uA,-QA*ne,-uA,-QA],[0,2*QA-iA],[0,-QA*ne,uA*ne,-QA,uA,-QA]],p+uA,b,[1,1],OA,!0),this},u.__private__.ellipse=u.ellipse=function(p,b,AA,iA,uA){if(isNaN(p)||isNaN(b)||isNaN(AA)||isNaN(iA)||!qn(uA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var QA=4/3*(Math.SQRT2-1)*AA,OA=4/3*(Math.SQRT2-1)*iA;return Zs(p+AA,b),Qn(p+AA,b-OA,p+QA,b-iA,p,b-iA),Qn(p-QA,b-iA,p-AA,b-OA,p-AA,b),Qn(p-AA,b+OA,p-QA,b+iA,p,b+iA),Qn(p+QA,b+iA,p+AA,b+OA,p+AA,b),xa(uA),this},u.__private__.circle=u.circle=function(p,b,AA,iA){if(isNaN(p)||isNaN(b)||isNaN(AA)||!qn(iA))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(p,b,AA,AA,iA)},u.setFont=function(p,b,AA){return AA&&(b=M(b,AA)),ie=Pi(p,b,{disableWarning:!1}),this};var Zl=u.__private__.getFont=u.getFont=function(){return Qe[Pi.apply(u,arguments)]};u.__private__.getFontList=u.getFontList=function(){var p,b,AA={};for(p in Se)if(Se.hasOwnProperty(p))for(b in AA[p]=[],Se[p])Se[p].hasOwnProperty(b)&&AA[p].push(b);return AA},u.addFont=function(p,b,AA,iA,uA){var QA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&QA.indexOf(arguments[3])!==-1?uA=arguments[3]:arguments[3]&&QA.indexOf(arguments[3])==-1&&(AA=M(AA,iA)),it.call(this,p,b,AA,uA=uA||"Identity-H")};var Ca,$s=A.lineWidth||.200025,$l=u.__private__.getLineWidth=u.getLineWidth=function(){return $s},Ee=u.__private__.setLineWidth=u.setLineWidth=function(p){return $s=p,W(R(P(p))+" w"),this};u.__private__.setLineDash=he.API.setLineDash=he.API.setLineDashPattern=function(p,b){if(p=p||[],b=b||0,isNaN(b)||!Array.isArray(p))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return p=p.map(function(AA){return R(P(AA))}).join(" "),b=R(P(b)),W("["+p+"] "+b+" d"),this};var Ac=u.__private__.getLineHeight=u.getLineHeight=function(){return LA*Ca};u.__private__.getLineHeight=u.getLineHeight=function(){return LA*Ca};var ec=u.__private__.setLineHeightFactor=u.setLineHeightFactor=function(p){return typeof(p=p||1.15)=="number"&&(Ca=p),this},tc=u.__private__.getLineHeightFactor=u.getLineHeightFactor=function(){return Ca};ec(A.lineHeight);var ci=u.__private__.getHorizontalCoordinate=function(p){return P(p)},ui=u.__private__.getVerticalCoordinate=function(p){return L===I?p:pe[Q].mediaBox.topRightY-pe[Q].mediaBox.bottomLeftY-P(p)},rc=u.__private__.getHorizontalCoordinateString=u.getHorizontalCoordinateString=function(p){return R(ci(p))},nc=u.__private__.getVerticalCoordinateString=u.getVerticalCoordinateString=function(p){return R(ui(p))},ss=A.strokeColor||"0 G";u.__private__.getStrokeColor=u.getDrawColor=function(){return Z(ss)},u.__private__.setStrokeColor=u.setDrawColor=function(p,b,AA,iA){return ss=tA({ch1:p,ch2:b,ch3:AA,ch4:iA,pdfColorType:"draw",precision:2}),W(ss),this};var Ao=A.fillColor||"0 g";u.__private__.getFillColor=u.getFillColor=function(){return Z(Ao)},u.__private__.setFillColor=u.setFillColor=function(p,b,AA,iA){return Ao=tA({ch1:p,ch2:b,ch3:AA,ch4:iA,pdfColorType:"fill",precision:2}),W(Ao),this};var Fa=A.textColor||"0 g",ic=u.__private__.getTextColor=u.getTextColor=function(){return Z(Fa)};u.__private__.setTextColor=u.setTextColor=function(p,b,AA,iA){return Fa=tA({ch1:p,ch2:b,ch3:AA,ch4:iA,pdfColorType:"text",precision:3}),this};var hi=A.charSpace,ac=u.__private__.getCharSpace=u.getCharSpace=function(){return parseFloat(hi||0)};u.__private__.setCharSpace=u.setCharSpace=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return hi=p,this};var eo=0;u.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},u.__private__.setLineCap=u.setLineCap=function(p){var b=u.CapJoinStyles[p];if(b===void 0)throw new Error("Line cap style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return eo=b,W(b+" J"),this};var to=0;u.__private__.setLineJoin=u.setLineJoin=function(p){var b=u.CapJoinStyles[p];if(b===void 0)throw new Error("Line join style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return to=b,W(b+" j"),this},u.__private__.setLineMiterLimit=u.__private__.setMiterLimit=u.setLineMiterLimit=u.setMiterLimit=function(p){if(p=p||0,isNaN(p))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return W(R(P(p))+" M"),this},u.GState=fl,u.setGState=function(p){(p=typeof p=="string"?Be[Ce[p]]:b0(null,p)).equals(ut)||(W("/"+p.id+" gs"),ut=p)};var b0=function(p,b){if(!p||!Ce[p]){var AA=!1;for(var iA in Be)if(Be.hasOwnProperty(iA)&&Be[iA].equals(b)){AA=!0;break}if(AA)b=Be[iA];else{var uA="GS"+(Object.keys(Be).length+1).toString(10);Be[uA]=b,b.id=uA}return p&&(Ce[p]=b.id),We.publish("addGState",b),b}};u.addGState=function(p,b){return b0(p,b),this},u.saveGraphicsState=function(){return W("q"),ct.push({key:ie,size:LA,color:Fa}),this},u.restoreGraphicsState=function(){W("Q");var p=ct.pop();return ie=p.key,LA=p.size,Fa=p.color,ut=null,this},u.setCurrentTransformationMatrix=function(p){return W(p.toString()+" cm"),this},u.comment=function(p){return W("#"+p),this};var di=function(p,b){var AA=p||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return AA},set:function(QA){isNaN(QA)||(AA=parseFloat(QA))}});var iA=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return iA},set:function(QA){isNaN(QA)||(iA=parseFloat(QA))}});var uA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return uA},set:function(QA){uA=QA.toString()}}),this},ro=function(p,b,AA,iA){di.call(this,p,b),this.type="rect";var uA=AA||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return uA},set:function(OA){isNaN(OA)||(uA=parseFloat(OA))}});var QA=iA||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return QA},set:function(OA){isNaN(OA)||(QA=parseFloat(OA))}}),this},os=function(){this.page=De,this.currentPage=Q,this.pages=SA.slice(0),this.pagesContext=pe.slice(0),this.x=oe,this.y=vt,this.matrix=Pe,this.width=io(Q),this.height=S0(Q),this.outputDestination=GA,this.id="",this.objectNumber=-1};os.prototype.restore=function(){De=this.page,Q=this.currentPage,pe=this.pagesContext,SA=this.pages,oe=this.x,vt=this.y,Pe=this.matrix,Q0(Q,this.width),gi(Q,this.height),GA=this.outputDestination};var no=function(p,b,AA,iA,uA){ln.push(new os),De=Q=0,SA=[],oe=p,vt=b,Pe=uA,yt([AA,iA])};for(var ya in u.beginFormObject=function(p,b,AA,iA,uA){return no(p,b,AA,iA,uA),this},u.endFormObject=function(p){return(function(b){if(En[b])ln.pop().restore();else{var AA=new os,iA="Xo"+(Object.keys(tr).length+1).toString(10);AA.id=iA,En[b]=iA,tr[iA]=AA,We.publish("addFormObject",AA),ln.pop().restore()}})(p),this},u.doFormObject=function(p,b){var AA=tr[En[p]];return W("q"),W(b.toString()+" cm"),W("/"+AA.id+" Do"),W("Q"),this},u.getFormObject=function(p){var b=tr[En[p]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},u.save=function(p,b){return p=p||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(Ha(is(Xn()),p),typeof Ha.unload=="function"&&xe.setTimeout&&setTimeout(Ha.unload,911),this):new Promise(function(AA,iA){try{var uA=Ha(is(Xn()),p);typeof Ha.unload=="function"&&xe.setTimeout&&setTimeout(Ha.unload,911),AA(uA)}catch(QA){iA(QA.message)}})},he.API)he.API.hasOwnProperty(ya)&&(ya==="events"&&he.API.events.length?(function(p,b){var AA,iA,uA;for(uA=b.length-1;uA!==-1;uA--)AA=b[uA][0],iA=b[uA][1],p.subscribe.apply(p,[AA].concat(typeof iA=="function"?[iA]:iA))})(We,he.API.events):u[ya]=he.API[ya]);function io(p){return pe[p].mediaBox.topRightX-pe[p].mediaBox.bottomLeftX}function Q0(p,b){pe[p].mediaBox.topRightX=b+pe[p].mediaBox.bottomLeftX}function S0(p){return pe[p].mediaBox.topRightY-pe[p].mediaBox.bottomLeftY}function gi(p,b){pe[p].mediaBox.topRightY=b+pe[p].mediaBox.bottomLeftY}var pi=u.getPageWidth=function(p){return io(p=p||Q)/ye},T0=u.setPageWidth=function(p,b){Q0(p,b*ye)},Ea=u.getPageHeight=function(p){return S0(p=p||Q)/ye},L0=u.setPageHeight=function(p,b){gi(p,b*ye)};return u.internal={pdfEscape:Re,getStyle:E0,getFont:Zl,getFontSize:ZA,getCharSpace:ac,getTextColor:ic,getLineHeight:Ac,getLineHeightFactor:tc,getLineWidth:$l,write:RA,getHorizontalCoordinate:ci,getVerticalCoordinate:ui,getCoordinateString:rc,getVerticalCoordinateString:nc,collections:{},newObject:mt,newAdditionalObject:J,newObjectDeferred:Pt,newObjectDeferredBegin:O,getFilters:pA,putStream:yA,events:We,scaleFactor:ye,pageSize:{getWidth:function(){return pi(Q)},setWidth:function(p){T0(Q,p)},getHeight:function(){return Ea(Q)},setHeight:function(p){L0(Q,p)}},encryptionOptions:l,encryption:qt,getEncryptor:function(p){return l!==null?qt.encryptor(p,0):function(b){return b}},output:F0,getNumberOfPages:cn,get pages(){return SA},out:W,f2:y,f3:T,getPageInfo:li,getPageInfoByObjId:y0,getCurrentPageInfo:Xl,getPDFVersion:B,Point:di,Rectangle:ro,Matrix:we,hasHotfix:un},Object.defineProperty(u.internal.pageSize,"width",{get:function(){return pi(Q)},set:function(p){T0(Q,p)},enumerable:!0,configurable:!0}),Object.defineProperty(u.internal.pageSize,"height",{get:function(){return Ea(Q)},set:function(p){L0(Q,p)},enumerable:!0,configurable:!0}),(function(p){for(var b=0,AA=te.length;b<AA;b++){var iA=it.call(this,p[b][0],p[b][1],p[b][2],te[b][3],!0);d===!1&&(g[iA]=!0);var uA=p[b][0].split("-");ve({id:iA,fontName:uA[0],fontStyle:uA[1]||""})}We.publish("addFonts",{fonts:Qe,dictionary:Se})}).call(u,te),ie="F1",jn(n,t),We.publish("initialized"),u}Qs.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},Qs.prototype.toHexString=function(A){return A.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Qs.prototype.hexToBytes=function(A){for(var e=[],t=0;t<A.length;t+=2)e.push(String.fromCharCode(parseInt(A.substr(t,2),16)));return e.join("")},Qs.prototype.processOwnerPassword=function(A,e){return th(eh(e).substr(0,5),A)},Qs.prototype.encryptor=function(A,e){var t=eh(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return th(t,r)}},fl.prototype.equals=function(A){var e,t="id,objectNumber,equals";if(!A||tt(A)!==tt(this))return!1;var r=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!A.hasOwnProperty(e)||this[e]!==A[e])return!1;r++}for(e in A)A.hasOwnProperty(e)&&t.indexOf(e)<0&&r--;return r===0},he.API={events:[]},he.version="3.0.4";var Ut=he.API,mh=1,Za=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Cs=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ue=function(A){return A.toFixed(2)},ta=function(A){return A.toFixed(5)};Ut.__acroform__={};var Wr=function(A,e){A.prototype=Object.create(e.prototype),A.prototype.constructor=A},x2=function(A){return A*mh},ei=function(A){var e=new uB,t=re.internal.getHeight(A)||0,r=re.internal.getWidth(A)||0;return e.BBox=[0,0,Number(Ue(r)),Number(Ue(t))],e},Ty=Ut.__acroform__.setBit=function(A,e){if(A=A||0,e=e||0,isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<e},Ly=Ut.__acroform__.clearBit=function(A,e){if(A=A||0,e=e||0,isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<e)},Iy=Ut.__acroform__.getBit=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<e?1:0},Dt=Ut.__acroform__.getBitForPdf=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Iy(A,e-1)},Ht=Ut.__acroform__.setBitForPdf=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ty(A,e-1)},kt=Ut.__acroform__.clearBitForPdf=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ly(A,e-1)},Ny=Ut.__acroform__.calculateCoordinates=function(A,e){var t=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,n=A[0],i=A[1],a=A[2],s=A[3],o={};return o.lowerLeft_X=t(n)||0,o.lowerLeft_Y=r(i+s)||0,o.upperRight_X=t(n+a)||0,o.upperRight_Y=r(i)||0,[Number(Ue(o.lowerLeft_X)),Number(Ue(o.lowerLeft_Y)),Number(Ue(o.upperRight_X)),Number(Ue(o.upperRight_Y))]},Oy=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var e=[],t=A._V||A.DV,r=rh(A,t),n=A.scope.internal.getFont(A.fontName,A.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(A.scope.__private__.encodeColorString(A.color)),e.push("/"+n+" "+Ue(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=ei(A);return i.scope=A.scope,i.stream=e.join(`
`),i}},rh=function(A,e){var t=A.fontSize===0?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");n=A.multiline?n.map(function(y){return y.split(`
`)}):n.map(function(y){return[y]});var i=t,a=re.internal.getHeight(A)||0;a=a<0?-a:a;var s=re.internal.getWidth(A)||0;s=s<0?-s:s;var o=function(y,T,P){if(y+1<n.length){var eA=T+" "+n[y+1][0];return Qf(eA,A,P).width<=s-4}return!1};i++;A:for(;i>0;){e="",i--;var f,l,d=Qf("3",A,i).height,g=A.multiline?a-i:(a-d)/2,u=g+=2,v=0,B=0,x=0;if(i<=0){e=`(...) Tj
`,e+="% Width of Text: "+Qf(e,A,i=12).width+", FieldWidth:"+s+`
`;break}for(var F="",_=0,I=0;I<n.length;I++)if(n.hasOwnProperty(I)){var L=!1;if(n[I].length!==1&&x!==n[I].length-1){if((d+2)*(_+2)+2>a)continue A;F+=n[I][x],L=!0,B=I,I--}else{F=(F+=n[I][x]+" ").substr(F.length-1)==" "?F.substr(0,F.length-1):F;var q=parseInt(I),rA=o(q,F,i),M=I>=n.length-1;if(rA&&!M){F+=" ",x=0;continue}if(rA||M){if(M)B=q;else if(A.multiline&&(d+2)*(_+2)+2>a)continue A}else{if(!A.multiline||(d+2)*(_+2)+2>a)continue A;B=q}}for(var R="",E=v;E<=B;E++){var X=n[E];if(A.multiline){if(E===B){R+=X[x]+" ",x=(x+1)%X.length;continue}if(E===v){R+=X[X.length-1]+" ";continue}}R+=X[0]+" "}switch(R=R.substr(R.length-1)==" "?R.substr(0,R.length-1):R,l=Qf(R,A,i).width,A.textAlign){case"right":f=s-l-2;break;case"center":f=(s-l)/2;break;default:f=2}e+=Ue(f)+" "+Ue(u)+` Td
`,e+="("+Za(R)+`) Tj
`,e+=-Ue(f)+` 0 Td
`,u=-(i+2),l=0,v=L?B:B+1,_++,F=""}break}return r.text=e,r.fontSize=i,r},Qf=function(A,e,t){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),n=e.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},Dy={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Hy=function(A,e){var t={type:"reference",object:A};e.internal.getPageInfo(A.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&e.internal.getPageInfo(A.page).pageContext.annotations.push(t)},ky=function(A,e){if(e.scope=A,A.internal!==void 0&&(A.internal.acroformPlugin===void 0||A.internal.acroformPlugin.isInitialized===!1)){if(Gn.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(Dy)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");mh=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new hB,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(A)}),A.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&Hy(i,t)}})(A)}),A.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(A)}),A.internal.events.subscribe("postPutPages",function(t){(function(r,n){var i=!r;for(var a 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(a)){var s=r[a],o=[],f=s.Rect;if(s.Rect&&(s.Rect=Ny(s.Rect,n)),n.internal.newObjectDeferredBegin(s.objId,!0),s.DA=re.createDefaultAppearanceStream(s),tt(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(o=s.getKeyValueListForStream()),s.Rect=f,s.hasAppearanceStream&&!s.appearanceStreamContent){var l=Oy(s);o.push({key:"AP",value:"<</N "+l+">>"}),n.internal.acroformPlugin.xForms.push(l)}if(s.appearanceStreamContent){var d="";for(var g in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(g)){var u=s.appearanceStreamContent[g];if(d+="/"+g+" ",d+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var a in u)if(u.hasOwnProperty(a)){var v=u[a];typeof v=="function"&&(v=v.call(n,s)),d+="/"+a+" "+v+" ",n.internal.acroformPlugin.xForms.indexOf(v)>=0||n.internal.acroformPlugin.xForms.push(v)}}else typeof(v=u)=="function"&&(v=v.call(n,s)),d+="/"+a+" "+v,n.internal.acroformPlugin.xForms.indexOf(v)>=0||n.internal.acroformPlugin.xForms.push(v);d+=">>"}o.push({key:"AP",value:`<<
`+d+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:s.objId}),n.internal.out("endobj")}i&&(function(B,x){for(var F in B)if(B.hasOwnProperty(F)){var _=F,I=B[F];x.internal.newObjectDeferredBegin(I.objId,!0),tt(I)==="object"&&typeof I.putStream=="function"&&I.putStream(),delete B[_]}})(n.internal.acroformPlugin.xForms,n)})(t,A)}),A.internal.acroformPlugin.isInitialized=!0}},cB=Ut.__acroform__.arrayToPdfArray=function(A,e,t){var r=function(a){return a};if(Array.isArray(A)){for(var n="[",i=0;i<A.length;i++)switch(i!==0&&(n+=" "),tt(A[i])){case"boolean":case"number":case"object":n+=A[i].toString();break;case"string":A[i].substr(0,1)!=="/"?(e!==void 0&&t&&(r=t.internal.getEncryptor(e)),n+="("+Za(r(A[i].toString()))+")"):n+=A[i].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},cu=function(A,e,t){var r=function(n){return n};return e!==void 0&&t&&(r=t.internal.getEncryptor(e)),(A=A||"").toString(),"("+Za(r(A))+")"},ni=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(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ni.prototype.toString=function(){return this.objId+" 0 R"},ni.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},ni.prototype.getKeyValueListForStream=function(){var A=[],e=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var r=e[t],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:cB(n,this.objId,this.scope)}):n instanceof ni?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&A.push({key:r,value:n}))}return A};var uB=function(){ni.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 A,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){A=t.trim()},get:function(){return A||null}})};Wr(uB,ni);var hB=function(){ni.call(this);var A,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Za(t(A))+")"}},set:function(t){A=t}})};Wr(hB,ni);var Gn=function A(){ni.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(F){if(isNaN(F))throw new Error('Invalid value "'+F+'" for attribute F supplied.');e=F}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Dt(e,3)},set:function(F){F?this.F=Ht(e,3):this.F=kt(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(F){if(isNaN(F))throw new Error('Invalid value "'+F+'" for attribute Ff supplied.');t=F}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(F){r=F!==void 0?F:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(F){r[0]=F}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(F){r[1]=F}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(F){r[2]=F}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(F){r[3]=F}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(F){switch(F){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=F;break;default:throw new Error('Invalid value "'+F+'" 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 ll)return;i="FieldObject"+A.FieldNum++}var F=function(_){return _};return this.scope&&(F=this.scope.internal.getEncryptor(this.objId)),"("+Za(F(i))+")"},set:function(F){i=F.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(F){i=F}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(F){a=F}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(F){s=F}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(F){o=F}});var f=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return f===void 0?50/mh:f},set:function(F){f=F}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(F){l=F}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof ll||this instanceof Va))return cu(d,this.objId,this.scope)},set:function(F){F=F.toString(),d=F}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof nr==0?cu(g,this.objId,this.scope):g},set:function(F){F=F.toString(),g=this instanceof nr==0?F.substr(0,1)==="("?Cs(F.substr(1,F.length-2)):Cs(F):F}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof nr==1?Cs(g.substr(1,g.length-1)):g},set:function(F){F=F.toString(),g=this instanceof nr==1?"/"+F:F}});var u=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(u)return u},set:function(F){this.V=F}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof nr==0?cu(u,this.objId,this.scope):u},set:function(F){F=F.toString(),u=this instanceof nr==0?F.substr(0,1)==="("?Cs(F.substr(1,F.length-2)):Cs(F):F}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof nr==1?Cs(u.substr(1,u.length-1)):u},set:function(F){F=F.toString(),u=this instanceof nr==1?"/"+F:F}}),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 v,B=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return B},set:function(F){F=!!F,B=F}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(v)return v},set:function(F){v=F}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,1)},set:function(F){F?this.Ff=Ht(this.Ff,1):this.Ff=kt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,2)},set:function(F){F?this.Ff=Ht(this.Ff,2):this.Ff=kt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,3)},set:function(F){F?this.Ff=Ht(this.Ff,3):this.Ff=kt(this.Ff,3)}});var x=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(x!==null)return x},set:function(F){if([0,1,2].indexOf(F)===-1)throw new Error('Invalid value "'+F+'" for attribute Q supplied.');x=F}}),Object.defineProperty(this,"textAlign",{get:function(){var F;switch(x){case 0:default:F="left";break;case 1:F="center";break;case 2:F="right"}return F},configurable:!0,enumerable:!0,set:function(F){switch(F){case"right":case 2:x=2;break;case"center":case 1:x=1;break;default:x=0}}})};Wr(Gn,ni);var Ds=function(){Gn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return cB(e,this.objId,this.scope)},set:function(t){var r,n;n=[],typeof(r=t)=="string"&&(n=(function(i,a,s){s||(s=1);for(var o,f=[];o=a.exec(i);)f.push(o[s]);return f})(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,18)},set:function(t){t?this.Ff=Ht(this.Ff,18):this.Ff=kt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=Ht(this.Ff,19):this.Ff=kt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,20)},set:function(t){t?(this.Ff=Ht(this.Ff,20),e.sort()):this.Ff=kt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,22)},set:function(t){t?this.Ff=Ht(this.Ff,22):this.Ff=kt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,23)},set:function(t){t?this.Ff=Ht(this.Ff,23):this.Ff=kt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,27)},set:function(t){t?this.Ff=Ht(this.Ff,27):this.Ff=kt(this.Ff,27)}}),this.hasAppearanceStream=!1};Wr(Ds,Gn);var Hs=function(){Ds.call(this),this.fontName="helvetica",this.combo=!1};Wr(Hs,Ds);var ks=function(){Hs.call(this),this.combo=!0};Wr(ks,Hs);var Xf=function(){ks.call(this),this.edit=!0};Wr(Xf,ks);var nr=function(){Gn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,15)},set:function(t){t?this.Ff=Ht(this.Ff,15):this.Ff=kt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,16)},set:function(t){t?this.Ff=Ht(this.Ff,16):this.Ff=kt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,17)},set:function(t){t?this.Ff=Ht(this.Ff,17):this.Ff=kt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,26)},set:function(t){t?this.Ff=Ht(this.Ff,26):this.Ff=kt(this.Ff,26)}});var A,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(i){return i};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,n=[];for(r in n.push("<<"),e)n.push("/"+r+" ("+Za(t(e[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(t){tt(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(t){A="/"+t}})};Wr(nr,Gn);var qf=function(){nr.call(this),this.pushButton=!0};Wr(qf,nr);var Ps=function(){nr.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(e){A=e!==void 0?e:[]}})};Wr(Ps,nr);var ll=function(){var A,e;Gn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(n){A=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(n){e=n}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),r)a.push("/"+i+" ("+Za(n(r[i]))+")");return a.push(">>"),a.join(`
`)},set:function(n){tt(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 t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=re.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Wr(ll,Gn),Ps.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=A.createAppearanceStream(t.optionName),t.caption=A.getCA()}},Ps.prototype.createOption=function(A){var e=new ll;return e.Parent=this,e.optionName=A,this.Kids.push(e),Py.call(this.scope,e),e};var zf=function(){nr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=re.CheckBox.createAppearanceStream()};Wr(zf,nr);var Va=function(){Gn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,13)},set:function(e){e?this.Ff=Ht(this.Ff,13):this.Ff=kt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,21)},set:function(e){e?this.Ff=Ht(this.Ff,21):this.Ff=kt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,23)},set:function(e){e?this.Ff=Ht(this.Ff,23):this.Ff=kt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,24)},set:function(e){e?this.Ff=Ht(this.Ff,24):this.Ff=kt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,25)},set:function(e){e?this.Ff=Ht(this.Ff,25):this.Ff=kt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,26)},set:function(e){e?this.Ff=Ht(this.Ff,26):this.Ff=kt(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(e){Number.isInteger(e)&&(A=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Wr(Va,Gn);var Yf=function(){Va.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Dt(this.Ff,14)},set:function(A){A?this.Ff=Ht(this.Ff,14):this.Ff=kt(this.Ff,14)}}),this.password=!0};Wr(Yf,Va);var re={CheckBox:{createAppearanceStream:function(){return{N:{On:re.CheckBox.YesNormal},D:{On:re.CheckBox.YesPushDown,Off:re.CheckBox.OffPushDown}}},YesPushDown:function(A){var e=ei(A);e.scope=A.scope;var t=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),i=rh(A,A.caption);return t.push("0.749023 g"),t.push("0 0 "+Ue(re.internal.getWidth(A))+" "+Ue(re.internal.getHeight(A))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+Ue(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
`),e},YesNormal:function(A){var e=ei(A);e.scope=A.scope;var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],i=re.internal.getHeight(A),a=re.internal.getWidth(A),s=rh(A,A.caption);return n.push("1 g"),n.push("0 0 "+Ue(a)+" "+Ue(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+Ue(a-1)+" "+Ue(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+Ue(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),e.stream=n.join(`
`),e},OffPushDown:function(A){var e=ei(A);e.scope=A.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Ue(re.internal.getWidth(A))+" "+Ue(re.internal.getHeight(A))+" re"),t.push("f"),e.stream=t.join(`
`),e}},RadioButton:{Circle:{createAppearanceStream:function(A){var e={D:{Off:re.RadioButton.Circle.OffPushDown},N:{}};return e.N[A]=re.RadioButton.Circle.YesNormal,e.D[A]=re.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(A){var e=ei(A);e.scope=A.scope;var t=[],r=re.internal.getWidth(A)<=re.internal.getHeight(A)?re.internal.getWidth(A)/4:re.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=re.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+ta(re.internal.getWidth(A)/2)+" "+ta(re.internal.getHeight(A)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),t.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),t.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),t.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e},YesPushDown:function(A){var e=ei(A);e.scope=A.scope;var t=[],r=re.internal.getWidth(A)<=re.internal.getHeight(A)?re.internal.getWidth(A)/4:re.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*re.internal.Bezier_C).toFixed(5)),a=Number((r*re.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ta(re.internal.getWidth(A)/2)+" "+ta(re.internal.getHeight(A)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+ta(re.internal.getWidth(A)/2)+" "+ta(re.internal.getHeight(A)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),t.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),t.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),t.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e},OffPushDown:function(A){var e=ei(A);e.scope=A.scope;var t=[],r=re.internal.getWidth(A)<=re.internal.getHeight(A)?re.internal.getWidth(A)/4:re.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*re.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ta(re.internal.getWidth(A)/2)+" "+ta(re.internal.getHeight(A)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e}},Cross:{createAppearanceStream:function(A){var e={D:{Off:re.RadioButton.Cross.OffPushDown},N:{}};return e.N[A]=re.RadioButton.Cross.YesNormal,e.D[A]=re.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(A){var e=ei(A);e.scope=A.scope;var t=[],r=re.internal.calculateCross(A);return t.push("q"),t.push("1 1 "+Ue(re.internal.getWidth(A)-2)+" "+Ue(re.internal.getHeight(A)-2)+" re"),t.push("W"),t.push("n"),t.push(Ue(r.x1.x)+" "+Ue(r.x1.y)+" m"),t.push(Ue(r.x2.x)+" "+Ue(r.x2.y)+" l"),t.push(Ue(r.x4.x)+" "+Ue(r.x4.y)+" m"),t.push(Ue(r.x3.x)+" "+Ue(r.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
`),e},YesPushDown:function(A){var e=ei(A);e.scope=A.scope;var t=re.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ue(re.internal.getWidth(A))+" "+Ue(re.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ue(re.internal.getWidth(A)-2)+" "+Ue(re.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(Ue(t.x1.x)+" "+Ue(t.x1.y)+" m"),r.push(Ue(t.x2.x)+" "+Ue(t.x2.y)+" l"),r.push(Ue(t.x4.x)+" "+Ue(t.x4.y)+" m"),r.push(Ue(t.x3.x)+" "+Ue(t.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
`),e},OffPushDown:function(A){var e=ei(A);e.scope=A.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Ue(re.internal.getWidth(A))+" "+Ue(re.internal.getHeight(A))+" re"),t.push("f"),e.stream=t.join(`
`),e}}},createDefaultAppearanceStream:function(A){var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,t=A.scope.__private__.encodeColorString(A.color);return"/"+e+" "+A.fontSize+" Tf "+t}};re.internal={Bezier_C:.551915024494,calculateCross:function(A){var e=re.internal.getWidth(A),t=re.internal.getHeight(A),r=Math.min(e,t);return{x1:{x:(e-r)/2,y:(t-r)/2+r},x2:{x:(e-r)/2+r,y:(t-r)/2},x3:{x:(e-r)/2,y:(t-r)/2},x4:{x:(e-r)/2+r,y:(t-r)/2+r}}}},re.internal.getWidth=function(A){var e=0;return tt(A)==="object"&&(e=x2(A.Rect[2])),e},re.internal.getHeight=function(A){var e=0;return tt(A)==="object"&&(e=x2(A.Rect[3])),e};var Py=Ut.addField=function(A){if(ky(this,A),!(A instanceof Gn))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=A).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};Ut.AcroFormChoiceField=Ds,Ut.AcroFormListBox=Hs,Ut.AcroFormComboBox=ks,Ut.AcroFormEditBox=Xf,Ut.AcroFormButton=nr,Ut.AcroFormPushButton=qf,Ut.AcroFormRadioButton=Ps,Ut.AcroFormCheckBox=zf,Ut.AcroFormTextField=Va,Ut.AcroFormPasswordField=Yf,Ut.AcroFormAppearance=re,Ut.AcroForm={ChoiceField:Ds,ListBox:Hs,ComboBox:ks,EditBox:Xf,Button:nr,PushButton:qf,RadioButton:Ps,CheckBox:zf,TextField:Va,PasswordField:Yf,Appearance:re},he.AcroForm={ChoiceField:Ds,ListBox:Hs,ComboBox:ks,EditBox:Xf,Button:nr,PushButton:qf,RadioButton:Ps,CheckBox:zf,TextField:Va,PasswordField:Yf,Appearance:re};he.AcroForm;function dB(A){return A.reduce(function(e,t,r){return e[t]=r,e},{})}(function(A){var e="addImage_";A.__addimage__={};var t="UNKNOWN",r={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]]},n=A.__addimage__.getImageFileTypeByImageData=function(y,T){var P,eA,sA,wA,gA,hA=t;if((T=T||t)==="RGBA"||y.data!==void 0&&y.data instanceof Uint8ClampedArray&&"height"in y&&"width"in y)return"RGBA";if(rA(y))for(gA in r)for(sA=r[gA],P=0;P<sA.length;P+=1){for(wA=!0,eA=0;eA<sA[P].length;eA+=1)if(sA[P][eA]!==void 0&&sA[P][eA]!==y[eA]){wA=!1;break}if(wA===!0){hA=gA;break}}else for(gA in r)for(sA=r[gA],P=0;P<sA.length;P+=1){for(wA=!0,eA=0;eA<sA[P].length;eA+=1)if(sA[P][eA]!==void 0&&sA[P][eA]!==y.charCodeAt(eA)){wA=!1;break}if(wA===!0){hA=gA;break}}return hA===t&&T!==t&&(hA=T),hA},i=function y(T){for(var P=this.internal.write,eA=this.internal.putStream,sA=(0,this.internal.getFilters)();sA.indexOf("FlateEncode")!==-1;)sA.splice(sA.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var wA=[];if(wA.push({key:"Type",value:"/XObject"}),wA.push({key:"Subtype",value:"/Image"}),wA.push({key:"Width",value:T.width}),wA.push({key:"Height",value:T.height}),T.colorSpace===F.INDEXED?wA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(wA.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===F.DEVICE_CMYK&&wA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),wA.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&wA.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)&&T.transparency.length>0){for(var gA="",hA=0,CA=T.transparency.length;hA<CA;hA++)gA+=T.transparency[hA]+" "+T.transparency[hA]+" ";wA.push({key:"Mask",value:"["+gA+"]"})}T.sMask!==void 0&&wA.push({key:"SMask",value:T.objectId+1+" 0 R"});var IA=T.filter!==void 0?["/"+T.filter]:void 0;if(eA({data:T.data,additionalKeyValues:wA,alreadyAppliedFilters:IA,objectId:T.objectId}),P("endobj"),"sMask"in T&&T.sMask!==void 0){var _A,m=(_A=T.sMaskBitsPerComponent)!==null&&_A!==void 0?_A:T.bitsPerComponent,Q={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:m,data:T.sMask};"filter"in T&&(Q.decodeParameters="/Predictor ".concat(T.predictor," /Colors 1 /BitsPerComponent ").concat(m," /Columns ").concat(T.width),Q.filter=T.filter),y.call(this,Q)}if(T.colorSpace===F.INDEXED){var U=this.internal.newObject();eA({data:R(new Uint8Array(T.palette)),objectId:U}),P("endobj")}},a=function(){var y=this.internal.collections[e+"images"];for(var T in y)i.call(this,y[T])},s=function(){var y,T=this.internal.collections[e+"images"],P=this.internal.write;for(var eA in T)P("/I"+(y=T[eA]).index,y.objectId,"0","R")},o=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s))},f=function(){var y=this.internal.collections[e+"images"];return o.call(this),y},l=function(){return Object.keys(this.internal.collections[e+"images"]).length},d=function(y){return typeof A["process"+y.toUpperCase()]=="function"},g=function(y){return tt(y)==="object"&&y.nodeType===1},u=function(y,T){if(y.nodeName==="IMG"&&y.hasAttribute("src")){var P=""+y.getAttribute("src");if(P.indexOf("data:image/")===0)return Wf(unescape(P).split("base64,").pop());var eA=A.loadFile(P,!0);if(eA!==void 0)return eA}if(y.nodeName==="CANVAS"){if(y.width===0||y.height===0)throw new Error("Given canvas must have data. Canvas width: "+y.width+", height: "+y.height);var sA;switch(T){case"PNG":sA="image/png";break;case"WEBP":sA="image/webp";break;default:sA="image/jpeg"}return Wf(y.toDataURL(sA,1).split("base64,").pop())}},v=function(y){var T=this.internal.collections[e+"images"];if(T){for(var P in T)if(y===T[P].alias)return T[P]}},B=function(y,T,P){return y||T||(y=-96,T=-96),y<0&&(y=-1*P.width*72/y/this.internal.scaleFactor),T<0&&(T=-1*P.height*72/T/this.internal.scaleFactor),y===0&&(y=T*P.width/P.height),T===0&&(T=y*P.height/P.width),[y,T]},x=function(y,T,P,eA,sA,wA){var gA=B.call(this,P,eA,sA),hA=this.internal.getCoordinateString,CA=this.internal.getVerticalCoordinateString,IA=f.call(this);if(P=gA[0],eA=gA[1],IA[sA.index]=sA,wA){wA*=Math.PI/180;var _A=Math.cos(wA),m=Math.sin(wA),Q=function(N){return N.toFixed(4)},U=[Q(_A),Q(m),Q(-1*m),Q(_A),0,0,"cm"]}this.internal.write("q"),wA?(this.internal.write([1,"0","0",1,hA(y),CA(T+eA),"cm"].join(" ")),this.internal.write(U.join(" ")),this.internal.write([hA(P),"0","0",hA(eA),"0","0","cm"].join(" "))):this.internal.write([hA(P),"0","0",hA(eA),hA(y),CA(T+eA),"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")},F=A.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"};A.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 _=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},I=A.__addimage__.sHashCode=function(y){var T,P,eA=0;if(typeof y=="string")for(P=y.length,T=0;T<P;T++)eA=(eA<<5)-eA+y.charCodeAt(T),eA|=0;else if(rA(y))for(P=y.byteLength/2,T=0;T<P;T++)eA=(eA<<5)-eA+y[T],eA|=0;return eA},L=A.__addimage__.validateStringAsBase64=function(y){(y=y||"").toString().trim();var T=!0;return y.length===0&&(T=!1),y.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(y.substr(0,y.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(y.substr(-2))===!1&&(T=!1),T},q=A.__addimage__.extractImageFromDataUrl=function(y){if(y==null||!(y=y.trim()).startsWith("data:"))return null;var T=y.indexOf(",");return T<0?null:y.substring(0,T).trim().endsWith("base64")?y.substring(T+1):null};A.__addimage__.isArrayBuffer=function(y){return y instanceof ArrayBuffer};var rA=A.__addimage__.isArrayBufferView=function(y){return y instanceof Int8Array||y instanceof Uint8Array||y instanceof Uint8ClampedArray||y instanceof Int16Array||y instanceof Uint16Array||y instanceof Int32Array||y instanceof Uint32Array||y instanceof Float32Array||y instanceof Float64Array},M=A.__addimage__.binaryStringToUint8Array=function(y){for(var T=y.length,P=new Uint8Array(T),eA=0;eA<T;eA++)P[eA]=y.charCodeAt(eA);return P},R=A.__addimage__.arrayBufferToBinaryString=function(y){for(var T="",P=rA(y)?y:new Uint8Array(y),eA=0;eA<P.length;eA+=8192)T+=String.fromCharCode.apply(null,P.subarray(eA,eA+8192));return T};A.addImage=function(){var y,T,P,eA,sA,wA,gA,hA,CA;if(typeof arguments[1]=="number"?(T=t,P=arguments[1],eA=arguments[2],sA=arguments[3],wA=arguments[4],gA=arguments[5],hA=arguments[6],CA=arguments[7]):(T=arguments[1],P=arguments[2],eA=arguments[3],sA=arguments[4],wA=arguments[5],gA=arguments[6],hA=arguments[7],CA=arguments[8]),tt(y=arguments[0])==="object"&&!g(y)&&"imageData"in y){var IA=y;y=IA.imageData,T=IA.format||T||t,P=IA.x||P||0,eA=IA.y||eA||0,sA=IA.w||IA.width||sA,wA=IA.h||IA.height||wA,gA=IA.alias||gA,hA=IA.compression||hA,CA=IA.rotation||IA.angle||CA}var _A=this.internal.getFilters();if(hA===void 0&&_A.indexOf("FlateEncode")!==-1&&(hA="SLOW"),isNaN(P)||isNaN(eA))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var m=E.call(this,y,T,gA,hA);return x.call(this,P,eA,sA,wA,m,CA),this};var E=function(y,T,P,eA){var sA,wA,gA;if(typeof y=="string"&&n(y)===t){y=unescape(y);var hA=X(y,!1);(hA!==""||(hA=A.loadFile(y,!0))!==void 0)&&(y=hA)}if(g(y)&&(y=u(y,T)),T=n(y,T),!d(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((gA=P)==null||gA.length===0)&&(P=(function(CA){return typeof CA=="string"||rA(CA)?I(CA):rA(CA.data)?I(CA.data):null})(y)),(sA=v.call(this,P))||(y instanceof Uint8Array||T==="RGBA"||(wA=y,y=M(y)),sA=this["process"+T.toUpperCase()](y,l.call(this),P,(function(CA){return CA&&typeof CA=="string"&&(CA=CA.toUpperCase()),CA in A.image_compression?CA:_.NONE})(eA),wA)),!sA)throw new Error("An unknown error occurred whilst processing the image.");return sA},X=A.__addimage__.convertBase64ToBinaryString=function(y,T){T=typeof T!="boolean"||T;var P,eA="";if(typeof y=="string"){var sA;P=(sA=q(y))!==null&&sA!==void 0?sA:y;try{eA=Wf(P)}catch(wA){if(T)throw L(P)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+wA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return eA};A.getImageProperties=function(y){var T,P,eA="";if(g(y)&&(y=u(y)),typeof y=="string"&&n(y)===t&&((eA=X(y,!1))===""&&(eA=A.loadFile(y)||""),y=eA),P=n(y),!d(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(y instanceof Uint8Array||(y=M(y)),!(T=this["process"+P.toUpperCase()](y)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=P,T}})(he.API),(function(A){var e=function(t){if(t!==void 0&&t!="")return!0};he.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),A.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),f=t.pageContext.annotations,l=!1,d=0;d<f.length&&!l;d++)switch((r=f[d]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(l!=0){this.internal.write("/Annots [");for(var g=0;g<f.length;g++){r=f[g];var u=this.internal.pdfEscape,v=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var B=this.internal.newAdditionalObject(),x=this.internal.newAdditionalObject(),F=this.internal.getEncryptor(B.objId),_=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+u(F(r.contents))+")",i+=" /Popup "+x.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+u(F(_))+") >>",B.content=i;var I=B.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+I,r.open&&(i+=" /Open true"),i+=" >>",x.content=i,this.internal.write(B.objId,"0 R",x.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var L=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+u(v(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+L+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var q=this.annotations._nameMap[r.options.name];r.options.pageNumber=q.page,r.options.top=q.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 ("+u(v(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;default:var rA=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+rA+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),A.createAnnotation=function(t){var r=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":r.pageContext.annotations.push(t)}},A.link=function(t,r,n,i,a){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,f=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(t),y:f(r),w:o(t+n),h:f(r+i)},options:a,type:"link"})},A.textWithLink=function(t,r,n,i){var a,s,o=this.getTextWidth(t),f=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var l=this.splitTextToSize(t,s).length;a=Math.ceil(f*l)}else s=o,a=f;return this.text(t,r,n,i),n+=.2*f,i.align==="center"&&(r-=o/2),i.align==="right"&&(r-=o),this.link(r,n-f,s,a,i),o},A.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}})(he.API),(function(A){var e={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]},t={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];A.__arabicParser__={};var i=A.__arabicParser__.isInArabicSubstitutionA=function(B){return e[B.charCodeAt(0)]!==void 0},a=A.__arabicParser__.isArabicLetter=function(B){return typeof B=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(B)},s=A.__arabicParser__.isArabicEndLetter=function(B){return a(B)&&i(B)&&e[B.charCodeAt(0)].length<=2},o=A.__arabicParser__.isArabicAlfLetter=function(B){return a(B)&&n.indexOf(B.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(B){return a(B)&&i(B)&&e[B.charCodeAt(0)].length>=1};var f=A.__arabicParser__.arabicLetterHasFinalForm=function(B){return a(B)&&i(B)&&e[B.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(B){return a(B)&&i(B)&&e[B.charCodeAt(0)].length>=3};var l=A.__arabicParser__.arabicLetterHasMedialForm=function(B){return a(B)&&i(B)&&e[B.charCodeAt(0)].length==4},d=A.__arabicParser__.resolveLigatures=function(B){var x=0,F=t,_="",I=0;for(x=0;x<B.length;x+=1)F[B.charCodeAt(x)]!==void 0?(I++,typeof(F=F[B.charCodeAt(x)])=="number"&&(_+=String.fromCharCode(F),F=t,I=0),x===B.length-1&&(F=t,_+=B.charAt(x-(I-1)),x-=I-1,I=0)):(F=t,_+=B.charAt(x-I),x-=I,I=0);return _};A.__arabicParser__.isArabicDiacritic=function(B){return B!==void 0&&r[B.charCodeAt(0)]!==void 0};var g=A.__arabicParser__.getCorrectForm=function(B,x,F){return a(B)?i(B)===!1?-1:!f(B)||!a(x)&&!a(F)||!a(F)&&s(x)||s(B)&&!a(x)||s(B)&&o(x)||s(B)&&s(x)?0:l(B)&&a(x)&&!s(x)&&a(F)&&f(F)?3:s(B)||!a(F)?1:2:-1},u=function(B){var x=0,F=0,_=0,I="",L="",q="",rA=(B=B||"").split("\\s+"),M=[];for(x=0;x<rA.length;x+=1){for(M.push(""),F=0;F<rA[x].length;F+=1)I=rA[x][F],L=rA[x][F-1],q=rA[x][F+1],a(I)?(_=g(I,L,q),M[x]+=_!==-1?String.fromCharCode(e[I.charCodeAt(0)][_]):I):M[x]+=I;M[x]=d(M[x])}return M.join(" ")},v=A.__arabicParser__.processArabic=A.processArabic=function(){var B,x=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,F=[];if(Array.isArray(x)){var _=0;for(F=[],_=0;_<x.length;_+=1)Array.isArray(x[_])?F.push([u(x[_][0]),x[_][1],x[_][2]]):F.push([u(x[_])]);B=F}else B=u(x);return typeof arguments[0]=="string"?B:(arguments[0].text=B,arguments[0])};A.events.push(["preProcessText",v])})(he.API),he.API.autoPrint=function(A){var e;return(A=A||{}).variant=A.variant||"non-conform",A.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})),this},(function(A){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,r){var n;if((t=t||"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},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(he.API),(function(A){var e={left:0,top:0,bottom:0,right:0},t=!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({},e),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 o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(B){o=B}});var f=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return f},set:function(B){f=B}});var l=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return l},set:function(B){l=B}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(B){d=B}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(B){g=B}});var u=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return u},set:function(B){u=B}});var v=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return v},set:function(B){v=B}}),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]},A.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},A.getTextDimensions=function(o,f){r.call(this);var l=(f=f||{}).fontSize||this.getFontSize(),d=f.font||this.getFont(),g=f.scaleFactor||this.internal.scaleFactor,u=0,v=0,B=0,x=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var F=f.maxWidth;F>0?typeof o=="string"?o=this.splitTextToSize(o,F):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(I,L){return I.concat(x.splitTextToSize(L,F))},[])):o=Array.isArray(o)?o:[o];for(var _=0;_<o.length;_++)u<(B=this.getStringUnitWidth(o[_],{font:d})*l)&&(u=B);return u!==0&&(v=o.length),{w:u/=g,h:Math.max((v*l*this.getLineHeightFactor()-l*(this.getLineHeightFactor()-1))/g,0)}},A.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=A.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var f=this.internal.__cell__.lastCell,l=this.internal.__cell__.padding,d=this.internal.__cell__.margins||e,g=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return f.lineNumber!==void 0&&(f.lineNumber===o.lineNumber?(o.x=(f.x||0)+(f.width||0),o.y=f.y||0):f.y+f.height+o.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=d.top,u&&g&&(this.printHeaderRow(o.lineNumber,!0),o.y+=g[0].height)):o.y=f.y+f.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,t===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-l,o.y+l,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+l,{align:"center",baseline:"top",maxWidth:o.width-l-l}):this.text(o.text,o.x+l,o.y+l,{align:"left",baseline:"top",maxWidth:o.width-l-l})),this.internal.__cell__.lastCell=o,this};A.table=function(o,f,l,d,g){if(r.call(this),!l)throw new Error("No data for PDF table.");var u,v,B,x,F=[],_=[],I=[],L={},q={},rA=[],M=[],R=(g=g||{}).autoSize||!1,E=g.printHeaders!==!1,X=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,y=g.margins||Object.assign({width:this.getPageWidth()},e),T=typeof g.padding=="number"?g.padding:3,P=g.headerBackgroundColor||"#c8c8c8",eA=g.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=E,this.internal.__cell__.margins=y,this.internal.__cell__.table_font_size=X,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=P,this.internal.__cell__.headerTextColor=eA,this.setFontSize(X),d==null)_=F=Object.keys(l[0]),I=F.map(function(){return"left"});else if(Array.isArray(d)&&tt(d[0])==="object")for(F=d.map(function(IA){return IA.name}),_=d.map(function(IA){return IA.prompt||IA.name||""}),I=d.map(function(IA){return IA.align||"left"}),u=0;u<d.length;u+=1)q[d[u].name]=.7499990551181103*d[u].width;else Array.isArray(d)&&typeof d[0]=="string"&&(_=F=d,I=F.map(function(){return"left"}));if(R||Array.isArray(d)&&typeof d[0]=="string")for(u=0;u<F.length;u+=1){for(L[x=F[u]]=l.map(function(IA){return IA[x]}),this.setFont(void 0,"bold"),rA.push(this.getTextDimensions(_[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),v=L[x],this.setFont(void 0,"normal"),B=0;B<v.length;B+=1)rA.push(this.getTextDimensions(v[B],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);q[x]=Math.max.apply(null,rA)+T+T,rA=[]}if(E){var sA={};for(u=0;u<F.length;u+=1)sA[F[u]]={},sA[F[u]].text=_[u],sA[F[u]].align=I[u];var wA=s.call(this,sA,q);M=F.map(function(IA){return new i(o,f,q[IA],wA,sA[IA].text,void 0,sA[IA].align)}),this.setTableHeaderRow(M),this.printHeaderRow(1,!1)}var gA=d.reduce(function(IA,_A){return IA[_A.name]=_A.align,IA},{});for(u=0;u<l.length;u+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:u,data:l[u]},this);var hA=s.call(this,l[u],q);for(B=0;B<F.length;B+=1){var CA=l[u][F[B]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:u,col:B,data:CA},this),a.call(this,new i(o,f,q[F[B]],hA,CA,u+2,gA[F[B]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=f,this};var s=function(o,f){var l=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(o).map(function(u){var v=o[u];return this.splitTextToSize(v.hasOwnProperty("text")?v.text:v,f[u]-l-l)},this).map(function(u){return this.getLineHeightFactor()*u.length*d/g+l+l},this).reduce(function(u,v){return Math.max(u,v)},0)};A.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},A.printHeaderRow=function(o,f){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var l;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){l=this.internal.__cell__.tableHeaderRow[u].clone(),f&&(l.y=this.internal.__cell__.margins.top||0,g.push(l)),l.lineNumber=o;var v=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,l),this.setTextColor(v)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),t=!1}})(he.API);var gB={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},pB=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],nh=dB(pB),BB=[100,200,300,400,500,600,700,800,900],Ry=dB(BB);function uu(A){var e=A.family.replace(/"|'/g,"").toLowerCase(),t=(function(i){return gB[i=i||"normal"]?i:"normal"})(A.style),r=(function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400})(A.weight),n=(function(i){return typeof nh[i=i||"normal"]=="number"?i:"normal"})(A.stretch);return{family:e,style:t,weight:r,stretch:n,src:A.src||[],ref:A.ref||{name:e,style:[n,t,r].join(" ")}}}function C2(A,e,t,r){var n;for(n=t;n>=0&&n<e.length;n+=r)if(A[e[n]])return A[e[n]];for(n=t;n>=0&&n<e.length;n-=r)if(A[e[n]])return A[e[n]]}var My={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},F2={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function y2(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function E2(A){return A.trimLeft()}function Ky(A,e){for(var t=0;t<A.length;){if(A.charAt(t)===e)return[A.substring(0,t),A.substring(t+1)];t+=1}return null}function Gy(A){var e=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],A.substring(e[0].length)]}var Sf,_2,U2,Fs,Tf,b2,Q2,S2,hu=["times"];function T2(A,e,t,r,n){var i=4,a=I2;switch(n){case he.API.image_compression.FAST:i=1,a=L2;break;case he.API.image_compression.MEDIUM:i=6,a=N2;break;case he.API.image_compression.SLOW:i=9,a=O2}A=(function(o,f,l,d){for(var g,u=o.length/f,v=new Uint8Array(o.length+u),B=[Vy,L2,I2,N2,O2],x=0;x<u;x+=1){var F=x*f,_=o.subarray(F,F+f);if(d)v.set(d(_,l,g),F+x);else{for(var I=B.length,L=[],q=0;q<I;q+=1)L[q]=B[q](_,l,g);var rA=Wy(L.concat());v.set(L[rA],F+x)}g=_}return v})(A,e,Math.ceil(t*r/8),a);var s=Ju(A,{level:i});return he.API.__addimage__.arrayBufferToBinaryString(s)}function Vy(A){var e=Array.apply([],A);return e.unshift(0),e}function L2(A,e){var t=A.length,r=[];r[0]=1;for(var n=0;n<t;n+=1){var i=A[n-e]||0;r[n+1]=A[n]-i+256&255}return r}function I2(A,e,t){var r=A.length,n=[];n[0]=2;for(var i=0;i<r;i+=1){var a=t&&t[i]||0;n[i+1]=A[i]-a+256&255}return n}function N2(A,e,t){var r=A.length,n=[];n[0]=3;for(var i=0;i<r;i+=1){var a=A[i-e]||0,s=t&&t[i]||0;n[i+1]=A[i]+256-(a+s>>>1)&255}return n}function O2(A,e,t){var r=A.length,n=[];n[0]=4;for(var i=0;i<r;i+=1){var a=jy(A[i-e]||0,t&&t[i]||0,t&&t[i-e]||0);n[i+1]=A[i]-a+256&255}return n}function jy(A,e,t){if(A===e&&e===t)return A;var r=Math.abs(e-t),n=Math.abs(A-t),i=Math.abs(A+e-t-t);return r<=n&&r<=i?A:n<=i?e:t}function Wy(A){var e=A.map(function(t){return t.reduce(function(r,n){return r+Math.abs(n)},0)});return e.indexOf(Math.min.apply(null,e))}function du(A,e,t){var r=e*t,n=Math.floor(r/8),i=16-(r-8*n+t),a=(1<<t)-1;return wB(A,n)>>i&a}function D2(A,e,t,r){var n=t*r,i=Math.floor(n/8),a=16-(n-8*i+r),s=(1<<r)-1,o=(e&s)<<a;(function(f,l,d){if(l+1<f.byteLength)f.setUint16(l,d,!1);else{var g=d>>8&255;f.setUint8(l,g)}})(A,i,wB(A,i)&~(s<<a)&65535|o)}function wB(A,e){return e+1<A.byteLength?A.getUint16(e,!1):A.getUint8(e)<<8}function Xy(A){var e=0;if(A[e++]!==71||A[e++]!==73||A[e++]!==70||A[e++]!==56||(A[e++]+1&253)!=56||A[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=A[e++]|A[e++]<<8,r=A[e++]|A[e++]<<8,n=A[e++],i=n>>7,a=1<<1+(7&n);A[e++],A[e++];var s=null,o=null;i&&(s=e,o=a,e+=3*a);var f=!0,l=[],d=0,g=null,u=0,v=null;for(this.width=t,this.height=r;f&&e<A.length;)switch(A[e++]){case 33:switch(A[e++]){case 255:if(A[e]!==11||A[e+1]==78&&A[e+2]==69&&A[e+3]==84&&A[e+4]==83&&A[e+5]==67&&A[e+6]==65&&A[e+7]==80&&A[e+8]==69&&A[e+9]==50&&A[e+10]==46&&A[e+11]==48&&A[e+12]==3&&A[e+13]==1&&A[e+16]==0)e+=14,v=A[e++]|A[e++]<<8,e++;else for(e+=12;;){if(!((y=A[e++])>=0))throw Error("Invalid block size");if(y===0)break;e+=y}break;case 249:if(A[e++]!==4||A[e+4]!==0)throw new Error("Invalid graphics extension block.");var B=A[e++];d=A[e++]|A[e++]<<8,g=A[e++],1&B||(g=null),u=B>>2&7,e++;break;case 254:for(;;){if(!((y=A[e++])>=0))throw Error("Invalid block size");if(y===0)break;e+=y}break;default:throw new Error("Unknown graphic control label: 0x"+A[e-1].toString(16))}break;case 44:var x=A[e++]|A[e++]<<8,F=A[e++]|A[e++]<<8,_=A[e++]|A[e++]<<8,I=A[e++]|A[e++]<<8,L=A[e++],q=L>>6&1,rA=1<<1+(7&L),M=s,R=o,E=!1;L>>7&&(E=!0,M=e,R=rA,e+=3*rA);var X=e;for(e++;;){var y;if(!((y=A[e++])>=0))throw Error("Invalid block size");if(y===0)break;e+=y}l.push({x,y:F,width:_,height:I,has_local_palette:E,palette_offset:M,palette_size:R,data_offset:X,data_length:e-X,transparent_index:g,interlaced:!!q,delay:d,disposal:u});break;case 59:f=!1;break;default:throw new Error("Unknown gif block: 0x"+A[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return v},this.frameInfo=function(T){if(T<0||T>=l.length)throw new Error("Frame index out of range.");return l[T]},this.decodeAndBlitFrameBGRA=function(T,P){var eA=this.frameInfo(T),sA=eA.width*eA.height,wA=new Uint8Array(sA);H2(A,eA.data_offset,wA,sA);var gA=eA.palette_offset,hA=eA.transparent_index;hA===null&&(hA=256);var CA=eA.width,IA=t-CA,_A=CA,m=4*(eA.y*t+eA.x),Q=4*((eA.y+eA.height)*t+eA.x),U=m,N=4*IA;eA.interlaced===!0&&(N+=4*t*7);for(var j=8,nA=0,fA=wA.length;nA<fA;++nA){var oA=wA[nA];if(_A===0&&(_A=CA,(U+=N)>=Q&&(N=4*IA+4*t*(j-1),U=m+(CA+IA)*(j<<1),j>>=1)),oA===hA)U+=4;else{var lA=A[gA+3*oA],SA=A[gA+3*oA+1],HA=A[gA+3*oA+2];P[U++]=HA,P[U++]=SA,P[U++]=lA,P[U++]=255}--_A}},this.decodeAndBlitFrameRGBA=function(T,P){var eA=this.frameInfo(T),sA=eA.width*eA.height,wA=new Uint8Array(sA);H2(A,eA.data_offset,wA,sA);var gA=eA.palette_offset,hA=eA.transparent_index;hA===null&&(hA=256);var CA=eA.width,IA=t-CA,_A=CA,m=4*(eA.y*t+eA.x),Q=4*((eA.y+eA.height)*t+eA.x),U=m,N=4*IA;eA.interlaced===!0&&(N+=4*t*7);for(var j=8,nA=0,fA=wA.length;nA<fA;++nA){var oA=wA[nA];if(_A===0&&(_A=CA,(U+=N)>=Q&&(N=4*IA+4*t*(j-1),U=m+(CA+IA)*(j<<1),j>>=1)),oA===hA)U+=4;else{var lA=A[gA+3*oA],SA=A[gA+3*oA+1],HA=A[gA+3*oA+2];P[U++]=lA,P[U++]=SA,P[U++]=HA,P[U++]=255}--_A}}}function H2(A,e,t,r){for(var n=A[e++],i=1<<n,a=i+1,s=a+1,o=n+1,f=(1<<o)-1,l=0,d=0,g=0,u=A[e++],v=new Int32Array(4096),B=null;;){for(;l<16&&u!==0;)d|=A[e++]<<l,l+=8,u===1?u=A[e++]:--u;if(l<o)break;var x=d&f;if(d>>=o,l-=o,x!==i){if(x===a)break;for(var F=x<s?x:B,_=0,I=F;I>i;)I=v[I]>>8,++_;var L=I;if(g+_+(F!==x?1:0)>r)return void lt.log("Warning, gif stream longer than expected.");t[g++]=L;var q=g+=_;for(F!==x&&(t[g++]=L),I=F;_--;)I=v[I],t[--q]=255&I,I>>=8;B!==null&&s<4096&&(v[s++]=B<<8|L,s>=f+1&&o<12&&(++o,f=f<<1|1)),B=x}else s=a+1,f=(1<<(o=n+1))-1,B=null}return g!==r&&lt.log("Warning, gif stream shorter than expected."),t}/**
 * @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 gu(A){var e,t,r,n,i,a=Math.floor,s=new Array(64),o=new Array(64),f=new Array(64),l=new Array(64),d=new Array(65535),g=new Array(65535),u=new Array(64),v=new Array(64),B=[],x=0,F=7,_=new Array(64),I=new Array(64),L=new Array(64),q=new Array(256),rA=new Array(2048),M=[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],R=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],X=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],y=[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],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],eA=[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 wA(m,Q){for(var U=0,N=0,j=new Array,nA=1;nA<=16;nA++){for(var fA=1;fA<=m[nA];fA++)j[Q[N]]=[],j[Q[N]][0]=U,j[Q[N]][1]=nA,N++,U++;U*=2}return j}function gA(m){for(var Q=m[0],U=m[1]-1;U>=0;)Q&1<<U&&(x|=1<<F),U--,--F<0&&(x==255?(hA(255),hA(0)):hA(x),F=7,x=0)}function hA(m){B.push(m)}function CA(m){hA(m>>8&255),hA(255&m)}function IA(m,Q,U,N,j){for(var nA,fA=j[0],oA=j[240],lA=(function(LA,fe){var ZA,de,ce,Le,Ie,me,ke,_e,ie,ye,oe=0;for(ie=0;ie<8;++ie){ZA=LA[oe],de=LA[oe+1],ce=LA[oe+2],Le=LA[oe+3],Ie=LA[oe+4],me=LA[oe+5],ke=LA[oe+6];var vt=ZA+(_e=LA[oe+7]),Pe=ZA-_e,Qe=de+ke,Se=de-ke,ct=ce+me,ge=ce-me,Je=Le+Ie,Be=Le-Ie,Ce=vt+Je,ut=vt-Je,De=Qe+ct,pe=Qe-ct;LA[oe]=Ce+De,LA[oe+4]=Ce-De;var We=.707106781*(pe+ut);LA[oe+2]=ut+We,LA[oe+6]=ut-We;var fi=.382683433*((Ce=Be+ge)-(pe=Se+Pe)),tr=.5411961*Ce+fi,En=1.306562965*pe+fi,ln=.707106781*(De=ge+Se),we=Pe+ln,_n=Pe-ln;LA[oe+5]=_n+tr,LA[oe+3]=_n-tr,LA[oe+1]=we+En,LA[oe+7]=we-En,oe+=8}for(oe=0,ie=0;ie<8;++ie){ZA=LA[oe],de=LA[oe+8],ce=LA[oe+16],Le=LA[oe+24],Ie=LA[oe+32],me=LA[oe+40],ke=LA[oe+48];var Un=ZA+(_e=LA[oe+56]),xr=ZA-_e,Pr=de+ke,mt=de-ke,Pt=ce+me,O=ce-me,J=Le+Ie,K=Le-Ie,V=Un+J,Z=Un-J,tA=Pr+Pt,pA=Pr-Pt;LA[oe]=V+tA,LA[oe+32]=V-tA;var yA=.707106781*(pA+Z);LA[oe+16]=Z+yA,LA[oe+48]=Z-yA;var BA=.382683433*((V=K+O)-(pA=mt+xr)),vA=.5411961*V+BA,FA=1.306562965*pA+BA,PA=.707106781*(tA=O+mt),jA=xr+PA,YA=xr-PA;LA[oe+40]=YA+vA,LA[oe+24]=YA-vA,LA[oe+8]=jA+FA,LA[oe+56]=jA-FA,oe++}for(ie=0;ie<64;++ie)ye=LA[ie]*fe[ie],u[ie]=ye>0?ye+.5|0:ye-.5|0;return u})(m,Q),SA=0;SA<64;++SA)v[M[SA]]=lA[SA];var HA=v[0]-U;U=v[0],HA==0?gA(N[0]):(gA(N[g[nA=32767+HA]]),gA(d[nA]));for(var GA=63;GA>0&&v[GA]==0;)GA--;if(GA==0)return gA(fA),U;for(var VA,W=1;W<=GA;){for(var RA=W;v[W]==0&&W<=GA;)++W;var kA=W-RA;if(kA>=16){VA=kA>>4;for(var te=1;te<=VA;++te)gA(oA);kA&=15}nA=32767+v[W],gA(j[(kA<<4)+g[nA]]),gA(d[nA]),W++}return GA!=63&&gA(fA),U}function _A(m){m=Math.min(Math.max(m,1),100),i!=m&&((function(Q){for(var U=[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],N=0;N<64;N++){var j=a((U[N]*Q+50)/100);j=Math.min(Math.max(j,1),255),s[M[N]]=j}for(var nA=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],fA=0;fA<64;fA++){var oA=a((nA[fA]*Q+50)/100);oA=Math.min(Math.max(oA,1),255),o[M[fA]]=oA}for(var lA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],SA=0,HA=0;HA<8;HA++)for(var GA=0;GA<8;GA++)f[SA]=1/(s[M[SA]]*lA[HA]*lA[GA]*8),l[SA]=1/(o[M[SA]]*lA[HA]*lA[GA]*8),SA++})(m<50?Math.floor(5e3/m):Math.floor(200-2*m)),i=m)}this.encode=function(m,Q){Q&&_A(Q),B=new Array,x=0,F=7,CA(65496),CA(65504),CA(16),hA(74),hA(70),hA(73),hA(70),hA(0),hA(1),hA(1),hA(0),CA(1),CA(1),hA(0),hA(0),(function(){CA(65499),CA(132),hA(0);for(var de=0;de<64;de++)hA(s[de]);hA(1);for(var ce=0;ce<64;ce++)hA(o[ce])})(),(function(de,ce){CA(65472),CA(17),hA(8),CA(ce),CA(de),hA(3),hA(1),hA(17),hA(0),hA(2),hA(17),hA(1),hA(3),hA(17),hA(1)})(m.width,m.height),(function(){CA(65476),CA(418),hA(0);for(var de=0;de<16;de++)hA(R[de+1]);for(var ce=0;ce<=11;ce++)hA(E[ce]);hA(16);for(var Le=0;Le<16;Le++)hA(X[Le+1]);for(var Ie=0;Ie<=161;Ie++)hA(y[Ie]);hA(1);for(var me=0;me<16;me++)hA(T[me+1]);for(var ke=0;ke<=11;ke++)hA(P[ke]);hA(17);for(var _e=0;_e<16;_e++)hA(eA[_e+1]);for(var ie=0;ie<=161;ie++)hA(sA[ie])})(),CA(65498),CA(12),hA(3),hA(1),hA(0),hA(2),hA(17),hA(3),hA(17),hA(0),hA(63),hA(0);var U=0,N=0,j=0;x=0,F=7,this.encode.displayName="_encode_";for(var nA,fA,oA,lA,SA,HA,GA,VA,W,RA=m.data,kA=m.width,te=m.height,LA=4*kA,fe=0;fe<te;){for(nA=0;nA<LA;){for(SA=LA*fe+nA,GA=-1,VA=0,W=0;W<64;W++)HA=SA+(VA=W>>3)*LA+(GA=4*(7&W)),fe+VA>=te&&(HA-=LA*(fe+1+VA-te)),nA+GA>=LA&&(HA-=nA+GA-LA+4),fA=RA[HA++],oA=RA[HA++],lA=RA[HA++],_[W]=(rA[fA]+rA[oA+256|0]+rA[lA+512|0]>>16)-128,I[W]=(rA[fA+768|0]+rA[oA+1024|0]+rA[lA+1280|0]>>16)-128,L[W]=(rA[fA+1280|0]+rA[oA+1536|0]+rA[lA+1792|0]>>16)-128;U=IA(_,f,U,e,r),N=IA(I,l,N,t,n),j=IA(L,l,j,t,n),nA+=32}fe+=8}if(F>=0){var ZA=[];ZA[1]=F+1,ZA[0]=(1<<F+1)-1,gA(ZA)}return CA(65497),new Uint8Array(B)},A=A||50,(function(){for(var m=String.fromCharCode,Q=0;Q<256;Q++)q[Q]=m(Q)})(),e=wA(R,E),t=wA(T,P),r=wA(X,y),n=wA(eA,sA),(function(){for(var m=1,Q=2,U=1;U<=15;U++){for(var N=m;N<Q;N++)g[32767+N]=U,d[32767+N]=[],d[32767+N][1]=U,d[32767+N][0]=N;for(var j=-(Q-1);j<=-m;j++)g[32767+j]=U,d[32767+j]=[],d[32767+j][1]=U,d[32767+j][0]=Q-1+j;m<<=1,Q<<=1}})(),(function(){for(var m=0;m<256;m++)rA[m]=19595*m,rA[m+256|0]=38470*m,rA[m+512|0]=7471*m+32768,rA[m+768|0]=-11059*m,rA[m+1024|0]=-21709*m,rA[m+1280|0]=32768*m+8421375,rA[m+1536|0]=-27439*m,rA[m+1792|0]=-5329*m})(),_A(A)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function Nn(A,e){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!e,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 k2(A){function e(E){if(!E)throw Error("assert :P")}function t(E,X,y){for(var T=0;4>T;T++)if(E[X+T]!=y.charCodeAt(T))return!0;return!1}function r(E,X,y,T,P){for(var eA=0;eA<P;eA++)E[X+eA]=y[T+eA]}function n(E,X,y,T){for(var P=0;P<T;P++)E[X+P]=y}function i(E){return new Int32Array(E)}function a(E,X){for(var y=[],T=0;T<E;T++)y.push(new X);return y}function s(E,X){var y=[];return(function T(P,eA,sA){for(var wA=sA[eA],gA=0;gA<wA&&(P.push(sA.length>eA+1?[]:new X),!(sA.length<eA+1));gA++)T(P[gA],eA+1,sA)})(y,0,E),y}var o=function(){var E=this;function X(c,h){for(var w=1<<h-1>>>0;c&w;)w>>>=1;return w?(c&w-1)+w:c}function y(c,h,w,C,S){e(!(C%w));do c[h+(C-=w)]=S;while(0<C)}function T(c,h,w,C,S){if(e(2328>=S),512>=S)var D=i(512);else if((D=i(S))==null)return 0;return(function(H,k,G,z,aA,xA){var Y,cA,dA=k,UA=1<<G,mA=i(16),bA=i(16);for(e(aA!=0),e(z!=null),e(H!=null),e(0<G),cA=0;cA<aA;++cA){if(15<z[cA])return 0;++mA[z[cA]]}if(mA[0]==aA)return 0;for(bA[1]=0,Y=1;15>Y;++Y){if(mA[Y]>1<<Y)return 0;bA[Y+1]=bA[Y]+mA[Y]}for(cA=0;cA<aA;++cA)Y=z[cA],0<z[cA]&&(xA[bA[Y]++]=cA);if(bA[15]==1)return(z=new P).g=0,z.value=xA[0],y(H,dA,1,UA,z),UA;var TA,MA=-1,DA=UA-1,ue=0,ee=1,Ne=1,ae=1<<G;for(cA=0,Y=1,aA=2;Y<=G;++Y,aA<<=1){if(ee+=Ne<<=1,0>(Ne-=mA[Y]))return 0;for(;0<mA[Y];--mA[Y])(z=new P).g=Y,z.value=xA[cA++],y(H,dA+ue,aA,ae,z),ue=X(ue,Y)}for(Y=G+1,aA=2;15>=Y;++Y,aA<<=1){if(ee+=Ne<<=1,0>(Ne-=mA[Y]))return 0;for(;0<mA[Y];--mA[Y]){if(z=new P,(ue&DA)!=MA){for(dA+=ae,TA=1<<(MA=Y)-G;15>MA&&!(0>=(TA-=mA[MA]));)++MA,TA<<=1;UA+=ae=1<<(TA=MA-G),H[k+(MA=ue&DA)].g=TA+G,H[k+MA].value=dA-k-MA}z.g=Y-G,z.value=xA[cA++],y(H,dA+(ue>>G),aA,ae,z),ue=X(ue,Y)}}return ee!=2*bA[15]-1?0:UA})(c,h,w,C,S,D)}function P(){this.value=this.g=0}function eA(){this.value=this.g=0}function sA(){this.G=a(5,P),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Ta,eA)}function wA(c,h,w,C){e(c!=null),e(h!=null),e(2147483648>C),c.Ca=254,c.I=0,c.b=-8,c.Ka=0,c.oa=h,c.pa=w,c.Jd=h,c.Yc=w+C,c.Zc=4<=C?w+C-4+1:w,fA(c)}function gA(c,h){for(var w=0;0<h--;)w|=lA(c,128)<<h;return w}function hA(c,h){var w=gA(c,h);return oA(c)?-w:w}function CA(c,h,w,C){var S,D=0;for(e(c!=null),e(h!=null),e(4294967288>C),c.Sb=C,c.Ra=0,c.u=0,c.h=0,4<C&&(C=4),S=0;S<C;++S)D+=h[w+S]<<8*S;c.Ra=D,c.bb=C,c.oa=h,c.pa=w}function IA(c){for(;8<=c.u&&c.bb<c.Sb;)c.Ra>>>=8,c.Ra+=c.oa[c.pa+c.bb]<<Gi-8>>>0,++c.bb,c.u-=8;N(c)&&(c.h=1,c.u=0)}function _A(c,h){if(e(0<=h),!c.h&&h<=qr){var w=U(c)&Xr[h];return c.u+=h,IA(c),w}return c.h=1,c.u=0}function m(){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 U(c){return c.Ra>>>(c.u&Gi-1)>>>0}function N(c){return e(c.bb<=c.Sb),c.h||c.bb==c.Sb&&c.u>Gi}function j(c,h){c.u=h,c.h=N(c)}function nA(c){c.u>=mi&&(e(c.u>=mi),IA(c))}function fA(c){e(c!=null&&c.oa!=null),c.pa<c.Zc?(c.I=(c.oa[c.pa++]|c.I<<8)>>>0,c.b+=8):(e(c!=null&&c.oa!=null),c.pa<c.Yc?(c.b+=8,c.I=c.oa[c.pa++]|c.I<<8):c.Ka?c.b=0:(c.I<<=8,c.b+=8,c.Ka=1))}function oA(c){return gA(c,1)}function lA(c,h){var w=c.Ca;0>c.b&&fA(c);var C=c.b,S=w*h>>>8,D=(c.I>>>C>S)+0;for(D?(w-=S,c.I-=S+1<<C>>>0):w=S+1,C=w,S=0;256<=C;)S+=8,C>>=8;return C=7^S+Vi[C],c.b-=C,c.Ca=(w<<C)-1,D}function SA(c,h,w){c[h+0]=w>>24&255,c[h+1]=w>>16&255,c[h+2]=w>>8&255,c[h+3]=255&w}function HA(c,h){return c[h+0]|c[h+1]<<8}function GA(c,h){return HA(c,h)|c[h+2]<<16}function VA(c,h){return HA(c,h)|HA(c,h+2)<<16}function W(c,h){var w=1<<h;return e(c!=null),e(0<h),c.X=i(w),c.X==null?0:(c.Mb=32-h,c.Xa=h,1)}function RA(c,h){e(c!=null),e(h!=null),e(c.Xa==h.Xa),r(h.X,0,c.X,0,1<<h.Xa)}function kA(){this.X=[],this.Xa=this.Mb=0}function te(c,h,w,C){e(w!=null),e(C!=null);var S=w[0],D=C[0];return S==0&&(S=(c*D+h/2)/h),D==0&&(D=(h*S+c/2)/c),0>=S||0>=D?0:(w[0]=S,C[0]=D,1)}function LA(c,h){return c+(1<<h)-1>>>h}function fe(c,h){return((4278255360&c)+(4278255360&h)>>>0&4278255360)+((16711935&c)+(16711935&h)>>>0&16711935)>>>0}function ZA(c,h){E[h]=function(w,C,S,D,H,k,G){var z;for(z=0;z<H;++z){var aA=E[c](k[G+z-1],S,D+z);k[G+z]=fe(w[C+z],aA)}}}function de(){this.ud=this.hd=this.jd=0}function ce(c,h){return((4278124286&(c^h))>>>1)+(c&h)>>>0}function Le(c){return 0<=c&&256>c?c:0>c?0:255<c?255:void 0}function Ie(c,h){return Le(c+(c-h+.5>>1))}function me(c,h,w){return Math.abs(h-w)-Math.abs(c-w)}function ke(c,h,w,C,S,D,H){for(C=D[H-1],w=0;w<S;++w)D[H+w]=C=fe(c[h+w],C)}function _e(c,h,w,C,S){var D;for(D=0;D<w;++D){var H=c[h+D],k=H>>8&255,G=16711935&(G=(G=16711935&H)+((k<<16)+k));C[S+D]=(4278255360&H)+G>>>0}}function ie(c,h){h.jd=255&c,h.hd=c>>8&255,h.ud=c>>16&255}function ye(c,h,w,C,S,D){var H;for(H=0;H<C;++H){var k=h[w+H],G=k>>>8,z=k,aA=255&(aA=(aA=k>>>16)+((c.jd<<24>>24)*(G<<24>>24)>>>5));z=255&(z=(z+=(c.hd<<24>>24)*(G<<24>>24)>>>5)+((c.ud<<24>>24)*(aA<<24>>24)>>>5)),S[D+H]=(4278255360&k)+(aA<<16)+z}}function oe(c,h,w,C,S){E[h]=function(D,H,k,G,z,aA,xA,Y,cA){for(G=xA;G<Y;++G)for(xA=0;xA<cA;++xA)z[aA++]=S(k[C(D[H++])])},E[c]=function(D,H,k,G,z,aA,xA){var Y=8>>D.b,cA=D.Ea,dA=D.K[0],UA=D.w;if(8>Y)for(D=(1<<D.b)-1,UA=(1<<Y)-1;H<k;++H){var mA,bA=0;for(mA=0;mA<cA;++mA)mA&D||(bA=C(G[z++])),aA[xA++]=S(dA[bA&UA]),bA>>=Y}else E["VP8LMapColor"+w](G,z,dA,UA,aA,xA,H,k,cA)}}function vt(c,h,w,C,S){for(w=h+w;h<w;){var D=c[h++];C[S++]=D>>16&255,C[S++]=D>>8&255,C[S++]=255&D}}function Pe(c,h,w,C,S){for(w=h+w;h<w;){var D=c[h++];C[S++]=D>>16&255,C[S++]=D>>8&255,C[S++]=255&D,C[S++]=D>>24&255}}function Qe(c,h,w,C,S){for(w=h+w;h<w;){var D=(H=c[h++])>>16&240|H>>12&15,H=240&H|H>>28&15;C[S++]=D,C[S++]=H}}function Se(c,h,w,C,S){for(w=h+w;h<w;){var D=(H=c[h++])>>16&248|H>>13&7,H=H>>5&224|H>>3&31;C[S++]=D,C[S++]=H}}function ct(c,h,w,C,S){for(w=h+w;h<w;){var D=c[h++];C[S++]=255&D,C[S++]=D>>8&255,C[S++]=D>>16&255}}function ge(c,h,w,C,S,D){if(D==0)for(w=h+w;h<w;)SA(C,((D=c[h++])[0]>>24|D[1]>>8&65280|D[2]<<8&16711680|D[3]<<24)>>>0),S+=32;else r(C,S,c,h,w)}function Je(c,h){E[h][0]=E[c+"0"],E[h][1]=E[c+"1"],E[h][2]=E[c+"2"],E[h][3]=E[c+"3"],E[h][4]=E[c+"4"],E[h][5]=E[c+"5"],E[h][6]=E[c+"6"],E[h][7]=E[c+"7"],E[h][8]=E[c+"8"],E[h][9]=E[c+"9"],E[h][10]=E[c+"10"],E[h][11]=E[c+"11"],E[h][12]=E[c+"12"],E[h][13]=E[c+"13"],E[h][14]=E[c+"0"],E[h][15]=E[c+"0"]}function Be(c){return c==fc||c==lc||c==M0||c==cc}function Ce(){this.eb=[],this.size=this.A=this.fb=0}function ut(){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 De(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ce,this.f.kb=new ut,this.sd=null}function pe(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function We(){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 fi(c){return alert("todo:WebPSamplerProcessPlane"),c.T}function tr(c,h){var w=c.T,C=h.ba.f.RGBA,S=C.eb,D=C.fb+c.ka*C.A,H=pn[h.ba.S],k=c.y,G=c.O,z=c.f,aA=c.N,xA=c.ea,Y=c.W,cA=h.cc,dA=h.dc,UA=h.Mc,mA=h.Nc,bA=c.ka,TA=c.ka+c.T,MA=c.U,DA=MA+1>>1;for(bA==0?H(k,G,null,null,z,aA,xA,Y,z,aA,xA,Y,S,D,null,null,MA):(H(h.ec,h.fc,k,G,cA,dA,UA,mA,z,aA,xA,Y,S,D-C.A,S,D,MA),++w);bA+2<TA;bA+=2)cA=z,dA=aA,UA=xA,mA=Y,aA+=c.Rc,Y+=c.Rc,D+=2*C.A,H(k,(G+=2*c.fa)-c.fa,k,G,cA,dA,UA,mA,z,aA,xA,Y,S,D-C.A,S,D,MA);return G+=c.fa,c.j+TA<c.o?(r(h.ec,h.fc,k,G,MA),r(h.cc,h.dc,z,aA,DA),r(h.Mc,h.Nc,xA,Y,DA),w--):1&TA||H(k,G,null,null,z,aA,xA,Y,z,aA,xA,Y,S,D+C.A,null,null,MA),w}function En(c,h,w){var C=c.F,S=[c.J];if(C!=null){var D=c.U,H=h.ba.S,k=H==R0||H==M0;h=h.ba.f.RGBA;var G=[0],z=c.ka;G[0]=c.T,c.Kb&&(z==0?--G[0]:(--z,S[0]-=c.width),c.j+c.ka+c.T==c.o&&(G[0]=c.o-c.j-z));var aA=h.eb;z=h.fb+z*h.A,c=zh(C,S[0],c.width,D,G,aA,z+(k?0:3),h.A),e(w==G),c&&Be(H)&&wo(aA,z,k,D,G,h.A)}return 0}function ln(c){var h=c.ma,w=h.ba.S,C=11>w,S=w==k0||w==P0||w==R0||w==oc||w==12||Be(w);if(h.memory=null,h.Ib=null,h.Jb=null,h.Nd=null,!fo(h.Oa,c,S?11:12))return 0;if(S&&Be(w)&&ao(),c.da)alert("todo:use_scaling");else{if(C){if(h.Ib=fi,c.Kb){if(w=c.U+1>>1,h.memory=i(c.U+2*w),h.memory==null)return 0;h.ec=h.memory,h.fc=0,h.cc=h.ec,h.dc=h.fc+c.U,h.Mc=h.cc,h.Nc=h.dc+w,h.Ib=tr,ao()}}else alert("todo:EmitYUV");S&&(h.Jb=En,C&&Sn())}if(C&&!c1){for(c=0;256>c;++c)vv[c]=89858*(c-128)+G0>>K0,Cv[c]=-22014*(c-128)+G0,xv[c]=-45773*(c-128),mv[c]=113618*(c-128)+G0>>K0;for(c=mo;c<dc;++c)h=76283*(c-16)+G0>>K0,Fv[c-mo]=Rt(h,255),yv[c-mo]=Rt(h+8>>4,15);c1=1}return 1}function we(c){var h=c.ma,w=c.U,C=c.T;return e(!(1&c.ka)),0>=w||0>=C?0:(w=h.Ib(c,h),h.Jb!=null&&h.Jb(c,h,w),h.Dc+=w,1)}function _n(c){c.ma.memory=null}function Un(c,h,w,C){return _A(c,8)!=47?0:(h[0]=_A(c,14)+1,w[0]=_A(c,14)+1,C[0]=_A(c,1),_A(c,3)!=0?0:!c.h)}function xr(c,h){if(4>c)return c+1;var w=c-2>>1;return(2+(1&c)<<w)+_A(h,w)+1}function Pr(c,h){return 120<h?h-120:1<=(w=((w=iv[h-1])>>4)*c+(8-(15&w)))?w:1;var w}function mt(c,h,w){var C=U(w),S=c[h+=255&C].g-8;return 0<S&&(j(w,w.u+8),C=U(w),h+=c[h].value,h+=C&(1<<S)-1),j(w,w.u+c[h].g),c[h].value}function Pt(c,h,w){return w.g+=c.g,w.value+=c.value<<h>>>0,e(8>=w.g),c.g}function O(c,h,w){var C=c.xc;return e((h=C==0?0:c.vc[c.md*(w>>C)+(h>>C)])<c.Wb),c.Ya[h]}function J(c,h,w,C){var S=c.ab,D=c.c*h,H=c.C;h=H+h;var k=w,G=C;for(C=c.Ta,w=c.Ua;0<S--;){var z=c.gc[S],aA=H,xA=h,Y=k,cA=G,dA=(G=C,k=w,z.Ea);switch(e(aA<xA),e(xA<=z.nc),z.hc){case 2:St(Y,cA,(xA-aA)*dA,G,k);break;case 0:var UA=aA,mA=xA,bA=G,TA=k,MA=(ae=z).Ea;UA==0&&(co(Y,cA,null,null,1,bA,TA),ke(Y,cA+1,0,0,MA-1,bA,TA+1),cA+=MA,TA+=MA,++UA);for(var DA=1<<ae.b,ue=DA-1,ee=LA(MA,ae.b),Ne=ae.K,ae=ae.w+(UA>>ae.b)*ee;UA<mA;){var Ke=Ne,Jt=ae,Oe=1;for(cs(Y,cA,bA,TA-MA,1,bA,TA);Oe<MA;){var se=(Oe&~ue)+DA;se>MA&&(se=MA),(0,ho[Ke[Jt++]>>8&15])(Y,cA+ +Oe,bA,TA+Oe-MA,se-Oe,bA,TA+Oe),Oe=se}cA+=MA,TA+=MA,++UA&ue||(ae+=ee)}xA!=z.nc&&r(G,k-dA,G,k+(xA-aA-1)*dA,dA);break;case 1:for(dA=Y,mA=cA,MA=(Y=z.Ea)-(TA=Y&~(bA=(cA=1<<z.b)-1)),UA=LA(Y,z.b),DA=z.K,z=z.w+(aA>>z.b)*UA;aA<xA;){for(ue=DA,ee=z,Ne=new de,ae=mA+TA,Ke=mA+Y;mA<ae;)ie(ue[ee++],Ne),go(Ne,dA,mA,cA,G,k),mA+=cA,k+=cA;mA<Ke&&(ie(ue[ee++],Ne),go(Ne,dA,mA,MA,G,k),mA+=MA,k+=MA),++aA&bA||(z+=UA)}break;case 3:if(Y==G&&cA==k&&0<z.b){for(mA=G,Y=dA=k+(xA-aA)*dA-(TA=(xA-aA)*LA(z.Ea,z.b)),cA=G,bA=k,UA=[],TA=(MA=TA)-1;0<=TA;--TA)UA[TA]=cA[bA+TA];for(TA=MA-1;0<=TA;--TA)mA[Y+TA]=UA[TA];N0(z,aA,xA,G,dA,G,k)}else N0(z,aA,xA,Y,cA,G,k)}k=C,G=w}G!=w&&r(C,w,k,G,D)}function K(c,h){var w=c.V,C=c.Ba+c.c*c.C,S=h-c.C;if(e(h<=c.l.o),e(16>=S),0<S){var D=c.l,H=c.Ta,k=c.Ua,G=D.width;if(J(c,S,w,C),S=k=[k],e((w=c.C)<(C=h)),e(D.v<D.va),C>D.o&&(C=D.o),w<D.j){var z=D.j-w;w=D.j,S[0]+=z*G}if(w>=C?w=0:(S[0]+=4*D.v,D.ka=w-D.j,D.U=D.va-D.v,D.T=C-w,w=1),w){if(k=k[0],11>(w=c.ca).S){var aA=w.f.RGBA,xA=(C=w.S,S=D.U,D=D.T,z=aA.eb,aA.A),Y=D;for(aA=aA.fb+c.Ma*aA.A;0<Y--;){var cA=H,dA=k,UA=S,mA=z,bA=aA;switch(C){case H0:po(cA,dA,UA,mA,bA);break;case k0:ji(cA,dA,UA,mA,bA);break;case fc:ji(cA,dA,UA,mA,bA),wo(mA,bA,0,UA,1,0);break;case t1:La(cA,dA,UA,mA,bA);break;case P0:ge(cA,dA,UA,mA,bA,1);break;case lc:ge(cA,dA,UA,mA,bA,1),wo(mA,bA,0,UA,1,0);break;case R0:ge(cA,dA,UA,mA,bA,0);break;case M0:ge(cA,dA,UA,mA,bA,0),wo(mA,bA,1,UA,1,0);break;case oc:Wi(cA,dA,UA,mA,bA);break;case cc:Wi(cA,dA,UA,mA,bA),qh(mA,bA,UA,1,0);break;case r1:Xi(cA,dA,UA,mA,bA);break;default:e(0)}k+=G,aA+=xA}c.Ma+=D}else alert("todo:EmitRescaledRowsYUVA");e(c.Ma<=w.height)}}c.C=h,e(c.C<=c.i)}function V(c){var h;if(0<c.ua)return 0;for(h=0;h<c.Wb;++h){var w=c.Ya[h].G,C=c.Ya[h].H;if(0<w[1][C[1]+0].g||0<w[2][C[2]+0].g||0<w[3][C[3]+0].g)return 0}return 1}function Z(c,h,w,C,S,D){if(c.Z!=0){var H=c.qd,k=c.rd;for(e(Yi[c.Z]!=null);h<w;++h)Yi[c.Z](H,k,C,S,C,S,D),H=C,k=S,S+=D;c.qd=H,c.rd=k}}function tA(c,h){var w=c.l.ma,C=w.Z==0||w.Z==1?c.l.j:c.C;if(C=c.C<C?C:c.C,e(h<=c.l.o),h>C){var S=c.l.width,D=w.ca,H=w.tb+S*C,k=c.V,G=c.Ba+c.c*C,z=c.gc;e(c.ab==1),e(z[0].hc==3),Yn(z[0],C,h,k,G,D,H),Z(w,C,h,D,H,S)}c.C=c.Ma=h}function pA(c,h,w,C,S,D,H){var k=c.$/C,G=c.$%C,z=c.m,aA=c.s,xA=w+c.$,Y=xA;S=w+C*S;var cA=w+C*D,dA=280+aA.ua,UA=c.Pb?k:16777216,mA=0<aA.ua?aA.Wa:null,bA=aA.wc,TA=xA<cA?O(aA,G,k):null;e(c.C<D),e(cA<=S);var MA=!1;A:for(;;){for(;MA||xA<cA;){var DA=0;if(k>=UA){var ue=xA-w;e((UA=c).Pb),UA.wd=UA.m,UA.xd=ue,0<UA.s.ua&&RA(UA.s.Wa,UA.s.vb),UA=k+sv}if(G&bA||(TA=O(aA,G,k)),e(TA!=null),TA.Qb&&(h[xA]=TA.qb,MA=!0),!MA)if(nA(z),TA.jc){DA=z,ue=h;var ee=xA,Ne=TA.pd[U(DA)&Ta-1];e(TA.jc),256>Ne.g?(j(DA,DA.u+Ne.g),ue[ee]=Ne.value,DA=0):(j(DA,DA.u+Ne.g-256),e(256<=Ne.value),DA=Ne.value),DA==0&&(MA=!0)}else DA=mt(TA.G[0],TA.H[0],z);if(z.h)break;if(MA||256>DA){if(!MA)if(TA.nd)h[xA]=(TA.qb|DA<<8)>>>0;else{if(nA(z),MA=mt(TA.G[1],TA.H[1],z),nA(z),ue=mt(TA.G[2],TA.H[2],z),ee=mt(TA.G[3],TA.H[3],z),z.h)break;h[xA]=(ee<<24|MA<<16|DA<<8|ue)>>>0}if(MA=!1,++xA,++G>=C&&(G=0,++k,H!=null&&k<=D&&!(k%16)&&H(c,k),mA!=null))for(;Y<xA;)DA=h[Y++],mA.X[(506832829*DA&4294967295)>>>mA.Mb]=DA}else if(280>DA){if(DA=xr(DA-256,z),ue=mt(TA.G[4],TA.H[4],z),nA(z),ue=Pr(C,ue=xr(ue,z)),z.h)break;if(xA-w<ue||S-xA<DA)break A;for(ee=0;ee<DA;++ee)h[xA+ee]=h[xA+ee-ue];for(xA+=DA,G+=DA;G>=C;)G-=C,++k,H!=null&&k<=D&&!(k%16)&&H(c,k);if(e(xA<=S),G&bA&&(TA=O(aA,G,k)),mA!=null)for(;Y<xA;)DA=h[Y++],mA.X[(506832829*DA&4294967295)>>>mA.Mb]=DA}else{if(!(DA<dA))break A;for(MA=DA-280,e(mA!=null);Y<xA;)DA=h[Y++],mA.X[(506832829*DA&4294967295)>>>mA.Mb]=DA;DA=xA,e(!(MA>>>(ue=mA).Xa)),h[DA]=ue.X[MA],MA=!0}MA||e(z.h==N(z))}if(c.Pb&&z.h&&xA<S)e(c.m.h),c.a=5,c.m=c.wd,c.$=c.xd,0<c.s.ua&&RA(c.s.vb,c.s.Wa);else{if(z.h)break A;H?.(c,k>D?D:k),c.a=0,c.$=xA-w}return 1}return c.a=3,0}function yA(c){e(c!=null),c.vc=null,c.yc=null,c.Ya=null;var h=c.Wa;h!=null&&(h.X=null),c.vb=null,e(c!=null)}function BA(){var c=new Fe;return c==null?null:(c.a=0,c.xb=a1,Je("Predictor","VP8LPredictors"),Je("Predictor","VP8LPredictors_C"),Je("PredictorAdd","VP8LPredictorsAdd"),Je("PredictorAdd","VP8LPredictorsAdd_C"),St=_e,go=ye,po=vt,ji=Pe,Wi=Qe,Xi=Se,La=ct,E.VP8LMapColor32b=zn,E.VP8LMapColor8b=uo,c)}function vA(c,h,w,C,S){var D=1,H=[c],k=[h],G=C.m,z=C.s,aA=null,xA=0;A:for(;;){if(w)for(;D&&_A(G,1);){var Y=H,cA=k,dA=C,UA=1,mA=dA.m,bA=dA.gc[dA.ab],TA=_A(mA,2);if(dA.Oc&1<<TA)D=0;else{switch(dA.Oc|=1<<TA,bA.hc=TA,bA.Ea=Y[0],bA.nc=cA[0],bA.K=[null],++dA.ab,e(4>=dA.ab),TA){case 0:case 1:bA.b=_A(mA,3)+2,UA=vA(LA(bA.Ea,bA.b),LA(bA.nc,bA.b),0,dA,bA.K),bA.K=bA.K[0];break;case 3:var MA,DA=_A(mA,8)+1,ue=16<DA?0:4<DA?1:2<DA?2:3;if(Y[0]=LA(bA.Ea,ue),bA.b=ue,MA=UA=vA(DA,1,0,dA,bA.K)){var ee,Ne=DA,ae=bA,Ke=1<<(8>>ae.b),Jt=i(Ke);if(Jt==null)MA=0;else{var Oe=ae.K[0],se=ae.w;for(Jt[0]=ae.K[0][0],ee=1;ee<1*Ne;++ee)Jt[ee]=fe(Oe[se+ee],Jt[ee-1]);for(;ee<4*Ke;++ee)Jt[ee]=0;ae.K[0]=null,ae.K[0]=Jt,MA=1}}UA=MA;break;case 2:break;default:e(0)}D=UA}}if(H=H[0],k=k[0],D&&_A(G,1)&&!(D=1<=(xA=_A(G,4))&&11>=xA)){C.a=3;break A}var qA;if(qA=D)e:{var Lt,be,Ge,pt=C,lr=H,Lr=k,Et=xA,Cr=w,Ir=pt.m,Zt=pt.s,je=[null],Ze=1,_t=0,$e=av[Et];t:for(;;){if(Cr&&_A(Ir,1)){var cr=_A(Ir,3)+2,Ln=LA(lr,cr),It=LA(Lr,cr),Rr=Ln*It;if(!vA(Ln,It,0,pt,je))break t;for(je=je[0],Zt.xc=cr,Lt=0;Lt<Rr;++Lt){var ft=je[Lt]>>8&65535;je[Lt]=ft,ft>=Ze&&(Ze=ft+1)}}if(Ir.h)break t;for(be=0;5>be;++be){var $t=n1[be];!be&&0<Et&&($t+=1<<Et),_t<$t&&(_t=$t)}var Yr=a(Ze*$e,P),Nr=Ze,Jr=a(Nr,sA);if(Jr==null)var Zr=null;else e(65536>=Nr),Zr=Jr;var Mr=i(_t);if(Zr==null||Mr==null||Yr==null){pt.a=1;break t}var $r=Yr;for(Lt=Ge=0;Lt<Ze;++Lt){var dt=Zr[Lt],An=dt.G,In=dt.H,Na=0,Fi=1,ur=0;for(be=0;5>be;++be){$t=n1[be],An[be]=$r,In[be]=Ge,!be&&0<Et&&($t+=1<<Et);n:{var j0,gc=$t,W0=pt,xo=Mr,Uv=$r,bv=Ge,pc=0,Ji=W0.m,Qv=_A(Ji,1);if(n(xo,0,0,gc),Qv){var Sv=_A(Ji,1)+1,Tv=_A(Ji,1),d1=_A(Ji,Tv==0?1:8);xo[d1]=1,Sv==2&&(xo[d1=_A(Ji,8)]=1);var X0=1}else{var g1=i(19),p1=_A(Ji,4)+4;if(19<p1){W0.a=3;var q0=0;break n}for(j0=0;j0<p1;++j0)g1[nv[j0]]=_A(Ji,3);var Bc=void 0,Co=void 0,B1=W0,Lv=g1,z0=gc,w1=xo,wc=0,Zi=B1.m,v1=8,m1=a(128,P);r:for(;T(m1,0,7,Lv,19);){if(_A(Zi,1)){var Iv=2+2*_A(Zi,3);if((Bc=2+_A(Zi,Iv))>z0)break r}else Bc=z0;for(Co=0;Co<z0&&Bc--;){nA(Zi);var x1=m1[0+(127&U(Zi))];j(Zi,Zi.u+x1.g);var hs=x1.value;if(16>hs)w1[Co++]=hs,hs!=0&&(v1=hs);else{var Nv=hs==16,C1=hs-16,Ov=tv[C1],F1=_A(Zi,ev[C1])+Ov;if(Co+F1>z0)break r;for(var Dv=Nv?v1:0;0<F1--;)w1[Co++]=Dv}}wc=1;break r}wc||(B1.a=3),X0=wc}(X0=X0&&!Ji.h)&&(pc=T(Uv,bv,8,xo,gc)),X0&&pc!=0?q0=pc:(W0.a=3,q0=0)}if(q0==0)break t;if(Fi&&rv[be]==1&&(Fi=$r[Ge].g==0),Na+=$r[Ge].g,Ge+=q0,3>=be){var Fo,vc=Mr[0];for(Fo=1;Fo<$t;++Fo)Mr[Fo]>vc&&(vc=Mr[Fo]);ur+=vc}}if(dt.nd=Fi,dt.Qb=0,Fi&&(dt.qb=(An[3][In[3]+0].value<<24|An[1][In[1]+0].value<<16|An[2][In[2]+0].value)>>>0,Na==0&&256>An[0][In[0]+0].value&&(dt.Qb=1,dt.qb+=An[0][In[0]+0].value<<8)),dt.jc=!dt.Qb&&6>ur,dt.jc){var Y0,yi=dt;for(Y0=0;Y0<Ta;++Y0){var $i=Y0,Aa=yi.pd[$i],J0=yi.G[0][yi.H[0]+$i];256<=J0.value?(Aa.g=J0.g+256,Aa.value=J0.value):(Aa.g=0,Aa.value=0,$i>>=Pt(J0,8,Aa),$i>>=Pt(yi.G[1][yi.H[1]+$i],16,Aa),$i>>=Pt(yi.G[2][yi.H[2]+$i],0,Aa),Pt(yi.G[3][yi.H[3]+$i],24,Aa))}}}Zt.vc=je,Zt.Wb=Ze,Zt.Ya=Zr,Zt.yc=Yr,qA=1;break e}qA=0}if(!(D=qA)){C.a=3;break A}if(0<xA){if(z.ua=1<<xA,!W(z.Wa,xA)){C.a=1,D=0;break A}}else z.ua=0;var mc=C,y1=H,Hv=k,xc=mc.s,Cc=xc.xc;if(mc.c=y1,mc.i=Hv,xc.md=LA(y1,Cc),xc.wc=Cc==0?-1:(1<<Cc)-1,w){C.xb=dv;break A}if((aA=i(H*k))==null){C.a=1,D=0;break A}D=(D=pA(C,aA,0,H,k,k,null))&&!G.h;break A}return D?(S!=null?S[0]=aA:(e(aA==null),e(w)),C.$=0,w||yA(z)):yA(z),D}function FA(c,h){var w=c.c*c.i,C=w+h+16*h;return e(c.c<=h),c.V=i(C),c.V==null?(c.Ta=null,c.Ua=0,c.a=1,0):(c.Ta=c.V,c.Ua=c.Ba+w+h,1)}function PA(c,h){var w=c.C,C=h-w,S=c.V,D=c.Ba+c.c*w;for(e(h<=c.l.o);0<C;){var H=16<C?16:C,k=c.l.ma,G=c.l.width,z=G*H,aA=k.ca,xA=k.tb+G*w,Y=c.Ta,cA=c.Ua;J(c,H,S,D),Yh(Y,cA,aA,xA,z),Z(k,w,w+H,aA,xA,G),C-=H,S+=H*c.c,w+=H}e(w==h),c.C=c.Ma=h}function jA(){this.ub=this.yd=this.td=this.Rb=0}function YA(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function KA(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function zA(){this.Yb=(function(){var c=[];return(function h(w,C,S){for(var D=S[C],H=0;H<D&&(w.push(S.length>C+1?[]:0),!(S.length<C+1));H++)h(w[H],C+1,S)})(c,0,[3,11]),c})()}function ve(){this.jb=i(3),this.Wc=s([4,8],zA),this.Xc=s([4,17],zA)}function it(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Re(){this.ld=this.La=this.dd=this.tc=0}function yt(){this.Na=this.la=0}function jn(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function bn(){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 Wn(){this.uc=this.M=this.Nb=0,this.wa=Array(new Re),this.Y=0,this.ya=Array(new bn),this.aa=0,this.l=new ns}function cn(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Pi(){this.cb=this.a=0,this.sc="",this.m=new m,this.Od=new jA,this.Kc=new YA,this.ed=new it,this.Qa=new KA,this.Ic=this.$c=this.Aa=0,this.D=new Wn,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,m),this.ia=0,this.pb=a(4,jn),this.Pa=new ve,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new cn),this.Hd=0,this.rb=Array(new yt),this.sb=0,this.wa=Array(new Re),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 bn),this.L=this.aa=0,this.gd=s([4,2],Re),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 Rt(c,h){return 0>c?0:c>h?h:c}function ns(){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 Wl(){var c=new Pi;return c!=null&&(c.a=0,c.sc="OK",c.cb=0,c.Xb=0,vo||(vo=is)),c}function Mt(c,h,w){return c.a==0&&(c.a=h,c.sc=w,c.cb=0),0}function C0(c,h,w){return 3<=w&&c[h+0]==157&&c[h+1]==1&&c[h+2]==42}function Xn(c,h){if(c==null)return 0;if(c.a=0,c.sc="OK",h==null)return Mt(c,2,"null VP8Io passed to VP8GetHeaders()");var w=h.data,C=h.w,S=h.ha;if(4>S)return Mt(c,7,"Truncated header.");var D=w[C+0]|w[C+1]<<8|w[C+2]<<16,H=c.Od;if(H.Rb=!(1&D),H.td=D>>1&7,H.yd=D>>4&1,H.ub=D>>5,3<H.td)return Mt(c,3,"Incorrect keyframe parameters.");if(!H.yd)return Mt(c,4,"Frame not displayable.");C+=3,S-=3;var k=c.Kc;if(H.Rb){if(7>S)return Mt(c,7,"cannot parse picture header");if(!C0(w,C,S))return Mt(c,3,"Bad code word");k.c=16383&(w[C+4]<<8|w[C+3]),k.Td=w[C+4]>>6,k.i=16383&(w[C+6]<<8|w[C+5]),k.Ud=w[C+6]>>6,C+=7,S-=7,c.za=k.c+15>>4,c.Ub=k.i+15>>4,h.width=k.c,h.height=k.i,h.Da=0,h.j=0,h.v=0,h.va=h.width,h.o=h.height,h.da=0,h.ib=h.width,h.hb=h.height,h.U=h.width,h.T=h.height,n((D=c.Pa).jb,0,255,D.jb.length),e((D=c.Qa)!=null),D.Cb=0,D.Bb=0,D.Fb=1,n(D.Zb,0,0,D.Zb.length),n(D.Lb,0,0,D.Lb)}if(H.ub>S)return Mt(c,7,"bad partition length");wA(D=c.m,w,C,H.ub),C+=H.ub,S-=H.ub,H.Rb&&(k.Ld=oA(D),k.Kd=oA(D)),k=c.Qa;var G,z=c.Pa;if(e(D!=null),e(k!=null),k.Cb=oA(D),k.Cb){if(k.Bb=oA(D),oA(D)){for(k.Fb=oA(D),G=0;4>G;++G)k.Zb[G]=oA(D)?hA(D,7):0;for(G=0;4>G;++G)k.Lb[G]=oA(D)?hA(D,6):0}if(k.Bb)for(G=0;3>G;++G)z.jb[G]=oA(D)?gA(D,8):255}else k.Bb=0;if(D.Ka)return Mt(c,3,"cannot parse segment header");if((k=c.ed).zd=oA(D),k.Tb=gA(D,6),k.wb=gA(D,3),k.Pc=oA(D),k.Pc&&oA(D)){for(z=0;4>z;++z)oA(D)&&(k.vd[z]=hA(D,6));for(z=0;4>z;++z)oA(D)&&(k.od[z]=hA(D,6))}if(c.L=k.Tb==0?0:k.zd?1:2,D.Ka)return Mt(c,3,"cannot parse filter header");var aA=S;if(S=G=C,C=G+aA,k=aA,c.Xb=(1<<gA(c.m,2))-1,aA<3*(z=c.Xb))w=7;else{for(G+=3*z,k-=3*z,aA=0;aA<z;++aA){var xA=w[S+0]|w[S+1]<<8|w[S+2]<<16;xA>k&&(xA=k),wA(c.Jc[+aA],w,G,xA),G+=xA,k-=xA,S+=3}wA(c.Jc[+z],w,G,k),w=G<C?0:5}if(w!=0)return Mt(c,w,"cannot parse partitions");for(w=gA(G=c.m,7),S=oA(G)?hA(G,4):0,C=oA(G)?hA(G,4):0,k=oA(G)?hA(G,4):0,z=oA(G)?hA(G,4):0,G=oA(G)?hA(G,4):0,aA=c.Qa,xA=0;4>xA;++xA){if(aA.Cb){var Y=aA.Zb[xA];aA.Fb||(Y+=w)}else{if(0<xA){c.pb[xA]=c.pb[0];continue}Y=w}var cA=c.pb[xA];cA.Sc[0]=uc[Rt(Y+S,127)],cA.Sc[1]=hc[Rt(Y+0,127)],cA.Eb[0]=2*uc[Rt(Y+C,127)],cA.Eb[1]=101581*hc[Rt(Y+k,127)]>>16,8>cA.Eb[1]&&(cA.Eb[1]=8),cA.Qc[0]=uc[Rt(Y+z,117)],cA.Qc[1]=hc[Rt(Y+G,127)],cA.lc=Y+G}if(!H.Rb)return Mt(c,4,"Not a key frame.");for(oA(D),H=c.Pa,w=0;4>w;++w){for(S=0;8>S;++S)for(C=0;3>C;++C)for(k=0;11>k;++k)z=lA(D,uv[w][S][C][k])?gA(D,8):lv[w][S][C][k],H.Wc[w][S].Yb[C][k]=z;for(S=0;17>S;++S)H.Xc[w][S]=H.Wc[w][hv[S]]}return c.kc=oA(D),c.kc&&(c.Bd=gA(D,8)),c.cb=1}function is(c,h,w,C,S,D,H){var k=h[S].Yb[w];for(w=0;16>S;++S){if(!lA(c,k[w+0]))return S;for(;!lA(c,k[w+1]);)if(k=h[++S].Yb[0],w=0,S==16)return 16;var G=h[S+1].Yb;if(lA(c,k[w+2])){var z=c,aA=0;if(lA(z,(Y=k)[(xA=w)+3]))if(lA(z,Y[xA+6])){for(k=0,xA=2*(aA=lA(z,Y[xA+8]))+(Y=lA(z,Y[xA+9+aA])),aA=0,Y=ov[xA];Y[k];++k)aA+=aA+lA(z,Y[k]);aA+=3+(8<<xA)}else lA(z,Y[xA+7])?(aA=7+2*lA(z,165),aA+=lA(z,145)):aA=5+lA(z,159);else aA=lA(z,Y[xA+4])?3+lA(z,Y[xA+5]):2;k=G[2]}else aA=1,k=G[1];G=H+fv[S],0>(z=c).b&&fA(z);var xA,Y=z.b,cA=(xA=z.Ca>>1)-(z.I>>Y)>>31;--z.b,z.Ca+=cA,z.Ca|=1,z.I-=(xA+1&cA)<<Y,D[G]=((aA^cA)-cA)*C[(0<S)+0]}return 16}function F0(c){var h=c.rb[c.sb-1];h.la=0,h.Na=0,n(c.zc,0,0,c.zc.length),c.ja=0}function un(c,h,w,C,S){S=c[h+w+32*C]+(S>>3),c[h+w+32*C]=-256&S?0>S?0:255:S}function qt(c,h,w,C,S,D){un(c,h,0,w,C+S),un(c,h,1,w,C+D),un(c,h,2,w,C-D),un(c,h,3,w,C-S)}function li(c){return(20091*c>>16)+c}function y0(c,h,w,C){var S,D=0,H=i(16);for(S=0;4>S;++S){var k=c[h+0]+c[h+8],G=c[h+0]-c[h+8],z=(35468*c[h+4]>>16)-li(c[h+12]),aA=li(c[h+4])+(35468*c[h+12]>>16);H[D+0]=k+aA,H[D+1]=G+z,H[D+2]=G-z,H[D+3]=k-aA,D+=4,h++}for(S=D=0;4>S;++S)k=(c=H[D+0]+4)+H[D+8],G=c-H[D+8],z=(35468*H[D+4]>>16)-li(H[D+12]),un(w,C,0,0,k+(aA=li(H[D+4])+(35468*H[D+12]>>16))),un(w,C,1,0,G+z),un(w,C,2,0,G-z),un(w,C,3,0,k-aA),D++,C+=32}function Xl(c,h,w,C){var S=c[h+0]+4,D=35468*c[h+4]>>16,H=li(c[h+4]),k=35468*c[h+1]>>16;qt(w,C,0,S+H,c=li(c[h+1]),k),qt(w,C,1,S+D,c,k),qt(w,C,2,S-D,c,k),qt(w,C,3,S-H,c,k)}function ql(c,h,w,C,S){y0(c,h,w,C),S&&y0(c,h+16,w,C+4)}function qn(c,h,w,C){Ia(c,h+0,w,C,1),Ia(c,h+32,w,C+128,1)}function E0(c,h,w,C){var S;for(c=c[h+0]+4,S=0;4>S;++S)for(h=0;4>h;++h)un(w,C,h,S,c)}function _0(c,h,w,C){c[h+0]&&ze(c,h+0,w,C),c[h+16]&&ze(c,h+16,w,C+4),c[h+32]&&ze(c,h+32,w,C+128),c[h+48]&&ze(c,h+48,w,C+128+4)}function as(c,h,w,C){var S,D=i(16);for(S=0;4>S;++S){var H=c[h+0+S]+c[h+12+S],k=c[h+4+S]+c[h+8+S],G=c[h+4+S]-c[h+8+S],z=c[h+0+S]-c[h+12+S];D[0+S]=H+k,D[8+S]=H-k,D[4+S]=z+G,D[12+S]=z-G}for(S=0;4>S;++S)H=(c=D[0+4*S]+3)+D[3+4*S],k=D[1+4*S]+D[2+4*S],G=D[1+4*S]-D[2+4*S],z=c-D[3+4*S],w[C+0]=H+k>>3,w[C+16]=z+G>>3,w[C+32]=H-k>>3,w[C+48]=z-G>>3,C+=64}function xa(c,h,w){var C,S=h-32,D=zr,H=255-c[S-1];for(C=0;C<w;++C){var k,G=D,z=H+c[h-1];for(k=0;k<w;++k)c[h+k]=G[z+c[S+k]];h+=32}}function zl(c,h){xa(c,h,4)}function Yl(c,h){xa(c,h,8)}function Jl(c,h){xa(c,h,16)}function Zs(c,h){var w;for(w=0;16>w;++w)r(c,h+32*w,c,h-32,16)}function U0(c,h){var w;for(w=16;0<w;--w)n(c,h,c[h-1],16),h+=32}function Qn(c,h,w){var C;for(C=0;16>C;++C)n(h,w+32*C,c,16)}function Zl(c,h){var w,C=16;for(w=0;16>w;++w)C+=c[h-1+32*w]+c[h+w-32];Qn(C>>5,c,h)}function Ca(c,h){var w,C=8;for(w=0;16>w;++w)C+=c[h-1+32*w];Qn(C>>4,c,h)}function $s(c,h){var w,C=8;for(w=0;16>w;++w)C+=c[h+w-32];Qn(C>>4,c,h)}function $l(c,h){Qn(128,c,h)}function Ee(c,h,w){return c+2*h+w+2>>2}function Ac(c,h){var w,C=h-32;for(C=new Uint8Array([Ee(c[C-1],c[C+0],c[C+1]),Ee(c[C+0],c[C+1],c[C+2]),Ee(c[C+1],c[C+2],c[C+3]),Ee(c[C+2],c[C+3],c[C+4])]),w=0;4>w;++w)r(c,h+32*w,C,0,C.length)}function ec(c,h){var w=c[h-1],C=c[h-1+32],S=c[h-1+64],D=c[h-1+96];SA(c,h+0,16843009*Ee(c[h-1-32],w,C)),SA(c,h+32,16843009*Ee(w,C,S)),SA(c,h+64,16843009*Ee(C,S,D)),SA(c,h+96,16843009*Ee(S,D,D))}function tc(c,h){var w,C=4;for(w=0;4>w;++w)C+=c[h+w-32]+c[h-1+32*w];for(C>>=3,w=0;4>w;++w)n(c,h+32*w,C,4)}function ci(c,h){var w=c[h-1+0],C=c[h-1+32],S=c[h-1+64],D=c[h-1-32],H=c[h+0-32],k=c[h+1-32],G=c[h+2-32],z=c[h+3-32];c[h+0+96]=Ee(C,S,c[h-1+96]),c[h+1+96]=c[h+0+64]=Ee(w,C,S),c[h+2+96]=c[h+1+64]=c[h+0+32]=Ee(D,w,C),c[h+3+96]=c[h+2+64]=c[h+1+32]=c[h+0+0]=Ee(H,D,w),c[h+3+64]=c[h+2+32]=c[h+1+0]=Ee(k,H,D),c[h+3+32]=c[h+2+0]=Ee(G,k,H),c[h+3+0]=Ee(z,G,k)}function ui(c,h){var w=c[h+1-32],C=c[h+2-32],S=c[h+3-32],D=c[h+4-32],H=c[h+5-32],k=c[h+6-32],G=c[h+7-32];c[h+0+0]=Ee(c[h+0-32],w,C),c[h+1+0]=c[h+0+32]=Ee(w,C,S),c[h+2+0]=c[h+1+32]=c[h+0+64]=Ee(C,S,D),c[h+3+0]=c[h+2+32]=c[h+1+64]=c[h+0+96]=Ee(S,D,H),c[h+3+32]=c[h+2+64]=c[h+1+96]=Ee(D,H,k),c[h+3+64]=c[h+2+96]=Ee(H,k,G),c[h+3+96]=Ee(k,G,G)}function rc(c,h){var w=c[h-1+0],C=c[h-1+32],S=c[h-1+64],D=c[h-1-32],H=c[h+0-32],k=c[h+1-32],G=c[h+2-32],z=c[h+3-32];c[h+0+0]=c[h+1+64]=D+H+1>>1,c[h+1+0]=c[h+2+64]=H+k+1>>1,c[h+2+0]=c[h+3+64]=k+G+1>>1,c[h+3+0]=G+z+1>>1,c[h+0+96]=Ee(S,C,w),c[h+0+64]=Ee(C,w,D),c[h+0+32]=c[h+1+96]=Ee(w,D,H),c[h+1+32]=c[h+2+96]=Ee(D,H,k),c[h+2+32]=c[h+3+96]=Ee(H,k,G),c[h+3+32]=Ee(k,G,z)}function nc(c,h){var w=c[h+0-32],C=c[h+1-32],S=c[h+2-32],D=c[h+3-32],H=c[h+4-32],k=c[h+5-32],G=c[h+6-32],z=c[h+7-32];c[h+0+0]=w+C+1>>1,c[h+1+0]=c[h+0+64]=C+S+1>>1,c[h+2+0]=c[h+1+64]=S+D+1>>1,c[h+3+0]=c[h+2+64]=D+H+1>>1,c[h+0+32]=Ee(w,C,S),c[h+1+32]=c[h+0+96]=Ee(C,S,D),c[h+2+32]=c[h+1+96]=Ee(S,D,H),c[h+3+32]=c[h+2+96]=Ee(D,H,k),c[h+3+64]=Ee(H,k,G),c[h+3+96]=Ee(k,G,z)}function ss(c,h){var w=c[h-1+0],C=c[h-1+32],S=c[h-1+64],D=c[h-1+96];c[h+0+0]=w+C+1>>1,c[h+2+0]=c[h+0+32]=C+S+1>>1,c[h+2+32]=c[h+0+64]=S+D+1>>1,c[h+1+0]=Ee(w,C,S),c[h+3+0]=c[h+1+32]=Ee(C,S,D),c[h+3+32]=c[h+1+64]=Ee(S,D,D),c[h+3+64]=c[h+2+64]=c[h+0+96]=c[h+1+96]=c[h+2+96]=c[h+3+96]=D}function Ao(c,h){var w=c[h-1+0],C=c[h-1+32],S=c[h-1+64],D=c[h-1+96],H=c[h-1-32],k=c[h+0-32],G=c[h+1-32],z=c[h+2-32];c[h+0+0]=c[h+2+32]=w+H+1>>1,c[h+0+32]=c[h+2+64]=C+w+1>>1,c[h+0+64]=c[h+2+96]=S+C+1>>1,c[h+0+96]=D+S+1>>1,c[h+3+0]=Ee(k,G,z),c[h+2+0]=Ee(H,k,G),c[h+1+0]=c[h+3+32]=Ee(w,H,k),c[h+1+32]=c[h+3+64]=Ee(C,w,H),c[h+1+64]=c[h+3+96]=Ee(S,C,w),c[h+1+96]=Ee(D,S,C)}function Fa(c,h){var w;for(w=0;8>w;++w)r(c,h+32*w,c,h-32,8)}function ic(c,h){var w;for(w=0;8>w;++w)n(c,h,c[h-1],8),h+=32}function hi(c,h,w){var C;for(C=0;8>C;++C)n(h,w+32*C,c,8)}function ac(c,h){var w,C=8;for(w=0;8>w;++w)C+=c[h+w-32]+c[h-1+32*w];hi(C>>4,c,h)}function eo(c,h){var w,C=4;for(w=0;8>w;++w)C+=c[h+w-32];hi(C>>3,c,h)}function to(c,h){var w,C=4;for(w=0;8>w;++w)C+=c[h-1+32*w];hi(C>>3,c,h)}function b0(c,h){hi(128,c,h)}function di(c,h,w){var C=c[h-w],S=c[h+0],D=3*(S-C)+sc[1020+c[h-2*w]-c[h+w]],H=D0[112+(D+4>>3)];c[h-w]=zr[255+C+D0[112+(D+3>>3)]],c[h+0]=zr[255+S-H]}function ro(c,h,w,C){var S=c[h+0],D=c[h+w];return gn[255+c[h-2*w]-c[h-w]]>C||gn[255+D-S]>C}function os(c,h,w,C){return 4*gn[255+c[h-w]-c[h+0]]+gn[255+c[h-2*w]-c[h+w]]<=C}function no(c,h,w,C,S){var D=c[h-3*w],H=c[h-2*w],k=c[h-w],G=c[h+0],z=c[h+w],aA=c[h+2*w],xA=c[h+3*w];return 4*gn[255+k-G]+gn[255+H-z]>C?0:gn[255+c[h-4*w]-D]<=S&&gn[255+D-H]<=S&&gn[255+H-k]<=S&&gn[255+xA-aA]<=S&&gn[255+aA-z]<=S&&gn[255+z-G]<=S}function ya(c,h,w,C){var S=2*C+1;for(C=0;16>C;++C)os(c,h+C,w,S)&&di(c,h+C,w)}function io(c,h,w,C){var S=2*C+1;for(C=0;16>C;++C)os(c,h+C*w,1,S)&&di(c,h+C*w,1)}function Q0(c,h,w,C){var S;for(S=3;0<S;--S)ya(c,h+=4*w,w,C)}function S0(c,h,w,C){var S;for(S=3;0<S;--S)io(c,h+=4,w,C)}function gi(c,h,w,C,S,D,H,k){for(D=2*D+1;0<S--;){if(no(c,h,w,D,H))if(ro(c,h,w,k))di(c,h,w);else{var G=c,z=h,aA=w,xA=G[z-2*aA],Y=G[z-aA],cA=G[z+0],dA=G[z+aA],UA=G[z+2*aA],mA=27*(TA=sc[1020+3*(cA-Y)+sc[1020+xA-dA]])+63>>7,bA=18*TA+63>>7,TA=9*TA+63>>7;G[z-3*aA]=zr[255+G[z-3*aA]+TA],G[z-2*aA]=zr[255+xA+bA],G[z-aA]=zr[255+Y+mA],G[z+0]=zr[255+cA-mA],G[z+aA]=zr[255+dA-bA],G[z+2*aA]=zr[255+UA-TA]}h+=C}}function pi(c,h,w,C,S,D,H,k){for(D=2*D+1;0<S--;){if(no(c,h,w,D,H))if(ro(c,h,w,k))di(c,h,w);else{var G=c,z=h,aA=w,xA=G[z-aA],Y=G[z+0],cA=G[z+aA],dA=D0[112+(4+(UA=3*(Y-xA))>>3)],UA=D0[112+(UA+3>>3)],mA=dA+1>>1;G[z-2*aA]=zr[255+G[z-2*aA]+mA],G[z-aA]=zr[255+xA+UA],G[z+0]=zr[255+Y-dA],G[z+aA]=zr[255+cA-mA]}h+=C}}function T0(c,h,w,C,S,D){gi(c,h,w,1,16,C,S,D)}function Ea(c,h,w,C,S,D){gi(c,h,1,w,16,C,S,D)}function L0(c,h,w,C,S,D){var H;for(H=3;0<H;--H)pi(c,h+=4*w,w,1,16,C,S,D)}function p(c,h,w,C,S,D){var H;for(H=3;0<H;--H)pi(c,h+=4,1,w,16,C,S,D)}function b(c,h,w,C,S,D,H,k){gi(c,h,S,1,8,D,H,k),gi(w,C,S,1,8,D,H,k)}function AA(c,h,w,C,S,D,H,k){gi(c,h,1,S,8,D,H,k),gi(w,C,1,S,8,D,H,k)}function iA(c,h,w,C,S,D,H,k){pi(c,h+4*S,S,1,8,D,H,k),pi(w,C+4*S,S,1,8,D,H,k)}function uA(c,h,w,C,S,D,H,k){pi(c,h+4,1,S,8,D,H,k),pi(w,C+4,1,S,8,D,H,k)}function QA(){this.ba=new De,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new We,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function OA(){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 ne(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function le(){this.ua=0,this.Wa=new kA,this.vb=new kA,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new sA,this.yc=new P}function Fe(){this.xb=this.a=0,this.l=new ns,this.ca=new De,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 le,this.ab=0,this.gc=a(4,ne),this.Oc=0}function Te(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ns,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ve(c,h,w,C,S,D,H){for(c=c==null?0:c[h+0],h=0;h<H;++h)S[D+h]=c+w[C+h]&255,c=S[D+h]}function Ft(c,h,w,C,S,D,H){var k;if(c==null)Ve(null,null,w,C,S,D,H);else for(k=0;k<H;++k)S[D+k]=c[h+k]+w[C+k]&255}function Kt(c,h,w,C,S,D,H){if(c==null)Ve(null,null,w,C,S,D,H);else{var k,G=c[h+0],z=G,aA=G;for(k=0;k<H;++k)z=aA+(G=c[h+k])-z,aA=w[C+k]+(-256&z?0>z?0:255:z)&255,z=G,S[D+k]=aA}}function ht(c,h,w,C){var S=h.width,D=h.o;if(e(c!=null&&h!=null),0>w||0>=C||w+C>D)return null;if(!c.Cc){if(c.ga==null){var H;if(c.ga=new Te,(H=c.ga==null)||(H=h.width*h.o,e(c.Gb.length==0),c.Gb=i(H),c.Uc=0,c.Gb==null?H=0:(c.mb=c.Gb,c.nb=c.Uc,c.rc=null,H=1),H=!H),!H){H=c.ga;var k=c.Fa,G=c.P,z=c.qc,aA=c.mb,xA=c.nb,Y=G+1,cA=z-1,dA=H.l;if(e(k!=null&&aA!=null&&h!=null),Yi[0]=null,Yi[1]=Ve,Yi[2]=Ft,Yi[3]=Kt,H.ca=aA,H.tb=xA,H.c=h.width,H.i=h.height,e(0<H.c&&0<H.i),1>=z)h=0;else if(H.$a=3&k[G+0],H.Z=k[G+0]>>2&3,H.Lc=k[G+0]>>4&3,G=k[G+0]>>6&3,0>H.$a||1<H.$a||4<=H.Z||1<H.Lc||G)h=0;else if(dA.put=we,dA.ac=ln,dA.bc=_n,dA.ma=H,dA.width=h.width,dA.height=h.height,dA.Da=h.Da,dA.v=h.v,dA.va=h.va,dA.j=h.j,dA.o=h.o,H.$a)A:{e(H.$a==1),h=BA();e:for(;;){if(h==null){h=0;break A}if(e(H!=null),H.mc=h,h.c=H.c,h.i=H.i,h.l=H.l,h.l.ma=H,h.l.width=H.c,h.l.height=H.i,h.a=0,CA(h.m,k,Y,cA),!vA(H.c,H.i,1,h,null)||(h.ab==1&&h.gc[0].hc==3&&V(h.s)?(H.ic=1,k=h.c*h.i,h.Ta=null,h.Ua=0,h.V=i(k),h.Ba=0,h.V==null?(h.a=1,h=0):h=1):(H.ic=0,h=FA(h,H.c)),!h))break e;h=1;break A}H.mc=null,h=0}else h=cA>=H.c*H.i;H=!h}if(H)return null;c.ga.Lc!=1?c.Ga=0:C=D-w}e(c.ga!=null),e(w+C<=D);A:{if(h=(k=c.ga).c,D=k.l.o,k.$a==0){if(Y=c.rc,cA=c.Vc,dA=c.Fa,G=c.P+1+w*h,z=c.mb,aA=c.nb+w*h,e(G<=c.P+c.qc),k.Z!=0)for(e(Yi[k.Z]!=null),H=0;H<C;++H)Yi[k.Z](Y,cA,dA,G,z,aA,h),Y=z,cA=aA,aA+=h,G+=h;else for(H=0;H<C;++H)r(z,aA,dA,G,h),Y=z,cA=aA,aA+=h,G+=h;c.rc=Y,c.Vc=cA}else{if(e(k.mc!=null),h=w+C,e((H=k.mc)!=null),e(h<=H.i),H.C>=h)h=1;else if(k.ic||Sn(),k.ic){k=H.V,Y=H.Ba,cA=H.c;var UA=H.i,mA=(dA=1,G=H.$/cA,z=H.$%cA,aA=H.m,xA=H.s,H.$),bA=cA*UA,TA=cA*h,MA=xA.wc,DA=mA<TA?O(xA,z,G):null;e(mA<=bA),e(h<=UA),e(V(xA));e:for(;;){for(;!aA.h&&mA<TA;){if(z&MA||(DA=O(xA,z,G)),e(DA!=null),nA(aA),256>(UA=mt(DA.G[0],DA.H[0],aA)))k[Y+mA]=UA,++mA,++z>=cA&&(z=0,++G<=h&&!(G%16)&&tA(H,G));else{if(!(280>UA)){dA=0;break e}UA=xr(UA-256,aA);var ue,ee=mt(DA.G[4],DA.H[4],aA);if(nA(aA),!(mA>=(ee=Pr(cA,ee=xr(ee,aA)))&&bA-mA>=UA)){dA=0;break e}for(ue=0;ue<UA;++ue)k[Y+mA+ue]=k[Y+mA+ue-ee];for(mA+=UA,z+=UA;z>=cA;)z-=cA,++G<=h&&!(G%16)&&tA(H,G);mA<TA&&z&MA&&(DA=O(xA,z,G))}e(aA.h==N(aA))}tA(H,G>h?h:G);break e}!dA||aA.h&&mA<bA?(dA=0,H.a=aA.h?5:3):H.$=mA,h=dA}else h=pA(H,H.V,H.Ba,H.c,H.i,h,PA);if(!h){C=0;break A}}w+C>=D&&(c.Cc=1),C=1}if(!C)return null;if(c.Cc&&((C=c.ga)!=null&&(C.mc=null),c.ga=null,0<c.Ga))return alert("todo:WebPDequantizeLevels"),null}return c.nb+w*S}function zt(c,h,w,C,S,D){for(;0<S--;){var H,k=c,G=h+(w?1:0),z=c,aA=h+(w?0:3);for(H=0;H<C;++H){var xA=z[aA+4*H];xA!=255&&(xA*=32897,k[G+4*H+0]=k[G+4*H+0]*xA>>23,k[G+4*H+1]=k[G+4*H+1]*xA>>23,k[G+4*H+2]=k[G+4*H+2]*xA>>23)}h+=D}}function Gt(c,h,w,C,S){for(;0<C--;){var D;for(D=0;D<w;++D){var H=c[h+2*D+0],k=15&(z=c[h+2*D+1]),G=4369*k,z=(240&z|z>>4)*G>>16;c[h+2*D+0]=(240&H|H>>4)*G>>16&240|(15&H|H<<4)*G>>16>>4&15,c[h+2*D+1]=240&z|k}h+=S}}function or(c,h,w,C,S,D,H,k){var G,z,aA=255;for(z=0;z<S;++z){for(G=0;G<C;++G){var xA=c[h+G];D[H+4*G]=xA,aA&=xA}h+=w,H+=k}return aA!=255}function Bi(c,h,w,C,S){var D;for(D=0;D<S;++D)w[C+D]=c[h+D]>>8}function Sn(){wo=zt,qh=Gt,zh=or,Yh=Bi}function wi(c,h,w){E[c]=function(C,S,D,H,k,G,z,aA,xA,Y,cA,dA,UA,mA,bA,TA,MA){var DA,ue=MA-1>>1,ee=k[G+0]|z[aA+0]<<16,Ne=xA[Y+0]|cA[dA+0]<<16;e(C!=null);var ae=3*ee+Ne+131074>>2;for(h(C[S+0],255&ae,ae>>16,UA,mA),D!=null&&(ae=3*Ne+ee+131074>>2,h(D[H+0],255&ae,ae>>16,bA,TA)),DA=1;DA<=ue;++DA){var Ke=k[G+DA]|z[aA+DA]<<16,Jt=xA[Y+DA]|cA[dA+DA]<<16,Oe=ee+Ke+Ne+Jt+524296,se=Oe+2*(Ke+Ne)>>3;ae=se+ee>>1,ee=(Oe=Oe+2*(ee+Jt)>>3)+Ke>>1,h(C[S+2*DA-1],255&ae,ae>>16,UA,mA+(2*DA-1)*w),h(C[S+2*DA-0],255&ee,ee>>16,UA,mA+(2*DA-0)*w),D!=null&&(ae=Oe+Ne>>1,ee=se+Jt>>1,h(D[H+2*DA-1],255&ae,ae>>16,bA,TA+(2*DA-1)*w),h(D[H+2*DA+0],255&ee,ee>>16,bA,TA+(2*DA+0)*w)),ee=Ke,Ne=Jt}1&MA||(ae=3*ee+Ne+131074>>2,h(C[S+MA-1],255&ae,ae>>16,UA,mA+(MA-1)*w),D!=null&&(ae=3*Ne+ee+131074>>2,h(D[H+MA-1],255&ae,ae>>16,bA,TA+(MA-1)*w)))}}function ao(){pn[H0]=gv,pn[k0]=s1,pn[t1]=pv,pn[P0]=o1,pn[R0]=f1,pn[oc]=l1,pn[r1]=Bv,pn[fc]=s1,pn[lc]=o1,pn[M0]=f1,pn[cc]=l1}function fs(c){return c&-16384?0>c?0:255:c>>wv}function Ri(c,h){return fs((19077*c>>8)+(26149*h>>8)-14234)}function _a(c,h,w){return fs((19077*c>>8)-(6419*h>>8)-(13320*w>>8)+8708)}function Ua(c,h){return fs((19077*c>>8)+(33050*h>>8)-17685)}function Mi(c,h,w,C,S){C[S+0]=Ri(c,w),C[S+1]=_a(c,h,w),C[S+2]=Ua(c,h)}function fr(c,h,w,C,S){C[S+0]=Ua(c,h),C[S+1]=_a(c,h,w),C[S+2]=Ri(c,w)}function ba(c,h,w,C,S){var D=_a(c,h,w);h=D<<3&224|Ua(c,h)>>3,C[S+0]=248&Ri(c,w)|D>>5,C[S+1]=h}function Qa(c,h,w,C,S){var D=240&Ua(c,h)|15;C[S+0]=240&Ri(c,w)|_a(c,h,w)>>4,C[S+1]=D}function so(c,h,w,C,S){C[S+0]=255,Mi(c,h,w,C,S+1)}function oo(c,h,w,C,S){fr(c,h,w,C,S),C[S+3]=255}function Tr(c,h,w,C,S){Mi(c,h,w,C,S),C[S+3]=255}function vi(c,h,w){E[c]=function(C,S,D,H,k,G,z,aA,xA){for(var Y=aA+(-2&xA)*w;aA!=Y;)h(C[S+0],D[H+0],k[G+0],z,aA),h(C[S+1],D[H+0],k[G+0],z,aA+w),S+=2,++H,++G,aA+=2*w;1&xA&&h(C[S+0],D[H+0],k[G+0],z,aA)}}function ls(c,h,w){return w==0?c==0?h==0?6:5:h==0?4:0:w}function I0(c,h,w,C,S){switch(c>>>30){case 3:Ia(h,w,C,S,0);break;case 2:dn(h,w,C,S);break;case 1:ze(h,w,C,S)}}function hn(c,h){var w,C,S=h.M,D=h.Nb,H=c.oc,k=c.pc+40,G=c.oc,z=c.pc+584,aA=c.oc,xA=c.pc+600;for(w=0;16>w;++w)H[k+32*w-1]=129;for(w=0;8>w;++w)G[z+32*w-1]=129,aA[xA+32*w-1]=129;for(0<S?H[k-1-32]=G[z-1-32]=aA[xA-1-32]=129:(n(H,k-32-1,127,21),n(G,z-32-1,127,9),n(aA,xA-32-1,127,9)),C=0;C<c.za;++C){var Y=h.ya[h.aa+C];if(0<C){for(w=-1;16>w;++w)r(H,k+32*w-4,H,k+32*w+12,4);for(w=-1;8>w;++w)r(G,z+32*w-4,G,z+32*w+4,4),r(aA,xA+32*w-4,aA,xA+32*w+4,4)}var cA=c.Gd,dA=c.Hd+C,UA=Y.ad,mA=Y.Hc;if(0<S&&(r(H,k-32,cA[dA].y,0,16),r(G,z-32,cA[dA].f,0,8),r(aA,xA-32,cA[dA].ea,0,8)),Y.Za){var bA=H,TA=k-32+16;for(0<S&&(C>=c.za-1?n(bA,TA,cA[dA].y[15],4):r(bA,TA,cA[dA+1].y,0,4)),w=0;4>w;w++)bA[TA+128+w]=bA[TA+256+w]=bA[TA+384+w]=bA[TA+0+w];for(w=0;16>w;++w,mA<<=2)bA=H,TA=k+u1[w],Tn[Y.Ob[w]](bA,TA),I0(mA,UA,16*+w,bA,TA)}else if(bA=ls(C,S,Y.Ob[0]),zi[bA](H,k),mA!=0)for(w=0;16>w;++w,mA<<=2)I0(mA,UA,16*+w,H,k+u1[w]);for(w=Y.Gc,bA=ls(C,S,Y.Dd),Ci[bA](G,z),Ci[bA](aA,xA),mA=UA,bA=G,TA=z,255&(Y=0|w)&&(170&Y?Jn(mA,256,bA,TA):ot(mA,256,bA,TA)),Y=aA,mA=xA,255&(w>>=8)&&(170&w?Jn(UA,320,Y,mA):ot(UA,320,Y,mA)),S<c.Ub-1&&(r(cA[dA].y,0,H,k+480,16),r(cA[dA].f,0,G,z+224,8),r(cA[dA].ea,0,aA,xA+224,8)),w=8*D*c.B,cA=c.sa,dA=c.ta+16*C+16*D*c.R,UA=c.qa,Y=c.ra+8*C+w,mA=c.Ha,bA=c.Ia+8*C+w,w=0;16>w;++w)r(cA,dA+w*c.R,H,k+32*w,16);for(w=0;8>w;++w)r(UA,Y+w*c.B,G,z+32*w,8),r(mA,bA+w*c.B,aA,xA+32*w,8)}}function Sa(c,h,w,C,S,D,H,k,G){var z=[0],aA=[0],xA=0,Y=G!=null?G.kd:0,cA=G??new OA;if(c==null||12>w)return 7;cA.data=c,cA.w=h,cA.ha=w,h=[h],w=[w],cA.gb=[cA.gb];A:{var dA=h,UA=w,mA=cA.gb;if(e(c!=null),e(UA!=null),e(mA!=null),mA[0]=0,12<=UA[0]&&!t(c,dA[0],"RIFF")){if(t(c,dA[0]+8,"WEBP")){mA=3;break A}var bA=VA(c,dA[0]+4);if(12>bA||4294967286<bA){mA=3;break A}if(Y&&bA>UA[0]-8){mA=7;break A}mA[0]=bA,dA[0]+=12,UA[0]-=12}mA=0}if(mA!=0)return mA;for(bA=0<cA.gb[0],w=w[0];;){A:{var TA=c;UA=h,mA=w;var MA=z,DA=aA,ue=dA=[0];if((ae=xA=[xA])[0]=0,8>mA[0])mA=7;else{if(!t(TA,UA[0],"VP8X")){if(VA(TA,UA[0]+4)!=10){mA=3;break A}if(18>mA[0]){mA=7;break A}var ee=VA(TA,UA[0]+8),Ne=1+GA(TA,UA[0]+12);if(2147483648<=Ne*(TA=1+GA(TA,UA[0]+15))){mA=3;break A}ue!=null&&(ue[0]=ee),MA!=null&&(MA[0]=Ne),DA!=null&&(DA[0]=TA),UA[0]+=18,mA[0]-=18,ae[0]=1}mA=0}}if(xA=xA[0],dA=dA[0],mA!=0)return mA;if(UA=!!(2&dA),!bA&&xA)return 3;if(D!=null&&(D[0]=!!(16&dA)),H!=null&&(H[0]=UA),k!=null&&(k[0]=0),H=z[0],dA=aA[0],xA&&UA&&G==null){mA=0;break}if(4>w){mA=7;break}if(bA&&xA||!bA&&!xA&&!t(c,h[0],"ALPH")){w=[w],cA.na=[cA.na],cA.P=[cA.P],cA.Sa=[cA.Sa];A:{ee=c,mA=h,bA=w;var ae=cA.gb;MA=cA.na,DA=cA.P,ue=cA.Sa,Ne=22,e(ee!=null),e(bA!=null),TA=mA[0];var Ke=bA[0];for(e(MA!=null),e(ue!=null),MA[0]=null,DA[0]=null,ue[0]=0;;){if(mA[0]=TA,bA[0]=Ke,8>Ke){mA=7;break A}var Jt=VA(ee,TA+4);if(4294967286<Jt){mA=3;break A}var Oe=8+Jt+1&-2;if(Ne+=Oe,0<ae&&Ne>ae){mA=3;break A}if(!t(ee,TA,"VP8 ")||!t(ee,TA,"VP8L")){mA=0;break A}if(Ke[0]<Oe){mA=7;break A}t(ee,TA,"ALPH")||(MA[0]=ee,DA[0]=TA+8,ue[0]=Jt),TA+=Oe,Ke-=Oe}}if(w=w[0],cA.na=cA.na[0],cA.P=cA.P[0],cA.Sa=cA.Sa[0],mA!=0)break}w=[w],cA.Ja=[cA.Ja],cA.xa=[cA.xa];A:if(ae=c,mA=h,bA=w,MA=cA.gb[0],DA=cA.Ja,ue=cA.xa,ee=mA[0],TA=!t(ae,ee,"VP8 "),Ne=!t(ae,ee,"VP8L"),e(ae!=null),e(bA!=null),e(DA!=null),e(ue!=null),8>bA[0])mA=7;else{if(TA||Ne){if(ae=VA(ae,ee+4),12<=MA&&ae>MA-12){mA=3;break A}if(Y&&ae>bA[0]-8){mA=7;break A}DA[0]=ae,mA[0]+=8,bA[0]-=8,ue[0]=Ne}else ue[0]=5<=bA[0]&&ae[ee+0]==47&&!(ae[ee+4]>>5),DA[0]=bA[0];mA=0}if(w=w[0],cA.Ja=cA.Ja[0],cA.xa=cA.xa[0],h=h[0],mA!=0)break;if(4294967286<cA.Ja)return 3;if(k==null||UA||(k[0]=cA.xa?2:1),H=[H],dA=[dA],cA.xa){if(5>w){mA=7;break}k=H,Y=dA,UA=D,c==null||5>w?c=0:5<=w&&c[h+0]==47&&!(c[h+4]>>5)?(bA=[0],ae=[0],MA=[0],CA(DA=new Q,c,h,w),Un(DA,bA,ae,MA)?(k!=null&&(k[0]=bA[0]),Y!=null&&(Y[0]=ae[0]),UA!=null&&(UA[0]=MA[0]),c=1):c=0):c=0}else{if(10>w){mA=7;break}k=dA,c==null||10>w||!C0(c,h+3,w-3)?c=0:(Y=c[h+0]|c[h+1]<<8|c[h+2]<<16,UA=16383&(c[h+7]<<8|c[h+6]),c=16383&(c[h+9]<<8|c[h+8]),1&Y||3<(Y>>1&7)||!(Y>>4&1)||Y>>5>=cA.Ja||!UA||!c?c=0:(H&&(H[0]=UA),k&&(k[0]=c),c=1))}if(!c||(H=H[0],dA=dA[0],xA&&(z[0]!=H||aA[0]!=dA)))return 3;G!=null&&(G[0]=cA,G.offset=h-G.w,e(4294967286>h-G.w),e(G.offset==G.ha-w));break}return mA==0||mA==7&&xA&&G==null?(D!=null&&(D[0]|=cA.na!=null&&0<cA.na.length),C!=null&&(C[0]=H),S!=null&&(S[0]=dA),0):mA}function fo(c,h,w){var C=h.width,S=h.height,D=0,H=0,k=C,G=S;if(h.Da=c!=null&&0<c.Da,h.Da&&(k=c.cd,G=c.bd,D=c.v,H=c.j,11>w||(D&=-2,H&=-2),0>D||0>H||0>=k||0>=G||D+k>C||H+G>S))return 0;if(h.v=D,h.j=H,h.va=D+k,h.o=H+G,h.U=k,h.T=G,h.da=c!=null&&0<c.da,h.da){if(!te(k,G,w=[c.ib],D=[c.hb]))return 0;h.ib=w[0],h.hb=D[0]}return h.ob=c!=null&&c.ob,h.Kb=c==null||!c.Sd,h.da&&(h.ob=h.ib<3*C/4&&h.hb<3*S/4,h.Kb=0),1}function lo(c){if(c==null)return 2;if(11>c.S){var h=c.f.RGBA;h.fb+=(c.height-1)*h.A,h.A=-h.A}else h=c.f.kb,c=c.height,h.O+=(c-1)*h.fa,h.fa=-h.fa,h.N+=(c-1>>1)*h.Ab,h.Ab=-h.Ab,h.W+=(c-1>>1)*h.Db,h.Db=-h.Db,h.F!=null&&(h.J+=(c-1)*h.lb,h.lb=-h.lb);return 0}function Ki(c,h,w,C){if(C==null||0>=c||0>=h)return 2;if(w!=null){if(w.Da){var S=w.cd,D=w.bd,H=-2&w.v,k=-2&w.j;if(0>H||0>k||0>=S||0>=D||H+S>c||k+D>h)return 2;c=S,h=D}if(w.da){if(!te(c,h,S=[w.ib],D=[w.hb]))return 2;c=S[0],h=D[0]}}C.width=c,C.height=h;A:{var G=C.width,z=C.height;if(c=C.S,0>=G||0>=z||!(c>=H0&&13>c))c=2;else{if(0>=C.Rd&&C.sd==null){H=D=S=h=0;var aA=(k=G*h1[c])*z;if(11>c||(D=(z+1)/2*(h=(G+1)/2),c==12&&(H=(S=G)*z)),(z=i(aA+2*D+H))==null){c=1;break A}C.sd=z,11>c?((G=C.f.RGBA).eb=z,G.fb=0,G.A=k,G.size=aA):((G=C.f.kb).y=z,G.O=0,G.fa=k,G.Fd=aA,G.f=z,G.N=0+aA,G.Ab=h,G.Cd=D,G.ea=z,G.W=0+aA+D,G.Db=h,G.Ed=D,c==12&&(G.F=z,G.J=0+aA+2*D),G.Tc=H,G.lb=S)}if(h=1,S=C.S,D=C.width,H=C.height,S>=H0&&13>S)if(11>S)c=C.f.RGBA,h&=(k=Math.abs(c.A))*(H-1)+D<=c.size,h&=k>=D*h1[S],h&=c.eb!=null;else{c=C.f.kb,k=(D+1)/2,aA=(H+1)/2,G=Math.abs(c.fa),z=Math.abs(c.Ab);var xA=Math.abs(c.Db),Y=Math.abs(c.lb),cA=Y*(H-1)+D;h&=G*(H-1)+D<=c.Fd,h&=z*(aA-1)+k<=c.Cd,h=(h&=xA*(aA-1)+k<=c.Ed)&G>=D&z>=k&xA>=k,h&=c.y!=null,h&=c.f!=null,h&=c.ea!=null,S==12&&(h&=Y>=D,h&=cA<=c.Tc,h&=c.F!=null)}else h=0;c=h?0:2}}return c!=0||w!=null&&w.fd&&(c=lo(C)),c}var Ta=64,Xr=[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],qr=24,Gi=32,mi=8,Vi=[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];ZA("Predictor0","PredictorAdd0"),E.Predictor0=function(){return 4278190080},E.Predictor1=function(c){return c},E.Predictor2=function(c,h,w){return h[w+0]},E.Predictor3=function(c,h,w){return h[w+1]},E.Predictor4=function(c,h,w){return h[w-1]},E.Predictor5=function(c,h,w){return ce(ce(c,h[w+1]),h[w+0])},E.Predictor6=function(c,h,w){return ce(c,h[w-1])},E.Predictor7=function(c,h,w){return ce(c,h[w+0])},E.Predictor8=function(c,h,w){return ce(h[w-1],h[w+0])},E.Predictor9=function(c,h,w){return ce(h[w+0],h[w+1])},E.Predictor10=function(c,h,w){return ce(ce(c,h[w-1]),ce(h[w+0],h[w+1]))},E.Predictor11=function(c,h,w){var C=h[w+0];return 0>=me(C>>24&255,c>>24&255,(h=h[w-1])>>24&255)+me(C>>16&255,c>>16&255,h>>16&255)+me(C>>8&255,c>>8&255,h>>8&255)+me(255&C,255&c,255&h)?C:c},E.Predictor12=function(c,h,w){var C=h[w+0];return(Le((c>>24&255)+(C>>24&255)-((h=h[w-1])>>24&255))<<24|Le((c>>16&255)+(C>>16&255)-(h>>16&255))<<16|Le((c>>8&255)+(C>>8&255)-(h>>8&255))<<8|Le((255&c)+(255&C)-(255&h)))>>>0},E.Predictor13=function(c,h,w){var C=h[w-1];return(Ie((c=ce(c,h[w+0]))>>24&255,C>>24&255)<<24|Ie(c>>16&255,C>>16&255)<<16|Ie(c>>8&255,C>>8&255)<<8|Ie(255&c,255&C))>>>0};var co=E.PredictorAdd0;E.PredictorAdd1=ke,ZA("Predictor2","PredictorAdd2"),ZA("Predictor3","PredictorAdd3"),ZA("Predictor4","PredictorAdd4"),ZA("Predictor5","PredictorAdd5"),ZA("Predictor6","PredictorAdd6"),ZA("Predictor7","PredictorAdd7"),ZA("Predictor8","PredictorAdd8"),ZA("Predictor9","PredictorAdd9"),ZA("Predictor10","PredictorAdd10"),ZA("Predictor11","PredictorAdd11"),ZA("Predictor12","PredictorAdd12"),ZA("Predictor13","PredictorAdd13");var cs=E.PredictorAdd2;oe("ColorIndexInverseTransform","MapARGB","32b",function(c){return c>>8&255},function(c){return c}),oe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(c){return c},function(c){return c>>8&255});var St,N0=E.ColorIndexInverseTransform,zn=E.MapARGB,Yn=E.VP8LColorIndexInverseTransformAlpha,uo=E.MapAlpha,ho=E.VP8LPredictorsAdd=[];ho.length=16,(E.VP8LPredictors=[]).length=16,(E.VP8LPredictorsAdd_C=[]).length=16,(E.VP8LPredictors_C=[]).length=16;var go,po,ji,Wi,Xi,La,qi,Ia,dn,Jn,ze,ot,Tt,Yt,xi,Bo,us,O0,Kh,Gh,Vh,jh,Wh,Xh,wo,qh,zh,Yh,Jh=i(511),Zh=i(2041),$h=i(225),A1=i(767),e1=0,sc=Zh,D0=$h,zr=A1,gn=Jh,H0=0,k0=1,t1=2,P0=3,R0=4,oc=5,r1=6,fc=7,lc=8,M0=9,cc=10,ev=[2,3,7],tv=[3,3,11],n1=[280,256,256,256,40],rv=[0,1,1,1,0],nv=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],iv=[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],av=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],sv=8,uc=[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],hc=[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],vo=null,ov=[[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]],fv=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],i1=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],lv=[[[[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]]]],cv=[[[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]]],uv=[[[[255,255,255,255,255,255,255,255,255,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]]]],hv=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zi=[],Tn=[],Ci=[],dv=1,a1=2,Yi=[],pn=[];wi("UpsampleRgbLinePair",Mi,3),wi("UpsampleBgrLinePair",fr,3),wi("UpsampleRgbaLinePair",Tr,4),wi("UpsampleBgraLinePair",oo,4),wi("UpsampleArgbLinePair",so,4),wi("UpsampleRgba4444LinePair",Qa,2),wi("UpsampleRgb565LinePair",ba,2);var gv=E.UpsampleRgbLinePair,pv=E.UpsampleBgrLinePair,s1=E.UpsampleRgbaLinePair,o1=E.UpsampleBgraLinePair,f1=E.UpsampleArgbLinePair,l1=E.UpsampleRgba4444LinePair,Bv=E.UpsampleRgb565LinePair,K0=16,G0=1<<K0-1,mo=-227,dc=482,wv=6,c1=0,vv=i(256),mv=i(256),xv=i(256),Cv=i(256),Fv=i(dc-mo),yv=i(dc-mo);vi("YuvToRgbRow",Mi,3),vi("YuvToBgrRow",fr,3),vi("YuvToRgbaRow",Tr,4),vi("YuvToBgraRow",oo,4),vi("YuvToArgbRow",so,4),vi("YuvToRgba4444Row",Qa,2),vi("YuvToRgb565Row",ba,2);var u1=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],V0=[0,2,8],Ev=[8,7,6,4,4,2,2,2,1,1,1,1],_v=1;this.WebPDecodeRGBA=function(c,h,w,C,S){var D=k0,H=new QA,k=new De;H.ba=k,k.S=D,k.width=[k.width],k.height=[k.height];var G=k.width,z=k.height,aA=new pe;if(aA==null||c==null)var xA=2;else e(aA!=null),xA=Sa(c,h,w,aA.width,aA.height,aA.Pd,aA.Qd,aA.format,null);if(xA!=0?G=0:(G!=null&&(G[0]=aA.width[0]),z!=null&&(z[0]=aA.height[0]),G=1),G){k.width=k.width[0],k.height=k.height[0],C!=null&&(C[0]=k.width),S!=null&&(S[0]=k.height);A:{if(C=new ns,(S=new OA).data=c,S.w=h,S.ha=w,S.kd=1,h=[0],e(S!=null),((c=Sa(S.data,S.w,S.ha,null,null,null,h,null,S))==0||c==7)&&h[0]&&(c=4),(h=c)==0){if(e(H!=null),C.data=S.data,C.w=S.w+S.offset,C.ha=S.ha-S.offset,C.put=we,C.ac=ln,C.bc=_n,C.ma=H,S.xa){if((c=BA())==null){H=1;break A}if((function(Y,cA){var dA=[0],UA=[0],mA=[0];e:for(;;){if(Y==null)return 0;if(cA==null)return Y.a=2,0;if(Y.l=cA,Y.a=0,CA(Y.m,cA.data,cA.w,cA.ha),!Un(Y.m,dA,UA,mA)){Y.a=3;break e}if(Y.xb=a1,cA.width=dA[0],cA.height=UA[0],!vA(dA[0],UA[0],1,Y,null))break e;return 1}return e(Y.a!=0),0})(c,C)){if(C=(h=Ki(C.width,C.height,H.Oa,H.ba))==0){e:{C=c;t:for(;;){if(C==null){C=0;break e}if(e(C.s.yc!=null),e(C.s.Ya!=null),e(0<C.s.Wb),e((w=C.l)!=null),e((S=w.ma)!=null),C.xb!=0){if(C.ca=S.ba,C.tb=S.tb,e(C.ca!=null),!fo(S.Oa,w,P0)){C.a=2;break t}if(!FA(C,w.width)||w.da)break t;if((w.da||Be(C.ca.S))&&Sn(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&Sn()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!W(C.s.vb,C.s.Wa.Xa)){C.a=1;break t}C.xb=0}if(!pA(C,C.V,C.Ba,C.c,C.i,w.o,K))break t;S.Dc=C.Ma,C=1;break e}e(C.a!=0),C=0}C=!C}C&&(h=c.a)}else h=c.a}else{if((c=new Wl)==null){H=1;break A}if(c.Fa=S.na,c.P=S.P,c.qc=S.Sa,Xn(c,C)){if((h=Ki(C.width,C.height,H.Oa,H.ba))==0){if(c.Aa=0,w=H.Oa,e((S=c)!=null),w!=null){if(0<(G=0>(G=w.Md)?0:100<G?255:255*G/100)){for(z=aA=0;4>z;++z)12>(xA=S.pb[z]).lc&&(xA.ia=G*Ev[0>xA.lc?0:xA.lc]>>3),aA|=xA.ia;aA&&(alert("todo:VP8InitRandom"),S.ia=1)}S.Ga=w.Id,100<S.Ga?S.Ga=100:0>S.Ga&&(S.Ga=0)}(function(Y,cA){if(Y==null)return 0;if(cA==null)return Mt(Y,2,"NULL VP8Io parameter in VP8Decode().");if(!Y.cb&&!Xn(Y,cA))return 0;if(e(Y.cb),cA.ac==null||cA.ac(cA)){cA.ob&&(Y.L=0);var dA=V0[Y.L];if(Y.L==2?(Y.yb=0,Y.zb=0):(Y.yb=cA.v-dA>>4,Y.zb=cA.j-dA>>4,0>Y.yb&&(Y.yb=0),0>Y.zb&&(Y.zb=0)),Y.Va=cA.o+15+dA>>4,Y.Hb=cA.va+15+dA>>4,Y.Hb>Y.za&&(Y.Hb=Y.za),Y.Va>Y.Ub&&(Y.Va=Y.Ub),0<Y.L){var UA=Y.ed;for(dA=0;4>dA;++dA){var mA;if(Y.Qa.Cb){var bA=Y.Qa.Lb[dA];Y.Qa.Fb||(bA+=UA.Tb)}else bA=UA.Tb;for(mA=0;1>=mA;++mA){var TA=Y.gd[dA][mA],MA=bA;if(UA.Pc&&(MA+=UA.vd[0],mA&&(MA+=UA.od[0])),0<(MA=0>MA?0:63<MA?63:MA)){var DA=MA;0<UA.wb&&(DA=4<UA.wb?DA>>2:DA>>1)>9-UA.wb&&(DA=9-UA.wb),1>DA&&(DA=1),TA.dd=DA,TA.tc=2*MA+DA,TA.ld=40<=MA?2:15<=MA?1:0}else TA.tc=0;TA.La=mA}}}dA=0}else Mt(Y,6,"Frame setup failed"),dA=Y.a;if(dA=dA==0){if(dA){Y.$c=0,0<Y.Aa||(Y.Ic=_v);e:{dA=Y.Ic,UA=4*(DA=Y.za);var ue=32*DA,ee=DA+1,Ne=0<Y.L?DA*(0<Y.Aa?2:1):0,ae=(Y.Aa==2?2:1)*DA;if((TA=UA+832+(mA=3*(16*dA+V0[Y.L])/2*ue)+(bA=Y.Fa!=null&&0<Y.Fa.length?Y.Kc.c*Y.Kc.i:0))!=TA)dA=0;else{if(TA>Y.Vb){if(Y.Vb=0,Y.Ec=i(TA),Y.Fc=0,Y.Ec==null){dA=Mt(Y,1,"no memory during frame initialization.");break e}Y.Vb=TA}TA=Y.Ec,MA=Y.Fc,Y.Ac=TA,Y.Bc=MA,MA+=UA,Y.Gd=a(ue,cn),Y.Hd=0,Y.rb=a(ee+1,yt),Y.sb=1,Y.wa=Ne?a(Ne,Re):null,Y.Y=0,Y.D.Nb=0,Y.D.wa=Y.wa,Y.D.Y=Y.Y,0<Y.Aa&&(Y.D.Y+=DA),e(!0),Y.oc=TA,Y.pc=MA,MA+=832,Y.ya=a(ae,bn),Y.aa=0,Y.D.ya=Y.ya,Y.D.aa=Y.aa,Y.Aa==2&&(Y.D.aa+=DA),Y.R=16*DA,Y.B=8*DA,DA=(ue=V0[Y.L])*Y.R,ue=ue/2*Y.B,Y.sa=TA,Y.ta=MA+DA,Y.qa=Y.sa,Y.ra=Y.ta+16*dA*Y.R+ue,Y.Ha=Y.qa,Y.Ia=Y.ra+8*dA*Y.B+ue,Y.$c=0,MA+=mA,Y.mb=bA?TA:null,Y.nb=bA?MA:null,e(MA+bA<=Y.Fc+Y.Vb),F0(Y),n(Y.Ac,Y.Bc,0,UA),dA=1}}if(dA){if(cA.ka=0,cA.y=Y.sa,cA.O=Y.ta,cA.f=Y.qa,cA.N=Y.ra,cA.ea=Y.Ha,cA.Vd=Y.Ia,cA.fa=Y.R,cA.Rc=Y.B,cA.F=null,cA.J=0,!e1){for(dA=-255;255>=dA;++dA)Jh[255+dA]=0>dA?-dA:dA;for(dA=-1020;1020>=dA;++dA)Zh[1020+dA]=-128>dA?-128:127<dA?127:dA;for(dA=-112;112>=dA;++dA)$h[112+dA]=-16>dA?-16:15<dA?15:dA;for(dA=-255;510>=dA;++dA)A1[255+dA]=0>dA?0:255<dA?255:dA;e1=1}qi=as,Ia=ql,Jn=qn,ze=E0,ot=_0,dn=Xl,Tt=T0,Yt=Ea,xi=b,Bo=AA,us=L0,O0=p,Kh=iA,Gh=uA,Vh=ya,jh=io,Wh=Q0,Xh=S0,Tn[0]=tc,Tn[1]=zl,Tn[2]=Ac,Tn[3]=ec,Tn[4]=ci,Tn[5]=rc,Tn[6]=ui,Tn[7]=nc,Tn[8]=Ao,Tn[9]=ss,zi[0]=Zl,zi[1]=Jl,zi[2]=Zs,zi[3]=U0,zi[4]=Ca,zi[5]=$s,zi[6]=$l,Ci[0]=ac,Ci[1]=Yl,Ci[2]=Fa,Ci[3]=ic,Ci[4]=to,Ci[5]=eo,Ci[6]=b0,dA=1}else dA=0}dA&&(dA=(function(Ke,Jt){for(Ke.M=0;Ke.M<Ke.Va;++Ke.M){var Oe,se=Ke.Jc[Ke.M&Ke.Xb],qA=Ke.m,Lt=Ke;for(Oe=0;Oe<Lt.za;++Oe){var be=qA,Ge=Lt,pt=Ge.Ac,lr=Ge.Bc+4*Oe,Lr=Ge.zc,Et=Ge.ya[Ge.aa+Oe];if(Ge.Qa.Bb?Et.$b=lA(be,Ge.Pa.jb[0])?2+lA(be,Ge.Pa.jb[2]):lA(be,Ge.Pa.jb[1]):Et.$b=0,Ge.kc&&(Et.Ad=lA(be,Ge.Bd)),Et.Za=!lA(be,145)+0,Et.Za){var Cr=Et.Ob,Ir=0;for(Ge=0;4>Ge;++Ge){var Zt,je=Lr[0+Ge];for(Zt=0;4>Zt;++Zt){je=cv[pt[lr+Zt]][je];for(var Ze=i1[lA(be,je[0])];0<Ze;)Ze=i1[2*Ze+lA(be,je[Ze])];je=-Ze,pt[lr+Zt]=je}r(Cr,Ir,pt,lr,4),Ir+=4,Lr[0+Ge]=je}}else je=lA(be,156)?lA(be,128)?1:3:lA(be,163)?2:0,Et.Ob[0]=je,n(pt,lr,je,4),n(Lr,0,je,4);Et.Dd=lA(be,142)?lA(be,114)?lA(be,183)?1:3:2:0}if(Lt.m.Ka)return Mt(Ke,7,"Premature end-of-partition0 encountered.");for(;Ke.ja<Ke.za;++Ke.ja){if(Lt=se,be=(qA=Ke).rb[qA.sb-1],pt=qA.rb[qA.sb+qA.ja],Oe=qA.ya[qA.aa+qA.ja],lr=qA.kc?Oe.Ad:0)be.la=pt.la=0,Oe.Za||(be.Na=pt.Na=0),Oe.Hc=0,Oe.Gc=0,Oe.ia=0;else{var _t,$e;if(be=pt,pt=Lt,lr=qA.Pa.Xc,Lr=qA.ya[qA.aa+qA.ja],Et=qA.pb[Lr.$b],Ge=Lr.ad,Cr=0,Ir=qA.rb[qA.sb-1],je=Zt=0,n(Ge,Cr,0,384),Lr.Za)var cr=0,Ln=lr[3];else{Ze=i(16);var It=be.Na+Ir.Na;if(It=vo(pt,lr[1],It,Et.Eb,0,Ze,0),be.Na=Ir.Na=(0<It)+0,1<It)qi(Ze,0,Ge,Cr);else{var Rr=Ze[0]+3>>3;for(Ze=0;256>Ze;Ze+=16)Ge[Cr+Ze]=Rr}cr=1,Ln=lr[0]}var ft=15&be.la,$t=15&Ir.la;for(Ze=0;4>Ze;++Ze){var Yr=1&$t;for(Rr=$e=0;4>Rr;++Rr)ft=ft>>1|(Yr=(It=vo(pt,Ln,It=Yr+(1&ft),Et.Sc,cr,Ge,Cr))>cr)<<7,$e=$e<<2|(3<It?3:1<It?2:Ge[Cr+0]!=0),Cr+=16;ft>>=4,$t=$t>>1|Yr<<7,Zt=(Zt<<8|$e)>>>0}for(Ln=ft,cr=$t>>4,_t=0;4>_t;_t+=2){for($e=0,ft=be.la>>4+_t,$t=Ir.la>>4+_t,Ze=0;2>Ze;++Ze){for(Yr=1&$t,Rr=0;2>Rr;++Rr)It=Yr+(1&ft),ft=ft>>1|(Yr=0<(It=vo(pt,lr[2],It,Et.Qc,0,Ge,Cr)))<<3,$e=$e<<2|(3<It?3:1<It?2:Ge[Cr+0]!=0),Cr+=16;ft>>=2,$t=$t>>1|Yr<<5}je|=$e<<4*_t,Ln|=ft<<4<<_t,cr|=(240&$t)<<_t}be.la=Ln,Ir.la=cr,Lr.Hc=Zt,Lr.Gc=je,Lr.ia=43690&je?0:Et.ia,lr=!(Zt|je)}if(0<qA.L&&(qA.wa[qA.Y+qA.ja]=qA.gd[Oe.$b][Oe.Za],qA.wa[qA.Y+qA.ja].La|=!lr),Lt.Ka)return Mt(Ke,7,"Premature end-of-file encountered.")}if(F0(Ke),qA=Jt,Lt=1,Oe=(se=Ke).D,be=0<se.L&&se.M>=se.zb&&se.M<=se.Va,se.Aa==0)e:{if(Oe.M=se.M,Oe.uc=be,hn(se,Oe),Lt=1,Oe=($e=se.D).Nb,be=(je=V0[se.L])*se.R,pt=je/2*se.B,Ze=16*Oe*se.R,Rr=8*Oe*se.B,lr=se.sa,Lr=se.ta-be+Ze,Et=se.qa,Ge=se.ra-pt+Rr,Cr=se.Ha,Ir=se.Ia-pt+Rr,$t=(ft=$e.M)==0,Zt=ft>=se.Va-1,se.Aa==2&&hn(se,$e),$e.uc)for(Yr=(It=se).D.M,e(It.D.uc),$e=It.yb;$e<It.Hb;++$e){cr=$e,Ln=Yr;var Nr=(Jr=(ur=It).D).Nb;_t=ur.R;var Jr=Jr.wa[Jr.Y+cr],Zr=ur.sa,Mr=ur.ta+16*Nr*_t+16*cr,$r=Jr.dd,dt=Jr.tc;if(dt!=0)if(e(3<=dt),ur.L==1)0<cr&&jh(Zr,Mr,_t,dt+4),Jr.La&&Xh(Zr,Mr,_t,dt),0<Ln&&Vh(Zr,Mr,_t,dt+4),Jr.La&&Wh(Zr,Mr,_t,dt);else{var An=ur.B,In=ur.qa,Na=ur.ra+8*Nr*An+8*cr,Fi=ur.Ha,ur=ur.Ia+8*Nr*An+8*cr;Nr=Jr.ld,0<cr&&(Yt(Zr,Mr,_t,dt+4,$r,Nr),Bo(In,Na,Fi,ur,An,dt+4,$r,Nr)),Jr.La&&(O0(Zr,Mr,_t,dt,$r,Nr),Gh(In,Na,Fi,ur,An,dt,$r,Nr)),0<Ln&&(Tt(Zr,Mr,_t,dt+4,$r,Nr),xi(In,Na,Fi,ur,An,dt+4,$r,Nr)),Jr.La&&(us(Zr,Mr,_t,dt,$r,Nr),Kh(In,Na,Fi,ur,An,dt,$r,Nr))}}if(se.ia&&alert("todo:DitherRow"),qA.put!=null){if($e=16*ft,ft=16*(ft+1),$t?(qA.y=se.sa,qA.O=se.ta+Ze,qA.f=se.qa,qA.N=se.ra+Rr,qA.ea=se.Ha,qA.W=se.Ia+Rr):($e-=je,qA.y=lr,qA.O=Lr,qA.f=Et,qA.N=Ge,qA.ea=Cr,qA.W=Ir),Zt||(ft-=je),ft>qA.o&&(ft=qA.o),qA.F=null,qA.J=null,se.Fa!=null&&0<se.Fa.length&&$e<ft&&(qA.J=ht(se,qA,$e,ft-$e),qA.F=se.mb,qA.F==null&&qA.F.length==0)){Lt=Mt(se,3,"Could not decode alpha data.");break e}$e<qA.j&&(je=qA.j-$e,$e=qA.j,e(!(1&je)),qA.O+=se.R*je,qA.N+=se.B*(je>>1),qA.W+=se.B*(je>>1),qA.F!=null&&(qA.J+=qA.width*je)),$e<ft&&(qA.O+=qA.v,qA.N+=qA.v>>1,qA.W+=qA.v>>1,qA.F!=null&&(qA.J+=qA.v),qA.ka=$e-qA.j,qA.U=qA.va-qA.v,qA.T=ft-$e,Lt=qA.put(qA))}Oe+1!=se.Ic||Zt||(r(se.sa,se.ta-be,lr,Lr+16*se.R,be),r(se.qa,se.ra-pt,Et,Ge+8*se.B,pt),r(se.Ha,se.Ia-pt,Cr,Ir+8*se.B,pt))}if(!Lt)return Mt(Ke,6,"Output aborted.")}return 1})(Y,cA)),cA.bc!=null&&cA.bc(cA),dA&=1}return dA?(Y.cb=0,dA):0})(c,C)||(h=c.a)}}else h=c.a}h==0&&H.Oa!=null&&H.Oa.fd&&(h=lo(H.ba))}H=h}D=H!=0?null:11>D?k.f.RGBA.eb:k.f.kb.y}else D=null;return D};var h1=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function f(E,X){for(var y="",T=0;T<4;T++)y+=String.fromCharCode(E[X++]);return y}function l(E,X){return E[X+0]|E[X+1]<<8}function d(E,X){return(E[X+0]|E[X+1]<<8|E[X+2]<<16)>>>0}function g(E,X){return(E[X+0]|E[X+1]<<8|E[X+2]<<16|E[X+3]<<24)>>>0}new o;var u=[0],v=[0],B=[],x=new o,F=A,_=(function(E,X){var y={},T=0,P=!1,eA=0,sA=0;if(y.frames=[],!(function(m,Q){for(var U=0;U<4;U++)if(m[Q+U]!="RIFF".charCodeAt(U))return!0;return!1})(E,X)){for(g(E,X+=4),X+=8;X<E.length;){var wA=f(E,X),gA=g(E,X+=4);X+=4;var hA=gA+(1&gA);switch(wA){case"VP8 ":case"VP8L":y.frames[T]===void 0&&(y.frames[T]={}),(_A=y.frames[T]).src_off=P?sA:X-8,_A.src_size=eA+gA+8,T++,P&&(P=!1,eA=0,sA=0);break;case"VP8X":(_A=y.header={}).feature_flags=E[X];var CA=X+4;_A.canvas_width=1+d(E,CA),CA+=3,_A.canvas_height=1+d(E,CA),CA+=3;break;case"ALPH":P=!0,eA=hA+8,sA=X-8;break;case"ANIM":(_A=y.header).bgcolor=g(E,X),CA=X+4,_A.loop_count=l(E,CA),CA+=2;break;case"ANMF":var IA,_A;(_A=y.frames[T]={}).offset_x=2*d(E,X),X+=3,_A.offset_y=2*d(E,X),X+=3,_A.width=1+d(E,X),X+=3,_A.height=1+d(E,X),X+=3,_A.duration=d(E,X),X+=3,IA=E[X++],_A.dispose=1&IA,_A.blend=IA>>1&1}wA!="ANMF"&&(X+=hA)}return y}})(F,0);_.response=F,_.rgbaoutput=!0,_.dataurl=!1;var I=_.header?_.header:null,L=_.frames?_.frames:null;if(I){I.loop_counter=I.loop_count,u=[I.canvas_height],v=[I.canvas_width];for(var q=0;q<L.length&&L[q].blend!=0;q++);}var rA=L[0],M=x.WebPDecodeRGBA(F,rA.src_off,rA.src_size,v,u);rA.rgba=M,rA.imgwidth=v[0],rA.imgheight=u[0];for(var R=0;R<v[0]*u[0]*4;R++)B[R]=M[R];return this.width=v,this.height=u,this.data=B,this}(function(A){var e,t,r,n,i,a,s,o,f,l=function(m){return m=m||{},this.isStrokeTransparent=m.isStrokeTransparent||!1,this.strokeOpacity=m.strokeOpacity||1,this.strokeStyle=m.strokeStyle||"#000000",this.fillStyle=m.fillStyle||"#000000",this.isFillTransparent=m.isFillTransparent||!1,this.fillOpacity=m.fillOpacity||1,this.font=m.font||"10px sans-serif",this.textBaseline=m.textBaseline||"alphabetic",this.textAlign=m.textAlign||"left",this.lineWidth=m.lineWidth||1,this.lineJoin=m.lineJoin||"miter",this.lineCap=m.lineCap||"butt",this.path=m.path||[],this.transform=m.transform!==void 0?m.transform.clone():new o,this.globalCompositeOperation=m.globalCompositeOperation||"normal",this.globalAlpha=m.globalAlpha||1,this.clip_path=m.clip_path||[],this.currentPoint=m.currentPoint||new a,this.miterLimit=m.miterLimit||10,this.lastPoint=m.lastPoint||new a,this.lineDashOffset=m.lineDashOffset||0,this.lineDash=m.lineDash||[],this.margin=m.margin||[0,0,0,0],this.prevPageLastElemOffset=m.prevPageLastElemOffset||0,this.ignoreClearRect=typeof m.ignoreClearRect!="boolean"||m.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new d(this),e=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,f=new l}]);var d=function(m){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Q=m;Object.defineProperty(this,"pdf",{get:function(){return Q}});var U=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return U},set:function(W){U=!!W}});var N=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return N},set:function(W){N=!!W}});var j=0;Object.defineProperty(this,"posX",{get:function(){return j},set:function(W){isNaN(W)||(j=W)}});var nA=0;Object.defineProperty(this,"posY",{get:function(){return nA},set:function(W){isNaN(W)||(nA=W)}}),Object.defineProperty(this,"margin",{get:function(){return f.margin},set:function(W){var RA;typeof W=="number"?RA=[W,W,W,W]:((RA=new Array(4))[0]=W[0],RA[1]=W.length>=2?W[1]:RA[0],RA[2]=W.length>=3?W[2]:RA[0],RA[3]=W.length>=4?W[3]:RA[1]),f.margin=RA}});var fA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return fA},set:function(W){fA=W}});var oA=0;Object.defineProperty(this,"lastBreak",{get:function(){return oA},set:function(W){oA=W}});var lA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return lA},set:function(W){lA=W}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(W){W instanceof l&&(f=W)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(W){f.path=W}});var SA=[];Object.defineProperty(this,"ctxStack",{get:function(){return SA},set:function(W){SA=W}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(W){var RA;RA=g(W),this.ctx.fillStyle=RA.style,this.ctx.isFillTransparent=RA.a===0,this.ctx.fillOpacity=RA.a,this.pdf.setFillColor(RA.r,RA.g,RA.b,{a:RA.a}),this.pdf.setTextColor(RA.r,RA.g,RA.b,{a:RA.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(W){var RA=g(W);this.ctx.strokeStyle=RA.style,this.ctx.isStrokeTransparent=RA.a===0,this.ctx.strokeOpacity=RA.a,RA.a===0?this.pdf.setDrawColor(255,255,255):(RA.a,this.pdf.setDrawColor(RA.r,RA.g,RA.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(W){["butt","round","square"].indexOf(W)!==-1&&(this.ctx.lineCap=W,this.pdf.setLineCap(W))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(W){isNaN(W)||(this.ctx.lineWidth=W,this.pdf.setLineWidth(W))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(W){["bevel","round","miter"].indexOf(W)!==-1&&(this.ctx.lineJoin=W,this.pdf.setLineJoin(W))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(W){isNaN(W)||(this.ctx.miterLimit=W,this.pdf.setMiterLimit(W))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(W){this.ctx.textBaseline=W}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(W){["right","end","center","left","start"].indexOf(W)!==-1&&(this.ctx.textAlign=W)}});var HA=null,GA=null,VA=null;Object.defineProperty(this,"fontFaces",{get:function(){return VA},set:function(W){HA=null,GA=null,VA=W}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(W){var RA;if(this.ctx.font=W,(RA=/^\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-z0-9]+?)\s*$/i.exec(W))!==null){var kA=RA[1];RA[2];var te=RA[3],LA=RA[4];RA[5];var fe=RA[6],ZA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(LA)[2];LA=Math.floor(ZA==="px"?parseFloat(LA)*this.pdf.internal.scaleFactor:ZA==="em"?parseFloat(LA)*this.pdf.getFontSize():parseFloat(LA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(LA);var de=(function(oe){var vt,Pe,Qe=[],Se=oe.trim();if(Se==="")return hu;if(Se in F2)return[F2[Se]];for(;Se!=="";){switch(Pe=null,vt=(Se=E2(Se)).charAt(0)){case'"':case"'":Pe=Ky(Se.substring(1),vt);break;default:Pe=Gy(Se)}if(Pe===null||(Qe.push(Pe[0]),(Se=E2(Pe[1]))!==""&&Se.charAt(0)!==","))return hu;Se=Se.replace(/^,/,"")}return Qe})(fe);if(this.fontFaces){var ce=(function(oe,vt){var Pe=oe.getFontList(),Qe=JSON.stringify(Pe);if(HA===null||GA!==Qe){var Se=(function(ct){var ge=[];return Object.keys(ct).forEach(function(Je){ct[Je].forEach(function(Be){var Ce=null;switch(Be){case"bold":Ce={family:Je,weight:"bold"};break;case"italic":Ce={family:Je,style:"italic"};break;case"bolditalic":Ce={family:Je,weight:"bold",style:"italic"};break;case"":case"normal":Ce={family:Je}}Ce!==null&&(Ce.ref={name:Je,style:Be},ge.push(Ce))})}),ge})(Pe);HA=(function(ct){for(var ge={},Je=0;Je<ct.length;++Je){var Be=uu(ct[Je]),Ce=Be.family,ut=Be.stretch,De=Be.style,pe=Be.weight;ge[Ce]=ge[Ce]||{},ge[Ce][ut]=ge[Ce][ut]||{},ge[Ce][ut][De]=ge[Ce][ut][De]||{},ge[Ce][ut][De][pe]=Be}return ge})(Se.concat(vt)),GA=Qe}return HA})(this.pdf,this.fontFaces),Le=de.map(function(oe){return{family:oe,stretch:"normal",weight:te,style:kA}}),Ie=(function(oe,vt,Pe){for(var Qe=(Pe=Pe||{}).defaultFontFamily||"times",Se=Object.assign({},My,Pe.genericFontFamilies||{}),ct=null,ge=null,Je=0;Je<vt.length;++Je)if(Se[(ct=uu(vt[Je])).family]&&(ct.family=Se[ct.family]),oe.hasOwnProperty(ct.family)){ge=oe[ct.family];break}if(!(ge=ge||oe[Qe]))throw new Error("Could not find a font-family for the rule '"+y2(ct)+"' and default family '"+Qe+"'.");if(ge=(function(Be,Ce){if(Ce[Be])return Ce[Be];var ut=nh[Be],De=ut<=nh.normal?-1:1,pe=C2(Ce,pB,ut,De);if(!pe)throw new Error("Could not find a matching font-stretch value for "+Be);return pe})(ct.stretch,ge),ge=(function(Be,Ce){if(Ce[Be])return Ce[Be];for(var ut=gB[Be],De=0;De<ut.length;++De)if(Ce[ut[De]])return Ce[ut[De]];throw new Error("Could not find a matching font-style for "+Be)})(ct.style,ge),!(ge=(function(Be,Ce){if(Ce[Be])return Ce[Be];if(Be===400&&Ce[500])return Ce[500];if(Be===500&&Ce[400])return Ce[400];var ut=Ry[Be],De=C2(Ce,BB,ut,Be<400?-1:1);if(!De)throw new Error("Could not find a matching font-weight for value "+Be);return De})(ct.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+y2(ct)+"'.");return ge})(ce,Le);this.pdf.setFont(Ie.ref.name,Ie.ref.style)}else{var me="";(te==="bold"||parseInt(te,10)>=700||kA==="bold")&&(me="bold"),kA==="italic"&&(me+="italic"),me.length===0&&(me="normal");for(var ke="",_e={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"},ie=0;ie<de.length;ie++){if(this.pdf.internal.getFont(de[ie],me,{noFallback:!0,disableWarning:!0})!==void 0){ke=de[ie];break}if(me==="bolditalic"&&this.pdf.internal.getFont(de[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ke=de[ie],me="bold";else if(this.pdf.internal.getFont(de[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ke=de[ie],me="normal";break}}if(ke===""){for(var ye=0;ye<de.length;ye++)if(_e[de[ye]]){ke=_e[de[ye]];break}}ke=ke===""?"Times":ke,this.pdf.setFont(ke,me)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(W){this.ctx.globalCompositeOperation=W}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(W){this.ctx.globalAlpha=W}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(W){this.ctx.lineDashOffset=W,_A.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(W){this.ctx.lineDash=W,_A.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(W){this.ctx.ignoreClearRect=!!W}})};d.prototype.setLineDash=function(m){this.lineDash=m},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){L.call(this,"fill",!1)},d.prototype.stroke=function(){L.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(m,Q){if(isNaN(m)||isNaN(Q))throw lt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var U=this.ctx.transform.applyToPoint(new a(m,Q));this.path.push({type:"mt",x:U.x,y:U.y}),this.ctx.lastPoint=new a(m,Q)},d.prototype.closePath=function(){var m=new a(0,0),Q=0;for(Q=this.path.length-1;Q!==-1;Q--)if(this.path[Q].type==="begin"&&tt(this.path[Q+1])==="object"&&typeof this.path[Q+1].x=="number"){m=new a(this.path[Q+1].x,this.path[Q+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(m.x,m.y)},d.prototype.lineTo=function(m,Q){if(isNaN(m)||isNaN(Q))throw lt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var U=this.ctx.transform.applyToPoint(new a(m,Q));this.path.push({type:"lt",x:U.x,y:U.y}),this.ctx.lastPoint=new a(U.x,U.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),L.call(this,null,!0)},d.prototype.quadraticCurveTo=function(m,Q,U,N){if(isNaN(U)||isNaN(N)||isNaN(m)||isNaN(Q))throw lt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var j=this.ctx.transform.applyToPoint(new a(U,N)),nA=this.ctx.transform.applyToPoint(new a(m,Q));this.path.push({type:"qct",x1:nA.x,y1:nA.y,x:j.x,y:j.y}),this.ctx.lastPoint=new a(j.x,j.y)},d.prototype.bezierCurveTo=function(m,Q,U,N,j,nA){if(isNaN(j)||isNaN(nA)||isNaN(m)||isNaN(Q)||isNaN(U)||isNaN(N))throw lt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var fA=this.ctx.transform.applyToPoint(new a(j,nA)),oA=this.ctx.transform.applyToPoint(new a(m,Q)),lA=this.ctx.transform.applyToPoint(new a(U,N));this.path.push({type:"bct",x1:oA.x,y1:oA.y,x2:lA.x,y2:lA.y,x:fA.x,y:fA.y}),this.ctx.lastPoint=new a(fA.x,fA.y)},d.prototype.arc=function(m,Q,U,N,j,nA){if(isNaN(m)||isNaN(Q)||isNaN(U)||isNaN(N)||isNaN(j))throw lt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(nA=!!nA,!this.ctx.transform.isIdentity){var fA=this.ctx.transform.applyToPoint(new a(m,Q));m=fA.x,Q=fA.y;var oA=this.ctx.transform.applyToPoint(new a(0,U)),lA=this.ctx.transform.applyToPoint(new a(0,0));U=Math.sqrt(Math.pow(oA.x-lA.x,2)+Math.pow(oA.y-lA.y,2))}Math.abs(j-N)>=2*Math.PI&&(N=0,j=2*Math.PI),this.path.push({type:"arc",x:m,y:Q,radius:U,startAngle:N,endAngle:j,counterclockwise:nA})},d.prototype.arcTo=function(m,Q,U,N,j){throw new Error("arcTo not implemented.")},d.prototype.rect=function(m,Q,U,N){if(isNaN(m)||isNaN(Q)||isNaN(U)||isNaN(N))throw lt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(m,Q),this.lineTo(m+U,Q),this.lineTo(m+U,Q+N),this.lineTo(m,Q+N),this.lineTo(m,Q),this.lineTo(m+U,Q),this.lineTo(m,Q)},d.prototype.fillRect=function(m,Q,U,N){if(isNaN(m)||isNaN(Q)||isNaN(U)||isNaN(N))throw lt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!u.call(this)){var j={};this.lineCap!=="butt"&&(j.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(j.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(m,Q,U,N),this.fill(),j.hasOwnProperty("lineCap")&&(this.lineCap=j.lineCap),j.hasOwnProperty("lineJoin")&&(this.lineJoin=j.lineJoin)}},d.prototype.strokeRect=function(m,Q,U,N){if(isNaN(m)||isNaN(Q)||isNaN(U)||isNaN(N))throw lt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(m,Q,U,N),this.stroke())},d.prototype.clearRect=function(m,Q,U,N){if(isNaN(m)||isNaN(Q)||isNaN(U)||isNaN(N))throw lt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(m,Q,U,N))},d.prototype.save=function(m){m=typeof m!="boolean"||m;for(var Q=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("q");if(this.pdf.setPage(Q),m){this.ctx.fontSize=this.pdf.internal.getFontSize();var N=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=N}},d.prototype.restore=function(m){m=typeof m!="boolean"||m;for(var Q=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("Q");this.pdf.setPage(Q),m&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(m){var Q,U,N,j;if(m.isCanvasGradient===!0&&(m=m.getColor()),!m)return{r:0,g:0,b:0,a:0,style:m};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(m))Q=0,U=0,N=0,j=0;else{var nA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(m);if(nA!==null)Q=parseInt(nA[1]),U=parseInt(nA[2]),N=parseInt(nA[3]),j=1;else if((nA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(m))!==null)Q=parseInt(nA[1]),U=parseInt(nA[2]),N=parseInt(nA[3]),j=parseFloat(nA[4]);else{if(j=1,typeof m=="string"&&m.charAt(0)!=="#"){var fA=new oB(m);m=fA.ok?fA.toHex():"#000000"}m.length===4?(Q=m.substring(1,2),Q+=Q,U=m.substring(2,3),U+=U,N=m.substring(3,4),N+=N):(Q=m.substring(1,3),U=m.substring(3,5),N=m.substring(5,7)),Q=parseInt(Q,16),U=parseInt(U,16),N=parseInt(N,16)}}return{r:Q,g:U,b:N,a:j,style:m}},u=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},v=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(m,Q,U,N){if(isNaN(Q)||isNaN(U)||typeof m!="string")throw lt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(N=isNaN(N)?void 0:N,!u.call(this)){var j=hA(this.ctx.transform.rotation),nA=this.ctx.transform.scaleX;T.call(this,{text:m,x:Q,y:U,scale:nA,angle:j,align:this.textAlign,maxWidth:N})}},d.prototype.strokeText=function(m,Q,U,N){if(isNaN(Q)||isNaN(U)||typeof m!="string")throw lt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){N=isNaN(N)?void 0:N;var j=hA(this.ctx.transform.rotation),nA=this.ctx.transform.scaleX;T.call(this,{text:m,x:Q,y:U,scale:nA,renderingMode:"stroke",angle:j,align:this.textAlign,maxWidth:N})}},d.prototype.measureText=function(m){if(typeof m!="string")throw lt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Q=this.pdf,U=this.pdf.internal.scaleFactor,N=Q.internal.getFontSize(),j=Q.getStringUnitWidth(m)*N/Q.internal.scaleFactor;return new function(nA){var fA=(nA=nA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return fA}}),this}({width:j*=Math.round(96*U/72*1e4)/1e4})},d.prototype.scale=function(m,Q){if(isNaN(m)||isNaN(Q))throw lt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var U=new o(m,0,0,Q,0,0);this.ctx.transform=this.ctx.transform.multiply(U)},d.prototype.rotate=function(m){if(isNaN(m))throw lt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Q=new o(Math.cos(m),Math.sin(m),-Math.sin(m),Math.cos(m),0,0);this.ctx.transform=this.ctx.transform.multiply(Q)},d.prototype.translate=function(m,Q){if(isNaN(m)||isNaN(Q))throw lt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var U=new o(1,0,0,1,m,Q);this.ctx.transform=this.ctx.transform.multiply(U)},d.prototype.transform=function(m,Q,U,N,j,nA){if(isNaN(m)||isNaN(Q)||isNaN(U)||isNaN(N)||isNaN(j)||isNaN(nA))throw lt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var fA=new o(m,Q,U,N,j,nA);this.ctx.transform=this.ctx.transform.multiply(fA)},d.prototype.setTransform=function(m,Q,U,N,j,nA){m=isNaN(m)?1:m,Q=isNaN(Q)?0:Q,U=isNaN(U)?0:U,N=isNaN(N)?1:N,j=isNaN(j)?0:j,nA=isNaN(nA)?0:nA,this.ctx.transform=new o(m,Q,U,N,j,nA)};var B=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(m,Q,U,N,j,nA,fA,oA,lA){var SA=this.pdf.getImageProperties(m),HA=1,GA=1,VA=1,W=1;N!==void 0&&oA!==void 0&&(VA=oA/N,W=lA/j,HA=SA.width/N*oA/N,GA=SA.height/j*lA/j),nA===void 0&&(nA=Q,fA=U,Q=0,U=0),N!==void 0&&oA===void 0&&(oA=N,lA=j),N===void 0&&oA===void 0&&(oA=SA.width,lA=SA.height);var RA=this.ctx.transform.decompose(),kA=hA(RA.rotate.shx),te=new o,LA=(te=(te=(te=te.multiply(RA.translate)).multiply(RA.skew)).multiply(RA.scale)).applyToRectangle(new s(nA-Q*VA,fA-U*W,N*HA,j*GA));if(this.autoPaging){for(var fe,ZA=x.call(this,LA),de=[],ce=0;ce<ZA.length;ce+=1)de.indexOf(ZA[ce])===-1&&de.push(ZA[ce]);I(de);for(var Le=de[0],Ie=de[de.length-1],me=Le;me<Ie+1;me++){this.pdf.setPage(me);var ke=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],_e=me===1?this.posY+this.margin[0]:this.margin[0],ie=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ye=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],oe=me===1?0:ie+(me-2)*ye;if(this.ctx.clip_path.length!==0){var vt=this.path;fe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(fe,this.posX+this.margin[3],-oe+_e+this.ctx.prevPageLastElemOffset),q.call(this,"fill",!0),this.path=vt}var Pe=JSON.parse(JSON.stringify(LA));Pe=_([Pe],this.posX+this.margin[3],-oe+_e+this.ctx.prevPageLastElemOffset)[0];var Qe=(me>Le||me<Ie)&&B.call(this);Qe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ke,ye,null).clip().discardPath()),this.pdf.addImage(m,"JPEG",Pe.x,Pe.y,Pe.w,Pe.h,null,null,kA),Qe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(m,"JPEG",LA.x,LA.y,LA.w,LA.h,null,null,kA)};var x=function(m,Q,U){var N=[];Q=Q||this.pdf.internal.pageSize.width,U=U||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var j=this.posY+this.ctx.prevPageLastElemOffset;switch(m.type){default:case"mt":case"lt":N.push(Math.floor((m.y+j)/U)+1);break;case"arc":N.push(Math.floor((m.y+j-m.radius)/U)+1),N.push(Math.floor((m.y+j+m.radius)/U)+1);break;case"qct":var nA=CA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,m.x1,m.y1,m.x,m.y);N.push(Math.floor((nA.y+j)/U)+1),N.push(Math.floor((nA.y+nA.h+j)/U)+1);break;case"bct":var fA=IA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,m.x1,m.y1,m.x2,m.y2,m.x,m.y);N.push(Math.floor((fA.y+j)/U)+1),N.push(Math.floor((fA.y+fA.h+j)/U)+1);break;case"rect":N.push(Math.floor((m.y+j)/U)+1),N.push(Math.floor((m.y+m.h+j)/U)+1)}for(var oA=0;oA<N.length;oA+=1)for(;this.pdf.internal.getNumberOfPages()<N[oA];)F.call(this);return N},F=function(){var m=this.fillStyle,Q=this.strokeStyle,U=this.font,N=this.lineCap,j=this.lineWidth,nA=this.lineJoin;this.pdf.addPage(),this.fillStyle=m,this.strokeStyle=Q,this.font=U,this.lineCap=N,this.lineWidth=j,this.lineJoin=nA},_=function(m,Q,U){for(var N=0;N<m.length;N++)switch(m[N].type){case"bct":m[N].x2+=Q,m[N].y2+=U;case"qct":m[N].x1+=Q,m[N].y1+=U;default:m[N].x+=Q,m[N].y+=U}return m},I=function(m){return m.sort(function(Q,U){return Q-U})},L=function(m,Q){var U=this.fillStyle,N=this.strokeStyle,j=this.lineCap,nA=this.lineWidth,fA=Math.abs(nA*this.ctx.transform.scaleX),oA=this.lineJoin;if(this.autoPaging){for(var lA,SA,HA=JSON.parse(JSON.stringify(this.path)),GA=JSON.parse(JSON.stringify(this.path)),VA=[],W=0;W<GA.length;W++)if(GA[W].x!==void 0)for(var RA=x.call(this,GA[W]),kA=0;kA<RA.length;kA+=1)VA.indexOf(RA[kA])===-1&&VA.push(RA[kA]);for(var te=0;te<VA.length;te++)for(;this.pdf.internal.getNumberOfPages()<VA[te];)F.call(this);I(VA);for(var LA=VA[0],fe=VA[VA.length-1],ZA=LA;ZA<fe+1;ZA++){this.pdf.setPage(ZA),this.fillStyle=U,this.strokeStyle=N,this.lineCap=j,this.lineWidth=fA,this.lineJoin=oA;var de=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ce=ZA===1?this.posY+this.margin[0]:this.margin[0],Le=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ie=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],me=ZA===1?0:Le+(ZA-2)*Ie;if(this.ctx.clip_path.length!==0){var ke=this.path;lA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(lA,this.posX+this.margin[3],-me+ce+this.ctx.prevPageLastElemOffset),q.call(this,m,!0),this.path=ke}if(SA=JSON.parse(JSON.stringify(HA)),this.path=_(SA,this.posX+this.margin[3],-me+ce+this.ctx.prevPageLastElemOffset),Q===!1||ZA===0){var _e=(ZA>LA||ZA<fe)&&B.call(this);_e&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],de,Ie,null).clip().discardPath()),q.call(this,m,Q),_e&&this.pdf.restoreGraphicsState()}this.lineWidth=nA}this.path=HA}else this.lineWidth=fA,q.call(this,m,Q),this.lineWidth=nA},q=function(m,Q){if((m!=="stroke"||Q||!v.call(this))&&(m==="stroke"||Q||!u.call(this))){for(var U,N,j=[],nA=this.path,fA=0;fA<nA.length;fA++){var oA=nA[fA];switch(oA.type){case"begin":j.push({begin:!0});break;case"close":j.push({close:!0});break;case"mt":j.push({start:oA,deltas:[],abs:[]});break;case"lt":var lA=j.length;if(nA[fA-1]&&!isNaN(nA[fA-1].x)&&(U=[oA.x-nA[fA-1].x,oA.y-nA[fA-1].y],lA>0)){for(;lA>=0;lA--)if(j[lA-1].close!==!0&&j[lA-1].begin!==!0){j[lA-1].deltas.push(U),j[lA-1].abs.push(oA);break}}break;case"bct":U=[oA.x1-nA[fA-1].x,oA.y1-nA[fA-1].y,oA.x2-nA[fA-1].x,oA.y2-nA[fA-1].y,oA.x-nA[fA-1].x,oA.y-nA[fA-1].y],j[j.length-1].deltas.push(U);break;case"qct":var SA=nA[fA-1].x+2/3*(oA.x1-nA[fA-1].x),HA=nA[fA-1].y+2/3*(oA.y1-nA[fA-1].y),GA=oA.x+2/3*(oA.x1-oA.x),VA=oA.y+2/3*(oA.y1-oA.y),W=oA.x,RA=oA.y;U=[SA-nA[fA-1].x,HA-nA[fA-1].y,GA-nA[fA-1].x,VA-nA[fA-1].y,W-nA[fA-1].x,RA-nA[fA-1].y],j[j.length-1].deltas.push(U);break;case"arc":j.push({deltas:[],abs:[],arc:!0}),Array.isArray(j[j.length-1].abs)&&j[j.length-1].abs.push(oA)}}N=Q?null:m==="stroke"?"stroke":"fill";for(var kA=!1,te=0;te<j.length;te++)if(j[te].arc)for(var LA=j[te].abs,fe=0;fe<LA.length;fe++){var ZA=LA[fe];ZA.type==="arc"?R.call(this,ZA.x,ZA.y,ZA.radius,ZA.startAngle,ZA.endAngle,ZA.counterclockwise,void 0,Q,!kA):P.call(this,ZA.x,ZA.y),kA=!0}else if(j[te].close===!0)this.pdf.internal.out("h"),kA=!1;else if(j[te].begin!==!0){var de=j[te].start.x,ce=j[te].start.y;eA.call(this,j[te].deltas,de,ce),kA=!0}N&&E.call(this,N),Q&&X.call(this)}},rA=function(m){var Q=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,U=Q*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return m-U;case"top":return m+Q-U;case"hanging":return m+Q-2*U;case"middle":return m+Q/2-U;default:return m}},M=function(m){return m+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var m=function(){};return m.colorStops=[],m.addColorStop=function(Q,U){this.colorStops.push([Q,U])},m.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},m.isCanvasGradient=!0,m},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var R=function(m,Q,U,N,j,nA,fA,oA,lA){for(var SA=wA.call(this,U,N,j,nA),HA=0;HA<SA.length;HA++){var GA=SA[HA];HA===0&&(lA?y.call(this,GA.x1+m,GA.y1+Q):P.call(this,GA.x1+m,GA.y1+Q)),sA.call(this,m,Q,GA.x2,GA.y2,GA.x3,GA.y3,GA.x4,GA.y4)}oA?X.call(this):E.call(this,fA)},E=function(m){switch(m){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},X=function(){this.pdf.clip(),this.pdf.discardPath()},y=function(m,Q){this.pdf.internal.out(t(m)+" "+r(Q)+" m")},T=function(m){var Q;switch(m.align){case"right":case"end":Q="right";break;case"center":Q="center";break;default:Q="left"}var U,N,j,nA=this.pdf.getTextDimensions(m.text),fA=rA.call(this,m.y),oA=M.call(this,fA)-nA.h,lA=this.ctx.transform.applyToPoint(new a(m.x,fA));if(this.autoPaging){var SA=this.ctx.transform.decompose(),HA=new o;HA=(HA=(HA=HA.multiply(SA.translate)).multiply(SA.skew)).multiply(SA.scale);for(var GA=this.ctx.transform.applyToRectangle(new s(m.x,fA,nA.w,nA.h)),VA=HA.applyToRectangle(new s(m.x,oA,nA.w,nA.h)),W=x.call(this,VA),RA=[],kA=0;kA<W.length;kA+=1)RA.indexOf(W[kA])===-1&&RA.push(W[kA]);I(RA);for(var te=RA[0],LA=RA[RA.length-1],fe=te;fe<LA+1;fe++){this.pdf.setPage(fe);var ZA=fe===1?this.posY+this.margin[0]:this.margin[0],de=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ce=this.pdf.internal.pageSize.height-this.margin[2],Le=ce-this.margin[0],Ie=this.pdf.internal.pageSize.width-this.margin[1],me=Ie-this.margin[3],ke=fe===1?0:de+(fe-2)*Le;if(this.ctx.clip_path.length!==0){var _e=this.path;U=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(U,this.posX+this.margin[3],-1*ke+ZA),q.call(this,"fill",!0),this.path=_e}var ie=_([JSON.parse(JSON.stringify(VA))],this.posX+this.margin[3],-ke+ZA+this.ctx.prevPageLastElemOffset)[0];m.scale>=.01&&(N=this.pdf.internal.getFontSize(),this.pdf.setFontSize(N*m.scale),j=this.lineWidth,this.lineWidth=j*m.scale);var ye=this.autoPaging!=="text";if(ye||ie.y+ie.h<=ce){if(ye||ie.y>=ZA&&ie.x<=Ie){var oe=ye?m.text:this.pdf.splitTextToSize(m.text,m.maxWidth||Ie-ie.x)[0],vt=_([JSON.parse(JSON.stringify(GA))],this.posX+this.margin[3],-ke+ZA+this.ctx.prevPageLastElemOffset)[0],Pe=ye&&(fe>te||fe<LA)&&B.call(this);Pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],me,Le,null).clip().discardPath()),this.pdf.text(oe,vt.x,vt.y,{angle:m.angle,align:Q,renderingMode:m.renderingMode}),Pe&&this.pdf.restoreGraphicsState()}}else ie.y<ce&&(this.ctx.prevPageLastElemOffset+=ce-ie.y);m.scale>=.01&&(this.pdf.setFontSize(N),this.lineWidth=j)}}else m.scale>=.01&&(N=this.pdf.internal.getFontSize(),this.pdf.setFontSize(N*m.scale),j=this.lineWidth,this.lineWidth=j*m.scale),this.pdf.text(m.text,lA.x+this.posX,lA.y+this.posY,{angle:m.angle,align:Q,renderingMode:m.renderingMode,maxWidth:m.maxWidth}),m.scale>=.01&&(this.pdf.setFontSize(N),this.lineWidth=j)},P=function(m,Q,U,N){U=U||0,N=N||0,this.pdf.internal.out(t(m+U)+" "+r(Q+N)+" l")},eA=function(m,Q,U){return this.pdf.lines(m,Q,U,null,null)},sA=function(m,Q,U,N,j,nA,fA,oA){this.pdf.internal.out([e(n(U+m)),e(i(N+Q)),e(n(j+m)),e(i(nA+Q)),e(n(fA+m)),e(i(oA+Q)),"c"].join(" "))},wA=function(m,Q,U,N){for(var j=2*Math.PI,nA=Math.PI/2;Q>U;)Q-=j;var fA=Math.abs(U-Q);fA<j&&N&&(fA=j-fA);for(var oA=[],lA=N?-1:1,SA=Q;fA>1e-5;){var HA=SA+lA*Math.min(fA,nA);oA.push(gA.call(this,m,SA,HA)),fA-=Math.abs(HA-SA),SA=HA}return oA},gA=function(m,Q,U){var N=(U-Q)/2,j=m*Math.cos(N),nA=m*Math.sin(N),fA=j,oA=-nA,lA=fA*fA+oA*oA,SA=lA+fA*j+oA*nA,HA=4/3*(Math.sqrt(2*lA*SA)-SA)/(fA*nA-oA*j),GA=fA-HA*oA,VA=oA+HA*fA,W=GA,RA=-VA,kA=N+Q,te=Math.cos(kA),LA=Math.sin(kA);return{x1:m*Math.cos(Q),y1:m*Math.sin(Q),x2:GA*te-VA*LA,y2:GA*LA+VA*te,x3:W*te-RA*LA,y3:W*LA+RA*te,x4:m*Math.cos(U),y4:m*Math.sin(U)}},hA=function(m){return 180*m/Math.PI},CA=function(m,Q,U,N,j,nA){var fA=m+.5*(U-m),oA=Q+.5*(N-Q),lA=j+.5*(U-j),SA=nA+.5*(N-nA),HA=Math.min(m,j,fA,lA),GA=Math.max(m,j,fA,lA),VA=Math.min(Q,nA,oA,SA),W=Math.max(Q,nA,oA,SA);return new s(HA,VA,GA-HA,W-VA)},IA=function(m,Q,U,N,j,nA,fA,oA){var lA,SA,HA,GA,VA,W,RA,kA,te,LA,fe,ZA,de,ce,Le=U-m,Ie=N-Q,me=j-U,ke=nA-N,_e=fA-j,ie=oA-nA;for(SA=0;SA<41;SA++)te=(RA=(HA=m+(lA=SA/40)*Le)+lA*((VA=U+lA*me)-HA))+lA*(VA+lA*(j+lA*_e-VA)-RA),LA=(kA=(GA=Q+lA*Ie)+lA*((W=N+lA*ke)-GA))+lA*(W+lA*(nA+lA*ie-W)-kA),SA==0?(fe=te,ZA=LA,de=te,ce=LA):(fe=Math.min(fe,te),ZA=Math.min(ZA,LA),de=Math.max(de,te),ce=Math.max(ce,LA));return new s(Math.round(fe),Math.round(ZA),Math.round(de-fe),Math.round(ce-ZA))},_A=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var m,Q,U=(m=this.ctx.lineDash,Q=this.ctx.lineDashOffset,JSON.stringify({lineDash:m,lineDashOffset:Q}));this.prevLineDash!==U&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=U)}}})(he.API),(function(A){var e=function(a){var s,o,f,l,d,g,u,v,B,x;for(o=[],f=0,l=(a+=s="\0\0\0\0".slice(a.length%4||4)).length;l>f;f+=4)(d=(a.charCodeAt(f)<<24)+(a.charCodeAt(f+1)<<16)+(a.charCodeAt(f+2)<<8)+a.charCodeAt(f+3))!==0?(g=(d=((d=((d=((d=(d-(x=d%85))/85)-(B=d%85))/85)-(v=d%85))/85)-(u=d%85))/85)%85,o.push(g+33,u+33,v+33,B+33,x+33)):o.push(122);return(function(F,_){for(var I=_;I>0;I--)F.pop()})(o,s.length),String.fromCharCode.apply(String,o)+"~>"},t=function(a){var s,o,f,l,d,g=String,u="length",v=255,B="charCodeAt",x="slice",F="replace";for(a[x](-2),a=a[x](0,-2)[F](/\s/g,"")[F]("z","!!!!!"),f=[],l=0,d=(a+=s="uuuuu"[x](a[u]%5||5))[u];d>l;l+=5)o=52200625*(a[B](l)-33)+614125*(a[B](l+1)-33)+7225*(a[B](l+2)-33)+85*(a[B](l+3)-33)+(a[B](l+4)-33),f.push(v&o>>24,v&o>>16,v&o>>8,v&o);return(function(_,I){for(var L=I;L>0;L--)_.pop()})(f,s[u]),g.fromCharCode.apply(g,f)},r=function(a){return a.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(a){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),s.test(a)===!1)return"";for(var o="",f=0;f<a.length;f+=2)o+=String.fromCharCode("0x"+(a[f]+a[f+1]));return o},i=function(a){for(var s=new Uint8Array(a.length),o=a.length;o--;)s[o]=a.charCodeAt(o);return(s=Ju(s)).reduce(function(f,l){return f+String.fromCharCode(l)},"")};A.processDataByFilters=function(a,s){var o=0,f=a||"",l=[];for(typeof(s=s||[])=="string"&&(s=[s]),o=0;o<s.length;o+=1)switch(s[o]){case"ASCII85Decode":case"/ASCII85Decode":f=t(f),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=e(f),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=n(f),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=r(f),l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=i(f),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[o]+'" is not implemented')}return{data:f,reverseChain:l.reverse().join(" ")}}})(he.API),(function(A){A.loadFile=function(e,t,r){return(function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=(function(o,f,l){var d=new XMLHttpRequest,g=0,u=function(v){var B=v.length,x=[],F=String.fromCharCode;for(g=0;g<B;g+=1)x.push(F(255&v.charCodeAt(g)));return x.join("")};if(d.open("GET",o,!f),d.overrideMimeType("text/plain; charset=x-user-defined"),f===!1&&(d.onload=function(){d.status===200?l(u(this.responseText)):l(void 0)}),d.send(null),f&&d.status===200)return u(d.responseText)})(n,i,a)}catch{}return s})(e,t,r)},A.loadImageFile=A.loadFile})(he.API),(function(A){function e(){return(xe.html2canvas?Promise.resolve(xe.html2canvas):Fc(()=>Promise.resolve().then(()=>mF),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 t(){return(xe.DOMPurify?Promise.resolve(xe.DOMPurify):Fc(()=>import("./purify.es-B9ZVCkUG.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 o=tt(s);return o==="undefined"?"undefined":o==="string"||s instanceof String?"string":o==="number"||s instanceof Number?"number":o==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(s,o){var f=document.createElement(s);for(var l in o.className&&(f.className=o.className),o.innerHTML&&o.dompurify&&(f.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)f.style[l]=o.style[l];return f},i=function s(o,f){for(var l=o.nodeType===3?document.createTextNode(o.nodeValue):o.cloneNode(!1),d=o.firstChild;d;d=d.nextSibling)f!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||l.appendChild(s(d,f));return o.nodeType===1&&(o.nodeName==="CANVAS"?(l.width=o.width,l.height=o.height,l.getContext("2d").drawImage(o,0,0)):o.nodeName!=="TEXTAREA"&&o.nodeName!=="SELECT"||(l.value=o.value),l.addEventListener("load",function(){l.scrollTop=o.scrollTop,l.scrollLeft=o.scrollLeft},!0)),l},a=function s(o){var f=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),l=s.convert(Promise.resolve(),f);return(l=l.setProgress(1,s,1,[s])).set(o)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(s,o){return s.__proto__=o||a.prototype,s},a.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"}},a.prototype.from=function(s,o){return this.then(function(){switch(o=o||(function(f){switch(r(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(s),o){case"string":return this.then(t).then(function(f){return this.set({src:n("div",{innerHTML:s,dompurify:f})})});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.")}})},a.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.")}},a.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},o=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.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(o),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"})},a.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(o){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,o(this.prop.container,f)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},a.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(o){var f=this.opt.jsPDF,l=this.opt.fontFaces,d=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,g=Object.assign({async:!0,allowTaint:!0,scale:d,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 g.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=l,l)for(var u=0;u<l.length;++u){var v=l[u],B=v.src.find(function(x){return x.format==="truetype"});B&&f.addFont(B.url,v.ref.name,v.ref.style)}return g.windowHeight=g.windowHeight||0,g.windowHeight=g.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):g.windowHeight,f.context2d.save(!0),o(this.prop.container,g)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},a.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})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(s,o,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(s,o):this.outputPdf(s,o)},a.prototype.outputPdf=function(s,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,o)})},a.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.'}})},a.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)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(s){if(r(s)!=="object")return this;var o=Object.keys(s||{}).map(function(f){if(f in a.template.prop)return function(){this.prop[f]=s[f]};switch(f){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[f]=s[f]}}},this);return this.then(function(){return this.thenList(o)})},a.prototype.get=function(s,o){return this.then(function(){var f=s in a.template.prop?this.prop[s]:this.opt[s];return o?o(f):f})},a.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)},a.prototype.setPageSize=function(s){function o(f,l){return Math.floor(f*l/72*96)}return this.then(function(){(s=s||he.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:o(s.inner.width,s.k),height:o(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},a.prototype.setProgress=function(s,o,f,l){return s!=null&&(this.progress.val=s),o!=null&&(this.progress.state=o),f!=null&&(this.progress.n=f),l!=null&&(this.progress.stack=l),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(s,o,f,l){return this.setProgress(s?this.progress.val+s:null,o||null,f?this.progress.n+f:null,l?this.progress.stack.concat(l):null)},a.prototype.then=function(s,o){var f=this;return this.thenCore(s,o,function(l,d){return f.updateProgress(null,null,1,[l]),Promise.prototype.then.call(this,function(g){return f.updateProgress(null,l),g}).then(l,d).then(function(g){return f.updateProgress(1),g})})},a.prototype.thenCore=function(s,o,f){f=f||Promise.prototype.then;var l=this;s&&(s=s.bind(l)),o&&(o=o.bind(l));var d=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?l:a.convert(Object.assign({},l),Promise.prototype),g=f.call(d,s,o);return a.convert(g,l.__proto__)},a.prototype.thenExternal=function(s,o){return Promise.prototype.then.call(this,s,o)},a.prototype.thenList=function(s){var o=this;return s.forEach(function(f){o=o.thenCore(f)}),o},a.prototype.catch=function(s){s&&(s=s.bind(this));var o=Promise.prototype.catch.call(this,s);return a.convert(o,this)},a.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},a.prototype.error=function(s){return this.then(function(){throw new Error(s)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,he.getPageSize=function(s,o,f){if(tt(s)==="object"){var l=s;s=l.orientation,o=l.unit||o,f=l.format||f}o=o||"mm",f=f||"a4",s=(""+(s||"P")).toLowerCase();var d,g=(""+f).toLowerCase(),u={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(o){case"pt":d=1;break;case"mm":d=72/25.4;break;case"cm":d=72/2.54;break;case"in":d=72;break;case"px":d=.75;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+o}var v,B=0,x=0;if(u.hasOwnProperty(g))B=u[g][1]/d,x=u[g][0]/d;else try{B=f[1],x=f[0]}catch{throw new Error("Invalid format: "+f)}if(s==="p"||s==="portrait")s="p",x>B&&(v=x,x=B,B=v);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",B>x&&(v=x,x=B,B=v)}return{width:x,height:B,unit:o,k:d,orientation:s}},A.html=function(s,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(uu):null;var f=new a(o);return o.worker?f:f.from(s).doCallback()}})(he.API),he.API.addJS=function(A){return U2=A,this.internal.events.subscribe("postPutResources",function(){Sf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Sf+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),_2=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+U2+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Sf!==void 0&&_2!==void 0&&this.internal.out("/Names <</JavaScript "+Sf+" 0 R>>")}),this},(function(A){var e;A.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],s=r.exec(a);if(s!=null){var o=s[1];t.internal.newObjectDeferredBegin(o,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var f=this.internal.pages.length,l=[];for(i=0;i<f;i++){var d=t.internal.newObject();l.push(d);var g=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var u=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<l.length;i++)t.internal.write("(page_"+(i+1)+")"+l[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+u+" 0 R"),t.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),A.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,n,i){var a={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(a),a},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},t.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()},t.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var a=r.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.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])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var s=this.count=this.count_r({count:0},a);if(s>0&&this.line("/Count "+s),a.options&&a.options.pageNumber){var o=t.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var f=0;f<r.children.length;f++)this.renderItems(r.children[f])},t.outline.line=function(r){this.ctx.val+=r+`\r
`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},t.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}}])})(he.API),(function(A){var e=[192,193,194,195,196,197,198,199];A.processJPEG=function(t,r,n,i,a,s){var o,f=this.decode.DCT_DECODE,l=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,o=(function(d){for(var g,u=256*d.charCodeAt(4)+d.charCodeAt(5),v=d.length,B={width:0,height:0,numcomponents:1},x=4;x<v;x+=2){if(x+=u,e.indexOf(d.charCodeAt(x+1))!==-1){g=256*d.charCodeAt(x+5)+d.charCodeAt(x+6),B={width:256*d.charCodeAt(x+7)+d.charCodeAt(x+8),height:g,numcomponents:d.charCodeAt(x+9)};break}u=256*d.charCodeAt(x+2)+d.charCodeAt(x+3)}return B})(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),o.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}l={data:t,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:f,index:r,alias:n}}return l}})(he.API),he.API.processPNG=function(A,e,t,r){if(this.__addimage__.isArrayBuffer(A)&&(A=new Uint8Array(A)),this.__addimage__.isArrayBufferView(A)){var n,i=_y(A,{checkCrc:!0}),a=i.width,s=i.height,o=i.channels,f=i.palette,l=i.depth;n=f&&o===1?(function(R){for(var E=R.width,X=R.height,y=R.data,T=R.palette,P=R.depth,eA=!1,sA=[],wA=[],gA=void 0,hA=!1,CA=0,IA=0;IA<T.length;IA++){var _A=Td(T[IA],4),m=_A[0],Q=_A[1],U=_A[2],N=_A[3];sA.push(m,Q,U),N!=null&&(N===0?(CA++,wA.length<1&&wA.push(IA)):N<255&&(hA=!0))}if(hA||CA>1){eA=!0,wA=void 0;var j=E*X;gA=new Uint8Array(j);for(var nA=new DataView(y.buffer),fA=0;fA<j;fA++){var oA=du(nA,fA,P),lA=Td(T[oA],4)[3];gA[fA]=lA}}else CA===0&&(wA=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:eA?8:void 0,colorBytes:y,alphaBytes:gA,needSMask:eA,palette:sA,mask:wA}})(i):o===2||o===4?(function(R){for(var E=R.data,X=R.width,y=R.height,T=R.channels,P=R.depth,eA=T===2?"DeviceGray":"DeviceRGB",sA=T-1,wA=X*y,gA=sA,hA=wA*gA,CA=1*wA,IA=Math.ceil(hA*P/8),_A=Math.ceil(CA*P/8),m=new Uint8Array(IA),Q=new Uint8Array(_A),U=new DataView(E.buffer),N=new DataView(m.buffer),j=new DataView(Q.buffer),nA=!1,fA=0;fA<wA;fA++){for(var oA=fA*T,lA=0;lA<gA;lA++)D2(N,du(U,oA+lA,P),fA*gA+lA,P);var SA=du(U,oA+gA,P);SA<(1<<P)-1&&(nA=!0),D2(j,SA,1*fA,P)}return{colorSpace:eA,colorsPerPixel:sA,sMaskBitsPerComponent:nA?P:void 0,colorBytes:m,alphaBytes:Q,needSMask:nA}})(i):(function(R){var E=R.data,X=R.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:X,colorsPerPixel:X==="DeviceGray"?1:3,colorBytes:E instanceof Uint16Array?(function(y){for(var T=y.length,P=new Uint8Array(2*T),eA=new DataView(P.buffer,P.byteOffset,P.byteLength),sA=0;sA<T;sA++)eA.setUint16(2*sA,y[sA],!1);return P})(E):E,needSMask:!1}})(i);var d,g,u,v=n,B=v.colorSpace,x=v.colorsPerPixel,F=v.sMaskBitsPerComponent,_=v.colorBytes,I=v.alphaBytes,L=v.needSMask,q=v.palette,rA=v.mask,M=null;return r!==he.API.image_compression.NONE&&typeof Ju=="function"?(M=(function(R){var E;switch(R){case he.API.image_compression.FAST:E=11;break;case he.API.image_compression.MEDIUM:E=13;break;case he.API.image_compression.SLOW:E=14;break;default:E=12}return E})(r),d=this.decode.FLATE_DECODE,g="/Predictor ".concat(M," /Colors ").concat(x," /BitsPerComponent ").concat(l," /Columns ").concat(a),A=T2(_,Math.ceil(a*x*l/8),x,l,r),L&&(u=T2(I,Math.ceil(a*F/8),1,F,r))):(d=void 0,g=void 0,A=_,L&&(u=I)),(this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A))&&(A=this.__addimage__.arrayBufferToBinaryString(A)),(u&&this.__addimage__.isArrayBuffer(u)||this.__addimage__.isArrayBufferView(u))&&(u=this.__addimage__.arrayBufferToBinaryString(u)),{alias:t,data:A,index:e,filter:d,decodeParameters:g,transparency:rA,palette:q,sMask:u,predictor:M,width:a,height:s,bitsPerComponent:l,sMaskBitsPerComponent:F,colorSpace:B}}},(function(A){A.processGIF89A=function(e,t,r,n){var i=new Xy(e),a=i.width,s=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var f={data:o,width:a,height:s},l=new gu(100).encode(f,100);return A.processJPEG.call(this,l,t,r,n)},A.processGIF87A=A.processGIF89A})(he.API),Nn.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 A=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var e=0;e<A;e++){var t=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[e]={red:n,green:r,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Nn.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[A]()}catch(t){lt.log("bit decode error:"+t)}},Nn.prototype.bit1=function(){var A,e=Math.ceil(this.width/8),t=e%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<e;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var o=this.palette[i>>7-s&1];this.data[a+4*s]=o.blue,this.data[a+4*s+1]=o.green,this.data[a+4*s+2]=o.red,this.data[a+4*s+3]=255}t!==0&&(this.pos+=4-t)}},Nn.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),e=A%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*n*4,s=i>>4,o=15&i,f=this.palette[s];if(this.data[a]=f.blue,this.data[a+1]=f.green,this.data[a+2]=f.red,this.data[a+3]=255,2*n+1>=this.width)break;f=this.palette[o],this.data[a+4]=f.blue,this.data[a+4+1]=f.green,this.data[a+4+2]=f.red,this.data[a+4+3]=255}e!==0&&(this.pos+=4-e)}},Nn.prototype.bit8=function(){for(var A=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*r;if(n<this.palette.length){var a=this.palette[n];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.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}A!==0&&(this.pos+=4-A)}},Nn.prototype.bit15=function(){for(var A=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&e)/e*255|0,s=(i>>5&e)/e*255|0,o=(i>>10&e)/e*255|0,f=i>>15?255:0,l=r*this.width*4+4*n;this.data[l]=o,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=f}this.pos+=A}},Nn.prototype.bit16=function(){for(var A=this.width%3,e=parseInt("11111",2),t=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 a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,o=(a>>5&t)/t*255|0,f=(a>>11)/e*255|0,l=n*this.width*4+4*i;this.data[l]=f,this.data[l+1]=o,this.data[l+2]=s,this.data[l+3]=255}this.pos+=A}},Nn.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var e=this.bottom_up?A:this.height-1-A,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*t;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Nn.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var e=this.bottom_up?A:this.height-1-A,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=a}},Nn.prototype.getData=function(){return this.data},(function(A){A.processBMP=function(e,t,r,n){var i=new Nn(e,!1),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},f=new gu(100).encode(o,100);return A.processJPEG.call(this,f,t,r,n)}})(he.API),k2.prototype.getData=function(){return this.data},(function(A){A.processWEBP=function(e,t,r,n){var i=new k2(e),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},f=new gu(100).encode(o,100);return A.processJPEG.call(this,f,t,r,n)}})(he.API),he.API.processRGBA=function(A,e,t){for(var r=A.data,n=r.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),s=0,o=0,f=0;f<n;f+=4){var l=r[f],d=r[f+1],g=r[f+2],u=r[f+3];i[s++]=l,i[s++]=d,i[s++]=g,a[o++]=u}var v=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:v,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},he.API.setLanguage=function(A){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"}[A]!==void 0&&(this.internal.languageSettings.languageCode=A,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},Fs=he.API,Tf=Fs.getCharWidthsArray=function(A,e){var t,r,n=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:n.metadata.Unicode.widths,o=s.fof?s.fof:1,f=e.kerning?e.kerning:n.metadata.Unicode.kerning,l=f.fof?f.fof:1,d=e.doKerning!==!1,g=0,u=A.length,v=0,B=s[0]||o,x=[];for(t=0;t<u;t++)r=A.charCodeAt(t),typeof n.metadata.widthOfString=="function"?x.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+a*(1e3/i)||0)/1e3):(g=d&&tt(f[r])==="object"&&!isNaN(parseInt(f[r][v],10))?f[r][v]/l:0,x.push((s[r]||B)/o+g)),v=r;return x},b2=Fs.getStringUnitWidth=function(A,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return Fs.processArabic&&(A=Fs.processArabic(A)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(A,t,n)/t:Tf.apply(this,arguments).reduce(function(i,a){return i+a},0)},Q2=function(A,e,t,r){for(var n=[],i=0,a=A.length,s=0;i!==a&&s+e[i]<t;)s+=e[i],i++;n.push(A.slice(0,i));var o=i;for(s=0;i!==a;)s+e[i]>r&&(n.push(A.slice(o,i)),s=0,o=i),s+=e[i],i++;return o!==i&&n.push(A.slice(o,i)),n},S2=function(A,e,t){t||(t={});var r,n,i,a,s,o,f,l=[],d=[l],g=t.textIndent||0,u=0,v=0,B=A.split(" "),x=Tf.apply(this,[" ",t])[0];if(o=t.lineIndent===-1?B[0].length+2:t.lineIndent||0){var F=Array(o).join(" "),_=[];B.map(function(L){(L=L.split(/\s*\n/)).length>1?_=_.concat(L.map(function(q,rA){return(rA&&q.length?`
`:"")+q})):_.push(L[0])}),B=_,o=b2.apply(this,[F,t])}for(i=0,a=B.length;i<a;i++){var I=0;if(r=B[i],o&&r[0]==`
`&&(r=r.substr(1),I=1),g+u+(v=(n=Tf.apply(this,[r,t])).reduce(function(L,q){return L+q},0))>e||I){if(v>e){for(s=Q2.apply(this,[r,n,e-(g+u),e]),l.push(s.shift()),l=[s.pop()];s.length;)d.push([s.shift()]);v=n.slice(r.length-(l[0]?l[0].length:0)).reduce(function(L,q){return L+q},0)}else l=[r];d.push(l),g=v+o,u=x}else l.push(r),g+=u+v,u=x}return f=o?function(L,q){return(q?F:"")+L.join(" ")}:function(L){return L.join(" ")},d.map(f)},Fs.splitTextToSize=function(A,e,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=(function(l){if(l.widths&&l.kerning)return{widths:l.widths,kerning:l.kerning};var d=this.internal.getFont(l.fontName,l.fontStyle),g="Unicode";return d.metadata[g]?{widths:d.metadata[g].widths||{0:1},kerning:d.metadata[g].kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(A)?A:String(A).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var s,o,f=[];for(s=0,o=r.length;s<o;s++)f=f.concat(S2.apply(this,[r[s],a,i]));return f},(function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var e="0123456789abcdef",t="klmnopqrstuvwxyz",r={},n={},i=0;i<16;i++)r[t[i]]=e[i],n[e[i]]=t[i];var a=function(g){return"0x"+parseInt(g,10).toString(16)},s=A.__fontmetrics__.compress=function(g){var u,v,B,x,F=["{"];for(var _ in g){if(u=g[_],isNaN(parseInt(_,10))?v="'"+_+"'":(_=parseInt(_,10),v=(v=a(_).slice(2)).slice(0,-1)+n[v.slice(-1)]),typeof u=="number")u<0?(B=a(u).slice(3),x="-"):(B=a(u).slice(2),x=""),B=x+B.slice(0,-1)+n[B.slice(-1)];else{if(tt(u)!=="object")throw new Error("Don't know what to do with value type "+tt(u)+".");B=s(u)}F.push(v+B)}return F.push("}"),F.join("")},o=A.__fontmetrics__.uncompress=function(g){if(typeof g!="string")throw new Error("Invalid argument passed to uncompress.");for(var u,v,B,x,F={},_=1,I=F,L=[],q="",rA="",M=g.length-1,R=1;R<M;R+=1)(x=g[R])=="'"?u?(B=u.join(""),u=void 0):u=[]:u?u.push(x):x=="{"?(L.push([I,B]),I={},B=void 0):x=="}"?((v=L.pop())[0][v[1]]=I,B=void 0,I=v[0]):x=="-"?_=-1:B===void 0?r.hasOwnProperty(x)?(q+=r[x],B=parseInt(q,16)*_,_=1,q=""):q+=x:r.hasOwnProperty(x)?(rA+=r[x],I[B]=parseInt(rA,16)*_,_=1,B=void 0,rA=""):rA+=x;return F},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},d={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'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":o("{'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:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'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:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'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":o("{'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:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'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":o("{'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":o("{'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}}}")}};A.events.push(["addFont",function(g){var u=g.font,v=d.Unicode[u.postScriptName];v&&(u.metadata.Unicode={},u.metadata.Unicode.widths=v.widths,u.metadata.Unicode.kerning=v.kerning);var B=l.Unicode[u.postScriptName];B&&(u.metadata.Unicode.encoding=B,u.encoding=B.codePages[0])}])})(he.API),(function(A){var e=function(t){for(var r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n};A.API.events.push(["addFont",function(t){var r=void 0,n=t.font,i=t.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(a,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(Wf(s)),a.metadata=A.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,r)}}])})(he),he.API.addSvgAsImage=function(A,e,t,r,n,i,a,s){if(isNaN(e)||isNaN(t))throw lt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw lt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=r,o.height=n;var f=o.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,o.width,o.height);var l={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(xe.canvg?Promise.resolve(xe.canvg):Fc(()=>import("./index.es-C7awBMnN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)).catch(function(g){return Promise.reject(new Error("Could not load canvg: "+g))}).then(function(g){return g.default?g.default:g}).then(function(g){return g.fromString(f,A,l)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(g){return g.render(l)}).then(function(){d.addImage(o.toDataURL("image/jpeg",1),e,t,r,n,a,s)})},he.API.putTotalPages=function(A){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(A,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),t=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(e,t);return this},he.API.viewerPreferences=function(A,e){var t;A=A||{},e=e||!1;var r,n,i,a={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}},s=Object.keys(a),o=[],f=0,l=0,d=0;function g(v,B){var x,F=!1;for(x=0;x<v.length;x+=1)v[x]===B&&(F=!0);return F}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,A==="reset"||e===!0){var u=s.length;for(d=0;d<u;d+=1)t[s[d]].value=t[s[d]].defaultValue,t[s[d]].explicitSet=!1}if(tt(A)==="object"){for(n in A)if(i=A[n],g(s,n)&&i!==void 0){if(t[n].type==="boolean"&&typeof i=="boolean")t[n].value=i;else if(t[n].type==="name"&&g(t[n].valueSet,i))t[n].value=i;else if(t[n].type==="integer"&&Number.isInteger(i))t[n].value=i;else if(t[n].type==="array"){for(f=0;f<i.length;f+=1)if(r=!0,i[f].length===1&&typeof i[f][0]=="number")o.push(String(i[f]-1));else if(i[f].length>1){for(l=0;l<i[f].length;l+=1)typeof i[f][l]!="number"&&(r=!1);r===!0&&o.push([i[f][0]-1,i[f][1]-1].join(" "))}t[n].value="["+o.join(" ")+"]"}else t[n].value=t[n].defaultValue;t[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var v,B=[];for(v in t)t[v].explicitSet===!0&&(t[v].type==="name"?B.push("/"+v+" /"+t[v].value):B.push("/"+v+" "+t[v].value));B.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+B.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},(function(A){var e=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)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),f=i.length+a.length+s.length+n.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+f+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+s+o),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};A.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",t),this.internal.events.subscribe("postPutResources",e)),this}})(he.API),(function(A){var e=A.API,t=e.pdfEscape16=function(i,a){for(var s,o=a.metadata.Unicode.widths,f=["","0","00","000","0000"],l=[""],d=0,g=i.length;d<g;++d){if(s=a.metadata.characterToGlyph(i.charCodeAt(d)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=i.charCodeAt(d),o.indexOf(s)==-1&&(o.push(s),o.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return l.join("");s=s.toString(16),l.push(f[4-s.length],s)}return l.join("")},r=function(i){var a,s,o,f,l,d,g;for(l=`/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`,o=[],d=0,g=(s=Object.keys(i).sort(function(u,v){return u-v})).length;d<g;d++)a=s[d],o.length>=100&&(l+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar`,o=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(f=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),o.push("<"+a+"><"+f+">"));return o.length&&(l+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar
`),l+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,f=a.newObject,l=a.putStream;if(s.metadata instanceof A.API.TTFFont&&s.encoding==="Identity-H"){for(var d=s.metadata.Unicode.widths,g=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),u="",v=0;v<g.length;v++)u+=String.fromCharCode(g[v]);var B=f();l({data:u,addLength1:!0,objectId:B}),o("endobj");var x=f();l({data:r(s.metadata.toUnicode),addLength1:!0,objectId:x}),o("endobj");var F=f();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+Ss(s.fontName)),o("/FontFile2 "+B+" 0 R"),o("/FontBBox "+A.API.PDFObject.convert(s.metadata.bbox)),o("/Flags "+s.metadata.flags),o("/StemV "+s.metadata.stemV),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o(">>"),o("endobj");var _=f();o("<<"),o("/Type /Font"),o("/BaseFont /"+Ss(s.fontName)),o("/FontDescriptor "+F+" 0 R"),o("/W "+A.API.PDFObject.convert(d)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+s.encoding+")"),o(">>"),o(">>"),o("endobj"),s.objectNumber=f(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+x+" 0 R"),o("/BaseFont /"+Ss(s.fontName)),o("/Encoding /"+s.encoding),o("/DescendantFonts ["+_+" 0 R]"),o(">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]),e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,f=a.newObject,l=a.putStream;if(s.metadata instanceof A.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var d=s.metadata.rawData,g="",u=0;u<d.length;u++)g+=String.fromCharCode(d[u]);var v=f();l({data:g,addLength1:!0,objectId:v}),o("endobj");var B=f();l({data:r(s.metadata.toUnicode),addLength1:!0,objectId:B}),o("endobj");var x=f();o("<<"),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o("/StemV "+s.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+v+" 0 R"),o("/Flags 96"),o("/FontBBox "+A.API.PDFObject.convert(s.metadata.bbox)),o("/FontName /"+Ss(s.fontName)),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o(">>"),o("endobj"),s.objectNumber=f();for(var F=0;F<s.metadata.hmtx.widths.length;F++)s.metadata.hmtx.widths[F]=parseInt(s.metadata.hmtx.widths[F]*(1e3/s.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+B+" 0 R/BaseFont/"+Ss(s.fontName)+"/FontDescriptor "+x+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,s=i.text||"",o=i.x,f=i.y,l=i.options||{},d=i.mutex||{},g=d.pdfEscape,u=d.activeFontKey,v=d.fonts,B=u,x="",F=0,_="",I=v[B].encoding;if(v[B].encoding!=="Identity-H")return{text:s,x:o,y:f,options:l,mutex:d};for(_=s,B=u,Array.isArray(s)&&(_=s[0]),F=0;F<_.length;F+=1)v[B].metadata.hasOwnProperty("cmap")&&(a=v[B].metadata.cmap.unicode.codeMap[_[F].charCodeAt(0)]),a||_[F].charCodeAt(0)<256&&v[B].metadata.hasOwnProperty("Unicode")?x+=_[F]:x+="";var L="";return parseInt(B.slice(1))<14||I==="WinAnsiEncoding"?L=g(x,B).split("").map(function(q){return q.charCodeAt(0).toString(16)}).join(""):I==="Identity-H"&&(L=t(x,v[B])),d.isHex=!0,{text:L,x:o,y:f,options:l,mutex:d}};e.events.push(["postProcessText",function(i){var a=i.text||"",s=[],o={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var f=0;for(f=0;f<a.length;f+=1)Array.isArray(a[f])&&a[f].length===3?s.push([n(Object.assign({},o,{text:a[f][0]})).text,a[f][1],a[f][2]]):s.push(n(Object.assign({},o,{text:a[f]})).text);i.text=s}else i.text=n(Object.assign({},o,{text:a})).text}])})(he),(function(A){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},A.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},A.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}})(he.API),(function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(r){var n,i,a,s,o,f,l,d=e,g=[[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]],u=[[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]],v={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},B={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},x=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],F=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)$/),_=!1,I=0;this.__bidiEngine__={};var L=function(y){var T=y.charCodeAt(),P=T>>8,eA=B[P];return eA!==void 0?d[256*eA+(255&T)]:P===252||P===253?"AL":F.test(P)?"L":P===8?"R":"N"},q=function(y){for(var T,P=0;P<y.length;P++){if((T=L(y.charAt(P)))==="L")return!1;if(T==="R")return!0}return!1},rA=function(y,T,P,eA){var sA,wA,gA,hA,CA=T[eA];switch(CA){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_=!1;break;case"N":case"AN":break;case"EN":_&&(CA="AN");break;case"AL":_=!0,CA="R";break;case"WS":case"BN":CA="N";break;case"CS":eA<1||eA+1>=T.length||(sA=P[eA-1])!=="EN"&&sA!=="AN"||(wA=T[eA+1])!=="EN"&&wA!=="AN"?CA="N":_&&(wA="AN"),CA=wA===sA?wA:"N";break;case"ES":CA=(sA=eA>0?P[eA-1]:"B")==="EN"&&eA+1<T.length&&T[eA+1]==="EN"?"EN":"N";break;case"ET":if(eA>0&&P[eA-1]==="EN"){CA="EN";break}if(_){CA="N";break}for(gA=eA+1,hA=T.length;gA<hA&&T[gA]==="ET";)gA++;CA=gA<hA&&T[gA]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(hA=T.length,gA=eA+1;gA<hA&&T[gA]==="NSM";)gA++;if(gA<hA){var IA=y[eA],_A=IA>=1425&&IA<=2303||IA===64286;if(sA=T[gA],_A&&(sA==="R"||sA==="AL")){CA="R";break}}}CA=eA<1||(sA=T[eA-1])==="B"?"N":P[eA-1];break;case"B":_=!1,n=!0,CA=I;break;case"S":i=!0,CA="N"}return CA},M=function(y,T,P){var eA=y.split("");return P&&R(eA,P,{hiLevel:I}),eA.reverse(),T&&T.reverse(),eA.join("")},R=function(y,T,P){var eA,sA,wA,gA,hA,CA=-1,IA=y.length,_A=0,m=[],Q=I?u:g,U=[];for(_=!1,n=!1,i=!1,sA=0;sA<IA;sA++)U[sA]=L(y[sA]);for(wA=0;wA<IA;wA++){if(hA=_A,m[wA]=rA(y,U,m,wA),eA=240&(_A=Q[hA][v[m[wA]]]),_A&=15,T[wA]=gA=Q[_A][5],eA>0)if(eA===16){for(sA=CA;sA<wA;sA++)T[sA]=1;CA=-1}else CA=-1;if(Q[_A][6])CA===-1&&(CA=wA);else if(CA>-1){for(sA=CA;sA<wA;sA++)T[sA]=gA;CA=-1}U[wA]==="B"&&(T[wA]=0),P.hiLevel|=gA}i&&(function(N,j,nA){for(var fA=0;fA<nA;fA++)if(N[fA]==="S"){j[fA]=I;for(var oA=fA-1;oA>=0&&N[oA]==="WS";oA--)j[oA]=I}})(U,T,IA)},E=function(y,T,P,eA,sA){if(!(sA.hiLevel<y)){if(y===1&&I===1&&!n)return T.reverse(),void(P&&P.reverse());for(var wA,gA,hA,CA,IA=T.length,_A=0;_A<IA;){if(eA[_A]>=y){for(hA=_A+1;hA<IA&&eA[hA]>=y;)hA++;for(CA=_A,gA=hA-1;CA<gA;CA++,gA--)wA=T[CA],T[CA]=T[gA],T[gA]=wA,P&&(wA=P[CA],P[CA]=P[gA],P[gA]=wA);_A=hA}_A++}}},X=function(y,T,P){var eA=y.split(""),sA={hiLevel:I};return P||(P=[]),R(eA,P,sA),(function(wA,gA,hA){if(hA.hiLevel!==0&&l)for(var CA,IA=0;IA<wA.length;IA++)gA[IA]===1&&(CA=x.indexOf(wA[IA]))>=0&&(wA[IA]=x[CA+1])})(eA,P,sA),E(2,eA,T,P,sA),E(1,eA,T,P,sA),eA.join("")};return this.__bidiEngine__.doBidiReorder=function(y,T,P){if((function(sA,wA){if(wA)for(var gA=0;gA<sA.length;gA++)wA[gA]=gA;s===void 0&&(s=q(sA)),f===void 0&&(f=q(sA))})(y,T),a||!o||f)if(a&&o&&s^f)I=s?1:0,y=M(y,T,P);else if(!a&&o&&f)I=s?1:0,y=X(y,T,P),y=M(y,T);else if(!a||s||o||f){if(a&&!o&&s^f)y=M(y,T),s?(I=0,y=X(y,T,P)):(I=1,y=X(y,T,P),y=M(y,T));else if(a&&s&&!o&&f)I=1,y=X(y,T,P),y=M(y,T);else if(!a&&!o&&s^f){var eA=l;s?(I=1,y=X(y,T,P),I=0,l=!1,y=X(y,T,P),l=eA):(I=0,y=X(y,T,P),y=M(y,T),I=1,l=!1,y=X(y,T,P),l=eA,y=M(y,T))}}else I=0,y=X(y,T,P);else I=s?1:0,y=X(y,T,P);return y},this.__bidiEngine__.setOptions=function(y){y&&(a=y.isInputVisual,o=y.isOutputVisual,s=y.isInputRtl,f=y.isOutputRtl,l=y.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["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"],t=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var a=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,t.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var s=0;for(a=[],s=0;s<n.length;s+=1)Object.prototype.toString.call(n[s])==="[object Array]"?a.push([t.doBidiReorder(n[s][0]),n[s][1],n[s][2]]):a.push([t.doBidiReorder(n[s])]);r.text=a}else r.text=t.doBidiReorder(n);t.setOptions({isInputVisual:!0})}])})(he),he.API.TTFFont=(function(){function A(e){var t;if(this.rawData=e,t=this.contents=new pa(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new oE(this),this.registerTTF()}return A.open=function(e){return new A(e)},A.prototype.parse=function(){return this.directory=new qy(this.contents),this.head=new Yy(this),this.name=new eE(this),this.cmap=new vB(this),this.toUnicode={},this.hhea=new Jy(this),this.maxp=new tE(this),this.hmtx=new rE(this),this.post=new $y(this),this.os2=new Zy(this),this.loca=new sE(this),this.glyf=new nE(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]},A.prototype.registerTTF=function(){var e,t,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,s,o,f;for(f=[],a=0,s=(o=this.bbox).length;a<s;a++)e=o[a],f.push(Math.round(e*this.scaleFactor));return f}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(t=n>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+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")},A.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},A.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},A.prototype.widthOfString=function(e,t,r){var n,i,a,s;for(a=0,i=0,s=(e=""+e).length;0<=s?i<s:i>s;i=0<=s?++i:--i)n=e.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return a*(t/1e3)},A.prototype.lineHeight=function(e,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},A})();var Vn,pa=(function(){function A(e){this.data=e??[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(e){return this.data[this.pos++]=e},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},A.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},A.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},A.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},A.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},A.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},A.prototype.writeString=function(e){var t,r,n;for(n=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(e.charCodeAt(t)));return n},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(e){return this.writeInt16(e)},A.prototype.readLongLong=function(){var e,t,r,n,i,a,s,o;return e=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^s)+(255^o)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*n+16777216*i+65536*a+256*s+o},A.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(e){return this.writeInt32(e)},A.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},A.prototype.write=function(e){var t,r,n,i;for(i=[],r=0,n=e.length;r<n;r++)t=e[r],i.push(this.writeByte(t));return i},A})(),qy=(function(){var A;function e(t){var r,n,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(t){var r,n,i,a,s,o,f,l,d,g,u,v,B;for(B in u=Object.keys(t).length,o=Math.log(2),d=16*Math.floor(Math.log(u)/o),a=Math.floor(d/o),l=16*u-d,(n=new pa).writeInt(this.scalarType),n.writeShort(u),n.writeShort(d),n.writeShort(a),n.writeShort(l),i=16*u,f=n.pos+i,s=null,v=[],t)for(g=t[B],n.writeString(B),n.writeInt(A(g)),n.writeInt(f),n.writeInt(g.length),v=v.concat(g),B==="head"&&(s=f),f+=g.length;f%4;)v.push(0),f++;return n.write(v),r=2981146554-A(n.data),n.pos=s+8,n.writeUInt32(r),n.data},A=function(t){var r,n,i,a;for(t=mB.call(t);t.length%4;)t.push(0);for(i=new pa(t),n=0,r=0,a=t.length;r<a;r=r+=4)n+=i.readUInt32();return 4294967295&n},e})(),zy={}.hasOwnProperty,oi=function(A,e){for(var t in e)zy.call(e,t)&&(A[t]=e[t]);function r(){this.constructor=A}return r.prototype=e.prototype,A.prototype=new r,A.__super__=e.prototype,A};Vn=(function(){function A(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A})();var Yy=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),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 t;return(t=new pa).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},A})(),P2=(function(){function A(e,t){var r,n,i,a,s,o,f,l,d,g,u,v,B,x,F,_,I;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),d=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.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(o=0;o<256;++o)this.codeMap[o]=e.readByte();break;case 4:for(u=e.readUInt16(),g=u/2,e.pos+=6,i=(function(){var L,q;for(q=[],o=L=0;0<=g?L<g:L>g;o=0<=g?++L:--L)q.push(e.readUInt16());return q})(),e.pos+=2,B=(function(){var L,q;for(q=[],o=L=0;0<=g?L<g:L>g;o=0<=g?++L:--L)q.push(e.readUInt16());return q})(),f=(function(){var L,q;for(q=[],o=L=0;0<=g?L<g:L>g;o=0<=g?++L:--L)q.push(e.readUInt16());return q})(),l=(function(){var L,q;for(q=[],o=L=0;0<=g?L<g:L>g;o=0<=g?++L:--L)q.push(e.readUInt16());return q})(),n=(this.length-e.pos+this.offset)/2,s=(function(){var L,q;for(q=[],o=L=0;0<=n?L<n:L>n;o=0<=n?++L:--L)q.push(e.readUInt16());return q})(),o=F=0,I=i.length;F<I;o=++F)for(x=i[o],r=_=v=B[o];v<=x?_<=x:_>=x;r=v<=x?++_:--_)l[o]===0?a=r+f[o]:(a=s[l[o]/2+(r-v)-(g-o)]||0)!==0&&(a+=f[o]),this.codeMap[r]=65535&a}e.pos=d}return A.encode=function(e,t){var r,n,i,a,s,o,f,l,d,g,u,v,B,x,F,_,I,L,q,rA,M,R,E,X,y,T,P,eA,sA,wA,gA,hA,CA,IA,_A,m,Q,U,N,j,nA,fA,oA,lA,SA,HA;switch(eA=new pa,a=Object.keys(e).sort(function(GA,VA){return GA-VA}),t){case"macroman":for(B=0,x=(function(){var GA=[];for(v=0;v<256;++v)GA.push(0);return GA})(),_={0:0},i={},sA=0,CA=a.length;sA<CA;sA++)_[oA=e[n=a[sA]]]==null&&(_[oA]=++B),i[n]={old:e[n],new:_[e[n]]},x[n]=_[e[n]];return eA.writeUInt16(1),eA.writeUInt16(0),eA.writeUInt32(12),eA.writeUInt16(0),eA.writeUInt16(262),eA.writeUInt16(0),eA.write(x),{charMap:i,subtable:eA.data,maxGlyphID:B+1};case"unicode":for(T=[],d=[],I=0,_={},r={},F=f=null,wA=0,IA=a.length;wA<IA;wA++)_[q=e[n=a[wA]]]==null&&(_[q]=++I),r[n]={old:q,new:_[q]},s=_[q]-n,F!=null&&s===f||(F&&d.push(F),T.push(n),f=s),F=n;for(F&&d.push(F),d.push(65535),T.push(65535),X=2*(E=T.length),R=2*Math.pow(Math.log(E)/Math.LN2,2),g=Math.log(R/2)/Math.LN2,M=2*E-R,o=[],rA=[],u=[],v=gA=0,_A=T.length;gA<_A;v=++gA){if(y=T[v],l=d[v],y===65535){o.push(0),rA.push(0);break}if(y-(P=r[y].new)>=32768)for(o.push(0),rA.push(2*(u.length+E-v)),n=hA=y;y<=l?hA<=l:hA>=l;n=y<=l?++hA:--hA)u.push(r[n].new);else o.push(P-y),rA.push(0)}for(eA.writeUInt16(3),eA.writeUInt16(1),eA.writeUInt32(12),eA.writeUInt16(4),eA.writeUInt16(16+8*E+2*u.length),eA.writeUInt16(0),eA.writeUInt16(X),eA.writeUInt16(R),eA.writeUInt16(g),eA.writeUInt16(M),nA=0,m=d.length;nA<m;nA++)n=d[nA],eA.writeUInt16(n);for(eA.writeUInt16(0),fA=0,Q=T.length;fA<Q;fA++)n=T[fA],eA.writeUInt16(n);for(lA=0,U=o.length;lA<U;lA++)s=o[lA],eA.writeUInt16(s);for(SA=0,N=rA.length;SA<N;SA++)L=rA[SA],eA.writeUInt16(L);for(HA=0,j=u.length;HA<j;HA++)B=u[HA],eA.writeUInt16(B);return{charMap:r,subtable:eA.data,maxGlyphID:I+1}}},A})(),vB=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),A.prototype.tag="cmap",A.prototype.parse=function(e){var t,r,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)t=new P2(e,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},A.encode=function(e,t){var r,n;return t==null&&(t="macroman"),r=P2.encode(e,t),(n=new pa).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},A})(),Jy=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),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})(),Zy=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),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 t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r})(),this.charRange=(function(){var t,r;for(r=[],t=0;t<4;++t)r.push(e.readInt());return r})(),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 t,r;for(r=[],t=0;t<2;t=++t)r.push(e.readInt());return r})(),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})(),$y=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),A.prototype.tag="post",A.prototype.parse=function(e){var t,r,n;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:case 196608:break;case 131072:var i;for(r=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)t=e.readByte(),n.push(this.names.push(e.readString(t)));return n;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 262144:return this.map=(function(){var a,s,o;for(o=[],i=a=0,s=this.file.maxp.numGlyphs;0<=s?a<s:a>s;i=0<=s?++a:--a)o.push(e.readUInt32());return o}).call(this)}},A})(),AE=function(A,e){this.raw=A,this.length=A.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},eE=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),A.prototype.tag="name",A.prototype.parse=function(e){var t,r,n,i,a,s,o,f,l,d,g;for(e.pos=this.offset,e.readShort(),t=e.readShort(),s=e.readShort(),r=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+s+e.readShort()});for(o={},i=l=0,d=r.length;l<d;i=++l)n=r[i],e.pos=n.offset,f=e.readString(n.length),a=new AE(f,n),o[g=n.nameID]==null&&(o[g]=[]),o[n.nameID].push(a);this.strings=o,this.copyright=o[0],this.fontFamily=o[1],this.fontSubfamily=o[2],this.uniqueSubfamily=o[3],this.fontName=o[4],this.version=o[5];try{this.postscriptName=o[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=o[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=o[7],this.manufacturer=o[8],this.designer=o[9],this.description=o[10],this.vendorUrl=o[11],this.designerUrl=o[12],this.license=o[13],this.licenseUrl=o[14],this.preferredFamily=o[15],this.preferredSubfamily=o[17],this.compatibleFull=o[18],this.sampleText=o[19]},A})(),tE=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),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})(),rE=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),A.prototype.tag="hmtx",A.prototype.parse=function(e){var t,r,n,i,a,s,o;for(e.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var f,l;for(l=[],t=f=0;0<=n?f<n:f>n;t=0<=n?++f:--f)l.push(e.readInt16());return l})(),this.widths=(function(){var f,l,d,g;for(g=[],f=0,l=(d=this.metrics).length;f<l;f++)i=d[f],g.push(i.advance);return g}).call(this),r=this.widths[this.widths.length-1],o=[],t=a=0;0<=n?a<n:a>n;t=0<=n?++a:--a)o.push(this.widths.push(r));return o},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})(),mB=[].slice,nE=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(e){var t,r,n,i,a,s,o,f,l,d;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,r=i.indexOf(e),(n=i.lengthOf(e))===0?this.cache[e]=null:(t.pos=this.offset+r,a=(s=new pa(t.read(n))).readShort(),f=s.readShort(),d=s.readShort(),o=s.readShort(),l=s.readShort(),this.cache[e]=a===-1?new aE(s,f,d,o,l):new iE(s,a,f,d,o,l),this.cache[e]))},A.prototype.encode=function(e,t,r){var n,i,a,s,o;for(a=[],i=[],s=0,o=t.length;s<o;s++)n=e[t[s]],i.push(a.length),n&&(a=a.concat(n.encode(r)));return i.push(a.length),{table:a,offsets:i}},A})(),iE=(function(){function A(e,t,r,n,i,a){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A})(),aE=(function(){function A(e,t,r,n,i){var a,s;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;s=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&s;)a.pos+=1&s?4:2,128&s?a.pos+=8:64&s?a.pos+=4:8&s&&(a.pos+=2)}return A.prototype.encode=function(){var e,t,r;for(t=new pa(mB.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},A})(),sE=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return oi(A,Vn),A.prototype.tag="loca",A.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?(function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=2)i.push(2*e.readUInt16());return i}).call(this):(function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=4)i.push(e.readUInt32());return i}).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,t){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,a=0;a<r.length;++a)if(r[a]=n,i<t.length&&t[i]==a){++i,r[a]=n;var s=this.offsets[a],o=this.offsets[a+1]-s;o>0&&(n+=o)}for(var f=new Array(4*r.length),l=0;l<r.length;++l)f[4*l+3]=255&r[l],f[4*l+2]=(65280&r[l])>>8,f[4*l+1]=(16711680&r[l])>>16,f[4*l]=(4278190080&r[l])>>24;return f},A})(),oE=(function(){function A(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var e,t,r,n,i;for(t in n=this.font.cmap.tables[0].codeMap,e={},i=this.subset)r=i[t],e[t]=n[r];return e},A.prototype.glyphsFor=function(e){var t,r,n,i,a,s,o;for(n={},a=0,s=e.length;a<s;a++)n[i=e[a]]=this.font.glyf.glyphFor(i);for(i in t=[],n)(r=n[i])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(i in o=this.glyphsFor(t))r=o[i],n[i]=r;return n},A.prototype.encode=function(e,t){var r,n,i,a,s,o,f,l,d,g,u,v,B,x,F;for(n in r=vB.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(e),u={0:0},F=r.charMap)u[(o=F[n]).old]=o.new;for(v in g=r.maxGlyphID,a)v in u||(u[v]=g++);return l=(function(_){var I,L;for(I in L={},_)L[_[I]]=I;return L})(u),d=Object.keys(l).sort(function(_,I){return _-I}),B=(function(){var _,I,L;for(L=[],_=0,I=d.length;_<I;_++)s=d[_],L.push(l[s]);return L})(),i=this.font.glyf.encode(a,B,u),f=this.font.loca.encode(i.offsets,B),x={cmap:this.font.cmap.raw(),glyf:i.table,loca:f,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(t)},this.font.os2.exists&&(x["OS/2"]=this.font.os2.raw()),this.font.directory.encode(x)},A})();he.API.PDFObject=(function(){var A;function e(){}return A=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},e.convert=function(t){var r,n,i,a;if(Array.isArray(t))return"["+(function(){var s,o,f;for(f=[],s=0,o=t.length;s<o;s++)r=t[s],f.push(e.convert(r));return f})().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+A(t.getUTCFullYear(),4)+A(t.getUTCMonth(),2)+A(t.getUTCDate(),2)+A(t.getUTCHours(),2)+A(t.getUTCMinutes(),2)+A(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(n in i=["<<"],t)a=t[n],i.push("/"+n+" "+e.convert(a));return i.push(">>"),i.join(`
`)}return""+t},e})();var Ai=3.77952755906,Lf={method:"save",resolution:3,page:{margin:0,format:"A4",orientation:"portrait"},canvas:{mimeType:"image/jpeg",qualityRatio:1,useCORS:!0,logging:!1},overrides:{}},fE=class{pdf;canvas;options;constructor(A,e){this.canvas=A,this.options=e,this.pdf=new he({format:this.options.page.format,orientation:this.options.page.orientation,...this.options.overrides?.pdf,unit:"mm"})}getMarginTopMM(){const A=typeof this.options.page.margin=="object"?this.options.page.margin.top:this.options.page.margin;return Number(A)}getMarginLeftMM(){const A=typeof this.options.page.margin=="object"?this.options.page.margin.left:this.options.page.margin;return Number(A)}getMarginRightMM(){const A=typeof this.options.page.margin=="object"?this.options.page.margin.right:this.options.page.margin;return Number(A)}getMarginBottomMM(){const A=typeof this.options.page.margin=="object"?this.options.page.margin.bottom:this.options.page.margin;return Number(A)}getMarginTop(){return this.getMarginTopMM()*Ai}getMarginBottom(){return this.getMarginBottomMM()*Ai}getMarginLeft(){return this.getMarginLeftMM()*Ai}getMarginRight(){return this.getMarginRightMM()*Ai}getScale(){return this.options.resolution}getPageHeight(){return this.getPageHeightMM()*Ai}getPageHeightMM(){return this.pdf.internal.pageSize.height}getPageWidthMM(){return this.pdf.internal.pageSize.width}getPageWidth(){return this.getPageWidthMM()*Ai}getOriginalCanvasWidth(){return this.canvas.width/this.getScale()}getOriginalCanvasHeight(){return this.canvas.height/this.getScale()}getCanvasPageAvailableHeight(){return this.getPageAvailableHeight()*this.getScale()*this.getHorizontalFitFactor()}getPageAvailableWidth(){return this.getPageWidth()-(this.getMarginLeft()+this.getMarginRight())}getPageAvailableHeight(){return this.getPageHeight()-(this.getMarginTop()+this.getMarginBottom())}getPageAvailableWidthMM(){return this.getPageAvailableWidth()/Ai}getPageAvailableHeightMM(){return this.getPageAvailableHeight()/Ai}getNumberPages(){return Math.ceil(this.canvas.height/this.getCanvasPageAvailableHeight())}getHorizontalFitFactor(){return this.getPageAvailableWidth()<this.getOriginalCanvasWidth()?this.getOriginalCanvasWidth()/this.getPageAvailableWidth():1}getCanvasOffsetY(A){return this.getCanvasPageAvailableHeight()*(A-1)}getCanvasHeightLeft(A){return this.canvas.height-this.getCanvasOffsetY(A)}getCanvasPageHeight(A){if(this.canvas.height<this.getCanvasPageAvailableHeight())return this.canvas.height;const e=this.getCanvasHeightLeft(A);return e<this.getCanvasPageAvailableHeight()?e:this.getCanvasPageAvailableHeight()}getCanvasPageWidth(){return this.canvas.width}createCanvasPage(A){const e=this.getCanvasPageWidth(),t=this.getCanvasPageHeight(A),r=document.createElement("canvas");return r.setAttribute("width",String(e)),r.setAttribute("height",String(t)),r.getContext("2d").drawImage(this.canvas,0,this.getCanvasOffsetY(A),this.canvas.width,t,0,0,this.canvas.width,t),r}convert(){let A=1;const e=this.getNumberPages();for(;A<=e;){A>1&&this.pdf.addPage(this.options.page.format,this.options.page.orientation);const t=this.createCanvasPage(A),r=t.toDataURL(this.options.canvas.mimeType,this.options.canvas.qualityRatio);this.pdf.setPage(A),this.pdf.addImage({imageData:r,width:t.width/(this.getScale()*Ai*this.getHorizontalFitFactor()),height:t.height/(this.getScale()*Ai*this.getHorizontalFitFactor()),x:this.getMarginLeftMM(),y:this.getMarginTopMM()}),A+=1}return this.pdf}},lE=A=>A?{...Lf,...A,canvas:{...Lf.canvas,...A.canvas},page:{...Lf.page,...A.page}}:Lf,cE=A=>typeof A=="function"?A():A?.current,uE=async(A,e)=>{const t=lE(e),r=cE(A);if(!r){console.error("Unable to get the target element.");return}const n=await Qp(r,{useCORS:t.canvas.useCORS,logging:t.canvas.logging,scale:t.resolution,...t.overrides?.canvas}),a=new fE(n,t).convert();switch(t.method){case"build":return a;case"open":return window.open(a.output("bloburl"),"_blank"),a;case"save":default:{const s=t.filename??`${new Date().getTime()}.pdf`;return await a.save(s,{returnPromise:!0}),a}}},hE=uE;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var cl={};cl.version="0.18.5";var xB=1252,dE=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],CB=function(A){dE.indexOf(A)!=-1&&(xB=A)};function gE(){CB(1252)}var a0=function(A){CB(A)};function pE(){a0(1200),gE()}var If=function(e){return String.fromCharCode(e)},R2=function(e){return String.fromCharCode(e)},ul,ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function s0(A){for(var e="",t=0,r=0,n=0,i=0,a=0,s=0,o=0,f=0;f<A.length;)t=A.charCodeAt(f++),i=t>>2,r=A.charCodeAt(f++),a=(t&3)<<4|r>>4,n=A.charCodeAt(f++),s=(r&15)<<2|n>>6,o=n&63,isNaN(r)?s=o=64:isNaN(n)&&(o=64),e+=ca.charAt(i)+ca.charAt(a)+ca.charAt(s)+ca.charAt(o);return e}function Di(A){var e="",t=0,r=0,n=0,i=0,a=0,s=0,o=0;A=A.replace(/[^\w\+\/\=]/g,"");for(var f=0;f<A.length;)i=ca.indexOf(A.charAt(f++)),a=ca.indexOf(A.charAt(f++)),t=i<<2|a>>4,e+=String.fromCharCode(t),s=ca.indexOf(A.charAt(f++)),r=(a&15)<<4|s>>2,s!==64&&(e+=String.fromCharCode(r)),o=ca.indexOf(A.charAt(f++)),n=(s&3)<<6|o,o!==64&&(e+=String.fromCharCode(n));return e}var qe=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),ki=(function(){if(typeof Buffer<"u"){var A=!Buffer.from;if(!A)try{Buffer.from("foo","utf8")}catch{A=!0}return A?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}})();function qa(A){return qe?Buffer.alloc?Buffer.alloc(A):new Buffer(A):typeof Uint8Array<"u"?new Uint8Array(A):new Array(A)}function M2(A){return qe?Buffer.allocUnsafe?Buffer.allocUnsafe(A):new Buffer(A):typeof Uint8Array<"u"?new Uint8Array(A):new Array(A)}var kn=function(e){return qe?ki(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)&255})};function kl(A){if(typeof ArrayBuffer>"u")return kn(A);for(var e=new ArrayBuffer(A.length),t=new Uint8Array(e),r=0;r!=A.length;++r)t[r]=A.charCodeAt(r)&255;return e}function p0(A){if(Array.isArray(A))return A.map(function(r){return String.fromCharCode(r)}).join("");for(var e=[],t=0;t<A.length;++t)e[t]=String.fromCharCode(A[t]);return e.join("")}function BE(A){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(A)}var pr=qe?function(A){return Buffer.concat(A.map(function(e){return Buffer.isBuffer(e)?e:ki(e)}))}:function(A){if(typeof Uint8Array<"u"){var e=0,t=0;for(e=0;e<A.length;++e)t+=A[e].length;var r=new Uint8Array(t),n=0;for(e=0,t=0;e<A.length;t+=n,++e)if(n=A[e].length,A[e]instanceof Uint8Array)r.set(A[e],t);else{if(typeof A[e]=="string")throw"wtf";r.set(new Uint8Array(A[e]),t)}return r}return[].concat.apply([],A.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function wE(A){for(var e=[],t=0,r=A.length+250,n=qa(A.length+255),i=0;i<A.length;++i){var a=A.charCodeAt(i);if(a<128)n[t++]=a;else if(a<2048)n[t++]=192|a>>6&31,n[t++]=128|a&63;else if(a>=55296&&a<57344){a=(a&1023)+64;var s=A.charCodeAt(++i)&1023;n[t++]=240|a>>8&7,n[t++]=128|a>>2&63,n[t++]=128|s>>6&15|(a&3)<<4,n[t++]=128|s&63}else n[t++]=224|a>>12&15,n[t++]=128|a>>6&63,n[t++]=128|a&63;t>r&&(e.push(n.slice(0,t)),t=0,n=qa(65535),r=65530)}return e.push(n.slice(0,t)),pr(e)}var zo=/\u0000/g,Nf=/[\u0001-\u0006]/g;function Rs(A){for(var e="",t=A.length-1;t>=0;)e+=A.charAt(t--);return e}function Pn(A,e){var t=""+A;return t.length>=e?t:bt("0",e-t.length)+t}function xh(A,e){var t=""+A;return t.length>=e?t:bt(" ",e-t.length)+t}function hl(A,e){var t=""+A;return t.length>=e?t:t+bt(" ",e-t.length)}function vE(A,e){var t=""+Math.round(A);return t.length>=e?t:bt("0",e-t.length)+t}function mE(A,e){var t=""+A;return t.length>=e?t:bt("0",e-t.length)+t}var K2=Math.pow(2,32);function ys(A,e){if(A>K2||A<-K2)return vE(A,e);var t=Math.round(A);return mE(t,e)}function dl(A,e){return e=e||0,A.length>=7+e&&(A.charCodeAt(e)|32)===103&&(A.charCodeAt(e+1)|32)===101&&(A.charCodeAt(e+2)|32)===110&&(A.charCodeAt(e+3)|32)===101&&(A.charCodeAt(e+4)|32)===114&&(A.charCodeAt(e+5)|32)===97&&(A.charCodeAt(e+6)|32)===108}var G2=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],pu=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function xE(A){return A||(A={}),A[0]="General",A[1]="0",A[2]="0.00",A[3]="#,##0",A[4]="#,##0.00",A[9]="0%",A[10]="0.00%",A[11]="0.00E+00",A[12]="# ?/?",A[13]="# ??/??",A[14]="m/d/yy",A[15]="d-mmm-yy",A[16]="d-mmm",A[17]="mmm-yy",A[18]="h:mm AM/PM",A[19]="h:mm:ss AM/PM",A[20]="h:mm",A[21]="h:mm:ss",A[22]="m/d/yy h:mm",A[37]="#,##0 ;(#,##0)",A[38]="#,##0 ;[Red](#,##0)",A[39]="#,##0.00;(#,##0.00)",A[40]="#,##0.00;[Red](#,##0.00)",A[45]="mm:ss",A[46]="[h]:mm:ss",A[47]="mmss.0",A[48]="##0.0E+0",A[49]="@",A[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',A}var Qt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},V2={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},CE={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function gl(A,e,t){for(var r=A<0?-1:1,n=A*r,i=0,a=1,s=0,o=1,f=0,l=0,d=Math.floor(n);f<e&&(d=Math.floor(n),s=d*a+i,l=d*f+o,!(n-d<5e-8));)n=1/(n-d),i=a,a=s,o=f,f=l;if(l>e&&(f>e?(l=o,s=i):(l=f,s=a)),!t)return[0,r*s,l];var g=Math.floor(r*s/l);return[g,r*s-g*l,l]}function Of(A,e,t){if(A>2958465||A<0)return null;var r=A|0,n=Math.floor(86400*(A-r)),i=0,a=[],s={D:r,T:n,u:86400*(A-r)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(r+=1462),s.u>.9999&&(s.u=0,++n==86400&&(s.T=n=0,++r,++s.D)),r===60)a=t?[1317,10,29]:[1900,2,29],i=3;else if(r===0)a=t?[1317,8,29]:[1900,1,0],i=6;else{r>60&&--r;var o=new Date(1900,0,1);o.setDate(o.getDate()+r-1),a=[o.getFullYear(),o.getMonth()+1,o.getDate()],i=o.getDay(),r<60&&(i=(i+6)%7),t&&(i=QE(o,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=n%60,n=Math.floor(n/60),s.M=n%60,n=Math.floor(n/60),s.H=n,s.q=i,s}var FB=new Date(1899,11,31,0,0,0),FE=FB.getTime(),yE=new Date(1900,2,1,0,0,0);function yB(A,e){var t=A.getTime();return e?t-=1461*24*60*60*1e3:A>=yE&&(t+=1440*60*1e3),(t-(FE+(A.getTimezoneOffset()-FB.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Ch(A){return A.indexOf(".")==-1?A:A.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function EE(A){return A.indexOf("E")==-1?A:A.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function _E(A){var e=A<0?12:11,t=Ch(A.toFixed(12));return t.length<=e||(t=A.toPrecision(10),t.length<=e)?t:A.toExponential(5)}function UE(A){var e=Ch(A.toFixed(11));return e.length>(A<0?12:11)||e==="0"||e==="-0"?A.toPrecision(6):e}function bE(A){var e=Math.floor(Math.log(Math.abs(A))*Math.LOG10E),t;return e>=-4&&e<=-1?t=A.toPrecision(10+e):Math.abs(e)<=9?t=_E(A):e===10?t=A.toFixed(10).substr(0,12):t=UE(A),Ch(EE(t.toUpperCase()))}function ih(A,e){switch(typeof A){case"string":return A;case"boolean":return A?"TRUE":"FALSE";case"number":return(A|0)===A?A.toString(10):bE(A);case"undefined":return"";case"object":if(A==null)return"";if(A instanceof Date)return Ba(14,yB(A,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+A)}function QE(A,e){e[0]-=581;var t=A.getDay();return A<60&&(t=(t+6)%7),t}function SE(A,e,t,r){var n="",i=0,a=0,s=t.y,o,f=0;switch(A){case 98:s=t.y+543;case 121:switch(e.length){case 1:case 2:o=s%100,f=2;break;default:o=s%1e4,f=4;break}break;case 109:switch(e.length){case 1:case 2:o=t.m,f=e.length;break;case 3:return pu[t.m-1][1];case 5:return pu[t.m-1][0];default:return pu[t.m-1][2]}break;case 100:switch(e.length){case 1:case 2:o=t.d,f=e.length;break;case 3:return G2[t.q][0];default:return G2[t.q][1]}break;case 104:switch(e.length){case 1:case 2:o=1+(t.H+11)%12,f=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:o=t.H,f=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:o=t.M,f=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return t.u===0&&(e=="s"||e=="ss")?Pn(t.S,e.length):(r>=2?a=r===3?1e3:100:a=r===1?10:1,i=Math.round(a*(t.S+t.u)),i>=60*a&&(i=0),e==="s"?i===0?"0":""+i/a:(n=Pn(i,2+r),e==="ss"?n.substr(0,2):"."+n.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":o=t.D*24+t.H;break;case"[m]":case"[mm]":o=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":o=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+e}f=e.length===3?1:2;break;case 101:o=s,f=1;break}var l=f>0?Pn(o,f):"";return l}function ua(A){var e=3;if(A.length<=e)return A;for(var t=A.length%e,r=A.substr(0,t);t!=A.length;t+=e)r+=(r.length>0?",":"")+A.substr(t,e);return r}var EB=/%/g;function TE(A,e,t){var r=e.replace(EB,""),n=e.length-r.length;return Li(A,r,t*Math.pow(10,2*n))+bt("%",n)}function LE(A,e,t){for(var r=e.length-1;e.charCodeAt(r-1)===44;)--r;return Li(A,e.substr(0,r),t/Math.pow(10,3*(e.length-r)))}function _B(A,e){var t,r=A.indexOf("E")-A.indexOf(".")-1;if(A.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+_B(A,-e);var n=A.indexOf(".");n===-1&&(n=A.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%n;if(i<0&&(i+=n),t=(e/Math.pow(10,i)).toPrecision(r+1+(n+i)%n),t.indexOf("e")===-1){var a=Math.floor(Math.log(e)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(a-t.length+i):t+="E+"+(a-i);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,o,f,l){return o+f+l.substr(0,(n+i)%n)+"."+l.substr(i)+"E"})}else t=e.toExponential(r);return A.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),A.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var UB=/# (\?+)( ?)\/( ?)(\d+)/;function IE(A,e,t){var r=parseInt(A[4],10),n=Math.round(e*r),i=Math.floor(n/r),a=n-i*r,s=r;return t+(i===0?"":""+i)+" "+(a===0?bt(" ",A[1].length+1+A[4].length):xh(a,A[1].length)+A[2]+"/"+A[3]+Pn(s,A[4].length))}function NE(A,e,t){return t+(e===0?"":""+e)+bt(" ",A[1].length+2+A[4].length)}var bB=/^#*0*\.([0#]+)/,QB=/\).*[0#]/,SB=/\(###\) ###\\?-####/;function Dr(A){for(var e="",t,r=0;r!=A.length;++r)switch(t=A.charCodeAt(r)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(t)}return e}function j2(A,e){var t=Math.pow(10,e);return""+Math.round(A*t)/t}function W2(A,e){var t=A-Math.floor(A),r=Math.pow(10,e);return e<(""+Math.round(t*r)).length?0:Math.round(t*r)}function OE(A,e){return e<(""+Math.round((A-Math.floor(A))*Math.pow(10,e))).length?1:0}function DE(A){return A<2147483647&&A>-2147483648?""+(A>=0?A|0:A-1|0):""+Math.floor(A)}function Bn(A,e,t){if(A.charCodeAt(0)===40&&!e.match(QB)){var r=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Bn("n",r,t):"("+Bn("n",r,-t)+")"}if(e.charCodeAt(e.length-1)===44)return LE(A,e,t);if(e.indexOf("%")!==-1)return TE(A,e,t);if(e.indexOf("E")!==-1)return _B(e,t);if(e.charCodeAt(0)===36)return"$"+Bn(A,e.substr(e.charAt(1)==" "?2:1),t);var n,i,a,s,o=Math.abs(t),f=t<0?"-":"";if(e.match(/^00+$/))return f+ys(o,e.length);if(e.match(/^[#?]+$/))return n=ys(t,0),n==="0"&&(n=""),n.length>e.length?n:Dr(e.substr(0,e.length-n.length))+n;if(i=e.match(UB))return IE(i,o,f);if(e.match(/^#+0+$/))return f+ys(o,e.length-e.indexOf("0"));if(i=e.match(bB))return n=j2(t,i[1].length).replace(/^([^\.]+)$/,"$1."+Dr(i[1])).replace(/\.$/,"."+Dr(i[1])).replace(/\.(\d*)$/,function(v,B){return"."+B+bt("0",Dr(i[1]).length-B.length)}),e.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return f+j2(o,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return f+ua(ys(o,0));if(i=e.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+Bn(A,e,-t):ua(""+(Math.floor(t)+OE(t,i[1].length)))+"."+Pn(W2(t,i[1].length),i[1].length);if(i=e.match(/^#,#*,#0/))return Bn(A,e.replace(/^#,#*,/,""),t);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Rs(Bn(A,e.replace(/[\\-]/g,""),t)),a=0,Rs(Rs(e.replace(/\\/g,"")).replace(/[0#]/g,function(v){return a<n.length?n.charAt(a++):v==="0"?"0":""}));if(e.match(SB))return n=Bn(A,"##########",t),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var l="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(i[4].length,7),s=gl(o,Math.pow(10,a)-1,!1),n=""+f,l=Li("n",i[1],s[1]),l.charAt(l.length-1)==" "&&(l=l.substr(0,l.length-1)+"0"),n+=l+i[2]+"/"+i[3],l=hl(s[2],a),l.length<i[4].length&&(l=Dr(i[4].substr(i[4].length-l.length))+l),n+=l,n;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(i[1].length,i[4].length),7),s=gl(o,Math.pow(10,a)-1,!0),f+(s[0]||(s[1]?"":"0"))+" "+(s[1]?xh(s[1],a)+i[2]+"/"+i[3]+hl(s[2],a):bt(" ",2*a+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return n=ys(t,0),e.length<=n.length?n:Dr(e.substr(0,e.length-n.length))+n;if(i=e.match(/^([#0?]+)\.([#0]+)$/)){n=""+t.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),a=n.indexOf(".");var d=e.indexOf(".")-a,g=e.length-n.length-d;return Dr(e.substr(0,d)+n+e.substr(e.length-g))}if(i=e.match(/^00,000\.([#0]*0)$/))return a=W2(t,i[1].length),t<0?"-"+Bn(A,e,-t):ua(DE(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Pn(0,3-v.length):"")+v})+"."+Pn(a,i[1].length);switch(e){case"###,##0.00":return Bn(A,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var u=ua(ys(o,0));return u!=="0"?f+u:"";case"###,###.00":return Bn(A,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return Bn(A,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function HE(A,e,t){for(var r=e.length-1;e.charCodeAt(r-1)===44;)--r;return Li(A,e.substr(0,r),t/Math.pow(10,3*(e.length-r)))}function kE(A,e,t){var r=e.replace(EB,""),n=e.length-r.length;return Li(A,r,t*Math.pow(10,2*n))+bt("%",n)}function TB(A,e){var t,r=A.indexOf("E")-A.indexOf(".")-1;if(A.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+TB(A,-e);var n=A.indexOf(".");n===-1&&(n=A.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%n;if(i<0&&(i+=n),t=(e/Math.pow(10,i)).toPrecision(r+1+(n+i)%n),!t.match(/[Ee]/)){var a=Math.floor(Math.log(e)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(a-t.length+i):t+="E+"+(a-i),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,o,f,l){return o+f+l.substr(0,(n+i)%n)+"."+l.substr(i)+"E"})}else t=e.toExponential(r);return A.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),A.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function ti(A,e,t){if(A.charCodeAt(0)===40&&!e.match(QB)){var r=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?ti("n",r,t):"("+ti("n",r,-t)+")"}if(e.charCodeAt(e.length-1)===44)return HE(A,e,t);if(e.indexOf("%")!==-1)return kE(A,e,t);if(e.indexOf("E")!==-1)return TB(e,t);if(e.charCodeAt(0)===36)return"$"+ti(A,e.substr(e.charAt(1)==" "?2:1),t);var n,i,a,s,o=Math.abs(t),f=t<0?"-":"";if(e.match(/^00+$/))return f+Pn(o,e.length);if(e.match(/^[#?]+$/))return n=""+t,t===0&&(n=""),n.length>e.length?n:Dr(e.substr(0,e.length-n.length))+n;if(i=e.match(UB))return NE(i,o,f);if(e.match(/^#+0+$/))return f+Pn(o,e.length-e.indexOf("0"));if(i=e.match(bB))return n=(""+t).replace(/^([^\.]+)$/,"$1."+Dr(i[1])).replace(/\.$/,"."+Dr(i[1])),n=n.replace(/\.(\d*)$/,function(v,B){return"."+B+bt("0",Dr(i[1]).length-B.length)}),e.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return f+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return f+ua(""+o);if(i=e.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+ti(A,e,-t):ua(""+t)+"."+bt("0",i[1].length);if(i=e.match(/^#,#*,#0/))return ti(A,e.replace(/^#,#*,/,""),t);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Rs(ti(A,e.replace(/[\\-]/g,""),t)),a=0,Rs(Rs(e.replace(/\\/g,"")).replace(/[0#]/g,function(v){return a<n.length?n.charAt(a++):v==="0"?"0":""}));if(e.match(SB))return n=ti(A,"##########",t),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var l="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(i[4].length,7),s=gl(o,Math.pow(10,a)-1,!1),n=""+f,l=Li("n",i[1],s[1]),l.charAt(l.length-1)==" "&&(l=l.substr(0,l.length-1)+"0"),n+=l+i[2]+"/"+i[3],l=hl(s[2],a),l.length<i[4].length&&(l=Dr(i[4].substr(i[4].length-l.length))+l),n+=l,n;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(i[1].length,i[4].length),7),s=gl(o,Math.pow(10,a)-1,!0),f+(s[0]||(s[1]?"":"0"))+" "+(s[1]?xh(s[1],a)+i[2]+"/"+i[3]+hl(s[2],a):bt(" ",2*a+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return n=""+t,e.length<=n.length?n:Dr(e.substr(0,e.length-n.length))+n;if(i=e.match(/^([#0]+)\.([#0]+)$/)){n=""+t.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),a=n.indexOf(".");var d=e.indexOf(".")-a,g=e.length-n.length-d;return Dr(e.substr(0,d)+n+e.substr(e.length-g))}if(i=e.match(/^00,000\.([#0]*0)$/))return t<0?"-"+ti(A,e,-t):ua(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Pn(0,3-v.length):"")+v})+"."+Pn(0,i[1].length);switch(e){case"###,###":case"##,###":case"#,###":var u=ua(""+o);return u!=="0"?f+u:"";default:if(e.match(/\.[0#?]*$/))return ti(A,e.slice(0,e.lastIndexOf(".")),t)+Dr(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function Li(A,e,t){return(t|0)===t?ti(A,e,t):Bn(A,e,t)}function PE(A){for(var e=[],t=!1,r=0,n=0;r<A.length;++r)switch(A.charCodeAt(r)){case 34:t=!t;break;case 95:case 42:case 92:++r;break;case 59:e[e.length]=A.substr(n,r-n),n=r+1}if(e[e.length]=A.substr(n),t===!0)throw new Error("Format |"+A+"| unterminated string ");return e}var LB=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function IB(A){for(var e=0,t="",r="";e<A.length;)switch(t=A.charAt(e)){case"G":dl(A,e)&&(e+=6),e++;break;case'"':for(;A.charCodeAt(++e)!==34&&e<A.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(A.charAt(e+1)==="1"||A.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(A.substr(e,3).toUpperCase()==="A/P"||A.substr(e,5).toUpperCase()==="AM/PM"||A.substr(e,5).toUpperCase()==="上午/下午")return!0;++e;break;case"[":for(r=t;A.charAt(e++)!=="]"&&e<A.length;)r+=A.charAt(e);if(r.match(LB))return!0;break;case".":case"0":case"#":for(;e<A.length&&("0#?.,E+-%".indexOf(t=A.charAt(++e))>-1||t=="\\"&&A.charAt(e+1)=="-"&&"0#".indexOf(A.charAt(e+2))>-1););break;case"?":for(;A.charAt(++e)===t;);break;case"*":++e,(A.charAt(e)==" "||A.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<A.length&&"0123456789".indexOf(A.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function RE(A,e,t,r){for(var n=[],i="",a=0,s="",o="t",f,l,d,g="H";a<A.length;)switch(s=A.charAt(a)){case"G":if(!dl(A,a))throw new Error("unrecognized character "+s+" in "+A);n[n.length]={t:"G",v:"General"},a+=7;break;case'"':for(i="";(d=A.charCodeAt(++a))!==34&&a<A.length;)i+=String.fromCharCode(d);n[n.length]={t:"t",v:i},++a;break;case"\\":var u=A.charAt(++a),v=u==="("||u===")"?u:"t";n[n.length]={t:v,v:u},++a;break;case"_":n[n.length]={t:"t",v:" "},a+=2;break;case"@":n[n.length]={t:"T",v:e},++a;break;case"B":case"b":if(A.charAt(a+1)==="1"||A.charAt(a+1)==="2"){if(f==null&&(f=Of(e,t,A.charAt(a+1)==="2"),f==null))return"";n[n.length]={t:"X",v:A.substr(a,2)},o=s,a+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||f==null&&(f=Of(e,t),f==null))return"";for(i=s;++a<A.length&&A.charAt(a).toLowerCase()===s;)i+=s;s==="m"&&o.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=g),n[n.length]={t:s,v:i},o=s;break;case"A":case"a":case"上":var B={t:s,v:s};if(f==null&&(f=Of(e,t)),A.substr(a,3).toUpperCase()==="A/P"?(f!=null&&(B.v=f.H>=12?"P":"A"),B.t="T",g="h",a+=3):A.substr(a,5).toUpperCase()==="AM/PM"?(f!=null&&(B.v=f.H>=12?"PM":"AM"),B.t="T",a+=5,g="h"):A.substr(a,5).toUpperCase()==="上午/下午"?(f!=null&&(B.v=f.H>=12?"下午":"上午"),B.t="T",a+=5,g="h"):(B.t="t",++a),f==null&&B.t==="T")return"";n[n.length]=B,o=s;break;case"[":for(i=s;A.charAt(a++)!=="]"&&a<A.length;)i+=A.charAt(a);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(LB)){if(f==null&&(f=Of(e,t),f==null))return"";n[n.length]={t:"Z",v:i.toLowerCase()},o=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",IB(A)||(n[n.length]={t:"t",v:i}));break;case".":if(f!=null){for(i=s;++a<A.length&&(s=A.charAt(a))==="0";)i+=s;n[n.length]={t:"s",v:i};break}case"0":case"#":for(i=s;++a<A.length&&"0#?.,E+-%".indexOf(s=A.charAt(a))>-1;)i+=s;n[n.length]={t:"n",v:i};break;case"?":for(i=s;A.charAt(++a)===s;)i+=s;n[n.length]={t:s,v:i},o=s;break;case"*":++a,(A.charAt(a)==" "||A.charAt(a)=="*")&&++a;break;case"(":case")":n[n.length]={t:r===1?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;a<A.length&&"0123456789".indexOf(A.charAt(++a))>-1;)i+=A.charAt(a);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:s,v:s},++a;break;case"$":n[n.length]={t:"t",v:"$"},++a;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+A);n[n.length]={t:"t",v:s},++a;break}var x=0,F=0,_;for(a=n.length-1,o="t";a>=0;--a)switch(n[a].t){case"h":case"H":n[a].t=g,o="h",x<1&&(x=1);break;case"s":(_=n[a].v.match(/\.0+$/))&&(F=Math.max(F,_[0].length-1)),x<3&&(x=3);case"d":case"y":case"M":case"e":o=n[a].t;break;case"m":o==="s"&&(n[a].t="M",x<2&&(x=2));break;case"X":break;case"Z":x<1&&n[a].v.match(/[Hh]/)&&(x=1),x<2&&n[a].v.match(/[Mm]/)&&(x=2),x<3&&n[a].v.match(/[Ss]/)&&(x=3)}switch(x){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var I="",L;for(a=0;a<n.length;++a)switch(n[a].t){case"t":case"T":case" ":case"D":break;case"X":n[a].v="",n[a].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[a].v=SE(n[a].t.charCodeAt(0),n[a].v,f,F),n[a].t="t";break;case"n":case"?":for(L=a+1;n[L]!=null&&((s=n[L].t)==="?"||s==="D"||(s===" "||s==="t")&&n[L+1]!=null&&(n[L+1].t==="?"||n[L+1].t==="t"&&n[L+1].v==="/")||n[a].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(n[L].v==="/"||n[L].v===" "&&n[L+1]!=null&&n[L+1].t=="?"));)n[a].v+=n[L].v,n[L]={v:"",t:";"},++L;I+=n[a].v,a=L-1;break;case"G":n[a].t="t",n[a].v=ih(e,t);break}var q="",rA,M;if(I.length>0){I.charCodeAt(0)==40?(rA=e<0&&I.charCodeAt(0)===45?-e:e,M=Li("n",I,rA)):(rA=e<0&&r>1?-e:e,M=Li("n",I,rA),rA<0&&n[0]&&n[0].t=="t"&&(M=M.substr(1),n[0].v="-"+n[0].v)),L=M.length-1;var R=n.length;for(a=0;a<n.length;++a)if(n[a]!=null&&n[a].t!="t"&&n[a].v.indexOf(".")>-1){R=a;break}var E=n.length;if(R===n.length&&M.indexOf("E")===-1){for(a=n.length-1;a>=0;--a)n[a]==null||"n?".indexOf(n[a].t)===-1||(L>=n[a].v.length-1?(L-=n[a].v.length,n[a].v=M.substr(L+1,n[a].v.length)):L<0?n[a].v="":(n[a].v=M.substr(0,L+1),L=-1),n[a].t="t",E=a);L>=0&&E<n.length&&(n[E].v=M.substr(0,L+1)+n[E].v)}else if(R!==n.length&&M.indexOf("E")===-1){for(L=M.indexOf(".")-1,a=R;a>=0;--a)if(!(n[a]==null||"n?".indexOf(n[a].t)===-1)){for(l=n[a].v.indexOf(".")>-1&&a===R?n[a].v.indexOf(".")-1:n[a].v.length-1,q=n[a].v.substr(l+1);l>=0;--l)L>=0&&(n[a].v.charAt(l)==="0"||n[a].v.charAt(l)==="#")&&(q=M.charAt(L--)+q);n[a].v=q,n[a].t="t",E=a}for(L>=0&&E<n.length&&(n[E].v=M.substr(0,L+1)+n[E].v),L=M.indexOf(".")+1,a=R;a<n.length;++a)if(!(n[a]==null||"n?(".indexOf(n[a].t)===-1&&a!==R)){for(l=n[a].v.indexOf(".")>-1&&a===R?n[a].v.indexOf(".")+1:0,q=n[a].v.substr(0,l);l<n[a].v.length;++l)L<M.length&&(q+=M.charAt(L++));n[a].v=q,n[a].t="t",E=a}}}for(a=0;a<n.length;++a)n[a]!=null&&"n?".indexOf(n[a].t)>-1&&(rA=r>1&&e<0&&a>0&&n[a-1].v==="-"?-e:e,n[a].v=Li(n[a].t,n[a].v,rA),n[a].t="t");var X="";for(a=0;a!==n.length;++a)n[a]!=null&&(X+=n[a].v);return X}var X2=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function q2(A,e){if(e==null)return!1;var t=parseFloat(e[2]);switch(e[1]){case"=":if(A==t)return!0;break;case">":if(A>t)return!0;break;case"<":if(A<t)return!0;break;case"<>":if(A!=t)return!0;break;case">=":if(A>=t)return!0;break;case"<=":if(A<=t)return!0;break}return!1}function ME(A,e){var t=PE(A),r=t.length,n=t[r-1].indexOf("@");if(r<4&&n>-1&&--r,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof e!="number")return[4,t.length===4||n>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var i=e>0?t[0]:e<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[r,i];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var a=t[0].match(X2),s=t[1].match(X2);return q2(e,a)?[r,t[0]]:q2(e,s)?[r,t[1]]:[r,t[a!=null&&s!=null?2:1]]}return[r,i]}function Ba(A,e,t){t==null&&(t={});var r="";switch(typeof A){case"string":A=="m/d/yy"&&t.dateNF?r=t.dateNF:r=A;break;case"number":A==14&&t.dateNF?r=t.dateNF:r=(t.table!=null?t.table:Qt)[A],r==null&&(r=t.table&&t.table[V2[A]]||Qt[V2[A]]),r==null&&(r=CE[A]||"General");break}if(dl(r,0))return ih(e,t);e instanceof Date&&(e=yB(e,t.date1904));var n=ME(r,e);if(dl(n[1]))return ih(e,t);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return RE(n[1],e,t,n[0])}function NB(A,e){if(typeof e!="number"){e=+e||-1;for(var t=0;t<392;++t){if(Qt[t]==null){e<0&&(e=t);continue}if(Qt[t]==A){e=t;break}}e<0&&(e=391)}return Qt[e]=A,e}function Pl(A){for(var e=0;e!=392;++e)A[e]!==void 0&&NB(A[e],e)}function Rl(){Qt=xE()}var OB=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function KE(A){var e=typeof A=="number"?Qt[A]:A;return e=e.replace(OB,"(\\d+)"),new RegExp("^"+e+"$")}function GE(A,e,t){var r=-1,n=-1,i=-1,a=-1,s=-1,o=-1;(e.match(OB)||[]).forEach(function(d,g){var u=parseInt(t[g+1],10);switch(d.toLowerCase().charAt(0)){case"y":r=u;break;case"d":i=u;break;case"h":a=u;break;case"s":o=u;break;case"m":a>=0?s=u:n=u;break}}),o>=0&&s==-1&&n>=0&&(s=n,n=-1);var f=(""+(r>=0?r:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var l=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return a==-1&&s==-1&&o==-1?f:r==-1&&n==-1&&i==-1?l:f+"T"+l}var VE=(function(){var A={};A.version="1.2.0";function e(){for(var M=0,R=new Array(256),E=0;E!=256;++E)M=E,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,M=M&1?-306674912^M>>>1:M>>>1,R[E]=M;return typeof Int32Array<"u"?new Int32Array(R):R}var t=e();function r(M){var R=0,E=0,X=0,y=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(X=0;X!=256;++X)y[X]=M[X];for(X=0;X!=256;++X)for(E=M[X],R=256+X;R<4096;R+=256)E=y[R]=E>>>8^M[E&255];var T=[];for(X=1;X!=16;++X)T[X-1]=typeof Int32Array<"u"?y.subarray(X*256,X*256+256):y.slice(X*256,X*256+256);return T}var n=r(t),i=n[0],a=n[1],s=n[2],o=n[3],f=n[4],l=n[5],d=n[6],g=n[7],u=n[8],v=n[9],B=n[10],x=n[11],F=n[12],_=n[13],I=n[14];function L(M,R){for(var E=R^-1,X=0,y=M.length;X<y;)E=E>>>8^t[(E^M.charCodeAt(X++))&255];return~E}function q(M,R){for(var E=R^-1,X=M.length-15,y=0;y<X;)E=I[M[y++]^E&255]^_[M[y++]^E>>8&255]^F[M[y++]^E>>16&255]^x[M[y++]^E>>>24]^B[M[y++]]^v[M[y++]]^u[M[y++]]^g[M[y++]]^d[M[y++]]^l[M[y++]]^f[M[y++]]^o[M[y++]]^s[M[y++]]^a[M[y++]]^i[M[y++]]^t[M[y++]];for(X+=15;y<X;)E=E>>>8^t[(E^M[y++])&255];return~E}function rA(M,R){for(var E=R^-1,X=0,y=M.length,T=0,P=0;X<y;)T=M.charCodeAt(X++),T<128?E=E>>>8^t[(E^T)&255]:T<2048?(E=E>>>8^t[(E^(192|T>>6&31))&255],E=E>>>8^t[(E^(128|T&63))&255]):T>=55296&&T<57344?(T=(T&1023)+64,P=M.charCodeAt(X++)&1023,E=E>>>8^t[(E^(240|T>>8&7))&255],E=E>>>8^t[(E^(128|T>>2&63))&255],E=E>>>8^t[(E^(128|P>>6&15|(T&3)<<4))&255],E=E>>>8^t[(E^(128|P&63))&255]):(E=E>>>8^t[(E^(224|T>>12&15))&255],E=E>>>8^t[(E^(128|T>>6&63))&255],E=E>>>8^t[(E^(128|T&63))&255]);return~E}return A.table=t,A.bstr=L,A.buf=q,A.str=rA,A})(),at=(function(){var e={};e.version="1.2.1";function t(O,J){for(var K=O.split("/"),V=J.split("/"),Z=0,tA=0,pA=Math.min(K.length,V.length);Z<pA;++Z){if(tA=K[Z].length-V[Z].length)return tA;if(K[Z]!=V[Z])return K[Z]<V[Z]?-1:1}return K.length-V.length}function r(O){if(O.charAt(O.length-1)=="/")return O.slice(0,-1).indexOf("/")===-1?O:r(O.slice(0,-1));var J=O.lastIndexOf("/");return J===-1?O:O.slice(0,J+1)}function n(O){if(O.charAt(O.length-1)=="/")return n(O.slice(0,-1));var J=O.lastIndexOf("/");return J===-1?O:O.slice(J+1)}function i(O,J){typeof J=="string"&&(J=new Date(J));var K=J.getHours();K=K<<6|J.getMinutes(),K=K<<5|J.getSeconds()>>>1,O.write_shift(2,K);var V=J.getFullYear()-1980;V=V<<4|J.getMonth()+1,V=V<<5|J.getDate(),O.write_shift(2,V)}function a(O){var J=O.read_shift(2)&65535,K=O.read_shift(2)&65535,V=new Date,Z=K&31;K>>>=5;var tA=K&15;K>>>=4,V.setMilliseconds(0),V.setFullYear(K+1980),V.setMonth(tA-1),V.setDate(Z);var pA=J&31;J>>>=5;var yA=J&63;return J>>>=6,V.setHours(J),V.setMinutes(yA),V.setSeconds(pA<<1),V}function s(O){nn(O,0);for(var J={},K=0;O.l<=O.length-4;){var V=O.read_shift(2),Z=O.read_shift(2),tA=O.l+Z,pA={};switch(V){case 21589:K=O.read_shift(1),K&1&&(pA.mtime=O.read_shift(4)),Z>5&&(K&2&&(pA.atime=O.read_shift(4)),K&4&&(pA.ctime=O.read_shift(4))),pA.mtime&&(pA.mt=new Date(pA.mtime*1e3));break}O.l=tA,J[V]=pA}return J}var o;function f(){return o||(o={})}function l(O,J){if(O[0]==80&&O[1]==75)return Ce(O,J);if((O[0]|32)==109&&(O[1]|32)==105)return we(O,J);if(O.length<512)throw new Error("CFB file size "+O.length+" < 512");var K=3,V=512,Z=0,tA=0,pA=0,yA=0,BA=0,vA=[],FA=O.slice(0,512);nn(FA,0);var PA=d(FA);switch(K=PA[0],K){case 3:V=512;break;case 4:V=4096;break;case 0:if(PA[1]==0)return Ce(O,J);default:throw new Error("Major Version: Expected 3 or 4 saw "+K)}V!==512&&(FA=O.slice(0,V),nn(FA,28));var jA=O.slice(0,V);g(FA,K);var YA=FA.read_shift(4,"i");if(K===3&&YA!==0)throw new Error("# Directory Sectors: Expected 0 saw "+YA);FA.l+=4,pA=FA.read_shift(4,"i"),FA.l+=4,FA.chk("00100000","Mini Stream Cutoff Size: "),yA=FA.read_shift(4,"i"),Z=FA.read_shift(4,"i"),BA=FA.read_shift(4,"i"),tA=FA.read_shift(4,"i");for(var KA=-1,zA=0;zA<109&&(KA=FA.read_shift(4,"i"),!(KA<0));++zA)vA[zA]=KA;var ve=u(O,V);x(BA,tA,ve,V,vA);var it=_(ve,pA,vA,V);it[pA].name="!Directory",Z>0&&yA!==P&&(it[yA].name="!MiniFAT"),it[vA[0]].name="!FAT",it.fat_addrs=vA,it.ssz=V;var Re={},yt=[],jn=[],bn=[];I(pA,it,ve,yt,Z,Re,jn,yA),v(jn,bn,yt),yt.shift();var Wn={FileIndex:jn,FullPaths:bn};return J&&J.raw&&(Wn.raw={header:jA,sectors:ve}),Wn}function d(O){if(O[O.l]==80&&O[O.l+1]==75)return[0,0];O.chk(eA,"Header Signature: "),O.l+=16;var J=O.read_shift(2,"u");return[O.read_shift(2,"u"),J]}function g(O,J){var K=9;switch(O.l+=2,K=O.read_shift(2)){case 9:if(J!=3)throw new Error("Sector Shift: Expected 9 saw "+K);break;case 12:if(J!=4)throw new Error("Sector Shift: Expected 12 saw "+K);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+K)}O.chk("0600","Mini Sector Shift: "),O.chk("000000000000","Reserved: ")}function u(O,J){for(var K=Math.ceil(O.length/J)-1,V=[],Z=1;Z<K;++Z)V[Z-1]=O.slice(Z*J,(Z+1)*J);return V[K-1]=O.slice(K*J),V}function v(O,J,K){for(var V=0,Z=0,tA=0,pA=0,yA=0,BA=K.length,vA=[],FA=[];V<BA;++V)vA[V]=FA[V]=V,J[V]=K[V];for(;yA<FA.length;++yA)V=FA[yA],Z=O[V].L,tA=O[V].R,pA=O[V].C,vA[V]===V&&(Z!==-1&&vA[Z]!==Z&&(vA[V]=vA[Z]),tA!==-1&&vA[tA]!==tA&&(vA[V]=vA[tA])),pA!==-1&&(vA[pA]=V),Z!==-1&&V!=vA[V]&&(vA[Z]=vA[V],FA.lastIndexOf(Z)<yA&&FA.push(Z)),tA!==-1&&V!=vA[V]&&(vA[tA]=vA[V],FA.lastIndexOf(tA)<yA&&FA.push(tA));for(V=1;V<BA;++V)vA[V]===V&&(tA!==-1&&vA[tA]!==tA?vA[V]=vA[tA]:Z!==-1&&vA[Z]!==Z&&(vA[V]=vA[Z]));for(V=1;V<BA;++V)if(O[V].type!==0){if(yA=V,yA!=vA[yA])do yA=vA[yA],J[V]=J[yA]+"/"+J[V];while(yA!==0&&vA[yA]!==-1&&yA!=vA[yA]);vA[V]=-1}for(J[0]+="/",V=1;V<BA;++V)O[V].type!==2&&(J[V]+="/")}function B(O,J,K){for(var V=O.start,Z=O.size,tA=[],pA=V;K&&Z>0&&pA>=0;)tA.push(J.slice(pA*T,pA*T+T)),Z-=T,pA=Ra(K,pA*4);return tA.length===0?EA(0):pr(tA).slice(0,O.size)}function x(O,J,K,V,Z){var tA=P;if(O===P){if(J!==0)throw new Error("DIFAT chain shorter than expected")}else if(O!==-1){var pA=K[O],yA=(V>>>2)-1;if(!pA)return;for(var BA=0;BA<yA&&(tA=Ra(pA,BA*4))!==P;++BA)Z.push(tA);x(Ra(pA,V-4),J-1,K,V,Z)}}function F(O,J,K,V,Z){var tA=[],pA=[];Z||(Z=[]);var yA=V-1,BA=0,vA=0;for(BA=J;BA>=0;){Z[BA]=!0,tA[tA.length]=BA,pA.push(O[BA]);var FA=K[Math.floor(BA*4/V)];if(vA=BA*4&yA,V<4+vA)throw new Error("FAT boundary crossed: "+BA+" 4 "+V);if(!O[FA])break;BA=Ra(O[FA],vA)}return{nodes:tA,data:tg([pA])}}function _(O,J,K,V){var Z=O.length,tA=[],pA=[],yA=[],BA=[],vA=V-1,FA=0,PA=0,jA=0,YA=0;for(FA=0;FA<Z;++FA)if(yA=[],jA=FA+J,jA>=Z&&(jA-=Z),!pA[jA]){BA=[];var KA=[];for(PA=jA;PA>=0;){KA[PA]=!0,pA[PA]=!0,yA[yA.length]=PA,BA.push(O[PA]);var zA=K[Math.floor(PA*4/V)];if(YA=PA*4&vA,V<4+YA)throw new Error("FAT boundary crossed: "+PA+" 4 "+V);if(!O[zA]||(PA=Ra(O[zA],YA),KA[PA]))break}tA[jA]={nodes:yA,data:tg([BA])}}return tA}function I(O,J,K,V,Z,tA,pA,yA){for(var BA=0,vA=V.length?2:0,FA=J[O].data,PA=0,jA=0,YA;PA<FA.length;PA+=128){var KA=FA.slice(PA,PA+128);nn(KA,64),jA=KA.read_shift(2),YA=Uh(KA,0,jA-vA),V.push(YA);var zA={name:YA,type:KA.read_shift(1),color:KA.read_shift(1),L:KA.read_shift(4,"i"),R:KA.read_shift(4,"i"),C:KA.read_shift(4,"i"),clsid:KA.read_shift(16),state:KA.read_shift(4,"i"),start:0,size:0},ve=KA.read_shift(2)+KA.read_shift(2)+KA.read_shift(2)+KA.read_shift(2);ve!==0&&(zA.ct=L(KA,KA.l-8));var it=KA.read_shift(2)+KA.read_shift(2)+KA.read_shift(2)+KA.read_shift(2);it!==0&&(zA.mt=L(KA,KA.l-8)),zA.start=KA.read_shift(4,"i"),zA.size=KA.read_shift(4,"i"),zA.size<0&&zA.start<0&&(zA.size=zA.type=0,zA.start=P,zA.name=""),zA.type===5?(BA=zA.start,Z>0&&BA!==P&&(J[BA].name="!StreamData")):zA.size>=4096?(zA.storage="fat",J[zA.start]===void 0&&(J[zA.start]=F(K,zA.start,J.fat_addrs,J.ssz)),J[zA.start].name=zA.name,zA.content=J[zA.start].data.slice(0,zA.size)):(zA.storage="minifat",zA.size<0?zA.size=0:BA!==P&&zA.start!==P&&J[BA]&&(zA.content=B(zA,J[BA].data,(J[yA]||{}).data))),zA.content&&nn(zA.content,0),tA[YA]=zA,pA.push(zA)}}function L(O,J){return new Date((sn(O,J+4)/1e7*Math.pow(2,32)+sn(O,J)/1e7-11644473600)*1e3)}function q(O,J){return f(),l(o.readFileSync(O),J)}function rA(O,J){var K=J&&J.type;switch(K||qe&&Buffer.isBuffer(O)&&(K="buffer"),K||"base64"){case"file":return q(O,J);case"base64":return l(kn(Di(O)),J);case"binary":return l(kn(O),J)}return l(O,J)}function M(O,J){var K=J||{},V=K.root||"Root Entry";if(O.FullPaths||(O.FullPaths=[]),O.FileIndex||(O.FileIndex=[]),O.FullPaths.length!==O.FileIndex.length)throw new Error("inconsistent CFB structure");O.FullPaths.length===0&&(O.FullPaths[0]=V+"/",O.FileIndex[0]={name:V,type:5}),K.CLSID&&(O.FileIndex[0].clsid=K.CLSID),R(O)}function R(O){var J="Sh33tJ5";if(!at.find(O,"/"+J)){var K=EA(4);K[0]=55,K[1]=K[3]=50,K[2]=54,O.FileIndex.push({name:J,type:2,content:K,size:4,L:69,R:69,C:69}),O.FullPaths.push(O.FullPaths[0]+J),E(O)}}function E(O,J){M(O);for(var K=!1,V=!1,Z=O.FullPaths.length-1;Z>=0;--Z){var tA=O.FileIndex[Z];switch(tA.type){case 0:V?K=!0:(O.FileIndex.pop(),O.FullPaths.pop());break;case 1:case 2:case 5:V=!0,isNaN(tA.R*tA.L*tA.C)&&(K=!0),tA.R>-1&&tA.L>-1&&tA.R==tA.L&&(K=!0);break;default:K=!0;break}}if(!(!K&&!J)){var pA=new Date(1987,1,19),yA=0,BA=Object.create?Object.create(null):{},vA=[];for(Z=0;Z<O.FullPaths.length;++Z)BA[O.FullPaths[Z]]=!0,O.FileIndex[Z].type!==0&&vA.push([O.FullPaths[Z],O.FileIndex[Z]]);for(Z=0;Z<vA.length;++Z){var FA=r(vA[Z][0]);V=BA[FA],V||(vA.push([FA,{name:n(FA).replace("/",""),type:1,clsid:wA,ct:pA,mt:pA,content:null}]),BA[FA]=!0)}for(vA.sort(function(YA,KA){return t(YA[0],KA[0])}),O.FullPaths=[],O.FileIndex=[],Z=0;Z<vA.length;++Z)O.FullPaths[Z]=vA[Z][0],O.FileIndex[Z]=vA[Z][1];for(Z=0;Z<vA.length;++Z){var PA=O.FileIndex[Z],jA=O.FullPaths[Z];if(PA.name=n(jA).replace("/",""),PA.L=PA.R=PA.C=-(PA.color=1),PA.size=PA.content?PA.content.length:0,PA.start=0,PA.clsid=PA.clsid||wA,Z===0)PA.C=vA.length>1?1:-1,PA.size=0,PA.type=5;else if(jA.slice(-1)=="/"){for(yA=Z+1;yA<vA.length&&r(O.FullPaths[yA])!=jA;++yA);for(PA.C=yA>=vA.length?-1:yA,yA=Z+1;yA<vA.length&&r(O.FullPaths[yA])!=r(jA);++yA);PA.R=yA>=vA.length?-1:yA,PA.type=1}else r(O.FullPaths[Z+1]||"")==r(jA)&&(PA.R=Z+1),PA.type=2}}}function X(O,J){var K=J||{};if(K.fileType=="mad")return _n(O,K);switch(E(O),K.fileType){case"zip":return De(O,K)}var V=(function(YA){for(var KA=0,zA=0,ve=0;ve<YA.FileIndex.length;++ve){var it=YA.FileIndex[ve];if(it.content){var Re=it.content.length;Re>0&&(Re<4096?KA+=Re+63>>6:zA+=Re+511>>9)}}for(var yt=YA.FullPaths.length+3>>2,jn=KA+7>>3,bn=KA+127>>7,Wn=jn+zA+yt+bn,cn=Wn+127>>7,Pi=cn<=109?0:Math.ceil((cn-109)/127);Wn+cn+Pi+127>>7>cn;)Pi=++cn<=109?0:Math.ceil((cn-109)/127);var Rt=[1,Pi,cn,bn,yt,zA,KA,0];return YA.FileIndex[0].size=KA<<6,Rt[7]=(YA.FileIndex[0].start=Rt[0]+Rt[1]+Rt[2]+Rt[3]+Rt[4]+Rt[5])+(Rt[6]+7>>3),Rt})(O),Z=EA(V[7]<<9),tA=0,pA=0;{for(tA=0;tA<8;++tA)Z.write_shift(1,sA[tA]);for(tA=0;tA<8;++tA)Z.write_shift(2,0);for(Z.write_shift(2,62),Z.write_shift(2,3),Z.write_shift(2,65534),Z.write_shift(2,9),Z.write_shift(2,6),tA=0;tA<3;++tA)Z.write_shift(2,0);for(Z.write_shift(4,0),Z.write_shift(4,V[2]),Z.write_shift(4,V[0]+V[1]+V[2]+V[3]-1),Z.write_shift(4,0),Z.write_shift(4,4096),Z.write_shift(4,V[3]?V[0]+V[1]+V[2]-1:P),Z.write_shift(4,V[3]),Z.write_shift(-4,V[1]?V[0]-1:P),Z.write_shift(4,V[1]),tA=0;tA<109;++tA)Z.write_shift(-4,tA<V[2]?V[1]+tA:-1)}if(V[1])for(pA=0;pA<V[1];++pA){for(;tA<236+pA*127;++tA)Z.write_shift(-4,tA<V[2]?V[1]+tA:-1);Z.write_shift(-4,pA===V[1]-1?P:pA+1)}var yA=function(YA){for(pA+=YA;tA<pA-1;++tA)Z.write_shift(-4,tA+1);YA&&(++tA,Z.write_shift(-4,P))};for(pA=tA=0,pA+=V[1];tA<pA;++tA)Z.write_shift(-4,gA.DIFSECT);for(pA+=V[2];tA<pA;++tA)Z.write_shift(-4,gA.FATSECT);yA(V[3]),yA(V[4]);for(var BA=0,vA=0,FA=O.FileIndex[0];BA<O.FileIndex.length;++BA)FA=O.FileIndex[BA],FA.content&&(vA=FA.content.length,!(vA<4096)&&(FA.start=pA,yA(vA+511>>9)));for(yA(V[6]+7>>3);Z.l&511;)Z.write_shift(-4,gA.ENDOFCHAIN);for(pA=tA=0,BA=0;BA<O.FileIndex.length;++BA)FA=O.FileIndex[BA],FA.content&&(vA=FA.content.length,!(!vA||vA>=4096)&&(FA.start=pA,yA(vA+63>>6)));for(;Z.l&511;)Z.write_shift(-4,gA.ENDOFCHAIN);for(tA=0;tA<V[4]<<2;++tA){var PA=O.FullPaths[tA];if(!PA||PA.length===0){for(BA=0;BA<17;++BA)Z.write_shift(4,0);for(BA=0;BA<3;++BA)Z.write_shift(4,-1);for(BA=0;BA<12;++BA)Z.write_shift(4,0);continue}FA=O.FileIndex[tA],tA===0&&(FA.start=FA.size?FA.start-1:P);var jA=tA===0&&K.root||FA.name;if(vA=2*(jA.length+1),Z.write_shift(64,jA,"utf16le"),Z.write_shift(2,vA),Z.write_shift(1,FA.type),Z.write_shift(1,FA.color),Z.write_shift(-4,FA.L),Z.write_shift(-4,FA.R),Z.write_shift(-4,FA.C),FA.clsid)Z.write_shift(16,FA.clsid,"hex");else for(BA=0;BA<4;++BA)Z.write_shift(4,0);Z.write_shift(4,FA.state||0),Z.write_shift(4,0),Z.write_shift(4,0),Z.write_shift(4,0),Z.write_shift(4,0),Z.write_shift(4,FA.start),Z.write_shift(4,FA.size),Z.write_shift(4,0)}for(tA=1;tA<O.FileIndex.length;++tA)if(FA=O.FileIndex[tA],FA.size>=4096)if(Z.l=FA.start+1<<9,qe&&Buffer.isBuffer(FA.content))FA.content.copy(Z,Z.l,0,FA.size),Z.l+=FA.size+511&-512;else{for(BA=0;BA<FA.size;++BA)Z.write_shift(1,FA.content[BA]);for(;BA&511;++BA)Z.write_shift(1,0)}for(tA=1;tA<O.FileIndex.length;++tA)if(FA=O.FileIndex[tA],FA.size>0&&FA.size<4096)if(qe&&Buffer.isBuffer(FA.content))FA.content.copy(Z,Z.l,0,FA.size),Z.l+=FA.size+63&-64;else{for(BA=0;BA<FA.size;++BA)Z.write_shift(1,FA.content[BA]);for(;BA&63;++BA)Z.write_shift(1,0)}if(qe)Z.l=Z.length;else for(;Z.l<Z.length;)Z.write_shift(1,0);return Z}function y(O,J){var K=O.FullPaths.map(function(BA){return BA.toUpperCase()}),V=K.map(function(BA){var vA=BA.split("/");return vA[vA.length-(BA.slice(-1)=="/"?2:1)]}),Z=!1;J.charCodeAt(0)===47?(Z=!0,J=K[0].slice(0,-1)+J):Z=J.indexOf("/")!==-1;var tA=J.toUpperCase(),pA=Z===!0?K.indexOf(tA):V.indexOf(tA);if(pA!==-1)return O.FileIndex[pA];var yA=!tA.match(Nf);for(tA=tA.replace(zo,""),yA&&(tA=tA.replace(Nf,"!")),pA=0;pA<K.length;++pA)if((yA?K[pA].replace(Nf,"!"):K[pA]).replace(zo,"")==tA||(yA?V[pA].replace(Nf,"!"):V[pA]).replace(zo,"")==tA)return O.FileIndex[pA];return null}var T=64,P=-2,eA="d0cf11e0a1b11ae1",sA=[208,207,17,224,161,177,26,225],wA="00000000000000000000000000000000",gA={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:P,FREESECT:-1,HEADER_SIGNATURE:eA,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:wA,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function hA(O,J,K){f();var V=X(O,K);o.writeFileSync(J,V)}function CA(O){for(var J=new Array(O.length),K=0;K<O.length;++K)J[K]=String.fromCharCode(O[K]);return J.join("")}function IA(O,J){var K=X(O,J);switch(J&&J.type||"buffer"){case"file":return f(),o.writeFileSync(J.filename,K),K;case"binary":return typeof K=="string"?K:CA(K);case"base64":return s0(typeof K=="string"?K:CA(K));case"buffer":if(qe)return Buffer.isBuffer(K)?K:ki(K);case"array":return typeof K=="string"?kn(K):K}return K}var _A;function m(O){try{var J=O.InflateRaw,K=new J;if(K._processChunk(new Uint8Array([3,0]),K._finishFlushFlag),K.bytesRead)_A=O;else throw new Error("zlib does not expose bytesRead")}catch(V){console.error("cannot use native zlib: "+(V.message||V))}}function Q(O,J){if(!_A)return Je(O,J);var K=_A.InflateRaw,V=new K,Z=V._processChunk(O.slice(O.l),V._finishFlushFlag);return O.l+=V.bytesRead,Z}function U(O){return _A?_A.deflateRawSync(O):ye(O)}var N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],nA=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function fA(O){var J=(O<<1|O<<11)&139536|(O<<5|O<<15)&558144;return(J>>16|J>>8|J)&255}for(var oA=typeof Uint8Array<"u",lA=oA?new Uint8Array(256):[],SA=0;SA<256;++SA)lA[SA]=fA(SA);function HA(O,J){var K=lA[O&255];return J<=8?K>>>8-J:(K=K<<8|lA[O>>8&255],J<=16?K>>>16-J:(K=K<<8|lA[O>>16&255],K>>>24-J))}function GA(O,J){var K=J&7,V=J>>>3;return(O[V]|(K<=6?0:O[V+1]<<8))>>>K&3}function VA(O,J){var K=J&7,V=J>>>3;return(O[V]|(K<=5?0:O[V+1]<<8))>>>K&7}function W(O,J){var K=J&7,V=J>>>3;return(O[V]|(K<=4?0:O[V+1]<<8))>>>K&15}function RA(O,J){var K=J&7,V=J>>>3;return(O[V]|(K<=3?0:O[V+1]<<8))>>>K&31}function kA(O,J){var K=J&7,V=J>>>3;return(O[V]|(K<=1?0:O[V+1]<<8))>>>K&127}function te(O,J,K){var V=J&7,Z=J>>>3,tA=(1<<K)-1,pA=O[Z]>>>V;return K<8-V||(pA|=O[Z+1]<<8-V,K<16-V)||(pA|=O[Z+2]<<16-V,K<24-V)||(pA|=O[Z+3]<<24-V),pA&tA}function LA(O,J,K){var V=J&7,Z=J>>>3;return V<=5?O[Z]|=(K&7)<<V:(O[Z]|=K<<V&255,O[Z+1]=(K&7)>>8-V),J+3}function fe(O,J,K){var V=J&7,Z=J>>>3;return K=(K&1)<<V,O[Z]|=K,J+1}function ZA(O,J,K){var V=J&7,Z=J>>>3;return K<<=V,O[Z]|=K&255,K>>>=8,O[Z+1]=K,J+8}function de(O,J,K){var V=J&7,Z=J>>>3;return K<<=V,O[Z]|=K&255,K>>>=8,O[Z+1]=K&255,O[Z+2]=K>>>8,J+16}function ce(O,J){var K=O.length,V=2*K>J?2*K:J+5,Z=0;if(K>=J)return O;if(qe){var tA=M2(V);if(O.copy)O.copy(tA);else for(;Z<O.length;++Z)tA[Z]=O[Z];return tA}else if(oA){var pA=new Uint8Array(V);if(pA.set)pA.set(O);else for(;Z<K;++Z)pA[Z]=O[Z];return pA}return O.length=V,O}function Le(O){for(var J=new Array(O),K=0;K<O;++K)J[K]=0;return J}function Ie(O,J,K){var V=1,Z=0,tA=0,pA=0,yA=0,BA=O.length,vA=oA?new Uint16Array(32):Le(32);for(tA=0;tA<32;++tA)vA[tA]=0;for(tA=BA;tA<K;++tA)O[tA]=0;BA=O.length;var FA=oA?new Uint16Array(BA):Le(BA);for(tA=0;tA<BA;++tA)vA[Z=O[tA]]++,V<Z&&(V=Z),FA[tA]=0;for(vA[0]=0,tA=1;tA<=V;++tA)vA[tA+16]=yA=yA+vA[tA-1]<<1;for(tA=0;tA<BA;++tA)yA=O[tA],yA!=0&&(FA[tA]=vA[yA+16]++);var PA=0;for(tA=0;tA<BA;++tA)if(PA=O[tA],PA!=0)for(yA=HA(FA[tA],V)>>V-PA,pA=(1<<V+4-PA)-1;pA>=0;--pA)J[yA|pA<<PA]=PA&15|tA<<4;return V}var me=oA?new Uint16Array(512):Le(512),ke=oA?new Uint16Array(32):Le(32);if(!oA){for(var _e=0;_e<512;++_e)me[_e]=0;for(_e=0;_e<32;++_e)ke[_e]=0}(function(){for(var O=[],J=0;J<32;J++)O.push(5);Ie(O,ke,32);var K=[];for(J=0;J<=143;J++)K.push(8);for(;J<=255;J++)K.push(9);for(;J<=279;J++)K.push(7);for(;J<=287;J++)K.push(8);Ie(K,me,288)})();var ie=(function(){for(var J=oA?new Uint8Array(32768):[],K=0,V=0;K<nA.length-1;++K)for(;V<nA[K+1];++V)J[V]=K;for(;V<32768;++V)J[V]=29;var Z=oA?new Uint8Array(259):[];for(K=0,V=0;K<j.length-1;++K)for(;V<j[K+1];++V)Z[V]=K;function tA(yA,BA){for(var vA=0;vA<yA.length;){var FA=Math.min(65535,yA.length-vA),PA=vA+FA==yA.length;for(BA.write_shift(1,+PA),BA.write_shift(2,FA),BA.write_shift(2,~FA&65535);FA-- >0;)BA[BA.l++]=yA[vA++]}return BA.l}function pA(yA,BA){for(var vA=0,FA=0,PA=oA?new Uint16Array(32768):[];FA<yA.length;){var jA=Math.min(65535,yA.length-FA);if(jA<10){for(vA=LA(BA,vA,+(FA+jA==yA.length)),vA&7&&(vA+=8-(vA&7)),BA.l=vA/8|0,BA.write_shift(2,jA),BA.write_shift(2,~jA&65535);jA-- >0;)BA[BA.l++]=yA[FA++];vA=BA.l*8;continue}vA=LA(BA,vA,+(FA+jA==yA.length)+2);for(var YA=0;jA-- >0;){var KA=yA[FA];YA=(YA<<5^KA)&32767;var zA=-1,ve=0;if((zA=PA[YA])&&(zA|=FA&-32768,zA>FA&&(zA-=32768),zA<FA))for(;yA[zA+ve]==yA[FA+ve]&&ve<250;)++ve;if(ve>2){KA=Z[ve],KA<=22?vA=ZA(BA,vA,lA[KA+1]>>1)-1:(ZA(BA,vA,3),vA+=5,ZA(BA,vA,lA[KA-23]>>5),vA+=3);var it=KA<8?0:KA-4>>2;it>0&&(de(BA,vA,ve-j[KA]),vA+=it),KA=J[FA-zA],vA=ZA(BA,vA,lA[KA]>>3),vA-=3;var Re=KA<4?0:KA-2>>1;Re>0&&(de(BA,vA,FA-zA-nA[KA]),vA+=Re);for(var yt=0;yt<ve;++yt)PA[YA]=FA&32767,YA=(YA<<5^yA[FA])&32767,++FA;jA-=ve-1}else KA<=143?KA=KA+48:vA=fe(BA,vA,1),vA=ZA(BA,vA,lA[KA]),PA[YA]=FA&32767,++FA}vA=ZA(BA,vA,0)-1}return BA.l=(vA+7)/8|0,BA.l}return function(BA,vA){return BA.length<8?tA(BA,vA):pA(BA,vA)}})();function ye(O){var J=EA(50+Math.floor(O.length*1.1)),K=ie(O,J);return J.slice(0,K)}var oe=oA?new Uint16Array(32768):Le(32768),vt=oA?new Uint16Array(32768):Le(32768),Pe=oA?new Uint16Array(128):Le(128),Qe=1,Se=1;function ct(O,J){var K=RA(O,J)+257;J+=5;var V=RA(O,J)+1;J+=5;var Z=W(O,J)+4;J+=4;for(var tA=0,pA=oA?new Uint8Array(19):Le(19),yA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],BA=1,vA=oA?new Uint8Array(8):Le(8),FA=oA?new Uint8Array(8):Le(8),PA=pA.length,jA=0;jA<Z;++jA)pA[N[jA]]=tA=VA(O,J),BA<tA&&(BA=tA),vA[tA]++,J+=3;var YA=0;for(vA[0]=0,jA=1;jA<=BA;++jA)FA[jA]=YA=YA+vA[jA-1]<<1;for(jA=0;jA<PA;++jA)(YA=pA[jA])!=0&&(yA[jA]=FA[YA]++);var KA=0;for(jA=0;jA<PA;++jA)if(KA=pA[jA],KA!=0){YA=lA[yA[jA]]>>8-KA;for(var zA=(1<<7-KA)-1;zA>=0;--zA)Pe[YA|zA<<KA]=KA&7|jA<<3}var ve=[];for(BA=1;ve.length<K+V;)switch(YA=Pe[kA(O,J)],J+=YA&7,YA>>>=3){case 16:for(tA=3+GA(O,J),J+=2,YA=ve[ve.length-1];tA-- >0;)ve.push(YA);break;case 17:for(tA=3+VA(O,J),J+=3;tA-- >0;)ve.push(0);break;case 18:for(tA=11+kA(O,J),J+=7;tA-- >0;)ve.push(0);break;default:ve.push(YA),BA<YA&&(BA=YA);break}var it=ve.slice(0,K),Re=ve.slice(K);for(jA=K;jA<286;++jA)it[jA]=0;for(jA=V;jA<30;++jA)Re[jA]=0;return Qe=Ie(it,oe,286),Se=Ie(Re,vt,30),J}function ge(O,J){if(O[0]==3&&!(O[1]&3))return[qa(J),2];for(var K=0,V=0,Z=M2(J||1<<18),tA=0,pA=Z.length>>>0,yA=0,BA=0;(V&1)==0;){if(V=VA(O,K),K+=3,V>>>1)V>>1==1?(yA=9,BA=5):(K=ct(O,K),yA=Qe,BA=Se);else{K&7&&(K+=8-(K&7));var vA=O[K>>>3]|O[(K>>>3)+1]<<8;if(K+=32,vA>0)for(!J&&pA<tA+vA&&(Z=ce(Z,tA+vA),pA=Z.length);vA-- >0;)Z[tA++]=O[K>>>3],K+=8;continue}for(;;){!J&&pA<tA+32767&&(Z=ce(Z,tA+32767),pA=Z.length);var FA=te(O,K,yA),PA=V>>>1==1?me[FA]:oe[FA];if(K+=PA&15,PA>>>=4,(PA>>>8&255)===0)Z[tA++]=PA;else{if(PA==256)break;PA-=257;var jA=PA<8?0:PA-4>>2;jA>5&&(jA=0);var YA=tA+j[PA];jA>0&&(YA+=te(O,K,jA),K+=jA),FA=te(O,K,BA),PA=V>>>1==1?ke[FA]:vt[FA],K+=PA&15,PA>>>=4;var KA=PA<4?0:PA-2>>1,zA=nA[PA];for(KA>0&&(zA+=te(O,K,KA),K+=KA),!J&&pA<YA&&(Z=ce(Z,YA+100),pA=Z.length);tA<YA;)Z[tA]=Z[tA-zA],++tA}}}return J?[Z,K+7>>>3]:[Z.slice(0,tA),K+7>>>3]}function Je(O,J){var K=O.slice(O.l||0),V=ge(K,J);return O.l+=V[1],V[0]}function Be(O,J){if(O)typeof console<"u"&&console.error(J);else throw new Error(J)}function Ce(O,J){var K=O;nn(K,0);var V=[],Z=[],tA={FileIndex:V,FullPaths:Z};M(tA,{root:J.root});for(var pA=K.length-4;(K[pA]!=80||K[pA+1]!=75||K[pA+2]!=5||K[pA+3]!=6)&&pA>=0;)--pA;K.l=pA+4,K.l+=4;var yA=K.read_shift(2);K.l+=6;var BA=K.read_shift(4);for(K.l=BA,pA=0;pA<yA;++pA){K.l+=20;var vA=K.read_shift(4),FA=K.read_shift(4),PA=K.read_shift(2),jA=K.read_shift(2),YA=K.read_shift(2);K.l+=8;var KA=K.read_shift(4),zA=s(K.slice(K.l+PA,K.l+PA+jA));K.l+=PA+jA+YA;var ve=K.l;K.l=KA+4,ut(K,vA,FA,tA,zA),K.l=ve}return tA}function ut(O,J,K,V,Z){O.l+=2;var tA=O.read_shift(2),pA=O.read_shift(2),yA=a(O);if(tA&8257)throw new Error("Unsupported ZIP encryption");for(var BA=O.read_shift(4),vA=O.read_shift(4),FA=O.read_shift(4),PA=O.read_shift(2),jA=O.read_shift(2),YA="",KA=0;KA<PA;++KA)YA+=String.fromCharCode(O[O.l++]);if(jA){var zA=s(O.slice(O.l,O.l+jA));(zA[21589]||{}).mt&&(yA=zA[21589].mt),((Z||{})[21589]||{}).mt&&(yA=Z[21589].mt)}O.l+=jA;var ve=O.slice(O.l,O.l+vA);switch(pA){case 8:ve=Q(O,FA);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+pA)}var it=!1;tA&8&&(BA=O.read_shift(4),BA==134695760&&(BA=O.read_shift(4),it=!0),vA=O.read_shift(4),FA=O.read_shift(4)),vA!=J&&Be(it,"Bad compressed size: "+J+" != "+vA),FA!=K&&Be(it,"Bad uncompressed size: "+K+" != "+FA),xr(V,YA,ve,{unsafe:!0,mt:yA})}function De(O,J){var K=J||{},V=[],Z=[],tA=EA(1),pA=K.compression?8:0,yA=0,BA=0,vA=0,FA=0,PA=0,jA=O.FullPaths[0],YA=jA,KA=O.FileIndex[0],zA=[],ve=0;for(BA=1;BA<O.FullPaths.length;++BA)if(YA=O.FullPaths[BA].slice(jA.length),KA=O.FileIndex[BA],!(!KA.size||!KA.content||YA=="Sh33tJ5")){var it=FA,Re=EA(YA.length);for(vA=0;vA<YA.length;++vA)Re.write_shift(1,YA.charCodeAt(vA)&127);Re=Re.slice(0,Re.l),zA[PA]=VE.buf(KA.content,0);var yt=KA.content;pA==8&&(yt=U(yt)),tA=EA(30),tA.write_shift(4,67324752),tA.write_shift(2,20),tA.write_shift(2,yA),tA.write_shift(2,pA),KA.mt?i(tA,KA.mt):tA.write_shift(4,0),tA.write_shift(-4,zA[PA]),tA.write_shift(4,yt.length),tA.write_shift(4,KA.content.length),tA.write_shift(2,Re.length),tA.write_shift(2,0),FA+=tA.length,V.push(tA),FA+=Re.length,V.push(Re),FA+=yt.length,V.push(yt),tA=EA(46),tA.write_shift(4,33639248),tA.write_shift(2,0),tA.write_shift(2,20),tA.write_shift(2,yA),tA.write_shift(2,pA),tA.write_shift(4,0),tA.write_shift(-4,zA[PA]),tA.write_shift(4,yt.length),tA.write_shift(4,KA.content.length),tA.write_shift(2,Re.length),tA.write_shift(2,0),tA.write_shift(2,0),tA.write_shift(2,0),tA.write_shift(2,0),tA.write_shift(4,0),tA.write_shift(4,it),ve+=tA.l,Z.push(tA),ve+=Re.length,Z.push(Re),++PA}return tA=EA(22),tA.write_shift(4,101010256),tA.write_shift(2,0),tA.write_shift(2,0),tA.write_shift(2,PA),tA.write_shift(2,PA),tA.write_shift(4,ve),tA.write_shift(4,FA),tA.write_shift(2,0),pr([pr(V),pr(Z),tA])}var pe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function We(O,J){if(O.ctype)return O.ctype;var K=O.name||"",V=K.match(/\.([^\.]+)$/);return V&&pe[V[1]]||J&&(V=(K=J).match(/[\.\\]([^\.\\])+$/),V&&pe[V[1]])?pe[V[1]]:"application/octet-stream"}function fi(O){for(var J=s0(O),K=[],V=0;V<J.length;V+=76)K.push(J.slice(V,V+76));return K.join(`\r
`)+`\r
`}function tr(O){var J=O.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(vA){var FA=vA.charCodeAt(0).toString(16).toUpperCase();return"="+(FA.length==1?"0"+FA:FA)});J=J.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),J.charAt(0)==`
`&&(J="=0D"+J.slice(1)),J=J.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var K=[],V=J.split(`\r
`),Z=0;Z<V.length;++Z){var tA=V[Z];if(tA.length==0){K.push("");continue}for(var pA=0;pA<tA.length;){var yA=76,BA=tA.slice(pA,pA+yA);BA.charAt(yA-1)=="="?yA--:BA.charAt(yA-2)=="="?yA-=2:BA.charAt(yA-3)=="="&&(yA-=3),BA=tA.slice(pA,pA+yA),pA+=yA,pA<tA.length&&(BA+="="),K.push(BA)}}return K.join(`\r
`)}function En(O){for(var J=[],K=0;K<O.length;++K){for(var V=O[K];K<=O.length&&V.charAt(V.length-1)=="=";)V=V.slice(0,V.length-1)+O[++K];J.push(V)}for(var Z=0;Z<J.length;++Z)J[Z]=J[Z].replace(/[=][0-9A-Fa-f]{2}/g,function(tA){return String.fromCharCode(parseInt(tA.slice(1),16))});return kn(J.join(`\r
`))}function ln(O,J,K){for(var V="",Z="",tA="",pA,yA=0;yA<10;++yA){var BA=J[yA];if(!BA||BA.match(/^\s*$/))break;var vA=BA.match(/^(.*?):\s*([^\s].*)$/);if(vA)switch(vA[1].toLowerCase()){case"content-location":V=vA[2].trim();break;case"content-type":tA=vA[2].trim();break;case"content-transfer-encoding":Z=vA[2].trim();break}}switch(++yA,Z.toLowerCase()){case"base64":pA=kn(Di(J.slice(yA).join("")));break;case"quoted-printable":pA=En(J.slice(yA));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+Z)}var FA=xr(O,V.slice(K.length),pA,{unsafe:!0});tA&&(FA.ctype=tA)}function we(O,J){if(CA(O.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var K=J&&J.root||"",V=(qe&&Buffer.isBuffer(O)?O.toString("binary"):CA(O)).split(`\r
`),Z=0,tA="";for(Z=0;Z<V.length;++Z)if(tA=V[Z],!!/^Content-Location:/i.test(tA)&&(tA=tA.slice(tA.indexOf("file")),K||(K=tA.slice(0,tA.lastIndexOf("/")+1)),tA.slice(0,K.length)!=K))for(;K.length>0&&(K=K.slice(0,K.length-1),K=K.slice(0,K.lastIndexOf("/")+1),tA.slice(0,K.length)!=K););var pA=(V[1]||"").match(/boundary="(.*?)"/);if(!pA)throw new Error("MAD cannot find boundary");var yA="--"+(pA[1]||""),BA=[],vA=[],FA={FileIndex:BA,FullPaths:vA};M(FA);var PA,jA=0;for(Z=0;Z<V.length;++Z){var YA=V[Z];YA!==yA&&YA!==yA+"--"||(jA++&&ln(FA,V.slice(PA,Z),K),PA=Z)}return FA}function _n(O,J){var K=J||{},V=K.boundary||"SheetJS";V="------="+V;for(var Z=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+V.slice(2)+'"',"","",""],tA=O.FullPaths[0],pA=tA,yA=O.FileIndex[0],BA=1;BA<O.FullPaths.length;++BA)if(pA=O.FullPaths[BA].slice(tA.length),yA=O.FileIndex[BA],!(!yA.size||!yA.content||pA=="Sh33tJ5")){pA=pA.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(ve){return"_x"+ve.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(ve){return"_u"+ve.charCodeAt(0).toString(16)+"_"});for(var vA=yA.content,FA=qe&&Buffer.isBuffer(vA)?vA.toString("binary"):CA(vA),PA=0,jA=Math.min(1024,FA.length),YA=0,KA=0;KA<=jA;++KA)(YA=FA.charCodeAt(KA))>=32&&YA<128&&++PA;var zA=PA>=jA*4/5;Z.push(V),Z.push("Content-Location: "+(K.root||"file:///C:/SheetJS/")+pA),Z.push("Content-Transfer-Encoding: "+(zA?"quoted-printable":"base64")),Z.push("Content-Type: "+We(yA,pA)),Z.push(""),Z.push(zA?tr(FA):fi(FA))}return Z.push(V+`--\r
`),Z.join(`\r
`)}function Un(O){var J={};return M(J,O),J}function xr(O,J,K,V){var Z=V&&V.unsafe;Z||M(O);var tA=!Z&&at.find(O,J);if(!tA){var pA=O.FullPaths[0];J.slice(0,pA.length)==pA?pA=J:(pA.slice(-1)!="/"&&(pA+="/"),pA=(pA+J).replace("//","/")),tA={name:n(J),type:2},O.FileIndex.push(tA),O.FullPaths.push(pA),Z||at.utils.cfb_gc(O)}return tA.content=K,tA.size=K?K.length:0,V&&(V.CLSID&&(tA.clsid=V.CLSID),V.mt&&(tA.mt=V.mt),V.ct&&(tA.ct=V.ct)),tA}function Pr(O,J){M(O);var K=at.find(O,J);if(K){for(var V=0;V<O.FileIndex.length;++V)if(O.FileIndex[V]==K)return O.FileIndex.splice(V,1),O.FullPaths.splice(V,1),!0}return!1}function mt(O,J,K){M(O);var V=at.find(O,J);if(V){for(var Z=0;Z<O.FileIndex.length;++Z)if(O.FileIndex[Z]==V)return O.FileIndex[Z].name=n(K),O.FullPaths[Z]=K,!0}return!1}function Pt(O){E(O,!0)}return e.find=y,e.read=rA,e.parse=l,e.write=IA,e.writeFile=hA,e.utils={cfb_new:Un,cfb_add:xr,cfb_del:Pr,cfb_mov:mt,cfb_gc:Pt,ReadShift:Jo,CheckField:$B,prep_blob:nn,bconcat:pr,use_zlib:m,_deflateRaw:ye,_inflateRaw:Je,consts:gA},e})();function jE(A){return typeof A=="string"?kl(A):Array.isArray(A)?BE(A):A}function B0(A,e,t){if(typeof Deno<"u"){if(t&&typeof e=="string")switch(t){case"utf8":e=new TextEncoder(t).encode(e);break;case"binary":e=kl(e);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(A,e)}var r=t=="utf8"?f0(e):e;if(typeof IE_SaveFile<"u")return IE_SaveFile(r,A);if(typeof Blob<"u"){var n=new Blob([jE(r)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(n,A);if(typeof saveAs<"u")return saveAs(n,A);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(n);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:A,saveAs:!0});var a=document.createElement("a");if(a.download!=null)return a.download=A,a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(A);return s.open("w"),s.encoding="binary",Array.isArray(e)&&(e=p0(e)),s.write(e),s.close(),e}catch(o){if(!o.message||!o.message.match(/onstruct/))throw o}throw new Error("cannot save file "+A)}function mr(A){for(var e=Object.keys(A),t=[],r=0;r<e.length;++r)Object.prototype.hasOwnProperty.call(A,e[r])&&t.push(e[r]);return t}function z2(A,e){for(var t=[],r=mr(A),n=0;n!==r.length;++n)t[A[r[n]][e]]==null&&(t[A[r[n]][e]]=r[n]);return t}function Fh(A){for(var e=[],t=mr(A),r=0;r!==t.length;++r)e[A[t[r]]]=t[r];return e}function Ml(A){for(var e=[],t=mr(A),r=0;r!==t.length;++r)e[A[t[r]]]=parseInt(t[r],10);return e}function WE(A){for(var e=[],t=mr(A),r=0;r!==t.length;++r)e[A[t[r]]]==null&&(e[A[t[r]]]=[]),e[A[t[r]]].push(t[r]);return e}var pl=new Date(1899,11,30,0,0,0);function Vr(A,e){var t=A.getTime(),r=pl.getTime()+(A.getTimezoneOffset()-pl.getTimezoneOffset())*6e4;return(t-r)/(1440*60*1e3)}var DB=new Date,XE=pl.getTime()+(DB.getTimezoneOffset()-pl.getTimezoneOffset())*6e4,Y2=DB.getTimezoneOffset();function HB(A){var e=new Date;return e.setTime(A*24*60*60*1e3+XE),e.getTimezoneOffset()!==Y2&&e.setTime(e.getTime()+(e.getTimezoneOffset()-Y2)*6e4),e}var J2=new Date("2017-02-19T19:06:09.000Z"),kB=isNaN(J2.getFullYear())?new Date("2/19/17"):J2,qE=kB.getFullYear()==2017;function kr(A,e){var t=new Date(A);if(qE)return e>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):e<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(A instanceof Date)return A;if(kB.getFullYear()==1917&&!isNaN(t.getFullYear())){var r=t.getFullYear();return A.indexOf(""+r)>-1||t.setFullYear(t.getFullYear()+100),t}var n=A.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return A.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Kl(A,e){if(qe&&Buffer.isBuffer(A))return A.toString("binary");if(typeof TextDecoder<"u")try{var t={"€":"","‚":"",ƒ:"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(A)&&(A=new Uint8Array(A)),new TextDecoder("latin1").decode(A).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return t[i]||i})}catch{}for(var r=[],n=0;n!=A.length;++n)r.push(String.fromCharCode(A[n]));return r.join("")}function jr(A){if(typeof JSON<"u"&&!Array.isArray(A))return JSON.parse(JSON.stringify(A));if(typeof A!="object"||A==null)return A;if(A instanceof Date)return new Date(A.getTime());var e={};for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=jr(A[t]));return e}function bt(A,e){for(var t="";t.length<e;)t+=A;return t}function Ii(A){var e=Number(A);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(A))return e;var t=1,r=A.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(e=Number(r))||(r=r.replace(/[(](.*)[)]/,function(n,i){return t=-t,i}),!isNaN(e=Number(r)))?e/t:e}var zE=["january","february","march","april","may","june","july","august","september","october","november","december"];function o0(A){var e=new Date(A),t=new Date(NaN),r=e.getYear(),n=e.getMonth(),i=e.getDate();if(isNaN(i))return t;var a=A.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(a=a.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),a.length>3&&zE.indexOf(a)==-1)return t}else if(a.match(/[a-z]/))return t;return r<0||r>8099?t:(n>0||i>1)&&r!=101?e:A.match(/[^-0-9:,\/\\]/)?t:e}function He(A,e,t){if(A.FullPaths){if(typeof t=="string"){var r;return qe?r=ki(t):r=wE(t),at.utils.cfb_add(A,e,r)}at.utils.cfb_add(A,e,t)}else A.file(e,t)}function yh(){return at.utils.cfb_new()}var Xt=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,YE={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Eh=Fh(YE),_h=/[&<>'"]/g,JE=/[\u0000-\u0008\u000b-\u001f]/g;function rt(A){var e=A+"";return e.replace(_h,function(t){return Eh[t]}).replace(JE,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Z2(A){return rt(A).replace(/ /g,"_x0020_")}var PB=/[\u0000-\u001f]/g;function ZE(A){var e=A+"";return e.replace(_h,function(t){return Eh[t]}).replace(/\n/g,"<br/>").replace(PB,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function $E(A){var e=A+"";return e.replace(_h,function(t){return Eh[t]}).replace(PB,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function A_(A){return A.replace(/(\r\n|[\r\n])/g,"&#10;")}function e_(A){switch(A){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Bu(A){for(var e="",t=0,r=0,n=0,i=0,a=0,s=0;t<A.length;){if(r=A.charCodeAt(t++),r<128){e+=String.fromCharCode(r);continue}if(n=A.charCodeAt(t++),r>191&&r<224){a=(r&31)<<6,a|=n&63,e+=String.fromCharCode(a);continue}if(i=A.charCodeAt(t++),r<240){e+=String.fromCharCode((r&15)<<12|(n&63)<<6|i&63);continue}a=A.charCodeAt(t++),s=((r&7)<<18|(n&63)<<12|(i&63)<<6|a&63)-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(s&1023))}return e}function $2(A){var e=qa(2*A.length),t,r,n=1,i=0,a=0,s;for(r=0;r<A.length;r+=n)n=1,(s=A.charCodeAt(r))<128?t=s:s<224?(t=(s&31)*64+(A.charCodeAt(r+1)&63),n=2):s<240?(t=(s&15)*4096+(A.charCodeAt(r+1)&63)*64+(A.charCodeAt(r+2)&63),n=3):(n=4,t=(s&7)*262144+(A.charCodeAt(r+1)&63)*4096+(A.charCodeAt(r+2)&63)*64+(A.charCodeAt(r+3)&63),t-=65536,a=55296+(t>>>10&1023),t=56320+(t&1023)),a!==0&&(e[i++]=a&255,e[i++]=a>>>8,a=0),e[i++]=t%256,e[i++]=t>>>8;return e.slice(0,i).toString("ucs2")}function Ag(A){return ki(A,"binary").toString("utf8")}var Df="foo bar bazâð£",Yo=qe&&(Ag(Df)==Bu(Df)&&Ag||$2(Df)==Bu(Df)&&$2)||Bu,f0=qe?function(A){return ki(A,"utf8").toString("binary")}:function(A){for(var e=[],t=0,r=0,n=0;t<A.length;)switch(r=A.charCodeAt(t++),!0){case r<128:e.push(String.fromCharCode(r));break;case r<2048:e.push(String.fromCharCode(192+(r>>6))),e.push(String.fromCharCode(128+(r&63)));break;case(r>=55296&&r<57344):r-=55296,n=A.charCodeAt(t++)-56320+(r<<10),e.push(String.fromCharCode(240+(n>>18&7))),e.push(String.fromCharCode(144+(n>>12&63))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(n&63)));break;default:e.push(String.fromCharCode(224+(r>>12))),e.push(String.fromCharCode(128+(r>>6&63))),e.push(String.fromCharCode(128+(r&63)))}return e.join("")},t_=(function(){var A=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),n=0;n<A.length;++n)r=r.replace(A[n][0],A[n][1]);return r}})(),RB=/(^\s|\s$|\n)/;function Br(A,e){return"<"+A+(e.match(RB)?' xml:space="preserve"':"")+">"+e+"</"+A+">"}function l0(A){return mr(A).map(function(e){return" "+e+'="'+A[e]+'"'}).join("")}function WA(A,e,t){return"<"+A+(t!=null?l0(t):"")+(e!=null?(e.match(RB)?' xml:space="preserve"':"")+">"+e+"</"+A:"/")+">"}function ah(A,e){try{return A.toISOString().replace(/\.\d*/,"")}catch(t){if(e)throw t}return""}function r_(A,e){switch(typeof A){case"string":var t=WA("vt:lpwstr",rt(A));return t=t.replace(/&quot;/g,"_x0022_"),t;case"number":return WA((A|0)==A?"vt:i4":"vt:r8",rt(String(A)));case"boolean":return WA("vt:bool",A?"true":"false")}if(A instanceof Date)return WA("vt:filetime",ah(A));throw new Error("Unable to serialize "+A)}var ir={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},qs=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],an={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function n_(A,e){for(var t=1-2*(A[e+7]>>>7),r=((A[e+7]&127)<<4)+(A[e+6]>>>4&15),n=A[e+6]&15,i=5;i>=0;--i)n=n*256+A[e+i];return r==2047?n==0?t*(1/0):NaN:(r==0?r=-1022:(r-=1023,n+=Math.pow(2,52)),t*Math.pow(2,r-52)*n)}function i_(A,e,t){var r=(e<0||1/e==-1/0?1:0)<<7,n=0,i=0,a=r?-e:e;isFinite(a)?a==0?n=i=0:(n=Math.floor(Math.log(a)/Math.LN2),i=a*Math.pow(2,52-n),n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?n=-1022:(i-=Math.pow(2,52),n+=1023)):(n=2047,i=isNaN(e)?26985:0);for(var s=0;s<=5;++s,i/=256)A[t+s]=i&255;A[t+6]=(n&15)<<4|i&15,A[t+7]=n>>4|r}var eg=function(A){for(var e=[],t=10240,r=0;r<A[0].length;++r)if(A[0][r])for(var n=0,i=A[0][r].length;n<i;n+=t)e.push.apply(e,A[0][r].slice(n,n+t));return e},tg=qe?function(A){return A[0].length>0&&Buffer.isBuffer(A[0][0])?Buffer.concat(A[0].map(function(e){return Buffer.isBuffer(e)?e:ki(e)})):eg(A)}:eg,rg=function(A,e,t){for(var r=[],n=e;n<t;n+=2)r.push(String.fromCharCode(Mo(A,n)));return r.join("").replace(zo,"")},Uh=qe?function(A,e,t){return Buffer.isBuffer(A)?A.toString("utf16le",e,t).replace(zo,""):rg(A,e,t)}:rg,ng=function(A,e,t){for(var r=[],n=e;n<e+t;++n)r.push(("0"+A[n].toString(16)).slice(-2));return r.join("")},MB=qe?function(A,e,t){return Buffer.isBuffer(A)?A.toString("hex",e,e+t):ng(A,e,t)}:ng,ig=function(A,e,t){for(var r=[],n=e;n<t;n++)r.push(String.fromCharCode(Ts(A,n)));return r.join("")},w0=qe?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf8",t,r):ig(e,t,r)}:ig,KB=function(A,e){var t=sn(A,e);return t>0?w0(A,e+4,e+4+t-1):""},GB=KB,VB=function(A,e){var t=sn(A,e);return t>0?w0(A,e+4,e+4+t-1):""},jB=VB,WB=function(A,e){var t=2*sn(A,e);return t>0?w0(A,e+4,e+4+t-1):""},XB=WB,qB=function(e,t){var r=sn(e,t);return r>0?Uh(e,t+4,t+4+r):""},zB=qB,YB=function(A,e){var t=sn(A,e);return t>0?w0(A,e+4,e+4+t):""},JB=YB,ZB=function(A,e){return n_(A,e)},Bl=ZB,bh=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};qe&&(GB=function(e,t){if(!Buffer.isBuffer(e))return KB(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},jB=function(e,t){if(!Buffer.isBuffer(e))return VB(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},XB=function(e,t){if(!Buffer.isBuffer(e))return WB(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},zB=function(e,t){if(!Buffer.isBuffer(e))return qB(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},JB=function(e,t){if(!Buffer.isBuffer(e))return YB(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},Bl=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):ZB(e,t)},bh=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});var Ts=function(A,e){return A[e]},Mo=function(A,e){return A[e+1]*256+A[e]},a_=function(A,e){var t=A[e+1]*256+A[e];return t<32768?t:(65535-t+1)*-1},sn=function(A,e){return A[e+3]*(1<<24)+(A[e+2]<<16)+(A[e+1]<<8)+A[e]},Ra=function(A,e){return A[e+3]<<24|A[e+2]<<16|A[e+1]<<8|A[e]},s_=function(A,e){return A[e]<<24|A[e+1]<<16|A[e+2]<<8|A[e+3]};function Jo(A,e){var t="",r,n,i=[],a,s,o,f;switch(e){case"dbcs":if(f=this.l,qe&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*A).toString("utf16le");else for(o=0;o<A;++o)t+=String.fromCharCode(Mo(this,f)),f+=2;A*=2;break;case"utf8":t=w0(this,this.l,this.l+A);break;case"utf16le":A*=2,t=Uh(this,this.l,this.l+A);break;case"wstr":return Jo.call(this,A,"dbcs");case"lpstr-ansi":t=GB(this,this.l),A=4+sn(this,this.l);break;case"lpstr-cp":t=jB(this,this.l),A=4+sn(this,this.l);break;case"lpwstr":t=XB(this,this.l),A=4+2*sn(this,this.l);break;case"lpp4":A=4+sn(this,this.l),t=zB(this,this.l),A&2&&(A+=2);break;case"8lpp4":A=4+sn(this,this.l),t=JB(this,this.l),A&3&&(A+=4-(A&3));break;case"cstr":for(A=0,t="";(a=Ts(this,this.l+A++))!==0;)i.push(If(a));t=i.join("");break;case"_wstr":for(A=0,t="";(a=Mo(this,this.l+A))!==0;)i.push(If(a)),A+=2;A+=2,t=i.join("");break;case"dbcs-cont":for(t="",f=this.l,o=0;o<A;++o){if(this.lens&&this.lens.indexOf(f)!==-1)return a=Ts(this,f),this.l=f+1,s=Jo.call(this,A-o,a?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(If(Mo(this,f))),f+=2}t=i.join(""),A*=2;break;case"cpstr":case"sbcs-cont":for(t="",f=this.l,o=0;o!=A;++o){if(this.lens&&this.lens.indexOf(f)!==-1)return a=Ts(this,f),this.l=f+1,s=Jo.call(this,A-o,a?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(If(Ts(this,f))),f+=1}t=i.join("");break;default:switch(A){case 1:return r=Ts(this,this.l),this.l++,r;case 2:return r=(e==="i"?a_:Mo)(this,this.l),this.l+=2,r;case 4:case-4:return e==="i"||(this[this.l+3]&128)===0?(r=(A>0?Ra:s_)(this,this.l),this.l+=4,r):(n=sn(this,this.l),this.l+=4,n);case 8:case-8:if(e==="f")return A==8?n=Bl(this,this.l):n=Bl([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;A=8;case 16:t=MB(this,this.l,A);break}}return this.l+=A,t}var o_=function(A,e,t){A[t]=e&255,A[t+1]=e>>>8&255,A[t+2]=e>>>16&255,A[t+3]=e>>>24&255},f_=function(A,e,t){A[t]=e&255,A[t+1]=e>>8&255,A[t+2]=e>>16&255,A[t+3]=e>>24&255},l_=function(A,e,t){A[t]=e&255,A[t+1]=e>>>8&255};function c_(A,e,t){var r=0,n=0;if(t==="dbcs"){for(n=0;n!=e.length;++n)l_(this,e.charCodeAt(n),this.l+2*n);r=2*e.length}else if(t==="sbcs"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=e.length;++n)this[this.l+n]=e.charCodeAt(n)&255;r=e.length}else if(t==="hex"){for(;n<A;++n)this[this.l++]=parseInt(e.slice(2*n,2*n+2),16)||0;return this}else if(t==="utf16le"){var i=Math.min(this.l+A,this.length);for(n=0;n<Math.min(e.length,A);++n){var a=e.charCodeAt(n);this[this.l++]=a&255,this[this.l++]=a>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(A){case 1:r=1,this[this.l]=e&255;break;case 2:r=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:r=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:r=4,o_(this,e,this.l);break;case 8:if(r=8,t==="f"){i_(this,e,this.l);break}case 16:break;case-4:r=4,f_(this,e,this.l);break}return this.l+=r,this}function $B(A,e){var t=MB(this,this.l,A.length>>1);if(t!==A)throw new Error(e+"Expected "+A+" saw "+t);this.l+=A.length>>1}function nn(A,e){A.l=e,A.read_shift=Jo,A.chk=$B,A.write_shift=c_}function ii(A,e){A.l+=e}function EA(A){var e=qa(A);return nn(e,0),e}function Gr(){var A=[],e=qe?256:2048,t=function(f){var l=EA(f);return nn(l,0),l},r=t(e),n=function(){r&&(r.length>r.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&A.push(r),r=null)},i=function(f){return r&&f<r.length-r.l?r:(n(),r=t(Math.max(f+1,e)))},a=function(){return n(),pr(A)},s=function(f){n(),r=f,r.l==null&&(r.l=r.length),i(e)};return{next:i,push:s,end:a,_bufs:A}}function NA(A,e,t,r){var n=+e,i;if(!isNaN(n)){r||(r=n8[n].p||(t||[]).length||0),i=1+(n>=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var a=A.next(i);n<=127?a.write_shift(1,n):(a.write_shift(1,(n&127)+128),a.write_shift(1,n>>7));for(var s=0;s!=4;++s)if(r>=128)a.write_shift(1,(r&127)+128),r>>=7;else{a.write_shift(1,r);break}r>0&&bh(t)&&A.push(t)}}function Zo(A,e,t){var r=jr(A);if(e.s?(r.cRel&&(r.c+=e.s.c),r.rRel&&(r.r+=e.s.r)):(r.cRel&&(r.c+=e.c),r.rRel&&(r.r+=e.r)),!t||t.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function ag(A,e,t){var r=jr(A);return r.s=Zo(r.s,e.s,t),r.e=Zo(r.e,e.s,t),r}function $o(A,e){if(A.cRel&&A.c<0)for(A=jr(A);A.c<0;)A.c+=e>8?16384:256;if(A.rRel&&A.r<0)for(A=jr(A);A.r<0;)A.r+=e>8?1048576:e>5?65536:16384;var t=nt(A);return!A.cRel&&A.cRel!=null&&(t=d_(t)),!A.rRel&&A.rRel!=null&&(t=u_(t)),t}function wu(A,e){return A.s.r==0&&!A.s.rRel&&A.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!A.e.rRel?(A.s.cRel?"":"$")+Qr(A.s.c)+":"+(A.e.cRel?"":"$")+Qr(A.e.c):A.s.c==0&&!A.s.cRel&&A.e.c==(e.biff>=12?16383:255)&&!A.e.cRel?(A.s.rRel?"":"$")+vr(A.s.r)+":"+(A.e.rRel?"":"$")+vr(A.e.r):$o(A.s,e.biff)+":"+$o(A.e,e.biff)}function Qh(A){return parseInt(h_(A),10)-1}function vr(A){return""+(A+1)}function u_(A){return A.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function h_(A){return A.replace(/\$(\d+)$/,"$1")}function Sh(A){for(var e=g_(A),t=0,r=0;r!==e.length;++r)t=26*t+e.charCodeAt(r)-64;return t-1}function Qr(A){if(A<0)throw new Error("invalid column "+A);var e="";for(++A;A;A=Math.floor((A-1)/26))e=String.fromCharCode((A-1)%26+65)+e;return e}function d_(A){return A.replace(/^([A-Z])/,"$$$1")}function g_(A){return A.replace(/^\$([A-Z])/,"$1")}function p_(A){return A.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function ar(A){for(var e=0,t=0,r=0;r<A.length;++r){var n=A.charCodeAt(r);n>=48&&n<=57?e=10*e+(n-48):n>=65&&n<=90&&(t=26*t+(n-64))}return{c:t-1,r:e-1}}function nt(A){for(var e=A.c+1,t="";e;e=(e-1)/26|0)t=String.fromCharCode((e-1)%26+65)+t;return t+(A.r+1)}function fn(A){var e=A.indexOf(":");return e==-1?{s:ar(A),e:ar(A)}:{s:ar(A.slice(0,e)),e:ar(A.slice(e+1))}}function Wt(A,e){return typeof e>"u"||typeof e=="number"?Wt(A.s,A.e):(typeof A!="string"&&(A=nt(A)),typeof e!="string"&&(e=nt(e)),A==e?A:A+":"+e)}function wt(A){var e={s:{c:0,r:0},e:{c:0,r:0}},t=0,r=0,n=0,i=A.length;for(t=0;r<i&&!((n=A.charCodeAt(r)-64)<1||n>26);++r)t=26*t+n;for(e.s.c=--t,t=0;r<i&&!((n=A.charCodeAt(r)-48)<0||n>9);++r)t=10*t+n;if(e.s.r=--t,r===i||n!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++r,t=0;r!=i&&!((n=A.charCodeAt(r)-64)<1||n>26);++r)t=26*t+n;for(e.e.c=--t,t=0;r!=i&&!((n=A.charCodeAt(r)-48)<0||n>9);++r)t=10*t+n;return e.e.r=--t,e}function sg(A,e){var t=A.t=="d"&&e instanceof Date;if(A.z!=null)try{return A.w=Ba(A.z,t?Vr(e):e)}catch{}try{return A.w=Ba((A.XF||{}).numFmtId||(t?14:0),t?Vr(e):e)}catch{return""+e}}function Hi(A,e,t){return A==null||A.t==null||A.t=="z"?"":A.w!==void 0?A.w:(A.t=="d"&&!A.z&&t&&t.dateNF&&(A.z=t.dateNF),A.t=="e"?v0[A.v]||A.v:e==null?sg(A,A.v):sg(A,e))}function $a(A,e){var t=e&&e.sheet?e.sheet:"Sheet1",r={};return r[t]=A,{SheetNames:[t],Sheets:r}}function Aw(A,e,t){var r=t||{},n=A?Array.isArray(A):r.dense,i=A||(n?[]:{}),a=0,s=0;if(i&&r.origin!=null){if(typeof r.origin=="number")a=r.origin;else{var o=typeof r.origin=="string"?ar(r.origin):r.origin;a=o.r,s=o.c}i["!ref"]||(i["!ref"]="A1:A1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var l=wt(i["!ref"]);f.s.c=l.s.c,f.s.r=l.s.r,f.e.c=Math.max(f.e.c,l.e.c),f.e.r=Math.max(f.e.r,l.e.r),a==-1&&(f.e.r=a=l.e.r+1)}for(var d=0;d!=e.length;++d)if(e[d]){if(!Array.isArray(e[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var g=0;g!=e[d].length;++g)if(!(typeof e[d][g]>"u")){var u={v:e[d][g]},v=a+d,B=s+g;if(f.s.r>v&&(f.s.r=v),f.s.c>B&&(f.s.c=B),f.e.r<v&&(f.e.r=v),f.e.c<B&&(f.e.c=B),e[d][g]&&typeof e[d][g]=="object"&&!Array.isArray(e[d][g])&&!(e[d][g]instanceof Date))u=e[d][g];else if(Array.isArray(u.v)&&(u.f=e[d][g][1],u.v=u.v[0]),u.v===null)if(u.f)u.t="n";else if(r.nullError)u.t="e",u.v=0;else if(r.sheetStubs)u.t="z";else continue;else typeof u.v=="number"?u.t="n":typeof u.v=="boolean"?u.t="b":u.v instanceof Date?(u.z=r.dateNF||Qt[14],r.cellDates?(u.t="d",u.w=Ba(u.z,Vr(u.v))):(u.t="n",u.v=Vr(u.v),u.w=Ba(u.z,u.v))):u.t="s";if(n)i[v]||(i[v]=[]),i[v][B]&&i[v][B].z&&(u.z=i[v][B].z),i[v][B]=u;else{var x=nt({c:B,r:v});i[x]&&i[x].z&&(u.z=i[x].z),i[x]=u}}}return f.s.c<1e7&&(i["!ref"]=Wt(f)),i}function zs(A,e){return Aw(null,A,e)}function B_(A){return A.read_shift(4,"i")}function Rn(A,e){return e||(e=EA(4)),e.write_shift(4,A),e}function Sr(A){var e=A.read_shift(4);return e===0?"":A.read_shift(e,"dbcs")}function sr(A,e){var t=!1;return e==null&&(t=!0,e=EA(4+2*A.length)),e.write_shift(4,A.length),A.length>0&&e.write_shift(0,A,"dbcs"),t?e.slice(0,e.l):e}function w_(A){return{ich:A.read_shift(2),ifnt:A.read_shift(2)}}function v_(A,e){return e||(e=EA(4)),e.write_shift(2,0),e.write_shift(2,0),e}function Th(A,e){var t=A.l,r=A.read_shift(1),n=Sr(A),i=[],a={t:n,h:n};if((r&1)!==0){for(var s=A.read_shift(4),o=0;o!=s;++o)i.push(w_(A));a.r=i}else a.r=[{ich:0,ifnt:0}];return A.l=t+e,a}function m_(A,e){var t=!1;return e==null&&(t=!0,e=EA(15+4*A.t.length)),e.write_shift(1,0),sr(A.t,e),t?e.slice(0,e.l):e}var x_=Th;function C_(A,e){var t=!1;return e==null&&(t=!0,e=EA(23+4*A.t.length)),e.write_shift(1,1),sr(A.t,e),e.write_shift(4,1),v_({},e),t?e.slice(0,e.l):e}function yn(A){var e=A.read_shift(4),t=A.read_shift(2);return t+=A.read_shift(1)<<16,A.l++,{c:e,iStyleRef:t}}function As(A,e){return e==null&&(e=EA(8)),e.write_shift(-4,A.c),e.write_shift(3,A.iStyleRef||A.s),e.write_shift(1,0),e}function es(A){var e=A.read_shift(2);return e+=A.read_shift(1)<<16,A.l++,{c:-1,iStyleRef:e}}function ts(A,e){return e==null&&(e=EA(4)),e.write_shift(3,A.iStyleRef||A.s),e.write_shift(1,0),e}var F_=Sr,ew=sr;function Lh(A){var e=A.read_shift(4);return e===0||e===4294967295?"":A.read_shift(e,"dbcs")}function wl(A,e){var t=!1;return e==null&&(t=!0,e=EA(127)),e.write_shift(4,A.length>0?A.length:4294967295),A.length>0&&e.write_shift(0,A,"dbcs"),t?e.slice(0,e.l):e}var y_=Sr,sh=Lh,Ih=wl;function tw(A){var e=A.slice(A.l,A.l+4),t=e[0]&1,r=e[0]&2;A.l+=4;var n=r===0?Bl([0,0,0,0,e[0]&252,e[1],e[2],e[3]],0):Ra(e,0)>>2;return t?n/100:n}function rw(A,e){e==null&&(e=EA(4));var t=0,r=0,n=A*100;if(A==(A|0)&&A>=-536870912&&A<1<<29?r=1:n==(n|0)&&n>=-536870912&&n<1<<29&&(r=1,t=1),r)e.write_shift(-4,((t?n:A)<<2)+(t+2));else throw new Error("unsupported RkNumber "+A)}function nw(A){var e={s:{},e:{}};return e.s.r=A.read_shift(4),e.e.r=A.read_shift(4),e.s.c=A.read_shift(4),e.e.c=A.read_shift(4),e}function E_(A,e){return e||(e=EA(16)),e.write_shift(4,A.s.r),e.write_shift(4,A.e.r),e.write_shift(4,A.s.c),e.write_shift(4,A.e.c),e}var rs=nw,Ys=E_;function Js(A){if(A.length-A.l<8)throw"XLS Xnum Buffer underflow";return A.read_shift(8,"f")}function za(A,e){return(e||EA(8)).write_shift(8,A,"f")}function __(A){var e={},t=A.read_shift(1),r=t>>>1,n=A.read_shift(1),i=A.read_shift(2,"i"),a=A.read_shift(1),s=A.read_shift(1),o=A.read_shift(1);switch(A.l++,r){case 0:e.auto=1;break;case 1:e.index=n;var f=O_[n];f&&(e.rgb=wg(f));break;case 2:e.rgb=wg([a,s,o]);break;case 3:e.theme=n;break}return i!=0&&(e.tint=i>0?i/32767:i/32768),e}function vl(A,e){if(e||(e=EA(8)),!A||A.auto)return e.write_shift(4,0),e.write_shift(4,0),e;A.index!=null?(e.write_shift(1,2),e.write_shift(1,A.index)):A.theme!=null?(e.write_shift(1,6),e.write_shift(1,A.theme)):(e.write_shift(1,5),e.write_shift(1,0));var t=A.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),e.write_shift(2,t),!A.rgb||A.theme!=null)e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);else{var r=A.rgb||"FFFFFF";typeof r=="number"&&(r=("000000"+r.toString(16)).slice(-6)),e.write_shift(1,parseInt(r.slice(0,2),16)),e.write_shift(1,parseInt(r.slice(2,4),16)),e.write_shift(1,parseInt(r.slice(4,6),16)),e.write_shift(1,255)}return e}function U_(A){var e=A.read_shift(1);A.l++;var t={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return t}function b_(A,e){e||(e=EA(2));var t=(A.italic?2:0)|(A.strike?8:0)|(A.outline?16:0)|(A.shadow?32:0)|(A.condense?64:0)|(A.extend?128:0);return e.write_shift(1,t),e.write_shift(1,0),e}var iw=2,rn=3,Hf=11,ml=19,kf=64,Q_=65,S_=71,T_=4108,L_=4126,gr=80,og={1:{n:"CodePage",t:iw},2:{n:"Category",t:gr},3:{n:"PresentationFormat",t:gr},4:{n:"ByteCount",t:rn},5:{n:"LineCount",t:rn},6:{n:"ParagraphCount",t:rn},7:{n:"SlideCount",t:rn},8:{n:"NoteCount",t:rn},9:{n:"HiddenCount",t:rn},10:{n:"MultimediaClipCount",t:rn},11:{n:"ScaleCrop",t:Hf},12:{n:"HeadingPairs",t:T_},13:{n:"TitlesOfParts",t:L_},14:{n:"Manager",t:gr},15:{n:"Company",t:gr},16:{n:"LinksUpToDate",t:Hf},17:{n:"CharacterCount",t:rn},19:{n:"SharedDoc",t:Hf},22:{n:"HyperlinksChanged",t:Hf},23:{n:"AppVersion",t:rn,p:"version"},24:{n:"DigSig",t:Q_},26:{n:"ContentType",t:gr},27:{n:"ContentStatus",t:gr},28:{n:"Language",t:gr},29:{n:"Version",t:gr},255:{},2147483648:{n:"Locale",t:ml},2147483651:{n:"Behavior",t:ml},1919054434:{}},fg={1:{n:"CodePage",t:iw},2:{n:"Title",t:gr},3:{n:"Subject",t:gr},4:{n:"Author",t:gr},5:{n:"Keywords",t:gr},6:{n:"Comments",t:gr},7:{n:"Template",t:gr},8:{n:"LastAuthor",t:gr},9:{n:"RevNumber",t:gr},10:{n:"EditTime",t:kf},11:{n:"LastPrinted",t:kf},12:{n:"CreatedDate",t:kf},13:{n:"ModifiedDate",t:kf},14:{n:"PageCount",t:rn},15:{n:"WordCount",t:rn},16:{n:"CharCount",t:rn},17:{n:"Thumbnail",t:S_},18:{n:"Application",t:gr},19:{n:"DocSecurity",t:rn},255:{},2147483648:{n:"Locale",t:ml},2147483651:{n:"Behavior",t:ml},1919054434:{}};function I_(A){return A.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var N_=I_([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),O_=jr(N_),v0={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},D_={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Pf={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function aw(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function sw(A,e){var t=WE(D_),r=[],n;r[r.length]=Xt,r[r.length]=WA("Types",null,{xmlns:ir.CT,"xmlns:xsd":ir.xsd,"xmlns:xsi":ir.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(o){return WA("Default",null,{Extension:o[0],ContentType:o[1]})}));var i=function(o){A[o]&&A[o].length>0&&(n=A[o][0],r[r.length]=WA("Override",null,{PartName:(n[0]=="/"?"":"/")+n,ContentType:Pf[o][e.bookType]||Pf[o].xlsx}))},a=function(o){(A[o]||[]).forEach(function(f){r[r.length]=WA("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:Pf[o][e.bookType]||Pf[o].xlsx})})},s=function(o){(A[o]||[]).forEach(function(f){r[r.length]=WA("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:t[o][0]})})};return i("workbooks"),a("sheets"),a("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),a("metadata"),s("people"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var Xe={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function ow(A){var e=A.lastIndexOf("/");return A.slice(0,e+1)+"_rels/"+A.slice(e+1)+".rels"}function Ms(A){var e=[Xt,WA("Relationships",null,{xmlns:ir.RELS})];return mr(A["!id"]).forEach(function(t){e[e.length]=WA("Relationship",null,A["!id"][t])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function et(A,e,t,r,n,i){if(n||(n={}),A["!id"]||(A["!id"]={}),A["!idx"]||(A["!idx"]=1),e<0)for(e=A["!idx"];A["!id"]["rId"+e];++e);if(A["!idx"]=e+1,n.Id="rId"+e,n.Type=r,n.Target=t,[Xe.HLINK,Xe.XPATH,Xe.XMISS].indexOf(n.Type)>-1&&(n.TargetMode="External"),A["!id"][n.Id])throw new Error("Cannot rewrite rId "+e);return A["!id"][n.Id]=n,A[("/"+n.Target).replace("//","/")]=n,e}function H_(A){var e=[Xt];e.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
`),e.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var t=0;t<A.length;++t)e.push('  <manifest:file-entry manifest:full-path="'+A[t][0]+'" manifest:media-type="'+A[t][1]+`"/>
`);return e.push("</manifest:manifest>"),e.join("")}function lg(A,e,t){return['  <rdf:Description rdf:about="'+A+`">
`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+e+`"/>
`,`  </rdf:Description>
`].join("")}function k_(A,e){return['  <rdf:Description rdf:about="'+A+`">
`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+`"/>
`,`  </rdf:Description>
`].join("")}function P_(A){var e=[Xt];e.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var t=0;t!=A.length;++t)e.push(lg(A[t][0],A[t][1])),e.push(k_("",A[t][0]));return e.push(lg("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function fw(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+cl.version+"</meta:generator></office:meta></office:document-meta>"}var ja=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function vu(A,e,t,r,n){n[A]!=null||e==null||e===""||(n[A]=e,e=rt(e),r[r.length]=t?WA(A,e,t):Br(A,e))}function lw(A,e){var t=e||{},r=[Xt,WA("cp:coreProperties",null,{"xmlns:cp":ir.CORE_PROPS,"xmlns:dc":ir.dc,"xmlns:dcterms":ir.dcterms,"xmlns:dcmitype":ir.dcmitype,"xmlns:xsi":ir.xsi})],n={};if(!A&&!t.Props)return r.join("");A&&(A.CreatedDate!=null&&vu("dcterms:created",typeof A.CreatedDate=="string"?A.CreatedDate:ah(A.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},r,n),A.ModifiedDate!=null&&vu("dcterms:modified",typeof A.ModifiedDate=="string"?A.ModifiedDate:ah(A.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},r,n));for(var i=0;i!=ja.length;++i){var a=ja[i],s=t.Props&&t.Props[a[1]]!=null?t.Props[a[1]]:A?A[a[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&vu(a[0],s,null,r,n)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var Ks=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],cw=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function uw(A){var e=[],t=WA;return A||(A={}),A.Application="SheetJS",e[e.length]=Xt,e[e.length]=WA("Properties",null,{xmlns:ir.EXT_PROPS,"xmlns:vt":ir.vt}),Ks.forEach(function(r){if(A[r[1]]!==void 0){var n;switch(r[2]){case"string":n=rt(String(A[r[1]]));break;case"bool":n=A[r[1]]?"true":"false";break}n!==void 0&&(e[e.length]=t(r[0],n))}}),e[e.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(A.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=t("TitlesOfParts",t("vt:vector",A.SheetNames.map(function(r){return"<vt:lpstr>"+rt(r)+"</vt:lpstr>"}).join(""),{size:A.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function hw(A){var e=[Xt,WA("Properties",null,{xmlns:ir.CUST_PROPS,"xmlns:vt":ir.vt})];if(!A)return e.join("");var t=1;return mr(A).forEach(function(n){++t,e[e.length]=WA("property",r_(A[n]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:rt(n)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var cg={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function R_(A,e){var t=[];return mr(cg).map(function(r){for(var n=0;n<ja.length;++n)if(ja[n][1]==r)return ja[n];for(n=0;n<Ks.length;++n)if(Ks[n][1]==r)return Ks[n];throw r}).forEach(function(r){if(A[r[1]]!=null){var n=e&&e.Props&&e.Props[r[1]]!=null?e.Props[r[1]]:A[r[1]];switch(r[2]){case"date":n=new Date(n).toISOString().replace(/\.\d*Z/,"Z");break}typeof n=="number"?n=String(n):n===!0||n===!1?n=n?"1":"0":n instanceof Date&&(n=new Date(n).toISOString().replace(/\.\d*Z/,"")),t.push(Br(cg[r[1]]||r[1],n))}}),WA("DocumentProperties",t.join(""),{xmlns:an.o})}function M_(A,e){var t=["Worksheets","SheetNames"],r="CustomDocumentProperties",n=[];return A&&mr(A).forEach(function(i){if(Object.prototype.hasOwnProperty.call(A,i)){for(var a=0;a<ja.length;++a)if(i==ja[a][1])return;for(a=0;a<Ks.length;++a)if(i==Ks[a][1])return;for(a=0;a<t.length;++a)if(i==t[a])return;var s=A[i],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s=String(s),n.push(WA(Z2(i),s,{"dt:dt":o}))}}),e&&mr(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)&&!(A&&Object.prototype.hasOwnProperty.call(A,i))){var a=e[i],s="string";typeof a=="number"?(s="float",a=String(a)):a===!0||a===!1?(s="boolean",a=a?"1":"0"):a instanceof Date?(s="dateTime.tz",a=a.toISOString()):a=String(a),n.push(WA(Z2(i),a,{"dt:dt":s}))}}),"<"+r+' xmlns="'+an.o+'">'+n.join("")+"</"+r+">"}function K_(A){var e=typeof A=="string"?new Date(Date.parse(A)):A,t=e.getTime()/1e3+11644473600,r=t%Math.pow(2,32),n=(t-r)/Math.pow(2,32);r*=1e7,n*=1e7;var i=r/Math.pow(2,32)|0;i>0&&(r=r%Math.pow(2,32),n+=i);var a=EA(8);return a.write_shift(4,r),a.write_shift(4,n),a}function ug(A,e){var t=EA(4),r=EA(4);switch(t.write_shift(4,A==80?31:A),A){case 3:r.write_shift(-4,e);break;case 5:r=EA(8),r.write_shift(8,e,"f");break;case 11:r.write_shift(4,e?1:0);break;case 64:r=K_(e);break;case 31:case 80:for(r=EA(4+2*(e.length+1)+(e.length%2?0:2)),r.write_shift(4,e.length+1),r.write_shift(0,e,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+A+" "+e)}return pr([t,r])}var dw=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function G_(A){switch(typeof A){case"boolean":return 11;case"number":return(A|0)==A?3:5;case"string":return 31;case"object":if(A instanceof Date)return 64;break}return-1}function hg(A,e,t){var r=EA(8),n=[],i=[],a=8,s=0,o=EA(8),f=EA(8);if(o.write_shift(4,2),o.write_shift(4,1200),f.write_shift(4,1),i.push(o),n.push(f),a+=8+o.length,!e){f=EA(8),f.write_shift(4,0),n.unshift(f);var l=[EA(4)];for(l[0].write_shift(4,A.length),s=0;s<A.length;++s){var d=A[s][0];for(o=EA(8+2*(d.length+1)+(d.length%2?0:2)),o.write_shift(4,s+2),o.write_shift(4,d.length+1),o.write_shift(0,d,"dbcs");o.l!=o.length;)o.write_shift(1,0);l.push(o)}o=pr(l),i.unshift(o),a+=8+o.length}for(s=0;s<A.length;++s)if(!(e&&!e[A[s][0]])&&!(dw.indexOf(A[s][0])>-1||cw.indexOf(A[s][0])>-1)&&A[s][1]!=null){var g=A[s][1],u=0;if(e){u=+e[A[s][0]];var v=t[u];if(v.p=="version"&&typeof g=="string"){var B=g.split(".");g=(+B[0]<<16)+(+B[1]||0)}o=ug(v.t,g)}else{var x=G_(g);x==-1&&(x=31,g=String(g)),o=ug(x,g)}i.push(o),f=EA(8),f.write_shift(4,e?u:2+s),n.push(f),a+=8+o.length}var F=8*(i.length+1);for(s=0;s<i.length;++s)n[s].write_shift(4,F),F+=i[s].length;return r.write_shift(4,a),r.write_shift(4,i.length),pr([r].concat(n).concat(i))}function dg(A,e,t,r,n,i){var a=EA(n?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,at.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,n?2:1),a.write_shift(16,e,"hex"),a.write_shift(4,n?68:48);var o=hg(A,t,r);if(s.push(o),n){var f=hg(n,null,null);a.write_shift(16,i,"hex"),a.write_shift(4,68+o.length),s.push(f)}return pr(s)}function V_(A,e){e||(e=EA(A));for(var t=0;t<A;++t)e.write_shift(1,0);return e}function j_(A,e){return A.read_shift(e)===1}function Hr(A,e){return e||(e=EA(2)),e.write_shift(2,+!!A),e}function gw(A){return A.read_shift(2,"u")}function vn(A,e){return e||(e=EA(2)),e.write_shift(2,A),e}function pw(A,e,t){return t||(t=EA(2)),t.write_shift(1,e=="e"?+A:+!!A),t.write_shift(1,e=="e"?1:0),t}function Bw(A,e,t){var r=A.read_shift(t&&t.biff>=12?2:1),n="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var i=A.read_shift(1);i&&(n="dbcs-cont")}else t.biff==12&&(n="wstr");t.biff>=2&&t.biff<=5&&(n="cpstr");var a=r?A.read_shift(r,n):"";return a}function W_(A){var e=A.t||"",t=EA(3);t.write_shift(2,e.length),t.write_shift(1,1);var r=EA(2*e.length);r.write_shift(2*e.length,e,"utf16le");var n=[t,r];return pr(n)}function X_(A,e,t){var r;if(t){if(t.biff>=2&&t.biff<=5)return A.read_shift(e,"cpstr");if(t.biff>=12)return A.read_shift(e,"dbcs-cont")}var n=A.read_shift(1);return n===0?r=A.read_shift(e,"sbcs-cont"):r=A.read_shift(e,"dbcs-cont"),r}function q_(A,e,t){var r=A.read_shift(t&&t.biff==2?1:2);return r===0?(A.l++,""):X_(A,r,t)}function z_(A,e,t){if(t.biff>5)return q_(A,e,t);var r=A.read_shift(1);return r===0?(A.l++,""):A.read_shift(r,t.biff<=4||!A.lens?"cpstr":"sbcs-cont")}function ww(A,e,t){return t||(t=EA(3+2*A.length)),t.write_shift(2,A.length),t.write_shift(1,1),t.write_shift(31,A,"utf16le"),t}function gg(A,e){e||(e=EA(6+A.length*2)),e.write_shift(4,1+A.length);for(var t=0;t<A.length;++t)e.write_shift(2,A.charCodeAt(t));return e.write_shift(2,0),e}function Y_(A){var e=EA(512),t=0,r=A.Target;r.slice(0,7)=="file://"&&(r=r.slice(7));var n=r.indexOf("#"),i=n>-1?31:23;switch(r.charAt(0)){case"#":i=28;break;case".":i&=-3;break}e.write_shift(4,2),e.write_shift(4,i);var a=[8,6815827,6619237,4849780,83];for(t=0;t<a.length;++t)e.write_shift(4,a[t]);if(i==28)r=r.slice(1),gg(r,e);else if(i&2){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<a.length;++t)e.write_shift(1,parseInt(a[t],16));var s=n>-1?r.slice(0,n):r;for(e.write_shift(4,2*(s.length+1)),t=0;t<s.length;++t)e.write_shift(2,s.charCodeAt(t));e.write_shift(2,0),i&8&&gg(n>-1?r.slice(n+1):"",e)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<a.length;++t)e.write_shift(1,parseInt(a[t],16));for(var o=0;r.slice(o*3,o*3+3)=="../"||r.slice(o*3,o*3+3)=="..\\";)++o;for(e.write_shift(2,o),e.write_shift(4,r.length-3*o+1),t=0;t<r.length-3*o;++t)e.write_shift(1,r.charCodeAt(t+3*o)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),t=0;t<6;++t)e.write_shift(4,0)}return e.slice(0,e.l)}function Ya(A,e,t,r){return r||(r=EA(6)),r.write_shift(2,A),r.write_shift(2,e),r.write_shift(2,t||0),r}function J_(A,e,t){var r=t.biff>8?4:2,n=A.read_shift(r),i=A.read_shift(r,"i"),a=A.read_shift(r,"i");return[n,i,a]}function Z_(A){var e=A.read_shift(2),t=A.read_shift(2),r=A.read_shift(2),n=A.read_shift(2);return{s:{c:r,r:e},e:{c:n,r:t}}}function vw(A,e){return e||(e=EA(8)),e.write_shift(2,A.s.r),e.write_shift(2,A.e.r),e.write_shift(2,A.s.c),e.write_shift(2,A.e.c),e}function Nh(A,e,t){var r=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":r=1280,n=8;break;case"biff4":r=4,n=6;break;case"biff3":r=3,n=6;break;case"biff2":r=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=EA(n);return i.write_shift(2,r),i.write_shift(2,e),n>4&&i.write_shift(2,29282),n>6&&i.write_shift(2,1997),n>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function $_(A,e){var t=!e||e.biff==8,r=EA(t?112:54);for(r.write_shift(e.biff==8?2:1,7),t&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(t?0:536870912));r.l<r.length;)r.write_shift(1,t?0:32);return r}function AU(A,e){var t=!e||e.biff>=8?2:1,r=EA(8+t*A.name.length);r.write_shift(4,A.pos),r.write_shift(1,A.hs||0),r.write_shift(1,A.dt),r.write_shift(1,A.name.length),e.biff>=8&&r.write_shift(1,1),r.write_shift(t*A.name.length,A.name,e.biff<8?"sbcs":"utf16le");var n=r.slice(0,r.l);return n.l=r.l,n}function eU(A,e){var t=EA(8);t.write_shift(4,A.Count),t.write_shift(4,A.Unique);for(var r=[],n=0;n<A.length;++n)r[n]=W_(A[n]);var i=pr([t].concat(r));return i.parts=[t.length].concat(r.map(function(a){return a.length})),i}function tU(){var A=EA(18);return A.write_shift(2,0),A.write_shift(2,0),A.write_shift(2,29280),A.write_shift(2,17600),A.write_shift(2,56),A.write_shift(2,0),A.write_shift(2,0),A.write_shift(2,1),A.write_shift(2,500),A}function rU(A){var e=EA(18),t=1718;return A&&A.RTL&&(t|=64),e.write_shift(2,t),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function nU(A,e){var t=A.name||"Arial",r=e&&e.biff==5,n=r?15+t.length:16+2*t.length,i=EA(n);return i.write_shift(2,A.sz*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,t.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*t.length,t,r?"sbcs":"utf16le"),i}function iU(A,e,t,r){var n=EA(10);return Ya(A,e,r,n),n.write_shift(4,t),n}function aU(A,e,t,r,n){var i=!n||n.biff==8,a=EA(8+ +i+(1+i)*t.length);return Ya(A,e,r,a),a.write_shift(2,t.length),i&&a.write_shift(1,1),a.write_shift((1+i)*t.length,t,i?"utf16le":"sbcs"),a}function sU(A,e,t,r){var n=t&&t.biff==5;r||(r=EA(n?3+e.length:5+2*e.length)),r.write_shift(2,A),r.write_shift(n?1:2,e.length),n||r.write_shift(1,1),r.write_shift((n?1:2)*e.length,e,n?"sbcs":"utf16le");var i=r.length>r.l?r.slice(0,r.l):r;return i.l==null&&(i.l=i.length),i}function oU(A,e){var t=e.biff==8||!e.biff?4:2,r=EA(2*t+6);return r.write_shift(t,A.s.r),r.write_shift(t,A.e.r+1),r.write_shift(2,A.s.c),r.write_shift(2,A.e.c+1),r.write_shift(2,0),r}function pg(A,e,t,r){var n=t&&t.biff==5;r||(r=EA(n?16:20)),r.write_shift(2,0),A.style?(r.write_shift(2,A.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,A.numFmtId||0),r.write_shift(2,e<<4));var i=0;return A.numFmtId>0&&n&&(i|=1024),r.write_shift(4,i),r.write_shift(4,0),n||r.write_shift(4,0),r.write_shift(2,0),r}function fU(A){var e=EA(8);return e.write_shift(4,0),e.write_shift(2,0),e.write_shift(2,0),e}function lU(A,e,t,r,n,i){var a=EA(8);return Ya(A,e,r,a),pw(t,i,a),a}function cU(A,e,t,r){var n=EA(14);return Ya(A,e,r,n),za(t,n),n}function uU(A,e,t){if(t.biff<8)return hU(A,e,t);for(var r=[],n=A.l+e,i=A.read_shift(t.biff>8?4:2);i--!==0;)r.push(J_(A,t.biff>8?12:6,t));if(A.l!=n)throw new Error("Bad ExternSheet: "+A.l+" != "+n);return r}function hU(A,e,t){A[A.l+1]==3&&A[A.l]++;var r=Bw(A,e,t);return r.charCodeAt(0)==3?r.slice(1):r}function dU(A){var e=EA(2+A.length*8);e.write_shift(2,A.length);for(var t=0;t<A.length;++t)vw(A[t],e);return e}function gU(A){var e=EA(24),t=ar(A[0]);e.write_shift(2,t.r),e.write_shift(2,t.r),e.write_shift(2,t.c),e.write_shift(2,t.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)e.write_shift(1,parseInt(r[n],16));return pr([e,Y_(A[1])])}function pU(A){var e=A[1].Tooltip,t=EA(10+2*(e.length+1));t.write_shift(2,2048);var r=ar(A[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function BU(A){return A||(A=EA(4)),A.write_shift(2,1),A.write_shift(2,1),A}function wU(A,e,t){if(!t.cellStyles)return ii(A,e);var r=t&&t.biff>=12?4:2,n=A.read_shift(r),i=A.read_shift(r),a=A.read_shift(r),s=A.read_shift(r),o=A.read_shift(2);r==2&&(A.l+=2);var f={s:n,e:i,w:a,ixfe:s,flags:o};return(t.biff>=5||!t.biff)&&(f.level=o>>8&7),f}function vU(A,e){var t=EA(12);t.write_shift(2,e),t.write_shift(2,e),t.write_shift(2,A.width*256),t.write_shift(2,0);var r=0;return A.hidden&&(r|=1),t.write_shift(1,r),r=A.level||0,t.write_shift(1,r),t.write_shift(2,0),t}function mU(A){for(var e=EA(2*A),t=0;t<A;++t)e.write_shift(2,t+1);return e}function xU(A,e,t){var r=EA(15);return x0(r,A,e),r.write_shift(8,t,"f"),r}function CU(A,e,t){var r=EA(9);return x0(r,A,e),r.write_shift(2,t),r}var FU=(function(){var A={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=Fh({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(s,o){var f=[],l=qa(1);switch(o.type){case"base64":l=kn(Di(s));break;case"binary":l=kn(s);break;case"buffer":case"array":l=s;break}nn(l,0);var d=l.read_shift(1),g=!!(d&136),u=!1,v=!1;switch(d){case 2:break;case 3:break;case 48:u=!0,g=!0;break;case 49:u=!0,g=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var B=0,x=521;d==2&&(B=l.read_shift(2)),l.l+=3,d!=2&&(B=l.read_shift(4)),B>1048576&&(B=1e6),d!=2&&(x=l.read_shift(2));var F=l.read_shift(2),_=o.codepage||1252;d!=2&&(l.l+=16,l.read_shift(1),l[l.l]!==0&&(_=A[l[l.l]]),l.l+=1,l.l+=2),v&&(l.l+=36);for(var I=[],L={},q=Math.min(l.length,d==2?521:x-10-(u?264:0)),rA=v?32:11;l.l<q&&l[l.l]!=13;)switch(L={},L.name=ul.utils.decode(_,l.slice(l.l,l.l+rA)).replace(/[\u0000\r\n].*$/g,""),l.l+=rA,L.type=String.fromCharCode(l.read_shift(1)),d!=2&&!v&&(L.offset=l.read_shift(4)),L.len=l.read_shift(1),d==2&&(L.offset=l.read_shift(2)),L.dec=l.read_shift(1),L.name.length&&I.push(L),d!=2&&(l.l+=v?13:14),L.type){case"B":(!u||L.len!=8)&&o.WTF&&console.log("Skipping "+L.name+":"+L.type);break;case"G":case"P":o.WTF&&console.log("Skipping "+L.name+":"+L.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+L.type)}if(l[l.l]!==13&&(l.l=x-1),l.read_shift(1)!==13)throw new Error("DBF Terminator not found "+l.l+" "+l[l.l]);l.l=x;var M=0,R=0;for(f[0]=[],R=0;R!=I.length;++R)f[0][R]=I[R].name;for(;B-- >0;){if(l[l.l]===42){l.l+=F;continue}for(++l.l,f[++M]=[],R=0,R=0;R!=I.length;++R){var E=l.slice(l.l,l.l+I[R].len);l.l+=I[R].len,nn(E,0);var X=ul.utils.decode(_,E);switch(I[R].type){case"C":X.trim().length&&(f[M][R]=X.replace(/\s+$/,""));break;case"D":X.length===8?f[M][R]=new Date(+X.slice(0,4),+X.slice(4,6)-1,+X.slice(6,8)):f[M][R]=X;break;case"F":f[M][R]=parseFloat(X.trim());break;case"+":case"I":f[M][R]=v?E.read_shift(-4,"i")^2147483648:E.read_shift(4,"i");break;case"L":switch(X.trim().toUpperCase()){case"Y":case"T":f[M][R]=!0;break;case"N":case"F":f[M][R]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+X+"|")}break;case"M":if(!g)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));f[M][R]="##MEMO##"+(v?parseInt(X.trim(),10):E.read_shift(4));break;case"N":X=X.replace(/\u0000/g,"").trim(),X&&X!="."&&(f[M][R]=+X||0);break;case"@":f[M][R]=new Date(E.read_shift(-8,"f")-621356832e5);break;case"T":f[M][R]=new Date((E.read_shift(4)-2440588)*864e5+E.read_shift(4));break;case"Y":f[M][R]=E.read_shift(4,"i")/1e4+E.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":f[M][R]=-E.read_shift(-8,"f");break;case"B":if(u&&I[R].len==8){f[M][R]=E.read_shift(8,"f");break}case"G":case"P":E.l+=I[R].len;break;case"0":if(I[R].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+I[R].type)}}}if(d!=2&&l.l<l.length&&l[l.l++]!=26)throw new Error("DBF EOF Marker missing "+(l.l-1)+" of "+l.length+" "+l[l.l-1].toString(16));return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),o.DBF=I,f}function r(s,o){var f=o||{};f.dateNF||(f.dateNF="yyyymmdd");var l=zs(t(s,f),f);return l["!cols"]=f.DBF.map(function(d){return{wch:d.len,DBF:d}}),delete f.DBF,l}function n(s,o){try{return $a(r(s,o),o)}catch(f){if(o&&o.WTF)throw f}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function a(s,o){var f=o||{};if(+f.codepage>=0&&a0(+f.codepage),f.type=="string")throw new Error("Cannot write DBF to JS string");var l=Gr(),d=El(s,{header:1,raw:!0,cellDates:!0}),g=d[0],u=d.slice(1),v=s["!cols"]||[],B=0,x=0,F=0,_=1;for(B=0;B<g.length;++B){if(((v[B]||{}).DBF||{}).name){g[B]=v[B].DBF.name,++F;continue}if(g[B]!=null){if(++F,typeof g[B]=="number"&&(g[B]=g[B].toString(10)),typeof g[B]!="string")throw new Error("DBF Invalid column name "+g[B]+" |"+typeof g[B]+"|");if(g.indexOf(g[B])!==B){for(x=0;x<1024;++x)if(g.indexOf(g[B]+"_"+x)==-1){g[B]+="_"+x;break}}}}var I=wt(s["!ref"]),L=[],q=[],rA=[];for(B=0;B<=I.e.c-I.s.c;++B){var M="",R="",E=0,X=[];for(x=0;x<u.length;++x)u[x][B]!=null&&X.push(u[x][B]);if(X.length==0||g[B]==null){L[B]="?";continue}for(x=0;x<X.length;++x){switch(typeof X[x]){case"number":R="B";break;case"string":R="C";break;case"boolean":R="L";break;case"object":R=X[x]instanceof Date?"D":"C";break;default:R="C"}E=Math.max(E,String(X[x]).length),M=M&&M!=R?"C":R}E>250&&(E=250),R=((v[B]||{}).DBF||{}).type,R=="C"&&v[B].DBF.len>E&&(E=v[B].DBF.len),M=="B"&&R=="N"&&(M="N",rA[B]=v[B].DBF.dec,E=v[B].DBF.len),q[B]=M=="C"||R=="N"?E:i[M]||0,_+=q[B],L[B]=M}var y=l.next(32);for(y.write_shift(4,318902576),y.write_shift(4,u.length),y.write_shift(2,296+32*F),y.write_shift(2,_),B=0;B<4;++B)y.write_shift(4,0);for(y.write_shift(4,0|(+e[xB]||3)<<8),B=0,x=0;B<g.length;++B)if(g[B]!=null){var T=l.next(32),P=(g[B].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);T.write_shift(1,P,"sbcs"),T.write_shift(1,L[B]=="?"?"C":L[B],"sbcs"),T.write_shift(4,x),T.write_shift(1,q[B]||i[L[B]]||0),T.write_shift(1,rA[B]||0),T.write_shift(1,2),T.write_shift(4,0),T.write_shift(1,0),T.write_shift(4,0),T.write_shift(4,0),x+=q[B]||i[L[B]]||0}var eA=l.next(264);for(eA.write_shift(4,13),B=0;B<65;++B)eA.write_shift(4,0);for(B=0;B<u.length;++B){var sA=l.next(_);for(sA.write_shift(1,0),x=0;x<g.length;++x)if(g[x]!=null)switch(L[x]){case"L":sA.write_shift(1,u[B][x]==null?63:u[B][x]?84:70);break;case"B":sA.write_shift(8,u[B][x]||0,"f");break;case"N":var wA="0";for(typeof u[B][x]=="number"&&(wA=u[B][x].toFixed(rA[x]||0)),F=0;F<q[x]-wA.length;++F)sA.write_shift(1,32);sA.write_shift(1,wA,"sbcs");break;case"D":u[B][x]?(sA.write_shift(4,("0000"+u[B][x].getFullYear()).slice(-4),"sbcs"),sA.write_shift(2,("00"+(u[B][x].getMonth()+1)).slice(-2),"sbcs"),sA.write_shift(2,("00"+u[B][x].getDate()).slice(-2),"sbcs")):sA.write_shift(8,"00000000","sbcs");break;case"C":var gA=String(u[B][x]!=null?u[B][x]:"").slice(0,q[x]);for(sA.write_shift(1,gA,"sbcs"),F=0;F<q[x]-gA.length;++F)sA.write_shift(1,32);break}}return l.next(1).write_shift(1,26),l.end()}return{to_workbook:n,to_sheet:r,from_sheet:a}})(),yU=(function(){var A={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+mr(A).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(g,u){var v=A[u];return typeof v=="number"?R2(v):v},r=function(g,u,v){var B=u.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return B==59?g:R2(B)};A["|"]=254;function n(g,u){switch(u.type){case"base64":return i(Di(g),u);case"binary":return i(g,u);case"buffer":return i(qe&&Buffer.isBuffer(g)?g.toString("binary"):p0(g),u);case"array":return i(Kl(g),u)}throw new Error("Unrecognized type "+u.type)}function i(g,u){var v=g.split(/[\n\r]+/),B=-1,x=-1,F=0,_=0,I=[],L=[],q=null,rA={},M=[],R=[],E=[],X=0,y;for(+u.codepage>=0&&a0(+u.codepage);F!==v.length;++F){X=0;var T=v[F].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(e,t),P=T.replace(/;;/g,"\0").split(";").map(function(N){return N.replace(/\u0000/g,";")}),eA=P[0],sA;if(T.length>0)switch(eA){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":P[1].charAt(0)=="P"&&L.push(T.slice(3).replace(/;;/g,";"));break;case"C":var wA=!1,gA=!1,hA=!1,CA=!1,IA=-1,_A=-1;for(_=1;_<P.length;++_)switch(P[_].charAt(0)){case"A":break;case"X":x=parseInt(P[_].slice(1))-1,gA=!0;break;case"Y":for(B=parseInt(P[_].slice(1))-1,gA||(x=0),y=I.length;y<=B;++y)I[y]=[];break;case"K":sA=P[_].slice(1),sA.charAt(0)==='"'?sA=sA.slice(1,sA.length-1):sA==="TRUE"?sA=!0:sA==="FALSE"?sA=!1:isNaN(Ii(sA))?isNaN(o0(sA).getDate())||(sA=kr(sA)):(sA=Ii(sA),q!==null&&IB(q)&&(sA=HB(sA))),wA=!0;break;case"E":CA=!0;var m=Cb(P[_].slice(1),{r:B,c:x});I[B][x]=[I[B][x],m];break;case"S":hA=!0,I[B][x]=[I[B][x],"S5S"];break;case"G":break;case"R":IA=parseInt(P[_].slice(1))-1;break;case"C":_A=parseInt(P[_].slice(1))-1;break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}if(wA&&(I[B][x]&&I[B][x].length==2?I[B][x][0]=sA:I[B][x]=sA,q=null),hA){if(CA)throw new Error("SYLK shared formula cannot have own formula");var Q=IA>-1&&I[IA][_A];if(!Q||!Q[1])throw new Error("SYLK shared formula cannot find base");I[B][x][1]=Fb(Q[1],{r:B-IA,c:x-_A})}break;case"F":var U=0;for(_=1;_<P.length;++_)switch(P[_].charAt(0)){case"X":x=parseInt(P[_].slice(1))-1,++U;break;case"Y":for(B=parseInt(P[_].slice(1))-1,y=I.length;y<=B;++y)I[y]=[];break;case"M":X=parseInt(P[_].slice(1))/20;break;case"F":break;case"G":break;case"P":q=L[parseInt(P[_].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(E=P[_].slice(1).split(" "),y=parseInt(E[0],10);y<=parseInt(E[1],10);++y)X=parseInt(E[2],10),R[y-1]=X===0?{hidden:!0}:{wch:X},Oh(R[y-1]);break;case"C":x=parseInt(P[_].slice(1))-1,R[x]||(R[x]={});break;case"R":B=parseInt(P[_].slice(1))-1,M[B]||(M[B]={}),X>0?(M[B].hpt=X,M[B].hpx=yw(X)):X===0&&(M[B].hidden=!0);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}U<1&&(q=null);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}}return M.length>0&&(rA["!rows"]=M),R.length>0&&(rA["!cols"]=R),u&&u.sheetRows&&(I=I.slice(0,u.sheetRows)),[I,rA]}function a(g,u){var v=n(g,u),B=v[0],x=v[1],F=zs(B,u);return mr(x).forEach(function(_){F[_]=x[_]}),F}function s(g,u){return $a(a(g,u),u)}function o(g,u,v,B){var x="C;Y"+(v+1)+";X"+(B+1)+";K";switch(g.t){case"n":x+=g.v||0,g.f&&!g.F&&(x+=";E"+Hh(g.f,{r:v,c:B}));break;case"b":x+=g.v?"TRUE":"FALSE";break;case"e":x+=g.w||g.v;break;case"d":x+='"'+(g.w||g.v)+'"';break;case"s":x+='"'+g.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return x}function f(g,u){u.forEach(function(v,B){var x="F;W"+(B+1)+" "+(B+1)+" ";v.hidden?x+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=xl(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=Cl(v.wpx)),typeof v.wch=="number"&&(x+=Math.round(v.wch))),x.charAt(x.length-1)!=" "&&g.push(x)})}function l(g,u){u.forEach(function(v,B){var x="F;";v.hidden?x+="M0;":v.hpt?x+="M"+20*v.hpt+";":v.hpx&&(x+="M"+20*Fl(v.hpx)+";"),x.length>2&&g.push(x+"R"+(B+1))})}function d(g,u){var v=["ID;PWXL;N;E"],B=[],x=wt(g["!ref"]),F,_=Array.isArray(g),I=`\r
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),g["!cols"]&&f(v,g["!cols"]),g["!rows"]&&l(v,g["!rows"]),v.push("B;Y"+(x.e.r-x.s.r+1)+";X"+(x.e.c-x.s.c+1)+";D"+[x.s.c,x.s.r,x.e.c,x.e.r].join(" "));for(var L=x.s.r;L<=x.e.r;++L)for(var q=x.s.c;q<=x.e.c;++q){var rA=nt({r:L,c:q});F=_?(g[L]||[])[q]:g[rA],!(!F||F.v==null&&(!F.f||F.F))&&B.push(o(F,g,L,q))}return v.join(I)+I+B.join(I)+I+"E"+I}return{to_workbook:s,to_sheet:a,from_sheet:d}})(),EU=(function(){function A(i,a){switch(a.type){case"base64":return e(Di(i),a);case"binary":return e(i,a);case"buffer":return e(qe&&Buffer.isBuffer(i)?i.toString("binary"):p0(i),a);case"array":return e(Kl(i),a)}throw new Error("Unrecognized type "+a.type)}function e(i,a){for(var s=i.split(`
`),o=-1,f=-1,l=0,d=[];l!==s.length;++l){if(s[l].trim()==="BOT"){d[++o]=[],f=0;continue}if(!(o<0)){var g=s[l].trim().split(","),u=g[0],v=g[1];++l;for(var B=s[l]||"";(B.match(/["]/g)||[]).length&1&&l<s.length-1;)B+=`
`+s[++l];switch(B=B.trim(),+u){case-1:if(B==="BOT"){d[++o]=[],f=0;continue}else if(B!=="EOD")throw new Error("Unrecognized DIF special command "+B);break;case 0:B==="TRUE"?d[o][f]=!0:B==="FALSE"?d[o][f]=!1:isNaN(Ii(v))?isNaN(o0(v).getDate())?d[o][f]=v:d[o][f]=kr(v):d[o][f]=Ii(v),++f;break;case 1:B=B.slice(1,B.length-1),B=B.replace(/""/g,'"'),B&&B.match(/^=".*"$/)&&(B=B.slice(2,-1)),d[o][f++]=B!==""?B:null;break}if(B==="EOD")break}}return a&&a.sheetRows&&(d=d.slice(0,a.sheetRows)),d}function t(i,a){return zs(A(i,a),a)}function r(i,a){return $a(t(i,a),a)}var n=(function(){var i=function(o,f,l,d,g){o.push(f),o.push(l+","+d),o.push('"'+g.replace(/"/g,'""')+'"')},a=function(o,f,l,d){o.push(f+","+l),o.push(f==1?'"'+d.replace(/"/g,'""')+'"':d)};return function(o){var f=[],l=wt(o["!ref"]),d,g=Array.isArray(o);i(f,"TABLE",0,1,"sheetjs"),i(f,"VECTORS",0,l.e.r-l.s.r+1,""),i(f,"TUPLES",0,l.e.c-l.s.c+1,""),i(f,"DATA",0,0,"");for(var u=l.s.r;u<=l.e.r;++u){a(f,-1,0,"BOT");for(var v=l.s.c;v<=l.e.c;++v){var B=nt({r:u,c:v});if(d=g?(o[u]||[])[v]:o[B],!d){a(f,1,0,"");continue}switch(d.t){case"n":var x=d.w;!x&&d.v!=null&&(x=d.v),x==null?d.f&&!d.F?a(f,1,0,"="+d.f):a(f,1,0,""):a(f,0,x,"V");break;case"b":a(f,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":a(f,1,0,isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=Ba(d.z||Qt[14],Vr(kr(d.v)))),a(f,0,d.w,"V");break;default:a(f,1,0,"")}}}a(f,-1,0,"EOD");var F=`\r
`,_=f.join(F);return _}})();return{to_workbook:r,to_sheet:t,from_sheet:n}})(),mw=(function(){function A(d){return d.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function e(d){return d.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(d,g){for(var u=d.split(`
`),v=-1,B=-1,x=0,F=[];x!==u.length;++x){var _=u[x].trim().split(":");if(_[0]==="cell"){var I=ar(_[1]);if(F.length<=I.r)for(v=F.length;v<=I.r;++v)F[v]||(F[v]=[]);switch(v=I.r,B=I.c,_[2]){case"t":F[v][B]=A(_[3]);break;case"v":F[v][B]=+_[3];break;case"vtf":var L=_[_.length-1];case"vtc":switch(_[3]){case"nl":F[v][B]=!!+_[4];break;default:F[v][B]=+_[4];break}_[2]=="vtf"&&(F[v][B]=[F[v][B],L])}}}return g&&g.sheetRows&&(F=F.slice(0,g.sheetRows)),F}function r(d,g){return zs(t(d,g),g)}function n(d,g){return $a(r(d,g),g)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),a=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),o="--SocialCalcSpreadsheetControlSave--";function f(d){if(!d||!d["!ref"])return"";for(var g=[],u=[],v,B="",x=fn(d["!ref"]),F=Array.isArray(d),_=x.s.r;_<=x.e.r;++_)for(var I=x.s.c;I<=x.e.c;++I)if(B=nt({r:_,c:I}),v=F?(d[_]||[])[I]:d[B],!(!v||v.v==null||v.t==="z")){switch(u=["cell",B,"t"],v.t){case"s":case"str":u.push(e(v.v));break;case"n":v.f?(u[2]="vtf",u[3]="n",u[4]=v.v,u[5]=e(v.f)):(u[2]="v",u[3]=v.v);break;case"b":u[2]="vt"+(v.f?"f":"c"),u[3]="nl",u[4]=v.v?"1":"0",u[5]=e(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var L=Vr(kr(v.v));u[2]="vtc",u[3]="nd",u[4]=""+L,u[5]=v.w||Ba(v.z||Qt[14],L);break;case"e":continue}g.push(u.join(":"))}return g.push("sheet:c:"+(x.e.c-x.s.c+1)+":r:"+(x.e.r-x.s.r+1)+":tvf:1"),g.push("valueformat:1:text-wiki"),g.join(`
`)}function l(d){return[i,a,s,a,f(d),o].join(`
`)}return{to_workbook:n,to_sheet:r,from_sheet:l}})(),_U=(function(){function A(l,d,g,u,v){v.raw?d[g][u]=l:l===""||(l==="TRUE"?d[g][u]=!0:l==="FALSE"?d[g][u]=!1:isNaN(Ii(l))?isNaN(o0(l).getDate())?d[g][u]=l:d[g][u]=kr(l):d[g][u]=Ii(l))}function e(l,d){var g=d||{},u=[];if(!l||l.length===0)return u;for(var v=l.split(/[\r\n]/),B=v.length-1;B>=0&&v[B].length===0;)--B;for(var x=10,F=0,_=0;_<=B;++_)F=v[_].indexOf(" "),F==-1?F=v[_].length:F++,x=Math.max(x,F);for(_=0;_<=B;++_){u[_]=[];var I=0;for(A(v[_].slice(0,x).trim(),u,_,I,g),I=1;I<=(v[_].length-x)/10+1;++I)A(v[_].slice(x+(I-1)*10,x+I*10).trim(),u,_,I,g)}return g.sheetRows&&(u=u.slice(0,g.sheetRows)),u}var t={44:",",9:"	",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function n(l){for(var d={},g=!1,u=0,v=0;u<l.length;++u)(v=l.charCodeAt(u))==34?g=!g:!g&&v in t&&(d[v]=(d[v]||0)+1);v=[];for(u in d)Object.prototype.hasOwnProperty.call(d,u)&&v.push([d[u],u]);if(!v.length){d=r;for(u in d)Object.prototype.hasOwnProperty.call(d,u)&&v.push([d[u],u])}return v.sort(function(B,x){return B[0]-x[0]||r[B[1]]-r[x[1]]}),t[v.pop()[1]]||44}function i(l,d){var g=d||{},u="",v=g.dense?[]:{},B={s:{c:0,r:0},e:{c:0,r:0}};l.slice(0,4)=="sep="?l.charCodeAt(5)==13&&l.charCodeAt(6)==10?(u=l.charAt(4),l=l.slice(7)):l.charCodeAt(5)==13||l.charCodeAt(5)==10?(u=l.charAt(4),l=l.slice(6)):u=n(l.slice(0,1024)):g&&g.FS?u=g.FS:u=n(l.slice(0,1024));var x=0,F=0,_=0,I=0,L=0,q=u.charCodeAt(0),rA=!1,M=0,R=l.charCodeAt(0);l=l.replace(/\r\n/mg,`
`);var E=g.dateNF!=null?KE(g.dateNF):null;function X(){var y=l.slice(I,L),T={};if(y.charAt(0)=='"'&&y.charAt(y.length-1)=='"'&&(y=y.slice(1,-1).replace(/""/g,'"')),y.length===0)T.t="z";else if(g.raw)T.t="s",T.v=y;else if(y.trim().length===0)T.t="s",T.v=y;else if(y.charCodeAt(0)==61)y.charCodeAt(1)==34&&y.charCodeAt(y.length-1)==34?(T.t="s",T.v=y.slice(2,-1).replace(/""/g,'"')):yb(y)?(T.t="n",T.f=y.slice(1)):(T.t="s",T.v=y);else if(y=="TRUE")T.t="b",T.v=!0;else if(y=="FALSE")T.t="b",T.v=!1;else if(!isNaN(_=Ii(y)))T.t="n",g.cellText!==!1&&(T.w=y),T.v=_;else if(!isNaN(o0(y).getDate())||E&&y.match(E)){T.z=g.dateNF||Qt[14];var P=0;E&&y.match(E)&&(y=GE(y,g.dateNF,y.match(E)||[]),P=1),g.cellDates?(T.t="d",T.v=kr(y,P)):(T.t="n",T.v=Vr(kr(y,P))),g.cellText!==!1&&(T.w=Ba(T.z,T.v instanceof Date?Vr(T.v):T.v)),g.cellNF||delete T.z}else T.t="s",T.v=y;if(T.t=="z"||(g.dense?(v[x]||(v[x]=[]),v[x][F]=T):v[nt({c:F,r:x})]=T),I=L+1,R=l.charCodeAt(I),B.e.c<F&&(B.e.c=F),B.e.r<x&&(B.e.r=x),M==q)++F;else if(F=0,++x,g.sheetRows&&g.sheetRows<=x)return!0}A:for(;L<l.length;++L)switch(M=l.charCodeAt(L)){case 34:R===34&&(rA=!rA);break;case q:case 10:case 13:if(!rA&&X())break A;break}return L-I>0&&X(),v["!ref"]=Wt(B),v}function a(l,d){return!(d&&d.PRN)||d.FS||l.slice(0,4)=="sep="||l.indexOf("	")>=0||l.indexOf(",")>=0||l.indexOf(";")>=0?i(l,d):zs(e(l,d),d)}function s(l,d){var g="",u=d.type=="string"?[0,0,0,0]:k8(l,d);switch(d.type){case"base64":g=Di(l);break;case"binary":g=l;break;case"buffer":d.codepage==65001?g=l.toString("utf8"):d.codepage&&typeof ul<"u"||(g=qe&&Buffer.isBuffer(l)?l.toString("binary"):p0(l));break;case"array":g=Kl(l);break;case"string":g=l;break;default:throw new Error("Unrecognized type "+d.type)}return u[0]==239&&u[1]==187&&u[2]==191?g=Yo(g.slice(3)):d.type!="string"&&d.type!="buffer"&&d.codepage==65001?g=Yo(g):d.type=="binary"&&typeof ul<"u",g.slice(0,19)=="socialcalc:version:"?mw.to_sheet(d.type=="string"?g:Yo(g),d):a(g,d)}function o(l,d){return $a(s(l,d),d)}function f(l){for(var d=[],g=wt(l["!ref"]),u,v=Array.isArray(l),B=g.s.r;B<=g.e.r;++B){for(var x=[],F=g.s.c;F<=g.e.c;++F){var _=nt({r:B,c:F});if(u=v?(l[B]||[])[F]:l[_],!u||u.v==null){x.push("          ");continue}for(var I=(u.w||(Hi(u),u.w)||"").slice(0,10);I.length<10;)I+=" ";x.push(I+(F===0?" ":""))}d.push(x.join(""))}return d.join(`
`)}return{to_workbook:o,to_sheet:s,from_sheet:f}})(),Bg=(function(){function A(m,Q,U){if(m){nn(m,m.l||0);for(var N=U.Enum||IA;m.l<m.length;){var j=m.read_shift(2),nA=N[j]||N[65535],fA=m.read_shift(2),oA=m.l+fA,lA=nA.f&&nA.f(m,fA,U);if(m.l=oA,Q(lA,nA,j))return}}}function e(m,Q){switch(Q.type){case"base64":return t(kn(Di(m)),Q);case"binary":return t(kn(m),Q);case"buffer":case"array":return t(m,Q)}throw"Unsupported type "+Q.type}function t(m,Q){if(!m)return m;var U=Q||{},N=U.dense?[]:{},j="Sheet1",nA="",fA=0,oA={},lA=[],SA=[],HA={s:{r:0,c:0},e:{r:0,c:0}},GA=U.sheetRows||0;if(m[2]==0&&(m[3]==8||m[3]==9)&&m.length>=16&&m[14]==5&&m[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(m[2]==2)U.Enum=IA,A(m,function(kA,te,LA){switch(LA){case 0:U.vers=kA,kA>=4096&&(U.qpro=!0);break;case 6:HA=kA;break;case 204:kA&&(nA=kA);break;case 222:nA=kA;break;case 15:case 51:U.qpro||(kA[1].v=kA[1].v.slice(1));case 13:case 14:case 16:LA==14&&(kA[2]&112)==112&&(kA[2]&15)>1&&(kA[2]&15)<15&&(kA[1].z=U.dateNF||Qt[14],U.cellDates&&(kA[1].t="d",kA[1].v=HB(kA[1].v))),U.qpro&&kA[3]>fA&&(N["!ref"]=Wt(HA),oA[j]=N,lA.push(j),N=U.dense?[]:{},HA={s:{r:0,c:0},e:{r:0,c:0}},fA=kA[3],j=nA||"Sheet"+(fA+1),nA="");var fe=U.dense?(N[kA[0].r]||[])[kA[0].c]:N[nt(kA[0])];if(fe){fe.t=kA[1].t,fe.v=kA[1].v,kA[1].z!=null&&(fe.z=kA[1].z),kA[1].f!=null&&(fe.f=kA[1].f);break}U.dense?(N[kA[0].r]||(N[kA[0].r]=[]),N[kA[0].r][kA[0].c]=kA[1]):N[nt(kA[0])]=kA[1];break}},U);else if(m[2]==26||m[2]==14)U.Enum=_A,m[2]==14&&(U.qpro=!0,m.l=0),A(m,function(kA,te,LA){switch(LA){case 204:j=kA;break;case 22:kA[1].v=kA[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(kA[3]>fA&&(N["!ref"]=Wt(HA),oA[j]=N,lA.push(j),N=U.dense?[]:{},HA={s:{r:0,c:0},e:{r:0,c:0}},fA=kA[3],j="Sheet"+(fA+1)),GA>0&&kA[0].r>=GA)break;U.dense?(N[kA[0].r]||(N[kA[0].r]=[]),N[kA[0].r][kA[0].c]=kA[1]):N[nt(kA[0])]=kA[1],HA.e.c<kA[0].c&&(HA.e.c=kA[0].c),HA.e.r<kA[0].r&&(HA.e.r=kA[0].r);break;case 27:kA[14e3]&&(SA[kA[14e3][0]]=kA[14e3][1]);break;case 1537:SA[kA[0]]=kA[1],kA[0]==fA&&(j=kA[1]);break}},U);else throw new Error("Unrecognized LOTUS BOF "+m[2]);if(N["!ref"]=Wt(HA),oA[nA||j]=N,lA.push(nA||j),!SA.length)return{SheetNames:lA,Sheets:oA};for(var VA={},W=[],RA=0;RA<SA.length;++RA)oA[lA[RA]]?(W.push(SA[RA]||lA[RA]),VA[SA[RA]]=oA[SA[RA]]||oA[lA[RA]]):(W.push(SA[RA]),VA[SA[RA]]={"!ref":"A1"});return{SheetNames:W,Sheets:VA}}function r(m,Q){var U=Q||{};if(+U.codepage>=0&&a0(+U.codepage),U.type=="string")throw new Error("Cannot write WK1 to JS string");var N=Gr(),j=wt(m["!ref"]),nA=Array.isArray(m),fA=[];XA(N,0,i(1030)),XA(N,6,o(j));for(var oA=Math.min(j.e.r,8191),lA=j.s.r;lA<=oA;++lA)for(var SA=vr(lA),HA=j.s.c;HA<=j.e.c;++HA){lA===j.s.r&&(fA[HA]=Qr(HA));var GA=fA[HA]+SA,VA=nA?(m[lA]||[])[HA]:m[GA];if(!(!VA||VA.t=="z"))if(VA.t=="n")(VA.v|0)==VA.v&&VA.v>=-32768&&VA.v<=32767?XA(N,13,u(lA,HA,VA.v)):XA(N,14,B(lA,HA,VA.v));else{var W=Hi(VA);XA(N,15,d(lA,HA,W.slice(0,239)))}}return XA(N,1),N.end()}function n(m,Q){var U=Q||{};if(+U.codepage>=0&&a0(+U.codepage),U.type=="string")throw new Error("Cannot write WK3 to JS string");var N=Gr();XA(N,0,a(m));for(var j=0,nA=0;j<m.SheetNames.length;++j)(m.Sheets[m.SheetNames[j]]||{})["!ref"]&&XA(N,27,CA(m.SheetNames[j],nA++));var fA=0;for(j=0;j<m.SheetNames.length;++j){var oA=m.Sheets[m.SheetNames[j]];if(!(!oA||!oA["!ref"])){for(var lA=wt(oA["!ref"]),SA=Array.isArray(oA),HA=[],GA=Math.min(lA.e.r,8191),VA=lA.s.r;VA<=GA;++VA)for(var W=vr(VA),RA=lA.s.c;RA<=lA.e.c;++RA){VA===lA.s.r&&(HA[RA]=Qr(RA));var kA=HA[RA]+W,te=SA?(oA[VA]||[])[RA]:oA[kA];if(!(!te||te.t=="z"))if(te.t=="n")XA(N,23,X(VA,RA,fA,te.v));else{var LA=Hi(te);XA(N,22,M(VA,RA,fA,LA.slice(0,239)))}}++fA}}return XA(N,1),N.end()}function i(m){var Q=EA(2);return Q.write_shift(2,m),Q}function a(m){var Q=EA(26);Q.write_shift(2,4096),Q.write_shift(2,4),Q.write_shift(4,0);for(var U=0,N=0,j=0,nA=0;nA<m.SheetNames.length;++nA){var fA=m.SheetNames[nA],oA=m.Sheets[fA];if(!(!oA||!oA["!ref"])){++j;var lA=fn(oA["!ref"]);U<lA.e.r&&(U=lA.e.r),N<lA.e.c&&(N=lA.e.c)}}return U>8191&&(U=8191),Q.write_shift(2,U),Q.write_shift(1,j),Q.write_shift(1,N),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(1,1),Q.write_shift(1,2),Q.write_shift(4,0),Q.write_shift(4,0),Q}function s(m,Q,U){var N={s:{c:0,r:0},e:{c:0,r:0}};return Q==8&&U.qpro?(N.s.c=m.read_shift(1),m.l++,N.s.r=m.read_shift(2),N.e.c=m.read_shift(1),m.l++,N.e.r=m.read_shift(2),N):(N.s.c=m.read_shift(2),N.s.r=m.read_shift(2),Q==12&&U.qpro&&(m.l+=2),N.e.c=m.read_shift(2),N.e.r=m.read_shift(2),Q==12&&U.qpro&&(m.l+=2),N.s.c==65535&&(N.s.c=N.e.c=N.s.r=N.e.r=0),N)}function o(m){var Q=EA(8);return Q.write_shift(2,m.s.c),Q.write_shift(2,m.s.r),Q.write_shift(2,m.e.c),Q.write_shift(2,m.e.r),Q}function f(m,Q,U){var N=[{c:0,r:0},{t:"n",v:0},0,0];return U.qpro&&U.vers!=20768?(N[0].c=m.read_shift(1),N[3]=m.read_shift(1),N[0].r=m.read_shift(2),m.l+=2):(N[2]=m.read_shift(1),N[0].c=m.read_shift(2),N[0].r=m.read_shift(2)),N}function l(m,Q,U){var N=m.l+Q,j=f(m,Q,U);if(j[1].t="s",U.vers==20768){m.l++;var nA=m.read_shift(1);return j[1].v=m.read_shift(nA,"utf8"),j}return U.qpro&&m.l++,j[1].v=m.read_shift(N-m.l,"cstr"),j}function d(m,Q,U){var N=EA(7+U.length);N.write_shift(1,255),N.write_shift(2,Q),N.write_shift(2,m),N.write_shift(1,39);for(var j=0;j<N.length;++j){var nA=U.charCodeAt(j);N.write_shift(1,nA>=128?95:nA)}return N.write_shift(1,0),N}function g(m,Q,U){var N=f(m,Q,U);return N[1].v=m.read_shift(2,"i"),N}function u(m,Q,U){var N=EA(7);return N.write_shift(1,255),N.write_shift(2,Q),N.write_shift(2,m),N.write_shift(2,U,"i"),N}function v(m,Q,U){var N=f(m,Q,U);return N[1].v=m.read_shift(8,"f"),N}function B(m,Q,U){var N=EA(13);return N.write_shift(1,255),N.write_shift(2,Q),N.write_shift(2,m),N.write_shift(8,U,"f"),N}function x(m,Q,U){var N=m.l+Q,j=f(m,Q,U);if(j[1].v=m.read_shift(8,"f"),U.qpro)m.l=N;else{var nA=m.read_shift(2);L(m.slice(m.l,m.l+nA),j),m.l+=nA}return j}function F(m,Q,U){var N=Q&32768;return Q&=-32769,Q=(N?m:0)+(Q>=8192?Q-16384:Q),(N?"":"$")+(U?Qr(Q):vr(Q))}var _={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},I=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function L(m,Q){nn(m,0);for(var U=[],N=0,j="",nA="",fA="",oA="";m.l<m.length;){var lA=m[m.l++];switch(lA){case 0:U.push(m.read_shift(8,"f"));break;case 1:nA=F(Q[0].c,m.read_shift(2),!0),j=F(Q[0].r,m.read_shift(2),!1),U.push(nA+j);break;case 2:{var SA=F(Q[0].c,m.read_shift(2),!0),HA=F(Q[0].r,m.read_shift(2),!1);nA=F(Q[0].c,m.read_shift(2),!0),j=F(Q[0].r,m.read_shift(2),!1),U.push(SA+HA+":"+nA+j)}break;case 3:if(m.l<m.length){console.error("WK1 premature formula end");return}break;case 4:U.push("("+U.pop()+")");break;case 5:U.push(m.read_shift(2));break;case 6:{for(var GA="";lA=m[m.l++];)GA+=String.fromCharCode(lA);U.push('"'+GA.replace(/"/g,'""')+'"')}break;case 8:U.push("-"+U.pop());break;case 23:U.push("+"+U.pop());break;case 22:U.push("NOT("+U.pop()+")");break;case 20:case 21:oA=U.pop(),fA=U.pop(),U.push(["AND","OR"][lA-20]+"("+fA+","+oA+")");break;default:if(lA<32&&I[lA])oA=U.pop(),fA=U.pop(),U.push(fA+I[lA]+oA);else if(_[lA]){if(N=_[lA][1],N==69&&(N=m[m.l++]),N>U.length){console.error("WK1 bad formula parse 0x"+lA.toString(16)+":|"+U.join("|")+"|");return}var VA=U.slice(-N);U.length-=N,U.push(_[lA][0]+"("+VA.join(",")+")")}else return lA<=7?console.error("WK1 invalid opcode "+lA.toString(16)):lA<=24?console.error("WK1 unsupported op "+lA.toString(16)):lA<=30?console.error("WK1 invalid opcode "+lA.toString(16)):lA<=115?console.error("WK1 unsupported function opcode "+lA.toString(16)):console.error("WK1 unrecognized opcode "+lA.toString(16))}}U.length==1?Q[1].f=""+U[0]:console.error("WK1 bad formula parse |"+U.join("|")+"|")}function q(m){var Q=[{c:0,r:0},{t:"n",v:0},0];return Q[0].r=m.read_shift(2),Q[3]=m[m.l++],Q[0].c=m[m.l++],Q}function rA(m,Q){var U=q(m);return U[1].t="s",U[1].v=m.read_shift(Q-4,"cstr"),U}function M(m,Q,U,N){var j=EA(6+N.length);j.write_shift(2,m),j.write_shift(1,U),j.write_shift(1,Q),j.write_shift(1,39);for(var nA=0;nA<N.length;++nA){var fA=N.charCodeAt(nA);j.write_shift(1,fA>=128?95:fA)}return j.write_shift(1,0),j}function R(m,Q){var U=q(m);U[1].v=m.read_shift(2);var N=U[1].v>>1;if(U[1].v&1)switch(N&7){case 0:N=(N>>3)*5e3;break;case 1:N=(N>>3)*500;break;case 2:N=(N>>3)/20;break;case 3:N=(N>>3)/200;break;case 4:N=(N>>3)/2e3;break;case 5:N=(N>>3)/2e4;break;case 6:N=(N>>3)/16;break;case 7:N=(N>>3)/64;break}return U[1].v=N,U}function E(m,Q){var U=q(m),N=m.read_shift(4),j=m.read_shift(4),nA=m.read_shift(2);if(nA==65535)return N===0&&j===3221225472?(U[1].t="e",U[1].v=15):N===0&&j===3489660928?(U[1].t="e",U[1].v=42):U[1].v=0,U;var fA=nA&32768;return nA=(nA&32767)-16446,U[1].v=(1-fA*2)*(j*Math.pow(2,nA+32)+N*Math.pow(2,nA)),U}function X(m,Q,U,N){var j=EA(14);if(j.write_shift(2,m),j.write_shift(1,U),j.write_shift(1,Q),N==0)return j.write_shift(4,0),j.write_shift(4,0),j.write_shift(2,65535),j;var nA=0,fA=0,oA=0,lA=0;return N<0&&(nA=1,N=-N),fA=Math.log2(N)|0,N/=Math.pow(2,fA-31),lA=N>>>0,(lA&2147483648)==0&&(N/=2,++fA,lA=N>>>0),N-=lA,lA|=2147483648,lA>>>=0,N*=Math.pow(2,32),oA=N>>>0,j.write_shift(4,oA),j.write_shift(4,lA),fA+=16383+(nA?32768:0),j.write_shift(2,fA),j}function y(m,Q){var U=E(m);return m.l+=Q-14,U}function T(m,Q){var U=q(m),N=m.read_shift(4);return U[1].v=N>>6,U}function P(m,Q){var U=q(m),N=m.read_shift(8,"f");return U[1].v=N,U}function eA(m,Q){var U=P(m);return m.l+=Q-10,U}function sA(m,Q){return m[m.l+Q-1]==0?m.read_shift(Q,"cstr"):""}function wA(m,Q){var U=m[m.l++];U>Q-1&&(U=Q-1);for(var N="";N.length<U;)N+=String.fromCharCode(m[m.l++]);return N}function gA(m,Q,U){if(!(!U.qpro||Q<21)){var N=m.read_shift(1);m.l+=17,m.l+=1,m.l+=2;var j=m.read_shift(Q-21,"cstr");return[N,j]}}function hA(m,Q){for(var U={},N=m.l+Q;m.l<N;){var j=m.read_shift(2);if(j==14e3){for(U[j]=[0,""],U[j][0]=m.read_shift(2);m[m.l];)U[j][1]+=String.fromCharCode(m[m.l]),m.l++;m.l++}}return U}function CA(m,Q){var U=EA(5+m.length);U.write_shift(2,14e3),U.write_shift(2,Q);for(var N=0;N<m.length;++N){var j=m.charCodeAt(N);U[U.l++]=j>127?95:j}return U[U.l++]=0,U}var IA={0:{n:"BOF",f:gw},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:g},14:{n:"NUMBER",f:v},15:{n:"LABEL",f:l},16:{n:"FORMULA",f:x},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:l},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:sA},222:{n:"SHEETNAMELP",f:wA},65535:{n:""}},_A={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:rA},23:{n:"NUMBER17",f:E},24:{n:"NUMBER18",f:R},25:{n:"FORMULA19",f:y},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:hA},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:T},38:{n:"??"},39:{n:"NUMBER27",f:P},40:{n:"FORMULA28",f:eA},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:sA},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:gA},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:n,to_workbook:e}})(),UU=/^\s|\s$|[\t\n\r]/;function xw(A,e){if(!e.bookSST)return"";var t=[Xt];t[t.length]=WA("sst",null,{xmlns:qs[0],count:A.Count,uniqueCount:A.Unique});for(var r=0;r!=A.length;++r)if(A[r]!=null){var n=A[r],i="<si>";n.r?i+=n.r:(i+="<t",n.t||(n.t=""),n.t.match(UU)&&(i+=' xml:space="preserve"'),i+=">"+rt(n.t)+"</t>"),i+="</si>",t[t.length]=i}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function bU(A){return[A.read_shift(4),A.read_shift(4)]}function QU(A,e){return e||(e=EA(8)),e.write_shift(4,A.Count),e.write_shift(4,A.Unique),e}var SU=m_;function TU(A){var e=Gr();NA(e,159,QU(A));for(var t=0;t<A.length;++t)NA(e,19,SU(A[t]));return NA(e,160),e.end()}function LU(A){for(var e=[],t=A.split(""),r=0;r<t.length;++r)e[r]=t[r].charCodeAt(0);return e}function Cw(A){var e=0,t,r=LU(A),n=r.length+1,i,a,s,o,f;for(t=qa(n),t[0]=r.length,i=1;i!=n;++i)t[i]=r[i-1];for(i=n-1;i>=0;--i)a=t[i],s=(e&16384)===0?0:1,o=e<<1&32767,f=s|o,e=f^a;return e^52811}var IU=(function(){function A(n,i){switch(i.type){case"base64":return e(Di(n),i);case"binary":return e(n,i);case"buffer":return e(qe&&Buffer.isBuffer(n)?n.toString("binary"):p0(n),i);case"array":return e(Kl(n),i)}throw new Error("Unrecognized type "+i.type)}function e(n,i){var a=i||{},s=a.dense?[]:{},o=n.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var f={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(l,d){Array.isArray(s)&&(s[d]=[]);for(var g=/\\\w+\b/g,u=0,v,B=-1;v=g.exec(l);){switch(v[0]){case"\\cell":var x=l.slice(u,g.lastIndex-v[0].length);if(x[0]==" "&&(x=x.slice(1)),++B,x.length){var F={v:x,t:"s"};Array.isArray(s)?s[d][B]=F:s[nt({r:d,c:B})]=F}break}u=g.lastIndex}B>f.e.c&&(f.e.c=B)}),s["!ref"]=Wt(f),s}function t(n,i){return $a(A(n,i),i)}function r(n){for(var i=["{\\rtf1\\ansi"],a=wt(n["!ref"]),s,o=Array.isArray(n),f=a.s.r;f<=a.e.r;++f){i.push("\\trowd\\trautofit1");for(var l=a.s.c;l<=a.e.c;++l)i.push("\\cellx"+(l+1));for(i.push("\\pard\\intbl"),l=a.s.c;l<=a.e.c;++l){var d=nt({r:f,c:l});s=o?(n[f]||[])[l]:n[d],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(Hi(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:t,to_sheet:A,from_sheet:r}})();function wg(A){for(var e=0,t=1;e!=3;++e)t=t*256+(A[e]>255?255:A[e]<0?0:A[e]);return t.toString(16).toUpperCase().slice(1)}var NU=6,Ni=NU;function xl(A){return Math.floor((A+Math.round(128/Ni)/256)*Ni)}function Cl(A){return Math.floor((A-5)/Ni*100+.5)/100}function oh(A){return Math.round((A*Ni+5)/Ni*256)/256}function Oh(A){A.width?(A.wpx=xl(A.width),A.wch=Cl(A.wpx),A.MDW=Ni):A.wpx?(A.wch=Cl(A.wpx),A.width=oh(A.wch),A.MDW=Ni):typeof A.wch=="number"&&(A.width=oh(A.wch),A.wpx=xl(A.width),A.MDW=Ni),A.customWidth&&delete A.customWidth}var OU=96,Fw=OU;function Fl(A){return A*96/Fw}function yw(A){return A*Fw/96}function DU(A){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var r=t[0];r<=t[1];++r)A[r]!=null&&(e[e.length]=WA("numFmt",null,{numFmtId:r,formatCode:rt(A[r])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=WA("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function HU(A){var e=[];return e[e.length]=WA("cellXfs",null),A.forEach(function(t){e[e.length]=WA("xf",null,t)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=WA("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function Ew(A,e){var t=[Xt,WA("styleSheet",null,{xmlns:qs[0],"xmlns:vt":ir.vt})],r;return A.SSF&&(r=DU(A.SSF))!=null&&(t[t.length]=r),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=HU(e.cellXfs))&&(t[t.length]=r),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function kU(A,e){var t=A.read_shift(2),r=Sr(A);return[t,r]}function PU(A,e,t){t||(t=EA(6+4*e.length)),t.write_shift(2,A),sr(e,t);var r=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),r}function RU(A,e,t){var r={};r.sz=A.read_shift(2)/20;var n=U_(A);n.fItalic&&(r.italic=1),n.fCondense&&(r.condense=1),n.fExtend&&(r.extend=1),n.fShadow&&(r.shadow=1),n.fOutline&&(r.outline=1),n.fStrikeout&&(r.strike=1);var i=A.read_shift(2);switch(i===700&&(r.bold=1),A.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=A.read_shift(1);a!=0&&(r.underline=a);var s=A.read_shift(1);s>0&&(r.family=s);var o=A.read_shift(1);switch(o>0&&(r.charset=o),A.l++,r.color=__(A),A.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Sr(A),r}function MU(A,e){e||(e=EA(153)),e.write_shift(2,A.sz*20),b_(A,e),e.write_shift(2,A.bold?700:400);var t=0;A.vertAlign=="superscript"?t=1:A.vertAlign=="subscript"&&(t=2),e.write_shift(2,t),e.write_shift(1,A.underline||0),e.write_shift(1,A.family||0),e.write_shift(1,A.charset||0),e.write_shift(1,0),vl(A.color,e);var r=0;return r=2,e.write_shift(1,r),sr(A.name,e),e.length>e.l?e.slice(0,e.l):e}var KU=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],mu,GU=ii;function vg(A,e){e||(e=EA(84)),mu||(mu=Fh(KU));var t=mu[A.patternType];t==null&&(t=40),e.write_shift(4,t);var r=0;if(t!=40)for(vl({auto:1},e),vl({auto:1},e);r<12;++r)e.write_shift(4,0);else{for(;r<4;++r)e.write_shift(4,0);for(;r<12;++r)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function VU(A,e){var t=A.l+e,r=A.read_shift(2),n=A.read_shift(2);return A.l=t,{ixfe:r,numFmtId:n}}function _w(A,e,t){t||(t=EA(16)),t.write_shift(2,e||0),t.write_shift(2,A.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var r=0;return t.write_shift(1,r),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function Io(A,e){return e||(e=EA(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var jU=ii;function WU(A,e){return e||(e=EA(51)),e.write_shift(1,0),Io(null,e),Io(null,e),Io(null,e),Io(null,e),Io(null,e),e.length>e.l?e.slice(0,e.l):e}function XU(A,e){return e||(e=EA(52)),e.write_shift(4,A.xfId),e.write_shift(2,1),e.write_shift(1,0),e.write_shift(1,0),wl(A.name||"",e),e.length>e.l?e.slice(0,e.l):e}function qU(A,e,t){var r=EA(2052);return r.write_shift(4,A),wl(e,r),wl(t,r),r.length>r.l?r.slice(0,r.l):r}function zU(A,e){if(e){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&++t}),t!=0&&(NA(A,615,Rn(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&NA(A,44,PU(n,e[n]))}),NA(A,616))}}function YU(A){var e=1;NA(A,611,Rn(e)),NA(A,43,MU({sz:12,color:{theme:1},name:"Calibri",family:2})),NA(A,612)}function JU(A){var e=2;NA(A,603,Rn(e)),NA(A,45,vg({patternType:"none"})),NA(A,45,vg({patternType:"gray125"})),NA(A,604)}function ZU(A){var e=1;NA(A,613,Rn(e)),NA(A,46,WU()),NA(A,614)}function $U(A){var e=1;NA(A,626,Rn(e)),NA(A,47,_w({numFmtId:0},65535)),NA(A,627)}function Ab(A,e){NA(A,617,Rn(e.length)),e.forEach(function(t){NA(A,47,_w(t,0))}),NA(A,618)}function eb(A){var e=1;NA(A,619,Rn(e)),NA(A,48,XU({xfId:0,name:"Normal"})),NA(A,620)}function tb(A){var e=0;NA(A,505,Rn(e)),NA(A,506)}function rb(A){var e=0;NA(A,508,qU(e,"TableStyleMedium9","PivotStyleMedium4")),NA(A,509)}function nb(A,e){var t=Gr();return NA(t,278),zU(t,A.SSF),YU(t),JU(t),ZU(t),$U(t),Ab(t,e.cellXfs),eb(t),tb(t),rb(t),NA(t,279),t.end()}function Uw(A,e){if(e&&e.themeXLSX)return e.themeXLSX;if(A&&typeof A.raw=="string")return A.raw;var t=[Xt];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function ib(A,e){return{flags:A.read_shift(4),version:A.read_shift(4),name:Sr(A)}}function ab(A){var e=EA(12+2*A.name.length);return e.write_shift(4,A.flags),e.write_shift(4,A.version),sr(A.name,e),e.slice(0,e.l)}function sb(A){for(var e=[],t=A.read_shift(4);t-- >0;)e.push([A.read_shift(4),A.read_shift(4)]);return e}function ob(A){var e=EA(4+8*A.length);e.write_shift(4,A.length);for(var t=0;t<A.length;++t)e.write_shift(4,A[t][0]),e.write_shift(4,A[t][1]);return e}function fb(A,e){var t=EA(8+2*e.length);return t.write_shift(4,A),sr(e,t),t.slice(0,t.l)}function lb(A){return A.l+=4,A.read_shift(4)!=0}function cb(A,e){var t=EA(8);return t.write_shift(4,A),t.write_shift(4,1),t}function ub(){var A=Gr();return NA(A,332),NA(A,334,Rn(1)),NA(A,335,ab({name:"XLDAPR",version:12e4,flags:3496657072})),NA(A,336),NA(A,339,fb(1,"XLDAPR")),NA(A,52),NA(A,35,Rn(514)),NA(A,4096,Rn(0)),NA(A,4097,vn(1)),NA(A,36),NA(A,53),NA(A,340),NA(A,337,cb(1)),NA(A,51,ob([[1,0]])),NA(A,338),NA(A,333),A.end()}function bw(){var A=[Xt];return A.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
  <metadataTypes count="1">
    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
  </metadataTypes>
  <futureMetadata name="XLDAPR" count="1">
    <bk>
      <extLst>
        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
        </ext>
      </extLst>
    </bk>
  </futureMetadata>
  <cellMetadata count="1">
    <bk>
      <rc t="1" v="0"/>
    </bk>
  </cellMetadata>
</metadata>`),A.join("")}function hb(A){var e={};e.i=A.read_shift(4);var t={};t.r=A.read_shift(4),t.c=A.read_shift(4),e.r=nt(t);var r=A.read_shift(1);return r&2&&(e.l="1"),r&8&&(e.a="1"),e}var Ns=1024;function Qw(A,e){for(var t=[21600,21600],r=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),n=[WA("xml",null,{"xmlns:v":an.v,"xmlns:o":an.o,"xmlns:x":an.x,"xmlns:mv":an.mv}).replace(/\/>/,">"),WA("o:shapelayout",WA("o:idmap",null,{"v:ext":"edit",data:A}),{"v:ext":"edit"}),WA("v:shapetype",[WA("v:stroke",null,{joinstyle:"miter"}),WA("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:r})];Ns<A*1e3;)Ns+=1e3;return e.forEach(function(i){var a=ar(i[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var o=s.type=="gradient"?WA("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,f=WA("v:fill",o,s),l={on:"t",obscured:"t"};++Ns,n=n.concat(["<v:shape"+l0({id:"_x0000_s"+Ns,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",f,WA("v:shadow",null,l),WA("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Br("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),Br("x:AutoFill","False"),Br("x:Row",String(a.r)),Br("x:Column",String(a.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),n.push("</xml>"),n.join("")}function Sw(A){var e=[Xt,WA("comments",null,{xmlns:qs[0]})],t=[];return e.push("<authors>"),A.forEach(function(r){r[1].forEach(function(n){var i=rt(n.a);t.indexOf(i)==-1&&(t.push(i),e.push("<author>"+i+"</author>")),n.T&&n.ID&&t.indexOf("tc="+n.ID)==-1&&(t.push("tc="+n.ID),e.push("<author>tc="+n.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),A.forEach(function(r){var n=0,i=[];if(r[1][0]&&r[1][0].T&&r[1][0].ID?n=t.indexOf("tc="+r[1][0].ID):r[1].forEach(function(o){o.a&&(n=t.indexOf(rt(o.a))),i.push(o.t||"")}),e.push('<comment ref="'+r[0]+'" authorId="'+n+'"><text>'),i.length<=1)e.push(Br("t",rt(i[0]||"")));else{for(var a=`Comment:
    `+i[0]+`
`,s=1;s<i.length;++s)a+=`Reply:
    `+i[s]+`
`;e.push(Br("t",rt(a)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function db(A,e,t){var r=[Xt,WA("ThreadedComments",null,{xmlns:ir.TCMNT}).replace(/[\/]>/,">")];return A.forEach(function(n){var i="";(n[1]||[]).forEach(function(a,s){if(!a.T){delete a.ID;return}a.a&&e.indexOf(a.a)==-1&&e.push(a.a);var o={ref:n[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};s==0?i=o.id:o.parentId=i,a.ID=o.id,a.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(a.a)).slice(-12)+"}"),r.push(WA("threadedComment",Br("text",a.t||""),o))})}),r.push("</ThreadedComments>"),r.join("")}function gb(A){var e=[Xt,WA("personList",null,{xmlns:ir.TCMNT,"xmlns:x":qs[0]}).replace(/[\/]>/,">")];return A.forEach(function(t,r){e.push(WA("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:t,providerId:"None"}))}),e.push("</personList>"),e.join("")}function pb(A){var e={};e.iauthor=A.read_shift(4);var t=rs(A);return e.rfx=t.s,e.ref=nt(t.s),A.l+=16,e}function Bb(A,e){return e==null&&(e=EA(36)),e.write_shift(4,A[1].iauthor),Ys(A[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var wb=Sr;function vb(A){return sr(A.slice(0,54))}function mb(A){var e=Gr(),t=[];return NA(e,628),NA(e,630),A.forEach(function(r){r[1].forEach(function(n){t.indexOf(n.a)>-1||(t.push(n.a.slice(0,54)),NA(e,632,vb(n.a)))})}),NA(e,631),NA(e,633),A.forEach(function(r){r[1].forEach(function(n){n.iauthor=t.indexOf(n.a);var i={s:ar(r[0]),e:ar(r[0])};NA(e,635,Bb([i,n])),n.t&&n.t.length>0&&NA(e,637,C_(n)),NA(e,636),delete n.iauthor})}),NA(e,634),NA(e,629),e.end()}function xb(A,e){e.FullPaths.forEach(function(t,r){if(r!=0){var n=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");n.slice(-1)!=="/"&&at.utils.cfb_add(A,n,e.FileIndex[r].content)}})}var Tw=["xlsb","xlsm","xlam","biff8","xla"],Cb=(function(){var A=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function t(r,n,i,a){var s=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),a.length==0?s=!0:a.charAt(0)=="["&&(s=!0,a=a.slice(1,-1));var f=i.length>0?parseInt(i,10)|0:0,l=a.length>0?parseInt(a,10)|0:0;return s?l+=e.c:--l,o?f+=e.r:--f,n+(s?"":"$")+Qr(l)+(o?"":"$")+vr(f)}return function(n,i){return e=i,n.replace(A,t)}})(),Dh=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Hh=(function(){return function(e,t){return e.replace(Dh,function(r,n,i,a,s,o){var f=Sh(a)-(i?0:t.c),l=Qh(o)-(s?0:t.r),d=l==0?"":s?l+1:"["+l+"]",g=f==0?"":i?f+1:"["+f+"]";return n+"R"+d+"C"+g})}})();function Fb(A,e){return A.replace(Dh,function(t,r,n,i,a,s){return r+(n=="$"?n+i:Qr(Sh(i)+e.c))+(a=="$"?a+s:vr(Qh(s)+e.r))})}function yb(A){return A.length!=1}function Vt(A){A.l+=1}function wa(A,e){var t=A.read_shift(2);return[t&16383,t>>14&1,t>>15&1]}function Lw(A,e,t){var r=2;if(t){if(t.biff>=2&&t.biff<=5)return Iw(A);t.biff==12&&(r=4)}var n=A.read_shift(r),i=A.read_shift(r),a=wa(A),s=wa(A);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Iw(A){var e=wa(A),t=wa(A),r=A.read_shift(1),n=A.read_shift(1);return{s:{r:e[0],c:r,cRel:e[1],rRel:e[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function Eb(A,e,t){if(t.biff<8)return Iw(A);var r=A.read_shift(t.biff==12?4:2),n=A.read_shift(t.biff==12?4:2),i=wa(A),a=wa(A);return{s:{r,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:a[0],cRel:a[1],rRel:a[2]}}}function Nw(A,e,t){if(t&&t.biff>=2&&t.biff<=5)return _b(A);var r=A.read_shift(t&&t.biff==12?4:2),n=wa(A);return{r,c:n[0],cRel:n[1],rRel:n[2]}}function _b(A){var e=wa(A),t=A.read_shift(1);return{r:e[0],c:t,cRel:e[1],rRel:e[2]}}function Ub(A){var e=A.read_shift(2),t=A.read_shift(2);return{r:e,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function bb(A,e,t){var r=t&&t.biff?t.biff:8;if(r>=2&&r<=5)return Qb(A);var n=A.read_shift(r>=12?4:2),i=A.read_shift(2),a=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;n>524287;)n-=1048576;if(a==1)for(;i>8191;)i=i-16384;return{r:n,c:i,cRel:a,rRel:s}}function Qb(A){var e=A.read_shift(2),t=A.read_shift(1),r=(e&32768)>>15,n=(e&16384)>>14;return e&=16383,r==1&&e>=8192&&(e=e-16384),n==1&&t>=128&&(t=t-256),{r:e,c:t,cRel:n,rRel:r}}function Sb(A,e,t){var r=(A[A.l++]&96)>>5,n=Lw(A,t.biff>=2&&t.biff<=5?6:8,t);return[r,n]}function Tb(A,e,t){var r=(A[A.l++]&96)>>5,n=A.read_shift(2,"i"),i=8;if(t)switch(t.biff){case 5:A.l+=12,i=6;break;case 12:i=12;break}var a=Lw(A,i,t);return[r,n,a]}function Lb(A,e,t){var r=(A[A.l++]&96)>>5;return A.l+=t&&t.biff>8?12:t.biff<8?6:8,[r]}function Ib(A,e,t){var r=(A[A.l++]&96)>>5,n=A.read_shift(2),i=8;if(t)switch(t.biff){case 5:A.l+=12,i=6;break;case 12:i=12;break}return A.l+=i,[r,n]}function Nb(A,e,t){var r=(A[A.l++]&96)>>5,n=Eb(A,e-1,t);return[r,n]}function Ob(A,e,t){var r=(A[A.l++]&96)>>5;return A.l+=t.biff==2?6:t.biff==12?14:7,[r]}function mg(A){var e=A[A.l+1]&1,t=1;return A.l+=4,[e,t]}function Db(A,e,t){A.l+=2;for(var r=A.read_shift(t&&t.biff==2?1:2),n=[],i=0;i<=r;++i)n.push(A.read_shift(t&&t.biff==2?1:2));return n}function Hb(A,e,t){var r=A[A.l+1]&255?1:0;return A.l+=2,[r,A.read_shift(t&&t.biff==2?1:2)]}function kb(A,e,t){var r=A[A.l+1]&255?1:0;return A.l+=2,[r,A.read_shift(t&&t.biff==2?1:2)]}function Pb(A){var e=A[A.l+1]&255?1:0;return A.l+=2,[e,A.read_shift(2)]}function Rb(A,e,t){var r=A[A.l+1]&255?1:0;return A.l+=t&&t.biff==2?3:4,[r]}function Ow(A){var e=A.read_shift(1),t=A.read_shift(1);return[e,t]}function Mb(A){return A.read_shift(2),Ow(A)}function Kb(A){return A.read_shift(2),Ow(A)}function Gb(A,e,t){var r=(A[A.l]&96)>>5;A.l+=1;var n=Nw(A,0,t);return[r,n]}function Vb(A,e,t){var r=(A[A.l]&96)>>5;A.l+=1;var n=bb(A,0,t);return[r,n]}function jb(A,e,t){var r=(A[A.l]&96)>>5;A.l+=1;var n=A.read_shift(2);t&&t.biff==5&&(A.l+=12);var i=Nw(A,0,t);return[r,n,i]}function Wb(A,e,t){var r=(A[A.l]&96)>>5;A.l+=1;var n=A.read_shift(t&&t.biff<=3?1:2);return[W6[n],kw[n],r]}function Xb(A,e,t){var r=A[A.l++],n=A.read_shift(1),i=t&&t.biff<=3?[r==88?-1:0,A.read_shift(1)]:qb(A);return[n,(i[0]===0?kw:j6)[i[1]]]}function qb(A){return[A[A.l+1]>>7,A.read_shift(2)&32767]}function zb(A,e,t){A.l+=t&&t.biff==2?3:4}function Yb(A,e,t){if(A.l++,t&&t.biff==12)return[A.read_shift(4,"i"),0];var r=A.read_shift(2),n=A.read_shift(t&&t.biff==2?1:2);return[r,n]}function Jb(A){return A.l++,v0[A.read_shift(1)]}function Zb(A){return A.l++,A.read_shift(2)}function $b(A){return A.l++,A.read_shift(1)!==0}function A6(A){return A.l++,Js(A)}function e6(A,e,t){return A.l++,Bw(A,e-1,t)}function t6(A,e){var t=[A.read_shift(1)];if(e==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=j_(A,1)?"TRUE":"FALSE",e!=12&&(A.l+=7);break;case 37:case 16:t[1]=v0[A[A.l]],A.l+=e==12?4:8;break;case 0:A.l+=8;break;case 1:t[1]=Js(A);break;case 2:t[1]=z_(A,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function r6(A,e,t){for(var r=A.read_shift(t.biff==12?4:2),n=[],i=0;i!=r;++i)n.push((t.biff==12?rs:Z_)(A));return n}function n6(A,e,t){var r=0,n=0;t.biff==12?(r=A.read_shift(4),n=A.read_shift(4)):(n=1+A.read_shift(1),r=1+A.read_shift(2)),t.biff>=2&&t.biff<8&&(--r,--n==0&&(n=256));for(var i=0,a=[];i!=r&&(a[i]=[]);++i)for(var s=0;s!=n;++s)a[i][s]=t6(A,t.biff);return a}function i6(A,e,t){var r=A.read_shift(1)>>>5&3,n=!t||t.biff>=8?4:2,i=A.read_shift(n);switch(t.biff){case 2:A.l+=5;break;case 3:case 4:A.l+=8;break;case 5:A.l+=12;break}return[r,0,i]}function a6(A,e,t){if(t.biff==5)return s6(A);var r=A.read_shift(1)>>>5&3,n=A.read_shift(2),i=A.read_shift(4);return[r,n,i]}function s6(A){var e=A.read_shift(1)>>>5&3,t=A.read_shift(2,"i");A.l+=8;var r=A.read_shift(2);return A.l+=12,[e,t,r]}function o6(A,e,t){var r=A.read_shift(1)>>>5&3;A.l+=t&&t.biff==2?3:4;var n=A.read_shift(t&&t.biff==2?1:2);return[r,n]}function f6(A,e,t){var r=A.read_shift(1)>>>5&3,n=A.read_shift(t&&t.biff==2?1:2);return[r,n]}function l6(A,e,t){var r=A.read_shift(1)>>>5&3;return A.l+=4,t.biff<8&&A.l--,t.biff==12&&(A.l+=2),[r]}function c6(A,e,t){var r=(A[A.l++]&96)>>5,n=A.read_shift(2),i=4;if(t)switch(t.biff){case 5:i=15;break;case 12:i=6;break}return A.l+=i,[r,n]}var u6=ii,h6=ii,d6=ii;function m0(A,e,t){return A.l+=2,[Ub(A)]}function kh(A){return A.l+=6,[]}var g6=m0,p6=kh,B6=kh,w6=m0;function Dw(A){return A.l+=2,[gw(A),A.read_shift(2)&1]}var v6=m0,m6=Dw,x6=kh,C6=m0,F6=m0,y6=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function E6(A){A.l+=2;var e=A.read_shift(2),t=A.read_shift(2),r=A.read_shift(4),n=A.read_shift(2),i=A.read_shift(2),a=y6[t>>2&31];return{ixti:e,coltype:t&3,rt:a,idx:r,c:n,C:i}}function _6(A){return A.l+=2,[A.read_shift(4)]}function U6(A,e,t){return A.l+=5,A.l+=2,A.l+=t.biff==2?1:4,["PTGSHEET"]}function b6(A,e,t){return A.l+=t.biff==2?4:5,["PTGENDSHEET"]}function Q6(A){var e=A.read_shift(1)>>>5&3,t=A.read_shift(2);return[e,t]}function S6(A){var e=A.read_shift(1)>>>5&3,t=A.read_shift(2);return[e,t]}function T6(A){return A.l+=4,[0,0]}var xg={1:{n:"PtgExp",f:Yb},2:{n:"PtgTbl",f:d6},3:{n:"PtgAdd",f:Vt},4:{n:"PtgSub",f:Vt},5:{n:"PtgMul",f:Vt},6:{n:"PtgDiv",f:Vt},7:{n:"PtgPower",f:Vt},8:{n:"PtgConcat",f:Vt},9:{n:"PtgLt",f:Vt},10:{n:"PtgLe",f:Vt},11:{n:"PtgEq",f:Vt},12:{n:"PtgGe",f:Vt},13:{n:"PtgGt",f:Vt},14:{n:"PtgNe",f:Vt},15:{n:"PtgIsect",f:Vt},16:{n:"PtgUnion",f:Vt},17:{n:"PtgRange",f:Vt},18:{n:"PtgUplus",f:Vt},19:{n:"PtgUminus",f:Vt},20:{n:"PtgPercent",f:Vt},21:{n:"PtgParen",f:Vt},22:{n:"PtgMissArg",f:Vt},23:{n:"PtgStr",f:e6},26:{n:"PtgSheet",f:U6},27:{n:"PtgEndSheet",f:b6},28:{n:"PtgErr",f:Jb},29:{n:"PtgBool",f:$b},30:{n:"PtgInt",f:Zb},31:{n:"PtgNum",f:A6},32:{n:"PtgArray",f:Ob},33:{n:"PtgFunc",f:Wb},34:{n:"PtgFuncVar",f:Xb},35:{n:"PtgName",f:i6},36:{n:"PtgRef",f:Gb},37:{n:"PtgArea",f:Sb},38:{n:"PtgMemArea",f:o6},39:{n:"PtgMemErr",f:u6},40:{n:"PtgMemNoMem",f:h6},41:{n:"PtgMemFunc",f:f6},42:{n:"PtgRefErr",f:l6},43:{n:"PtgAreaErr",f:Lb},44:{n:"PtgRefN",f:Vb},45:{n:"PtgAreaN",f:Nb},46:{n:"PtgMemAreaN",f:Q6},47:{n:"PtgMemNoMemN",f:S6},57:{n:"PtgNameX",f:a6},58:{n:"PtgRef3d",f:jb},59:{n:"PtgArea3d",f:Tb},60:{n:"PtgRefErr3d",f:c6},61:{n:"PtgAreaErr3d",f:Ib},255:{}},L6={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},I6={1:{n:"PtgElfLel",f:Dw},2:{n:"PtgElfRw",f:C6},3:{n:"PtgElfCol",f:g6},6:{n:"PtgElfRwV",f:F6},7:{n:"PtgElfColV",f:w6},10:{n:"PtgElfRadical",f:v6},11:{n:"PtgElfRadicalS",f:x6},13:{n:"PtgElfColS",f:p6},15:{n:"PtgElfColSV",f:B6},16:{n:"PtgElfRadicalLel",f:m6},25:{n:"PtgList",f:E6},29:{n:"PtgSxName",f:_6},255:{}},N6={0:{n:"PtgAttrNoop",f:T6},1:{n:"PtgAttrSemi",f:Rb},2:{n:"PtgAttrIf",f:kb},4:{n:"PtgAttrChoose",f:Db},8:{n:"PtgAttrGoto",f:Hb},16:{n:"PtgAttrSum",f:zb},32:{n:"PtgAttrBaxcel",f:mg},33:{n:"PtgAttrBaxcel",f:mg},64:{n:"PtgAttrSpace",f:Mb},65:{n:"PtgAttrSpaceSemi",f:Kb},128:{n:"PtgAttrIfError",f:Pb},255:{}};function O6(A,e,t,r){if(r.biff<8)return ii(A,e);for(var n=A.l+e,i=[],a=0;a!==t.length;++a)switch(t[a][0]){case"PtgArray":t[a][1]=n6(A,0,r),i.push(t[a][1]);break;case"PtgMemArea":t[a][2]=r6(A,t[a][1],r),i.push(t[a][2]);break;case"PtgExp":r&&r.biff==12&&(t[a][1][1]=A.read_shift(4),i.push(t[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[a][0]}return e=n-A.l,e!==0&&i.push(ii(A,e)),i}function D6(A,e,t){for(var r=A.l+e,n,i,a=[];r!=A.l;)e=r-A.l,i=A[A.l],n=xg[i]||xg[L6[i]],(i===24||i===25)&&(n=(i===24?I6:N6)[A[A.l+1]]),!n||!n.f?ii(A,e):a.push([n.n,n.f(A,e,t)]);return a}function H6(A){for(var e=[],t=0;t<A.length;++t){for(var r=A[t],n=[],i=0;i<r.length;++i){var a=r[i];if(a)switch(a[0]){case 2:n.push('"'+a[1].replace(/"/g,'""')+'"');break;default:n.push(a[1])}else n.push("")}e.push(n.join(","))}return e.join(";")}var k6={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function P6(A,e){if(!A&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(A)?"'"+A+"'":A}function Hw(A,e,t){if(!A)return"SH33TJSERR0";if(t.biff>8&&(!A.XTI||!A.XTI[e]))return A.SheetNames[e];if(!A.XTI)return"SH33TJSERR6";var r=A.XTI[e];if(t.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":A.XTI[e-1];if(!r)return"SH33TJSERR1";var n="";if(t.biff>8)switch(A[r[0]][0]){case 357:return n=r[1]==-1?"#REF":A.SheetNames[r[1]],r[1]==r[2]?n:n+":"+A.SheetNames[r[2]];case 358:return t.SID!=null?A.SheetNames[t.SID]:"SH33TJSSAME"+A[r[0]][0];case 355:default:return"SH33TJSSRC"+A[r[0]][0]}switch(A[r[0]][0][0]){case 1025:return n=r[1]==-1?"#REF":A.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?n:n+":"+A.SheetNames[r[2]];case 14849:return A[r[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return A[r[0]][0][3]?(n=r[1]==-1?"#REF":A[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?n:n+":"+A[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Cg(A,e,t){var r=Hw(A,e,t);return r=="#REF"?r:P6(r,t)}function js(A,e,t,r,n){var i=n&&n.biff||8,a={s:{c:0,r:0}},s=[],o,f,l,d=0,g=0,u,v="";if(!A[0]||!A[0][0])return"";for(var B=-1,x="",F=0,_=A[0].length;F<_;++F){var I=A[0][F];switch(I[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=s.pop(),f=s.pop(),B>=0){switch(A[0][B][1][0]){case 0:x=bt(" ",A[0][B][1][1]);break;case 1:x=bt("\r",A[0][B][1][1]);break;default:if(x="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+A[0][B][1][0])}f=f+x,B=-1}s.push(f+k6[I[0]]+o);break;case"PtgIsect":o=s.pop(),f=s.pop(),s.push(f+" "+o);break;case"PtgUnion":o=s.pop(),f=s.pop(),s.push(f+","+o);break;case"PtgRange":o=s.pop(),f=s.pop(),s.push(f+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":l=Zo(I[1][1],a,n),s.push($o(l,i));break;case"PtgRefN":l=t?Zo(I[1][1],t,n):I[1][1],s.push($o(l,i));break;case"PtgRef3d":d=I[1][1],l=Zo(I[1][2],a,n),v=Cg(r,d,n),s.push(v+"!"+$o(l,i));break;case"PtgFunc":case"PtgFuncVar":var L=I[1][0],q=I[1][1];L||(L=0),L&=127;var rA=L==0?[]:s.slice(-L);s.length-=L,q==="User"&&(q=rA.shift()),s.push(q+"("+rA.join(",")+")");break;case"PtgBool":s.push(I[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(I[1]);break;case"PtgNum":s.push(String(I[1]));break;case"PtgStr":s.push('"'+I[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(I[1]);break;case"PtgAreaN":u=ag(I[1][1],t?{s:t}:a,n),s.push(wu(u,n));break;case"PtgArea":u=ag(I[1][1],a,n),s.push(wu(u,n));break;case"PtgArea3d":d=I[1][1],u=I[1][2],v=Cg(r,d,n),s.push(v+"!"+wu(u,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":g=I[1][2];var M=(r.names||[])[g-1]||(r[0]||[])[g],R=M?M.Name:"SH33TJSNAME"+String(g);R&&R.slice(0,6)=="_xlfn."&&!n.xlfn&&(R=R.slice(6)),s.push(R);break;case"PtgNameX":var E=I[1][1];g=I[1][2];var X;if(n.biff<=5)E<0&&(E=-E),r[E]&&(X=r[E][g]);else{var y="";if(((r[E]||[])[0]||[])[0]==14849||(((r[E]||[])[0]||[])[0]==1025?r[E][g]&&r[E][g].itab>0&&(y=r.SheetNames[r[E][g].itab-1]+"!"):y=r.SheetNames[g-1]+"!"),r[E]&&r[E][g])y+=r[E][g].Name;else if(r[0]&&r[0][g])y+=r[0][g].Name;else{var T=(Hw(r,E,n)||"").split(";;");T[g-1]?y=T[g-1]:y+="SH33TJSERRX"}s.push(y);break}X||(X={Name:"SH33TJSERRY"}),s.push(X.Name);break;case"PtgParen":var P="(",eA=")";if(B>=0){switch(x="",A[0][B][1][0]){case 2:P=bt(" ",A[0][B][1][1])+P;break;case 3:P=bt("\r",A[0][B][1][1])+P;break;case 4:eA=bt(" ",A[0][B][1][1])+eA;break;case 5:eA=bt("\r",A[0][B][1][1])+eA;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+A[0][B][1][0])}B=-1}s.push(P+s.pop()+eA);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":l={c:I[1][1],r:I[1][0]};var sA={c:t.c,r:t.r};if(r.sharedf[nt(l)]){var wA=r.sharedf[nt(l)];s.push(js(wA,a,sA,r,n))}else{var gA=!1;for(o=0;o!=r.arrayf.length;++o)if(f=r.arrayf[o],!(l.c<f[0].s.c||l.c>f[0].e.c)&&!(l.r<f[0].s.r||l.r>f[0].e.r)){s.push(js(f[1],a,sA,r,n)),gA=!0;break}gA||s.push(I[1])}break;case"PtgArray":s.push("{"+H6(I[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":B=F;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+I[1].idx+"[#"+I[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(I));default:throw new Error("Unrecognized Formula Token: "+String(I))}var hA=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&B>=0&&hA.indexOf(A[0][F][0])==-1){I=A[0][B];var CA=!0;switch(I[1][0]){case 4:CA=!1;case 0:x=bt(" ",I[1][1]);break;case 5:CA=!1;case 1:x=bt("\r",I[1][1]);break;default:if(x="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+I[1][0])}s.push((CA?x:"")+s.pop()+(CA?"":x)),B=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function R6(A){if(A==null){var e=EA(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof A=="number")return za(A);return za(0)}function M6(A,e,t,r,n){var i=Ya(e,t,n),a=R6(A.v),s=EA(6),o=33;s.write_shift(2,o),s.write_shift(4,0);for(var f=EA(A.bf.length),l=0;l<A.bf.length;++l)f[l]=A.bf[l];var d=pr([i,a,s,f]);return d}function Gl(A,e,t){var r=A.read_shift(4),n=D6(A,r,t),i=A.read_shift(4),a=i>0?O6(A,i,n,t):null;return[n,a]}var K6=Gl,Vl=Gl,G6=Gl,V6=Gl,j6={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},kw={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},W6={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function X6(A){var e="of:="+A.replace(Dh,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function q6(A){return A.replace(/\./,"!")}var A0=typeof Map<"u";function Ph(A,e,t){var r=0,n=A.length;if(t){if(A0?t.has(e):Object.prototype.hasOwnProperty.call(t,e)){for(var i=A0?t.get(e):t[e];r<i.length;++r)if(A[i[r]].t===e)return A.Count++,i[r]}}else for(;r<n;++r)if(A[r].t===e)return A.Count++,r;return A[n]={t:e},A.Count++,A.Unique++,t&&(A0?(t.has(e)||t.set(e,[]),t.get(e).push(n)):(Object.prototype.hasOwnProperty.call(t,e)||(t[e]=[]),t[e].push(n))),n}function jl(A,e){var t={min:A+1,max:A+1},r=-1;return e.MDW&&(Ni=e.MDW),e.width!=null?t.customWidth=1:e.wpx!=null?r=Cl(e.wpx):e.wch!=null&&(r=e.wch),r>-1?(t.width=oh(r),t.customWidth=1):e.width!=null&&(t.width=e.width),e.hidden&&(t.hidden=!0),e.level!=null&&(t.outlineLevel=t.level=e.level),t}function Pw(A,e){if(A){var t=[.7,.7,.75,.75,.3,.3];A.left==null&&(A.left=t[0]),A.right==null&&(A.right=t[1]),A.top==null&&(A.top=t[2]),A.bottom==null&&(A.bottom=t[3]),A.header==null&&(A.header=t[4]),A.footer==null&&(A.footer=t[5])}}function ma(A,e,t){var r=t.revssf[e.z!=null?e.z:"General"],n=60,i=A.length;if(r==null&&t.ssf){for(;n<392;++n)if(t.ssf[n]==null){NB(e.z,n),t.ssf[n]=e.z,t.revssf[e.z]=r=n;break}}for(n=0;n!=i;++n)if(A[n].numFmtId===r)return n;return A[i]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function z6(A,e,t){if(A&&A["!ref"]){var r=wt(A["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+t+"): "+A["!ref"])}}function Y6(A){if(A.length===0)return"";for(var e='<mergeCells count="'+A.length+'">',t=0;t!=A.length;++t)e+='<mergeCell ref="'+Wt(A[t])+'"/>';return e+"</mergeCells>"}function J6(A,e,t,r,n){var i=!1,a={},s=null;if(r.bookType!=="xlsx"&&e.vbaraw){var o=e.SheetNames[t];try{e.Workbook&&(o=e.Workbook.Sheets[t].CodeName||o)}catch{}i=!0,a.codeName=f0(rt(o))}if(A&&A["!outline"]){var f={summaryBelow:1,summaryRight:1};A["!outline"].above&&(f.summaryBelow=0),A["!outline"].left&&(f.summaryRight=0),s=(s||"")+WA("outlinePr",null,f)}!i&&!s||(n[n.length]=WA("sheetPr",s,a))}var Z6=["objects","scenarios","selectLockedCells","selectUnlockedCells"],$6=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function AQ(A){var e={sheet:1};return Z6.forEach(function(t){A[t]!=null&&A[t]&&(e[t]="1")}),$6.forEach(function(t){A[t]!=null&&!A[t]&&(e[t]="0")}),A.password&&(e.password=Cw(A.password).toString(16).toUpperCase()),WA("sheetProtection",null,e)}function eQ(A){return Pw(A),WA("pageMargins",null,A)}function tQ(A,e){for(var t=["<cols>"],r,n=0;n!=e.length;++n)(r=e[n])&&(t[t.length]=WA("col",null,jl(n,r)));return t[t.length]="</cols>",t.join("")}function rQ(A,e,t,r){var n=typeof A.ref=="string"?A.ref:Wt(A.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var i=t.Workbook.Names,a=fn(n);a.s.r==a.e.r&&(a.e.r=fn(e["!ref"]).e.r,n=Wt(a));for(var s=0;s<i.length;++s){var o=i[s];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==r){o.Ref="'"+t.SheetNames[r]+"'!"+n;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+t.SheetNames[r]+"'!"+n}),WA("autoFilter",null,{ref:n})}function nQ(A,e,t,r){var n={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),WA("sheetViews",WA("sheetView",null,n),{})}function iQ(A,e,t,r){if(A.c&&t["!comments"].push([e,A.c]),A.v===void 0&&typeof A.f!="string"||A.t==="z"&&!A.f)return"";var n="",i=A.t,a=A.v;if(A.t!=="z")switch(A.t){case"b":n=A.v?"1":"0";break;case"n":n=""+A.v;break;case"e":n=v0[A.v];break;case"d":r&&r.cellDates?n=kr(A.v,-1).toISOString():(A=jr(A),A.t="n",n=""+(A.v=Vr(kr(A.v)))),typeof A.z>"u"&&(A.z=Qt[14]);break;default:n=A.v;break}var s=Br("v",rt(n)),o={r:e},f=ma(r.cellXfs,A,r);switch(f!==0&&(o.s=f),A.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(A.v==null){delete A.t;break}if(A.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){s=Br("v",""+Ph(r.Strings,A.v,r.revStrings)),o.t="s";break}o.t="str";break}if(A.t!=i&&(A.t=i,A.v=a),typeof A.f=="string"&&A.f){var l=A.F&&A.F.slice(0,e.length)==e?{t:"array",ref:A.F}:null;s=WA("f",rt(A.f),l)+(A.v!=null?s:"")}return A.l&&t["!links"].push([e,A.l]),A.D&&(o.cm=1),WA("c",s,o)}function aQ(A,e,t,r){var n=[],i=[],a=wt(A["!ref"]),s="",o,f="",l=[],d=0,g=0,u=A["!rows"],v=Array.isArray(A),B={r:f},x,F=-1;for(g=a.s.c;g<=a.e.c;++g)l[g]=Qr(g);for(d=a.s.r;d<=a.e.r;++d){for(i=[],f=vr(d),g=a.s.c;g<=a.e.c;++g){o=l[g]+f;var _=v?(A[d]||[])[g]:A[o];_!==void 0&&(s=iQ(_,o,A,e))!=null&&i.push(s)}(i.length>0||u&&u[d])&&(B={r:f},u&&u[d]&&(x=u[d],x.hidden&&(B.hidden=1),F=-1,x.hpx?F=Fl(x.hpx):x.hpt&&(F=x.hpt),F>-1&&(B.ht=F,B.customHeight=1),x.level&&(B.outlineLevel=x.level)),n[n.length]=WA("row",i.join(""),B))}if(u)for(;d<u.length;++d)u&&u[d]&&(B={r:d+1},x=u[d],x.hidden&&(B.hidden=1),F=-1,x.hpx?F=Fl(x.hpx):x.hpt&&(F=x.hpt),F>-1&&(B.ht=F,B.customHeight=1),x.level&&(B.outlineLevel=x.level),n[n.length]=WA("row","",B));return n.join("")}function Rw(A,e,t,r){var n=[Xt,WA("worksheet",null,{xmlns:qs[0],"xmlns:r":ir.r})],i=t.SheetNames[A],a=0,s="",o=t.Sheets[i];o==null&&(o={});var f=o["!ref"]||"A1",l=wt(f);if(l.e.c>16383||l.e.r>1048575){if(e.WTF)throw new Error("Range "+f+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575),f=Wt(l)}r||(r={}),o["!comments"]=[];var d=[];J6(o,t,A,e,n),n[n.length]=WA("dimension",null,{ref:f}),n[n.length]=nQ(o,e,A,t),e.sheetFormat&&(n[n.length]=WA("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(n[n.length]=tQ(o,o["!cols"])),n[a=n.length]="<sheetData/>",o["!links"]=[],o["!ref"]!=null&&(s=aQ(o,e),s.length>0&&(n[n.length]=s)),n.length>a+1&&(n[n.length]="</sheetData>",n[a]=n[a].replace("/>",">")),o["!protect"]&&(n[n.length]=AQ(o["!protect"])),o["!autofilter"]!=null&&(n[n.length]=rQ(o["!autofilter"],o,t,A)),o["!merges"]!=null&&o["!merges"].length>0&&(n[n.length]=Y6(o["!merges"]));var g=-1,u,v=-1;return o["!links"].length>0&&(n[n.length]="<hyperlinks>",o["!links"].forEach(function(B){B[1].Target&&(u={ref:B[0]},B[1].Target.charAt(0)!="#"&&(v=et(r,-1,rt(B[1].Target).replace(/#.*$/,""),Xe.HLINK),u["r:id"]="rId"+v),(g=B[1].Target.indexOf("#"))>-1&&(u.location=rt(B[1].Target.slice(g+1))),B[1].Tooltip&&(u.tooltip=rt(B[1].Tooltip)),n[n.length]=WA("hyperlink",null,u))}),n[n.length]="</hyperlinks>"),delete o["!links"],o["!margins"]!=null&&(n[n.length]=eQ(o["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(n[n.length]=Br("ignoredErrors",WA("ignoredError",null,{numberStoredAsText:1,sqref:f}))),d.length>0&&(v=et(r,-1,"../drawings/drawing"+(A+1)+".xml",Xe.DRAW),n[n.length]=WA("drawing",null,{"r:id":"rId"+v}),o["!drawing"]=d),o["!comments"].length>0&&(v=et(r,-1,"../drawings/vmlDrawing"+(A+1)+".vml",Xe.VML),n[n.length]=WA("legacyDrawing",null,{"r:id":"rId"+v}),o["!legacy"]=v),n.length>1&&(n[n.length]="</worksheet>",n[1]=n[1].replace("/>",">")),n.join("")}function sQ(A,e){var t={},r=A.l+e;t.r=A.read_shift(4),A.l+=4;var n=A.read_shift(2);A.l+=1;var i=A.read_shift(1);return A.l=r,i&7&&(t.level=i&7),i&16&&(t.hidden=!0),i&32&&(t.hpt=n/20),t}function oQ(A,e,t){var r=EA(145),n=(t["!rows"]||[])[A]||{};r.write_shift(4,A),r.write_shift(4,0);var i=320;n.hpx?i=Fl(n.hpx)*20:n.hpt&&(i=n.hpt*20),r.write_shift(2,i),r.write_shift(1,0);var a=0;n.level&&(a|=n.level),n.hidden&&(a|=16),(n.hpx||n.hpt)&&(a|=32),r.write_shift(1,a),r.write_shift(1,0);var s=0,o=r.l;r.l+=4;for(var f={r:A,c:0},l=0;l<16;++l)if(!(e.s.c>l+1<<10||e.e.c<l<<10)){for(var d=-1,g=-1,u=l<<10;u<l+1<<10;++u){f.c=u;var v=Array.isArray(t)?(t[f.r]||[])[f.c]:t[nt(f)];v&&(d<0&&(d=u),g=u)}d<0||(++s,r.write_shift(4,d),r.write_shift(4,g))}var B=r.l;return r.l=o,r.write_shift(4,s),r.l=B,r.length>r.l?r.slice(0,r.l):r}function fQ(A,e,t,r){var n=oQ(r,t,e);(n.length>17||(e["!rows"]||[])[r])&&NA(A,0,n)}var lQ=rs,cQ=Ys;function uQ(){}function hQ(A,e){var t={},r=A[A.l];return++A.l,t.above=!(r&64),t.left=!(r&128),A.l+=18,t.name=F_(A),t}function dQ(A,e,t){t==null&&(t=EA(84+4*A.length));var r=192;e&&(e.above&&(r&=-65),e.left&&(r&=-129)),t.write_shift(1,r);for(var n=1;n<3;++n)t.write_shift(1,0);return vl({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),ew(A,t),t.slice(0,t.l)}function gQ(A){var e=yn(A);return[e]}function pQ(A,e,t){return t==null&&(t=EA(8)),As(e,t)}function BQ(A){var e=es(A);return[e]}function wQ(A,e,t){return t==null&&(t=EA(4)),ts(e,t)}function vQ(A){var e=yn(A),t=A.read_shift(1);return[e,t,"b"]}function mQ(A,e,t){return t==null&&(t=EA(9)),As(e,t),t.write_shift(1,A.v?1:0),t}function xQ(A){var e=es(A),t=A.read_shift(1);return[e,t,"b"]}function CQ(A,e,t){return t==null&&(t=EA(5)),ts(e,t),t.write_shift(1,A.v?1:0),t}function FQ(A){var e=yn(A),t=A.read_shift(1);return[e,t,"e"]}function yQ(A,e,t){return t==null&&(t=EA(9)),As(e,t),t.write_shift(1,A.v),t}function EQ(A){var e=es(A),t=A.read_shift(1);return[e,t,"e"]}function _Q(A,e,t){return t==null&&(t=EA(8)),ts(e,t),t.write_shift(1,A.v),t.write_shift(2,0),t.write_shift(1,0),t}function UQ(A){var e=yn(A),t=A.read_shift(4);return[e,t,"s"]}function bQ(A,e,t){return t==null&&(t=EA(12)),As(e,t),t.write_shift(4,e.v),t}function QQ(A){var e=es(A),t=A.read_shift(4);return[e,t,"s"]}function SQ(A,e,t){return t==null&&(t=EA(8)),ts(e,t),t.write_shift(4,e.v),t}function TQ(A){var e=yn(A),t=Js(A);return[e,t,"n"]}function LQ(A,e,t){return t==null&&(t=EA(16)),As(e,t),za(A.v,t),t}function IQ(A){var e=es(A),t=Js(A);return[e,t,"n"]}function NQ(A,e,t){return t==null&&(t=EA(12)),ts(e,t),za(A.v,t),t}function OQ(A){var e=yn(A),t=tw(A);return[e,t,"n"]}function DQ(A,e,t){return t==null&&(t=EA(12)),As(e,t),rw(A.v,t),t}function HQ(A){var e=es(A),t=tw(A);return[e,t,"n"]}function kQ(A,e,t){return t==null&&(t=EA(8)),ts(e,t),rw(A.v,t),t}function PQ(A){var e=yn(A),t=Th(A);return[e,t,"is"]}function RQ(A){var e=yn(A),t=Sr(A);return[e,t,"str"]}function MQ(A,e,t){return t==null&&(t=EA(12+4*A.v.length)),As(e,t),sr(A.v,t),t.length>t.l?t.slice(0,t.l):t}function KQ(A){var e=es(A),t=Sr(A);return[e,t,"str"]}function GQ(A,e,t){return t==null&&(t=EA(8+4*A.v.length)),ts(e,t),sr(A.v,t),t.length>t.l?t.slice(0,t.l):t}function VQ(A,e,t){var r=A.l+e,n=yn(A);n.r=t["!row"];var i=A.read_shift(1),a=[n,i,"b"];if(t.cellFormula){A.l+=2;var s=Vl(A,r-A.l,t);a[3]=js(s,null,n,t.supbooks,t)}else A.l=r;return a}function jQ(A,e,t){var r=A.l+e,n=yn(A);n.r=t["!row"];var i=A.read_shift(1),a=[n,i,"e"];if(t.cellFormula){A.l+=2;var s=Vl(A,r-A.l,t);a[3]=js(s,null,n,t.supbooks,t)}else A.l=r;return a}function WQ(A,e,t){var r=A.l+e,n=yn(A);n.r=t["!row"];var i=Js(A),a=[n,i,"n"];if(t.cellFormula){A.l+=2;var s=Vl(A,r-A.l,t);a[3]=js(s,null,n,t.supbooks,t)}else A.l=r;return a}function XQ(A,e,t){var r=A.l+e,n=yn(A);n.r=t["!row"];var i=Sr(A),a=[n,i,"str"];if(t.cellFormula){A.l+=2;var s=Vl(A,r-A.l,t);a[3]=js(s,null,n,t.supbooks,t)}else A.l=r;return a}var qQ=rs,zQ=Ys;function YQ(A,e){return e==null&&(e=EA(4)),e.write_shift(4,A),e}function JQ(A,e){var t=A.l+e,r=rs(A),n=Lh(A),i=Sr(A),a=Sr(A),s=Sr(A);A.l=t;var o={rfx:r,relId:n,loc:i,display:s};return a&&(o.Tooltip=a),o}function ZQ(A,e){var t=EA(50+4*(A[1].Target.length+(A[1].Tooltip||"").length));Ys({s:ar(A[0]),e:ar(A[0])},t),Ih("rId"+e,t);var r=A[1].Target.indexOf("#"),n=r==-1?"":A[1].Target.slice(r+1);return sr(n||"",t),sr(A[1].Tooltip||"",t),sr("",t),t.slice(0,t.l)}function $Q(){}function AS(A,e,t){var r=A.l+e,n=nw(A),i=A.read_shift(1),a=[n];if(a[2]=i,t.cellFormula){var s=K6(A,r-A.l,t);a[1]=s}else A.l=r;return a}function eS(A,e,t){var r=A.l+e,n=rs(A),i=[n];if(t.cellFormula){var a=V6(A,r-A.l,t);i[1]=a,A.l=r}else A.l=r;return i}function tS(A,e,t){t==null&&(t=EA(18));var r=jl(A,e);t.write_shift(-4,A),t.write_shift(-4,A),t.write_shift(4,(r.width||10)*256),t.write_shift(4,0);var n=0;return e.hidden&&(n|=1),typeof r.width=="number"&&(n|=2),e.level&&(n|=e.level<<8),t.write_shift(2,n),t}var Mw=["left","right","top","bottom","header","footer"];function rS(A){var e={};return Mw.forEach(function(t){e[t]=Js(A)}),e}function nS(A,e){return e==null&&(e=EA(48)),Pw(A),Mw.forEach(function(t){za(A[t],e)}),e}function iS(A){var e=A.read_shift(2);return A.l+=28,{RTL:e&32}}function aS(A,e,t){t==null&&(t=EA(30));var r=924;return(((e||{}).Views||[])[0]||{}).RTL&&(r|=32),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function sS(A){var e=EA(24);return e.write_shift(4,4),e.write_shift(4,1),Ys(A,e),e}function oS(A,e){return e==null&&(e=EA(66)),e.write_shift(2,A.password?Cw(A.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?e.write_shift(4,A[t[0]]!=null&&!A[t[0]]?1:0):e.write_shift(4,A[t[0]]!=null&&A[t[0]]?0:1)}),e}function fS(){}function lS(){}function cS(A,e,t,r,n,i,a){if(e.v===void 0)return!1;var s="";switch(e.t){case"b":s=e.v?"1":"0";break;case"d":e=jr(e),e.z=e.z||Qt[14],e.v=Vr(kr(e.v)),e.t="n";break;case"n":case"e":s=""+e.v;break;default:s=e.v;break}var o={r:t,c:r};switch(o.s=ma(n.cellXfs,e,n),e.l&&i["!links"].push([nt(o),e.l]),e.c&&i["!comments"].push([nt(o),e.c]),e.t){case"s":case"str":return n.bookSST?(s=Ph(n.Strings,e.v,n.revStrings),o.t="s",o.v=s,a?NA(A,18,SQ(e,o)):NA(A,7,bQ(e,o))):(o.t="str",a?NA(A,17,GQ(e,o)):NA(A,6,MQ(e,o))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?a?NA(A,13,kQ(e,o)):NA(A,2,DQ(e,o)):a?NA(A,16,NQ(e,o)):NA(A,5,LQ(e,o)),!0;case"b":return o.t="b",a?NA(A,15,CQ(e,o)):NA(A,4,mQ(e,o)),!0;case"e":return o.t="e",a?NA(A,14,_Q(e,o)):NA(A,3,yQ(e,o)),!0}return a?NA(A,12,wQ(e,o)):NA(A,1,pQ(e,o)),!0}function uS(A,e,t,r){var n=wt(e["!ref"]||"A1"),i,a="",s=[];NA(A,145);var o=Array.isArray(e),f=n.e.r;e["!rows"]&&(f=Math.max(n.e.r,e["!rows"].length-1));for(var l=n.s.r;l<=f;++l){a=vr(l),fQ(A,e,n,l);var d=!1;if(l<=n.e.r)for(var g=n.s.c;g<=n.e.c;++g){l===n.s.r&&(s[g]=Qr(g)),i=s[g]+a;var u=o?(e[l]||[])[g]:e[i];if(!u){d=!1;continue}d=cS(A,u,l,g,r,e,d)}}NA(A,146)}function hS(A,e){!e||!e["!merges"]||(NA(A,177,YQ(e["!merges"].length)),e["!merges"].forEach(function(t){NA(A,176,zQ(t))}),NA(A,178))}function dS(A,e){!e||!e["!cols"]||(NA(A,390),e["!cols"].forEach(function(t,r){t&&NA(A,60,tS(r,t))}),NA(A,391))}function gS(A,e){!e||!e["!ref"]||(NA(A,648),NA(A,649,sS(wt(e["!ref"]))),NA(A,650))}function pS(A,e,t){e["!links"].forEach(function(r){if(r[1].Target){var n=et(t,-1,r[1].Target.replace(/#.*$/,""),Xe.HLINK);NA(A,494,ZQ(r,n))}}),delete e["!links"]}function BS(A,e,t,r){if(e["!comments"].length>0){var n=et(r,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Xe.VML);NA(A,551,Ih("rId"+n)),e["!legacy"]=n}}function wS(A,e,t,r){if(e["!autofilter"]){var n=e["!autofilter"],i=typeof n.ref=="string"?n.ref:Wt(n.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var a=t.Workbook.Names,s=fn(i);s.s.r==s.e.r&&(s.e.r=fn(e["!ref"]).e.r,i=Wt(s));for(var o=0;o<a.length;++o){var f=a[o];if(f.Name=="_xlnm._FilterDatabase"&&f.Sheet==r){f.Ref="'"+t.SheetNames[r]+"'!"+i;break}}o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+t.SheetNames[r]+"'!"+i}),NA(A,161,Ys(wt(i))),NA(A,162)}}function vS(A,e,t){NA(A,133),NA(A,137,aS(e,t)),NA(A,138),NA(A,134)}function mS(A,e){e["!protect"]&&NA(A,535,oS(e["!protect"]))}function xS(A,e,t,r){var n=Gr(),i=t.SheetNames[A],a=t.Sheets[i]||{},s=i;try{t&&t.Workbook&&(s=t.Workbook.Sheets[A].CodeName||s)}catch{}var o=wt(a["!ref"]||"A1");if(o.e.c>16383||o.e.r>1048575){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],NA(n,129),(t.vbaraw||a["!outline"])&&NA(n,147,dQ(s,a["!outline"])),NA(n,148,cQ(o)),vS(n,a,t.Workbook),dS(n,a),uS(n,a,A,e),mS(n,a),wS(n,a,t,A),hS(n,a),pS(n,a,r),a["!margins"]&&NA(n,476,nS(a["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&gS(n,a),BS(n,a,A,r),NA(n,130),n.end()}function CS(A,e){A.l+=10;var t=Sr(A);return{name:t}}var FS=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function yS(A){return!A.Workbook||!A.Workbook.WBProps?"false":e_(A.Workbook.WBProps.date1904)?"true":"false"}var ES="][*?/\\".split("");function Kw(A,e){if(A.length>31)throw new Error("Sheet names cannot exceed 31 chars");var t=!0;return ES.forEach(function(r){if(A.indexOf(r)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),t}function _S(A,e,t){A.forEach(function(r,n){Kw(r);for(var i=0;i<n;++i)if(r==A[i])throw new Error("Duplicate Sheet Name: "+r);if(t){var a=e&&e[n]&&e[n].CodeName||r;if(a.charCodeAt(0)==95&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}function US(A){if(!A||!A.SheetNames||!A.Sheets)throw new Error("Invalid Workbook");if(!A.SheetNames.length)throw new Error("Workbook is empty");var e=A.Workbook&&A.Workbook.Sheets||[];_S(A.SheetNames,e,!!A.vbaraw);for(var t=0;t<A.SheetNames.length;++t)z6(A.Sheets[A.SheetNames[t]],A.SheetNames[t],t)}function Gw(A){var e=[Xt];e[e.length]=WA("workbook",null,{xmlns:qs[0],"xmlns:r":ir.r});var t=A.Workbook&&(A.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};A.Workbook&&A.Workbook.WBProps&&(FS.forEach(function(s){A.Workbook.WBProps[s[0]]!=null&&A.Workbook.WBProps[s[0]]!=s[1]&&(r[s[0]]=A.Workbook.WBProps[s[0]])}),A.Workbook.WBProps.CodeName&&(r.codeName=A.Workbook.WBProps.CodeName,delete r.CodeName)),e[e.length]=WA("workbookPr",null,r);var n=A.Workbook&&A.Workbook.Sheets||[],i=0;if(n&&n[0]&&n[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=A.SheetNames.length&&!(!n[i]||!n[i].Hidden);++i);i==A.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=A.SheetNames.length;++i){var a={name:rt(A.SheetNames[i].slice(0,31))};if(a.sheetId=""+(i+1),a["r:id"]="rId"+(i+1),n[i])switch(n[i].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}e[e.length]=WA("sheet",null,a)}return e[e.length]="</sheets>",t&&(e[e.length]="<definedNames>",A.Workbook&&A.Workbook.Names&&A.Workbook.Names.forEach(function(s){var o={name:s.Name};s.Comment&&(o.comment=s.Comment),s.Sheet!=null&&(o.localSheetId=""+s.Sheet),s.Hidden&&(o.hidden="1"),s.Ref&&(e[e.length]=WA("definedName",rt(s.Ref),o))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function bS(A,e){var t={};return t.Hidden=A.read_shift(4),t.iTabID=A.read_shift(4),t.strRelID=sh(A),t.name=Sr(A),t}function QS(A,e){return e||(e=EA(127)),e.write_shift(4,A.Hidden),e.write_shift(4,A.iTabID),Ih(A.strRelID,e),sr(A.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function SS(A,e){var t={},r=A.read_shift(4);t.defaultThemeVersion=A.read_shift(4);var n=e>8?Sr(A):"";return n.length>0&&(t.CodeName=n),t.autoCompressPictures=!!(r&65536),t.backupFile=!!(r&64),t.checkCompatibility=!!(r&4096),t.date1904=!!(r&1),t.filterPrivacy=!!(r&8),t.hidePivotFieldList=!!(r&1024),t.promptedSolutions=!!(r&16),t.publishItems=!!(r&2048),t.refreshAllConnections=!!(r&262144),t.saveExternalLinkValues=!!(r&128),t.showBorderUnselectedTables=!!(r&4),t.showInkAnnotation=!!(r&32),t.showObjects=["all","placeholders","none"][r>>13&3],t.showPivotChartFilter=!!(r&32768),t.updateLinks=["userSet","never","always"][r>>8&3],t}function TS(A,e){e||(e=EA(72));var t=0;return A&&A.filterPrivacy&&(t|=8),e.write_shift(4,t),e.write_shift(4,0),ew(A&&A.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function LS(A,e,t){var r=A.l+e;A.l+=4,A.l+=1;var n=A.read_shift(4),i=y_(A),a=G6(A,0,t),s=Lh(A);A.l=r;var o={Name:i,Ptg:a};return n<268435455&&(o.Sheet=n),s&&(o.Comment=s),o}function IS(A,e){NA(A,143);for(var t=0;t!=e.SheetNames.length;++t){var r=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[t]&&e.Workbook.Sheets[t].Hidden||0,n={Hidden:r,iTabID:t+1,strRelID:"rId"+(t+1),name:e.SheetNames[t]};NA(A,156,QS(n))}NA(A,144)}function NS(A,e){e||(e=EA(127));for(var t=0;t!=4;++t)e.write_shift(4,0);return sr("SheetJS",e),sr(cl.version,e),sr(cl.version,e),sr("7262",e),e.length>e.l?e.slice(0,e.l):e}function OS(A,e){e||(e=EA(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,A),e.write_shift(4,A);var t=120;return e.write_shift(1,t),e.length>e.l?e.slice(0,e.l):e}function DS(A,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var t=e.Workbook.Sheets,r=0,n=-1,i=-1;r<t.length;++r)!t[r]||!t[r].Hidden&&n==-1?n=r:t[r].Hidden==1&&i==-1&&(i=r);i>n||(NA(A,135),NA(A,158,OS(n)),NA(A,136))}}function HS(A,e){var t=Gr();return NA(t,131),NA(t,128,NS()),NA(t,153,TS(A.Workbook&&A.Workbook.WBProps||null)),DS(t,A),IS(t,A),NA(t,132),t.end()}function kS(A,e,t){return(e.slice(-4)===".bin"?HS:Gw)(A)}function PS(A,e,t,r,n){return(e.slice(-4)===".bin"?xS:Rw)(A,t,r,n)}function RS(A,e,t){return(e.slice(-4)===".bin"?nb:Ew)(A,t)}function MS(A,e,t){return(e.slice(-4)===".bin"?TU:xw)(A,t)}function KS(A,e,t){return(e.slice(-4)===".bin"?mb:Sw)(A)}function GS(A){return(A.slice(-4)===".bin"?ub:bw)()}function VS(A,e){var t=[];return A.Props&&t.push(R_(A.Props,e)),A.Custprops&&t.push(M_(A.Props,A.Custprops)),t.join("")}function jS(){return""}function WS(A,e){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(r,n){var i=[];i.push(WA("NumberFormat",null,{"ss:Format":rt(Qt[r.numFmtId])}));var a={"ss:ID":"s"+(21+n)};t.push(WA("Style",i.join(""),a))}),WA("Styles",t.join(""))}function Vw(A){return WA("NamedRange",null,{"ss:Name":A.Name,"ss:RefersTo":"="+Hh(A.Ref,{r:0,c:0})})}function XS(A){if(!((A||{}).Workbook||{}).Names)return"";for(var e=A.Workbook.Names,t=[],r=0;r<e.length;++r){var n=e[r];n.Sheet==null&&(n.Name.match(/^_xlfn\./)||t.push(Vw(n)))}return WA("Names",t.join(""))}function qS(A,e,t,r){if(!A||!((r||{}).Workbook||{}).Names)return"";for(var n=r.Workbook.Names,i=[],a=0;a<n.length;++a){var s=n[a];s.Sheet==t&&(s.Name.match(/^_xlfn\./)||i.push(Vw(s)))}return i.join("")}function zS(A,e,t,r){if(!A)return"";var n=[];if(A["!margins"]&&(n.push("<PageSetup>"),A["!margins"].header&&n.push(WA("Header",null,{"x:Margin":A["!margins"].header})),A["!margins"].footer&&n.push(WA("Footer",null,{"x:Margin":A["!margins"].footer})),n.push(WA("PageMargins",null,{"x:Bottom":A["!margins"].bottom||"0.75","x:Left":A["!margins"].left||"0.7","x:Right":A["!margins"].right||"0.7","x:Top":A["!margins"].top||"0.75"})),n.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t])if(r.Workbook.Sheets[t].Hidden)n.push(WA("Visible",r.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<t&&!(r.Workbook.Sheets[i]&&!r.Workbook.Sheets[i].Hidden);++i);i==t&&n.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push("<DisplayRightToLeft/>"),A["!protect"]&&(n.push(Br("ProtectContents","True")),A["!protect"].objects&&n.push(Br("ProtectObjects","True")),A["!protect"].scenarios&&n.push(Br("ProtectScenarios","True")),A["!protect"].selectLockedCells!=null&&!A["!protect"].selectLockedCells?n.push(Br("EnableSelection","NoSelection")):A["!protect"].selectUnlockedCells!=null&&!A["!protect"].selectUnlockedCells&&n.push(Br("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){A["!protect"][a[0]]&&n.push("<"+a[1]+"/>")})),n.length==0?"":WA("WorksheetOptions",n.join(""),{xmlns:an.x})}function YS(A){return A.map(function(e){var t=A_(e.t||""),r=WA("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return WA("Comment",r,{"ss:Author":e.a})}).join("")}function JS(A,e,t,r,n,i,a){if(!A||A.v==null&&A.f==null)return"";var s={};if(A.f&&(s["ss:Formula"]="="+rt(Hh(A.f,a))),A.F&&A.F.slice(0,e.length)==e){var o=ar(A.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(o.r==a.r?"":"["+(o.r-a.r)+"]")+"C"+(o.c==a.c?"":"["+(o.c-a.c)+"]")}if(A.l&&A.l.Target&&(s["ss:HRef"]=rt(A.l.Target),A.l.Tooltip&&(s["x:HRefScreenTip"]=rt(A.l.Tooltip))),t["!merges"])for(var f=t["!merges"],l=0;l!=f.length;++l)f[l].s.c!=a.c||f[l].s.r!=a.r||(f[l].e.c>f[l].s.c&&(s["ss:MergeAcross"]=f[l].e.c-f[l].s.c),f[l].e.r>f[l].s.r&&(s["ss:MergeDown"]=f[l].e.r-f[l].s.r));var d="",g="";switch(A.t){case"z":if(!r.sheetStubs)return"";break;case"n":d="Number",g=String(A.v);break;case"b":d="Boolean",g=A.v?"1":"0";break;case"e":d="Error",g=v0[A.v];break;case"d":d="DateTime",g=new Date(A.v).toISOString(),A.z==null&&(A.z=A.z||Qt[14]);break;case"s":d="String",g=$E(A.v||"");break}var u=ma(r.cellXfs,A,r);s["ss:StyleID"]="s"+(21+u),s["ss:Index"]=a.c+1;var v=A.v!=null?g:"",B=A.t=="z"?"":'<Data ss:Type="'+d+'">'+v+"</Data>";return(A.c||[]).length>0&&(B+=YS(A.c)),WA("Cell",B,s)}function ZS(A,e){var t='<Row ss:Index="'+(A+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=yw(e.hpt)),e.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(t+=' ss:Hidden="1"')),t+">"}function $S(A,e,t,r){if(!A["!ref"])return"";var n=wt(A["!ref"]),i=A["!merges"]||[],a=0,s=[];A["!cols"]&&A["!cols"].forEach(function(x,F){Oh(x);var _=!!x.width,I=jl(F,x),L={"ss:Index":F+1};_&&(L["ss:Width"]=xl(I.width)),x.hidden&&(L["ss:Hidden"]="1"),s.push(WA("Column",null,L))});for(var o=Array.isArray(A),f=n.s.r;f<=n.e.r;++f){for(var l=[ZS(f,(A["!rows"]||[])[f])],d=n.s.c;d<=n.e.c;++d){var g=!1;for(a=0;a!=i.length;++a)if(!(i[a].s.c>d)&&!(i[a].s.r>f)&&!(i[a].e.c<d)&&!(i[a].e.r<f)){(i[a].s.c!=d||i[a].s.r!=f)&&(g=!0);break}if(!g){var u={r:f,c:d},v=nt(u),B=o?(A[f]||[])[d]:A[v];l.push(JS(B,v,A,e,t,r,u))}}l.push("</Row>"),l.length>2&&s.push(l.join(""))}return s.join("")}function A8(A,e,t){var r=[],n=t.SheetNames[A],i=t.Sheets[n],a=i?qS(i,e,A,t):"";return a.length>0&&r.push("<Names>"+a+"</Names>"),a=i?$S(i,e,A,t):"",a.length>0&&r.push("<Table>"+a+"</Table>"),r.push(zS(i,e,A,t)),r.join("")}function e8(A,e){e||(e={}),A.SSF||(A.SSF=jr(Qt)),A.SSF&&(Rl(),Pl(A.SSF),e.revssf=Ml(A.SSF),e.revssf[A.SSF[65535]]=0,e.ssf=A.SSF,e.cellXfs=[],ma(e.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(VS(A,e)),t.push(jS()),t.push(""),t.push("");for(var r=0;r<A.SheetNames.length;++r)t.push(WA("Worksheet",A8(r,e,A),{"ss:Name":rt(A.SheetNames[r])}));return t[2]=WS(A,e),t[3]=XS(A),Xt+WA("Workbook",t.join(""),{xmlns:an.ss,"xmlns:o":an.o,"xmlns:x":an.x,"xmlns:ss":an.ss,"xmlns:dt":an.dt,"xmlns:html":an.html})}var xu={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function t8(A,e){var t=[],r=[],n=[],i=0,a,s=z2(og,"n"),o=z2(fg,"n");if(A.Props)for(a=mr(A.Props),i=0;i<a.length;++i)(Object.prototype.hasOwnProperty.call(s,a[i])?t:Object.prototype.hasOwnProperty.call(o,a[i])?r:n).push([a[i],A.Props[a[i]]]);if(A.Custprops)for(a=mr(A.Custprops),i=0;i<a.length;++i)Object.prototype.hasOwnProperty.call(A.Props||{},a[i])||(Object.prototype.hasOwnProperty.call(s,a[i])?t:Object.prototype.hasOwnProperty.call(o,a[i])?r:n).push([a[i],A.Custprops[a[i]]]);var f=[];for(i=0;i<n.length;++i)dw.indexOf(n[i][0])>-1||cw.indexOf(n[i][0])>-1||n[i][1]!=null&&f.push(n[i]);r.length&&at.utils.cfb_add(e,"/SummaryInformation",dg(r,xu.SI,o,fg)),(t.length||f.length)&&at.utils.cfb_add(e,"/DocumentSummaryInformation",dg(t,xu.DSI,s,og,f.length?f:null,xu.UDI))}function r8(A,e){var t=e||{},r=at.utils.cfb_new({root:"R"}),n="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":n="/Workbook",t.biff=8;break;case"biff5":n="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return at.utils.cfb_add(r,n,jw(A,t)),t.biff==8&&(A.Props||A.Custprops)&&t8(A,r),t.biff==8&&A.vbaraw&&xb(r,at.read(A.vbaraw,{type:typeof A.vbaraw=="string"?"binary":"buffer"})),r}var n8={0:{f:sQ},1:{f:gQ},2:{f:OQ},3:{f:FQ},4:{f:vQ},5:{f:TQ},6:{f:RQ},7:{f:UQ},8:{f:XQ},9:{f:WQ},10:{f:VQ},11:{f:jQ},12:{f:BQ},13:{f:HQ},14:{f:EQ},15:{f:xQ},16:{f:IQ},17:{f:KQ},18:{f:QQ},19:{f:Th},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:LS},40:{},42:{},43:{f:RU},44:{f:kU},45:{f:GU},46:{f:jU},47:{f:VU},48:{},49:{f:B_},50:{},51:{f:sb},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:wU},62:{f:PQ},63:{f:hb},64:{f:fS},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ii,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:iS},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:hQ},148:{f:lQ,p:16},151:{f:$Q},152:{},153:{f:SS},154:{},155:{},156:{f:bS},157:{},158:{},159:{T:1,f:bU},160:{T:-1},161:{T:1,f:rs},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:qQ},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:ib},336:{T:-1},337:{f:lb,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:sh},357:{},358:{},359:{},360:{T:1},361:{},362:{f:uU},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:AS},427:{f:eS},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:rS},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:uQ},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:JQ},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:sh},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:wb},633:{T:1},634:{T:-1},635:{T:1,f:pb},636:{T:-1},637:{f:x_},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:CS},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:lS},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function XA(A,e,t,r){var n=e;if(!isNaN(n)){var i=r||(t||[]).length||0,a=A.next(4);a.write_shift(2,n),a.write_shift(2,i),i>0&&bh(t)&&A.push(t)}}function i8(A,e,t,r){var n=(t||[]).length||0;if(n<=8224)return XA(A,e,t,n);var i=e;if(!isNaN(i)){for(var a=t.parts||[],s=0,o=0,f=0;f+(a[s]||8224)<=8224;)f+=a[s]||8224,s++;var l=A.next(4);for(l.write_shift(2,i),l.write_shift(2,f),A.push(t.slice(o,o+f)),o+=f;o<n;){for(l=A.next(4),l.write_shift(2,60),f=0;f+(a[s]||8224)<=8224;)f+=a[s]||8224,s++;l.write_shift(2,f),A.push(t.slice(o,o+f)),o+=f}}}function x0(A,e,t){return A||(A=EA(7)),A.write_shift(2,e),A.write_shift(2,t),A.write_shift(2,0),A.write_shift(1,0),A}function a8(A,e,t,r){var n=EA(9);return x0(n,A,e),pw(t,r||"b",n),n}function s8(A,e,t){var r=EA(8+2*t.length);return x0(r,A,e),r.write_shift(1,t.length),r.write_shift(t.length,t,"sbcs"),r.l<r.length?r.slice(0,r.l):r}function o8(A,e,t,r){if(e.v!=null)switch(e.t){case"d":case"n":var n=e.t=="d"?Vr(kr(e.v)):e.v;n==(n|0)&&n>=0&&n<65536?XA(A,2,CU(t,r,n)):XA(A,3,xU(t,r,n));return;case"b":case"e":XA(A,5,a8(t,r,e.v,e.t));return;case"s":case"str":XA(A,4,s8(t,r,(e.v||"").slice(0,255)));return}XA(A,1,x0(null,t,r))}function f8(A,e,t,r){var n=Array.isArray(e),i=wt(e["!ref"]||"A1"),a,s="",o=[];if(i.e.c>255||i.e.r>16383){if(r.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),a=Wt(i)}for(var f=i.s.r;f<=i.e.r;++f){s=vr(f);for(var l=i.s.c;l<=i.e.c;++l){f===i.s.r&&(o[l]=Qr(l)),a=o[l]+s;var d=n?(e[f]||[])[l]:e[a];d&&o8(A,d,f,l)}}}function l8(A,e){for(var t=e||{},r=Gr(),n=0,i=0;i<A.SheetNames.length;++i)A.SheetNames[i]==t.sheet&&(n=i);if(n==0&&t.sheet&&A.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return XA(r,t.biff==4?1033:t.biff==3?521:9,Nh(A,16,t)),f8(r,A.Sheets[A.SheetNames[n]],n,t),XA(r,10),r.end()}function c8(A,e,t){XA(A,49,nU({sz:12,name:"Arial"},t))}function u8(A,e,t){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&XA(A,1054,sU(n,e[n],t))})}function h8(A,e){var t=EA(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),XA(A,2151,t),t=EA(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),vw(wt(e["!ref"]||"A1"),t),t.write_shift(4,4),XA(A,2152,t)}function d8(A,e){for(var t=0;t<16;++t)XA(A,224,pg({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(r){XA(A,224,pg(r,0,e))})}function g8(A,e){for(var t=0;t<e["!links"].length;++t){var r=e["!links"][t];XA(A,440,gU(r)),r[1].Tooltip&&XA(A,2048,pU(r))}delete e["!links"]}function p8(A,e){if(e){var t=0;e.forEach(function(r,n){++t<=256&&r&&XA(A,125,vU(jl(n,r),n))})}}function B8(A,e,t,r,n){var i=16+ma(n.cellXfs,e,n);if(e.v==null&&!e.bf){XA(A,513,Ya(t,r,i));return}if(e.bf)XA(A,6,M6(e,t,r,n,i));else switch(e.t){case"d":case"n":var a=e.t=="d"?Vr(kr(e.v)):e.v;XA(A,515,cU(t,r,a,i));break;case"b":case"e":XA(A,517,lU(t,r,e.v,i,n,e.t));break;case"s":case"str":if(n.bookSST){var s=Ph(n.Strings,e.v,n.revStrings);XA(A,253,iU(t,r,s,i))}else XA(A,516,aU(t,r,(e.v||"").slice(0,255),i,n));break;default:XA(A,513,Ya(t,r,i))}}function w8(A,e,t){var r=Gr(),n=t.SheetNames[A],i=t.Sheets[n]||{},a=(t||{}).Workbook||{},s=(a.Sheets||[])[A]||{},o=Array.isArray(i),f=e.biff==8,l,d="",g=[],u=wt(i["!ref"]||"A1"),v=f?65536:16384;if(u.e.c>255||u.e.r>=v){if(e.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");u.e.c=Math.min(u.e.c,255),u.e.r=Math.min(u.e.c,v-1)}XA(r,2057,Nh(t,16,e)),XA(r,13,vn(1)),XA(r,12,vn(100)),XA(r,15,Hr(!0)),XA(r,17,Hr(!1)),XA(r,16,za(.001)),XA(r,95,Hr(!0)),XA(r,42,Hr(!1)),XA(r,43,Hr(!1)),XA(r,130,vn(1)),XA(r,128,fU()),XA(r,131,Hr(!1)),XA(r,132,Hr(!1)),f&&p8(r,i["!cols"]),XA(r,512,oU(u,e)),f&&(i["!links"]=[]);for(var B=u.s.r;B<=u.e.r;++B){d=vr(B);for(var x=u.s.c;x<=u.e.c;++x){B===u.s.r&&(g[x]=Qr(x)),l=g[x]+d;var F=o?(i[B]||[])[x]:i[l];F&&(B8(r,F,B,x,e),f&&F.l&&i["!links"].push([l,F.l]))}}var _=s.CodeName||s.name||n;return f&&XA(r,574,rU((a.Views||[])[0])),f&&(i["!merges"]||[]).length&&XA(r,229,dU(i["!merges"])),f&&g8(r,i),XA(r,442,ww(_)),f&&h8(r,i),XA(r,10),r.end()}function v8(A,e,t){var r=Gr(),n=(A||{}).Workbook||{},i=n.Sheets||[],a=n.WBProps||{},s=t.biff==8,o=t.biff==5;if(XA(r,2057,Nh(A,5,t)),t.bookType=="xla"&&XA(r,135),XA(r,225,s?vn(1200):null),XA(r,193,V_(2)),o&&XA(r,191),o&&XA(r,192),XA(r,226),XA(r,92,$_("SheetJS",t)),XA(r,66,vn(s?1200:1252)),s&&XA(r,353,vn(0)),s&&XA(r,448),XA(r,317,mU(A.SheetNames.length)),s&&A.vbaraw&&XA(r,211),s&&A.vbaraw){var f=a.CodeName||"ThisWorkbook";XA(r,442,ww(f))}XA(r,156,vn(17)),XA(r,25,Hr(!1)),XA(r,18,Hr(!1)),XA(r,19,vn(0)),s&&XA(r,431,Hr(!1)),s&&XA(r,444,vn(0)),XA(r,61,tU()),XA(r,64,Hr(!1)),XA(r,141,vn(0)),XA(r,34,Hr(yS(A)=="true")),XA(r,14,Hr(!0)),s&&XA(r,439,Hr(!1)),XA(r,218,vn(0)),c8(r,A,t),u8(r,A.SSF,t),d8(r,t),s&&XA(r,352,Hr(!1));var l=r.end(),d=Gr();s&&XA(d,140,BU()),s&&t.Strings&&i8(d,252,eU(t.Strings)),XA(d,10);var g=d.end(),u=Gr(),v=0,B=0;for(B=0;B<A.SheetNames.length;++B)v+=(s?12:11)+(s?2:1)*A.SheetNames[B].length;var x=l.length+v+g.length;for(B=0;B<A.SheetNames.length;++B){var F=i[B]||{};XA(u,133,AU({pos:x,hs:F.Hidden||0,dt:0,name:A.SheetNames[B]},t)),x+=e[B].length}var _=u.end();if(v!=_.length)throw new Error("BS8 "+v+" != "+_.length);var I=[];return l.length&&I.push(l),_.length&&I.push(_),g.length&&I.push(g),pr(I)}function m8(A,e){var t=e||{},r=[];A&&!A.SSF&&(A.SSF=jr(Qt)),A&&A.SSF&&(Rl(),Pl(A.SSF),t.revssf=Ml(A.SSF),t.revssf[A.SSF[65535]]=0,t.ssf=A.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Rh(t),t.cellXfs=[],ma(t.cellXfs,{},{revssf:{General:0}}),A.Props||(A.Props={});for(var n=0;n<A.SheetNames.length;++n)r[r.length]=w8(n,t,A);return r.unshift(v8(A,r,t)),pr(r)}function jw(A,e){for(var t=0;t<=A.SheetNames.length;++t){var r=A.Sheets[A.SheetNames[t]];if(!(!r||!r["!ref"])){var n=fn(r["!ref"]);n.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+A.SheetNames[t]+"' extends beyond column IV (255).  Data may be lost.")}}var i=e||{};switch(i.biff||2){case 8:case 5:return m8(A,e);case 4:case 3:case 2:return l8(A,e)}throw new Error("invalid type "+i.bookType+" for BIFF")}function x8(A,e,t,r){for(var n=A["!merges"]||[],i=[],a=e.s.c;a<=e.e.c;++a){for(var s=0,o=0,f=0;f<n.length;++f)if(!(n[f].s.r>t||n[f].s.c>a)&&!(n[f].e.r<t||n[f].e.c<a)){if(n[f].s.r<t||n[f].s.c<a){s=-1;break}s=n[f].e.r-n[f].s.r+1,o=n[f].e.c-n[f].s.c+1;break}if(!(s<0)){var l=nt({r:t,c:a}),d=r.dense?(A[t]||[])[a]:A[l],g=d&&d.v!=null&&(d.h||ZE(d.w||(Hi(d),d.w)||""))||"",u={};s>1&&(u.rowspan=s),o>1&&(u.colspan=o),r.editable?g='<span contenteditable="true">'+g+"</span>":d&&(u["data-t"]=d&&d.t||"z",d.v!=null&&(u["data-v"]=d.v),d.z!=null&&(u["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(g='<a href="'+d.l.Target+'">'+g+"</a>")),u.id=(r.id||"sjs")+"-"+l,i.push(WA("td",g,u))}}var v="<tr>";return v+i.join("")+"</tr>"}var C8='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',F8="</body></html>";function y8(A,e,t){var r=[];return r.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function Ww(A,e){var t=e||{},r=t.header!=null?t.header:C8,n=t.footer!=null?t.footer:F8,i=[r],a=fn(A["!ref"]);t.dense=Array.isArray(A),i.push(y8(A,a,t));for(var s=a.s.r;s<=a.e.r;++s)i.push(x8(A,a,s,t));return i.push("</table>"+n),i.join("")}function Xw(A,e,t){var r=t||{},n=0,i=0;if(r.origin!=null)if(typeof r.origin=="number")n=r.origin;else{var a=typeof r.origin=="string"?ar(r.origin):r.origin;n=a.r,i=a.c}var s=e.getElementsByTagName("tr"),o=Math.min(r.sheetRows||1e7,s.length),f={s:{r:0,c:0},e:{r:n,c:i}};if(A["!ref"]){var l=fn(A["!ref"]);f.s.r=Math.min(f.s.r,l.s.r),f.s.c=Math.min(f.s.c,l.s.c),f.e.r=Math.max(f.e.r,l.e.r),f.e.c=Math.max(f.e.c,l.e.c),n==-1&&(f.e.r=n=l.e.r+1)}var d=[],g=0,u=A["!rows"]||(A["!rows"]=[]),v=0,B=0,x=0,F=0,_=0,I=0;for(A["!cols"]||(A["!cols"]=[]);v<s.length&&B<o;++v){var L=s[v];if(Fg(L)){if(r.display)continue;u[B]={hidden:!0}}var q=L.children;for(x=F=0;x<q.length;++x){var rA=q[x];if(!(r.display&&Fg(rA))){var M=rA.hasAttribute("data-v")?rA.getAttribute("data-v"):rA.hasAttribute("v")?rA.getAttribute("v"):t_(rA.innerHTML),R=rA.getAttribute("data-z")||rA.getAttribute("z");for(g=0;g<d.length;++g){var E=d[g];E.s.c==F+i&&E.s.r<B+n&&B+n<=E.e.r&&(F=E.e.c+1-i,g=-1)}I=+rA.getAttribute("colspan")||1,((_=+rA.getAttribute("rowspan")||1)>1||I>1)&&d.push({s:{r:B+n,c:F+i},e:{r:B+n+(_||1)-1,c:F+i+(I||1)-1}});var X={t:"s",v:M},y=rA.getAttribute("data-t")||rA.getAttribute("t")||"";M!=null&&(M.length==0?X.t=y||"z":r.raw||M.trim().length==0||y=="s"||(M==="TRUE"?X={t:"b",v:!0}:M==="FALSE"?X={t:"b",v:!1}:isNaN(Ii(M))?isNaN(o0(M).getDate())||(X={t:"d",v:kr(M)},r.cellDates||(X={t:"n",v:Vr(X.v)}),X.z=r.dateNF||Qt[14]):X={t:"n",v:Ii(M)})),X.z===void 0&&R!=null&&(X.z=R);var T="",P=rA.getElementsByTagName("A");if(P&&P.length)for(var eA=0;eA<P.length&&!(P[eA].hasAttribute("href")&&(T=P[eA].getAttribute("href"),T.charAt(0)!="#"));++eA);T&&T.charAt(0)!="#"&&(X.l={Target:T}),r.dense?(A[B+n]||(A[B+n]=[]),A[B+n][F+i]=X):A[nt({c:F+i,r:B+n})]=X,f.e.c<F+i&&(f.e.c=F+i),F+=I}}++B}return d.length&&(A["!merges"]=(A["!merges"]||[]).concat(d)),f.e.r=Math.max(f.e.r,B-1+n),A["!ref"]=Wt(f),B>=o&&(A["!fullref"]=Wt((f.e.r=s.length-v+B-1+n,f))),A}function qw(A,e){var t=e||{},r=t.dense?[]:{};return Xw(r,A,e)}function E8(A,e){return $a(qw(A,e),e)}function Fg(A){var e="",t=_8(A);return t&&(e=t(A).getPropertyValue("display")),e||(e=A.style&&A.style.display),e==="none"}function _8(A){return A.ownerDocument.defaultView&&typeof A.ownerDocument.defaultView.getComputedStyle=="function"?A.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var U8=(function(){var A=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+l0({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+A+"</office:document-styles>";return function(){return Xt+e}})(),yg=(function(){var A=function(i){return rt(i).replace(/  +/g,function(a){return'<text:s text:c="'+a.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=`          <table:table-cell />
`,t=`          <table:covered-table-cell/>
`,r=function(i,a,s){var o=[];o.push('      <table:table table:name="'+rt(a.SheetNames[s])+`" table:style-name="ta1">
`);var f=0,l=0,d=fn(i["!ref"]||"A1"),g=i["!merges"]||[],u=0,v=Array.isArray(i);if(i["!cols"])for(l=0;l<=d.e.c;++l)o.push("        <table:table-column"+(i["!cols"][l]?' table:style-name="co'+i["!cols"][l].ods+'"':"")+`></table:table-column>
`);var B="",x=i["!rows"]||[];for(f=0;f<d.s.r;++f)B=x[f]?' table:style-name="ro'+x[f].ods+'"':"",o.push("        <table:table-row"+B+`></table:table-row>
`);for(;f<=d.e.r;++f){for(B=x[f]?' table:style-name="ro'+x[f].ods+'"':"",o.push("        <table:table-row"+B+`>
`),l=0;l<d.s.c;++l)o.push(e);for(;l<=d.e.c;++l){var F=!1,_={},I="";for(u=0;u!=g.length;++u)if(!(g[u].s.c>l)&&!(g[u].s.r>f)&&!(g[u].e.c<l)&&!(g[u].e.r<f)){(g[u].s.c!=l||g[u].s.r!=f)&&(F=!0),_["table:number-columns-spanned"]=g[u].e.c-g[u].s.c+1,_["table:number-rows-spanned"]=g[u].e.r-g[u].s.r+1;break}if(F){o.push(t);continue}var L=nt({r:f,c:l}),q=v?(i[f]||[])[l]:i[L];if(q&&q.f&&(_["table:formula"]=rt(X6(q.f)),q.F&&q.F.slice(0,L.length)==L)){var rA=fn(q.F);_["table:number-matrix-columns-spanned"]=rA.e.c-rA.s.c+1,_["table:number-matrix-rows-spanned"]=rA.e.r-rA.s.r+1}if(!q){o.push(e);continue}switch(q.t){case"b":I=q.v?"TRUE":"FALSE",_["office:value-type"]="boolean",_["office:boolean-value"]=q.v?"true":"false";break;case"n":I=q.w||String(q.v||0),_["office:value-type"]="float",_["office:value"]=q.v||0;break;case"s":case"str":I=q.v==null?"":q.v,_["office:value-type"]="string";break;case"d":I=q.w||kr(q.v).toISOString(),_["office:value-type"]="date",_["office:date-value"]=kr(q.v).toISOString(),_["table:style-name"]="ce1";break;default:o.push(e);continue}var M=A(I);if(q.l&&q.l.Target){var R=q.l.Target;R=R.charAt(0)=="#"?"#"+q6(R.slice(1)):R,R.charAt(0)!="#"&&!R.match(/^\w+:/)&&(R="../"+R),M=WA("text:a",M,{"xlink:href":R.replace(/&/g,"&amp;")})}o.push("          "+WA("table:table-cell",WA("text:p",M,{}),_)+`
`)}o.push(`        </table:table-row>
`)}return o.push(`      </table:table>
`),o.join("")},n=function(i,a){i.push(` <office:automatic-styles>
`),i.push(`  <number:date-style style:name="N37" number:automatic-order="true">
`),i.push(`   <number:month number:style="long"/>
`),i.push(`   <number:text>/</number:text>
`),i.push(`   <number:day number:style="long"/>
`),i.push(`   <number:text>/</number:text>
`),i.push(`   <number:year/>
`),i.push(`  </number:date-style>
`);var s=0;a.SheetNames.map(function(f){return a.Sheets[f]}).forEach(function(f){if(f&&f["!cols"]){for(var l=0;l<f["!cols"].length;++l)if(f["!cols"][l]){var d=f["!cols"][l];if(d.width==null&&d.wpx==null&&d.wch==null)continue;Oh(d),d.ods=s;var g=f["!cols"][l].wpx+"px";i.push('  <style:style style:name="co'+s+`" style:family="table-column">
`),i.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+g+`"/>
`),i.push(`  </style:style>
`),++s}}});var o=0;a.SheetNames.map(function(f){return a.Sheets[f]}).forEach(function(f){if(f&&f["!rows"]){for(var l=0;l<f["!rows"].length;++l)if(f["!rows"][l]){f["!rows"][l].ods=o;var d=f["!rows"][l].hpx+"px";i.push('  <style:style style:name="ro'+o+`" style:family="table-row">
`),i.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+d+`"/>
`),i.push(`  </style:style>
`),++o}}}),i.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),i.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),i.push(`  </style:style>
`),i.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),i.push(` </office:automatic-styles>
`)};return function(a,s){var o=[Xt],f=l0({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),l=l0({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(o.push("<office:document"+f+l+`>
`),o.push(fw().replace(/office:document-meta/g,"office:meta"))):o.push("<office:document-content"+f+`>
`),n(o,a),o.push(`  <office:body>
`),o.push(`    <office:spreadsheet>
`);for(var d=0;d!=a.SheetNames.length;++d)o.push(r(a.Sheets[a.SheetNames[d]],a,d));return o.push(`    </office:spreadsheet>
`),o.push(`  </office:body>
`),s.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}})();function zw(A,e){if(e.bookType=="fods")return yg(A,e);var t=yh(),r="",n=[],i=[];return r="mimetype",He(t,r,"application/vnd.oasis.opendocument.spreadsheet"),r="content.xml",He(t,r,yg(A,e)),n.push([r,"text/xml"]),i.push([r,"ContentFile"]),r="styles.xml",He(t,r,U8(A,e)),n.push([r,"text/xml"]),i.push([r,"StylesFile"]),r="meta.xml",He(t,r,Xt+fw()),n.push([r,"text/xml"]),i.push([r,"MetadataFile"]),r="manifest.rdf",He(t,r,P_(i)),n.push([r,"application/rdf+xml"]),r="META-INF/manifest.xml",He(t,r,H_(n)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function yl(A){return new DataView(A.buffer,A.byteOffset,A.byteLength)}function b8(A){return typeof TextEncoder<"u"?new TextEncoder().encode(A):kn(f0(A))}function Q8(A,e){A:for(var t=0;t<=A.length-e.length;++t){for(var r=0;r<e.length;++r)if(A[t+r]!=e[r])continue A;return!0}return!1}function va(A){var e=A.reduce(function(n,i){return n+i.length},0),t=new Uint8Array(e),r=0;return A.forEach(function(n){t.set(n,r),r+=n.length}),t}function S8(A,e,t){var r=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,n=t/Math.pow(10,r-6176);A[e+15]|=r>>7,A[e+14]|=(r&127)<<1;for(var i=0;n>=1;++i,n/=256)A[e+i]=n&255;A[e+15]|=t>=0?0:128}function c0(A,e){var t=e?e[0]:0,r=A[t]&127;A:if(A[t++]>=128&&(r|=(A[t]&127)<<7,A[t++]<128||(r|=(A[t]&127)<<14,A[t++]<128)||(r|=(A[t]&127)<<21,A[t++]<128)||(r+=(A[t]&127)*Math.pow(2,28),++t,A[t++]<128)||(r+=(A[t]&127)*Math.pow(2,35),++t,A[t++]<128)||(r+=(A[t]&127)*Math.pow(2,42),++t,A[t++]<128)))break A;return e&&(e[0]=t),r}function At(A){var e=new Uint8Array(7);e[0]=A&127;var t=1;A:if(A>127){if(e[t-1]|=128,e[t]=A>>7&127,++t,A<=16383||(e[t-1]|=128,e[t]=A>>14&127,++t,A<=2097151)||(e[t-1]|=128,e[t]=A>>21&127,++t,A<=268435455)||(e[t-1]|=128,e[t]=A/256>>>21&127,++t,A<=34359738367)||(e[t-1]|=128,e[t]=A/65536>>>21&127,++t,A<=4398046511103))break A;e[t-1]|=128,e[t]=A/16777216>>>21&127,++t}return e.slice(0,t)}function Gs(A){var e=0,t=A[e]&127;A:if(A[e++]>=128){if(t|=(A[e]&127)<<7,A[e++]<128||(t|=(A[e]&127)<<14,A[e++]<128)||(t|=(A[e]&127)<<21,A[e++]<128))break A;t|=(A[e]&127)<<28}return t}function Ar(A){for(var e=[],t=[0];t[0]<A.length;){var r=t[0],n=c0(A,t),i=n&7;n=Math.floor(n/8);var a=0,s;if(n==0)break;switch(i){case 0:{for(var o=t[0];A[t[0]++]>=128;);s=A.slice(o,t[0])}break;case 5:a=4,s=A.slice(t[0],t[0]+a),t[0]+=a;break;case 1:a=8,s=A.slice(t[0],t[0]+a),t[0]+=a;break;case 2:a=c0(A,t),s=A.slice(t[0],t[0]+a),t[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(r))}var f={data:s,type:i};e[n]==null?e[n]=[f]:e[n].push(f)}return e}function hr(A){var e=[];return A.forEach(function(t,r){t.forEach(function(n){n.data&&(e.push(At(r*8+n.type)),n.type==2&&e.push(At(n.data.length)),e.push(n.data))})}),va(e)}function On(A){for(var e,t=[],r=[0];r[0]<A.length;){var n=c0(A,r),i=Ar(A.slice(r[0],r[0]+n));r[0]+=n;var a={id:Gs(i[1][0].data),messages:[]};i[2].forEach(function(s){var o=Ar(s.data),f=Gs(o[3][0].data);a.messages.push({meta:o,data:A.slice(r[0],r[0]+f)}),r[0]+=f}),(e=i[3])!=null&&e[0]&&(a.merge=Gs(i[3][0].data)>>>0>0),t.push(a)}return t}function Es(A){var e=[];return A.forEach(function(t){var r=[];r[1]=[{data:At(t.id),type:0}],r[2]=[],t.merge!=null&&(r[3]=[{data:At(+!!t.merge),type:0}]);var n=[];t.messages.forEach(function(a){n.push(a.data),a.meta[3]=[{type:0,data:At(a.data.length)}],r[2].push({data:hr(a.meta),type:2})});var i=hr(r);e.push(At(i.length)),e.push(i),n.forEach(function(a){return e.push(a)})}),va(e)}function T8(A,e){if(A!=0)throw new Error("Unexpected Snappy chunk type ".concat(A));for(var t=[0],r=c0(e,t),n=[];t[0]<e.length;){var i=e[t[0]]&3;if(i==0){var a=e[t[0]++]>>2;if(a<60)++a;else{var s=a-59;a=e[t[0]],s>1&&(a|=e[t[0]+1]<<8),s>2&&(a|=e[t[0]+2]<<16),s>3&&(a|=e[t[0]+3]<<24),a>>>=0,a++,t[0]+=s}n.push(e.slice(t[0],t[0]+a)),t[0]+=a;continue}else{var o=0,f=0;if(i==1?(f=(e[t[0]]>>2&7)+4,o=(e[t[0]++]&224)<<3,o|=e[t[0]++]):(f=(e[t[0]++]>>2)+1,i==2?(o=e[t[0]]|e[t[0]+1]<<8,t[0]+=2):(o=(e[t[0]]|e[t[0]+1]<<8|e[t[0]+2]<<16|e[t[0]+3]<<24)>>>0,t[0]+=4)),n=[va(n)],o==0)throw new Error("Invalid offset 0");if(o>n[0].length)throw new Error("Invalid offset beyond length");if(f>=o)for(n.push(n[0].slice(-o)),f-=o;f>=n[n.length-1].length;)n.push(n[n.length-1]),f-=n[n.length-1].length;n.push(n[0].slice(-o,-o+f))}}var l=va(n);if(l.length!=r)throw new Error("Unexpected length: ".concat(l.length," != ").concat(r));return l}function Dn(A){for(var e=[],t=0;t<A.length;){var r=A[t++],n=A[t]|A[t+1]<<8|A[t+2]<<16;t+=3,e.push(T8(r,A.slice(t,t+n))),t+=n}if(t!==A.length)throw new Error("data is not a valid framed stream!");return va(e)}function _s(A){for(var e=[],t=0;t<A.length;){var r=Math.min(A.length-t,268435455),n=new Uint8Array(4);e.push(n);var i=At(r),a=i.length;e.push(i),r<=60?(a++,e.push(new Uint8Array([r-1<<2]))):r<=256?(a+=2,e.push(new Uint8Array([240,r-1&255]))):r<=65536?(a+=3,e.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(a+=4,e.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(a+=5,e.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),e.push(A.slice(t,t+r)),a+=r,n[0]=0,n[1]=a&255,n[2]=a>>8&255,n[3]=a>>16&255,t+=r}return va(e)}function Cu(A,e){var t=new Uint8Array(32),r=yl(t),n=12,i=0;switch(t[0]=5,A.t){case"n":t[1]=2,S8(t,n,A.v),i|=1,n+=16;break;case"b":t[1]=6,r.setFloat64(n,A.v?1:0,!0),i|=2,n+=8;break;case"s":if(e.indexOf(A.v)==-1)throw new Error("Value ".concat(A.v," missing from SST!"));t[1]=3,r.setUint32(n,e.indexOf(A.v),!0),i|=8,n+=4;break;default:throw"unsupported cell type "+A.t}return r.setUint32(8,i,!0),t.slice(0,n)}function Fu(A,e){var t=new Uint8Array(32),r=yl(t),n=12,i=0;switch(t[0]=3,A.t){case"n":t[2]=2,r.setFloat64(n,A.v,!0),i|=32,n+=8;break;case"b":t[2]=6,r.setFloat64(n,A.v?1:0,!0),i|=32,n+=8;break;case"s":if(e.indexOf(A.v)==-1)throw new Error("Value ".concat(A.v," missing from SST!"));t[2]=3,r.setUint32(n,e.indexOf(A.v),!0),i|=16,n+=4;break;default:throw"unsupported cell type "+A.t}return r.setUint32(4,i,!0),t.slice(0,n)}function ra(A){var e=Ar(A);return c0(e[1][0].data)}function L8(A,e,t){var r,n,i,a;if(!((r=A[6])!=null&&r[0])||!((n=A[7])!=null&&n[0]))throw"Mutation only works on post-BNC storages!";var s=((a=(i=A[8])==null?void 0:i[0])==null?void 0:a.data)&&Gs(A[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var o=0,f=yl(A[7][0].data),l=0,d=[],g=yl(A[4][0].data),u=0,v=[],B=0;B<e.length;++B){if(e[B]==null){f.setUint16(B*2,65535,!0),g.setUint16(B*2,65535);continue}f.setUint16(B*2,l,!0),g.setUint16(B*2,u,!0);var x,F;switch(typeof e[B]){case"string":x=Cu({t:"s",v:e[B]},t),F=Fu({t:"s",v:e[B]},t);break;case"number":x=Cu({t:"n",v:e[B]},t),F=Fu({t:"n",v:e[B]},t);break;case"boolean":x=Cu({t:"b",v:e[B]},t),F=Fu({t:"b",v:e[B]},t);break;default:throw new Error("Unsupported value "+e[B])}d.push(x),l+=x.length,v.push(F),u+=F.length,++o}for(A[2][0].data=At(o);B<A[7][0].data.length/2;++B)f.setUint16(B*2,65535,!0),g.setUint16(B*2,65535,!0);return A[6][0].data=va(d),A[3][0].data=va(v),o}function I8(A,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=A.Sheets[A.SheetNames[0]];A.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=fn(t["!ref"]);r.s.r=r.s.c=0;var n=!1;r.e.c>9&&(n=!0,r.e.c=9),r.e.r>49&&(n=!0,r.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(Wt(r)));var i=El(t,{range:r,header:1}),a=["~Sh33tJ5~"];i.forEach(function(Q){return Q.forEach(function(U){typeof U=="string"&&a.push(U)})});var s={},o=[],f=at.read(e.numbers,{type:"base64"});f.FileIndex.map(function(Q,U){return[Q,f.FullPaths[U]]}).forEach(function(Q){var U=Q[0],N=Q[1];if(U.type==2&&U.name.match(/\.iwa/)){var j=U.content,nA=Dn(j),fA=On(nA);fA.forEach(function(oA){o.push(oA.id),s[oA.id]={deps:[],location:N,type:Gs(oA.messages[0].meta[1][0].data)}})}}),o.sort(function(Q,U){return Q-U});var l=o.filter(function(Q){return Q>1}).map(function(Q){return[Q,At(Q)]});f.FileIndex.map(function(Q,U){return[Q,f.FullPaths[U]]}).forEach(function(Q){var U=Q[0];if(Q[1],!!U.name.match(/\.iwa/)){var N=On(Dn(U.content));N.forEach(function(j){j.messages.forEach(function(nA){l.forEach(function(fA){j.messages.some(function(oA){return Gs(oA.meta[1][0].data)!=11006&&Q8(oA.data,fA[1])})&&s[fA[0]].deps.push(j.id)})})})}});for(var d=at.find(f,s[1].location),g=On(Dn(d.content)),u,v=0;v<g.length;++v){var B=g[v];B.id==1&&(u=B)}var x=ra(Ar(u.messages[0].data)[1][0].data);for(d=at.find(f,s[x].location),g=On(Dn(d.content)),v=0;v<g.length;++v)B=g[v],B.id==x&&(u=B);for(x=ra(Ar(u.messages[0].data)[2][0].data),d=at.find(f,s[x].location),g=On(Dn(d.content)),v=0;v<g.length;++v)B=g[v],B.id==x&&(u=B);for(x=ra(Ar(u.messages[0].data)[2][0].data),d=at.find(f,s[x].location),g=On(Dn(d.content)),v=0;v<g.length;++v)B=g[v],B.id==x&&(u=B);var F=Ar(u.messages[0].data);{F[6][0].data=At(r.e.r+1),F[7][0].data=At(r.e.c+1);var _=ra(F[46][0].data),I=at.find(f,s[_].location),L=On(Dn(I.content));{for(var q=0;q<L.length&&L[q].id!=_;++q);if(L[q].id!=_)throw"Bad ColumnRowUIDMapArchive";var rA=Ar(L[q].messages[0].data);rA[1]=[],rA[2]=[],rA[3]=[];for(var M=0;M<=r.e.c;++M){var R=[];R[1]=R[2]=[{type:0,data:At(M+420690)}],rA[1].push({type:2,data:hr(R)}),rA[2].push({type:0,data:At(M)}),rA[3].push({type:0,data:At(M)})}rA[4]=[],rA[5]=[],rA[6]=[];for(var E=0;E<=r.e.r;++E)R=[],R[1]=R[2]=[{type:0,data:At(E+726270)}],rA[4].push({type:2,data:hr(R)}),rA[5].push({type:0,data:At(E)}),rA[6].push({type:0,data:At(E)});L[q].messages[0].data=hr(rA)}I.content=_s(Es(L)),I.size=I.content.length,delete F[46];var X=Ar(F[4][0].data);{X[7][0].data=At(r.e.r+1);var y=Ar(X[1][0].data),T=ra(y[2][0].data);I=at.find(f,s[T].location),L=On(Dn(I.content));{if(L[0].id!=T)throw"Bad HeaderStorageBucket";var P=Ar(L[0].messages[0].data);for(E=0;E<i.length;++E){var eA=Ar(P[2][0].data);eA[1][0].data=At(E),eA[4][0].data=At(i[E].length),P[2][E]={type:P[2][0].type,data:hr(eA)}}L[0].messages[0].data=hr(P)}I.content=_s(Es(L)),I.size=I.content.length;var sA=ra(X[2][0].data);I=at.find(f,s[sA].location),L=On(Dn(I.content));{if(L[0].id!=sA)throw"Bad HeaderStorageBucket";for(P=Ar(L[0].messages[0].data),M=0;M<=r.e.c;++M)eA=Ar(P[2][0].data),eA[1][0].data=At(M),eA[4][0].data=At(r.e.r+1),P[2][M]={type:P[2][0].type,data:hr(eA)};L[0].messages[0].data=hr(P)}I.content=_s(Es(L)),I.size=I.content.length;var wA=ra(X[4][0].data);(function(){for(var Q=at.find(f,s[wA].location),U=On(Dn(Q.content)),N,j=0;j<U.length;++j){var nA=U[j];nA.id==wA&&(N=nA)}var fA=Ar(N.messages[0].data);{fA[3]=[];var oA=[];a.forEach(function(HA,GA){oA[1]=[{type:0,data:At(GA)}],oA[2]=[{type:0,data:At(1)}],oA[3]=[{type:2,data:b8(HA)}],fA[3].push({type:2,data:hr(oA)})})}N.messages[0].data=hr(fA);var lA=Es(U),SA=_s(lA);Q.content=SA,Q.size=Q.content.length})();var gA=Ar(X[3][0].data);{var hA=gA[1][0];delete gA[2];var CA=Ar(hA.data);{var IA=ra(CA[2][0].data);(function(){for(var Q=at.find(f,s[IA].location),U=On(Dn(Q.content)),N,j=0;j<U.length;++j){var nA=U[j];nA.id==IA&&(N=nA)}var fA=Ar(N.messages[0].data);{delete fA[6],delete gA[7];var oA=new Uint8Array(fA[5][0].data);fA[5]=[];for(var lA=0,SA=0;SA<=r.e.r;++SA){var HA=Ar(oA);lA+=L8(HA,i[SA],a),HA[1][0].data=At(SA),fA[5].push({data:hr(HA),type:2})}fA[1]=[{type:0,data:At(r.e.c+1)}],fA[2]=[{type:0,data:At(r.e.r+1)}],fA[3]=[{type:0,data:At(lA)}],fA[4]=[{type:0,data:At(r.e.r+1)}]}N.messages[0].data=hr(fA);var GA=Es(U),VA=_s(GA);Q.content=VA,Q.size=Q.content.length})()}hA.data=hr(CA)}X[3][0].data=hr(gA)}F[4][0].data=hr(X)}u.messages[0].data=hr(F);var _A=Es(g),m=_s(_A);return d.content=m,d.size=d.content.length,f}function N8(A){return function(t){for(var r=0;r!=A.length;++r){var n=A[r];t[n[0]]===void 0&&(t[n[0]]=n[1]),n[2]==="n"&&(t[n[0]]=Number(t[n[0]]))}}}function Rh(A){N8([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(A)}function O8(A,e){return e.bookType=="ods"?zw(A,e):e.bookType=="numbers"?I8(A,e):e.bookType=="xlsb"?D8(A,e):H8(A,e)}function D8(A,e){Ns=1024,A&&!A.SSF&&(A.SSF=jr(Qt)),A&&A.SSF&&(Rl(),Pl(A.SSF),e.revssf=Ml(A.SSF),e.revssf[A.SSF[65535]]=0,e.ssf=A.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,A0?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var t=e.bookType=="xlsb"?"bin":"xml",r=Tw.indexOf(e.bookType)>-1,n=aw();Rh(e=e||{});var i=yh(),a="",s=0;if(e.cellXfs=[],ma(e.cellXfs,{},{revssf:{General:0}}),A.Props||(A.Props={}),a="docProps/core.xml",He(i,a,lw(A.Props,e)),n.coreprops.push(a),et(e.rels,2,a,Xe.CORE_PROPS),a="docProps/app.xml",!(A.Props&&A.Props.SheetNames))if(!A.Workbook||!A.Workbook.Sheets)A.Props.SheetNames=A.SheetNames;else{for(var o=[],f=0;f<A.SheetNames.length;++f)(A.Workbook.Sheets[f]||{}).Hidden!=2&&o.push(A.SheetNames[f]);A.Props.SheetNames=o}for(A.Props.Worksheets=A.Props.SheetNames.length,He(i,a,uw(A.Props)),n.extprops.push(a),et(e.rels,3,a,Xe.EXT_PROPS),A.Custprops!==A.Props&&mr(A.Custprops||{}).length>0&&(a="docProps/custom.xml",He(i,a,hw(A.Custprops)),n.custprops.push(a),et(e.rels,4,a,Xe.CUST_PROPS)),s=1;s<=A.SheetNames.length;++s){var l={"!id":{}},d=A.Sheets[A.SheetNames[s-1]],g=(d||{})["!type"]||"sheet";switch(g){case"chart":default:a="xl/worksheets/sheet"+s+"."+t,He(i,a,PS(s-1,a,e,A,l)),n.sheets.push(a),et(e.wbrels,-1,"worksheets/sheet"+s+"."+t,Xe.WS[0])}if(d){var u=d["!comments"],v=!1,B="";u&&u.length>0&&(B="xl/comments"+s+"."+t,He(i,B,KS(u,B)),n.comments.push(B),et(l,-1,"../comments"+s+"."+t,Xe.CMNT),v=!0),d["!legacy"]&&v&&He(i,"xl/drawings/vmlDrawing"+s+".vml",Qw(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}l["!id"].rId1&&He(i,ow(a),Ms(l))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+t,He(i,a,MS(e.Strings,a,e)),n.strs.push(a),et(e.wbrels,-1,"sharedStrings."+t,Xe.SST)),a="xl/workbook."+t,He(i,a,kS(A,a)),n.workbooks.push(a),et(e.rels,1,a,Xe.WB),a="xl/theme/theme1.xml",He(i,a,Uw(A.Themes,e)),n.themes.push(a),et(e.wbrels,-1,"theme/theme1.xml",Xe.THEME),a="xl/styles."+t,He(i,a,RS(A,a,e)),n.styles.push(a),et(e.wbrels,-1,"styles."+t,Xe.STY),A.vbaraw&&r&&(a="xl/vbaProject.bin",He(i,a,A.vbaraw),n.vba.push(a),et(e.wbrels,-1,"vbaProject.bin",Xe.VBA)),a="xl/metadata."+t,He(i,a,GS(a)),n.metadata.push(a),et(e.wbrels,-1,"metadata."+t,Xe.XLMETA),He(i,"[Content_Types].xml",sw(n,e)),He(i,"_rels/.rels",Ms(e.rels)),He(i,"xl/_rels/workbook."+t+".rels",Ms(e.wbrels)),delete e.revssf,delete e.ssf,i}function H8(A,e){Ns=1024,A&&!A.SSF&&(A.SSF=jr(Qt)),A&&A.SSF&&(Rl(),Pl(A.SSF),e.revssf=Ml(A.SSF),e.revssf[A.SSF[65535]]=0,e.ssf=A.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,A0?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var t="xml",r=Tw.indexOf(e.bookType)>-1,n=aw();Rh(e=e||{});var i=yh(),a="",s=0;if(e.cellXfs=[],ma(e.cellXfs,{},{revssf:{General:0}}),A.Props||(A.Props={}),a="docProps/core.xml",He(i,a,lw(A.Props,e)),n.coreprops.push(a),et(e.rels,2,a,Xe.CORE_PROPS),a="docProps/app.xml",!(A.Props&&A.Props.SheetNames))if(!A.Workbook||!A.Workbook.Sheets)A.Props.SheetNames=A.SheetNames;else{for(var o=[],f=0;f<A.SheetNames.length;++f)(A.Workbook.Sheets[f]||{}).Hidden!=2&&o.push(A.SheetNames[f]);A.Props.SheetNames=o}A.Props.Worksheets=A.Props.SheetNames.length,He(i,a,uw(A.Props)),n.extprops.push(a),et(e.rels,3,a,Xe.EXT_PROPS),A.Custprops!==A.Props&&mr(A.Custprops||{}).length>0&&(a="docProps/custom.xml",He(i,a,hw(A.Custprops)),n.custprops.push(a),et(e.rels,4,a,Xe.CUST_PROPS));var l=["SheetJ5"];for(e.tcid=0,s=1;s<=A.SheetNames.length;++s){var d={"!id":{}},g=A.Sheets[A.SheetNames[s-1]],u=(g||{})["!type"]||"sheet";switch(u){case"chart":default:a="xl/worksheets/sheet"+s+"."+t,He(i,a,Rw(s-1,e,A,d)),n.sheets.push(a),et(e.wbrels,-1,"worksheets/sheet"+s+"."+t,Xe.WS[0])}if(g){var v=g["!comments"],B=!1,x="";if(v&&v.length>0){var F=!1;v.forEach(function(_){_[1].forEach(function(I){I.T==!0&&(F=!0)})}),F&&(x="xl/threadedComments/threadedComment"+s+"."+t,He(i,x,db(v,l,e)),n.threadedcomments.push(x),et(d,-1,"../threadedComments/threadedComment"+s+"."+t,Xe.TCMNT)),x="xl/comments"+s+"."+t,He(i,x,Sw(v)),n.comments.push(x),et(d,-1,"../comments"+s+"."+t,Xe.CMNT),B=!0}g["!legacy"]&&B&&He(i,"xl/drawings/vmlDrawing"+s+".vml",Qw(s,g["!comments"])),delete g["!comments"],delete g["!legacy"]}d["!id"].rId1&&He(i,ow(a),Ms(d))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+t,He(i,a,xw(e.Strings,e)),n.strs.push(a),et(e.wbrels,-1,"sharedStrings."+t,Xe.SST)),a="xl/workbook."+t,He(i,a,Gw(A)),n.workbooks.push(a),et(e.rels,1,a,Xe.WB),a="xl/theme/theme1.xml",He(i,a,Uw(A.Themes,e)),n.themes.push(a),et(e.wbrels,-1,"theme/theme1.xml",Xe.THEME),a="xl/styles."+t,He(i,a,Ew(A,e)),n.styles.push(a),et(e.wbrels,-1,"styles."+t,Xe.STY),A.vbaraw&&r&&(a="xl/vbaProject.bin",He(i,a,A.vbaraw),n.vba.push(a),et(e.wbrels,-1,"vbaProject.bin",Xe.VBA)),a="xl/metadata."+t,He(i,a,bw()),n.metadata.push(a),et(e.wbrels,-1,"metadata."+t,Xe.XLMETA),l.length>1&&(a="xl/persons/person.xml",He(i,a,gb(l)),n.people.push(a),et(e.wbrels,-1,"persons/person.xml",Xe.PEOPLE)),He(i,"[Content_Types].xml",sw(n,e)),He(i,"_rels/.rels",Ms(e.rels)),He(i,"xl/_rels/workbook."+t+".rels",Ms(e.wbrels)),delete e.revssf,delete e.ssf,i}function k8(A,e){var t="";switch((e||{}).type||"base64"){case"buffer":return[A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7]];case"base64":t=Di(A.slice(0,12));break;case"binary":t=A;break;case"array":return[A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Yw(A,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return B0(e.file,at.write(A,{type:qe?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return at.write(A,e)}function P8(A,e){var t=jr(e||{}),r=O8(A,t);return R8(r,t)}function R8(A,e){var t={},r=qe?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(t.compression="DEFLATE"),e.password)t.type=r;else switch(e.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":t.type=r;break;default:throw new Error("Unrecognized type "+e.type)}var n=A.FullPaths?at.write(A,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!e.compression}):A.generate(t);if(typeof Deno<"u"&&typeof n=="string"){if(e.type=="binary"||e.type=="base64")return n;n=new Uint8Array(kl(n))}return e.password&&typeof encrypt_agile<"u"?Yw(encrypt_agile(n,e.password),e):e.type==="file"?B0(e.file,n):e.type=="string"?Yo(n):n}function M8(A,e){var t=e||{},r=r8(A,t);return Yw(r,t)}function ri(A,e,t){t||(t="");var r=t+A;switch(e.type){case"base64":return s0(f0(r));case"binary":return f0(r);case"string":return A;case"file":return B0(e.file,r,"utf8");case"buffer":return qe?ki(r,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(r):ri(r,{type:"binary"}).split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function K8(A,e){switch(e.type){case"base64":return s0(A);case"binary":return A;case"string":return A;case"file":return B0(e.file,A,"binary");case"buffer":return qe?ki(A,"binary"):A.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function Rf(A,e){switch(e.type){case"string":case"base64":case"binary":for(var t="",r=0;r<A.length;++r)t+=String.fromCharCode(A[r]);return e.type=="base64"?s0(t):e.type=="string"?Yo(t):t;case"file":return B0(e.file,A);case"buffer":return A;default:throw new Error("Unrecognized type "+e.type)}}function Jw(A,e){pE(),US(A);var t=jr(e||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var r=Jw(A,t);return t.type="array",kl(r)}var n=0;if(t.sheet&&(typeof t.sheet=="number"?n=t.sheet:n=A.SheetNames.indexOf(t.sheet),!A.SheetNames[n]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return ri(e8(A,t),t);case"slk":case"sylk":return ri(yU.from_sheet(A.Sheets[A.SheetNames[n]],t),t);case"htm":case"html":return ri(Ww(A.Sheets[A.SheetNames[n]],t),t);case"txt":return K8(Zw(A.Sheets[A.SheetNames[n]],t),t);case"csv":return ri(Mh(A.Sheets[A.SheetNames[n]],t),t,"\uFEFF");case"dif":return ri(EU.from_sheet(A.Sheets[A.SheetNames[n]],t),t);case"dbf":return Rf(FU.from_sheet(A.Sheets[A.SheetNames[n]],t),t);case"prn":return ri(_U.from_sheet(A.Sheets[A.SheetNames[n]],t),t);case"rtf":return ri(IU.from_sheet(A.Sheets[A.SheetNames[n]],t),t);case"eth":return ri(mw.from_sheet(A.Sheets[A.SheetNames[n]],t),t);case"fods":return ri(zw(A,t),t);case"wk1":return Rf(Bg.sheet_to_wk1(A.Sheets[A.SheetNames[n]],t),t);case"wk3":return Rf(Bg.book_to_wk3(A,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),Rf(jw(A,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),M8(A,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return P8(A,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function G8(A){if(!A.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=A.file.slice(A.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(A.bookType=t.slice(1)),A.bookType=e[A.bookType]||A.bookType}}function V8(A,e,t){var r={};return r.type="file",r.file=e,G8(r),Jw(A,r)}function j8(A,e,t,r,n,i,a,s){var o=vr(t),f=s.defval,l=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,g=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(g,"__rowNum__",{value:t,enumerable:!1})}catch{g.__rowNum__=t}else g.__rowNum__=t;if(!a||A[t])for(var u=e.s.c;u<=e.e.c;++u){var v=a?A[t][u]:A[r[u]+o];if(v===void 0||v.t===void 0){if(f===void 0)continue;i[u]!=null&&(g[i[u]]=f);continue}var B=v.v;switch(v.t){case"z":if(B==null)break;continue;case"e":B=B==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(i[u]!=null){if(B==null)if(v.t=="e"&&B===null)g[i[u]]=null;else if(f!==void 0)g[i[u]]=f;else if(l&&B===null)g[i[u]]=null;else continue;else g[i[u]]=l&&(v.t!=="n"||v.t==="n"&&s.rawNumbers!==!1)?B:Hi(v,B,s);B!=null&&(d=!1)}}return{row:g,isempty:d}}function El(A,e){if(A==null||A["!ref"]==null)return[];var t={t:"n",v:0},r=0,n=1,i=[],a=0,s="",o={s:{r:0,c:0},e:{r:0,c:0}},f=e||{},l=f.range!=null?f.range:A["!ref"];switch(f.header===1?r=1:f.header==="A"?r=2:Array.isArray(f.header)?r=3:f.header==null&&(r=0),typeof l){case"string":o=wt(l);break;case"number":o=wt(A["!ref"]),o.s.r=l;break;default:o=l}r>0&&(n=0);var d=vr(o.s.r),g=[],u=[],v=0,B=0,x=Array.isArray(A),F=o.s.r,_=0,I={};x&&!A[F]&&(A[F]=[]);var L=f.skipHidden&&A["!cols"]||[],q=f.skipHidden&&A["!rows"]||[];for(_=o.s.c;_<=o.e.c;++_)if(!(L[_]||{}).hidden)switch(g[_]=Qr(_),t=x?A[F][_]:A[g[_]+d],r){case 1:i[_]=_-o.s.c;break;case 2:i[_]=g[_];break;case 3:i[_]=f.header[_-o.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),s=a=Hi(t,null,f),B=I[a]||0,!B)I[a]=1;else{do s=a+"_"+B++;while(I[s]);I[a]=B,I[s]=1}i[_]=s}for(F=o.s.r+n;F<=o.e.r;++F)if(!(q[F]||{}).hidden){var rA=j8(A,o,F,g,r,i,x,f);(rA.isempty===!1||(r===1?f.blankrows!==!1:f.blankrows))&&(u[v++]=rA.row)}return u.length=v,u}var Eg=/"/g;function W8(A,e,t,r,n,i,a,s){for(var o=!0,f=[],l="",d=vr(t),g=e.s.c;g<=e.e.c;++g)if(r[g]){var u=s.dense?(A[t]||[])[g]:A[r[g]+d];if(u==null)l="";else if(u.v!=null){o=!1,l=""+(s.rawNumbers&&u.t=="n"?u.v:Hi(u,null,s));for(var v=0,B=0;v!==l.length;++v)if((B=l.charCodeAt(v))===n||B===i||B===34||s.forceQuotes){l='"'+l.replace(Eg,'""')+'"';break}l=="ID"&&(l='"ID"')}else u.f!=null&&!u.F?(o=!1,l="="+u.f,l.indexOf(",")>=0&&(l='"'+l.replace(Eg,'""')+'"')):l="";f.push(l)}return s.blankrows===!1&&o?null:f.join(a)}function Mh(A,e){var t=[],r=e??{};if(A==null||A["!ref"]==null)return"";var n=wt(A["!ref"]),i=r.FS!==void 0?r.FS:",",a=i.charCodeAt(0),s=r.RS!==void 0?r.RS:`
`,o=s.charCodeAt(0),f=new RegExp((i=="|"?"\\|":i)+"+$"),l="",d=[];r.dense=Array.isArray(A);for(var g=r.skipHidden&&A["!cols"]||[],u=r.skipHidden&&A["!rows"]||[],v=n.s.c;v<=n.e.c;++v)(g[v]||{}).hidden||(d[v]=Qr(v));for(var B=0,x=n.s.r;x<=n.e.r;++x)(u[x]||{}).hidden||(l=W8(A,n,x,d,a,o,i,r),l!=null&&(r.strip&&(l=l.replace(f,"")),(l||r.blankrows!==!1)&&t.push((B++?s:"")+l)));return delete r.dense,t.join("")}function Zw(A,e){e||(e={}),e.FS="	",e.RS=`
`;var t=Mh(A,e);return t}function X8(A){var e="",t,r="";if(A==null||A["!ref"]==null)return[];var n=wt(A["!ref"]),i="",a=[],s,o=[],f=Array.isArray(A);for(s=n.s.c;s<=n.e.c;++s)a[s]=Qr(s);for(var l=n.s.r;l<=n.e.r;++l)for(i=vr(l),s=n.s.c;s<=n.e.c;++s)if(e=a[s]+i,t=f?(A[l]||[])[s]:A[e],r="",t!==void 0){if(t.F!=null){if(e=t.F,!t.f)continue;r=t.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(t.f!=null)r=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)r=""+t.v;else if(t.t=="b")r=t.v?"TRUE":"FALSE";else if(t.w!==void 0)r="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?r="'"+t.v:r=""+t.v}}o[o.length]=e+"="+r}return o}function $w(A,e,t){var r=t||{},n=+!r.skipHeader,i=A||{},a=0,s=0;if(i&&r.origin!=null)if(typeof r.origin=="number")a=r.origin;else{var o=typeof r.origin=="string"?ar(r.origin):r.origin;a=o.r,s=o.c}var f,l={s:{c:0,r:0},e:{c:s,r:a+e.length-1+n}};if(i["!ref"]){var d=wt(i["!ref"]);l.e.c=Math.max(l.e.c,d.e.c),l.e.r=Math.max(l.e.r,d.e.r),a==-1&&(a=d.e.r+1,l.e.r=a+e.length-1+n)}else a==-1&&(a=0,l.e.r=e.length-1+n);var g=r.header||[],u=0;e.forEach(function(B,x){mr(B).forEach(function(F){(u=g.indexOf(F))==-1&&(g[u=g.length]=F);var _=B[F],I="z",L="",q=nt({c:s+u,r:a+x+n});f=u0(i,q),_&&typeof _=="object"&&!(_ instanceof Date)?i[q]=_:(typeof _=="number"?I="n":typeof _=="boolean"?I="b":typeof _=="string"?I="s":_ instanceof Date?(I="d",r.cellDates||(I="n",_=Vr(_)),L=r.dateNF||Qt[14]):_===null&&r.nullError&&(I="e",_=0),f?(f.t=I,f.v=_,delete f.w,delete f.R,L&&(f.z=L)):i[q]=f={t:I,v:_},L&&(f.z=L))})}),l.e.c=Math.max(l.e.c,s+g.length-1);var v=vr(a);if(n)for(u=0;u<g.length;++u)i[Qr(u+s)+v]={t:"s",v:g[u]};return i["!ref"]=Wt(l),i}function q8(A,e){return $w(null,A,e)}function u0(A,e,t){if(typeof e=="string"){if(Array.isArray(A)){var r=ar(e);return A[r.r]||(A[r.r]=[]),A[r.r][r.c]||(A[r.r][r.c]={t:"z"})}return A[e]||(A[e]={t:"z"})}return typeof e!="number"?u0(A,nt(e)):u0(A,nt({r:e,c:t||0}))}function z8(A,e){if(typeof e=="number"){if(e>=0&&A.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var t=A.SheetNames.indexOf(e);if(t>-1)return t;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function Y8(){return{SheetNames:[],Sheets:{}}}function J8(A,e,t,r){var n=1;if(!t)for(;n<=65535&&A.SheetNames.indexOf(t="Sheet"+n)!=-1;++n,t=void 0);if(!t||A.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&A.SheetNames.indexOf(t)>=0){var i=t.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var a=i&&i[1]||t;for(++n;n<=65535&&A.SheetNames.indexOf(t=a+n)!=-1;++n);}if(Kw(t),A.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return A.SheetNames.push(t),A.Sheets[t]=e,t}function Z8(A,e,t){A.Workbook||(A.Workbook={}),A.Workbook.Sheets||(A.Workbook.Sheets=[]);var r=z8(A,e);switch(A.Workbook.Sheets[r]||(A.Workbook.Sheets[r]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}A.Workbook.Sheets[r].Hidden=t}function $8(A,e){return A.z=e,A}function Av(A,e,t){return e?(A.l={Target:e},t&&(A.l.Tooltip=t)):delete A.l,A}function AT(A,e,t){return Av(A,"#"+e,t)}function eT(A,e,t){A.c||(A.c=[]),A.c.push({t:e,a:t||"SheetJS"})}function tT(A,e,t,r){for(var n=typeof e!="string"?e:wt(e),i=typeof e=="string"?e:Wt(e),a=n.s.r;a<=n.e.r;++a)for(var s=n.s.c;s<=n.e.c;++s){var o=u0(A,a,s);o.t="n",o.F=i,delete o.v,a==n.s.r&&s==n.s.c&&(o.f=t,r&&(o.D=!0))}return A}var yu={encode_col:Qr,encode_row:vr,encode_cell:nt,encode_range:Wt,decode_col:Sh,decode_row:Qh,split_cell:p_,decode_cell:ar,decode_range:fn,format_cell:Hi,sheet_add_aoa:Aw,sheet_add_json:$w,sheet_add_dom:Xw,aoa_to_sheet:zs,json_to_sheet:q8,table_to_sheet:qw,table_to_book:E8,sheet_to_csv:Mh,sheet_to_txt:Zw,sheet_to_json:El,sheet_to_html:Ww,sheet_to_formulae:X8,sheet_to_row_object_array:El,sheet_get_cell:u0,book_new:Y8,book_append_sheet:J8,book_set_sheet_visibility:Z8,cell_set_number_format:$8,cell_set_hyperlink:Av,cell_set_internal_link:AT,cell_add_comment:eT,sheet_set_array_formula:tT,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function rT(){const{t:A}=kv(),{user:e,loading:t,error:r}=Pv(),[n,i]=Ei.useState([]),[a,s]=Ei.useState(!1),[o,f]=Ei.useState(null),[l,d]=Ei.useState(""),[g,u]=Ei.useState("all"),[v,B]=Ei.useState("all"),[x,F]=Ei.useState(null),_=Ei.useRef(null),L=e&&["admin"].includes(e.role),q=async()=>{if(L)try{s(!0),f(null);const y={};l.trim()&&(y.search=l.trim()),g!=="all"&&(y.role=g),v!=="all"&&(y.is_active=v==="active"?"true":"false");const P=(await yc.get("/en/api/admin/users/",{params:y})).data,eA=Array.isArray(P)?P:P.results||[];i(eA)}catch(y){y.response?f(`HTTP ${y.response.status}`):f(y.message||"Error loading users")}finally{s(!1)}};Ei.useEffect(()=>{q()},[L]);const rA=async y=>{const T=!y.is_active;if(window.confirm(T?A("admin_users_confirm_activate",{username:y.username}):A("admin_users_confirm_deactivate",{username:y.username})))try{F(y.id),await yc.patch(`/en/api/admin/users/${y.id}/`,{is_active:T}),await q()}catch(P){alert(A("admin_users_update_error")+" "+(P.response?.status||P.message))}finally{F(null)}},M=async(y,T)=>{if(T!==y.role&&window.confirm(A("admin_users_confirm_change_role",{username:y.username,role:T})))try{F(y.id),await yc.patch(`/en/api/admin/users/${y.id}/`,{role:T}),await q()}catch(P){alert(A("admin_users_update_error")+" "+(P.response?.status||P.message))}finally{F(null)}},R=()=>{if(!n||n.length===0){alert(A("admin_users_export_empty"));return}const y=n.map(eA=>({ID:eA.id,Username:eA.username,Email:eA.email,Role:eA.role,Active:eA.is_active?"Yes":"No"})),T=yu.json_to_sheet(y),P=yu.book_new();yu.book_append_sheet(P,T,"Users"),V8(P,"users_export.xlsx")},E=()=>{_.current&&hE(_,{filename:"users_export.pdf",page:{margin:10}})};if(t)return $A.jsx(Z0,{fluid:!0,className:"py-4",children:$A.jsx(Eo,{children:$A.jsxs(_o,{children:[$A.jsx(E1,{size:"sm"})," ",A("loading_user")]})})});if(r)return $A.jsx(Z0,{fluid:!0,className:"py-4",children:$A.jsx(Eo,{children:$A.jsx(_o,{children:$A.jsx(Ec,{color:"danger",children:A("error_loading_user")})})})});if(!L)return $A.jsx(Z0,{fluid:!0,className:"py-4",children:$A.jsx(Eo,{children:$A.jsx(_o,{children:$A.jsx(Ec,{color:"warning",children:A("admin_users_unauthorized")})})})});const X=[{value:"student",label:A("admin_users_role_student")},{value:"admin",label:A("admin_users_role_admin")},{value:"registrar",label:A("admin_users_role_registrar")},{value:"accountant",label:A("admin_users_role_accountant")},{value:"academic_affairs",label:A("admin_users_role_academic")},{value:"faculty",label:A("admin_users_role_faculty")}];return $A.jsxs(Z0,{fluid:!0,className:"py-4",children:[$A.jsx(Eo,{className:"mb-3",children:$A.jsxs(_o,{children:[$A.jsx("h2",{className:"mb-1",children:A("admin_users_title")}),$A.jsx("p",{className:"text-medium-emphasis mb-0",children:A("admin_users_subtitle")})]})}),$A.jsx(Eo,{children:$A.jsx(_o,{children:$A.jsxs(Rv,{children:[$A.jsx(Kv,{children:$A.jsxs("div",{className:"d-flex flex-wrap gap-2 justify-content-between align-items-center",children:[$A.jsxs(Gv,{className:"d-flex flex-grow-1 gap-2 align-items-center",onSubmit:y=>{y.preventDefault(),q()},children:[$A.jsxs(Vv,{size:"sm",className:"flex-grow-1",children:[$A.jsx(jv,{children:A("admin_users_search_label")}),$A.jsx(Wv,{placeholder:A("admin_users_search_placeholder"),value:l,onChange:y=>d(y.target.value)})]}),$A.jsxs(_c,{size:"sm",className:"w-auto",value:g,onChange:y=>u(y.target.value),children:[$A.jsx("option",{value:"all",children:A("admin_users_filter_role_all")}),X.map(y=>$A.jsx("option",{value:y.value,children:y.label},y.value))]}),$A.jsxs(_c,{size:"sm",className:"w-auto",value:v,onChange:y=>B(y.target.value),children:[$A.jsx("option",{value:"all",children:A("admin_users_filter_status_all")}),$A.jsx("option",{value:"active",children:A("admin_users_filter_status_active")}),$A.jsx("option",{value:"inactive",children:A("admin_users_filter_status_inactive")})]}),$A.jsx(yo,{type:"submit",color:"secondary",size:"sm",children:A("admin_users_filter_apply")})]}),$A.jsxs("div",{className:"d-flex flex-wrap gap-2",children:[$A.jsx(yo,{color:"success",size:"sm",variant:"outline",onClick:R,children:A("admin_users_export_excel")}),$A.jsx(yo,{color:"danger",size:"sm",variant:"outline",onClick:E,children:A("admin_users_export_pdf")}),$A.jsx(yo,{color:"primary",size:"sm",disabled:!0,children:A("admin_users_add_user_button")})]})]})}),$A.jsxs(Mv,{children:[a&&$A.jsxs("div",{className:"d-flex align-items-center gap-2 mb-3",children:[$A.jsx(E1,{size:"sm"}),$A.jsx("span",{children:A("admin_users_loading")})]}),o&&$A.jsxs(Ec,{color:"danger",className:"mb-3",children:[A("admin_users_error_prefix")," ",o]}),!a&&!o&&$A.jsx("div",{ref:_,children:$A.jsxs(Xv,{hover:!0,responsive:!0,caption:"top",children:[$A.jsx("caption",{children:A("admin_users_table_caption")}),$A.jsx(qv,{children:$A.jsxs(Uc,{children:[$A.jsx(Oa,{scope:"col",children:"#"}),$A.jsx(Oa,{scope:"col",children:A("admin_users_col_username")}),$A.jsx(Oa,{scope:"col",children:A("admin_users_col_email")}),$A.jsx(Oa,{scope:"col",children:A("admin_users_col_role")}),$A.jsx(Oa,{scope:"col",children:A("admin_users_col_status")}),$A.jsx(Oa,{scope:"col",children:A("admin_users_col_actions")})]})}),$A.jsxs(zv,{children:[n.length===0&&$A.jsx(Uc,{children:$A.jsx(ds,{colSpan:6,className:"text-center",children:A("admin_users_empty")})}),n.map((y,T)=>$A.jsxs(Uc,{children:[$A.jsx(Oa,{scope:"row",children:T+1}),$A.jsx(ds,{children:y.username}),$A.jsx(ds,{children:y.email}),$A.jsx(ds,{children:$A.jsxs(_c,{size:"sm",value:y.role||"",disabled:x===y.id,onChange:P=>M(y,P.target.value),children:[$A.jsx("option",{value:"",children:A("admin_users_role_unknown")}),X.map(P=>$A.jsx("option",{value:P.value,children:P.label},P.value))]})}),$A.jsx(ds,{children:y.is_active?$A.jsx(_1,{color:"success",children:A("admin_users_status_active")}):$A.jsx(_1,{color:"danger",children:A("admin_users_status_inactive")})}),$A.jsx(ds,{children:$A.jsx(yo,{size:"sm",color:y.is_active?"danger":"success",variant:"outline",disabled:x===y.id,onClick:()=>rA(y),children:y.is_active?A("admin_users_action_deactivate"):A("admin_users_action_activate")})})]},y.id))]})]})})]})]})})})]})}const pT=Object.freeze(Object.defineProperty({__proto__:null,default:rT},Symbol.toStringTag,{value:"Module"}));export{pT as A,tt as _};
