const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es.D5TeBl7i.js","assets/index.CL7yl-Wb.js","assets/vue.D1BjjNmv.js","assets/index.DgHxlRHa.css","assets/echarts.BCoidMgp.js","assets/qcLogo.ClkaWBBV.js","assets/_plugin-vue_export-helper.DlAUqK2U.js"])))=>i.map(i=>d[i]);
import{i as Cg,t as yg,u as Qg,a as Fg,b as bg,c as Ug,d as Lg,f as Eg,g as xg,h as Ig}from"./echarts.BCoidMgp.js";import{a as _g,ai as Hg,s as jl,i as mo,ag as Sg,f as ki,g as Ng,w as Co,l as ch,q as Dg,Z as Tg,t as Pg,y as Og,u as kg,aj as mt,c as MA,o as SA,S as Ie,Q as IA,b as N,M as _e,P as Ge,K as Ue,J as Gn,R as et,a9 as dt,L as Mu,T as Ku,G as Ct,F as Ru,aI as Gl}from"./vue.D1BjjNmv.js";import{_ as yc,E as Ii,S as Ga,j as Mg}from"./index.CL7yl-Wb.js";import{_ as Kg}from"./qcLogo.ClkaWBBV.js";import{_ as Rg}from"./_plugin-vue_export-helper.DlAUqK2U.js";const Vg=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function jg(e){function A(r){return(...n)=>{if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,n)}}function t(){const r=Object.create(null);return Vg.forEach(n=>{r[n]=A(n)}),r}return t()}function Gg(e,A,t){Co([t,e,A],([r,n,i],a,l)=>{let c=null;if(r&&n&&i){const{offsetWidth:h,offsetHeight:g}=r,B=i===!0?{}:i,{throttle:w=100,onResize:d}=B;let L=!1;const Q=()=>{n.resize(),d==null||d()},H=w?yg(Q,w):Q;c=new ResizeObserver(()=>{!L&&(L=!0,r.offsetWidth===h&&r.offsetHeight===g)||H()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const qg={autoresize:[Boolean,Object]},Wg=/^on[^a-z]/,uh=e=>Wg.test(e);function Jg(e){const A={};for(const t in e)uh(t)||(A[t]=e[t]);return A}function yo(e,A){const t=Og(e)?kg(e):e;return t&&typeof t=="object"&&"value"in t?t.value||A:t||A}const Xg="ecLoadingOptions";function zg(e,A,t){const r=mo(Xg,{}),n=ki(()=>({...yo(r,{}),...t==null?void 0:t.value}));ch(()=>{const i=e.value;i&&(A.value?i.showLoading(n.value):i.hideLoading())})}const Yg={loading:Boolean,loadingOptions:Object};let xs=null;const fh="x-vue-echarts";function Zg(){if(xs!=null)return xs;if(typeof HTMLElement>"u"||typeof customElements>"u")return xs=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(fh)}catch{return xs=!1}return xs=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
`;const $g=Zg(),A1="ecTheme",e1="ecInitOptions",t1="ecUpdateOptions",Vu=/(^&?~?!?)native:/;var r1=_g({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...qg,...Yg},emits:{},inheritAttrs:!1,setup(e,{attrs:A}){const t=jl(),r=jl(),n=jl(),i=mo(A1,null),a=mo(e1,null),l=mo(t1,null),{autoresize:c,manualUpdate:h,loading:g,loadingOptions:B}=Sg(e),w=ki(()=>n.value||e.option||null),d=ki(()=>e.theme||yo(i,{})),L=ki(()=>e.initOptions||yo(a,{})),Q=ki(()=>e.updateOptions||yo(l,{})),H=ki(()=>Jg(A)),C={},_=Ng().proxy.$listeners,V={};_?Object.keys(_).forEach(q=>{Vu.test(q)?C[q.replace(Vu,"$1")]=_[q]:V[q]=_[q]}):Object.keys(A).filter(q=>uh(q)).forEach(q=>{let nA=q.charAt(2).toLowerCase()+q.slice(3);if(nA.indexOf("native:")===0){const I=`on${nA.charAt(7).toUpperCase()}${nA.slice(8)}`;C[I]=A[q];return}nA.substring(nA.length-4)==="Once"&&(nA=`~${nA.substring(0,nA.length-4)}`),V[nA]=A[q]});function Y(q){if(!t.value)return;const nA=r.value=Cg(t.value,d.value,L.value);e.group&&(nA.group=e.group),Object.keys(V).forEach(R=>{let M=V[R];if(!M)return;let lA=R.toLowerCase();lA.charAt(0)==="~"&&(lA=lA.substring(1),M.__once__=!0);let iA=nA;if(lA.indexOf("zr:")===0&&(iA=nA.getZr(),lA=lA.substring(3)),M.__once__){delete M.__once__;const uA=M;M=(...tA)=>{uA(...tA),iA.off(lA,M)}}iA.on(lA,M)});function I(){nA&&!nA.isDisposed()&&nA.resize()}function S(){const R=q||w.value;R&&nA.setOption(R,Q.value)}c.value?Pg(()=>{I(),S()}):S()}function j(q,nA){e.manualUpdate&&(n.value=q),r.value?r.value.setOption(q,nA||{}):Y(q)}function Z(){r.value&&(r.value.dispose(),r.value=void 0)}let J=null;Co(h,q=>{typeof J=="function"&&(J(),J=null),q||(J=Co(()=>e.option,(nA,I)=>{nA&&(r.value?r.value.setOption(nA,{notMerge:nA!==I,...Q.value}):Y())},{deep:!0}))},{immediate:!0}),Co([d,L],()=>{Z(),Y()},{deep:!0}),ch(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=jg(r);return zg(r,g,B),Gg(r,c,t),Dg(()=>{Y()}),Tg(()=>{$g&&t.value?t.value.__dispose=Z:Z()}),{chart:r,root:t,setOption:j,nonEventAttrs:H,nativeListeners:C,...k}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",Hg(fh,e)}});/*!
* 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 Qc=function(e,A){return Qc=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])},Qc(e,A)};function Cr(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Qc(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var Fc=function(){return Fc=Object.assign||function(A){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)&&(A[i]=t[i])}return A},Fc.apply(this,arguments)};function Ht(e,A,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 l(g){try{h(r.next(g))}catch(B){a(B)}}function c(g){try{h(r.throw(g))}catch(B){a(B)}}function h(g){g.done?i(g.value):n(g.value).then(l,c)}h((r=r.apply(e,[])).next())})}function Ut(e,A){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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(h){return function(g){return c([h,g])}}function c(h){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=h[0]&2?n.return:h[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,h[1])).done)return i;switch(n=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return t.label++,{value:h[1],done:!1};case 5:t.label++,n=h[1],h=[0];continue;case 7:h=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){t=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){t.label=h[1];break}if(h[0]===6&&t.label<i[1]){t.label=i[1],i=h;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(h);break}i[2]&&t.ops.pop(),t.trys.pop();continue}h=A.call(e,t)}catch(g){h=[6,g],n=0}finally{r=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function qa(e,A,t){if(arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return e.concat(i||A)}var tn=function(){function e(A,t,r,n){this.left=A,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(A,t,r,n){return new e(this.left+A,this.top+t,this.width+r,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),Vo=function(e,A){return tn.fromClientRect(e,A.getBoundingClientRect())},n1=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new tn(0,0,r,n)},jo=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},We=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[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},ju="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Wa=0;Wa<ju.length;Wa++)i1[ju.charCodeAt(Wa)]=Wa;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ts=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ja=0;Ja<Gu.length;Ja++)Ts[Gu.charCodeAt(Ja)]=Ja;var s1=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,l,c;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<t;r+=4)i=Ts[e.charCodeAt(r)],a=Ts[e.charCodeAt(r+1)],l=Ts[e.charCodeAt(r+2)],c=Ts[e.charCodeAt(r+3)],g[n++]=i<<2|a>>4,g[n++]=(a&15)<<4|l>>2,g[n++]=(l&3)<<6|c&63;return h},a1=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},o1=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},Yn=5,ru=11,ql=2,l1=ru-Yn,hh=65536>>Yn,c1=1<<Yn,Wl=c1-1,u1=1024>>Yn,f1=hh+u1,h1=f1,d1=32,g1=h1+d1,B1=65536>>ru,p1=1<<l1,w1=p1-1,qu=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},v1=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},m1=function(e,A){var t=s1(e),r=Array.isArray(t)?o1(t):new Uint32Array(t),n=Array.isArray(t)?a1(t):new Uint16Array(t),i=24,a=qu(n,i/2,r[4]/2),l=r[5]===2?qu(n,(i+r[4])/2):v1(r,Math.ceil((i+r[4])/4));return new C1(r[0],r[1],r[2],r[3],a,l)},C1=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>Yn],t=(t<<ql)+(A&Wl),this.data[t];if(A<=65535)return t=this.index[hh+(A-55296>>Yn)],t=(t<<ql)+(A&Wl),this.data[t];if(A<this.highStart)return t=g1-B1+(A>>ru),t=this.index[t],t+=A>>Yn&w1,t=this.index[t],t=(t<<ql)+(A&Wl),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Wu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xa=0;Xa<Wu.length;Xa++)y1[Wu.charCodeAt(Xa)]=Xa;var Q1=" ",Ju=50,F1=1,dh=2,gh=3,b1=4,U1=5,Xu=7,Bh=8,zu=9,Qn=10,bc=11,Yu=12,Uc=13,L1=14,Ps=15,Lc=16,za=17,Is=18,E1=19,Zu=20,Ec=21,_s=22,Jl=23,_i=24,qt=25,Os=26,ks=27,Hi=28,x1=29,Jn=30,I1=31,Ya=32,Za=33,xc=34,Ic=35,_c=36,Xs=37,Hc=38,Qo=39,Fo=40,Xl=41,ph=42,_1=43,H1=[9001,65288],wh="!",le="×",$a="÷",Sc=m1(Q1),Zr=[Jn,_c],Nc=[F1,dh,gh,U1],vh=[Qn,Bh],$u=[ks,Os],S1=Nc.concat(vh),Af=[Hc,Qo,Fo,xc,Ic],N1=[Ps,Uc],D1=function(e,A){A===void 0&&(A="strict");var t=[],r=[],n=[];return e.forEach(function(i,a){var l=Sc.get(i);if(l>Ju?(n.push(!0),l-=Ju):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(a),t.push(Lc);if(l===b1||l===bc){if(a===0)return r.push(a),t.push(Jn);var c=t[a-1];return S1.indexOf(c)===-1?(r.push(r[a-1]),t.push(c)):(r.push(a),t.push(Jn))}if(r.push(a),l===I1)return t.push(A==="strict"?Ec:Xs);if(l===ph||l===x1)return t.push(Jn);if(l===_1)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(Xs):t.push(Jn);t.push(l)}),[r,t,n]},zl=function(e,A,t,r){var n=r[t];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var i=t;i<=r.length;){i++;var a=r[i];if(a===A)return!0;if(a!==Qn)break}if(n===Qn)for(var i=t;i>0;){i--;var l=r[i];if(Array.isArray(e)?e.indexOf(l)!==-1:e===l)for(var c=t;c<=r.length;){c++;var a=r[c];if(a===A)return!0;if(a!==Qn)break}if(l!==Qn)break}return!1},ef=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===Qn)t--;else return r}return 0},T1=function(e,A,t,r,n){if(t[r]===0)return le;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return le;var a=i-1,l=i+1,c=A[i],h=a>=0?A[a]:0,g=A[l];if(c===dh&&g===gh)return le;if(Nc.indexOf(c)!==-1)return wh;if(Nc.indexOf(g)!==-1||vh.indexOf(g)!==-1)return le;if(ef(i,A)===Bh)return $a;if(Sc.get(e[i])===bc||(c===Ya||c===Za)&&Sc.get(e[l])===bc||c===Xu||g===Xu||c===zu||[Qn,Uc,Ps].indexOf(c)===-1&&g===zu||[za,Is,E1,_i,Hi].indexOf(g)!==-1||ef(i,A)===_s||zl(Jl,_s,i,A)||zl([za,Is],Ec,i,A)||zl(Yu,Yu,i,A))return le;if(c===Qn)return $a;if(c===Jl||g===Jl)return le;if(g===Lc||c===Lc)return $a;if([Uc,Ps,Ec].indexOf(g)!==-1||c===L1||h===_c&&N1.indexOf(c)!==-1||c===Hi&&g===_c||g===Zu||Zr.indexOf(g)!==-1&&c===qt||Zr.indexOf(c)!==-1&&g===qt||c===ks&&[Xs,Ya,Za].indexOf(g)!==-1||[Xs,Ya,Za].indexOf(c)!==-1&&g===Os||Zr.indexOf(c)!==-1&&$u.indexOf(g)!==-1||$u.indexOf(c)!==-1&&Zr.indexOf(g)!==-1||[ks,Os].indexOf(c)!==-1&&(g===qt||[_s,Ps].indexOf(g)!==-1&&A[l+1]===qt)||[_s,Ps].indexOf(c)!==-1&&g===qt||c===qt&&[qt,Hi,_i].indexOf(g)!==-1)return le;if([qt,Hi,_i,za,Is].indexOf(g)!==-1)for(var B=i;B>=0;){var w=A[B];if(w===qt)return le;if([Hi,_i].indexOf(w)!==-1)B--;else break}if([ks,Os].indexOf(g)!==-1)for(var B=[za,Is].indexOf(c)!==-1?a:i;B>=0;){var w=A[B];if(w===qt)return le;if([Hi,_i].indexOf(w)!==-1)B--;else break}if(Hc===c&&[Hc,Qo,xc,Ic].indexOf(g)!==-1||[Qo,xc].indexOf(c)!==-1&&[Qo,Fo].indexOf(g)!==-1||[Fo,Ic].indexOf(c)!==-1&&g===Fo||Af.indexOf(c)!==-1&&[Zu,Os].indexOf(g)!==-1||Af.indexOf(g)!==-1&&c===ks||Zr.indexOf(c)!==-1&&Zr.indexOf(g)!==-1||c===_i&&Zr.indexOf(g)!==-1||Zr.concat(qt).indexOf(c)!==-1&&g===_s&&H1.indexOf(e[l])===-1||Zr.concat(qt).indexOf(g)!==-1&&c===Is)return le;if(c===Xl&&g===Xl){for(var d=t[i],L=1;d>0&&(d--,A[d]===Xl);)L++;if(L%2!==0)return le}return c===Ya&&g===Za?le:$a},P1=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=D1(e,A.lineBreak),r=t[0],n=t[1],i=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(l){return[qt,Jn,ph].indexOf(l)!==-1?Xs:l}));var a=A.wordBreak==="keep-all"?i.map(function(l,c){return l&&e[c]>=19968&&e[c]<=40959}):void 0;return[r,n,a]},O1=function(){function e(A,t,r,n){this.codePoints=A,this.required=t===wh,this.start=r,this.end=n}return e.prototype.slice=function(){return We.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),k1=function(e,A){var t=jo(e),r=P1(t,A),n=r[0],i=r[1],a=r[2],l=t.length,c=0,h=0;return{next:function(){if(h>=l)return{done:!0,value:null};for(var g=le;h<l&&(g=T1(t,i,n,++h,a))===le;);if(g!==le||h===l){var B=new O1(t,g,c,h);return c=h,{value:B,done:!1}}return{done:!0,value:null}}}},M1=1,K1=2,$s=4,tf=8,_o=10,rf=47,Vs=92,R1=9,V1=32,Ao=34,Hs=61,j1=35,G1=36,q1=37,eo=39,to=40,Ss=41,W1=95,kt=45,J1=33,X1=60,z1=62,Y1=64,Z1=91,$1=93,A0=61,e0=123,ro=63,t0=125,nf=124,r0=126,n0=128,sf=65533,Yl=42,zn=43,i0=44,s0=58,a0=59,zs=46,o0=0,l0=8,c0=11,u0=14,f0=31,h0=127,Nr=-1,mh=48,Ch=97,yh=101,d0=102,g0=117,B0=122,Qh=65,Fh=69,bh=70,p0=85,w0=90,Lt=function(e){return e>=mh&&e<=57},v0=function(e){return e>=55296&&e<=57343},Si=function(e){return Lt(e)||e>=Qh&&e<=bh||e>=Ch&&e<=d0},m0=function(e){return e>=Ch&&e<=B0},C0=function(e){return e>=Qh&&e<=w0},y0=function(e){return m0(e)||C0(e)},Q0=function(e){return e>=n0},no=function(e){return e===_o||e===R1||e===V1},Ho=function(e){return y0(e)||Q0(e)||e===W1},af=function(e){return Ho(e)||Lt(e)||e===kt},F0=function(e){return e>=o0&&e<=l0||e===c0||e>=u0&&e<=f0||e===h0},yn=function(e,A){return e!==Vs?!1:A!==_o},io=function(e,A,t){return e===kt?Ho(A)||yn(A,t):Ho(e)?!0:!!(e===Vs&&yn(e,A))},Zl=function(e,A,t){return e===zn||e===kt?Lt(A)?!0:A===zs&&Lt(t):Lt(e===zs?A:e)},b0=function(e){var A=0,t=1;(e[A]===zn||e[A]===kt)&&(e[A]===kt&&(t=-1),A++);for(var r=[];Lt(e[A]);)r.push(e[A++]);var n=r.length?parseInt(We.apply(void 0,r),10):0;e[A]===zs&&A++;for(var i=[];Lt(e[A]);)i.push(e[A++]);var a=i.length,l=a?parseInt(We.apply(void 0,i),10):0;(e[A]===Fh||e[A]===yh)&&A++;var c=1;(e[A]===zn||e[A]===kt)&&(e[A]===kt&&(c=-1),A++);for(var h=[];Lt(e[A]);)h.push(e[A++]);var g=h.length?parseInt(We.apply(void 0,h),10):0;return t*(n+l*Math.pow(10,-a))*Math.pow(10,c*g)},U0={type:2},L0={type:3},E0={type:4},x0={type:13},I0={type:8},_0={type:21},H0={type:9},S0={type:10},N0={type:11},D0={type:12},T0={type:14},so={type:23},P0={type:1},O0={type:25},k0={type:24},M0={type:26},K0={type:27},R0={type:28},V0={type:29},j0={type:31},Dc={type:32},Uh=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(jo(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==Dc;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Ao:return this.consumeStringToken(Ao);case j1:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(af(t)||yn(r,n)){var i=io(t,r,n)?K1:M1,a=this.consumeName();return{type:5,value:a,flags:i}}break;case G1:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),x0;break;case eo:return this.consumeStringToken(eo);case to:return U0;case Ss:return L0;case Yl:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),T0;break;case zn:if(Zl(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case i0:return E0;case kt:var l=A,c=this.peekCodePoint(0),h=this.peekCodePoint(1);if(Zl(l,c,h))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(io(l,c,h))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===kt&&h===z1)return this.consumeCodePoint(),this.consumeCodePoint(),k0;break;case zs:if(Zl(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case rf:if(this.peekCodePoint(0)===Yl)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Yl&&(g=this.consumeCodePoint(),g===rf))return this.consumeToken();if(g===Nr)return this.consumeToken()}break;case s0:return M0;case a0:return K0;case X1:if(this.peekCodePoint(0)===J1&&this.peekCodePoint(1)===kt&&this.peekCodePoint(2)===kt)return this.consumeCodePoint(),this.consumeCodePoint(),O0;break;case Y1:var B=this.peekCodePoint(0),w=this.peekCodePoint(1),d=this.peekCodePoint(2);if(io(B,w,d)){var a=this.consumeName();return{type:7,value:a}}break;case Z1:return R0;case Vs:if(yn(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case $1:return V0;case A0:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),I0;break;case e0:return N0;case t0:return D0;case g0:case p0:var L=this.peekCodePoint(0),Q=this.peekCodePoint(1);return L===zn&&(Si(Q)||Q===ro)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case nf:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),H0;if(this.peekCodePoint(0)===nf)return this.consumeCodePoint(),_0;break;case r0:if(this.peekCodePoint(0)===Hs)return this.consumeCodePoint(),S0;break;case Nr:return Dc}return no(A)?(this.consumeWhiteSpace(),j0):Lt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Ho(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:We(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();Si(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===ro&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(We.apply(void 0,A.map(function(c){return c===ro?mh:c})),16),i=parseInt(We.apply(void 0,A.map(function(c){return c===ro?bh:c})),16);return{type:30,start:n,end:i}}var a=parseInt(We.apply(void 0,A),16);if(this.peekCodePoint(0)===kt&&Si(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var l=[];Si(t)&&l.length<6;)l.push(t),t=this.consumeCodePoint();var i=parseInt(We.apply(void 0,l),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===to?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===to?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Nr)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===eo||t===Ao){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Nr||this.peekCodePoint(0)===Ss)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),so)}for(;;){var n=this.consumeCodePoint();if(n===Nr||n===Ss)return{type:22,value:We.apply(void 0,A)};if(no(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Nr||this.peekCodePoint(0)===Ss?(this.consumeCodePoint(),{type:22,value:We.apply(void 0,A)}):(this.consumeBadUrlRemnants(),so);if(n===Ao||n===eo||n===to||F0(n))return this.consumeBadUrlRemnants(),so;if(n===Vs)if(yn(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),so;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;no(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ss||A===Nr)return;yn(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var n=Math.min(t,A);r+=We.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var n=this._value[r];if(n===Nr||n===void 0||n===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===_o)return this._value.splice(0,r),P0;if(n===Vs){var i=this._value[r+1];i!==Nr&&i!==void 0&&(i===_o?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):yn(n,i)&&(t+=this.consumeStringSlice(r),t+=We(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=$s,r=this.peekCodePoint(0);for((r===zn||r===kt)&&A.push(this.consumeCodePoint());Lt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===zs&&Lt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=tf;Lt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Fh||r===yh)&&((n===zn||n===kt)&&Lt(i)||Lt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=tf;Lt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[b0(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(io(n,i,a)){var l=this.consumeName();return{type:15,number:t,flags:r,unit:l}}return n===q1?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Si(A)){for(var t=We(A);Si(this.peekCodePoint(0))&&t.length<6;)t+=We(this.consumeCodePoint());no(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||v0(r)||r>1114111?sf:r}return A===Nr?sf:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(af(t))A+=We(t);else if(yn(t,this.peekCodePoint(0)))A+=We(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e}(),Lh=function(){function e(A){this._tokens=A}return e.create=function(A){var t=new Uh;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||q0(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.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())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Dc:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),Aa=function(e){return e.type===15},Zi=function(e){return e.type===17},Qe=function(e){return e.type===20},G0=function(e){return e.type===0},Tc=function(e,A){return Qe(e)&&e.value===A},Eh=function(e){return e.type!==31},Yi=function(e){return e.type!==31&&e.type!==4},Or=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},q0=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},xn=function(e){return e.type===17||e.type===15},tt=function(e){return e.type===16||xn(e)},xh=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Bt={type:17,number:0,flags:$s},nu={type:16,number:50,flags:$s},Fn={type:16,number:100,flags:$s},Ms=function(e,A,t){var r=e[0],n=e[1];return[He(r,A),He(typeof n<"u"?n:r,t)]},He=function(e,A){if(e.type===16)return e.number/100*A;if(Aa(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Ih="deg",_h="grad",Hh="rad",Sh="turn",Go={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Ih:return Math.PI*A.number/180;case _h:return Math.PI/200*A.number;case Hh:return A.number;case Sh:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Nh=function(e){return e.type===15&&(e.unit===Ih||e.unit===_h||e.unit===Hh||e.unit===Sh)},Dh=function(e){var A=e.filter(Qe).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Bt,Bt];case"to top":case"bottom":return nr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Bt,Fn];case"to right":case"left":return nr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Fn,Fn];case"to bottom":case"top":return nr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Fn,Bt];case"to left":case"right":return nr(270)}return 0},nr=function(e){return Math.PI*e/180},Ln={name:"color",parse:function(e,A){if(A.type===18){var t=W0[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return bn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),a=A.value.substring(3,4);return bn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return bn(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),a=A.value.substring(6,8);return bn(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(A.type===20){var l=en[A.value.toUpperCase()];if(typeof l<"u")return l}return en.TRANSPARENT}},En=function(e){return(255&e)===0},lt=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+r+","+t+","+A/255+")":"rgb("+n+","+r+","+t+")"},bn=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},of=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},lf=function(e,A){var t=A.filter(Yi);if(t.length===3){var r=t.map(of),n=r[0],i=r[1],a=r[2];return bn(n,i,a,1)}if(t.length===4){var l=t.map(of),n=l[0],i=l[1],a=l[2],c=l[3];return bn(n,i,a,c)}return 0};function $l(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var cf=function(e,A){var t=A.filter(Yi),r=t[0],n=t[1],i=t[2],a=t[3],l=(r.type===17?nr(r.number):Go.parse(e,r))/(Math.PI*2),c=tt(n)?n.number/100:0,h=tt(i)?i.number/100:0,g=typeof a<"u"&&tt(a)?He(a,1):1;if(c===0)return bn(h*255,h*255,h*255,1);var B=h<=.5?h*(c+1):h+c-h*c,w=h*2-B,d=$l(w,B,l+1/3),L=$l(w,B,l),Q=$l(w,B,l-1/3);return bn(d*255,L*255,Q*255,g)},W0={hsl:cf,hsla:cf,rgb:lf,rgba:lf},js=function(e,A){return Ln.parse(e,Lh.create(A).parseComponentValue())},en={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},J0={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(Qe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},X0={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qo=function(e,A){var t=Ln.parse(e,A[0]),r=A[1];return r&&tt(r)?{color:t,stop:r}:{color:t,stop:null}},uf=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=Bt),r.stop===null&&(r.stop=Fn);for(var n=[],i=0,a=0;a<e.length;a++){var l=e[a].stop;if(l!==null){var c=He(l,A);c>i?n.push(c):n.push(i),i=c}else n.push(null)}for(var h=null,a=0;a<n.length;a++){var g=n[a];if(g===null)h===null&&(h=a);else if(h!==null){for(var B=a-h,w=n[h-1],d=(g-w)/(B+1),L=1;L<=B;L++)n[h+L-1]=d*L;h=null}}return e.map(function(Q,H){var C=Q.color;return{color:C,stop:Math.max(Math.min(1,n[H]/A),0)}})},z0=function(e,A,t){var r=A/2,n=t/2,i=He(e[0],A)-r,a=n-He(e[1],t);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},Y0=function(e,A,t){var r=typeof e=="number"?e:z0(e,A,t),n=Math.abs(A*Math.sin(r))+Math.abs(t*Math.cos(r)),i=A/2,a=t/2,l=n/2,c=Math.sin(r-Math.PI/2)*l,h=Math.cos(r-Math.PI/2)*l;return[n,i-h,i+h,a-c,a+c]},vr=function(e,A){return Math.sqrt(e*e+A*A)},ff=function(e,A,t,r,n){var i=[[0,0],[0,A],[e,0],[e,A]];return i.reduce(function(a,l){var c=l[0],h=l[1],g=vr(t-c,r-h);return(n?g<a.optimumDistance:g>a.optimumDistance)?{optimumCorner:l,optimumDistance:g}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Z0=function(e,A,t,r,n){var i=0,a=0;switch(e.size){case 0:e.shape===0?i=a=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),a=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(e.shape===0)i=a=Math.min(vr(A,t),vr(A,t-n),vr(A-r,t),vr(A-r,t-n));else if(e.shape===1){var l=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(A),Math.abs(A-r)),c=ff(r,n,A,t,!0),h=c[0],g=c[1];i=vr(h-A,(g-t)/l),a=l*i}break;case 1:e.shape===0?i=a=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),a=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(e.shape===0)i=a=Math.max(vr(A,t),vr(A,t-n),vr(A-r,t),vr(A-r,t-n));else if(e.shape===1){var l=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(A),Math.abs(A-r)),B=ff(r,n,A,t,!1),h=B[0],g=B[1];i=vr(h-A,(g-t)/l),a=l*i}break}return Array.isArray(e.size)&&(i=He(e.size[0],r),a=e.size.length===2?He(e.size[1],n):i),[i,a]},$0=function(e,A){var t=nr(180),r=[];return Or(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){t=Dh(n);return}else if(Nh(a)){t=Go.parse(e,a);return}}var l=qo(e,n);r.push(l)}),{angle:t,stops:r,type:1}},ao=function(e,A){var t=nr(180),r=[];return Or(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=Dh(n);return}else if(Nh(a)){t=(Go.parse(e,a)+nr(270))%nr(360);return}}var l=qo(e,n);r.push(l)}),{angle:t,stops:r,type:1}},AB=function(e,A){var t=nr(180),r=[],n=1,i=0,a=3,l=[];return Or(A).forEach(function(c,h){var g=c[0];if(h===0){if(Qe(g)&&g.value==="linear"){n=1;return}else if(Qe(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=Ln.parse(e,g.values[0]);r.push({stop:Bt,color:B})}else if(g.name==="to"){var B=Ln.parse(e,g.values[0]);r.push({stop:Fn,color:B})}else if(g.name==="color-stop"){var w=g.values.filter(Yi);if(w.length===2){var B=Ln.parse(e,w[1]),d=w[0];Zi(d)&&r.push({stop:{type:16,number:d.number*100,flags:d.flags},color:B})}}}}),n===1?{angle:(t+nr(180))%nr(360),stops:r,type:n}:{size:a,shape:i,stops:r,position:l,type:n}},Th="closest-side",Ph="farthest-side",Oh="closest-corner",kh="farthest-corner",Mh="circle",Kh="ellipse",Rh="cover",Vh="contain",eB=function(e,A){var t=0,r=3,n=[],i=[];return Or(A).forEach(function(a,l){var c=!0;if(l===0){var h=!1;c=a.reduce(function(B,w){if(h)if(Qe(w))switch(w.value){case"center":return i.push(nu),B;case"top":case"left":return i.push(Bt),B;case"right":case"bottom":return i.push(Fn),B}else(tt(w)||xn(w))&&i.push(w);else if(Qe(w))switch(w.value){case Mh:return t=0,!1;case Kh:return t=1,!1;case"at":return h=!0,!1;case Th:return r=0,!1;case Rh:case Ph:return r=1,!1;case Vh:case Oh:return r=2,!1;case kh:return r=3,!1}else if(xn(w)||tt(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return B},c)}if(c){var g=qo(e,a);n.push(g)}}),{size:r,shape:t,stops:n,position:i,type:2}},oo=function(e,A){var t=0,r=3,n=[],i=[];return Or(A).forEach(function(a,l){var c=!0;if(l===0?c=a.reduce(function(g,B){if(Qe(B))switch(B.value){case"center":return i.push(nu),!1;case"top":case"left":return i.push(Bt),!1;case"right":case"bottom":return i.push(Fn),!1}else if(tt(B)||xn(B))return i.push(B),!1;return g},c):l===1&&(c=a.reduce(function(g,B){if(Qe(B))switch(B.value){case Mh:return t=0,!1;case Kh:return t=1,!1;case Vh:case Th:return r=0,!1;case Ph:return r=1,!1;case Oh:return r=2,!1;case Rh:case kh:return r=3,!1}else if(xn(B)||tt(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return g},c)),c){var h=qo(e,a);n.push(h)}}),{size:r,shape:t,stops:n,position:i,type:2}},tB=function(e){return e.type===1},rB=function(e){return e.type===2},iu={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=jh[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function nB(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!jh[e.name])}var jh={"linear-gradient":$0,"-moz-linear-gradient":ao,"-ms-linear-gradient":ao,"-o-linear-gradient":ao,"-webkit-linear-gradient":ao,"radial-gradient":eB,"-moz-radial-gradient":oo,"-ms-radial-gradient":oo,"-o-radial-gradient":oo,"-webkit-radial-gradient":oo,"-webkit-gradient":AB},iB={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return Yi(r)&&nB(r)}).map(function(r){return iu.parse(e,r)})}},sB={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(Qe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},aB={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return Or(A).map(function(t){return t.filter(tt)}).map(xh)}},oB={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return Or(A).map(function(t){return t.filter(Qe).map(function(r){return r.value}).join(" ")}).map(lB)}},lB=function(e){switch(e){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}},qi;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(qi||(qi={}));var cB={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return Or(A).map(function(t){return t.filter(uB)})}},uB=function(e){return Qe(e)||tt(e)},Wo=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},fB=Wo("top"),hB=Wo("right"),dB=Wo("bottom"),gB=Wo("left"),Jo=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return xh(t.filter(tt))}}},BB=Jo("top-left"),pB=Jo("top-right"),wB=Jo("bottom-right"),vB=Jo("bottom-left"),Xo=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},mB=Xo("top"),CB=Xo("right"),yB=Xo("bottom"),QB=Xo("left"),zo=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Aa(t)?t.number:0}}},FB=zo("top"),bB=zo("right"),UB=zo("bottom"),LB=zo("left"),EB={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xB={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},IB={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(Qe).reduce(function(t,r){return t|_B(r.value)},0)}},_B=function(e){switch(e){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},HB={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},SB={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},So;(function(e){e.NORMAL="normal",e.STRICT="strict"})(So||(So={}));var NB={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return So.STRICT;case"normal":default:return So.NORMAL}}},DB={name:"line-height",initialValue:"normal",prefix:!1,type:4},hf=function(e,A){return Qe(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:tt(e)?He(e,A):A},TB={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:iu.parse(e,A)}},PB={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Pc={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Yo=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},OB=Yo("top"),kB=Yo("right"),MB=Yo("bottom"),KB=Yo("left"),RB={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(Qe).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}})}},VB={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},Zo=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},jB=Zo("top"),GB=Zo("right"),qB=Zo("bottom"),WB=Zo("left"),JB={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},XB={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},zB={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Tc(A[0],"none")?[]:Or(A).map(function(t){for(var r={color:en.TRANSPARENT,offsetX:Bt,offsetY:Bt,blur:Bt},n=0,i=0;i<t.length;i++){var a=t[i];xn(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:r.blur=a,n++):r.color=Ln.parse(e,a)}return r})}},YB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ZB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var t=ep[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},$B=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},Ap=function(e){var A=e.filter(function(c){return c.type===17}).map(function(c){return c.number}),t=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var a=A[12],l=A[13];return A[14],A[15],A.length===16?[t,r,n,i,a,l]:null},ep={matrix:$B,matrix3d:Ap},df={type:16,number:50,flags:$s},tp=[df,df],rp={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(tt);return t.length!==2?tp:[t[0],t[1]]}},np={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Gs;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Gs||(Gs={}));var ip={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Gs.BREAK_ALL;case"keep-all":return Gs.KEEP_ALL;case"normal":default:return Gs.NORMAL}}},sp={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(Zi(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Gh={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},ap={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Zi(A)?A.number:1}},op={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lp={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(Qe).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})}},cp={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.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+"'"})}},up={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fp={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(Zi(A))return A.number;if(Qe(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},hp={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(Qe).map(function(t){return t.value})}},dp={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},it=function(e,A){return(e&A)!==0},gp={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},Bp={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=A.filter(Eh),i=0;i<n.length;i++){var a=n[i],l=n[i+1];if(a.type===20){var c=l&&Zi(l)?l.number:1;r.push({counter:a.value,increment:c})}}return r}},pp={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var t=[],r=A.filter(Eh),n=0;n<r.length;n++){var i=r[n],a=r[n+1];if(Qe(i)&&i.value!=="none"){var l=a&&Zi(a)?a.number:0;t.push({counter:i.value,reset:l})}}return t}},wp={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Aa).map(function(t){return Gh.parse(e,t)})}},vp={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;var r=[],n=A.filter(G0);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var a=n[i].value,l=n[i+1].value;r.push({open:a,close:l})}return r}},gf=function(e,A,t){if(!e)return"";var r=e[Math.min(A,e.length-1)];return r?t?r.open:r.close:""},mp={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Tc(A[0],"none")?[]:Or(A).map(function(t){for(var r={color:255,offsetX:Bt,offsetY:Bt,blur:Bt,spread:Bt,inset:!1},n=0,i=0;i<t.length;i++){var a=t[i];Tc(a,"inset")?r.inset=!0:xn(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:n===2?r.blur=a:r.spread=a,n++):r.color=Ln.parse(e,a)}return r})}},Cp={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[0,1,2],r=[];return A.filter(Qe).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}},yp={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Qp={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Aa(A)?A.number:0}},Fp=function(){function e(A,t){var r,n;this.animationDuration=kA(A,wp,t.animationDuration),this.backgroundClip=kA(A,J0,t.backgroundClip),this.backgroundColor=kA(A,X0,t.backgroundColor),this.backgroundImage=kA(A,iB,t.backgroundImage),this.backgroundOrigin=kA(A,sB,t.backgroundOrigin),this.backgroundPosition=kA(A,aB,t.backgroundPosition),this.backgroundRepeat=kA(A,oB,t.backgroundRepeat),this.backgroundSize=kA(A,cB,t.backgroundSize),this.borderTopColor=kA(A,fB,t.borderTopColor),this.borderRightColor=kA(A,hB,t.borderRightColor),this.borderBottomColor=kA(A,dB,t.borderBottomColor),this.borderLeftColor=kA(A,gB,t.borderLeftColor),this.borderTopLeftRadius=kA(A,BB,t.borderTopLeftRadius),this.borderTopRightRadius=kA(A,pB,t.borderTopRightRadius),this.borderBottomRightRadius=kA(A,wB,t.borderBottomRightRadius),this.borderBottomLeftRadius=kA(A,vB,t.borderBottomLeftRadius),this.borderTopStyle=kA(A,mB,t.borderTopStyle),this.borderRightStyle=kA(A,CB,t.borderRightStyle),this.borderBottomStyle=kA(A,yB,t.borderBottomStyle),this.borderLeftStyle=kA(A,QB,t.borderLeftStyle),this.borderTopWidth=kA(A,FB,t.borderTopWidth),this.borderRightWidth=kA(A,bB,t.borderRightWidth),this.borderBottomWidth=kA(A,UB,t.borderBottomWidth),this.borderLeftWidth=kA(A,LB,t.borderLeftWidth),this.boxShadow=kA(A,mp,t.boxShadow),this.color=kA(A,EB,t.color),this.direction=kA(A,xB,t.direction),this.display=kA(A,IB,t.display),this.float=kA(A,HB,t.cssFloat),this.fontFamily=kA(A,cp,t.fontFamily),this.fontSize=kA(A,up,t.fontSize),this.fontStyle=kA(A,dp,t.fontStyle),this.fontVariant=kA(A,hp,t.fontVariant),this.fontWeight=kA(A,fp,t.fontWeight),this.letterSpacing=kA(A,SB,t.letterSpacing),this.lineBreak=kA(A,NB,t.lineBreak),this.lineHeight=kA(A,DB,t.lineHeight),this.listStyleImage=kA(A,TB,t.listStyleImage),this.listStylePosition=kA(A,PB,t.listStylePosition),this.listStyleType=kA(A,Pc,t.listStyleType),this.marginTop=kA(A,OB,t.marginTop),this.marginRight=kA(A,kB,t.marginRight),this.marginBottom=kA(A,MB,t.marginBottom),this.marginLeft=kA(A,KB,t.marginLeft),this.opacity=kA(A,ap,t.opacity);var i=kA(A,RB,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=kA(A,VB,t.overflowWrap),this.paddingTop=kA(A,jB,t.paddingTop),this.paddingRight=kA(A,GB,t.paddingRight),this.paddingBottom=kA(A,qB,t.paddingBottom),this.paddingLeft=kA(A,WB,t.paddingLeft),this.paintOrder=kA(A,Cp,t.paintOrder),this.position=kA(A,XB,t.position),this.textAlign=kA(A,JB,t.textAlign),this.textDecorationColor=kA(A,op,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=kA(A,lp,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=kA(A,zB,t.textShadow),this.textTransform=kA(A,YB,t.textTransform),this.transform=kA(A,ZB,t.transform),this.transformOrigin=kA(A,rp,t.transformOrigin),this.visibility=kA(A,np,t.visibility),this.webkitTextStrokeColor=kA(A,yp,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=kA(A,Qp,t.webkitTextStrokeWidth),this.wordBreak=kA(A,ip,t.wordBreak),this.zIndex=kA(A,sp,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return En(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return it(this.display,4)||it(this.display,33554432)||it(this.display,268435456)||it(this.display,536870912)||it(this.display,67108864)||it(this.display,134217728)},e}(),bp=function(){function e(A,t){this.content=kA(A,gp,t.content),this.quotes=kA(A,vp,t.quotes)}return e}(),Bf=function(){function e(A,t){this.counterIncrement=kA(A,Bp,t.counterIncrement),this.counterReset=kA(A,pp,t.counterReset)}return e}(),kA=function(e,A,t){var r=new Uh,n=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(n);var i=new Lh(r.read());switch(A.type){case 2:var a=i.parseComponentValue();return A.parse(e,Qe(a)?a.value:A.initialValue);case 0:return A.parse(e,i.parseComponentValue());case 1:return A.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return Go.parse(e,i.parseComponentValue());case"color":return Ln.parse(e,i.parseComponentValue());case"image":return iu.parse(e,i.parseComponentValue());case"length":var l=i.parseComponentValue();return xn(l)?l:Bt;case"length-percentage":var c=i.parseComponentValue();return tt(c)?c:Bt;case"time":return Gh.parse(e,i.parseComponentValue())}break}},Up="data-html2canvas-debug",Lp=function(e){var A=e.getAttribute(Up);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Oc=function(e,A){var t=Lp(e);return t===1||A===t},kr=function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Oc(t,3))debugger;this.styles=new Fp(A,window.getComputedStyle(t,null)),Kc(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Vo(this.context,t),Oc(t,4)&&(this.flags|=16)}return e}(),Ep=" ",pf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ks=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var lo=0;lo<pf.length;lo++)Ks[pf.charCodeAt(lo)]=lo;var xp=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,l,c;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<t;r+=4)i=Ks[e.charCodeAt(r)],a=Ks[e.charCodeAt(r+1)],l=Ks[e.charCodeAt(r+2)],c=Ks[e.charCodeAt(r+3)],g[n++]=i<<2|a>>4,g[n++]=(a&15)<<4|l>>2,g[n++]=(l&3)<<6|c&63;return h},Ip=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},_p=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},Zn=5,su=11,Ac=2,Hp=su-Zn,qh=65536>>Zn,Sp=1<<Zn,ec=Sp-1,Np=1024>>Zn,Dp=qh+Np,Tp=Dp,Pp=32,Op=Tp+Pp,kp=65536>>su,Mp=1<<Hp,Kp=Mp-1,wf=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},Rp=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},Vp=function(e,A){var t=xp(e),r=Array.isArray(t)?_p(t):new Uint32Array(t),n=Array.isArray(t)?Ip(t):new Uint16Array(t),i=24,a=wf(n,i/2,r[4]/2),l=r[5]===2?wf(n,(i+r[4])/2):Rp(r,Math.ceil((i+r[4])/4));return new jp(r[0],r[1],r[2],r[3],a,l)},jp=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>Zn],t=(t<<Ac)+(A&ec),this.data[t];if(A<=65535)return t=this.index[qh+(A-55296>>Zn)],t=(t<<Ac)+(A&ec),this.data[t];if(A<this.highStart)return t=Op-kp+(A>>su),t=this.index[t],t+=A>>Zn&Kp,t=this.index[t],t=(t<<Ac)+(A&ec),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),vf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gp=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var co=0;co<vf.length;co++)Gp[vf.charCodeAt(co)]=co;var qp=1,tc=2,rc=3,mf=4,Cf=5,Wp=7,yf=8,nc=9,ic=10,Qf=11,Ff=12,bf=13,Uf=14,sc=15,Jp=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},Xp=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[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},zp=Vp(Ep),tr="×",ac="÷",Yp=function(e){return zp.get(e)},Zp=function(e,A,t){var r=t-2,n=A[r],i=A[t-1],a=A[t];if(i===tc&&a===rc)return tr;if(i===tc||i===rc||i===mf||a===tc||a===rc||a===mf)return ac;if(i===yf&&[yf,nc,Qf,Ff].indexOf(a)!==-1||(i===Qf||i===nc)&&(a===nc||a===ic)||(i===Ff||i===ic)&&a===ic||a===bf||a===Cf||a===Wp||i===qp)return tr;if(i===bf&&a===Uf){for(;n===Cf;)n=A[--r];if(n===Uf)return tr}if(i===sc&&a===sc){for(var l=0;n===sc;)l++,n=A[--r];if(l%2===0)return tr}return ac},$p=function(e){var A=Jp(e),t=A.length,r=0,n=0,i=A.map(Yp);return{next:function(){if(r>=t)return{done:!0,value:null};for(var a=tr;r<t&&(a=Zp(A,i,++r))===tr;);if(a!==tr||r===t){var l=Xp.apply(null,A.slice(n,r));return n=r,{value:l,done:!1}}return{done:!0,value:null}}}},A2=function(e){for(var A=$p(e),t=[],r;!(r=A.next()).done;)r.value&&t.push(r.value.slice());return t},e2=function(e){var A=123;if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=A+"px",r.style.display="block",e.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(e.body.removeChild(r),i===A)return!0}}return!1},t2=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=A.firstChild,n=jo(r.data).map(function(c){return We(c)}),i=0,a={},l=n.every(function(c,h){t.setStart(r,i),t.setEnd(r,i+c.length);var g=t.getBoundingClientRect();i+=c.length;var B=g.x>a.x||g.y>a.y;return a=g,h===0?!0:B});return e.body.removeChild(A),l},r2=function(){return typeof new Image().crossOrigin<"u"},n2=function(){return typeof new XMLHttpRequest().responseType=="string"},i2=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},Lf=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},s2=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.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=A.toDataURL();n.src=i;var a=kc(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Ef(a).then(function(l){r.drawImage(l,0,0);var c=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var h=e.createElement("div");return h.style.backgroundImage="url("+i+")",h.style.height=t+"px",Lf(c)?Ef(kc(t,t,0,0,h)):Promise.reject(!1)}).then(function(l){return r.drawImage(l,0,0),Lf(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},kc=function(e,A,t,r,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),l=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",A.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",t.toString()),l.setAttributeNS(null,"y",r.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(l),l.appendChild(n),a},Ef=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},gt={get SUPPORT_RANGE_BOUNDS(){var e=e2(document);return Object.defineProperty(gt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=gt.SUPPORT_RANGE_BOUNDS&&t2(document);return Object.defineProperty(gt,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=i2(document);return Object.defineProperty(gt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?s2(document):Promise.resolve(!1);return Object.defineProperty(gt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=r2();return Object.defineProperty(gt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=n2();return Object.defineProperty(gt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(gt,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(gt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},qs=function(){function e(A,t){this.text=A,this.bounds=t}return e}(),a2=function(e,A,t,r){var n=c2(A,t),i=[],a=0;return n.forEach(function(l){if(t.textDecorationLine.length||l.trim().length>0)if(gt.SUPPORT_RANGE_BOUNDS){var c=xf(r,a,l.length).getClientRects();if(c.length>1){var h=au(l),g=0;h.forEach(function(w){i.push(new qs(w,tn.fromDOMRectList(e,xf(r,g+a,w.length).getClientRects()))),g+=w.length})}else i.push(new qs(l,tn.fromDOMRectList(e,c)))}else{var B=r.splitText(l.length);i.push(new qs(l,o2(e,r))),r=B}else gt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(l.length));a+=l.length}),i},o2=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=Vo(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return tn.EMPTY},xf=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,A),n.setEnd(e,A+t),n},au=function(e){if(gt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return A2(e)},l2=function(e,A){if(gt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return f2(e,A)},c2=function(e,A){return A.letterSpacing!==0?au(e):l2(e,A)},u2=[32,160,4961,65792,65793,4153,4241],f2=function(e,A){for(var t=k1(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var a=n.value.slice(),l=jo(a),c="";l.forEach(function(h){u2.indexOf(h)===-1?c+=We(h):(c.length&&r.push(c),r.push(We(h)),c="")}),c.length&&r.push(c)}};!(n=t.next()).done;)i();return r},h2=function(){function e(A,t,r){this.text=d2(t.data,r.textTransform),this.textBounds=a2(A,this.text,r,t)}return e}(),d2=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(g2,B2);case 2:return e.toUpperCase();default:return e}},g2=/(^|\s|:|-|\(|\))([a-z])/g,B2=function(e,A,t){return e.length>0?A+t.toUpperCase():e},Wh=function(e){Cr(A,e);function A(t,r){var n=e.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 A}(kr),Jh=function(e){Cr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A}(kr),Xh=function(e){Cr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=new XMLSerializer,a=Vo(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 A}(kr),zh=function(e){Cr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(kr),Mc=function(e){Cr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A}(kr),p2=[{type:15,flags:0,unit:"px",number:3}],w2=[{type:16,flags:0,number:50}],v2=function(e){return e.width>e.height?new tn(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new tn(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},m2=function(e){var A=e.type===C2?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},No="checkbox",Do="radio",C2="password",If=707406591,ou=function(e){Cr(A,e);function A(t,r){var n=e.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=m2(r),(n.type===No||n.type===Do)&&(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=v2(n.bounds)),n.type){case No:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=p2;break;case Do:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=w2;break}return n}return A}(kr),Yh=function(e){Cr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(kr),Zh=function(e){Cr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(kr),$h=function(e){Cr(A,e);function A(t,r){var n=e.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=ed(t,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?js(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):en.TRANSPARENT,a=r.contentWindow.document.body?js(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):en.TRANSPARENT;n.backgroundColor=En(i)?En(a)?n.styles.backgroundColor:a:i}}catch{}return n}return A}(kr),y2=["OL","UL","MENU"],bo=function(e,A,t,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,td(n)&&n.data.trim().length>0)t.textNodes.push(new h2(e,n,t.styles));else if(ji(n))if(sd(n)&&n.assignedNodes)n.assignedNodes().forEach(function(l){return bo(e,l,t,r)});else{var a=Ad(e,n);a.styles.isVisible()&&(Q2(n,a,r)?a.flags|=4:F2(a.styles)&&(a.flags|=2),y2.indexOf(n.tagName)!==-1&&(a.flags|=8),t.elements.push(a),n.slot,n.shadowRoot?bo(e,n.shadowRoot,a,r):!To(n)&&!rd(n)&&!Po(n)&&bo(e,n,a,r))}},Ad=function(e,A){return Rc(A)?new Wh(e,A):nd(A)?new Jh(e,A):rd(A)?new Xh(e,A):b2(A)?new zh(e,A):U2(A)?new Mc(e,A):L2(A)?new ou(e,A):Po(A)?new Yh(e,A):To(A)?new Zh(e,A):id(A)?new $h(e,A):new kr(e,A)},ed=function(e,A){var t=Ad(e,A);return t.flags|=4,bo(e,A,t,t),t},Q2=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||lu(e)&&t.styles.isTransparent()},F2=function(e){return e.isPositioned()||e.isFloating()},td=function(e){return e.nodeType===Node.TEXT_NODE},ji=function(e){return e.nodeType===Node.ELEMENT_NODE},Kc=function(e){return ji(e)&&typeof e.style<"u"&&!Uo(e)},Uo=function(e){return typeof e.className=="object"},b2=function(e){return e.tagName==="LI"},U2=function(e){return e.tagName==="OL"},L2=function(e){return e.tagName==="INPUT"},E2=function(e){return e.tagName==="HTML"},rd=function(e){return e.tagName==="svg"},lu=function(e){return e.tagName==="BODY"},nd=function(e){return e.tagName==="CANVAS"},_f=function(e){return e.tagName==="VIDEO"},Rc=function(e){return e.tagName==="IMG"},id=function(e){return e.tagName==="IFRAME"},Hf=function(e){return e.tagName==="STYLE"},x2=function(e){return e.tagName==="SCRIPT"},To=function(e){return e.tagName==="TEXTAREA"},Po=function(e){return e.tagName==="SELECT"},sd=function(e){return e.tagName==="SLOT"},Sf=function(e){return e.tagName.indexOf("-")>0},I2=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(l){var c=t.counters[l.counter];c&&l.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=l.increment)});var a=[];return i&&n.forEach(function(l){var c=t.counters[l.counter];a.push(l.counter),c||(c=t.counters[l.counter]=[]),c.push(l.reset)}),a},e}(),Nf={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Df={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},_2={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},H2={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ni=function(e,A,t,r,n,i){return e<A||e>t?Ys(e,n,i.length>0):r.integers.reduce(function(a,l,c){for(;e>=l;)e-=l,a+=r.values[c];return a},"")+i},ad=function(e,A,t,r){var n="";do t||e--,n=r(e)+n,e/=A;while(e*A>=A);return n},qe=function(e,A,t,r,n){var i=t-A+1;return(e<0?"-":"")+(ad(Math.abs(e),i,r,function(a){return We(Math.floor(a%i)+A)})+n)},qn=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return ad(Math.abs(e),r,!1,function(n){return A[Math.floor(n%r)]})+t},Mi=1,mn=2,Cn=4,Rs=8,$r=function(e,A,t,r,n,i){if(e<-9999||e>9999)return Ys(e,4,n.length>0);var a=Math.abs(e),l=n;if(a===0)return A[0]+l;for(var c=0;a>0&&c<=4;c++){var h=a%10;h===0&&it(i,Mi)&&l!==""?l=A[h]+l:h>1||h===1&&c===0||h===1&&c===1&&it(i,mn)||h===1&&c===1&&it(i,Cn)&&e>100||h===1&&c>1&&it(i,Rs)?l=A[h]+(c>0?t[c-1]:"")+l:h===1&&c>0&&(l=t[c-1]+l),a=Math.floor(a/10)}return(e<0?r:"")+l},Tf="十百千萬",Pf="拾佰仟萬",Of="マイナス",oc="마이너스",Ys=function(e,A,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",a=t?" ":"";switch(A){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var l=qe(e,48,57,!0,r);return l.length<4?"0"+l:l;case 4:return qn(e,"〇一二三四五六七八九",n);case 6:return Ni(e,1,3999,Nf,3,r).toLowerCase();case 7:return Ni(e,1,3999,Nf,3,r);case 8:return qe(e,945,969,!1,r);case 9:return qe(e,97,122,!1,r);case 10:return qe(e,65,90,!1,r);case 11:return qe(e,1632,1641,!0,r);case 12:case 49:return Ni(e,1,9999,Df,3,r);case 35:return Ni(e,1,9999,Df,3,r).toLowerCase();case 13:return qe(e,2534,2543,!0,r);case 14:case 30:return qe(e,6112,6121,!0,r);case 15:return qn(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return qn(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return $r(e,"零一二三四五六七八九",Tf,"負",n,mn|Cn|Rs);case 47:return $r(e,"零壹貳參肆伍陸柒捌玖",Pf,"負",n,Mi|mn|Cn|Rs);case 42:return $r(e,"零一二三四五六七八九",Tf,"负",n,mn|Cn|Rs);case 41:return $r(e,"零壹贰叁肆伍陆柒捌玖",Pf,"负",n,Mi|mn|Cn|Rs);case 26:return $r(e,"〇一二三四五六七八九","十百千万",Of,n,0);case 25:return $r(e,"零壱弐参四伍六七八九","拾百千万",Of,n,Mi|mn|Cn);case 31:return $r(e,"영일이삼사오육칠팔구","십백천만",oc,i,Mi|mn|Cn);case 33:return $r(e,"零一二三四五六七八九","十百千萬",oc,i,0);case 32:return $r(e,"零壹貳參四五六七八九","拾百千",oc,i,Mi|mn|Cn);case 18:return qe(e,2406,2415,!0,r);case 20:return Ni(e,1,19999,H2,3,r);case 21:return qe(e,2790,2799,!0,r);case 22:return qe(e,2662,2671,!0,r);case 22:return Ni(e,1,10999,_2,3,r);case 23:return qn(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return qn(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return qe(e,3302,3311,!0,r);case 28:return qn(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return qn(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return qe(e,3792,3801,!0,r);case 37:return qe(e,6160,6169,!0,r);case 38:return qe(e,4160,4169,!0,r);case 39:return qe(e,2918,2927,!0,r);case 40:return qe(e,1776,1785,!0,r);case 43:return qe(e,3046,3055,!0,r);case 44:return qe(e,3174,3183,!0,r);case 45:return qe(e,3664,3673,!0,r);case 46:return qe(e,3872,3881,!0,r);case 3:default:return qe(e,48,57,!0,r)}},od="data-html2canvas-ignore",kf=function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new I2,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 e.prototype.toIFrame=function(A,t){var r=this,n=S2(A,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,a=A.defaultView.pageYOffset,l=n.contentWindow,c=l.document,h=T2(n).then(function(){return Ht(r,void 0,void 0,function(){var g,B;return Ut(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(M2),l&&(l.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.scrollY!==t.top||l.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,D2(c)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(c,B)}).then(function(){return n})]:[2,n]}})})});return c.open(),c.write(O2(document.doctype)+"<html></html>"),k2(this.referenceElement.ownerDocument,i,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),h},e.prototype.createElementClone=function(A){if(Oc(A,2))debugger;if(nd(A))return this.createCanvasClone(A);if(_f(A))return this.createVideoClone(A);if(Hf(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Rc(t)&&(Rc(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Sf(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return lc(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.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=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var l=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(l){var c=l.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}a.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,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",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,t,r){(!ji(t)||!x2(t)&&!t.hasAttribute(od)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!ji(t)||!Hf(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(ji(i)&&sd(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(l){return n.appendChildNode(t,l,r)})}else this.appendChildNode(t,i,r)},e.prototype.cloneNode=function(A,t){if(td(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&ji(A)&&(Kc(A)||Uo(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),a=r.getComputedStyle(A,":before"),l=r.getComputedStyle(A,":after");this.referenceElement===A&&Kc(n)&&(this.clonedReferenceElement=n),lu(n)&&V2(n);var c=this.counters.parse(new Bf(this.context,i)),h=this.resolvePseudoContent(A,n,a,Ws.BEFORE);Sf(A)&&(t=!0),_f(A)||this.cloneChildNodes(A,n,t),h&&n.insertBefore(h,n.firstChild);var g=this.resolvePseudoContent(A,n,l,Ws.AFTER);return g&&n.appendChild(g),this.counters.pop(c),(i&&(this.options.copyStyles||Uo(A))&&!id(A)||t)&&lc(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(To(A)||Po(A))&&(To(n)||Po(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,n){var i=this;if(r){var a=r.content,l=t.ownerDocument;if(!(!l||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Bf(this.context,r));var c=new bp(this.context,r),h=l.createElement("html2canvaspseudoelement");lc(r,h),c.content.forEach(function(B){if(B.type===0)h.appendChild(l.createTextNode(B.value));else if(B.type===22){var w=l.createElement("img");w.src=B.value,w.style.opacity="1",h.appendChild(w)}else if(B.type===18){if(B.name==="attr"){var d=B.values.filter(Qe);d.length&&h.appendChild(l.createTextNode(A.getAttribute(d[0].value)||""))}else if(B.name==="counter"){var L=B.values.filter(Yi),Q=L[0],H=L[1];if(Q&&Qe(Q)){var C=i.counters.getCounterValue(Q.value),_=H&&Qe(H)?Pc.parse(i.context,H.value):3;h.appendChild(l.createTextNode(Ys(C,_,!1)))}}else if(B.name==="counters"){var V=B.values.filter(Yi),Q=V[0],Y=V[1],H=V[2];if(Q&&Qe(Q)){var j=i.counters.getCounterValues(Q.value),Z=H&&Qe(H)?Pc.parse(i.context,H.value):3,J=Y&&Y.type===0?Y.value:"",k=j.map(function(I){return Ys(I,Z,!1)}).join(J);h.appendChild(l.createTextNode(k))}}}else if(B.type===20)switch(B.value){case"open-quote":h.appendChild(l.createTextNode(gf(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":h.appendChild(l.createTextNode(gf(c.quotes,--i.quoteDepth,!1)));break;default:h.appendChild(l.createTextNode(B.value))}}),h.className=Vc+" "+jc;var g=n===Ws.BEFORE?" "+Vc:" "+jc;return Uo(t)?t.className.baseValue+=g:t.className+=g,h}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e}(),Ws;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Ws||(Ws={}));var S2=function(e,A){var t=e.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=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(od,"true"),e.body.appendChild(t),t},N2=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},D2=function(e){return Promise.all([].slice.call(e.images,0).map(N2))},T2=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(e))},50)}})},P2=["all","d","content"],lc=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);P2.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},O2=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},k2=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},M2=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},K2=":before",R2=":after",Vc="___html2canvas___pseudoelement_before",jc="___html2canvas___pseudoelement_after",Mf=`{
    content: "" !important;
    display: none !important;
}`,V2=function(e){j2(e,"."+Vc+K2+Mf+`
         .`+jc+R2+Mf)},j2=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},ld=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),G2=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(uc(A)||X2(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return Ht(this,void 0,void 0,function(){var t,r,n,i,a=this;return Ut(this,function(l){switch(l.label){case 0:return t=ld.isSameOrigin(A),r=!cc(A)&&this._options.useCORS===!0&&gt.SUPPORT_CORS_IMAGES&&!t,n=!cc(A)&&!t&&!uc(A)&&typeof this._options.proxy=="string"&&gt.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!cc(A)&&!uc(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=l.sent(),l.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,h){var g=new Image;g.onload=function(){return c(g)},g.onerror=h,(z2(i)||r)&&(g.crossOrigin="anonymous"),g.src=i,g.complete===!0&&setTimeout(function(){return c(g)},500),a._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,l.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,a){var l=gt.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(l==="text")i(c.response);else{var B=new FileReader;B.addEventListener("load",function(){return i(B.result)},!1),B.addEventListener("error",function(w){return a(w)},!1),B.readAsDataURL(c.response)}else a("Failed to proxy resource "+n+" with status code "+c.status)},c.onerror=a;var h=r.indexOf("?")>-1?"&":"?";if(c.open("GET",""+r+h+"url="+encodeURIComponent(A)+"&responseType="+l),l!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=l),t._options.imageTimeout){var g=t._options.imageTimeout;c.timeout=g,c.ontimeout=function(){return a("Timed out ("+g+"ms) proxying "+n)}}c.send()})},e}(),q2=/^data:image\/svg\+xml/i,W2=/^data:image\/.*;base64,/i,J2=/^data:image\/.*/i,X2=function(e){return gt.SUPPORT_SVG_DRAWING||!Y2(e)},cc=function(e){return J2.test(e)},z2=function(e){return W2.test(e)},uc=function(e){return e.substr(0,4)==="blob"},Y2=function(e){return e.substr(-3).toLowerCase()==="svg"||q2.test(e)},TA=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),Di=function(e,A,t){return new TA(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},uo=function(){function e(A,t,r,n){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(A,t){var r=Di(this.start,this.startControl,A),n=Di(this.startControl,this.endControl,A),i=Di(this.endControl,this.end,A),a=Di(r,n,A),l=Di(n,i,A),c=Di(a,l,A);return t?new e(this.start,r,a,c):new e(c,l,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),rr=function(e){return e.type===1},Z2=function(){function e(A){var t=A.styles,r=A.bounds,n=Ms(t.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],l=Ms(t.borderTopRightRadius,r.width,r.height),c=l[0],h=l[1],g=Ms(t.borderBottomRightRadius,r.width,r.height),B=g[0],w=g[1],d=Ms(t.borderBottomLeftRadius,r.width,r.height),L=d[0],Q=d[1],H=[];H.push((i+c)/r.width),H.push((L+B)/r.width),H.push((a+Q)/r.height),H.push((h+w)/r.height);var C=Math.max.apply(Math,H);C>1&&(i/=C,a/=C,c/=C,h/=C,B/=C,w/=C,L/=C,Q/=C);var _=r.width-c,V=r.height-w,Y=r.width-B,j=r.height-Q,Z=t.borderTopWidth,J=t.borderRightWidth,k=t.borderBottomWidth,q=t.borderLeftWidth,nA=He(t.paddingTop,A.bounds.width),I=He(t.paddingRight,A.bounds.width),S=He(t.paddingBottom,A.bounds.width),R=He(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?De(r.left+q/3,r.top+Z/3,i-q/3,a-Z/3,pe.TOP_LEFT):new TA(r.left+q/3,r.top+Z/3),this.topRightBorderDoubleOuterBox=i>0||a>0?De(r.left+_,r.top+Z/3,c-J/3,h-Z/3,pe.TOP_RIGHT):new TA(r.left+r.width-J/3,r.top+Z/3),this.bottomRightBorderDoubleOuterBox=B>0||w>0?De(r.left+Y,r.top+V,B-J/3,w-k/3,pe.BOTTOM_RIGHT):new TA(r.left+r.width-J/3,r.top+r.height-k/3),this.bottomLeftBorderDoubleOuterBox=L>0||Q>0?De(r.left+q/3,r.top+j,L-q/3,Q-k/3,pe.BOTTOM_LEFT):new TA(r.left+q/3,r.top+r.height-k/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?De(r.left+q*2/3,r.top+Z*2/3,i-q*2/3,a-Z*2/3,pe.TOP_LEFT):new TA(r.left+q*2/3,r.top+Z*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?De(r.left+_,r.top+Z*2/3,c-J*2/3,h-Z*2/3,pe.TOP_RIGHT):new TA(r.left+r.width-J*2/3,r.top+Z*2/3),this.bottomRightBorderDoubleInnerBox=B>0||w>0?De(r.left+Y,r.top+V,B-J*2/3,w-k*2/3,pe.BOTTOM_RIGHT):new TA(r.left+r.width-J*2/3,r.top+r.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=L>0||Q>0?De(r.left+q*2/3,r.top+j,L-q*2/3,Q-k*2/3,pe.BOTTOM_LEFT):new TA(r.left+q*2/3,r.top+r.height-k*2/3),this.topLeftBorderStroke=i>0||a>0?De(r.left+q/2,r.top+Z/2,i-q/2,a-Z/2,pe.TOP_LEFT):new TA(r.left+q/2,r.top+Z/2),this.topRightBorderStroke=i>0||a>0?De(r.left+_,r.top+Z/2,c-J/2,h-Z/2,pe.TOP_RIGHT):new TA(r.left+r.width-J/2,r.top+Z/2),this.bottomRightBorderStroke=B>0||w>0?De(r.left+Y,r.top+V,B-J/2,w-k/2,pe.BOTTOM_RIGHT):new TA(r.left+r.width-J/2,r.top+r.height-k/2),this.bottomLeftBorderStroke=L>0||Q>0?De(r.left+q/2,r.top+j,L-q/2,Q-k/2,pe.BOTTOM_LEFT):new TA(r.left+q/2,r.top+r.height-k/2),this.topLeftBorderBox=i>0||a>0?De(r.left,r.top,i,a,pe.TOP_LEFT):new TA(r.left,r.top),this.topRightBorderBox=c>0||h>0?De(r.left+_,r.top,c,h,pe.TOP_RIGHT):new TA(r.left+r.width,r.top),this.bottomRightBorderBox=B>0||w>0?De(r.left+Y,r.top+V,B,w,pe.BOTTOM_RIGHT):new TA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=L>0||Q>0?De(r.left,r.top+j,L,Q,pe.BOTTOM_LEFT):new TA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?De(r.left+q,r.top+Z,Math.max(0,i-q),Math.max(0,a-Z),pe.TOP_LEFT):new TA(r.left+q,r.top+Z),this.topRightPaddingBox=c>0||h>0?De(r.left+Math.min(_,r.width-J),r.top+Z,_>r.width+J?0:Math.max(0,c-J),Math.max(0,h-Z),pe.TOP_RIGHT):new TA(r.left+r.width-J,r.top+Z),this.bottomRightPaddingBox=B>0||w>0?De(r.left+Math.min(Y,r.width-q),r.top+Math.min(V,r.height-k),Math.max(0,B-J),Math.max(0,w-k),pe.BOTTOM_RIGHT):new TA(r.left+r.width-J,r.top+r.height-k),this.bottomLeftPaddingBox=L>0||Q>0?De(r.left+q,r.top+Math.min(j,r.height-k),Math.max(0,L-q),Math.max(0,Q-k),pe.BOTTOM_LEFT):new TA(r.left+q,r.top+r.height-k),this.topLeftContentBox=i>0||a>0?De(r.left+q+R,r.top+Z+nA,Math.max(0,i-(q+R)),Math.max(0,a-(Z+nA)),pe.TOP_LEFT):new TA(r.left+q+R,r.top+Z+nA),this.topRightContentBox=c>0||h>0?De(r.left+Math.min(_,r.width+q+R),r.top+Z+nA,_>r.width+q+R?0:c-q+R,h-(Z+nA),pe.TOP_RIGHT):new TA(r.left+r.width-(J+I),r.top+Z+nA),this.bottomRightContentBox=B>0||w>0?De(r.left+Math.min(Y,r.width-(q+R)),r.top+Math.min(V,r.height+Z+nA),Math.max(0,B-(J+I)),w-(k+S),pe.BOTTOM_RIGHT):new TA(r.left+r.width-(J+I),r.top+r.height-(k+S)),this.bottomLeftContentBox=L>0||Q>0?De(r.left+q+R,r.top+j,Math.max(0,L-(q+R)),Q-(k+S),pe.BOTTOM_LEFT):new TA(r.left+q+R,r.top+r.height-(k+S))}return e}(),pe;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(pe||(pe={}));var De=function(e,A,t,r,n){var i=4*((Math.sqrt(2)-1)/3),a=t*i,l=r*i,c=e+t,h=A+r;switch(n){case pe.TOP_LEFT:return new uo(new TA(e,h),new TA(e,h-l),new TA(c-a,A),new TA(c,A));case pe.TOP_RIGHT:return new uo(new TA(e,A),new TA(e+a,A),new TA(c,h-l),new TA(c,h));case pe.BOTTOM_RIGHT:return new uo(new TA(c,A),new TA(c,A+l),new TA(e+a,h),new TA(e,h));case pe.BOTTOM_LEFT:default:return new uo(new TA(c,h),new TA(c-a,h),new TA(e,A+l),new TA(e,A))}},Oo=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},$2=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},ko=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},A5=function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e}(),fo=function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e}(),e5=function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e}(),t5=function(e){return e.type===0},cd=function(e){return e.type===1},r5=function(e){return e.type===2},Kf=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},n5=function(e,A,t,r,n){return e.map(function(i,a){switch(a){case 0:return i.add(A,t);case 1:return i.add(A+r,t);case 2:return i.add(A+r,t+n);case 3:return i.add(A,t+n)}return i})},ud=function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),fd=function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new Z2(this.container),this.container.styles.opacity<1&&this.effects.push(new e5(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 A5(r,n,i))}if(this.container.styles.overflowX!==0){var a=Oo(this.curves),l=ko(this.curves);Kf(a,l)?this.effects.push(new fo(a,6)):(this.effects.push(new fo(a,2)),this.effects.push(new fo(l,4)))}}return e.prototype.getEffects=function(A){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(c){return!cd(c)});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=Oo(r.curves),l=ko(r.curves);Kf(a,l)||n.unshift(new fo(l,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(c){return it(c.target,A)})},e}(),Gc=function(e,A,t,r){e.container.elements.forEach(function(n){var i=it(n.flags,4),a=it(n.flags,2),l=new fd(n,e);it(n.styles.display,2048)&&r.push(l);var c=it(n.flags,8)?[]:r;if(i||a){var h=i||n.styles.isPositioned()?t:A,g=new ud(l);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var w=0;h.negativeZIndex.some(function(L,Q){return B>L.element.container.styles.zIndex.order?(w=Q,!1):w>0}),h.negativeZIndex.splice(w,0,g)}else if(B>0){var d=0;h.positiveZIndex.some(function(L,Q){return B>=L.element.container.styles.zIndex.order?(d=Q+1,!1):d>0}),h.positiveZIndex.splice(d,0,g)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?h.nonPositionedFloats.push(g):h.nonPositionedInlineLevel.push(g);Gc(l,g,i?g:t,c)}else n.styles.isInlineLevel()?A.inlineLevel.push(l):A.nonInlineLevel.push(l),Gc(l,A,t,c);it(n.flags,8)&&hd(n,c)})},hd=function(e,A){for(var t=e instanceof Mc?e.start:1,r=e instanceof Mc?e.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof zh&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=Ys(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},i5=function(e){var A=new fd(e,null),t=new ud(A),r=[];return Gc(A,t,t,r),hd(A.container,r),t},Rf=function(e,A){switch(A){case 0:return ir(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return ir(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return ir(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return ir(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},s5=function(e,A){switch(A){case 0:return ir(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return ir(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return ir(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return ir(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},a5=function(e,A){switch(A){case 0:return ir(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return ir(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return ir(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return ir(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},o5=function(e,A){switch(A){case 0:return ho(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return ho(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return ho(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return ho(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},ho=function(e,A){var t=[];return rr(e)?t.push(e.subdivide(.5,!1)):t.push(e),rr(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},ir=function(e,A,t,r){var n=[];return rr(e)?n.push(e.subdivide(.5,!1)):n.push(e),rr(t)?n.push(t.subdivide(.5,!0)):n.push(t),rr(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),rr(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},dd=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Mo=function(e){var A=e.styles,t=e.bounds,r=He(A.paddingLeft,t.width),n=He(A.paddingRight,t.width),i=He(A.paddingTop,t.width),a=He(A.paddingBottom,t.width);return t.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+a))},l5=function(e,A){return e===0?A.bounds:e===2?Mo(A):dd(A)},c5=function(e,A){return e===0?A.bounds:e===2?Mo(A):dd(A)},fc=function(e,A,t){var r=l5(Ki(e.styles.backgroundOrigin,A),e),n=c5(Ki(e.styles.backgroundClip,A),e),i=u5(Ki(e.styles.backgroundSize,A),t,r),a=i[0],l=i[1],c=Ms(Ki(e.styles.backgroundPosition,A),r.width-a,r.height-l),h=f5(Ki(e.styles.backgroundRepeat,A),c,i,r,n),g=Math.round(r.left+c[0]),B=Math.round(r.top+c[1]);return[h,g,B,a,l]},Ti=function(e){return Qe(e)&&e.value===qi.AUTO},go=function(e){return typeof e=="number"},u5=function(e,A,t){var r=A[0],n=A[1],i=A[2],a=e[0],l=e[1];if(!a)return[0,0];if(tt(a)&&l&&tt(l))return[He(a,t.width),He(l,t.height)];var c=go(i);if(Qe(a)&&(a.value===qi.CONTAIN||a.value===qi.COVER)){if(go(i)){var h=t.width/t.height;return h<i!=(a.value===qi.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var g=go(r),B=go(n),w=g||B;if(Ti(a)&&(!l||Ti(l))){if(g&&B)return[r,n];if(!c&&!w)return[t.width,t.height];if(w&&c){var d=g?r:n*i,L=B?n:r/i;return[d,L]}var Q=g?r:t.width,H=B?n:t.height;return[Q,H]}if(c){var C=0,_=0;return tt(a)?C=He(a,t.width):tt(l)&&(_=He(l,t.height)),Ti(a)?C=_*i:(!l||Ti(l))&&(_=C/i),[C,_]}var V=null,Y=null;if(tt(a)?V=He(a,t.width):l&&tt(l)&&(Y=He(l,t.height)),V!==null&&(!l||Ti(l))&&(Y=g&&B?V/r*n:t.height),Y!==null&&Ti(a)&&(V=g&&B?Y/n*r:t.width),V!==null&&Y!==null)return[V,Y];throw new Error("Unable to calculate background-size for element")},Ki=function(e,A){var t=e[A];return typeof t>"u"?e[0]:t},f5=function(e,A,t,r,n){var i=A[0],a=A[1],l=t[0],c=t[1];switch(e){case 2:return[new TA(Math.round(r.left),Math.round(r.top+a)),new TA(Math.round(r.left+r.width),Math.round(r.top+a)),new TA(Math.round(r.left+r.width),Math.round(c+r.top+a)),new TA(Math.round(r.left),Math.round(c+r.top+a))];case 3:return[new TA(Math.round(r.left+i),Math.round(r.top)),new TA(Math.round(r.left+i+l),Math.round(r.top)),new TA(Math.round(r.left+i+l),Math.round(r.height+r.top)),new TA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new TA(Math.round(r.left+i),Math.round(r.top+a)),new TA(Math.round(r.left+i+l),Math.round(r.top+a)),new TA(Math.round(r.left+i+l),Math.round(r.top+a+c)),new TA(Math.round(r.left+i),Math.round(r.top+a+c))];default:return[new TA(Math.round(n.left),Math.round(n.top)),new TA(Math.round(n.left+n.width),Math.round(n.top)),new TA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new TA(Math.round(n.left),Math.round(n.height+n.top))]}},h5="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Vf="Hidden Text",d5=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,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=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=h5,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Vf)),r.appendChild(i),r.appendChild(n);var l=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Vf)),r.style.lineHeight="normal",n.style.verticalAlign="super";var c=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:l,middle:c}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e}(),gd=function(){function e(A,t){this.context=A,this.options=t}return e}(),g5=1e4,B5=function(e){Cr(A,e);function A(t,r){var n=e.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 d5(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(t){this.ctx.save(),r5(t)&&(this.ctx.globalAlpha=t.opacity),t5(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)),cd(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return Ht(this,void 0,void 0,function(){var r;return Ut(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]}})})},A.prototype.renderNode=function(t){return Ht(this,void 0,void 0,function(){return Ut(this,function(r){switch(r.label){case 0:if(it(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]}})})},A.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=au(t.text);a.reduce(function(l,c){return i.ctx.fillText(c,l,t.bounds.top+n),l+i.ctx.measureText(c).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=C5(t.fontFamily).join(", "),i=Aa(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(t,r){return Ht(this,void 0,void 0,function(){var n,i,a,l,c,h,g,B,w=this;return Ut(this,function(d){return n=this.createFontStyle(r),i=n[0],a=n[1],l=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(a,l),h=c.baseline,g=c.middle,B=r.paintOrder,t.textBounds.forEach(function(L){B.forEach(function(Q){switch(Q){case 0:w.ctx.fillStyle=lt(r.color),w.renderTextWithLetterSpacing(L,r.letterSpacing,h);var H=r.textShadow;H.length&&L.text.trim().length&&(H.slice(0).reverse().forEach(function(C){w.ctx.shadowColor=lt(C.color),w.ctx.shadowOffsetX=C.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=C.offsetY.number*w.options.scale,w.ctx.shadowBlur=C.blur.number,w.renderTextWithLetterSpacing(L,r.letterSpacing,h)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=lt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(C){switch(C){case 1:w.ctx.fillRect(L.bounds.left,Math.round(L.bounds.top+h),L.bounds.width,1);break;case 2:w.ctx.fillRect(L.bounds.left,Math.round(L.bounds.top),L.bounds.width,1);break;case 3:w.ctx.fillRect(L.bounds.left,Math.ceil(L.bounds.top+g),L.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&L.text.trim().length&&(w.ctx.strokeStyle=lt(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(L.text,L.bounds.left,L.bounds.top+h)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Mo(t),a=ko(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()}},A.prototype.renderNodeContent=function(t){return Ht(this,void 0,void 0,function(){var r,n,i,a,l,c,_,_,h,g,B,w,Y,d,L,j,Q,H,C,_,V,Y,j;return Ut(this,function(Z){switch(Z.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,a=0,l=r.textNodes,Z.label=1;case 1:return a<l.length?(c=l[a],[4,this.renderTextNode(c,i)]):[3,4];case 2:Z.sent(),Z.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof Wh))return[3,8];Z.label=5;case 5:return Z.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return _=Z.sent(),this.renderReplacedElement(r,n,_),[3,8];case 7:return Z.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Jh&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Xh))return[3,12];Z.label=9;case 9:return Z.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return _=Z.sent(),this.renderReplacedElement(r,n,_),[3,12];case 11:return Z.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof $h&&r.tree?(h=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,h.render(r.tree)]):[3,14];case 13:g=Z.sent(),r.width&&r.height&&this.ctx.drawImage(g,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),Z.label=14;case 14:if(r instanceof ou&&(B=Math.min(r.bounds.width,r.bounds.height),r.type===No?r.checked&&(this.ctx.save(),this.path([new TA(r.bounds.left+B*.39363,r.bounds.top+B*.79),new TA(r.bounds.left+B*.16,r.bounds.top+B*.5549),new TA(r.bounds.left+B*.27347,r.bounds.top+B*.44071),new TA(r.bounds.left+B*.39694,r.bounds.top+B*.5649),new TA(r.bounds.left+B*.72983,r.bounds.top+B*.23),new TA(r.bounds.left+B*.84,r.bounds.top+B*.34085),new TA(r.bounds.left+B*.39363,r.bounds.top+B*.79)]),this.ctx.fillStyle=lt(If),this.ctx.fill(),this.ctx.restore()):r.type===Do&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+B/2,r.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=lt(If),this.ctx.fill(),this.ctx.restore())),p5(r)&&r.value.length){switch(w=this.createFontStyle(i),Y=w[0],d=w[1],L=this.fontMetrics.getMetrics(Y,d).baseline,this.ctx.font=Y,this.ctx.fillStyle=lt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=v5(r.styles.textAlign),j=Mo(r),Q=0,r.styles.textAlign){case 1:Q+=j.width/2;break;case 2:Q+=j.width;break}H=j.add(Q,0,0,-j.height/2+1),this.ctx.save(),this.path([new TA(j.left,j.top),new TA(j.left+j.width,j.top),new TA(j.left+j.width,j.top+j.height),new TA(j.left,j.top+j.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new qs(r.value,H),i.letterSpacing,L),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!it(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(C=r.styles.listStyleImage,C.type!==0)return[3,18];_=void 0,V=C.url,Z.label=15;case 15:return Z.trys.push([15,17,,18]),[4,this.context.cache.match(V)];case 16:return _=Z.sent(),this.ctx.drawImage(_,r.bounds.left-(_.width+10),r.bounds.top),[3,18];case 17:return Z.sent(),this.context.logger.error("Error loading list-style-image "+V),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(Y=this.createFontStyle(i)[0],this.ctx.font=Y,this.ctx.fillStyle=lt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",j=new tn(r.bounds.left,r.bounds.top+He(r.styles.paddingTop,r.bounds.width),r.bounds.width,hf(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new qs(t.listValue,j),i.letterSpacing,hf(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Z.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(t){return Ht(this,void 0,void 0,function(){var r,n,C,i,a,C,l,c,C,h,g,C,B,w,C,d,L,C,Q,H,C;return Ut(this,function(_){switch(_.label){case 0:if(it(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?(C=n[r],[4,this.renderStack(C)]):[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?(C=a[i],[4,this.renderNode(C)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:l=0,c=t.nonPositionedFloats,_.label=11;case 11:return l<c.length?(C=c[l],[4,this.renderStack(C)]):[3,14];case 12:_.sent(),_.label=13;case 13:return l++,[3,11];case 14:h=0,g=t.nonPositionedInlineLevel,_.label=15;case 15:return h<g.length?(C=g[h],[4,this.renderStack(C)]):[3,18];case 16:_.sent(),_.label=17;case 17:return h++,[3,15];case 18:B=0,w=t.inlineLevel,_.label=19;case 19:return B<w.length?(C=w[B],[4,this.renderNode(C)]):[3,22];case 20:_.sent(),_.label=21;case 21:return B++,[3,19];case 22:d=0,L=t.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return d<L.length?(C=L[d],[4,this.renderStack(C)]):[3,26];case 24:_.sent(),_.label=25;case 25:return d++,[3,23];case 26:Q=0,H=t.positiveZIndex,_.label=27;case 27:return Q<H.length?(C=H[Q],[4,this.renderStack(C)]):[3,30];case 28:_.sent(),_.label=29;case 29:return Q++,[3,27];case 30:return[2]}})})},A.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()},A.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},A.prototype.formatPath=function(t){var r=this;t.forEach(function(n,i){var a=rr(n)?n.start:n;i===0?r.ctx.moveTo(a.x,a.y):r.ctx.lineTo(a.x,a.y),rr(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(t,r,n,i){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.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,l=a.createElement("canvas");l.width=Math.max(1,r),l.height=Math.max(1,n);var c=l.getContext("2d");return c.drawImage(t,0,0,t.width,t.height,0,0,r,n),l},A.prototype.renderBackgroundImage=function(t){return Ht(this,void 0,void 0,function(){var r,n,i,a,l,c;return Ut(this,function(h){switch(h.label){case 0:r=t.styles.backgroundImage.length-1,n=function(g){var B,w,d,nA,iA,uA,R,M,k,L,nA,iA,uA,R,M,Q,H,C,_,V,Y,j,Z,J,k,q,nA,I,S,R,M,lA,iA,uA,tA,fA,hA,bA,b,T,U,O;return Ut(this,function(G){switch(G.label){case 0:if(g.type!==0)return[3,5];B=void 0,w=g.url,G.label=1;case 1:return G.trys.push([1,3,,4]),[4,i.context.cache.match(w)];case 2:return B=G.sent(),[3,4];case 3:return G.sent(),i.context.logger.error("Error loading background-image "+w),[3,4];case 4:return B&&(d=fc(t,r,[B.width,B.height,B.width/B.height]),nA=d[0],iA=d[1],uA=d[2],R=d[3],M=d[4],k=i.ctx.createPattern(i.resizeImage(B,R,M),"repeat"),i.renderRepeat(nA,k,iA,uA)),[3,6];case 5:tB(g)?(L=fc(t,r,[null,null,null]),nA=L[0],iA=L[1],uA=L[2],R=L[3],M=L[4],Q=Y0(g.angle,R,M),H=Q[0],C=Q[1],_=Q[2],V=Q[3],Y=Q[4],j=document.createElement("canvas"),j.width=R,j.height=M,Z=j.getContext("2d"),J=Z.createLinearGradient(C,V,_,Y),uf(g.stops,H).forEach(function(AA){return J.addColorStop(AA.stop,lt(AA.color))}),Z.fillStyle=J,Z.fillRect(0,0,R,M),R>0&&M>0&&(k=i.ctx.createPattern(j,"repeat"),i.renderRepeat(nA,k,iA,uA))):rB(g)&&(q=fc(t,r,[null,null,null]),nA=q[0],I=q[1],S=q[2],R=q[3],M=q[4],lA=g.position.length===0?[nu]:g.position,iA=He(lA[0],R),uA=He(lA[lA.length-1],M),tA=Z0(g,iA,uA,R,M),fA=tA[0],hA=tA[1],fA>0&&hA>0&&(bA=i.ctx.createRadialGradient(I+iA,S+uA,0,I+iA,S+uA,fA),uf(g.stops,fA*2).forEach(function(AA){return bA.addColorStop(AA.stop,lt(AA.color))}),i.path(nA),i.ctx.fillStyle=bA,fA!==hA?(b=t.bounds.left+.5*t.bounds.width,T=t.bounds.top+.5*t.bounds.height,U=hA/fA,O=1/U,i.ctx.save(),i.ctx.translate(b,T),i.ctx.transform(1,0,0,U,0,0),i.ctx.translate(-b,-T),i.ctx.fillRect(I,O*(S-T)+T,R,M*O),i.ctx.restore()):i.ctx.fill())),G.label=6;case 6:return r--,[2]}})},i=this,a=0,l=t.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return a<l.length?(c=l[a],[5,n(c)]):[3,4];case 2:h.sent(),h.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(t,r,n){return Ht(this,void 0,void 0,function(){return Ut(this,function(i){return this.path(Rf(n,r)),this.ctx.fillStyle=lt(t),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(t,r,n,i){return Ht(this,void 0,void 0,function(){var a,l;return Ut(this,function(c){switch(c.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return c.sent(),[2];case 2:return a=s5(i,n),this.path(a),this.ctx.fillStyle=lt(t),this.ctx.fill(),l=a5(i,n),this.path(l),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(t){return Ht(this,void 0,void 0,function(){var r,n,i,a,l,c,h,g,B=this;return Ut(this,function(w){switch(w.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!En(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=w5(Ki(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),En(r.backgroundColor)||(this.ctx.fillStyle=lt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:w.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(d){B.ctx.save();var L=Oo(t.curves),Q=d.inset?0:g5,H=n5(L,-Q+(d.inset?1:-1)*d.spread.number,(d.inset?1:-1)*d.spread.number,d.spread.number*(d.inset?-2:2),d.spread.number*(d.inset?-2:2));d.inset?(B.path(L),B.ctx.clip(),B.mask(H)):(B.mask(L),B.ctx.clip(),B.path(H)),B.ctx.shadowOffsetX=d.offsetX.number+Q,B.ctx.shadowOffsetY=d.offsetY.number,B.ctx.shadowColor=lt(d.color),B.ctx.shadowBlur=d.blur.number,B.ctx.fillStyle=d.inset?lt(d.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),w.label=2;case 2:l=0,c=0,h=i,w.label=3;case 3:return c<h.length?(g=h[c],g.style!==0&&!En(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,l,t.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,l,t.curves,3)];case 6:return w.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,l,t.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,l,t.curves)];case 10:w.sent(),w.label=11;case 11:l++,w.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,n,i,a){return Ht(this,void 0,void 0,function(){var l,c,h,g,B,w,d,L,Q,H,C,_,V,Y,j,Z,j,Z;return Ut(this,function(J){return this.ctx.save(),l=o5(i,n),c=Rf(i,n),a===2&&(this.path(c),this.ctx.clip()),rr(c[0])?(h=c[0].start.x,g=c[0].start.y):(h=c[0].x,g=c[0].y),rr(c[1])?(B=c[1].end.x,w=c[1].end.y):(B=c[1].x,w=c[1].y),n===0||n===2?d=Math.abs(h-B):d=Math.abs(g-w),this.ctx.beginPath(),a===3?this.formatPath(l):this.formatPath(c.slice(0,2)),L=r<3?r*3:r*2,Q=r<3?r*2:r,a===3&&(L=r,Q=r),H=!0,d<=L*2?H=!1:d<=L*2+Q?(C=d/(2*L+Q),L*=C,Q*=C):(_=Math.floor((d+Q)/(L+Q)),V=(d-_*L)/(_-1),Y=(d-(_+1)*L)/_,Q=Y<=0||Math.abs(Q-V)<Math.abs(Q-Y)?V:Y),H&&(a===3?this.ctx.setLineDash([0,L+Q]):this.ctx.setLineDash([L,Q])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=lt(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(rr(c[0])&&(j=c[3],Z=c[0],this.ctx.beginPath(),this.formatPath([new TA(j.end.x,j.end.y),new TA(Z.start.x,Z.start.y)]),this.ctx.stroke()),rr(c[1])&&(j=c[1],Z=c[2],this.ctx.beginPath(),this.formatPath([new TA(j.end.x,j.end.y),new TA(Z.start.x,Z.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(t){return Ht(this,void 0,void 0,function(){var r;return Ut(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=lt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=i5(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(gd),p5=function(e){return e instanceof Zh||e instanceof Yh?!0:e instanceof ou&&e.type!==Do&&e.type!==No},w5=function(e,A){switch(e){case 0:return Oo(A);case 2:return $2(A);case 1:default:return ko(A)}},v5=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},m5=["-apple-system","system-ui"],C5=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return m5.indexOf(A)===-1}):e},y5=function(e){Cr(A,e);function A(t,r){var n=e.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 A.prototype.render=function(t){return Ht(this,void 0,void 0,function(){var r,n;return Ut(this,function(i){switch(i.label){case 0:return r=kc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Q5(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=lt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(gd),Q5=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},F5=function(){function e(A){var t=A.id,r=A.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,qa([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,qa([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,qa([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,qa([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e}(),b5=function(){function e(A,t){var r;this.windowBounds=t,this.instanceName="#"+e.instanceCount++,this.logger=new F5({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new G2(this,A)}return e.instanceCount=1,e}(),Bd=function(e,A){return A===void 0&&(A={}),U5(e,A)};typeof window<"u"&&ld.setContext(window);var U5=function(e,A){return Ht(void 0,void 0,void 0,function(){var t,r,n,i,a,l,c,h,g,B,w,d,L,Q,H,C,_,V,Y,j,J,Z,J,k,q,nA,I,S,R,M,lA,iA,uA,tA,fA,hA,bA,b,T,U;return Ut(this,function(O){switch(O.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=e.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:(k=A.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(q=A.imageTimeout)!==null&&q!==void 0?q:15e3,proxy:A.proxy,useCORS:(nA=A.useCORS)!==null&&nA!==void 0?nA:!1},i=Fc({logging:(I=A.logging)!==null&&I!==void 0?I:!0,cache:A.cache},n),a={windowWidth:(S=A.windowWidth)!==null&&S!==void 0?S:r.innerWidth,windowHeight:(R=A.windowHeight)!==null&&R!==void 0?R:r.innerHeight,scrollX:(M=A.scrollX)!==null&&M!==void 0?M:r.pageXOffset,scrollY:(lA=A.scrollY)!==null&&lA!==void 0?lA:r.pageYOffset},l=new tn(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),c=new b5(i,l),h=(iA=A.foreignObjectRendering)!==null&&iA!==void 0?iA:!1,g={allowTaint:(uA=A.allowTaint)!==null&&uA!==void 0?uA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:h,copyStyles:h},c.logger.debug("Starting document clone with size "+l.width+"x"+l.height+" scrolled to "+-l.left+","+-l.top),B=new kf(c,e,g),w=B.clonedReferenceElement,w?[4,B.toIFrame(t,l)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return d=O.sent(),L=lu(w)||E2(w)?n1(w.ownerDocument):Vo(c,w),Q=L.width,H=L.height,C=L.left,_=L.top,V=L5(c,w,A.backgroundColor),Y={canvas:A.canvas,backgroundColor:V,scale:(fA=(tA=A.scale)!==null&&tA!==void 0?tA:r.devicePixelRatio)!==null&&fA!==void 0?fA:1,x:((hA=A.x)!==null&&hA!==void 0?hA:0)+C,y:((bA=A.y)!==null&&bA!==void 0?bA:0)+_,width:(b=A.width)!==null&&b!==void 0?b:Math.ceil(Q),height:(T=A.height)!==null&&T!==void 0?T:Math.ceil(H)},h?(c.logger.debug("Document cloned, using foreign object rendering"),J=new y5(c,Y),[4,J.render(w)]):[3,3];case 2:return j=O.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+C+","+_+" with size "+Q+"x"+H+" using computed rendering"),c.logger.debug("Starting DOM parsing"),Z=ed(c,w),V===Z.styles.backgroundColor&&(Z.styles.backgroundColor=en.TRANSPARENT),c.logger.debug("Starting renderer for element at "+Y.x+","+Y.y+" with size "+Y.width+"x"+Y.height),J=new B5(c,Y),[4,J.render(Z)];case 4:j=O.sent(),O.label=5;case 5:return(!((U=A.removeContainer)!==null&&U!==void 0)||U)&&(kf.destroy(d)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,j]}})})},L5=function(e,A,t){var r=A.ownerDocument,n=r.documentElement?js(e,getComputedStyle(r.documentElement).backgroundColor):en.TRANSPARENT,i=r.body?js(e,getComputedStyle(r.body).backgroundColor):en.TRANSPARENT,a=typeof t=="string"?js(e,t):t===null?en.TRANSPARENT:4294967295;return A===r.documentElement?En(n)?En(i)?a:i:n:a};const E5=Object.freeze(Object.defineProperty({__proto__:null,default:Bd},Symbol.toStringTag,{value:"Module"}));function me(e){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},me(e)}var Et=Uint8Array,Wt=Uint16Array,cu=Int32Array,$o=new Et([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]),Al=new Et([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]),qc=new Et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pd=function(e,A){for(var t=new Wt(31),r=0;r<31;++r)t[r]=A+=1<<e[r-1];for(var n=new cu(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}},wd=pd($o,2),vd=wd.b,Wc=wd.r;vd[28]=258,Wc[258]=28;var md=pd(Al,0),x5=md.b,jf=md.r,Jc=new Wt(32768);for(var Se=0;Se<32768;++Se){var wn=(Se&43690)>>1|(Se&21845)<<1;wn=(wn&52428)>>2|(wn&13107)<<2,wn=(wn&61680)>>4|(wn&3855)<<4,Jc[Se]=((wn&65280)>>8|(wn&255)<<8)>>1}var Pr=function(e,A,t){for(var r=e.length,n=0,i=new Wt(A);n<r;++n)e[n]&&++i[e[n]-1];var a=new Wt(A);for(n=1;n<A;++n)a[n]=a[n-1]+i[n-1]<<1;var l;if(t){l=new Wt(1<<A);var c=15-A;for(n=0;n<r;++n)if(e[n])for(var h=n<<4|e[n],g=A-e[n],B=a[e[n]-1]++<<g,w=B|(1<<g)-1;B<=w;++B)l[Jc[B]>>c]=h}else for(l=new Wt(r),n=0;n<r;++n)e[n]&&(l[n]=Jc[a[e[n]-1]++]>>15-e[n]);return l},In=new Et(288);for(var Se=0;Se<144;++Se)In[Se]=8;for(var Se=144;Se<256;++Se)In[Se]=9;for(var Se=256;Se<280;++Se)In[Se]=7;for(var Se=280;Se<288;++Se)In[Se]=8;var Zs=new Et(32);for(var Se=0;Se<32;++Se)Zs[Se]=5;var I5=Pr(In,9,0),_5=Pr(In,9,1),H5=Pr(Zs,5,0),S5=Pr(Zs,5,1),hc=function(e){for(var A=e[0],t=1;t<e.length;++t)e[t]>A&&(A=e[t]);return A},pr=function(e,A,t){var r=A/8|0;return(e[r]|e[r+1]<<8)>>(A&7)&t},dc=function(e,A){var t=A/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(A&7)},uu=function(e){return(e+7)/8|0},Cd=function(e,A,t){return(t==null||t>e.length)&&(t=e.length),new Et(e.subarray(A,t))},N5=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],mr=function(e,A,t){var r=new Error(A||N5[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,mr),!t)throw r;return r},D5=function(e,A,t,r){var n=e.length,i=0;if(!n||A.f&&!A.l)return t||new Et(0);var a=!t,l=a||A.i!=2,c=A.i;a&&(t=new Et(n*3));var h=function(FA){var HA=t.length;if(FA>HA){var EA=new Et(Math.max(HA*2,FA));EA.set(t),t=EA}},g=A.f||0,B=A.p||0,w=A.b||0,d=A.l,L=A.d,Q=A.m,H=A.n,C=n*8;do{if(!d){g=pr(e,B,1);var _=pr(e,B+1,3);if(B+=3,_)if(_==1)d=_5,L=S5,Q=9,H=5;else if(_==2){var Z=pr(e,B,31)+257,J=pr(e,B+10,15)+4,k=Z+pr(e,B+5,31)+1;B+=14;for(var q=new Et(k),nA=new Et(19),I=0;I<J;++I)nA[qc[I]]=pr(e,B+I*3,7);B+=J*3;for(var S=hc(nA),R=(1<<S)-1,M=Pr(nA,S,1),I=0;I<k;){var lA=M[pr(e,B,R)];B+=lA&15;var V=lA>>4;if(V<16)q[I++]=V;else{var iA=0,uA=0;for(V==16?(uA=3+pr(e,B,3),B+=2,iA=q[I-1]):V==17?(uA=3+pr(e,B,7),B+=3):V==18&&(uA=11+pr(e,B,127),B+=7);uA--;)q[I++]=iA}}var tA=q.subarray(0,Z),fA=q.subarray(Z);Q=hc(tA),H=hc(fA),d=Pr(tA,Q,1),L=Pr(fA,H,1)}else mr(1);else{var V=uu(B)+4,Y=e[V-4]|e[V-3]<<8,j=V+Y;if(j>n){c&&mr(0);break}l&&h(w+Y),t.set(e.subarray(V,j),w),A.b=w+=Y,A.p=B=j*8,A.f=g;continue}if(B>C){c&&mr(0);break}}l&&h(w+131072);for(var hA=(1<<Q)-1,bA=(1<<H)-1,b=B;;b=B){var iA=d[dc(e,B)&hA],T=iA>>4;if(B+=iA&15,B>C){c&&mr(0);break}if(iA||mr(2),T<256)t[w++]=T;else if(T==256){b=B,d=null;break}else{var U=T-254;if(T>264){var I=T-257,O=$o[I];U=pr(e,B,(1<<O)-1)+vd[I],B+=O}var G=L[dc(e,B)&bA],AA=G>>4;G||mr(3),B+=G&15;var fA=x5[AA];if(AA>3){var O=Al[AA];fA+=dc(e,B)&(1<<O)-1,B+=O}if(B>C){c&&mr(0);break}l&&h(w+131072);var sA=w+U;if(w<fA){var cA=i-fA,yA=Math.min(fA,sA);for(cA+w<0&&mr(3);w<yA;++w)t[w]=r[cA+w]}for(;w<sA;++w)t[w]=t[w-fA]}}A.l=d,A.p=b,A.b=w,A.f=g,d&&(g=1,A.m=Q,A.d=L,A.n=H)}while(!g);return w!=t.length&&a?Cd(t,0,w):t.subarray(0,w)},An=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8},Ns=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8,e[r+2]|=t>>16},gc=function(e,A){for(var t=[],r=0;r<e.length;++r)e[r]&&t.push({s:r,f:e[r]});var n=t.length,i=t.slice();if(!n)return{t:Qd,l:0};if(n==1){var a=new Et(t[0].s+1);return a[t[0].s]=1,{t:a,l:1}}t.sort(function(j,Z){return j.f-Z.f}),t.push({s:-1,f:25001});var l=t[0],c=t[1],h=0,g=1,B=2;for(t[0]={s:-1,f:l.f+c.f,l,r:c};g!=n-1;)l=t[t[h].f<t[B].f?h++:B++],c=t[h!=g&&t[h].f<t[B].f?h++:B++],t[g++]={s:-1,f:l.f+c.f,l,r:c};for(var w=i[0].s,r=1;r<n;++r)i[r].s>w&&(w=i[r].s);var d=new Wt(w+1),L=Xc(t[g-1],d,0);if(L>A){var r=0,Q=0,H=L-A,C=1<<H;for(i.sort(function(Z,J){return d[J.s]-d[Z.s]||Z.f-J.f});r<n;++r){var _=i[r].s;if(d[_]>A)Q+=C-(1<<L-d[_]),d[_]=A;else break}for(Q>>=H;Q>0;){var V=i[r].s;d[V]<A?Q-=1<<A-d[V]++-1:++r}for(;r>=0&&Q;--r){var Y=i[r].s;d[Y]==A&&(--d[Y],++Q)}L=A}return{t:new Et(d),l:L}},Xc=function(e,A,t){return e.s==-1?Math.max(Xc(e.l,A,t+1),Xc(e.r,A,t+1)):A[e.s]=t},Gf=function(e){for(var A=e.length;A&&!e[--A];);for(var t=new Wt(++A),r=0,n=e[0],i=1,a=function(c){t[r++]=c},l=1;l<=A;++l)if(e[l]==n&&l!=A)++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=e[l]}return{c:t.subarray(0,r),n:A}},Ds=function(e,A){for(var t=0,r=0;r<A.length;++r)t+=e[r]*A[r];return t},yd=function(e,A,t){var r=t.length,n=uu(A+2);e[n]=r&255,e[n+1]=r>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var i=0;i<r;++i)e[n+i+4]=t[i];return(n+4+r)*8},qf=function(e,A,t,r,n,i,a,l,c,h,g){An(A,g++,t),++n[256];for(var B=gc(n,15),w=B.t,d=B.l,L=gc(i,15),Q=L.t,H=L.l,C=Gf(w),_=C.c,V=C.n,Y=Gf(Q),j=Y.c,Z=Y.n,J=new Wt(19),k=0;k<_.length;++k)++J[_[k]&31];for(var k=0;k<j.length;++k)++J[j[k]&31];for(var q=gc(J,7),nA=q.t,I=q.l,S=19;S>4&&!nA[qc[S-1]];--S);var R=h+5<<3,M=Ds(n,In)+Ds(i,Zs)+a,lA=Ds(n,w)+Ds(i,Q)+a+14+3*S+Ds(J,nA)+2*J[16]+3*J[17]+7*J[18];if(c>=0&&R<=M&&R<=lA)return yd(A,g,e.subarray(c,c+h));var iA,uA,tA,fA;if(An(A,g,1+(lA<M)),g+=2,lA<M){iA=Pr(w,d,0),uA=w,tA=Pr(Q,H,0),fA=Q;var hA=Pr(nA,I,0);An(A,g,V-257),An(A,g+5,Z-1),An(A,g+10,S-4),g+=14;for(var k=0;k<S;++k)An(A,g+3*k,nA[qc[k]]);g+=3*S;for(var bA=[_,j],b=0;b<2;++b)for(var T=bA[b],k=0;k<T.length;++k){var U=T[k]&31;An(A,g,hA[U]),g+=nA[U],U>15&&(An(A,g,T[k]>>5&127),g+=T[k]>>12)}}else iA=I5,uA=In,tA=H5,fA=Zs;for(var k=0;k<l;++k){var O=r[k];if(O>255){var U=O>>18&31;Ns(A,g,iA[U+257]),g+=uA[U+257],U>7&&(An(A,g,O>>23&31),g+=$o[U]);var G=O&31;Ns(A,g,tA[G]),g+=fA[G],G>3&&(Ns(A,g,O>>5&8191),g+=Al[G])}else Ns(A,g,iA[O]),g+=uA[O]}return Ns(A,g,iA[256]),g+uA[256]},T5=new cu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Qd=new Et(0),P5=function(e,A,t,r,n,i){var a=i.z||e.length,l=new Et(r+a+5*(1+Math.ceil(a/7e3))+n),c=l.subarray(r,l.length-n),h=i.l,g=(i.r||0)&7;if(A){g&&(c[0]=i.r>>3);for(var B=T5[A-1],w=B>>13,d=B&8191,L=(1<<t)-1,Q=i.p||new Wt(32768),H=i.h||new Wt(L+1),C=Math.ceil(t/3),_=2*C,V=function(JA){return(e[JA]^e[JA+1]<<C^e[JA+2]<<_)&L},Y=new cu(25e3),j=new Wt(288),Z=new Wt(32),J=0,k=0,q=i.i||0,nA=0,I=i.w||0,S=0;q+2<a;++q){var R=V(q),M=q&32767,lA=H[R];if(Q[M]=lA,H[R]=M,I<=q){var iA=a-q;if((J>7e3||nA>24576)&&(iA>423||!h)){g=qf(e,c,0,Y,j,Z,k,nA,S,q-S,g),nA=J=k=0,S=q;for(var uA=0;uA<286;++uA)j[uA]=0;for(var uA=0;uA<30;++uA)Z[uA]=0}var tA=2,fA=0,hA=d,bA=M-lA&32767;if(iA>2&&R==V(q-bA))for(var b=Math.min(w,iA)-1,T=Math.min(32767,q),U=Math.min(258,iA);bA<=T&&--hA&&M!=lA;){if(e[q+tA]==e[q+tA-bA]){for(var O=0;O<U&&e[q+O]==e[q+O-bA];++O);if(O>tA){if(tA=O,fA=bA,O>b)break;for(var G=Math.min(bA,O-2),AA=0,uA=0;uA<G;++uA){var sA=q-bA+uA&32767,cA=Q[sA],yA=sA-cA&32767;yA>AA&&(AA=yA,lA=sA)}}}M=lA,lA=Q[M],bA+=M-lA&32767}if(fA){Y[nA++]=268435456|Wc[tA]<<18|jf[fA];var FA=Wc[tA]&31,HA=jf[fA]&31;k+=$o[FA]+Al[HA],++j[257+FA],++Z[HA],I=q+tA,++J}else Y[nA++]=e[q],++j[e[q]]}}for(q=Math.max(q,I);q<a;++q)Y[nA++]=e[q],++j[e[q]];g=qf(e,c,h,Y,j,Z,k,nA,S,q-S,g),h||(i.r=g&7|c[g/8|0]<<3,g-=7,i.h=H,i.p=Q,i.i=q,i.w=I)}else{for(var q=i.w||0;q<a+h;q+=65535){var EA=q+65535;EA>=a&&(c[g/8|0]=h,EA=a),g=yd(c,g+1,e.subarray(q,EA))}i.i=a}return Cd(l,0,r+uu(g)+n)},Fd=function(){var e=1,A=0;return{p:function(t){for(var r=e,n=A,i=t.length|0,a=0;a!=i;){for(var l=Math.min(a+2655,i);a<l;++a)n+=r+=t[a];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}e=r,A=n},d:function(){return e%=65521,A%=65521,(e&255)<<24|(e&65280)<<8|(A&255)<<8|A>>8}}},O5=function(e,A,t,r,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),a=new Et(i.length+e.length);a.set(i),a.set(e,i.length),e=a,n.w=i.length}return P5(e,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+A.mem,t,r,n)},bd=function(e,A,t){for(;t;++A)e[A]=t,t>>>=8},k5=function(e,A){var t=A.level,r=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=r<<6|(A.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,A.dictionary){var n=Fd();n.p(A.dictionary),bd(e,2,n.d())}},M5=function(e,A){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&mr(6,"invalid zlib data"),(e[1]>>5&1)==1&&mr(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function zc(e,A){A||(A={});var t=Fd();t.p(e);var r=O5(e,A,A.dictionary?6:2,4);return k5(r,A),bd(r,r.length-4,t.d()),r}function K5(e,A){return D5(e.subarray(M5(e),-4),{i:2},A,A)}var R5=typeof TextDecoder<"u"&&new TextDecoder,V5=0;try{R5.decode(Qd,{stream:!0}),V5=1}catch{}var XA=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Bc(){XA.console&&typeof XA.console.log=="function"&&XA.console.log.apply(XA.console,arguments)}var Le={log:Bc,warn:function(e){XA.console&&(typeof XA.console.warn=="function"?XA.console.warn.apply(XA.console,arguments):Bc.call(null,arguments))},error:function(e){XA.console&&(typeof XA.console.error=="function"?XA.console.error.apply(XA.console,arguments):Bc(e))}};function pc(e,A,t){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Wn(r.response,A,t)},r.onerror=function(){Le.error("could not download file")},r.send()}function Wf(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function Bo(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var Js,Yc,Wn=XA.saveAs||((typeof window>"u"?"undefined":me(window))!=="object"||window!==XA?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,A,t){var r=XA.URL||XA.webkitURL,n=document.createElement("a");A=A||e.name||"download",n.download=A,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?Wf(n.href)?pc(e,A,t):Bo(n,n.target="_blank"):Bo(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Bo(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,t){if(A=A||e.name||"download",typeof e=="string")if(Wf(e))pc(e,A,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Bo(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:me(i)!=="object"&&(Le.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}(e,t),A)}:function(e,A,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return pc(e,A,t);var n=e.type==="application/octet-stream",i=/constructor/i.test(XA.HTMLElement)||XA.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader>"u"?"undefined":me(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var g=l.result;g=a?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},l.readAsDataURL(e)}else{var c=XA.URL||XA.webkitURL,h=c.createObjectURL(e);r?r.location=h:location.href=h,r=null,setTimeout(function(){c.revokeObjectURL(h)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function Ud(e){var A;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;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(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,a=n.exec(e);a&&(A=i(a),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),h=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),h.length==1&&(h="0"+h),"#"+l+c+h}}/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function wc(e,A){var t=e[0],r=e[1],n=e[2],i=e[3];t=yt(t,r,n,i,A[0],7,-680876936),i=yt(i,t,r,n,A[1],12,-389564586),n=yt(n,i,t,r,A[2],17,606105819),r=yt(r,n,i,t,A[3],22,-1044525330),t=yt(t,r,n,i,A[4],7,-176418897),i=yt(i,t,r,n,A[5],12,1200080426),n=yt(n,i,t,r,A[6],17,-1473231341),r=yt(r,n,i,t,A[7],22,-45705983),t=yt(t,r,n,i,A[8],7,1770035416),i=yt(i,t,r,n,A[9],12,-1958414417),n=yt(n,i,t,r,A[10],17,-42063),r=yt(r,n,i,t,A[11],22,-1990404162),t=yt(t,r,n,i,A[12],7,1804603682),i=yt(i,t,r,n,A[13],12,-40341101),n=yt(n,i,t,r,A[14],17,-1502002290),t=Qt(t,r=yt(r,n,i,t,A[15],22,1236535329),n,i,A[1],5,-165796510),i=Qt(i,t,r,n,A[6],9,-1069501632),n=Qt(n,i,t,r,A[11],14,643717713),r=Qt(r,n,i,t,A[0],20,-373897302),t=Qt(t,r,n,i,A[5],5,-701558691),i=Qt(i,t,r,n,A[10],9,38016083),n=Qt(n,i,t,r,A[15],14,-660478335),r=Qt(r,n,i,t,A[4],20,-405537848),t=Qt(t,r,n,i,A[9],5,568446438),i=Qt(i,t,r,n,A[14],9,-1019803690),n=Qt(n,i,t,r,A[3],14,-187363961),r=Qt(r,n,i,t,A[8],20,1163531501),t=Qt(t,r,n,i,A[13],5,-1444681467),i=Qt(i,t,r,n,A[2],9,-51403784),n=Qt(n,i,t,r,A[7],14,1735328473),t=Ft(t,r=Qt(r,n,i,t,A[12],20,-1926607734),n,i,A[5],4,-378558),i=Ft(i,t,r,n,A[8],11,-2022574463),n=Ft(n,i,t,r,A[11],16,1839030562),r=Ft(r,n,i,t,A[14],23,-35309556),t=Ft(t,r,n,i,A[1],4,-1530992060),i=Ft(i,t,r,n,A[4],11,1272893353),n=Ft(n,i,t,r,A[7],16,-155497632),r=Ft(r,n,i,t,A[10],23,-1094730640),t=Ft(t,r,n,i,A[13],4,681279174),i=Ft(i,t,r,n,A[0],11,-358537222),n=Ft(n,i,t,r,A[3],16,-722521979),r=Ft(r,n,i,t,A[6],23,76029189),t=Ft(t,r,n,i,A[9],4,-640364487),i=Ft(i,t,r,n,A[12],11,-421815835),n=Ft(n,i,t,r,A[15],16,530742520),t=bt(t,r=Ft(r,n,i,t,A[2],23,-995338651),n,i,A[0],6,-198630844),i=bt(i,t,r,n,A[7],10,1126891415),n=bt(n,i,t,r,A[14],15,-1416354905),r=bt(r,n,i,t,A[5],21,-57434055),t=bt(t,r,n,i,A[12],6,1700485571),i=bt(i,t,r,n,A[3],10,-1894986606),n=bt(n,i,t,r,A[10],15,-1051523),r=bt(r,n,i,t,A[1],21,-2054922799),t=bt(t,r,n,i,A[8],6,1873313359),i=bt(i,t,r,n,A[15],10,-30611744),n=bt(n,i,t,r,A[6],15,-1560198380),r=bt(r,n,i,t,A[13],21,1309151649),t=bt(t,r,n,i,A[4],6,-145523070),i=bt(i,t,r,n,A[11],10,-1120210379),n=bt(n,i,t,r,A[2],15,718787259),r=bt(r,n,i,t,A[9],21,-343485551),e[0]=Un(t,e[0]),e[1]=Un(r,e[1]),e[2]=Un(n,e[2]),e[3]=Un(i,e[3])}function el(e,A,t,r,n,i){return A=Un(Un(A,e),Un(r,i)),Un(A<<n|A>>>32-n,t)}function yt(e,A,t,r,n,i,a){return el(A&t|~A&r,e,A,n,i,a)}function Qt(e,A,t,r,n,i,a){return el(A&r|t&~r,e,A,n,i,a)}function Ft(e,A,t,r,n,i,a){return el(A^t^r,e,A,n,i,a)}function bt(e,A,t,r,n,i,a){return el(t^(A|~r),e,A,n,i,a)}function Ld(e){var A,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=e.length;A+=64)wc(r,j5(e.substring(A-64,A)));e=e.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<e.length;A++)n[A>>2]|=e.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(wc(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*t,wc(r,n),r}function j5(e){var A,t=[];for(A=0;A<64;A+=4)t[A>>2]=e.charCodeAt(A)+(e.charCodeAt(A+1)<<8)+(e.charCodeAt(A+2)<<16)+(e.charCodeAt(A+3)<<24);return t}Js=XA.atob.bind(XA),Yc=XA.btoa.bind(XA);var Jf="0123456789abcdef".split("");function G5(e){for(var A="",t=0;t<4;t++)A+=Jf[e>>8*t+4&15]+Jf[e>>8*t&15];return A}function q5(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Zc(e){return Ld(e).map(q5).join("")}var W5=function(e){for(var A=0;A<e.length;A++)e[A]=G5(e[A]);return e.join("")}(Ld("hello"))!="5d41402abc4b2a76b9719d911017c592";function Un(e,A){if(W5){var t=(65535&e)+(65535&A);return(e>>16)+(A>>16)+(t>>16)<<16|65535&t}return e+A&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function $c(e,A){var t,r,n,i;if(e!==t){for(var a=(n=e,i=1+(256/e.length>>0),new Array(i+1).join(n)),l=[],c=0;c<256;c++)l[c]=c;var h=0;for(c=0;c<256;c++){var g=l[c];h=(h+g+a.charCodeAt(c))%256,l[c]=l[h],l[h]=g}t=e,r=l}else l=r;var B=A.length,w=0,d=0,L="";for(c=0;c<B;c++)d=(d+(g=l[w=(w+1)%256]))%256,l[w]=l[d],l[d]=g,a=l[(l[w]+l[d])%256],L+=String.fromCharCode(A.charCodeAt(c)^a);return L}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var Xf={print:4,modify:8,copy:16,"annot-forms":32};function Ri(e,A,t,r){this.v=1,this.r=2;var n=192;e.forEach(function(l){if(Xf.perm!==void 0)throw new Error("Invalid permission: "+l);n+=Xf[l]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(A+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=Zc(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=$c(this.encryptionKey,this.padding)}function Vi(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var A="",t=e.length,r=0;r<t;r++){var n=e.charCodeAt(r);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=e[r]}return A}function zf(e){if(me(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};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)");A.hasOwnProperty(t)||(A[t]={});var i=Math.random().toString(35);return A[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in A)if(A[r][t])return delete A[r][t],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(t){if(A.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[t]){var a=A[t][i];try{a[0].apply(e,r)}catch(l){XA.console&&Le.error("jsPDF PubSub Error",l.message,l)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Ko(e){if(!(this instanceof Ko))return new Ko(e);var A="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&A.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function Ed(e,A){this.gState=e,this.matrix=A,this.id="",this.objectNumber=-1}function Xn(e,A,t,r,n){if(!(this instanceof Xn))return new Xn(e,A,t,r,n);this.type=e==="axial"?2:3,this.coords=A,this.colors=t,Ed.call(this,r,n)}function Gi(e,A,t,r,n){if(!(this instanceof Gi))return new Gi(e,A,t,r,n);this.boundingBox=e,this.xStep=A,this.yStep=t,this.stream="",this.cloneIndex=0,Ed.call(this,r,n)}function WA(e){var A,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],l=1,c=16,h="S",g=null;me(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,n=e.format||n,i=e.compress||e.compressPdf||i,(g=e.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(A=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),h=e.defaultPathOperation||"S"),a=e.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",t=(""+(t||"P")).toLowerCase();var B=e.putOnlyUsedFonts||!1,w={},d={internal:{},__private__:{}};d.__private__.PubSub=zf;var L="1.3",Q=d.__private__.getPdfVersion=function(){return L};d.__private__.setPdfVersion=function(u){L=u};var H={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]};d.__private__.getPageFormats=function(){return H};var C=d.__private__.getPageFormat=function(u){return H[u]};n=n||"a4";var _={COMPAT:"compat",ADVANCED:"advanced"},V=_.COMPAT;function Y(){this.saveGraphicsState(),K(new qA(DA,0,0,-DA,0,sn()*DA).toString()+" cm"),this.setFontSize(this.getFontSize()/DA),h="n",V=_.ADVANCED}function j(){this.restoreGraphicsState(),h="S",V=_.COMPAT}var Z=d.__private__.combineFontStyleAndFontWeight=function(u,m){if(u=="bold"&&m=="normal"||u=="bold"&&m==400||u=="normal"&&m=="italic"||u=="bold"&&m=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return m&&(u=m==400||m==="normal"?u==="italic"?"italic":"normal":m!=700&&m!=="bold"||u!=="normal"?(m==700?"bold":m)+""+u:"bold"),u};d.advancedAPI=function(u){var m=V===_.COMPAT;return m&&Y.call(this),typeof u!="function"||(u(this),m&&j.call(this)),this},d.compatAPI=function(u){var m=V===_.ADVANCED;return m&&j.call(this),typeof u!="function"||(u(this),m&&Y.call(this)),this},d.isAdvancedAPI=function(){return V===_.ADVANCED};var J,k=function(u){if(V!==_.ADVANCED)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},q=d.roundToPrecision=d.__private__.roundToPrecision=function(u,m){var P=A||m;if(isNaN(u)||isNaN(P))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(P).replace(/0+$/,"")};J=d.hpf=d.__private__.hpf=typeof c=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return q(u,c)}:c==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return q(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return q(u,16)};var nA=d.f2=d.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return q(u,2)},I=d.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return q(u,3)},S=d.scale=d.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return V===_.COMPAT?u*DA:V===_.ADVANCED?u:void 0},R=function(u){return V===_.COMPAT?sn()-u:V===_.ADVANCED?u:void 0},M=function(u){return S(R(u))};d.__private__.setPrecision=d.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(A=parseInt(u,10))};var lA,iA="00000000000000000000000000000000",uA=d.__private__.getFileId=function(){return iA},tA=d.__private__.setFileId=function(u){return iA=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():iA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(wt=new Ri(g.userPermissions,g.userPassword,g.ownerPassword,iA)),iA};d.setFileId=function(u){return tA(u),this},d.getFileId=function(){return uA()};var fA=d.__private__.convertDateToPDFDate=function(u){var m=u.getTimezoneOffset(),P=m<0?"+":"-",W=Math.floor(Math.abs(m/60)),rA=Math.abs(m%60),gA=[P,U(W),"'",U(rA),"'"].join("");return["D:",u.getFullYear(),U(u.getMonth()+1),U(u.getDate()),U(u.getHours()),U(u.getMinutes()),U(u.getSeconds()),gA].join("")},hA=d.__private__.convertPDFDateToDate=function(u){var m=parseInt(u.substr(2,4),10),P=parseInt(u.substr(6,2),10)-1,W=parseInt(u.substr(8,2),10),rA=parseInt(u.substr(10,2),10),gA=parseInt(u.substr(12,2),10),CA=parseInt(u.substr(14,2),10);return new Date(m,P,W,rA,gA,CA,0)},bA=d.__private__.setCreationDate=function(u){var m;if(u===void 0&&(u=new Date),u instanceof Date)m=fA(u);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(u))throw new Error("Invalid argument passed to jsPDF.setCreationDate");m=u}return lA=m},b=d.__private__.getCreationDate=function(u){var m=lA;return u==="jsDate"&&(m=hA(lA)),m};d.setCreationDate=function(u){return bA(u),this},d.getCreationDate=function(u){return b(u)};var T,U=d.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},O=d.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},G=0,AA=[],sA=[],cA=0,yA=[],FA=[],HA=!1,EA=sA,JA=function(){G=0,cA=0,sA=[],AA=[],yA=[],Rr=Ye(),lr=Ye()};d.__private__.setCustomOutputDestination=function(u){HA=!0,EA=u};var BA=function(u){HA||(EA=u)};d.__private__.resetCustomOutputDestination=function(){HA=!1,EA=sA};var K=d.__private__.out=function(u){return u=u.toString(),cA+=u.length+1,EA.push(u),EA},te=d.__private__.write=function(u){return K(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},RA=d.__private__.getArrayBuffer=function(u){for(var m=u.length,P=new ArrayBuffer(m),W=new Uint8Array(P);m--;)W[m]=u.charCodeAt(m);return P},QA=[["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]];d.__private__.getStandardFonts=function(){return QA};var UA=e.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(u){return UA=V===_.ADVANCED?u/DA:u,this};var NA,_A=d.__private__.getFontSize=d.getFontSize=function(){return V===_.COMPAT?UA:UA*DA},VA=e.R2L||!1;d.__private__.setR2L=d.setR2L=function(u){return VA=u,this},d.__private__.getR2L=d.getR2L=function(){return VA};var ZA,ie=d.__private__.setZoomMode=function(u){var m=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))NA=u;else if(isNaN(u)){if(m.indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');NA=u}else NA=parseInt(u,10)};d.__private__.getZoomMode=function(){return NA};var se,ue=d.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');ZA=u};d.__private__.getPageMode=function(){return ZA};var Ce=d.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');se=u};d.__private__.getLayoutMode=function(){return se},d.__private__.setDisplayMode=d.setDisplayMode=function(u,m,P){return ie(u),Ce(m),ue(P),this};var zA={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(u){if(Object.keys(zA).indexOf(u)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zA[u]},d.__private__.getDocumentProperties=function(){return zA},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(u){for(var m in zA)zA.hasOwnProperty(m)&&u[m]&&(zA[m]=u[m]);return this},d.__private__.setDocumentProperty=function(u,m){if(Object.keys(zA).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zA[u]=m};var ae,DA,pt,he,sr,Fe={},Ne={},Fr=[],ge={},Hn={},Pe={},ar={},Kr=null,Oe=0,$A=[],Be=new zf(d),Sn=e.hotfixes||[],ut={},br={},Ur=[],qA=function u(m,P,W,rA,gA,CA){if(!(this instanceof u))return new u(m,P,W,rA,gA,CA);isNaN(m)&&(m=1),isNaN(P)&&(P=0),isNaN(W)&&(W=0),isNaN(rA)&&(rA=1),isNaN(gA)&&(gA=0),isNaN(CA)&&(CA=0),this._matrix=[m,P,W,rA,gA,CA]};Object.defineProperty(qA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(qA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(qA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(qA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(qA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(qA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(qA.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(qA.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(qA.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(qA.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(qA.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(qA.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(qA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(qA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(qA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(qA.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),qA.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(J).join(u)},qA.prototype.multiply=function(u){var m=u.sx*this.sx+u.shy*this.shx,P=u.sx*this.shy+u.shy*this.sy,W=u.shx*this.sx+u.sy*this.shx,rA=u.shx*this.shy+u.sy*this.sy,gA=u.tx*this.sx+u.ty*this.shx+this.tx,CA=u.tx*this.shy+u.ty*this.sy+this.ty;return new qA(m,P,W,rA,gA,CA)},qA.prototype.decompose=function(){var u=this.sx,m=this.shy,P=this.shx,W=this.sy,rA=this.tx,gA=this.ty,CA=Math.sqrt(u*u+m*m),PA=(u/=CA)*P+(m/=CA)*W;P-=u*PA,W-=m*PA;var jA=Math.sqrt(P*P+W*W);return PA/=jA,u*(W/=jA)<m*(P/=jA)&&(u=-u,m=-m,PA=-PA,CA=-CA),{scale:new qA(CA,0,0,jA,0,0),translate:new qA(1,0,0,1,rA,gA),rotate:new qA(u,m,-m,u,0,0),skew:new qA(1,0,PA,1,0,0)}},qA.prototype.toString=function(u){return this.join(" ")},qA.prototype.inversed=function(){var u=this.sx,m=this.shy,P=this.shx,W=this.sy,rA=this.tx,gA=this.ty,CA=1/(u*W-m*P),PA=W*CA,jA=-m*CA,re=-P*CA,Ae=u*CA;return new qA(PA,jA,re,Ae,-PA*rA-re*gA,-jA*rA-Ae*gA)},qA.prototype.applyToPoint=function(u){var m=u.x*this.sx+u.y*this.shx+this.tx,P=u.x*this.shy+u.y*this.sy+this.ty;return new di(m,P)},qA.prototype.applyToRectangle=function(u){var m=this.applyToPoint(u),P=this.applyToPoint(new di(u.x+u.w,u.y+u.h));return new ls(m.x,m.y,P.x-m.x,P.y-m.y)},qA.prototype.clone=function(){var u=this.sx,m=this.shy,P=this.shx,W=this.sy,rA=this.tx,gA=this.ty;return new qA(u,m,P,W,rA,gA)},d.Matrix=qA;var or=d.matrixMult=function(u,m){return m.multiply(u)},Lr=new qA(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Lr;var St=function(u,m){if(!Hn[u]){var P=(m instanceof Xn?"Sh":"P")+(Object.keys(ge).length+1).toString(10);m.id=P,Hn[u]=P,ge[P]=m,Be.publish("addPattern",m)}};d.ShadingPattern=Xn,d.TilingPattern=Gi,d.addShadingPattern=function(u,m){return k("addShadingPattern()"),St(u,m),this},d.beginTilingPattern=function(u){k("beginTilingPattern()"),va(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},d.endTilingPattern=function(u,m){k("endTilingPattern()"),m.stream=FA[T].join(`
`),St(u,m),Be.publish("endTilingPattern",m),Ur.pop().restore()};var rt=d.__private__.newObject=function(){var u=Ye();return Kt(u,!0),u},Ye=d.__private__.newObjectDeferred=function(){return G++,AA[G]=function(){return cA},G},Kt=function(u,m){return m=typeof m=="boolean"&&m,AA[u]=cA,m&&K(u+" 0 obj"),u},ei=d.__private__.newAdditionalObject=function(){var u={objId:Ye(),content:""};return yA.push(u),u},Rr=Ye(),lr=Ye(),cr=d.__private__.decodeColorString=function(u){var m=u.split(" ");if(m.length!==2||m[1]!=="g"&&m[1]!=="G")m.length===5&&(m[4]==="k"||m[4]==="K")&&(m=[(1-m[0])*(1-m[3]),(1-m[1])*(1-m[3]),(1-m[2])*(1-m[3]),"r"]);else{var P=parseFloat(m[0]);m=[P,P,P,"r"]}for(var W="#",rA=0;rA<3;rA++)W+=("0"+Math.floor(255*parseFloat(m[rA])).toString(16)).slice(-2);return W},ur=d.__private__.encodeColorString=function(u){var m;typeof u=="string"&&(u={ch1:u});var P=u.ch1,W=u.ch2,rA=u.ch3,gA=u.ch4,CA=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof P=="string"&&P.charAt(0)!=="#"){var PA=new Ud(P);if(PA.ok)P=PA.toHex();else if(!/^\d*\.?\d*$/.test(P))throw new Error('Invalid color "'+P+'" passed to jsPDF.encodeColorString.')}if(typeof P=="string"&&/^#[0-9A-Fa-f]{3}$/.test(P)&&(P="#"+P[1]+P[1]+P[2]+P[2]+P[3]+P[3]),typeof P=="string"&&/^#[0-9A-Fa-f]{6}$/.test(P)){var jA=parseInt(P.substr(1),16);P=jA>>16&255,W=jA>>8&255,rA=255&jA}if(W===void 0||gA===void 0&&P===W&&W===rA)if(typeof P=="string")m=P+" "+CA[0];else switch(u.precision){case 2:m=nA(P/255)+" "+CA[0];break;case 3:default:m=I(P/255)+" "+CA[0]}else if(gA===void 0||me(gA)==="object"){if(gA&&!isNaN(gA.a)&&gA.a===0)return m=["1.","1.","1.",CA[1]].join(" ");if(typeof P=="string")m=[P,W,rA,CA[1]].join(" ");else switch(u.precision){case 2:m=[nA(P/255),nA(W/255),nA(rA/255),CA[1]].join(" ");break;default:case 3:m=[I(P/255),I(W/255),I(rA/255),CA[1]].join(" ")}}else if(typeof P=="string")m=[P,W,rA,gA,CA[2]].join(" ");else switch(u.precision){case 2:m=[nA(P),nA(W),nA(rA),nA(gA),CA[2]].join(" ");break;case 3:default:m=[I(P),I(W),I(rA),I(gA),CA[2]].join(" ")}return m},Er=d.__private__.getFilters=function(){return a},Jt=d.__private__.putStream=function(u){var m=(u=u||{}).data||"",P=u.filters||Er(),W=u.alreadyAppliedFilters||[],rA=u.addLength1||!1,gA=m.length,CA=u.objectId,PA=function(vt){return vt};if(g!==null&&CA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(PA=wt.encryptor(CA,0));var jA={};P===!0&&(P=["FlateEncode"]);var re=u.additionalKeyValues||[],Ae=(jA=WA.API.processDataByFilters!==void 0?WA.API.processDataByFilters(m,P):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(W)?W.join(" "):W.toString());if(jA.data.length!==0&&(re.push({key:"Length",value:jA.data.length}),rA===!0&&re.push({key:"Length1",value:gA})),Ae.length!=0)if(Ae.split("/").length-1==1)re.push({key:"Filter",value:Ae});else{re.push({key:"Filter",value:"["+Ae+"]"});for(var ce=0;ce<re.length;ce+=1)if(re[ce].key==="DecodeParms"){for(var Te=[],ke=0;ke<jA.reverseChain.split("/").length-1;ke+=1)Te.push("null");Te.push(re[ce].value),re[ce].value="["+Te.join(" ")+"]"}}K("<<");for(var Ze=0;Ze<re.length;Ze++)K("/"+re[Ze].key+" "+re[Ze].value);K(">>"),jA.data.length!==0&&(K("stream"),K(PA(jA.data)),K("endstream"))},xr=d.__private__.putPage=function(u){var m=u.number,P=u.data,W=u.objId,rA=u.contentsObjId;Kt(W,!0),K("<</Type /Page"),K("/Parent "+u.rootDictionaryObjId+" 0 R"),K("/Resources "+u.resourceDictionaryObjId+" 0 R"),K("/MediaBox ["+parseFloat(J(u.mediaBox.bottomLeftX))+" "+parseFloat(J(u.mediaBox.bottomLeftY))+" "+J(u.mediaBox.topRightX)+" "+J(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&K("/CropBox ["+J(u.cropBox.bottomLeftX)+" "+J(u.cropBox.bottomLeftY)+" "+J(u.cropBox.topRightX)+" "+J(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&K("/BleedBox ["+J(u.bleedBox.bottomLeftX)+" "+J(u.bleedBox.bottomLeftY)+" "+J(u.bleedBox.topRightX)+" "+J(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&K("/TrimBox ["+J(u.trimBox.bottomLeftX)+" "+J(u.trimBox.bottomLeftY)+" "+J(u.trimBox.topRightX)+" "+J(u.trimBox.topRightY)+"]"),u.artBox!==null&&K("/ArtBox ["+J(u.artBox.bottomLeftX)+" "+J(u.artBox.bottomLeftY)+" "+J(u.artBox.topRightX)+" "+J(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&K("/UserUnit "+u.userUnit),Be.publish("putPage",{objId:W,pageContext:$A[m],pageNumber:m,page:P}),K("/Contents "+rA+" 0 R"),K(">>"),K("endobj");var gA=P.join(`
`);return V===_.ADVANCED&&(gA+=`
Q`),Kt(rA,!0),Jt({data:gA,filters:Er(),objectId:rA}),K("endobj"),W},Nn=d.__private__.putPages=function(){var u,m,P=[];for(u=1;u<=Oe;u++)$A[u].objId=Ye(),$A[u].contentsObjId=Ye();for(u=1;u<=Oe;u++)P.push(xr({number:u,data:FA[u],objId:$A[u].objId,contentsObjId:$A[u].contentsObjId,mediaBox:$A[u].mediaBox,cropBox:$A[u].cropBox,bleedBox:$A[u].bleedBox,trimBox:$A[u].trimBox,artBox:$A[u].artBox,userUnit:$A[u].userUnit,rootDictionaryObjId:Rr,resourceDictionaryObjId:lr}));Kt(Rr,!0),K("<</Type /Pages");var W="/Kids [";for(m=0;m<Oe;m++)W+=P[m]+" 0 R ";K(W+"]"),K("/Count "+Oe),K(">>"),K("endobj"),Be.publish("postPutPages")},ti=function(u){Be.publish("putFont",{font:u,out:K,newObject:rt,putStream:Jt}),u.isAlreadyPutted!==!0&&(u.objectNumber=rt(),K("<<"),K("/Type /Font"),K("/BaseFont /"+Vi(u.postScriptName)),K("/Subtype /Type1"),typeof u.encoding=="string"&&K("/Encoding /"+u.encoding),K("/FirstChar 32"),K("/LastChar 255"),K(">>"),K("endobj"))},ri=function(){for(var u in Fe)Fe.hasOwnProperty(u)&&(B===!1||B===!0&&w.hasOwnProperty(u))&&ti(Fe[u])},ni=function(u){u.objectNumber=rt();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[J(u.x),J(u.y),J(u.x+u.width),J(u.y+u.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var P=u.pages[1].join(`
`);Jt({data:P,additionalKeyValues:m,objectId:u.objectNumber}),K("endobj")},ii=function(){for(var u in ut)ut.hasOwnProperty(u)&&ni(ut[u])},ea=function(u,m){var P,W=[],rA=1/(m-1);for(P=0;P<1;P+=rA)W.push(P);if(W.push(1),u[0].offset!=0){var gA={offset:0,color:u[0].color};u.unshift(gA)}if(u[u.length-1].offset!=1){var CA={offset:1,color:u[u.length-1].color};u.push(CA)}for(var PA="",jA=0,re=0;re<W.length;re++){for(P=W[re];P>u[jA+1].offset;)jA++;var Ae=u[jA].offset,ce=(P-Ae)/(u[jA+1].offset-Ae),Te=u[jA].color,ke=u[jA+1].color;PA+=O(Math.round((1-ce)*Te[0]+ce*ke[0]).toString(16))+O(Math.round((1-ce)*Te[1]+ce*ke[1]).toString(16))+O(Math.round((1-ce)*Te[2]+ce*ke[2]).toString(16))}return PA.trim()},tl=function(u,m){m||(m=21);var P=rt(),W=ea(u.colors,m),rA=[];rA.push({key:"FunctionType",value:"0"}),rA.push({key:"Domain",value:"[0.0 1.0]"}),rA.push({key:"Size",value:"["+m+"]"}),rA.push({key:"BitsPerSample",value:"8"}),rA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Jt({data:W,additionalKeyValues:rA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:P}),K("endobj"),u.objectNumber=rt(),K("<< /ShadingType "+u.type),K("/ColorSpace /DeviceRGB");var gA="/Coords ["+J(parseFloat(u.coords[0]))+" "+J(parseFloat(u.coords[1]))+" ";u.type===2?gA+=J(parseFloat(u.coords[2]))+" "+J(parseFloat(u.coords[3])):gA+=J(parseFloat(u.coords[2]))+" "+J(parseFloat(u.coords[3]))+" "+J(parseFloat(u.coords[4]))+" "+J(parseFloat(u.coords[5])),K(gA+="]"),u.matrix&&K("/Matrix ["+u.matrix.toString()+"]"),K("/Function "+P+" 0 R"),K("/Extend [true true]"),K(">>"),K("endobj")},rl=function(u,m){var P=Ye(),W=rt();m.push({resourcesOid:P,objectOid:W}),u.objectNumber=W;var rA=[];rA.push({key:"Type",value:"/Pattern"}),rA.push({key:"PatternType",value:"1"}),rA.push({key:"PaintType",value:"1"}),rA.push({key:"TilingType",value:"1"}),rA.push({key:"BBox",value:"["+u.boundingBox.map(J).join(" ")+"]"}),rA.push({key:"XStep",value:J(u.xStep)}),rA.push({key:"YStep",value:J(u.yStep)}),rA.push({key:"Resources",value:P+" 0 R"}),u.matrix&&rA.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),Jt({data:u.stream,additionalKeyValues:rA,objectId:u.objectNumber}),K("endobj")},si=function(u){var m;for(m in ge)ge.hasOwnProperty(m)&&(ge[m]instanceof Xn?tl(ge[m]):ge[m]instanceof Gi&&rl(ge[m],u))},ta=function(u){for(var m in u.objectNumber=rt(),K("<<"),u)switch(m){case"opacity":K("/ca "+nA(u[m]));break;case"stroke-opacity":K("/CA "+nA(u[m]))}K(">>"),K("endobj")},nl=function(){var u;for(u in Pe)Pe.hasOwnProperty(u)&&ta(Pe[u])},$i=function(){for(var u in K("/XObject <<"),ut)ut.hasOwnProperty(u)&&ut[u].objectNumber>=0&&K("/"+u+" "+ut[u].objectNumber+" 0 R");Be.publish("putXobjectDict"),K(">>")},il=function(){wt.oid=rt(),K("<<"),K("/Filter /Standard"),K("/V "+wt.v),K("/R "+wt.r),K("/U <"+wt.toHexString(wt.U)+">"),K("/O <"+wt.toHexString(wt.O)+">"),K("/P "+wt.P),K(">>"),K("endobj")},ra=function(){for(var u in K("/Font <<"),Fe)Fe.hasOwnProperty(u)&&(B===!1||B===!0&&w.hasOwnProperty(u))&&K("/"+u+" "+Fe[u].objectNumber+" 0 R");K(">>")},sl=function(){if(Object.keys(ge).length>0){for(var u in K("/Shading <<"),ge)ge.hasOwnProperty(u)&&ge[u]instanceof Xn&&ge[u].objectNumber>=0&&K("/"+u+" "+ge[u].objectNumber+" 0 R");Be.publish("putShadingPatternDict"),K(">>")}},ai=function(u){if(Object.keys(ge).length>0){for(var m in K("/Pattern <<"),ge)ge.hasOwnProperty(m)&&ge[m]instanceof d.TilingPattern&&ge[m].objectNumber>=0&&ge[m].objectNumber<u&&K("/"+m+" "+ge[m].objectNumber+" 0 R");Be.publish("putTilingPatternDict"),K(">>")}},al=function(){if(Object.keys(Pe).length>0){var u;for(u in K("/ExtGState <<"),Pe)Pe.hasOwnProperty(u)&&Pe[u].objectNumber>=0&&K("/"+u+" "+Pe[u].objectNumber+" 0 R");Be.publish("putGStateDict"),K(">>")}},Re=function(u){Kt(u.resourcesOid,!0),K("<<"),K("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ra(),sl(),ai(u.objectOid),al(),$i(),K(">>"),K("endobj")},na=function(){var u=[];ri(),nl(),ii(),si(u),Be.publish("putResources"),u.forEach(Re),Re({resourcesOid:lr,objectOid:Number.MAX_SAFE_INTEGER}),Be.publish("postPutResources")},ia=function(){Be.publish("putAdditionalObjects");for(var u=0;u<yA.length;u++){var m=yA[u];Kt(m.objId,!0),K(m.content),K("endobj")}Be.publish("postPutAdditionalObjects")},sa=function(u){Ne[u.fontName]=Ne[u.fontName]||{},Ne[u.fontName][u.fontStyle]=u.id},As=function(u,m,P,W,rA){var gA={id:"F"+(Object.keys(Fe).length+1).toString(10),postScriptName:u,fontName:m,fontStyle:P,encoding:W,isStandardFont:rA||!1,metadata:{}};return Be.publish("addFont",{font:gA,instance:this}),Fe[gA.id]=gA,sa(gA),gA.id},ol=function(u){for(var m=0,P=QA.length;m<P;m++){var W=As.call(this,u[m][0],u[m][1],u[m][2],QA[m][3],!0);B===!1&&(w[W]=!0);var rA=u[m][0].split("-");sa({id:W,fontName:rA[0],fontStyle:rA[1]||""})}Be.publish("addFonts",{fonts:Fe,dictionary:Ne})},fr=function(u){return u.foo=function(){try{return u.apply(this,arguments)}catch(W){var m=W.stack||"";~m.indexOf(" at ")&&(m=m.split(" at ")[1]);var P="Error in function "+m.split(`
`)[0].split("<")[0]+": "+W.message;if(!XA.console)throw new Error(P);XA.console.error(P,W),XA.alert&&alert(P)}},u.foo.bar=u,u.foo},oi=function(u,m){var P,W,rA,gA,CA,PA,jA,re,Ae;if(rA=(m=m||{}).sourceEncoding||"Unicode",CA=m.outputEncoding,(m.autoencode||CA)&&Fe[ae].metadata&&Fe[ae].metadata[rA]&&Fe[ae].metadata[rA].encoding&&(gA=Fe[ae].metadata[rA].encoding,!CA&&Fe[ae].encoding&&(CA=Fe[ae].encoding),!CA&&gA.codePages&&(CA=gA.codePages[0]),typeof CA=="string"&&(CA=gA[CA]),CA)){for(jA=!1,PA=[],P=0,W=u.length;P<W;P++)(re=CA[u.charCodeAt(P)])?PA.push(String.fromCharCode(re)):PA.push(u[P]),PA[P].charCodeAt(0)>>8&&(jA=!0);u=PA.join("")}for(P=u.length;jA===void 0&&P!==0;)u.charCodeAt(P-1)>>8&&(jA=!0),P--;if(!jA)return u;for(PA=m.noBOM?[]:[254,255],P=0,W=u.length;P<W;P++){if((Ae=(re=u.charCodeAt(P))>>8)>>8)throw new Error("Character at position "+P+" of string '"+u+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");PA.push(Ae),PA.push(re-(Ae<<8))}return String.fromCharCode.apply(void 0,PA)},Nt=d.__private__.pdfEscape=d.pdfEscape=function(u,m){return oi(u,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},es=d.__private__.beginPage=function(u){FA[++Oe]=[],$A[Oe]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},oa(Oe),BA(FA[T])},aa=function(u,m){var P,W,rA;switch(t=m||t,typeof u=="string"&&(P=C(u.toLowerCase()),Array.isArray(P)&&(W=P[0],rA=P[1])),Array.isArray(u)&&(W=u[0]*DA,rA=u[1]*DA),isNaN(W)&&(W=n[0],rA=n[1]),(W>14400||rA>14400)&&(Le.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),W=Math.min(14400,W),rA=Math.min(14400,rA)),n=[W,rA],t.substr(0,1)){case"l":rA>W&&(n=[rA,W]);break;case"p":W>rA&&(n=[rA,W])}es(n),da(is),K(hr),as!==0&&K(as+" J"),os!==0&&K(os+" j"),Be.publish("addPage",{pageNumber:Oe})},ll=function(u){u>0&&u<=Oe&&(FA.splice(u,1),$A.splice(u,1),Oe--,T>Oe&&(T=Oe),this.setPage(T))},oa=function(u){u>0&&u<=Oe&&(T=u)},cl=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return FA.length-1},la=function(u,m,P){var W,rA=void 0;return P=P||{},u=u!==void 0?u:Fe[ae].fontName,m=m!==void 0?m:Fe[ae].fontStyle,W=u.toLowerCase(),Ne[W]!==void 0&&Ne[W][m]!==void 0?rA=Ne[W][m]:Ne[u]!==void 0&&Ne[u][m]!==void 0?rA=Ne[u][m]:P.disableWarning===!1&&Le.warn("Unable to look up font label for font '"+u+"', '"+m+"'. Refer to getFontList() for available fonts."),rA||P.noFallback||(rA=Ne.times[m])==null&&(rA=Ne.times.normal),rA},ul=d.__private__.putInfo=function(){var u=rt(),m=function(W){return W};for(var P in g!==null&&(m=wt.encryptor(u,0)),K("<<"),K("/Producer ("+Nt(m("jsPDF "+WA.version))+")"),zA)zA.hasOwnProperty(P)&&zA[P]&&K("/"+P.substr(0,1).toUpperCase()+P.substr(1)+" ("+Nt(m(zA[P]))+")");K("/CreationDate ("+Nt(m(lA))+")"),K(">>"),K("endobj")},ts=d.__private__.putCatalog=function(u){var m=(u=u||{}).rootDictionaryObjId||Rr;switch(rt(),K("<<"),K("/Type /Catalog"),K("/Pages "+m+" 0 R"),NA||(NA="fullwidth"),NA){case"fullwidth":K("/OpenAction [3 0 R /FitH null]");break;case"fullheight":K("/OpenAction [3 0 R /FitV null]");break;case"fullpage":K("/OpenAction [3 0 R /Fit]");break;case"original":K("/OpenAction [3 0 R /XYZ null null 1]");break;default:var P=""+NA;P.substr(P.length-1)==="%"&&(NA=parseInt(NA)/100),typeof NA=="number"&&K("/OpenAction [3 0 R /XYZ null null "+nA(NA)+"]")}switch(se||(se="continuous"),se){case"continuous":K("/PageLayout /OneColumn");break;case"single":K("/PageLayout /SinglePage");break;case"two":case"twoleft":K("/PageLayout /TwoColumnLeft");break;case"tworight":K("/PageLayout /TwoColumnRight")}ZA&&K("/PageMode /"+ZA),Be.publish("putCatalog"),K(">>"),K("endobj")},fl=d.__private__.putTrailer=function(){K("trailer"),K("<<"),K("/Size "+(G+1)),K("/Root "+G+" 0 R"),K("/Info "+(G-1)+" 0 R"),g!==null&&K("/Encrypt "+wt.oid+" 0 R"),K("/ID [ <"+iA+"> <"+iA+"> ]"),K(">>")},hl=d.__private__.putHeader=function(){K("%PDF-"+L),K("%ºß¬à")},dl=d.__private__.putXRef=function(){var u="0000000000";K("xref"),K("0 "+(G+1)),K("0000000000 65535 f ");for(var m=1;m<=G;m++)typeof AA[m]=="function"?K((u+AA[m]()).slice(-10)+" 00000 n "):AA[m]!==void 0?K((u+AA[m]).slice(-10)+" 00000 n "):K("0000000000 00000 n ")},Vr=d.__private__.buildDocument=function(){JA(),BA(sA),Be.publish("buildDocument"),hl(),Nn(),ia(),na(),g!==null&&il(),ul(),ts();var u=cA;return dl(),fl(),K("startxref"),K(""+u),K("%%EOF"),BA(FA[T]),sA.join(`
`)},li=d.__private__.getBlob=function(u){return new Blob([RA(u)],{type:"application/pdf"})},ci=d.output=d.__private__.output=fr(function(u,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",u){case void 0:return Vr();case"save":d.save(m.filename);break;case"arraybuffer":return RA(Vr());case"blob":return li(Vr());case"bloburi":case"bloburl":if(XA.URL!==void 0&&typeof XA.URL.createObjectURL=="function")return XA.URL&&XA.URL.createObjectURL(li(Vr()))||void 0;Le.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var P="",W=Vr();try{P=Yc(W)}catch{P=Yc(unescape(encodeURIComponent(W)))}return"data:application/pdf;filename="+m.filename+";base64,"+P;case"pdfobjectnewwindow":if(Object.prototype.toString.call(XA)==="[object Window]"){var rA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",gA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';m.pdfObjectUrl&&(rA=m.pdfObjectUrl,gA="");var CA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+rA+'"'+gA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(m)+");<\/script></body></html>",PA=XA.open();return PA!==null&&PA.document.write(CA),PA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(XA)==="[object Window]"){var jA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(m.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+m.filename+'" width="500px" height="400px" /></body></html>',re=XA.open();if(re!==null){re.document.write(jA);var Ae=this;re.document.documentElement.querySelector("#pdfViewer").onload=function(){re.document.title=m.filename,re.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ae.output("bloburl"))}}return re}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(XA)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ce='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",m)+'"></iframe></body></html>',Te=XA.open();if(Te!==null&&(Te.document.write(ce),Te.document.title=m.filename),Te||typeof safari>"u")return Te;break;case"datauri":case"dataurl":return XA.document.location.href=this.output("datauristring",m);default:return null}}),ca=function(u){return Array.isArray(Sn)===!0&&Sn.indexOf(u)>-1};switch(r){case"pt":DA=1;break;case"mm":DA=72/25.4;break;case"cm":DA=72/2.54;break;case"in":DA=72;break;case"px":DA=ca("px_scaling")==1?.75:96/72;break;case"pc":case"em":DA=12;break;case"ex":DA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);DA=r}var wt=null;bA(),tA();var gl=function(u){return g!==null?wt.encryptor(u,0):function(m){return m}},ua=d.__private__.getPageInfo=d.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:$A[u].objId,pageNumber:u,pageContext:$A[u]}},YA=d.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in $A)if($A[m].objId===u)break;return ua(m)},Bl=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:$A[T].objId,pageNumber:T,pageContext:$A[T]}};d.addPage=function(){return aa.apply(this,arguments),this},d.setPage=function(){return oa.apply(this,arguments),BA.call(this,FA[T]),this},d.insertPage=function(u){return this.addPage(),this.movePage(T,u),this},d.movePage=function(u,m){var P,W;if(u>m){P=FA[u],W=$A[u];for(var rA=u;rA>m;rA--)FA[rA]=FA[rA-1],$A[rA]=$A[rA-1];FA[m]=P,$A[m]=W,this.setPage(m)}else if(u<m){P=FA[u],W=$A[u];for(var gA=u;gA<m;gA++)FA[gA]=FA[gA+1],$A[gA]=$A[gA+1];FA[m]=P,$A[m]=W,this.setPage(m)}return this},d.deletePage=function(){return ll.apply(this,arguments),this},d.__private__.text=d.text=function(u,m,P,W,rA){var gA,CA,PA,jA,re,Ae,ce,Te,ke,Ze=(W=W||{}).scope||this;if(typeof u=="number"&&typeof m=="number"&&(typeof P=="string"||Array.isArray(P))){var vt=P;P=m,m=u,u=vt}if(arguments[3]instanceof qA?(k("The transform parameter of text() with a Matrix value"),ke=rA):(PA=arguments[4],jA=arguments[5],me(ce=arguments[3])==="object"&&ce!==null||(typeof PA=="string"&&(jA=PA,PA=null),typeof ce=="string"&&(jA=ce,ce=null),typeof ce=="number"&&(PA=ce,ce=null),W={flags:ce,angle:PA,align:jA})),isNaN(m)||isNaN(P)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return Ze;var st="",dr=!1,Rt=typeof W.lineHeightFactor=="number"?W.lineHeightFactor:Tn,Hr=Ze.internal.scaleFactor;function ma(Ee){return Ee=Ee.split("	").join(Array(W.TabLen||9).join(" ")),Nt(Ee,ce)}function hs(Ee){for(var xe,je=Ee.concat(),nt=[],Jr=je.length;Jr--;)typeof(xe=je.shift())=="string"?nt.push(xe):Array.isArray(Ee)&&(xe.length===1||xe[1]===void 0&&xe[2]===void 0)?nt.push(xe[0]):nt.push([xe[0],xe[1],xe[2]]);return nt}function ds(Ee,xe){var je;if(typeof Ee=="string")je=xe(Ee)[0];else if(Array.isArray(Ee)){for(var nt,Jr,ys=Ee.concat(),bi=[],ba=ys.length;ba--;)typeof(nt=ys.shift())=="string"?bi.push(xe(nt)[0]):Array.isArray(nt)&&typeof nt[0]=="string"&&(Jr=xe(nt[0],nt[1],nt[2]),bi.push([Jr[0],Jr[1],Jr[2]]));je=bi}return je}var Bi=!1,gs=!0;if(typeof u=="string")Bi=!0;else if(Array.isArray(u)){var Bs=u.concat();CA=[];for(var pi,ft=Bs.length;ft--;)(typeof(pi=Bs.shift())!="string"||Array.isArray(pi)&&typeof pi[0]!="string")&&(gs=!1);Bi=gs}if(Bi===!1)throw new Error('Type of text must be string or Array. "'+u+'" is not recognized.');typeof u=="string"&&(u=u.match(/[\r?\n]/)?u.split(/\r\n|\r|\n/g):[u]);var wi=UA/Ze.internal.scaleFactor,vi=wi*(Rt-1);switch(W.baseline){case"bottom":P-=vi;break;case"top":P+=wi-vi;break;case"hanging":P+=wi-2*vi;break;case"middle":P+=wi/2-vi}if((Ae=W.maxWidth||0)>0&&(typeof u=="string"?u=Ze.splitTextToSize(u,Ae):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(Ee,xe){return Ee.concat(Ze.splitTextToSize(xe,Ae))},[]))),gA={text:u,x:m,y:P,options:W,mutex:{pdfEscape:Nt,activeFontKey:ae,fonts:Fe,activeFontSize:UA}},Be.publish("preProcessText",gA),u=gA.text,PA=(W=gA.options).angle,!(ke instanceof qA)&&PA&&typeof PA=="number"){PA*=Math.PI/180,W.rotationDirection===0&&(PA=-PA),V===_.ADVANCED&&(PA=-PA);var mi=Math.cos(PA),ps=Math.sin(PA);ke=new qA(mi,ps,-ps,mi,0,0)}else PA&&PA instanceof qA&&(ke=PA);V!==_.ADVANCED||ke||(ke=Lr),(re=W.charSpace||hi)!==void 0&&(st+=J(S(re))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Te=W.horizontalScale)!==void 0&&(st+=J(100*Te)+` Tz
`),W.lang;var Dt=-1,Ul=W.renderingMode!==void 0?W.renderingMode:W.stroke,ws=Ze.internal.getCurrentPageInfo().pageContext;switch(Ul){case 0:case!1:case"fill":Dt=0;break;case 1:case!0:case"stroke":Dt=1;break;case 2:case"fillThenStroke":Dt=2;break;case 3:case"invisible":Dt=3;break;case 4:case"fillAndAddForClipping":Dt=4;break;case 5:case"strokeAndAddPathForClipping":Dt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Dt=6;break;case 7:case"addToPathForClipping":Dt=7}var Ca=ws.usedRenderingMode!==void 0?ws.usedRenderingMode:-1;Dt!==-1?st+=Dt+` Tr
`:Ca!==-1&&(st+=`0 Tr
`),Dt!==-1&&(ws.usedRenderingMode=Dt),jA=W.align||"left";var Xt,Ci=UA*Rt,ya=Ze.internal.pageSize.getWidth(),Qa=Fe[ae];re=W.charSpace||hi,Ae=W.maxWidth||0,ce=Object.assign({autoencode:!0,noBOM:!0},W.flags);var an=[],kn=function(Ee){return Ze.getStringUnitWidth(Ee,{font:Qa,charSpace:re,fontSize:UA,doKerning:!1})*UA/Hr};if(Object.prototype.toString.call(u)==="[object Array]"){var Tt;CA=hs(u),jA!=="left"&&(Xt=CA.map(kn));var xt,on=0;if(jA==="right"){m-=Xt[0],u=[],ft=CA.length;for(var Gr=0;Gr<ft;Gr++)Gr===0?(xt=_r(m),Tt=jr(P)):(xt=S(on-Xt[Gr]),Tt=-Ci),u.push([CA[Gr],xt,Tt]),on=Xt[Gr]}else if(jA==="center"){m-=Xt[0]/2,u=[],ft=CA.length;for(var qr=0;qr<ft;qr++)qr===0?(xt=_r(m),Tt=jr(P)):(xt=S((on-Xt[qr])/2),Tt=-Ci),u.push([CA[qr],xt,Tt]),on=Xt[qr]}else if(jA==="left"){u=[],ft=CA.length;for(var yi=0;yi<ft;yi++)u.push(CA[yi])}else if(jA==="justify"&&Qa.encoding==="Identity-H"){u=[],ft=CA.length,Ae=Ae!==0?Ae:ya;for(var Wr=0,Ve=0;Ve<ft;Ve++)if(Tt=Ve===0?jr(P):-Ci,xt=Ve===0?_r(m):Wr,Ve<ft-1){var vs=S((Ae-Xt[Ve])/(CA[Ve].split(" ").length-1)),It=CA[Ve].split(" ");u.push([It[0]+" ",xt,Tt]),Wr=0;for(var zt=1;zt<It.length;zt++){var Qi=(kn(It[zt-1]+" "+It[zt])-kn(It[zt]))*Hr+vs;zt==It.length-1?u.push([It[zt],Qi,0]):u.push([It[zt]+" ",Qi,0]),Wr-=Qi}}else u.push([CA[Ve],xt,Tt]);u.push(["",Wr,0])}else{if(jA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],ft=CA.length,Ae=Ae!==0?Ae:ya,Ve=0;Ve<ft;Ve++)Tt=Ve===0?jr(P):-Ci,xt=Ve===0?_r(m):0,Ve<ft-1?an.push(J(S((Ae-Xt[Ve])/(CA[Ve].split(" ").length-1)))):an.push(0),u.push([CA[Ve],xt,Tt])}}var Fa=typeof W.R2L=="boolean"?W.R2L:VA;Fa===!0&&(u=ds(u,function(Ee,xe,je){return[Ee.split("").reverse().join(""),xe,je]})),gA={text:u,x:m,y:P,options:W,mutex:{pdfEscape:Nt,activeFontKey:ae,fonts:Fe,activeFontSize:UA}},Be.publish("postProcessText",gA),u=gA.text,dr=gA.mutex.isHex||!1;var ms=Fe[ae].encoding;ms!=="WinAnsiEncoding"&&ms!=="StandardEncoding"||(u=ds(u,function(Ee,xe,je){return[ma(Ee),xe,je]})),CA=hs(u),u=[];for(var Mn,Kn,ln,Rn=0,Fi=1,Vn=Array.isArray(CA[0])?Fi:Rn,cn="",Cs=function(Ee,xe,je){var nt="";return je instanceof qA?(je=typeof W.angle=="number"?or(je,new qA(1,0,0,1,Ee,xe)):or(new qA(1,0,0,1,Ee,xe),je),V===_.ADVANCED&&(je=or(new qA(1,0,0,-1,0,0),je)),nt=je.join(" ")+` Tm
`):nt=J(Ee)+" "+J(xe)+` Td
`,nt},Yt=0;Yt<CA.length;Yt++){switch(cn="",Vn){case Fi:ln=(dr?"<":"(")+CA[Yt][0]+(dr?">":")"),Mn=parseFloat(CA[Yt][1]),Kn=parseFloat(CA[Yt][2]);break;case Rn:ln=(dr?"<":"(")+CA[Yt]+(dr?">":")"),Mn=_r(m),Kn=jr(P)}an!==void 0&&an[Yt]!==void 0&&(cn=an[Yt]+` Tw
`),Yt===0?u.push(cn+Cs(Mn,Kn,ke)+ln):Vn===Rn?u.push(cn+ln):Vn===Fi&&u.push(cn+Cs(Mn,Kn,ke)+ln)}u=Vn===Rn?u.join(` Tj
T* `):u.join(` Tj
`),u+=` Tj
`;var Zt=`BT
/`;return Zt+=ae+" "+UA+` Tf
`,Zt+=J(UA*Rt)+` TL
`,Zt+=Pn+`
`,Zt+=st,Zt+=u,K(Zt+="ET"),w[ae]=!0,Ze};var pl=d.__private__.clip=d.clip=function(u){return K(u==="evenodd"?"W*":"W"),this};d.clipEvenOdd=function(){return pl("evenodd")},d.__private__.discardPath=d.discardPath=function(){return K("n"),this};var Ir=d.__private__.isValidStyle=function(u){var m=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(m=!0),m};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(u){return Ir(u)&&(h=u),this};var fa=d.__private__.getStyle=d.getStyle=function(u){var m=h;switch(u){case"D":case"S":m="S";break;case"F":m="f";break;case"FD":case"DF":m="B";break;case"f":case"f*":case"B":case"B*":m=u}return m},ha=d.close=function(){return K("h"),this};d.stroke=function(){return K("S"),this},d.fill=function(u){return ui("f",u),this},d.fillEvenOdd=function(u){return ui("f*",u),this},d.fillStroke=function(u){return ui("B",u),this},d.fillStrokeEvenOdd=function(u){return ui("B*",u),this};var ui=function(u,m){me(m)==="object"?vl(m,u):K(u)},rs=function(u){u===null||V===_.ADVANCED&&u===void 0||(u=fa(u),K(u))};function wl(u,m,P,W,rA){var gA=new Gi(m||this.boundingBox,P||this.xStep,W||this.yStep,this.gState,rA||this.matrix);gA.stream=this.stream;var CA=u+"$$"+this.cloneIndex+++"$$";return St(CA,gA),gA}var vl=function(u,m){var P=Hn[u.key],W=ge[P];if(W instanceof Xn)K("q"),K(ml(m)),W.gState&&d.setGState(W.gState),K(u.matrix.toString()+" cm"),K("/"+P+" sh"),K("Q");else if(W instanceof Gi){var rA=new qA(1,0,0,-1,0,sn());u.matrix&&(rA=rA.multiply(u.matrix||Lr),P=wl.call(W,u.key,u.boundingBox,u.xStep,u.yStep,rA).id),K("q"),K("/Pattern cs"),K("/"+P+" scn"),W.gState&&d.setGState(W.gState),K(m),K("Q")}},ml=function(u){switch(u){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ns=d.moveTo=function(u,m){return K(J(S(u))+" "+J(M(m))+" m"),this},Dn=d.lineTo=function(u,m){return K(J(S(u))+" "+J(M(m))+" l"),this},rn=d.curveTo=function(u,m,P,W,rA,gA){return K([J(S(u)),J(M(m)),J(S(P)),J(M(W)),J(S(rA)),J(M(gA)),"c"].join(" ")),this};d.__private__.line=d.line=function(u,m,P,W,rA){if(isNaN(u)||isNaN(m)||isNaN(P)||isNaN(W)||!Ir(rA))throw new Error("Invalid arguments passed to jsPDF.line");return V===_.COMPAT?this.lines([[P-u,W-m]],u,m,[1,1],rA||"S"):this.lines([[P-u,W-m]],u,m,[1,1]).stroke()},d.__private__.lines=d.lines=function(u,m,P,W,rA,gA){var CA,PA,jA,re,Ae,ce,Te,ke,Ze,vt,st,dr;if(typeof u=="number"&&(dr=P,P=m,m=u,u=dr),W=W||[1,1],gA=gA||!1,isNaN(m)||isNaN(P)||!Array.isArray(u)||!Array.isArray(W)||!Ir(rA)||typeof gA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ns(m,P),CA=W[0],PA=W[1],re=u.length,vt=m,st=P,jA=0;jA<re;jA++)(Ae=u[jA]).length===2?(vt=Ae[0]*CA+vt,st=Ae[1]*PA+st,Dn(vt,st)):(ce=Ae[0]*CA+vt,Te=Ae[1]*PA+st,ke=Ae[2]*CA+vt,Ze=Ae[3]*PA+st,vt=Ae[4]*CA+vt,st=Ae[5]*PA+st,rn(ce,Te,ke,Ze,vt,st));return gA&&ha(),rs(rA),this},d.path=function(u){for(var m=0;m<u.length;m++){var P=u[m],W=P.c;switch(P.op){case"m":ns(W[0],W[1]);break;case"l":Dn(W[0],W[1]);break;case"c":rn.apply(this,W);break;case"h":ha()}}return this},d.__private__.rect=d.rect=function(u,m,P,W,rA){if(isNaN(u)||isNaN(m)||isNaN(P)||isNaN(W)||!Ir(rA))throw new Error("Invalid arguments passed to jsPDF.rect");return V===_.COMPAT&&(W=-W),K([J(S(u)),J(M(m)),J(S(P)),J(S(W)),"re"].join(" ")),rs(rA),this},d.__private__.triangle=d.triangle=function(u,m,P,W,rA,gA,CA){if(isNaN(u)||isNaN(m)||isNaN(P)||isNaN(W)||isNaN(rA)||isNaN(gA)||!Ir(CA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[P-u,W-m],[rA-P,gA-W],[u-rA,m-gA]],u,m,[1,1],CA,!0),this},d.__private__.roundedRect=d.roundedRect=function(u,m,P,W,rA,gA,CA){if(isNaN(u)||isNaN(m)||isNaN(P)||isNaN(W)||isNaN(rA)||isNaN(gA)||!Ir(CA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var PA=4/3*(Math.SQRT2-1);return rA=Math.min(rA,.5*P),gA=Math.min(gA,.5*W),this.lines([[P-2*rA,0],[rA*PA,0,rA,gA-gA*PA,rA,gA],[0,W-2*gA],[0,gA*PA,-rA*PA,gA,-rA,gA],[2*rA-P,0],[-rA*PA,0,-rA,-gA*PA,-rA,-gA],[0,2*gA-W],[0,-gA*PA,rA*PA,-gA,rA,-gA]],u+rA,m,[1,1],CA,!0),this},d.__private__.ellipse=d.ellipse=function(u,m,P,W,rA){if(isNaN(u)||isNaN(m)||isNaN(P)||isNaN(W)||!Ir(rA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var gA=4/3*(Math.SQRT2-1)*P,CA=4/3*(Math.SQRT2-1)*W;return ns(u+P,m),rn(u+P,m-CA,u+gA,m-W,u,m-W),rn(u-gA,m-W,u-P,m-CA,u-P,m),rn(u-P,m+CA,u-gA,m+W,u,m+W),rn(u+gA,m+W,u+P,m+CA,u+P,m),rs(rA),this},d.__private__.circle=d.circle=function(u,m,P,W){if(isNaN(u)||isNaN(m)||isNaN(P)||!Ir(W))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,m,P,P,W)},d.setFont=function(u,m,P){return P&&(m=Z(m,P)),ae=la(u,m,{disableWarning:!1}),this};var Cl=d.__private__.getFont=d.getFont=function(){return Fe[la.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var u,m,P={};for(u in Ne)if(Ne.hasOwnProperty(u))for(m in P[u]=[],Ne[u])Ne[u].hasOwnProperty(m)&&P[u].push(m);return P},d.addFont=function(u,m,P,W,rA){var gA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&gA.indexOf(arguments[3])!==-1?rA=arguments[3]:arguments[3]&&gA.indexOf(arguments[3])==-1&&(P=Z(P,W)),rA=rA||"Identity-H",As.call(this,u,m,P,rA)};var Tn,is=e.lineWidth||.200025,fi=d.__private__.getLineWidth=d.getLineWidth=function(){return is},da=d.__private__.setLineWidth=d.setLineWidth=function(u){return is=u,K(J(S(u))+" w"),this};d.__private__.setLineDash=WA.API.setLineDash=WA.API.setLineDashPattern=function(u,m){if(u=u||[],m=m||0,isNaN(m)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(P){return J(S(P))}).join(" "),m=J(S(m)),K("["+u+"] "+m+" d"),this};var ga=d.__private__.getLineHeight=d.getLineHeight=function(){return UA*Tn};d.__private__.getLineHeight=d.getLineHeight=function(){return UA*Tn};var Ba=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(Tn=u),this},pa=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Tn};Ba(e.lineHeight);var _r=d.__private__.getHorizontalCoordinate=function(u){return S(u)},jr=d.__private__.getVerticalCoordinate=function(u){return V===_.ADVANCED?u:$A[T].mediaBox.topRightY-$A[T].mediaBox.bottomLeftY-S(u)},yl=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(u){return J(_r(u))},nn=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(u){return J(jr(u))},hr=e.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return cr(hr)},d.__private__.setStrokeColor=d.setDrawColor=function(u,m,P,W){return hr=ur({ch1:u,ch2:m,ch3:P,ch4:W,pdfColorType:"draw",precision:2}),K(hr),this};var ss=e.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return cr(ss)},d.__private__.setFillColor=d.setFillColor=function(u,m,P,W){return ss=ur({ch1:u,ch2:m,ch3:P,ch4:W,pdfColorType:"fill",precision:2}),K(ss),this};var Pn=e.textColor||"0 g",Ql=d.__private__.getTextColor=d.getTextColor=function(){return cr(Pn)};d.__private__.setTextColor=d.setTextColor=function(u,m,P,W){return Pn=ur({ch1:u,ch2:m,ch3:P,ch4:W,pdfColorType:"text",precision:3}),this};var hi=e.charSpace,Fl=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(hi||0)};d.__private__.setCharSpace=d.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return hi=u,this};var as=0;d.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},d.__private__.setLineCap=d.setLineCap=function(u){var m=d.CapJoinStyles[u];if(m===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return as=m,K(m+" J"),this};var os=0;d.__private__.setLineJoin=d.setLineJoin=function(u){var m=d.CapJoinStyles[u];if(m===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return os=m,K(m+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return K(J(S(u))+" M"),this},d.GState=Ko,d.setGState=function(u){(u=typeof u=="string"?Pe[ar[u]]:wa(null,u)).equals(Kr)||(K("/"+u.id+" gs"),Kr=u)};var wa=function(u,m){if(!u||!ar[u]){var P=!1;for(var W in Pe)if(Pe.hasOwnProperty(W)&&Pe[W].equals(m)){P=!0;break}if(P)m=Pe[W];else{var rA="GS"+(Object.keys(Pe).length+1).toString(10);Pe[rA]=m,m.id=rA}return u&&(ar[u]=m.id),Be.publish("addGState",m),m}};d.addGState=function(u,m){return wa(u,m),this},d.saveGraphicsState=function(){return K("q"),Fr.push({key:ae,size:UA,color:Pn}),this},d.restoreGraphicsState=function(){K("Q");var u=Fr.pop();return ae=u.key,UA=u.size,Pn=u.color,Kr=null,this},d.setCurrentTransformationMatrix=function(u){return K(u.toString()+" cm"),this},d.comment=function(u){return K("#"+u),this};var di=function(u,m){var P=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return P},set:function(gA){isNaN(gA)||(P=parseFloat(gA))}});var W=m||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return W},set:function(gA){isNaN(gA)||(W=parseFloat(gA))}});var rA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return rA},set:function(gA){rA=gA.toString()}}),this},ls=function(u,m,P,W){di.call(this,u,m),this.type="rect";var rA=P||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return rA},set:function(CA){isNaN(CA)||(rA=parseFloat(CA))}});var gA=W||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return gA},set:function(CA){isNaN(CA)||(gA=parseFloat(CA))}}),this},cs=function(){this.page=Oe,this.currentPage=T,this.pages=FA.slice(0),this.pagesContext=$A.slice(0),this.x=pt,this.y=he,this.matrix=sr,this.width=On(T),this.height=sn(T),this.outputDestination=EA,this.id="",this.objectNumber=-1};cs.prototype.restore=function(){Oe=this.page,T=this.currentPage,$A=this.pagesContext,FA=this.pages,pt=this.x,he=this.y,sr=this.matrix,us(T,this.width),fs(T,this.height),EA=this.outputDestination};var va=function(u,m,P,W,rA){Ur.push(new cs),Oe=T=0,FA=[],pt=u,he=m,sr=rA,es([P,W])},bl=function(u){if(br[u])Ur.pop().restore();else{var m=new cs,P="Xo"+(Object.keys(ut).length+1).toString(10);m.id=P,br[u]=P,ut[P]=m,Be.publish("addFormObject",m),Ur.pop().restore()}};for(var gi in d.beginFormObject=function(u,m,P,W,rA){return va(u,m,P,W,rA),this},d.endFormObject=function(u){return bl(u),this},d.doFormObject=function(u,m){var P=ut[br[u]];return K("q"),K(m.toString()+" cm"),K("/"+P.id+" Do"),K("Q"),this},d.getFormObject=function(u){var m=ut[br[u]];return{x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},d.save=function(u,m){return u=u||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||!1,m.returnPromise===!1?(Wn(li(Vr()),u),typeof Wn.unload=="function"&&XA.setTimeout&&setTimeout(Wn.unload,911),this):new Promise(function(P,W){try{var rA=Wn(li(Vr()),u);typeof Wn.unload=="function"&&XA.setTimeout&&setTimeout(Wn.unload,911),P(rA)}catch(gA){W(gA.message)}})},WA.API)WA.API.hasOwnProperty(gi)&&(gi==="events"&&WA.API.events.length?function(u,m){var P,W,rA;for(rA=m.length-1;rA!==-1;rA--)P=m[rA][0],W=m[rA][1],u.subscribe.apply(u,[P].concat(typeof W=="function"?[W]:W))}(Be,WA.API.events):d[gi]=WA.API[gi]);var On=d.getPageWidth=function(u){return($A[u=u||T].mediaBox.topRightX-$A[u].mediaBox.bottomLeftX)/DA},us=d.setPageWidth=function(u,m){$A[u].mediaBox.topRightX=m*DA+$A[u].mediaBox.bottomLeftX},sn=d.getPageHeight=function(u){return($A[u=u||T].mediaBox.topRightY-$A[u].mediaBox.bottomLeftY)/DA},fs=d.setPageHeight=function(u,m){$A[u].mediaBox.topRightY=m*DA+$A[u].mediaBox.bottomLeftY};return d.internal={pdfEscape:Nt,getStyle:fa,getFont:Cl,getFontSize:_A,getCharSpace:Fl,getTextColor:Ql,getLineHeight:ga,getLineHeightFactor:pa,getLineWidth:fi,write:te,getHorizontalCoordinate:_r,getVerticalCoordinate:jr,getCoordinateString:yl,getVerticalCoordinateString:nn,collections:{},newObject:rt,newAdditionalObject:ei,newObjectDeferred:Ye,newObjectDeferredBegin:Kt,getFilters:Er,putStream:Jt,events:Be,scaleFactor:DA,pageSize:{getWidth:function(){return On(T)},setWidth:function(u){us(T,u)},getHeight:function(){return sn(T)},setHeight:function(u){fs(T,u)}},encryptionOptions:g,encryption:wt,getEncryptor:gl,output:ci,getNumberOfPages:cl,pages:FA,out:K,f2:nA,f3:I,getPageInfo:ua,getPageInfoByObjId:YA,getCurrentPageInfo:Bl,getPDFVersion:Q,Point:di,Rectangle:ls,Matrix:qA,hasHotfix:ca},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return On(T)},set:function(u){us(T,u)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return sn(T)},set:function(u){fs(T,u)},enumerable:!0,configurable:!0}),ol.call(d,QA),ae="F1",aa(n,t),Be.publish("initialized"),d}Ri.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Ri.prototype.toHexString=function(e){return e.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ri.prototype.hexToBytes=function(e){for(var A=[],t=0;t<e.length;t+=2)A.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return A.join("")},Ri.prototype.processOwnerPassword=function(e,A){return $c(Zc(A).substr(0,5),e)},Ri.prototype.encryptor=function(e,A){var t=Zc(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return $c(t,r)}},Ko.prototype.equals=function(e){var A,t="id,objectNumber,equals";if(!e||me(e)!==me(this))return!1;var r=0;for(A in this)if(!(t.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!e.hasOwnProperty(A)||this[A]!==e[A])return!1;r++}for(A in e)e.hasOwnProperty(A)&&t.indexOf(A)<0&&r--;return r===0},WA.API={events:[]},WA.version="3.0.1";var Ke=WA.API,fu=1,Ai=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pi=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ee=function(e){return e.toFixed(2)},vn=function(e){return e.toFixed(5)};Ke.__acroform__={};var Mt=function(e,A){e.prototype=Object.create(A.prototype),e.prototype.constructor=e},Yf=function(e){return e*fu},Dr=function(e){var A=new Id,t=KA.internal.getHeight(e)||0,r=KA.internal.getWidth(e)||0;return A.BBox=[0,0,Number(ee(r)),Number(ee(t))],A},J5=Ke.__acroform__.setBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<A},X5=Ke.__acroform__.clearBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<A)},z5=Ke.__acroform__.getBit=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<A?1:0},Je=Ke.__acroform__.getBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return z5(e,A-1)},Xe=Ke.__acroform__.setBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return J5(e,A-1)},ze=Ke.__acroform__.clearBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return X5(e,A-1)},Y5=Ke.__acroform__.calculateCoordinates=function(e,A){var t=A.internal.getHorizontalCoordinate,r=A.internal.getVerticalCoordinate,n=e[0],i=e[1],a=e[2],l=e[3],c={};return c.lowerLeft_X=t(n)||0,c.lowerLeft_Y=r(i+l)||0,c.upperRight_X=t(n+a)||0,c.upperRight_Y=r(i)||0,[Number(ee(c.lowerLeft_X)),Number(ee(c.lowerLeft_Y)),Number(ee(c.upperRight_X)),Number(ee(c.upperRight_Y))]},Z5=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var A=[],t=e._V||e.DV,r=Au(e,t),n=e.scope.internal.getFont(e.fontName,e.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(e.scope.__private__.encodeColorString(e.color)),A.push("/"+n+" "+ee(r.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(r.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=Dr(e);return i.scope=e.scope,i.stream=A.join(`
`),i}},Au=function(e,A){var t=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=e.multiline?n.map(function(I){return I.split(`
`)}):n.map(function(I){return[I]});var i=t,a=KA.internal.getHeight(e)||0;a=a<0?-a:a;var l=KA.internal.getWidth(e)||0;l=l<0?-l:l;var c=function(I,S,R){if(I+1<n.length){var M=S+" "+n[I+1][0];return po(M,e,R).width<=l-4}return!1};i++;A:for(;i>0;){A="",i--;var h,g,B=po("3",e,i).height,w=e.multiline?a-i:(a-B)/2,d=w+=2,L=0,Q=0,H=0;if(i<=0){A=`(...) Tj
`,A+="% Width of Text: "+po(A,e,i=12).width+", FieldWidth:"+l+`
`;break}for(var C="",_=0,V=0;V<n.length;V++)if(n.hasOwnProperty(V)){var Y=!1;if(n[V].length!==1&&H!==n[V].length-1){if((B+2)*(_+2)+2>a)continue A;C+=n[V][H],Y=!0,Q=V,V--}else{C=(C+=n[V][H]+" ").substr(C.length-1)==" "?C.substr(0,C.length-1):C;var j=parseInt(V),Z=c(j,C,i),J=V>=n.length-1;if(Z&&!J){C+=" ",H=0;continue}if(Z||J){if(J)Q=j;else if(e.multiline&&(B+2)*(_+2)+2>a)continue A}else{if(!e.multiline||(B+2)*(_+2)+2>a)continue A;Q=j}}for(var k="",q=L;q<=Q;q++){var nA=n[q];if(e.multiline){if(q===Q){k+=nA[H]+" ",H=(H+1)%nA.length;continue}if(q===L){k+=nA[nA.length-1]+" ";continue}}k+=nA[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,g=po(k,e,i).width,e.textAlign){case"right":h=l-g-2;break;case"center":h=(l-g)/2;break;case"left":default:h=2}A+=ee(h)+" "+ee(d)+` Td
`,A+="("+Ai(k)+`) Tj
`,A+=-ee(h)+` 0 Td
`,d=-(i+2),g=0,L=Y?Q:Q+1,_++,C=""}break}return r.text=A,r.fontSize=i,r},po=function(e,A,t){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},$5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Aw=function(e,A){var t={type:"reference",object:e};A.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&A.internal.getPageInfo(e.page).pageContext.annotations.push(t)},ew=function(e,A){for(var t in e)if(e.hasOwnProperty(t)){var r=t,n=e[t];A.internal.newObjectDeferredBegin(n.objId,!0),me(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete e[r]}},tw=function(e,A){if(A.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(yr.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify($5)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");fu=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new _d,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.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})(e)}),e.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&&Aw(i,t)}})(e)}),e.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")})(e)}),e.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 l=r[a],c=[],h=l.Rect;if(l.Rect&&(l.Rect=Y5(l.Rect,n)),n.internal.newObjectDeferredBegin(l.objId,!0),l.DA=KA.createDefaultAppearanceStream(l),me(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=h,l.hasAppearanceStream&&!l.appearanceStreamContent){var g=Z5(l);c.push({key:"AP",value:"<</N "+g+">>"}),n.internal.acroformPlugin.xForms.push(g)}if(l.appearanceStreamContent){var B="";for(var w in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(w)){var d=l.appearanceStreamContent[w];if(B+="/"+w+" ",B+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var a in d)if(d.hasOwnProperty(a)){var L=d[a];typeof L=="function"&&(L=L.call(n,l)),B+="/"+a+" "+L+" ",n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L)}}else typeof(L=d)=="function"&&(L=L.call(n,l)),B+="/"+a+" "+L,n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L);B+=">>"}c.push({key:"AP",value:`<<
`+B+">>"})}n.internal.putStream({additionalKeyValues:c,objectId:l.objId}),n.internal.out("endobj")}i&&ew(n.internal.acroformPlugin.xForms,n)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},xd=Ke.__acroform__.arrayToPdfArray=function(e,A,t){var r=function(a){return a};if(Array.isArray(e)){for(var n="[",i=0;i<e.length;i++)switch(i!==0&&(n+=" "),me(e[i])){case"boolean":case"number":case"object":n+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(A!==void 0&&t&&(r=t.internal.getEncryptor(A)),n+="("+Ai(r(e[i].toString()))+")"):n+=e[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},vc=function(e,A,t){var r=function(n){return n};return A!==void 0&&t&&(r=t.internal.getEncryptor(A)),(e=e||"").toString(),e="("+Ai(r(e))+")"},Tr=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(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Tr.prototype.toString=function(){return this.objId+" 0 R"},Tr.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Tr.prototype.getKeyValueListForStream=function(){var e=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in A)if(Object.getOwnPropertyDescriptor(this,A[t]).configurable===!1){var r=A[t],n=this[r];n&&(Array.isArray(n)?e.push({key:r,value:xd(n,this.objId,this.scope)}):n instanceof Tr?(n.scope=this.scope,e.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&e.push({key:r,value:n}))}return e};var Id=function(){Tr.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 e,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Mt(Id,Tr);var _d=function(){Tr.call(this);var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ai(t(e))+")"}},set:function(t){e=t}})};Mt(_d,Tr);var yr=function e(){Tr.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(C){if(isNaN(C))throw new Error('Invalid value "'+C+'" for attribute F supplied.');A=C}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Je(A,3)},set:function(C){C?this.F=Xe(A,3):this.F=ze(A,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(C){if(isNaN(C))throw new Error('Invalid value "'+C+'" for attribute Ff supplied.');t=C}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(C){r=C!==void 0?C:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(C){r[0]=C}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(C){r[1]=C}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(C){r[2]=C}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(C){r[3]=C}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(C){switch(C){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=C;break;default:throw new Error('Invalid value "'+C+'" 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 Ro)return;i="FieldObject"+e.FieldNum++}var C=function(_){return _};return this.scope&&(C=this.scope.internal.getEncryptor(this.objId)),"("+Ai(C(i))+")"},set:function(C){i=C.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(C){i=C}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(C){a=C}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(C){l=C}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(C){c=C}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h===void 0?50/fu:h},set:function(C){h=C}});var g="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return g},set:function(C){g=C}});var B="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!B||this instanceof Ro||this instanceof $n))return vc(B,this.objId,this.scope)},set:function(C){C=C.toString(),B=C}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof ct?w:vc(w,this.objId,this.scope)},set:function(C){C=C.toString(),w=this instanceof ct?C:C.substr(0,1)==="("?Pi(C.substr(1,C.length-2)):Pi(C)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ct?Pi(w.substr(1,w.length-1)):w},set:function(C){C=C.toString(),w=this instanceof ct?"/"+C:C}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(C){this.V=C}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ct?d:vc(d,this.objId,this.scope)},set:function(C){C=C.toString(),d=this instanceof ct?C:C.substr(0,1)==="("?Pi(C.substr(1,C.length-2)):Pi(C)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ct?Pi(d.substr(1,d.length-1)):d},set:function(C){C=C.toString(),d=this instanceof ct?"/"+C:C}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var L,Q=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Q},set:function(C){C=!!C,Q=C}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(L)return L},set:function(C){L=C}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,1)},set:function(C){C?this.Ff=Xe(this.Ff,1):this.Ff=ze(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,2)},set:function(C){C?this.Ff=Xe(this.Ff,2):this.Ff=ze(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,3)},set:function(C){C?this.Ff=Xe(this.Ff,3):this.Ff=ze(this.Ff,3)}});var H=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(H!==null)return H},set:function(C){if([0,1,2].indexOf(C)===-1)throw new Error('Invalid value "'+C+'" for attribute Q supplied.');H=C}}),Object.defineProperty(this,"textAlign",{get:function(){var C;switch(H){case 0:default:C="left";break;case 1:C="center";break;case 2:C="right"}return C},configurable:!0,enumerable:!0,set:function(C){switch(C){case"right":case 2:H=2;break;case"center":case 1:H=1;break;case"left":case 0:default:H=0}}})};Mt(yr,Tr);var Wi=function(){yr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return xd(A,this.objId,this.scope)},set:function(t){var r,n;n=[],typeof(r=t)=="string"&&(n=function(i,a,l){l||(l=1);for(var c,h=[];c=a.exec(i);)h.push(c[l]);return h}(r,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(t){A=t,this.sort&&A.sort()},this.addOption=function(t){t=(t=t||"").toString(),A.push(t),this.sort&&A.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();A.indexOf(t)!==-1&&(A.splice(A.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,18)},set:function(t){t?this.Ff=Xe(this.Ff,18):this.Ff=ze(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=Xe(this.Ff,19):this.Ff=ze(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,20)},set:function(t){t?(this.Ff=Xe(this.Ff,20),A.sort()):this.Ff=ze(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,22)},set:function(t){t?this.Ff=Xe(this.Ff,22):this.Ff=ze(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,23)},set:function(t){t?this.Ff=Xe(this.Ff,23):this.Ff=ze(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,27)},set:function(t){t?this.Ff=Xe(this.Ff,27):this.Ff=ze(this.Ff,27)}}),this.hasAppearanceStream=!1};Mt(Wi,yr);var Ji=function(){Wi.call(this),this.fontName="helvetica",this.combo=!1};Mt(Ji,Wi);var Xi=function(){Ji.call(this),this.combo=!0};Mt(Xi,Ji);var Lo=function(){Xi.call(this),this.edit=!0};Mt(Lo,Xi);var ct=function(){yr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,15)},set:function(t){t?this.Ff=Xe(this.Ff,15):this.Ff=ze(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,16)},set:function(t){t?this.Ff=Xe(this.Ff,16):this.Ff=ze(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,17)},set:function(t){t?this.Ff=Xe(this.Ff,17):this.Ff=ze(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,26)},set:function(t){t?this.Ff=Xe(this.Ff,26):this.Ff=ze(this.Ff,26)}});var e,A={};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(A).length!==0){var r,n=[];for(r in n.push("<<"),A)n.push("/"+r+" ("+Ai(t(A[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(t){me(t)==="object"&&(A=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(t){typeof t=="string"&&(A.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Mt(ct,yr);var Eo=function(){ct.call(this),this.pushButton=!0};Mt(Eo,ct);var zi=function(){ct.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A!==void 0?A:[]}})};Mt(zi,ct);var Ro=function(){var e,A;yr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(l){return l};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),r)a.push("/"+i+" ("+Ai(n(r[i]))+")");return a.push(">>"),a.join(`
`)},set:function(n){me(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=KA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Mt(Ro,yr),zi.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var t=this.Kids[A];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},zi.prototype.createOption=function(e){var A=new Ro;return A.Parent=this,A.optionName=e,this.Kids.push(A),rw.call(this.scope,A),A};var xo=function(){ct.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=KA.CheckBox.createAppearanceStream()};Mt(xo,ct);var $n=function(){yr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,13)},set:function(A){A?this.Ff=Xe(this.Ff,13):this.Ff=ze(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,21)},set:function(A){A?this.Ff=Xe(this.Ff,21):this.Ff=ze(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,23)},set:function(A){A?this.Ff=Xe(this.Ff,23):this.Ff=ze(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,24)},set:function(A){A?this.Ff=Xe(this.Ff,24):this.Ff=ze(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,25)},set:function(A){A?this.Ff=Xe(this.Ff,25):this.Ff=ze(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,26)},set:function(A){A?this.Ff=Xe(this.Ff,26):this.Ff=ze(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){Number.isInteger(A)&&(e=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Mt($n,yr);var Io=function(){$n.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,14)},set:function(e){e?this.Ff=Xe(this.Ff,14):this.Ff=ze(this.Ff,14)}}),this.password=!0};Mt(Io,$n);var KA={CheckBox:{createAppearanceStream:function(){return{N:{On:KA.CheckBox.YesNormal},D:{On:KA.CheckBox.YesPushDown,Off:KA.CheckBox.OffPushDown}}},YesPushDown:function(e){var A=Dr(e);A.scope=e.scope;var t=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=Au(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+ee(KA.internal.getWidth(e))+" "+ee(KA.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+ee(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),A.stream=t.join(`
`),A},YesNormal:function(e){var A=Dr(e);A.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),n=[],i=KA.internal.getHeight(e),a=KA.internal.getWidth(e),l=Au(e,e.caption);return n.push("1 g"),n.push("0 0 "+ee(a)+" "+ee(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ee(a-1)+" "+ee(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+ee(l.fontSize)+" Tf "+r),n.push(l.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
`),A},OffPushDown:function(e){var A=Dr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ee(KA.internal.getWidth(e))+" "+ee(KA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
`),A}},RadioButton:{Circle:{createAppearanceStream:function(e){var A={D:{Off:KA.RadioButton.Circle.OffPushDown},N:{}};return A.N[e]=KA.RadioButton.Circle.YesNormal,A.D[e]=KA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(e){var A=Dr(e);A.scope=e.scope;var t=[],r=KA.internal.getWidth(e)<=KA.internal.getHeight(e)?KA.internal.getWidth(e)/4:KA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=KA.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+vn(KA.internal.getWidth(e)/2)+" "+vn(KA.internal.getHeight(e)/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"),A.stream=t.join(`
`),A},YesPushDown:function(e){var A=Dr(e);A.scope=e.scope;var t=[],r=KA.internal.getWidth(e)<=KA.internal.getHeight(e)?KA.internal.getWidth(e)/4:KA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*KA.internal.Bezier_C).toFixed(5)),a=Number((r*KA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+vn(KA.internal.getWidth(e)/2)+" "+vn(KA.internal.getHeight(e)/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 "+vn(KA.internal.getWidth(e)/2)+" "+vn(KA.internal.getHeight(e)/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"),A.stream=t.join(`
`),A},OffPushDown:function(e){var A=Dr(e);A.scope=e.scope;var t=[],r=KA.internal.getWidth(e)<=KA.internal.getHeight(e)?KA.internal.getWidth(e)/4:KA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*KA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+vn(KA.internal.getWidth(e)/2)+" "+vn(KA.internal.getHeight(e)/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"),A.stream=t.join(`
`),A}},Cross:{createAppearanceStream:function(e){var A={D:{Off:KA.RadioButton.Cross.OffPushDown},N:{}};return A.N[e]=KA.RadioButton.Cross.YesNormal,A.D[e]=KA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(e){var A=Dr(e);A.scope=e.scope;var t=[],r=KA.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+ee(KA.internal.getWidth(e)-2)+" "+ee(KA.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(ee(r.x1.x)+" "+ee(r.x1.y)+" m"),t.push(ee(r.x2.x)+" "+ee(r.x2.y)+" l"),t.push(ee(r.x4.x)+" "+ee(r.x4.y)+" m"),t.push(ee(r.x3.x)+" "+ee(r.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join(`
`),A},YesPushDown:function(e){var A=Dr(e);A.scope=e.scope;var t=KA.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ee(KA.internal.getWidth(e))+" "+ee(KA.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ee(KA.internal.getWidth(e)-2)+" "+ee(KA.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ee(t.x1.x)+" "+ee(t.x1.y)+" m"),r.push(ee(t.x2.x)+" "+ee(t.x2.y)+" l"),r.push(ee(t.x4.x)+" "+ee(t.x4.y)+" m"),r.push(ee(t.x3.x)+" "+ee(t.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
`),A},OffPushDown:function(e){var A=Dr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ee(KA.internal.getWidth(e))+" "+ee(KA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
`),A}}},createDefaultAppearanceStream:function(e){var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+A+" "+e.fontSize+" Tf "+t}};KA.internal={Bezier_C:.551915024494,calculateCross:function(e){var A=KA.internal.getWidth(e),t=KA.internal.getHeight(e),r=Math.min(A,t);return{x1:{x:(A-r)/2,y:(t-r)/2+r},x2:{x:(A-r)/2+r,y:(t-r)/2},x3:{x:(A-r)/2,y:(t-r)/2},x4:{x:(A-r)/2+r,y:(t-r)/2+r}}}},KA.internal.getWidth=function(e){var A=0;return me(e)==="object"&&(A=Yf(e.Rect[2])),A},KA.internal.getHeight=function(e){var A=0;return me(e)==="object"&&(A=Yf(e.Rect[3])),A};var rw=Ke.addField=function(e){if(tw(this,e),!(e instanceof yr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=e).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Ke.AcroFormChoiceField=Wi,Ke.AcroFormListBox=Ji,Ke.AcroFormComboBox=Xi,Ke.AcroFormEditBox=Lo,Ke.AcroFormButton=ct,Ke.AcroFormPushButton=Eo,Ke.AcroFormRadioButton=zi,Ke.AcroFormCheckBox=xo,Ke.AcroFormTextField=$n,Ke.AcroFormPasswordField=Io,Ke.AcroFormAppearance=KA,Ke.AcroForm={ChoiceField:Wi,ListBox:Ji,ComboBox:Xi,EditBox:Lo,Button:ct,PushButton:Eo,RadioButton:zi,CheckBox:xo,TextField:$n,PasswordField:Io,Appearance:KA},WA.AcroForm={ChoiceField:Wi,ListBox:Ji,ComboBox:Xi,EditBox:Lo,Button:ct,PushButton:Eo,RadioButton:zi,CheckBox:xo,TextField:$n,PasswordField:Io,Appearance:KA};WA.AcroForm;function Hd(e){return e.reduce(function(A,t,r){return A[t]=r,A},{})}(function(e){e.__addimage__={};var A="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(I,S){var R,M,lA,iA,uA,tA=A;if((S=S||A)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(Z(I))for(uA in t)for(lA=t[uA],R=0;R<lA.length;R+=1){for(iA=!0,M=0;M<lA[R].length;M+=1)if(lA[R][M]!==void 0&&lA[R][M]!==I[M]){iA=!1;break}if(iA===!0){tA=uA;break}}else for(uA in t)for(lA=t[uA],R=0;R<lA.length;R+=1){for(iA=!0,M=0;M<lA[R].length;M+=1)if(lA[R][M]!==void 0&&lA[R][M]!==I.charCodeAt(M)){iA=!1;break}if(iA===!0){tA=uA;break}}return tA===A&&S!==A&&(tA=S),tA},n=function I(S){for(var R=this.internal.write,M=this.internal.putStream,lA=(0,this.internal.getFilters)();lA.indexOf("FlateEncode")!==-1;)lA.splice(lA.indexOf("FlateEncode"),1);S.objectId=this.internal.newObject();var iA=[];if(iA.push({key:"Type",value:"/XObject"}),iA.push({key:"Subtype",value:"/Image"}),iA.push({key:"Width",value:S.width}),iA.push({key:"Height",value:S.height}),S.colorSpace===H.INDEXED?iA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(S.palette.length/3-1)+" "+("sMask"in S&&S.sMask!==void 0?S.objectId+2:S.objectId+1)+" 0 R]"}):(iA.push({key:"ColorSpace",value:"/"+S.colorSpace}),S.colorSpace===H.DEVICE_CMYK&&iA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),iA.push({key:"BitsPerComponent",value:S.bitsPerComponent}),"decodeParameters"in S&&S.decodeParameters!==void 0&&iA.push({key:"DecodeParms",value:"<<"+S.decodeParameters+">>"}),"transparency"in S&&Array.isArray(S.transparency)){for(var uA="",tA=0,fA=S.transparency.length;tA<fA;tA++)uA+=S.transparency[tA]+" "+S.transparency[tA]+" ";iA.push({key:"Mask",value:"["+uA+"]"})}S.sMask!==void 0&&iA.push({key:"SMask",value:S.objectId+1+" 0 R"});var hA=S.filter!==void 0?["/"+S.filter]:void 0;if(M({data:S.data,additionalKeyValues:iA,alreadyAppliedFilters:hA,objectId:S.objectId}),R("endobj"),"sMask"in S&&S.sMask!==void 0){var bA="/Predictor "+S.predictor+" /Colors 1 /BitsPerComponent "+S.bitsPerComponent+" /Columns "+S.width,b={width:S.width,height:S.height,colorSpace:"DeviceGray",bitsPerComponent:S.bitsPerComponent,decodeParameters:bA,data:S.sMask};"filter"in S&&(b.filter=S.filter),I.call(this,b)}if(S.colorSpace===H.INDEXED){var T=this.internal.newObject();M({data:k(new Uint8Array(S.palette)),objectId:T}),R("endobj")}},i=function(){var I=this.internal.collections.addImage_images;for(var S in I)n.call(this,I[S])},a=function(){var I,S=this.internal.collections.addImage_images,R=this.internal.write;for(var M in S)R("/I"+(I=S[M]).index,I.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var I=this.internal.collections.addImage_images;return l.call(this),I},h=function(){return Object.keys(this.internal.collections.addImage_images).length},g=function(I){return typeof e["process"+I.toUpperCase()]=="function"},B=function(I){return me(I)==="object"&&I.nodeType===1},w=function(I,S){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var R=""+I.getAttribute("src");if(R.indexOf("data:image/")===0)return Js(unescape(R).split("base64,").pop());var M=e.loadFile(R,!0);if(M!==void 0)return M}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var lA;switch(S){case"PNG":lA="image/png";break;case"WEBP":lA="image/webp";break;case"JPEG":case"JPG":default:lA="image/jpeg"}return Js(I.toDataURL(lA,1).split("base64,").pop())}},d=function(I){var S=this.internal.collections.addImage_images;if(S){for(var R in S)if(I===S[R].alias)return S[R]}},L=function(I,S,R){return I||S||(I=-96,S=-96),I<0&&(I=-1*R.width*72/I/this.internal.scaleFactor),S<0&&(S=-1*R.height*72/S/this.internal.scaleFactor),I===0&&(I=S*R.width/R.height),S===0&&(S=I*R.height/R.width),[I,S]},Q=function(I,S,R,M,lA,iA){var uA=L.call(this,R,M,lA),tA=this.internal.getCoordinateString,fA=this.internal.getVerticalCoordinateString,hA=c.call(this);if(R=uA[0],M=uA[1],hA[lA.index]=lA,iA){iA*=Math.PI/180;var bA=Math.cos(iA),b=Math.sin(iA),T=function(O){return O.toFixed(4)},U=[T(bA),T(b),T(-1*b),T(bA),0,0,"cm"]}this.internal.write("q"),iA?(this.internal.write([1,"0","0",1,tA(I),fA(S+M),"cm"].join(" ")),this.internal.write(U.join(" ")),this.internal.write([tA(R),"0","0",tA(M),"0","0","cm"].join(" "))):this.internal.write([tA(R),"0","0",tA(M),tA(I),fA(S+M),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+lA.index+" Do"),this.internal.write("Q")},H=e.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"};e.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 C=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_=e.__addimage__.sHashCode=function(I){var S,R,M=0;if(typeof I=="string")for(R=I.length,S=0;S<R;S++)M=(M<<5)-M+I.charCodeAt(S),M|=0;else if(Z(I))for(R=I.byteLength/2,S=0;S<R;S++)M=(M<<5)-M+I[S],M|=0;return M},V=e.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var S=!0;return I.length===0&&(S=!1),I.length%4!=0&&(S=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(S=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(S=!1),S},Y=e.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var S=I.indexOf(",");return S<0?null:I.substring(0,S).trim().endsWith("base64")?I.substring(S+1):null},j=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(I){return j()&&I instanceof ArrayBuffer};var Z=e.__addimage__.isArrayBufferView=function(I){return j()&&typeof Uint32Array<"u"&&(I instanceof Int8Array||I instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array)},J=e.__addimage__.binaryStringToUint8Array=function(I){for(var S=I.length,R=new Uint8Array(S),M=0;M<S;M++)R[M]=I.charCodeAt(M);return R},k=e.__addimage__.arrayBufferToBinaryString=function(I){for(var S="",R=Z(I)?I:new Uint8Array(I),M=0;M<R.length;M+=8192)S+=String.fromCharCode.apply(null,R.subarray(M,M+8192));return S};e.addImage=function(){var I,S,R,M,lA,iA,uA,tA,fA;if(typeof arguments[1]=="number"?(S=A,R=arguments[1],M=arguments[2],lA=arguments[3],iA=arguments[4],uA=arguments[5],tA=arguments[6],fA=arguments[7]):(S=arguments[1],R=arguments[2],M=arguments[3],lA=arguments[4],iA=arguments[5],uA=arguments[6],tA=arguments[7],fA=arguments[8]),me(I=arguments[0])==="object"&&!B(I)&&"imageData"in I){var hA=I;I=hA.imageData,S=hA.format||S||A,R=hA.x||R||0,M=hA.y||M||0,lA=hA.w||hA.width||lA,iA=hA.h||hA.height||iA,uA=hA.alias||uA,tA=hA.compression||tA,fA=hA.rotation||hA.angle||fA}var bA=this.internal.getFilters();if(tA===void 0&&bA.indexOf("FlateEncode")!==-1&&(tA="SLOW"),isNaN(R)||isNaN(M))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var b=q.call(this,I,S,uA,tA);return Q.call(this,R,M,lA,iA,b,fA),this};var q=function(I,S,R,M){var lA,iA,uA;if(typeof I=="string"&&r(I)===A){I=unescape(I);var tA=nA(I,!1);(tA!==""||(tA=e.loadFile(I,!0))!==void 0)&&(I=tA)}if(B(I)&&(I=w(I,S)),S=r(I,S),!g(S))throw new Error("addImage does not support files of type '"+S+"', please ensure that a plugin for '"+S+"' support is added.");if(((uA=R)==null||uA.length===0)&&(R=function(fA){return typeof fA=="string"||Z(fA)?_(fA):Z(fA.data)?_(fA.data):null}(I)),(lA=d.call(this,R))||(j()&&(I instanceof Uint8Array||S==="RGBA"||(iA=I,I=J(I))),lA=this["process"+S.toUpperCase()](I,h.call(this),R,function(fA){return fA&&typeof fA=="string"&&(fA=fA.toUpperCase()),fA in e.image_compression?fA:C.NONE}(M),iA)),!lA)throw new Error("An unknown error occurred whilst processing the image.");return lA},nA=e.__addimage__.convertBase64ToBinaryString=function(I,S){S=typeof S!="boolean"||S;var R,M="";if(typeof I=="string"){var lA;R=(lA=Y(I))!==null&&lA!==void 0?lA:I;try{M=Js(R)}catch(iA){if(S)throw V(R)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+iA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return M};e.getImageProperties=function(I){var S,R,M="";if(B(I)&&(I=w(I)),typeof I=="string"&&r(I)===A&&((M=nA(I,!1))===""&&(M=e.loadFile(I)||""),I=M),R=r(I),!g(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(!j()||I instanceof Uint8Array||(I=J(I)),!(S=this["process"+R.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return S.fileType=R,S}})(WA.API),function(e){var A=function(t){if(t!==void 0&&t!="")return!0};WA.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(t.objId),h=t.pageContext.annotations,g=!1,B=0;B<h.length&&!g;B++)switch((r=h[B]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var w=0;w<h.length;w++){r=h[w];var d=this.internal.pdfEscape,L=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var Q=this.internal.newAdditionalObject(),H=this.internal.newAdditionalObject(),C=this.internal.getEncryptor(Q.objId),_=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+d(C(r.contents))+")",i+=" /Popup "+H.objId+" 0 R",i+=" /P "+c.objId+" 0 R",i+=" /T ("+d(C(_))+") >>",Q.content=i;var V=Q.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+V,r.open&&(i+=" /Open true"),i+=" >>",H.content=i,this.internal.write(Q.objId,"0 R",H.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+l(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var Y=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+d(L(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var j=this.annotations._nameMap[r.options.name];r.options.pageNumber=j.page,r.options.top=j.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 ("+d(L(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var Z=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+Z+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.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)}},e.link=function(t,r,n,i,a){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(t),y:h(r),w:c(t+n),h:h(r+i)},options:a,type:"link"})},e.textWithLink=function(t,r,n,i){var a,l,c=this.getTextWidth(t),h=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){l=i.maxWidth;var g=this.splitTextToSize(t,l).length;a=Math.ceil(h*g)}else l=c,a=h;return this.text(t,r,n,i),n+=.2*h,i.align==="center"&&(r-=c/2),i.align==="right"&&(r-=c),this.link(r,n-h,l,a,i),c},e.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}}(WA.API),function(e){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},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];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(Q){return A[Q.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(Q){return typeof Q=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Q)},l=e.__arabicParser__.isArabicEndLetter=function(Q){return a(Q)&&i(Q)&&A[Q.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(Q){return a(Q)&&n.indexOf(Q.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(Q){return a(Q)&&i(Q)&&A[Q.charCodeAt(0)].length>=1};var h=e.__arabicParser__.arabicLetterHasFinalForm=function(Q){return a(Q)&&i(Q)&&A[Q.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(Q){return a(Q)&&i(Q)&&A[Q.charCodeAt(0)].length>=3};var g=e.__arabicParser__.arabicLetterHasMedialForm=function(Q){return a(Q)&&i(Q)&&A[Q.charCodeAt(0)].length==4},B=e.__arabicParser__.resolveLigatures=function(Q){var H=0,C=t,_="",V=0;for(H=0;H<Q.length;H+=1)C[Q.charCodeAt(H)]!==void 0?(V++,typeof(C=C[Q.charCodeAt(H)])=="number"&&(_+=String.fromCharCode(C),C=t,V=0),H===Q.length-1&&(C=t,_+=Q.charAt(H-(V-1)),H-=V-1,V=0)):(C=t,_+=Q.charAt(H-V),H-=V,V=0);return _};e.__arabicParser__.isArabicDiacritic=function(Q){return Q!==void 0&&r[Q.charCodeAt(0)]!==void 0};var w=e.__arabicParser__.getCorrectForm=function(Q,H,C){return a(Q)?i(Q)===!1?-1:!h(Q)||!a(H)&&!a(C)||!a(C)&&l(H)||l(Q)&&!a(H)||l(Q)&&c(H)||l(Q)&&l(H)?0:g(Q)&&a(H)&&!l(H)&&a(C)&&h(C)?3:l(Q)||!a(C)?1:2:-1},d=function(Q){var H=0,C=0,_=0,V="",Y="",j="",Z=(Q=Q||"").split("\\s+"),J=[];for(H=0;H<Z.length;H+=1){for(J.push(""),C=0;C<Z[H].length;C+=1)V=Z[H][C],Y=Z[H][C-1],j=Z[H][C+1],a(V)?(_=w(V,Y,j),J[H]+=_!==-1?String.fromCharCode(A[V.charCodeAt(0)][_]):V):J[H]+=V;J[H]=B(J[H])}return J.join(" ")},L=e.__arabicParser__.processArabic=e.processArabic=function(){var Q,H=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,C=[];if(Array.isArray(H)){var _=0;for(C=[],_=0;_<H.length;_+=1)Array.isArray(H[_])?C.push([d(H[_][0]),H[_][1],H[_][2]]):C.push([d(H[_])]);Q=C}else Q=d(H);return typeof arguments[0]=="string"?Q:(arguments[0].text=Q,arguments[0])};e.events.push(["preProcessText",L])}(WA.API),WA.API.autoPrint=function(e){var A;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+A+" 0 R")})}return this},function(e){var A=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(l){t=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(l){n=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(l){i=l}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(l){a=l}}),Object.defineProperty(this,"parentNode",{})};A.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},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(WA.API),function(e){var A={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({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(Q){c=Q}});var h=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return h},set:function(Q){h=Q}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(Q){g=Q}});var B=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return B},set:function(Q){B=Q}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(Q){w=Q}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(Q){d=Q}});var L=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return L},set:function(Q){L=Q}}),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]},e.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,h){r.call(this);var g=(h=h||{}).fontSize||this.getFontSize(),B=h.font||this.getFont(),w=h.scaleFactor||this.internal.scaleFactor,d=0,L=0,Q=0,H=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var C=h.maxWidth;C>0?typeof c=="string"?c=this.splitTextToSize(c,C):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(V,Y){return V.concat(H.splitTextToSize(Y,C))},[])):c=Array.isArray(c)?c:[c];for(var _=0;_<c.length;_++)d<(Q=this.getStringUnitWidth(c[_],{font:B})*g)&&(d=Q);return d!==0&&(L=c.length),{w:d/=w,h:Math.max((L*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/w,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var c;c=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var h=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,B=this.internal.__cell__.margins||A,w=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return h.lineNumber!==void 0&&(h.lineNumber===c.lineNumber?(c.x=(h.x||0)+(h.width||0),c.y=h.y||0):h.y+h.height+c.height+B.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=B.top,d&&w&&(this.printHeaderRow(c.lineNumber,!0),c.y+=w[0].height)):c.y=h.y+h.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,t===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-g,c.y+g,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+g,{align:"center",baseline:"top",maxWidth:c.width-g-g}):this.text(c.text,c.x+g,c.y+g,{align:"left",baseline:"top",maxWidth:c.width-g-g})),this.internal.__cell__.lastCell=c,this};e.table=function(c,h,g,B,w){if(r.call(this),!g)throw new Error("No data for PDF table.");var d,L,Q,H,C=[],_=[],V=[],Y={},j={},Z=[],J=[],k=(w=w||{}).autoSize||!1,q=w.printHeaders!==!1,nA=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,I=w.margins||Object.assign({width:this.getPageWidth()},A),S=typeof w.padding=="number"?w.padding:3,R=w.headerBackgroundColor||"#c8c8c8",M=w.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=q,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=nA,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=R,this.internal.__cell__.headerTextColor=M,this.setFontSize(nA),B==null)_=C=Object.keys(g[0]),V=C.map(function(){return"left"});else if(Array.isArray(B)&&me(B[0])==="object")for(C=B.map(function(hA){return hA.name}),_=B.map(function(hA){return hA.prompt||hA.name||""}),V=B.map(function(hA){return hA.align||"left"}),d=0;d<B.length;d+=1)j[B[d].name]=B[d].width*(19.049976/25.4);else Array.isArray(B)&&typeof B[0]=="string"&&(_=C=B,V=C.map(function(){return"left"}));if(k||Array.isArray(B)&&typeof B[0]=="string")for(d=0;d<C.length;d+=1){for(Y[H=C[d]]=g.map(function(hA){return hA[H]}),this.setFont(void 0,"bold"),Z.push(this.getTextDimensions(_[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),L=Y[H],this.setFont(void 0,"normal"),Q=0;Q<L.length;Q+=1)Z.push(this.getTextDimensions(L[Q],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);j[H]=Math.max.apply(null,Z)+S+S,Z=[]}if(q){var lA={};for(d=0;d<C.length;d+=1)lA[C[d]]={},lA[C[d]].text=_[d],lA[C[d]].align=V[d];var iA=l.call(this,lA,j);J=C.map(function(hA){return new i(c,h,j[hA],iA,lA[hA].text,void 0,lA[hA].align)}),this.setTableHeaderRow(J),this.printHeaderRow(1,!1)}var uA=B.reduce(function(hA,bA){return hA[bA.name]=bA.align,hA},{});for(d=0;d<g.length;d+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:d,data:g[d]},this);var tA=l.call(this,g[d],j);for(Q=0;Q<C.length;Q+=1){var fA=g[d][C[Q]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:d,col:Q,data:fA},this),a.call(this,new i(c,h,j[C[Q]],tA,fA,d+2,uA[C[Q]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=h,this};var l=function(c,h){var g=this.internal.__cell__.padding,B=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(c).map(function(d){var L=c[d];return this.splitTextToSize(L.hasOwnProperty("text")?L.text:L,h[d]-g-g)},this).map(function(d){return this.getLineHeightFactor()*d.length*B/w+g+g},this).reduce(function(d,L){return Math.max(d,L)},0)};e.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,h){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var B=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(B[0],B[1],B[2],B[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){g=this.internal.__cell__.tableHeaderRow[d].clone(),h&&(g.y=this.internal.__cell__.margins.top||0,w.push(g)),g.lineNumber=c;var L=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,g),this.setTextColor(L)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),t=!1}}(WA.API);var Sd={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Nd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],eu=Hd(Nd),Dd=[100,200,300,400,500,600,700,800,900],nw=Hd(Dd);function tu(e){var A=e.family.replace(/"|'/g,"").toLowerCase(),t=function(i){return Sd[i=i||"normal"]?i:"normal"}(e.style),r=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(e.weight),n=function(i){return typeof eu[i=i||"normal"]=="number"?i:"normal"}(e.stretch);return{family:A,style:t,weight:r,stretch:n,src:e.src||[],ref:e.ref||{name:A,style:[n,t,r].join(" ")}}}function Zf(e,A,t,r){var n;for(n=t;n>=0&&n<A.length;n+=r)if(e[A[n]])return e[A[n]];for(n=t;n>=0&&n<A.length;n-=r)if(e[A[n]])return e[A[n]]}var iw={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},$f={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ah(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function sw(e,A,t){for(var r=(t=t||{}).defaultFontFamily||"times",n=Object.assign({},iw,t.genericFontFamilies||{}),i=null,a=null,l=0;l<A.length;++l)if(n[(i=tu(A[l])).family]&&(i.family=n[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[r]))throw new Error("Could not find a font-family for the rule '"+Ah(i)+"' and default family '"+r+"'.");if(a=function(c,h){if(h[c])return h[c];var g=eu[c],B=g<=eu.normal?-1:1,w=Zf(h,Nd,g,B);if(!w)throw new Error("Could not find a matching font-stretch value for "+c);return w}(i.stretch,a),a=function(c,h){if(h[c])return h[c];for(var g=Sd[c],B=0;B<g.length;++B)if(h[g[B]])return h[g[B]];throw new Error("Could not find a matching font-style for "+c)}(i.style,a),!(a=function(c,h){if(h[c])return h[c];if(c===400&&h[500])return h[500];if(c===500&&h[400])return h[400];var g=nw[c],B=Zf(h,Dd,g,c<400?-1:1);if(!B)throw new Error("Could not find a matching font-weight for value "+c);return B}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Ah(i)+"'.");return a}function eh(e){return e.trimLeft()}function aw(e,A){for(var t=0;t<e.length;){if(e.charAt(t)===A)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function ow(e){var A=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],e.substring(A[0].length)]}var wo,th,rh,mc=["times"];(function(e){var A,t,r,n,i,a,l,c,h,g=function(b){return b=b||{},this.isStrokeTransparent=b.isStrokeTransparent||!1,this.strokeOpacity=b.strokeOpacity||1,this.strokeStyle=b.strokeStyle||"#000000",this.fillStyle=b.fillStyle||"#000000",this.isFillTransparent=b.isFillTransparent||!1,this.fillOpacity=b.fillOpacity||1,this.font=b.font||"10px sans-serif",this.textBaseline=b.textBaseline||"alphabetic",this.textAlign=b.textAlign||"left",this.lineWidth=b.lineWidth||1,this.lineJoin=b.lineJoin||"miter",this.lineCap=b.lineCap||"butt",this.path=b.path||[],this.transform=b.transform!==void 0?b.transform.clone():new c,this.globalCompositeOperation=b.globalCompositeOperation||"normal",this.globalAlpha=b.globalAlpha||1,this.clip_path=b.clip_path||[],this.currentPoint=b.currentPoint||new a,this.miterLimit=b.miterLimit||10,this.lastPoint=b.lastPoint||new a,this.lineDashOffset=b.lineDashOffset||0,this.lineDash=b.lineDash||[],this.margin=b.margin||[0,0,0,0],this.prevPageLastElemOffset=b.prevPageLastElemOffset||0,this.ignoreClearRect=typeof b.ignoreClearRect!="boolean"||b.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new B(this),A=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,h=new g}]);var B=function(b){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var T=b;Object.defineProperty(this,"pdf",{get:function(){return T}});var U=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return U},set:function(BA){U=!!BA}});var O=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return O},set:function(BA){O=!!BA}});var G=0;Object.defineProperty(this,"posX",{get:function(){return G},set:function(BA){isNaN(BA)||(G=BA)}});var AA=0;Object.defineProperty(this,"posY",{get:function(){return AA},set:function(BA){isNaN(BA)||(AA=BA)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(BA){var K;typeof BA=="number"?K=[BA,BA,BA,BA]:((K=new Array(4))[0]=BA[0],K[1]=BA.length>=2?BA[1]:K[0],K[2]=BA.length>=3?BA[2]:K[0],K[3]=BA.length>=4?BA[3]:K[1]),h.margin=K}});var sA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return sA},set:function(BA){sA=BA}});var cA=0;Object.defineProperty(this,"lastBreak",{get:function(){return cA},set:function(BA){cA=BA}});var yA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return yA},set:function(BA){yA=BA}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(BA){BA instanceof g&&(h=BA)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(BA){h.path=BA}});var FA=[];Object.defineProperty(this,"ctxStack",{get:function(){return FA},set:function(BA){FA=BA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(BA){var K;K=w(BA),this.ctx.fillStyle=K.style,this.ctx.isFillTransparent=K.a===0,this.ctx.fillOpacity=K.a,this.pdf.setFillColor(K.r,K.g,K.b,{a:K.a}),this.pdf.setTextColor(K.r,K.g,K.b,{a:K.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(BA){var K=w(BA);this.ctx.strokeStyle=K.style,this.ctx.isStrokeTransparent=K.a===0,this.ctx.strokeOpacity=K.a,K.a===0?this.pdf.setDrawColor(255,255,255):(K.a,this.pdf.setDrawColor(K.r,K.g,K.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(BA){["butt","round","square"].indexOf(BA)!==-1&&(this.ctx.lineCap=BA,this.pdf.setLineCap(BA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(BA){isNaN(BA)||(this.ctx.lineWidth=BA,this.pdf.setLineWidth(BA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(BA){["bevel","round","miter"].indexOf(BA)!==-1&&(this.ctx.lineJoin=BA,this.pdf.setLineJoin(BA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(BA){isNaN(BA)||(this.ctx.miterLimit=BA,this.pdf.setMiterLimit(BA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(BA){this.ctx.textBaseline=BA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(BA){["right","end","center","left","start"].indexOf(BA)!==-1&&(this.ctx.textAlign=BA)}});var HA=null;function EA(BA,K){if(HA===null){var te=function(RA){var QA=[];return Object.keys(RA).forEach(function(UA){RA[UA].forEach(function(NA){var _A=null;switch(NA){case"bold":_A={family:UA,weight:"bold"};break;case"italic":_A={family:UA,style:"italic"};break;case"bolditalic":_A={family:UA,weight:"bold",style:"italic"};break;case"":case"normal":_A={family:UA}}_A!==null&&(_A.ref={name:UA,style:NA},QA.push(_A))})}),QA}(BA.getFontList());HA=function(RA){for(var QA={},UA=0;UA<RA.length;++UA){var NA=tu(RA[UA]),_A=NA.family,VA=NA.stretch,ZA=NA.style,ie=NA.weight;QA[_A]=QA[_A]||{},QA[_A][VA]=QA[_A][VA]||{},QA[_A][VA][ZA]=QA[_A][VA][ZA]||{},QA[_A][VA][ZA][ie]=NA}return QA}(te.concat(K))}return HA}var JA=null;Object.defineProperty(this,"fontFaces",{get:function(){return JA},set:function(BA){HA=null,JA=BA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(BA){var K;if(this.ctx.font=BA,(K=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(BA))!==null){var te=K[1];K[2];var RA=K[3],QA=K[4];K[5];var UA=K[6],NA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(QA)[2];QA=Math.floor(NA==="px"?parseFloat(QA)*this.pdf.internal.scaleFactor:NA==="em"?parseFloat(QA)*this.pdf.getFontSize():parseFloat(QA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(QA);var _A=function(zA){var ae,DA,pt=[],he=zA.trim();if(he==="")return mc;if(he in $f)return[$f[he]];for(;he!=="";){switch(DA=null,ae=(he=eh(he)).charAt(0)){case'"':case"'":DA=aw(he.substring(1),ae);break;default:DA=ow(he)}if(DA===null||(pt.push(DA[0]),(he=eh(DA[1]))!==""&&he.charAt(0)!==","))return mc;he=he.replace(/^,/,"")}return pt}(UA);if(this.fontFaces){var VA=sw(EA(this.pdf,this.fontFaces),_A.map(function(zA){return{family:zA,stretch:"normal",weight:RA,style:te}}));this.pdf.setFont(VA.ref.name,VA.ref.style)}else{var ZA="";(RA==="bold"||parseInt(RA,10)>=700||te==="bold")&&(ZA="bold"),te==="italic"&&(ZA+="italic"),ZA.length===0&&(ZA="normal");for(var ie="",se={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"},ue=0;ue<_A.length;ue++){if(this.pdf.internal.getFont(_A[ue],ZA,{noFallback:!0,disableWarning:!0})!==void 0){ie=_A[ue];break}if(ZA==="bolditalic"&&this.pdf.internal.getFont(_A[ue],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ie=_A[ue],ZA="bold";else if(this.pdf.internal.getFont(_A[ue],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ie=_A[ue],ZA="normal";break}}if(ie===""){for(var Ce=0;Ce<_A.length;Ce++)if(se[_A[Ce]]){ie=se[_A[Ce]];break}}ie=ie===""?"Times":ie,this.pdf.setFont(ie,ZA)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(BA){this.ctx.globalCompositeOperation=BA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(BA){this.ctx.globalAlpha=BA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(BA){this.ctx.lineDashOffset=BA,bA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(BA){this.ctx.lineDash=BA,bA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(BA){this.ctx.ignoreClearRect=!!BA}})};B.prototype.setLineDash=function(b){this.lineDash=b},B.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},B.prototype.fill=function(){Y.call(this,"fill",!1)},B.prototype.stroke=function(){Y.call(this,"stroke",!1)},B.prototype.beginPath=function(){this.path=[{type:"begin"}]},B.prototype.moveTo=function(b,T){if(isNaN(b)||isNaN(T))throw Le.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var U=this.ctx.transform.applyToPoint(new a(b,T));this.path.push({type:"mt",x:U.x,y:U.y}),this.ctx.lastPoint=new a(b,T)},B.prototype.closePath=function(){var b=new a(0,0),T=0;for(T=this.path.length-1;T!==-1;T--)if(this.path[T].type==="begin"&&me(this.path[T+1])==="object"&&typeof this.path[T+1].x=="number"){b=new a(this.path[T+1].x,this.path[T+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(b.x,b.y)},B.prototype.lineTo=function(b,T){if(isNaN(b)||isNaN(T))throw Le.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var U=this.ctx.transform.applyToPoint(new a(b,T));this.path.push({type:"lt",x:U.x,y:U.y}),this.ctx.lastPoint=new a(U.x,U.y)},B.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Y.call(this,null,!0)},B.prototype.quadraticCurveTo=function(b,T,U,O){if(isNaN(U)||isNaN(O)||isNaN(b)||isNaN(T))throw Le.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var G=this.ctx.transform.applyToPoint(new a(U,O)),AA=this.ctx.transform.applyToPoint(new a(b,T));this.path.push({type:"qct",x1:AA.x,y1:AA.y,x:G.x,y:G.y}),this.ctx.lastPoint=new a(G.x,G.y)},B.prototype.bezierCurveTo=function(b,T,U,O,G,AA){if(isNaN(G)||isNaN(AA)||isNaN(b)||isNaN(T)||isNaN(U)||isNaN(O))throw Le.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var sA=this.ctx.transform.applyToPoint(new a(G,AA)),cA=this.ctx.transform.applyToPoint(new a(b,T)),yA=this.ctx.transform.applyToPoint(new a(U,O));this.path.push({type:"bct",x1:cA.x,y1:cA.y,x2:yA.x,y2:yA.y,x:sA.x,y:sA.y}),this.ctx.lastPoint=new a(sA.x,sA.y)},B.prototype.arc=function(b,T,U,O,G,AA){if(isNaN(b)||isNaN(T)||isNaN(U)||isNaN(O)||isNaN(G))throw Le.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(AA=!!AA,!this.ctx.transform.isIdentity){var sA=this.ctx.transform.applyToPoint(new a(b,T));b=sA.x,T=sA.y;var cA=this.ctx.transform.applyToPoint(new a(0,U)),yA=this.ctx.transform.applyToPoint(new a(0,0));U=Math.sqrt(Math.pow(cA.x-yA.x,2)+Math.pow(cA.y-yA.y,2))}Math.abs(G-O)>=2*Math.PI&&(O=0,G=2*Math.PI),this.path.push({type:"arc",x:b,y:T,radius:U,startAngle:O,endAngle:G,counterclockwise:AA})},B.prototype.arcTo=function(b,T,U,O,G){throw new Error("arcTo not implemented.")},B.prototype.rect=function(b,T,U,O){if(isNaN(b)||isNaN(T)||isNaN(U)||isNaN(O))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(b,T),this.lineTo(b+U,T),this.lineTo(b+U,T+O),this.lineTo(b,T+O),this.lineTo(b,T),this.lineTo(b+U,T),this.lineTo(b,T)},B.prototype.fillRect=function(b,T,U,O){if(isNaN(b)||isNaN(T)||isNaN(U)||isNaN(O))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var G={};this.lineCap!=="butt"&&(G.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(G.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(b,T,U,O),this.fill(),G.hasOwnProperty("lineCap")&&(this.lineCap=G.lineCap),G.hasOwnProperty("lineJoin")&&(this.lineJoin=G.lineJoin)}},B.prototype.strokeRect=function(b,T,U,O){if(isNaN(b)||isNaN(T)||isNaN(U)||isNaN(O))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");L.call(this)||(this.beginPath(),this.rect(b,T,U,O),this.stroke())},B.prototype.clearRect=function(b,T,U,O){if(isNaN(b)||isNaN(T)||isNaN(U)||isNaN(O))throw Le.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(b,T,U,O))},B.prototype.save=function(b){b=typeof b!="boolean"||b;for(var T=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(T),b){this.ctx.fontSize=this.pdf.internal.getFontSize();var O=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=O}},B.prototype.restore=function(b){b=typeof b!="boolean"||b;for(var T=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(T),b&&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)},B.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(b){var T,U,O,G;if(b.isCanvasGradient===!0&&(b=b.getColor()),!b)return{r:0,g:0,b:0,a:0,style:b};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(b))T=0,U=0,O=0,G=0;else{var AA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(b);if(AA!==null)T=parseInt(AA[1]),U=parseInt(AA[2]),O=parseInt(AA[3]),G=1;else if((AA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(b))!==null)T=parseInt(AA[1]),U=parseInt(AA[2]),O=parseInt(AA[3]),G=parseFloat(AA[4]);else{if(G=1,typeof b=="string"&&b.charAt(0)!=="#"){var sA=new Ud(b);b=sA.ok?sA.toHex():"#000000"}b.length===4?(T=b.substring(1,2),T+=T,U=b.substring(2,3),U+=U,O=b.substring(3,4),O+=O):(T=b.substring(1,3),U=b.substring(3,5),O=b.substring(5,7)),T=parseInt(T,16),U=parseInt(U,16),O=parseInt(O,16)}}return{r:T,g:U,b:O,a:G,style:b}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},L=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};B.prototype.fillText=function(b,T,U,O){if(isNaN(T)||isNaN(U)||typeof b!="string")throw Le.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(O=isNaN(O)?void 0:O,!d.call(this)){var G=tA(this.ctx.transform.rotation),AA=this.ctx.transform.scaleX;S.call(this,{text:b,x:T,y:U,scale:AA,angle:G,align:this.textAlign,maxWidth:O})}},B.prototype.strokeText=function(b,T,U,O){if(isNaN(T)||isNaN(U)||typeof b!="string")throw Le.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!L.call(this)){O=isNaN(O)?void 0:O;var G=tA(this.ctx.transform.rotation),AA=this.ctx.transform.scaleX;S.call(this,{text:b,x:T,y:U,scale:AA,renderingMode:"stroke",angle:G,align:this.textAlign,maxWidth:O})}},B.prototype.measureText=function(b){if(typeof b!="string")throw Le.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var T=this.pdf,U=this.pdf.internal.scaleFactor,O=T.internal.getFontSize(),G=T.getStringUnitWidth(b)*O/T.internal.scaleFactor,AA=function(sA){var cA=(sA=sA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return cA}}),this};return new AA({width:G*=Math.round(96*U/72*1e4)/1e4})},B.prototype.scale=function(b,T){if(isNaN(b)||isNaN(T))throw Le.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var U=new c(b,0,0,T,0,0);this.ctx.transform=this.ctx.transform.multiply(U)},B.prototype.rotate=function(b){if(isNaN(b))throw Le.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var T=new c(Math.cos(b),Math.sin(b),-Math.sin(b),Math.cos(b),0,0);this.ctx.transform=this.ctx.transform.multiply(T)},B.prototype.translate=function(b,T){if(isNaN(b)||isNaN(T))throw Le.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var U=new c(1,0,0,1,b,T);this.ctx.transform=this.ctx.transform.multiply(U)},B.prototype.transform=function(b,T,U,O,G,AA){if(isNaN(b)||isNaN(T)||isNaN(U)||isNaN(O)||isNaN(G)||isNaN(AA))throw Le.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var sA=new c(b,T,U,O,G,AA);this.ctx.transform=this.ctx.transform.multiply(sA)},B.prototype.setTransform=function(b,T,U,O,G,AA){b=isNaN(b)?1:b,T=isNaN(T)?0:T,U=isNaN(U)?0:U,O=isNaN(O)?1:O,G=isNaN(G)?0:G,AA=isNaN(AA)?0:AA,this.ctx.transform=new c(b,T,U,O,G,AA)};var Q=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};B.prototype.drawImage=function(b,T,U,O,G,AA,sA,cA,yA){var FA=this.pdf.getImageProperties(b),HA=1,EA=1,JA=1,BA=1;O!==void 0&&cA!==void 0&&(JA=cA/O,BA=yA/G,HA=FA.width/O*cA/O,EA=FA.height/G*yA/G),AA===void 0&&(AA=T,sA=U,T=0,U=0),O!==void 0&&cA===void 0&&(cA=O,yA=G),O===void 0&&cA===void 0&&(cA=FA.width,yA=FA.height);for(var K,te=this.ctx.transform.decompose(),RA=tA(te.rotate.shx),QA=new c,UA=(QA=(QA=(QA=QA.multiply(te.translate)).multiply(te.skew)).multiply(te.scale)).applyToRectangle(new l(AA-T*JA,sA-U*BA,O*HA,G*EA)),NA=H.call(this,UA),_A=[],VA=0;VA<NA.length;VA+=1)_A.indexOf(NA[VA])===-1&&_A.push(NA[VA]);if(V(_A),this.autoPaging)for(var ZA=_A[0],ie=_A[_A.length-1],se=ZA;se<ie+1;se++){this.pdf.setPage(se);var ue=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ce=se===1?this.posY+this.margin[0]:this.margin[0],zA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ae=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],DA=se===1?0:zA+(se-2)*ae;if(this.ctx.clip_path.length!==0){var pt=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(K,this.posX+this.margin[3],-DA+Ce+this.ctx.prevPageLastElemOffset),j.call(this,"fill",!0),this.path=pt}var he=JSON.parse(JSON.stringify(UA));he=_([he],this.posX+this.margin[3],-DA+Ce+this.ctx.prevPageLastElemOffset)[0];var sr=(se>ZA||se<ie)&&Q.call(this);sr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ue,ae,null).clip().discardPath()),this.pdf.addImage(b,"JPEG",he.x,he.y,he.w,he.h,null,null,RA),sr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(b,"JPEG",UA.x,UA.y,UA.w,UA.h,null,null,RA)};var H=function(b,T,U){var O=[];T=T||this.pdf.internal.pageSize.width,U=U||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var G=this.posY+this.ctx.prevPageLastElemOffset;switch(b.type){default:case"mt":case"lt":O.push(Math.floor((b.y+G)/U)+1);break;case"arc":O.push(Math.floor((b.y+G-b.radius)/U)+1),O.push(Math.floor((b.y+G+b.radius)/U)+1);break;case"qct":var AA=fA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x,b.y);O.push(Math.floor((AA.y+G)/U)+1),O.push(Math.floor((AA.y+AA.h+G)/U)+1);break;case"bct":var sA=hA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x2,b.y2,b.x,b.y);O.push(Math.floor((sA.y+G)/U)+1),O.push(Math.floor((sA.y+sA.h+G)/U)+1);break;case"rect":O.push(Math.floor((b.y+G)/U)+1),O.push(Math.floor((b.y+b.h+G)/U)+1)}for(var cA=0;cA<O.length;cA+=1)for(;this.pdf.internal.getNumberOfPages()<O[cA];)C.call(this);return O},C=function(){var b=this.fillStyle,T=this.strokeStyle,U=this.font,O=this.lineCap,G=this.lineWidth,AA=this.lineJoin;this.pdf.addPage(),this.fillStyle=b,this.strokeStyle=T,this.font=U,this.lineCap=O,this.lineWidth=G,this.lineJoin=AA},_=function(b,T,U){for(var O=0;O<b.length;O++)switch(b[O].type){case"bct":b[O].x2+=T,b[O].y2+=U;case"qct":b[O].x1+=T,b[O].y1+=U;case"mt":case"lt":case"arc":default:b[O].x+=T,b[O].y+=U}return b},V=function(b){return b.sort(function(T,U){return T-U})},Y=function(b,T){for(var U,O,G=this.fillStyle,AA=this.strokeStyle,sA=this.lineCap,cA=this.lineWidth,yA=Math.abs(cA*this.ctx.transform.scaleX),FA=this.lineJoin,HA=JSON.parse(JSON.stringify(this.path)),EA=JSON.parse(JSON.stringify(this.path)),JA=[],BA=0;BA<EA.length;BA++)if(EA[BA].x!==void 0)for(var K=H.call(this,EA[BA]),te=0;te<K.length;te+=1)JA.indexOf(K[te])===-1&&JA.push(K[te]);for(var RA=0;RA<JA.length;RA++)for(;this.pdf.internal.getNumberOfPages()<JA[RA];)C.call(this);if(V(JA),this.autoPaging)for(var QA=JA[0],UA=JA[JA.length-1],NA=QA;NA<UA+1;NA++){this.pdf.setPage(NA),this.fillStyle=G,this.strokeStyle=AA,this.lineCap=sA,this.lineWidth=yA,this.lineJoin=FA;var _A=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],VA=NA===1?this.posY+this.margin[0]:this.margin[0],ZA=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],se=NA===1?0:ZA+(NA-2)*ie;if(this.ctx.clip_path.length!==0){var ue=this.path;U=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(U,this.posX+this.margin[3],-se+VA+this.ctx.prevPageLastElemOffset),j.call(this,b,!0),this.path=ue}if(O=JSON.parse(JSON.stringify(HA)),this.path=_(O,this.posX+this.margin[3],-se+VA+this.ctx.prevPageLastElemOffset),T===!1||NA===0){var Ce=(NA>QA||NA<UA)&&Q.call(this);Ce&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_A,ie,null).clip().discardPath()),j.call(this,b,T),Ce&&this.pdf.restoreGraphicsState()}this.lineWidth=cA}else this.lineWidth=yA,j.call(this,b,T),this.lineWidth=cA;this.path=HA},j=function(b,T){if((b!=="stroke"||T||!L.call(this))&&(b==="stroke"||T||!d.call(this))){for(var U,O,G=[],AA=this.path,sA=0;sA<AA.length;sA++){var cA=AA[sA];switch(cA.type){case"begin":G.push({begin:!0});break;case"close":G.push({close:!0});break;case"mt":G.push({start:cA,deltas:[],abs:[]});break;case"lt":var yA=G.length;if(AA[sA-1]&&!isNaN(AA[sA-1].x)&&(U=[cA.x-AA[sA-1].x,cA.y-AA[sA-1].y],yA>0)){for(;yA>=0;yA--)if(G[yA-1].close!==!0&&G[yA-1].begin!==!0){G[yA-1].deltas.push(U),G[yA-1].abs.push(cA);break}}break;case"bct":U=[cA.x1-AA[sA-1].x,cA.y1-AA[sA-1].y,cA.x2-AA[sA-1].x,cA.y2-AA[sA-1].y,cA.x-AA[sA-1].x,cA.y-AA[sA-1].y],G[G.length-1].deltas.push(U);break;case"qct":var FA=AA[sA-1].x+2/3*(cA.x1-AA[sA-1].x),HA=AA[sA-1].y+2/3*(cA.y1-AA[sA-1].y),EA=cA.x+2/3*(cA.x1-cA.x),JA=cA.y+2/3*(cA.y1-cA.y),BA=cA.x,K=cA.y;U=[FA-AA[sA-1].x,HA-AA[sA-1].y,EA-AA[sA-1].x,JA-AA[sA-1].y,BA-AA[sA-1].x,K-AA[sA-1].y],G[G.length-1].deltas.push(U);break;case"arc":G.push({deltas:[],abs:[],arc:!0}),Array.isArray(G[G.length-1].abs)&&G[G.length-1].abs.push(cA)}}O=T?null:b==="stroke"?"stroke":"fill";for(var te=!1,RA=0;RA<G.length;RA++)if(G[RA].arc)for(var QA=G[RA].abs,UA=0;UA<QA.length;UA++){var NA=QA[UA];NA.type==="arc"?k.call(this,NA.x,NA.y,NA.radius,NA.startAngle,NA.endAngle,NA.counterclockwise,void 0,T,!te):R.call(this,NA.x,NA.y),te=!0}else if(G[RA].close===!0)this.pdf.internal.out("h"),te=!1;else if(G[RA].begin!==!0){var _A=G[RA].start.x,VA=G[RA].start.y;M.call(this,G[RA].deltas,_A,VA),te=!0}O&&q.call(this,O),T&&nA.call(this)}},Z=function(b){var T=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,U=T*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return b-U;case"top":return b+T-U;case"hanging":return b+T-2*U;case"middle":return b+T/2-U;case"ideographic":return b;case"alphabetic":default:return b}},J=function(b){return b+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};B.prototype.createLinearGradient=function(){var b=function(){};return b.colorStops=[],b.addColorStop=function(T,U){this.colorStops.push([T,U])},b.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},b.isCanvasGradient=!0,b},B.prototype.createPattern=function(){return this.createLinearGradient()},B.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(b,T,U,O,G,AA,sA,cA,yA){for(var FA=iA.call(this,U,O,G,AA),HA=0;HA<FA.length;HA++){var EA=FA[HA];HA===0&&(yA?I.call(this,EA.x1+b,EA.y1+T):R.call(this,EA.x1+b,EA.y1+T)),lA.call(this,b,T,EA.x2,EA.y2,EA.x3,EA.y3,EA.x4,EA.y4)}cA?nA.call(this):q.call(this,sA)},q=function(b){switch(b){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},nA=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(b,T){this.pdf.internal.out(t(b)+" "+r(T)+" m")},S=function(b){var T;switch(b.align){case"right":case"end":T="right";break;case"center":T="center";break;case"left":case"start":default:T="left"}var U=this.pdf.getTextDimensions(b.text),O=Z.call(this,b.y),G=J.call(this,O)-U.h,AA=this.ctx.transform.applyToPoint(new a(b.x,O)),sA=this.ctx.transform.decompose(),cA=new c;cA=(cA=(cA=cA.multiply(sA.translate)).multiply(sA.skew)).multiply(sA.scale);for(var yA,FA,HA,EA=this.ctx.transform.applyToRectangle(new l(b.x,O,U.w,U.h)),JA=cA.applyToRectangle(new l(b.x,G,U.w,U.h)),BA=H.call(this,JA),K=[],te=0;te<BA.length;te+=1)K.indexOf(BA[te])===-1&&K.push(BA[te]);if(V(K),this.autoPaging)for(var RA=K[0],QA=K[K.length-1],UA=RA;UA<QA+1;UA++){this.pdf.setPage(UA);var NA=UA===1?this.posY+this.margin[0]:this.margin[0],_A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],VA=this.pdf.internal.pageSize.height-this.margin[2],ZA=VA-this.margin[0],ie=this.pdf.internal.pageSize.width-this.margin[1],se=ie-this.margin[3],ue=UA===1?0:_A+(UA-2)*ZA;if(this.ctx.clip_path.length!==0){var Ce=this.path;yA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(yA,this.posX+this.margin[3],-1*ue+NA),j.call(this,"fill",!0),this.path=Ce}var zA=_([JSON.parse(JSON.stringify(JA))],this.posX+this.margin[3],-ue+NA+this.ctx.prevPageLastElemOffset)[0];b.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*b.scale),HA=this.lineWidth,this.lineWidth=HA*b.scale);var ae=this.autoPaging!=="text";if(ae||zA.y+zA.h<=VA){if(ae||zA.y>=NA&&zA.x<=ie){var DA=ae?b.text:this.pdf.splitTextToSize(b.text,b.maxWidth||ie-zA.x)[0],pt=_([JSON.parse(JSON.stringify(EA))],this.posX+this.margin[3],-ue+NA+this.ctx.prevPageLastElemOffset)[0],he=ae&&(UA>RA||UA<QA)&&Q.call(this);he&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],se,ZA,null).clip().discardPath()),this.pdf.text(DA,pt.x,pt.y,{angle:b.angle,align:T,renderingMode:b.renderingMode}),he&&this.pdf.restoreGraphicsState()}}else zA.y<VA&&(this.ctx.prevPageLastElemOffset+=VA-zA.y);b.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=HA)}else b.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*b.scale),HA=this.lineWidth,this.lineWidth=HA*b.scale),this.pdf.text(b.text,AA.x+this.posX,AA.y+this.posY,{angle:b.angle,align:T,renderingMode:b.renderingMode,maxWidth:b.maxWidth}),b.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=HA)},R=function(b,T,U,O){U=U||0,O=O||0,this.pdf.internal.out(t(b+U)+" "+r(T+O)+" l")},M=function(b,T,U){return this.pdf.lines(b,T,U,null,null)},lA=function(b,T,U,O,G,AA,sA,cA){this.pdf.internal.out([A(n(U+b)),A(i(O+T)),A(n(G+b)),A(i(AA+T)),A(n(sA+b)),A(i(cA+T)),"c"].join(" "))},iA=function(b,T,U,O){for(var G=2*Math.PI,AA=Math.PI/2;T>U;)T-=G;var sA=Math.abs(U-T);sA<G&&O&&(sA=G-sA);for(var cA=[],yA=O?-1:1,FA=T;sA>1e-5;){var HA=FA+yA*Math.min(sA,AA);cA.push(uA.call(this,b,FA,HA)),sA-=Math.abs(HA-FA),FA=HA}return cA},uA=function(b,T,U){var O=(U-T)/2,G=b*Math.cos(O),AA=b*Math.sin(O),sA=G,cA=-AA,yA=sA*sA+cA*cA,FA=yA+sA*G+cA*AA,HA=4/3*(Math.sqrt(2*yA*FA)-FA)/(sA*AA-cA*G),EA=sA-HA*cA,JA=cA+HA*sA,BA=EA,K=-JA,te=O+T,RA=Math.cos(te),QA=Math.sin(te);return{x1:b*Math.cos(T),y1:b*Math.sin(T),x2:EA*RA-JA*QA,y2:EA*QA+JA*RA,x3:BA*RA-K*QA,y3:BA*QA+K*RA,x4:b*Math.cos(U),y4:b*Math.sin(U)}},tA=function(b){return 180*b/Math.PI},fA=function(b,T,U,O,G,AA){var sA=b+.5*(U-b),cA=T+.5*(O-T),yA=G+.5*(U-G),FA=AA+.5*(O-AA),HA=Math.min(b,G,sA,yA),EA=Math.max(b,G,sA,yA),JA=Math.min(T,AA,cA,FA),BA=Math.max(T,AA,cA,FA);return new l(HA,JA,EA-HA,BA-JA)},hA=function(b,T,U,O,G,AA,sA,cA){var yA,FA,HA,EA,JA,BA,K,te,RA,QA,UA,NA,_A,VA,ZA=U-b,ie=O-T,se=G-U,ue=AA-O,Ce=sA-G,zA=cA-AA;for(FA=0;FA<41;FA++)RA=(K=(HA=b+(yA=FA/40)*ZA)+yA*((JA=U+yA*se)-HA))+yA*(JA+yA*(G+yA*Ce-JA)-K),QA=(te=(EA=T+yA*ie)+yA*((BA=O+yA*ue)-EA))+yA*(BA+yA*(AA+yA*zA-BA)-te),FA==0?(UA=RA,NA=QA,_A=RA,VA=QA):(UA=Math.min(UA,RA),NA=Math.min(NA,QA),_A=Math.max(_A,RA),VA=Math.max(VA,QA));return new l(Math.round(UA),Math.round(NA),Math.round(_A-UA),Math.round(VA-NA))},bA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var b,T,U=(b=this.ctx.lineDash,T=this.ctx.lineDashOffset,JSON.stringify({lineDash:b,lineDashOffset:T}));this.prevLineDash!==U&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=U)}}})(WA.API),function(e){var A=function(i){var a,l,c,h,g,B,w,d,L,Q;for(l=[],c=0,h=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;h>c;c+=4)(g=(i.charCodeAt(c)<<24)+(i.charCodeAt(c+1)<<16)+(i.charCodeAt(c+2)<<8)+i.charCodeAt(c+3))!==0?(B=(g=((g=((g=((g=(g-(Q=g%85))/85)-(L=g%85))/85)-(d=g%85))/85)-(w=g%85))/85)%85,l.push(B+33,w+33,d+33,L+33,Q+33)):l.push(122);return function(H,C){for(var _=C;_>0;_--)H.pop()}(l,a.length),String.fromCharCode.apply(String,l)+"~>"},t=function(i){var a,l,c,h,g,B=String,w="length",d=255,L="charCodeAt",Q="slice",H="replace";for(i[Q](-2),i=i[Q](0,-2)[H](/\s/g,"")[H]("z","!!!!!"),c=[],h=0,g=(i+=a="uuuuu"[Q](i[w]%5||5))[w];g>h;h+=5)l=52200625*(i[L](h)-33)+614125*(i[L](h+1)-33)+7225*(i[L](h+2)-33)+85*(i[L](h+3)-33)+(i[L](h+4)-33),c.push(d&l>>24,d&l>>16,d&l>>8,d&l);return function(C,_){for(var V=_;V>0;V--)C.pop()}(c,a[w]),B.fromCharCode.apply(B,c)},r=function(i){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),a.test(i)===!1)return"";for(var l="",c=0;c<i.length;c+=2)l+=String.fromCharCode("0x"+(i[c]+i[c+1]));return l},n=function(i){for(var a=new Uint8Array(i.length),l=i.length;l--;)a[l]=i.charCodeAt(l);return i=(a=zc(a)).reduce(function(c,h){return c+String.fromCharCode(h)},"")};e.processDataByFilters=function(i,a){var l=0,c=i||"",h=[];for(typeof(a=a||[])=="string"&&(a=[a]),l=0;l<a.length;l+=1)switch(a[l]){case"ASCII85Decode":case"/ASCII85Decode":c=t(c),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=A(c),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=r(c),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=c.split("").map(function(g){return("0"+g.charCodeAt().toString(16)).slice(-2)}).join("")+">",h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=n(c),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[l]+'" is not implemented')}return{data:c,reverseChain:h.reverse().join(" ")}}}(WA.API),function(e){e.loadFile=function(A,t,r){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var l=void 0;try{l=function(c,h,g){var B=new XMLHttpRequest,w=0,d=function(L){var Q=L.length,H=[],C=String.fromCharCode;for(w=0;w<Q;w+=1)H.push(C(255&L.charCodeAt(w)));return H.join("")};if(B.open("GET",c,!h),B.overrideMimeType("text/plain; charset=x-user-defined"),h===!1&&(B.onload=function(){B.status===200?g(d(this.responseText)):g(void 0)}),B.send(null),h&&B.status===200)return d(B.responseText)}(n,i,a)}catch{}return l}(A,t,r)},e.loadImageFile=e.loadFile}(WA.API),function(e){function A(){return(XA.html2canvas?Promise.resolve(XA.html2canvas):yc(()=>Promise.resolve().then(()=>E5),void 0)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function t(){return(XA.DOMPurify?Promise.resolve(XA.DOMPurify):yc(()=>import("./purify.es.aGzT-_H7.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var l=me(a);return l==="undefined"?"undefined":l==="string"||a instanceof String?"string":l==="number"||a instanceof Number?"number":l==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":l==="object"?"object":"unknown"},n=function(a,l){var c=document.createElement(a);for(var h in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[h]=l.style[h];return c},i=function a(l){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),h=a.convert(Promise.resolve(),c);return h=(h=h.setProgress(1,a,1,[a])).set(l)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(a,l){return a.__proto__=l||i.prototype,a},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(a,l){return this.then(function(){switch(l=l||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(t).then(function(c){return this.set({src:n("div",{innerHTML:a,dompurify:c})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},i.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={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},l=function c(h,g){for(var B=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),w=h.firstChild;w;w=w.nextSibling)g!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||B.appendChild(c(w,g));return h.nodeType===1&&(h.nodeName==="CANVAS"?(B.width=h.width,B.height=h.height,B.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(B.value=h.value),B.addEventListener("load",function(){B.scrollTop=h.scrollTop,B.scrollLeft=h.scrollLeft},!0)),B}(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(a.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:a}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(l){var c=this.opt.jsPDF,h=this.opt.fontFaces,g=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,B=Object.assign({async:!0,allowTaint:!0,scale:g,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete B.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=h,h)for(var w=0;w<h.length;++w){var d=h[w],L=d.src.find(function(Q){return Q.format==="truetype"});L&&c.addFont(L.url,d.ref.name,d.ref.style)}return B.windowHeight=B.windowHeight||0,B.windowHeight=B.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):B.windowHeight,c.context2d.save(!0),l(this.prop.container,B)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(a,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,l):this.outputPdf(a,l)},i.prototype.outputPdf=function(a,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,l)})},i.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){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 "'+a+'" is not supported.'}})},i.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(a){if(r(a)!=="object")return this;var l=Object.keys(a||{}).map(function(c){if(c in i.template.prop)return function(){this.prop[c]=a[c]};switch(c){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[c]=a[c]}}},this);return this.then(function(){return this.thenList(l)})},i.prototype.get=function(a,l){return this.then(function(){var c=a in i.template.prop?this.prop[a]:this.opt[a];return l?l(c):c})},i.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},i.prototype.setPageSize=function(a){function l(c,h){return Math.floor(c*h/72*96)}return this.then(function(){(a=a||WA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:l(a.inner.width,a.k),height:l(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},i.prototype.setProgress=function(a,l,c,h){return a!=null&&(this.progress.val=a),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,l,c,h){return this.setProgress(a?this.progress.val+a:null,l||null,c?this.progress.n+c:null,h?this.progress.stack.concat(h):null)},i.prototype.then=function(a,l){var c=this;return this.thenCore(a,l,function(h,g){return c.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(B){return c.updateProgress(null,h),B}).then(h,g).then(function(B){return c.updateProgress(1),B})})},i.prototype.thenCore=function(a,l,c){c=c||Promise.prototype.then,a&&(a=a.bind(this)),l&&(l=l.bind(this));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),g=c.call(h,a,l);return i.convert(g,this.__proto__)},i.prototype.thenExternal=function(a,l){return Promise.prototype.then.call(this,a,l)},i.prototype.thenList=function(a){var l=this;return a.forEach(function(c){l=l.thenCore(c)}),l},i.prototype.catch=function(a){a&&(a=a.bind(this));var l=Promise.prototype.catch.call(this,a);return i.convert(l,this)},i.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},i.prototype.error=function(a){return this.then(function(){throw new Error(a)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,WA.getPageSize=function(a,l,c){if(me(a)==="object"){var h=a;a=h.orientation,l=h.unit||l,c=h.format||c}l=l||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var g,B=(""+c).toLowerCase(),w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":g=1;break;case"mm":g=72/25.4;break;case"cm":g=72/2.54;break;case"in":g=72;break;case"px":g=.75;break;case"pc":case"em":g=12;break;case"ex":g=6;break;default:throw"Invalid unit: "+l}var d,L=0,Q=0;if(w.hasOwnProperty(B))L=w[B][1]/g,Q=w[B][0]/g;else try{L=c[1],Q=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",Q>L&&(d=Q,Q=L,L=d);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",L>Q&&(d=Q,Q=L,L=d)}return{width:Q,height:L,unit:l,k:g,orientation:a}},e.html=function(a,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(tu):null;var c=new i(l);return l.worker?c:c.from(a).doCallback()}}(WA.API),WA.API.addJS=function(e){return rh=e,this.internal.events.subscribe("postPutResources",function(){wo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(wo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),th=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+rh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){wo!==void 0&&th!==void 0&&this.internal.out("/Names <</JavaScript "+wo+" 0 R>>")}),this},function(e){var A;e.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],l=r.exec(a);if(l!=null){var c=l[1];t.internal.newObjectDeferredBegin(c,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var h=this.internal.pages.length,g=[];for(i=0;i<h;i++){var B=t.internal.newObject();g.push(B);var w=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var d=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<g.length;i++)t.internal.write("(page_"+(i+1)+")"+g[i]+" 0 R");t.internal.write(" ] >>","endobj"),A=t.internal.newObject(),t.internal.write("<< /Dests "+d+" 0 R"),t.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+A+" 0 R"))}]),e.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 l=this.count=this.count_r({count:0},a);if(l>0&&this.line("/Count "+l),a.options&&a.options.pageNumber){var c=t.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var h=0;h<r.children.length;h++)this.renderItems(r.children[h])},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}}])}(WA.API),function(e){var A=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,r,n,i,a,l){var c,h=this.decode.DCT_DECODE,g=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,(c=function(B){for(var w,d=256*B.charCodeAt(4)+B.charCodeAt(5),L=B.length,Q={width:0,height:0,numcomponents:1},H=4;H<L;H+=2){if(H+=d,A.indexOf(B.charCodeAt(H+1))!==-1){w=256*B.charCodeAt(H+5)+B.charCodeAt(H+6),Q={width:256*B.charCodeAt(H+7)+B.charCodeAt(H+8),height:w,numcomponents:B.charCodeAt(H+9)};break}d=256*B.charCodeAt(H+2)+B.charCodeAt(H+3)}return Q}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}g={data:t,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:h,index:r,alias:n}}return g}}(WA.API);var Oi,vo,nh,ih,sh,lw=function(){var e,A,t;function r(i){var a,l,c,h,g,B,w,d,L,Q,H,C,_,V;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},B=null;;){switch(a=this.readUInt32(),L=(function(){var Y,j;for(j=[],Y=0;Y<4;++Y)j.push(String.fromCharCode(this.data[this.pos++]));return j}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(a);break;case"fcTL":B&&this.animation.frames.push(B),this.pos+=4,B={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},g=this.readUInt16(),h=this.readUInt16()||100,B.delay=1e3*g/h,B.disposeOp=this.data[this.pos++],B.blendOp=this.data[this.pos++],B.data=[];break;case"IDAT":case"fdAT":for(L==="fdAT"&&(this.pos+=4,a-=4),i=(B!=null?B.data:void 0)||this.imgData,C=0;0<=a?C<a:C>a;0<=a?++C:--C)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(c=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>c)throw new Error("More transparent colors than palette size");if((Q=c-this.transparency.indexed.length)>0)for(_=0;0<=Q?_<Q:_>Q;0<=Q?++_:--_)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":w=(H=this.read(a)).indexOf(0),d=String.fromCharCode.apply(String,H.slice(0,w)),this.text[d]=String.fromCharCode.apply(String,H.slice(w+1));break;case"IEND":return B&&this.animation.frames.push(B),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(V=this.colorType)===4||V===6,l=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*l,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var a,l;for(l=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)l.push(this.data[this.pos++]);return l},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var a=this.pixelBitlength/8,l=new Uint8Array(this.width*this.height*a),c=0,h=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function g(B,w,d,L){var Q,H,C,_,V,Y,j,Z,J,k,q,nA,I,S,R,M,lA,iA,uA,tA,fA,hA=Math.ceil((h.width-B)/d),bA=Math.ceil((h.height-w)/L),b=h.width==hA&&h.height==bA;for(S=a*hA,nA=b?l:new Uint8Array(S*bA),Y=i.length,I=0,H=0;I<bA&&c<Y;){switch(i[c++]){case 0:for(_=lA=0;lA<S;_=lA+=1)nA[H++]=i[c++];break;case 1:for(_=iA=0;iA<S;_=iA+=1)Q=i[c++],V=_<a?0:nA[H-a],nA[H++]=(Q+V)%256;break;case 2:for(_=uA=0;uA<S;_=uA+=1)Q=i[c++],C=(_-_%a)/a,R=I&&nA[(I-1)*S+C*a+_%a],nA[H++]=(R+Q)%256;break;case 3:for(_=tA=0;tA<S;_=tA+=1)Q=i[c++],C=(_-_%a)/a,V=_<a?0:nA[H-a],R=I&&nA[(I-1)*S+C*a+_%a],nA[H++]=(Q+Math.floor((V+R)/2))%256;break;case 4:for(_=fA=0;fA<S;_=fA+=1)Q=i[c++],C=(_-_%a)/a,V=_<a?0:nA[H-a],I===0?R=M=0:(R=nA[(I-1)*S+C*a+_%a],M=C&&nA[(I-1)*S+(C-1)*a+_%a]),j=V+R-M,Z=Math.abs(j-V),k=Math.abs(j-R),q=Math.abs(j-M),J=Z<=k&&Z<=q?V:k<=q?R:M,nA[H++]=(Q+J)%256;break;default:throw new Error("Invalid filter algorithm: "+i[c-1])}if(!b){var T=((w+I*L)*h.width+B)*a,U=I*S;for(_=0;_<hA;_+=1){for(var O=0;O<a;O+=1)l[T++]=nA[U++];T+=(d-1)*a}}I++}}return i=K5(i),h.interlaceMethod==1?(g(0,0,8,8),g(4,0,8,8),g(0,4,4,8),g(2,0,4,4),g(0,2,2,4),g(1,0,2,2),g(0,1,1,2)):g(0,0,1,1),l},r.prototype.decodePalette=function(){var i,a,l,c,h,g,B,w,d;for(l=this.palette,g=this.transparency.indexed||[],h=new Uint8Array((g.length||0)+l.length),c=0,i=0,a=B=0,w=l.length;B<w;a=B+=3)h[c++]=l[a],h[c++]=l[a+1],h[c++]=l[a+2],h[c++]=(d=g[i++])!=null?d:255;return h},r.prototype.copyToImageData=function(i,a){var l,c,h,g,B,w,d,L,Q,H,C;if(c=this.colors,Q=null,l=this.hasAlphaChannel,this.palette.length&&(Q=(C=this._decodedPalette)!=null?C:this._decodedPalette=this.decodePalette(),c=4,l=!0),L=(h=i.data||i).length,B=Q||a,g=w=0,c===1)for(;g<L;)d=Q?4*a[g/4]:w,H=B[d++],h[g++]=H,h[g++]=H,h[g++]=H,h[g++]=l?B[d++]:255,w=d;else for(;g<L;)d=Q?4*a[g/4]:w,h[g++]=B[d++],h[g++]=B[d++],h[g++]=B[d++],h[g++]=l?B[d++]:255,w=d},r.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var n=function(){if(Object.prototype.toString.call(XA)==="[object Window]"){try{A=XA.document.createElement("canvas"),t=A.getContext("2d")}catch{return!1}return!0}return!1};return n(),e=function(i){var a;if(n()===!0)return t.width=i.width,t.height=i.height,t.clearRect(0,0,i.width,i.height),t.putImageData(i,0,0),(a=new Image).src=A.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(i){var a,l,c,h,g,B,w,d;if(this.animation){for(d=[],l=g=0,B=(w=this.animation.frames).length;g<B;l=++g)a=w[l],c=i.createImageData(a.width,a.height),h=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(c,h),a.imageData=c,d.push(a.image=e(c));return d}},r.prototype.renderFrame=function(i,a){var l,c,h;return l=(c=this.animation.frames)[a],h=c[a-1],a===0&&i.clearRect(0,0,this.width,this.height),(h!=null?h.disposeOp:void 0)===1?i.clearRect(h.xOffset,h.yOffset,h.width,h.height):(h!=null?h.disposeOp:void 0)===2&&i.putImageData(h.imageData,h.xOffset,h.yOffset),l.blendOp===0&&i.clearRect(l.xOffset,l.yOffset,l.width,l.height),i.drawImage(l.image,l.xOffset,l.yOffset)},r.prototype.animate=function(i){var a,l,c,h,g,B,w=this;return l=0,B=this.animation,h=B.numFrames,c=B.frames,g=B.numPlays,(a=function(){var d,L;if(d=l++%h,L=c[d],w.renderFrame(i,d),h>1&&l/h<g)return w.animation._timeout=setTimeout(a,L.delay)})()},r.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},r.prototype.render=function(i){var a,l;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,a=i.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(l=a.createImageData(this.width,this.height),this.copyToImageData(l,this.decodePixels()),a.putImageData(l,0,0))},r}();/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 *//**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function cw(e){var A=0;if(e[A++]!==71||e[A++]!==73||e[A++]!==70||e[A++]!==56||(e[A++]+1&253)!=56||e[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[A++]|e[A++]<<8,r=e[A++]|e[A++]<<8,n=e[A++],i=n>>7,a=1<<(7&n)+1;e[A++],e[A++];var l=null,c=null;i&&(l=A,c=a,A+=3*a);var h=!0,g=[],B=0,w=null,d=0,L=null;for(this.width=t,this.height=r;h&&A<e.length;)switch(e[A++]){case 33:switch(e[A++]){case 255:if(e[A]!==11||e[A+1]==78&&e[A+2]==69&&e[A+3]==84&&e[A+4]==83&&e[A+5]==67&&e[A+6]==65&&e[A+7]==80&&e[A+8]==69&&e[A+9]==50&&e[A+10]==46&&e[A+11]==48&&e[A+12]==3&&e[A+13]==1&&e[A+16]==0)A+=14,L=e[A++]|e[A++]<<8,A++;else for(A+=12;;){if(!((I=e[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}break;case 249:if(e[A++]!==4||e[A+4]!==0)throw new Error("Invalid graphics extension block.");var Q=e[A++];B=e[A++]|e[A++]<<8,w=e[A++],!(1&Q)&&(w=null),d=Q>>2&7,A++;break;case 254:for(;;){if(!((I=e[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[A-1].toString(16))}break;case 44:var H=e[A++]|e[A++]<<8,C=e[A++]|e[A++]<<8,_=e[A++]|e[A++]<<8,V=e[A++]|e[A++]<<8,Y=e[A++],j=Y>>6&1,Z=1<<(7&Y)+1,J=l,k=c,q=!1;Y>>7&&(q=!0,J=A,k=Z,A+=3*Z);var nA=A;for(A++;;){var I;if(!((I=e[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}g.push({x:H,y:C,width:_,height:V,has_local_palette:q,palette_offset:J,palette_size:k,data_offset:nA,data_length:A-nA,transparent_index:w,interlaced:!!j,delay:B,disposal:d});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+e[A-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return L},this.frameInfo=function(S){if(S<0||S>=g.length)throw new Error("Frame index out of range.");return g[S]},this.decodeAndBlitFrameBGRA=function(S,R){var M=this.frameInfo(S),lA=M.width*M.height,iA=new Uint8Array(lA);ah(e,M.data_offset,iA,lA);var uA=M.palette_offset,tA=M.transparent_index;tA===null&&(tA=256);var fA=M.width,hA=t-fA,bA=fA,b=4*(M.y*t+M.x),T=4*((M.y+M.height)*t+M.x),U=b,O=4*hA;M.interlaced===!0&&(O+=4*t*7);for(var G=8,AA=0,sA=iA.length;AA<sA;++AA){var cA=iA[AA];if(bA===0&&(bA=fA,(U+=O)>=T&&(O=4*hA+4*t*(G-1),U=b+(fA+hA)*(G<<1),G>>=1)),cA===tA)U+=4;else{var yA=e[uA+3*cA],FA=e[uA+3*cA+1],HA=e[uA+3*cA+2];R[U++]=HA,R[U++]=FA,R[U++]=yA,R[U++]=255}--bA}},this.decodeAndBlitFrameRGBA=function(S,R){var M=this.frameInfo(S),lA=M.width*M.height,iA=new Uint8Array(lA);ah(e,M.data_offset,iA,lA);var uA=M.palette_offset,tA=M.transparent_index;tA===null&&(tA=256);var fA=M.width,hA=t-fA,bA=fA,b=4*(M.y*t+M.x),T=4*((M.y+M.height)*t+M.x),U=b,O=4*hA;M.interlaced===!0&&(O+=4*t*7);for(var G=8,AA=0,sA=iA.length;AA<sA;++AA){var cA=iA[AA];if(bA===0&&(bA=fA,(U+=O)>=T&&(O=4*hA+4*t*(G-1),U=b+(fA+hA)*(G<<1),G>>=1)),cA===tA)U+=4;else{var yA=e[uA+3*cA],FA=e[uA+3*cA+1],HA=e[uA+3*cA+2];R[U++]=yA,R[U++]=FA,R[U++]=HA,R[U++]=255}--bA}}}function ah(e,A,t,r){for(var n=e[A++],i=1<<n,a=i+1,l=a+1,c=n+1,h=(1<<c)-1,g=0,B=0,w=0,d=e[A++],L=new Int32Array(4096),Q=null;;){for(;g<16&&d!==0;)B|=e[A++]<<g,g+=8,d===1?d=e[A++]:--d;if(g<c)break;var H=B&h;if(B>>=c,g-=c,H!==i){if(H===a)break;for(var C=H<l?H:Q,_=0,V=C;V>i;)V=L[V]>>8,++_;var Y=V;if(w+_+(C!==H?1:0)>r)return void Le.log("Warning, gif stream longer than expected.");t[w++]=Y;var j=w+=_;for(C!==H&&(t[w++]=Y),V=C;_--;)V=L[V],t[--j]=255&V,V>>=8;Q!==null&&l<4096&&(L[l++]=Q<<8|Y,l>=h+1&&c<12&&(++c,h=h<<1|1)),Q=H}else l=a+1,h=(1<<(c=n+1))-1,Q=null}return w!==r&&Le.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 Cc(e){var A,t,r,n,i,a=Math.floor,l=new Array(64),c=new Array(64),h=new Array(64),g=new Array(64),B=new Array(65535),w=new Array(65535),d=new Array(64),L=new Array(64),Q=[],H=0,C=7,_=new Array(64),V=new Array(64),Y=new Array(64),j=new Array(256),Z=new Array(2048),J=[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],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],nA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],S=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],lA=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function iA(b,T){for(var U=0,O=0,G=new Array,AA=1;AA<=16;AA++){for(var sA=1;sA<=b[AA];sA++)G[T[O]]=[],G[T[O]][0]=U,G[T[O]][1]=AA,O++,U++;U*=2}return G}function uA(b){for(var T=b[0],U=b[1]-1;U>=0;)T&1<<U&&(H|=1<<C),U--,--C<0&&(H==255?(tA(255),tA(0)):tA(H),C=7,H=0)}function tA(b){Q.push(b)}function fA(b){tA(b>>8&255),tA(255&b)}function hA(b,T,U,O,G){for(var AA,sA=G[0],cA=G[240],yA=function(QA,UA){var NA,_A,VA,ZA,ie,se,ue,Ce,zA,ae,DA=0;for(zA=0;zA<8;++zA){NA=QA[DA],_A=QA[DA+1],VA=QA[DA+2],ZA=QA[DA+3],ie=QA[DA+4],se=QA[DA+5],ue=QA[DA+6];var pt=NA+(Ce=QA[DA+7]),he=NA-Ce,sr=_A+ue,Fe=_A-ue,Ne=VA+se,Fr=VA-se,ge=ZA+ie,Hn=ZA-ie,Pe=pt+ge,ar=pt-ge,Kr=sr+Ne,Oe=sr-Ne;QA[DA]=Pe+Kr,QA[DA+4]=Pe-Kr;var $A=.707106781*(Oe+ar);QA[DA+2]=ar+$A,QA[DA+6]=ar-$A;var Be=.382683433*((Pe=Hn+Fr)-(Oe=Fe+he)),Sn=.5411961*Pe+Be,ut=1.306562965*Oe+Be,br=.707106781*(Kr=Fr+Fe),Ur=he+br,qA=he-br;QA[DA+5]=qA+Sn,QA[DA+3]=qA-Sn,QA[DA+1]=Ur+ut,QA[DA+7]=Ur-ut,DA+=8}for(DA=0,zA=0;zA<8;++zA){NA=QA[DA],_A=QA[DA+8],VA=QA[DA+16],ZA=QA[DA+24],ie=QA[DA+32],se=QA[DA+40],ue=QA[DA+48];var or=NA+(Ce=QA[DA+56]),Lr=NA-Ce,St=_A+ue,rt=_A-ue,Ye=VA+se,Kt=VA-se,ei=ZA+ie,Rr=ZA-ie,lr=or+ei,cr=or-ei,ur=St+Ye,Er=St-Ye;QA[DA]=lr+ur,QA[DA+32]=lr-ur;var Jt=.707106781*(Er+cr);QA[DA+16]=cr+Jt,QA[DA+48]=cr-Jt;var xr=.382683433*((lr=Rr+Kt)-(Er=rt+Lr)),Nn=.5411961*lr+xr,ti=1.306562965*Er+xr,ri=.707106781*(ur=Kt+rt),ni=Lr+ri,ii=Lr-ri;QA[DA+40]=ii+Nn,QA[DA+24]=ii-Nn,QA[DA+8]=ni+ti,QA[DA+56]=ni-ti,DA++}for(zA=0;zA<64;++zA)ae=QA[zA]*UA[zA],d[zA]=ae>0?ae+.5|0:ae-.5|0;return d}(b,T),FA=0;FA<64;++FA)L[J[FA]]=yA[FA];var HA=L[0]-U;U=L[0],HA==0?uA(O[0]):(uA(O[w[AA=32767+HA]]),uA(B[AA]));for(var EA=63;EA>0&&L[EA]==0;)EA--;if(EA==0)return uA(sA),U;for(var JA,BA=1;BA<=EA;){for(var K=BA;L[BA]==0&&BA<=EA;)++BA;var te=BA-K;if(te>=16){JA=te>>4;for(var RA=1;RA<=JA;++RA)uA(cA);te&=15}AA=32767+L[BA],uA(G[(te<<4)+w[AA]]),uA(B[AA]),BA++}return EA!=63&&uA(sA),U}function bA(b){b=Math.min(Math.max(b,1),100),i!=b&&(function(T){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],O=0;O<64;O++){var G=a((U[O]*T+50)/100);G=Math.min(Math.max(G,1),255),l[J[O]]=G}for(var AA=[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],sA=0;sA<64;sA++){var cA=a((AA[sA]*T+50)/100);cA=Math.min(Math.max(cA,1),255),c[J[sA]]=cA}for(var yA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],FA=0,HA=0;HA<8;HA++)for(var EA=0;EA<8;EA++)h[FA]=1/(l[J[FA]]*yA[HA]*yA[EA]*8),g[FA]=1/(c[J[FA]]*yA[HA]*yA[EA]*8),FA++}(b<50?Math.floor(5e3/b):Math.floor(200-2*b)),i=b)}this.encode=function(b,T){T&&bA(T),Q=new Array,H=0,C=7,fA(65496),fA(65504),fA(16),tA(74),tA(70),tA(73),tA(70),tA(0),tA(1),tA(1),tA(0),fA(1),fA(1),tA(0),tA(0),function(){fA(65499),fA(132),tA(0);for(var _A=0;_A<64;_A++)tA(l[_A]);tA(1);for(var VA=0;VA<64;VA++)tA(c[VA])}(),function(_A,VA){fA(65472),fA(17),tA(8),fA(VA),fA(_A),tA(3),tA(1),tA(17),tA(0),tA(2),tA(17),tA(1),tA(3),tA(17),tA(1)}(b.width,b.height),function(){fA(65476),fA(418),tA(0);for(var _A=0;_A<16;_A++)tA(k[_A+1]);for(var VA=0;VA<=11;VA++)tA(q[VA]);tA(16);for(var ZA=0;ZA<16;ZA++)tA(nA[ZA+1]);for(var ie=0;ie<=161;ie++)tA(I[ie]);tA(1);for(var se=0;se<16;se++)tA(S[se+1]);for(var ue=0;ue<=11;ue++)tA(R[ue]);tA(17);for(var Ce=0;Ce<16;Ce++)tA(M[Ce+1]);for(var zA=0;zA<=161;zA++)tA(lA[zA])}(),fA(65498),fA(12),tA(3),tA(1),tA(0),tA(2),tA(17),tA(3),tA(17),tA(0),tA(63),tA(0);var U=0,O=0,G=0;H=0,C=7,this.encode.displayName="_encode_";for(var AA,sA,cA,yA,FA,HA,EA,JA,BA,K=b.data,te=b.width,RA=b.height,QA=4*te,UA=0;UA<RA;){for(AA=0;AA<QA;){for(FA=QA*UA+AA,EA=-1,JA=0,BA=0;BA<64;BA++)HA=FA+(JA=BA>>3)*QA+(EA=4*(7&BA)),UA+JA>=RA&&(HA-=QA*(UA+1+JA-RA)),AA+EA>=QA&&(HA-=AA+EA-QA+4),sA=K[HA++],cA=K[HA++],yA=K[HA++],_[BA]=(Z[sA]+Z[cA+256>>0]+Z[yA+512>>0]>>16)-128,V[BA]=(Z[sA+768>>0]+Z[cA+1024>>0]+Z[yA+1280>>0]>>16)-128,Y[BA]=(Z[sA+1280>>0]+Z[cA+1536>>0]+Z[yA+1792>>0]>>16)-128;U=hA(_,h,U,A,r),O=hA(V,g,O,t,n),G=hA(Y,g,G,t,n),AA+=32}UA+=8}if(C>=0){var NA=[];NA[1]=C+1,NA[0]=(1<<C+1)-1,uA(NA)}return fA(65497),new Uint8Array(Q)},e=e||50,function(){for(var b=String.fromCharCode,T=0;T<256;T++)j[T]=b(T)}(),A=iA(k,q),t=iA(S,R),r=iA(nA,I),n=iA(M,lA),function(){for(var b=1,T=2,U=1;U<=15;U++){for(var O=b;O<T;O++)w[32767+O]=U,B[32767+O]=[],B[32767+O][1]=U,B[32767+O][0]=O;for(var G=-(T-1);G<=-b;G++)w[32767+G]=U,B[32767+G]=[],B[32767+G][1]=U,B[32767+G][0]=T-1+G;b<<=1,T<<=1}}(),function(){for(var b=0;b<256;b++)Z[b]=19595*b,Z[b+256>>0]=38470*b,Z[b+512>>0]=7471*b+32768,Z[b+768>>0]=-11059*b,Z[b+1024>>0]=-21709*b,Z[b+1280>>0]=32768*b+8421375,Z[b+1536>>0]=-27439*b,Z[b+1792>>0]=-5329*b}(),bA(e)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function wr(e,A){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function oh(e){function A(k){if(!k)throw Error("assert :P")}function t(k,q,nA){for(var I=0;4>I;I++)if(k[q+I]!=nA.charCodeAt(I))return!0;return!1}function r(k,q,nA,I,S){for(var R=0;R<S;R++)k[q+R]=nA[I+R]}function n(k,q,nA,I){for(var S=0;S<I;S++)k[q+S]=nA}function i(k){return new Int32Array(k)}function a(k,q){for(var nA=[],I=0;I<k;I++)nA.push(new q);return nA}function l(k,q){var nA=[];return function I(S,R,M){for(var lA=M[R],iA=0;iA<lA&&(S.push(M.length>R+1?[]:new q),!(M.length<R+1));iA++)I(S[iA],R+1,M)}(nA,0,k),nA}var c=function(){var k=this;function q(s,o){for(var f=1<<o-1>>>0;s&f;)f>>>=1;return f?(s&f-1)+f:s}function nA(s,o,f,p,v){A(!(p%f));do s[o+(p-=f)]=v;while(0<p)}function I(s,o,f,p,v){if(A(2328>=v),512>=v)var y=i(512);else if((y=i(v))==null)return 0;return function(F,E,x,D,X,aA){var oA,eA,vA=E,dA=1<<x,z=i(16),$=i(16);for(A(X!=0),A(D!=null),A(F!=null),A(0<x),eA=0;eA<X;++eA){if(15<D[eA])return 0;++z[D[eA]]}if(z[0]==X)return 0;for($[1]=0,oA=1;15>oA;++oA){if(z[oA]>1<<oA)return 0;$[oA+1]=$[oA]+z[oA]}for(eA=0;eA<X;++eA)oA=D[eA],0<D[eA]&&(aA[$[oA]++]=eA);if($[15]==1)return(D=new S).g=0,D.value=aA[0],nA(F,vA,1,dA,D),dA;var pA,mA=-1,wA=dA-1,OA=0,LA=1,GA=1,xA=1<<x;for(eA=0,oA=1,X=2;oA<=x;++oA,X<<=1){if(LA+=GA<<=1,0>(GA-=z[oA]))return 0;for(;0<z[oA];--z[oA])(D=new S).g=oA,D.value=aA[eA++],nA(F,vA+OA,X,xA,D),OA=q(OA,oA)}for(oA=x+1,X=2;15>=oA;++oA,X<<=1){if(LA+=GA<<=1,0>(GA-=z[oA]))return 0;for(;0<z[oA];--z[oA]){if(D=new S,(OA&wA)!=mA){for(vA+=xA,pA=1<<(mA=oA)-x;15>mA&&!(0>=(pA-=z[mA]));)++mA,pA<<=1;dA+=xA=1<<(pA=mA-x),F[E+(mA=OA&wA)].g=pA+x,F[E+mA].value=vA-E-mA}D.g=oA-x,D.value=aA[eA++],nA(F,vA+(OA>>x),X,xA,D),OA=q(OA,oA)}}return LA!=2*$[15]-1?0:dA}(s,o,f,p,v,y)}function S(){this.value=this.g=0}function R(){this.value=this.g=0}function M(){this.G=a(5,S),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(ft,R)}function lA(s,o,f,p){A(s!=null),A(o!=null),A(2147483648>p),s.Ca=254,s.I=0,s.b=-8,s.Ka=0,s.oa=o,s.pa=f,s.Jd=o,s.Yc=f+p,s.Zc=4<=p?f+p-4+1:f,AA(s)}function iA(s,o){for(var f=0;0<o--;)f|=cA(s,128)<<o;return f}function uA(s,o){var f=iA(s,o);return sA(s)?-f:f}function tA(s,o,f,p){var v,y=0;for(A(s!=null),A(o!=null),A(4294967288>p),s.Sb=p,s.Ra=0,s.u=0,s.h=0,4<p&&(p=4),v=0;v<p;++v)y+=o[f+v]<<8*v;s.Ra=y,s.bb=p,s.oa=o,s.pa=f}function fA(s){for(;8<=s.u&&s.bb<s.Sb;)s.Ra>>>=8,s.Ra+=s.oa[s.pa+s.bb]<<mi-8>>>0,++s.bb,s.u-=8;U(s)&&(s.h=1,s.u=0)}function hA(s,o){if(A(0<=o),!s.h&&o<=vi){var f=T(s)&wi[o];return s.u+=o,fA(s),f}return s.h=1,s.u=0}function bA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function T(s){return s.Ra>>>(s.u&mi-1)>>>0}function U(s){return A(s.bb<=s.Sb),s.h||s.bb==s.Sb&&s.u>mi}function O(s,o){s.u=o,s.h=U(s)}function G(s){s.u>=ps&&(A(s.u>=ps),fA(s))}function AA(s){A(s!=null&&s.oa!=null),s.pa<s.Zc?(s.I=(s.oa[s.pa++]|s.I<<8)>>>0,s.b+=8):(A(s!=null&&s.oa!=null),s.pa<s.Yc?(s.b+=8,s.I=s.oa[s.pa++]|s.I<<8):s.Ka?s.b=0:(s.I<<=8,s.b+=8,s.Ka=1))}function sA(s){return iA(s,1)}function cA(s,o){var f=s.Ca;0>s.b&&AA(s);var p=s.b,v=f*o>>>8,y=(s.I>>>p>v)+0;for(y?(f-=v,s.I-=v+1<<p>>>0):f=v+1,p=f,v=0;256<=p;)v+=8,p>>=8;return p=7^v+Dt[p],s.b-=p,s.Ca=(f<<p)-1,y}function yA(s,o,f){s[o+0]=f>>24&255,s[o+1]=f>>16&255,s[o+2]=f>>8&255,s[o+3]=f>>0&255}function FA(s,o){return s[o+0]<<0|s[o+1]<<8}function HA(s,o){return FA(s,o)|s[o+2]<<16}function EA(s,o){return FA(s,o)|FA(s,o+2)<<16}function JA(s,o){var f=1<<o;return A(s!=null),A(0<o),s.X=i(f),s.X==null?0:(s.Mb=32-o,s.Xa=o,1)}function BA(s,o){A(s!=null),A(o!=null),A(s.Xa==o.Xa),r(o.X,0,s.X,0,1<<o.Xa)}function K(){this.X=[],this.Xa=this.Mb=0}function te(s,o,f,p){A(f!=null),A(p!=null);var v=f[0],y=p[0];return v==0&&(v=(s*y+o/2)/o),y==0&&(y=(o*v+s/2)/s),0>=v||0>=y?0:(f[0]=v,p[0]=y,1)}function RA(s,o){return s+(1<<o)-1>>>o}function QA(s,o){return((4278255360&s)+(4278255360&o)>>>0&4278255360)+((16711935&s)+(16711935&o)>>>0&16711935)>>>0}function UA(s,o){k[o]=function(f,p,v,y,F,E,x){var D;for(D=0;D<F;++D){var X=k[s](E[x+D-1],v,y+D);E[x+D]=QA(f[p+D],X)}}}function NA(){this.ud=this.hd=this.jd=0}function _A(s,o){return((4278124286&(s^o))>>>1)+(s&o)>>>0}function VA(s){return 0<=s&&256>s?s:0>s?0:255<s?255:void 0}function ZA(s,o){return VA(s+(s-o+.5>>1))}function ie(s,o,f){return Math.abs(o-f)-Math.abs(s-f)}function se(s,o,f,p,v,y,F){for(p=y[F-1],f=0;f<v;++f)y[F+f]=p=QA(s[o+f],p)}function ue(s,o,f,p,v){var y;for(y=0;y<f;++y){var F=s[o+y],E=F>>8&255,x=16711935&(x=(x=16711935&F)+((E<<16)+E));p[v+y]=(4278255360&F)+x>>>0}}function Ce(s,o){o.jd=s>>0&255,o.hd=s>>8&255,o.ud=s>>16&255}function zA(s,o,f,p,v,y){var F;for(F=0;F<p;++F){var E=o[f+F],x=E>>>8,D=E,X=255&(X=(X=E>>>16)+((s.jd<<24>>24)*(x<<24>>24)>>>5));D=255&(D=(D=D+((s.hd<<24>>24)*(x<<24>>24)>>>5))+((s.ud<<24>>24)*(X<<24>>24)>>>5)),v[y+F]=(4278255360&E)+(X<<16)+D}}function ae(s,o,f,p,v){k[o]=function(y,F,E,x,D,X,aA,oA,eA){for(x=aA;x<oA;++x)for(aA=0;aA<eA;++aA)D[X++]=v(E[p(y[F++])])},k[s]=function(y,F,E,x,D,X,aA){var oA=8>>y.b,eA=y.Ea,vA=y.K[0],dA=y.w;if(8>oA)for(y=(1<<y.b)-1,dA=(1<<oA)-1;F<E;++F){var z,$=0;for(z=0;z<eA;++z)z&y||($=p(x[D++])),X[aA++]=v(vA[$&dA]),$>>=oA}else k["VP8LMapColor"+f](x,D,vA,dA,X,aA,F,E,eA)}}function DA(s,o,f,p,v){for(f=o+f;o<f;){var y=s[o++];p[v++]=y>>16&255,p[v++]=y>>8&255,p[v++]=y>>0&255}}function pt(s,o,f,p,v){for(f=o+f;o<f;){var y=s[o++];p[v++]=y>>16&255,p[v++]=y>>8&255,p[v++]=y>>0&255,p[v++]=y>>24&255}}function he(s,o,f,p,v){for(f=o+f;o<f;){var y=(F=s[o++])>>16&240|F>>12&15,F=F>>0&240|F>>28&15;p[v++]=y,p[v++]=F}}function sr(s,o,f,p,v){for(f=o+f;o<f;){var y=(F=s[o++])>>16&248|F>>13&7,F=F>>5&224|F>>3&31;p[v++]=y,p[v++]=F}}function Fe(s,o,f,p,v){for(f=o+f;o<f;){var y=s[o++];p[v++]=y>>0&255,p[v++]=y>>8&255,p[v++]=y>>16&255}}function Ne(s,o,f,p,v,y){if(y==0)for(f=o+f;o<f;)yA(p,((y=s[o++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),v+=32;else r(p,v,s,o,f)}function Fr(s,o){k[o][0]=k[s+"0"],k[o][1]=k[s+"1"],k[o][2]=k[s+"2"],k[o][3]=k[s+"3"],k[o][4]=k[s+"4"],k[o][5]=k[s+"5"],k[o][6]=k[s+"6"],k[o][7]=k[s+"7"],k[o][8]=k[s+"8"],k[o][9]=k[s+"9"],k[o][10]=k[s+"10"],k[o][11]=k[s+"11"],k[o][12]=k[s+"12"],k[o][13]=k[s+"13"],k[o][14]=k[s+"0"],k[o][15]=k[s+"0"]}function ge(s){return s==xl||s==Il||s==_a||s==_l}function Hn(){this.eb=[],this.size=this.A=this.fb=0}function Pe(){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 ar(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Hn,this.f.kb=new Pe,this.sd=null}function Kr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Oe(){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 $A(s){return alert("todo:WebPSamplerProcessPlane"),s.T}function Be(s,o){var f=s.T,p=o.ba.f.RGBA,v=p.eb,y=p.fb+s.ka*p.A,F=Ar[o.ba.S],E=s.y,x=s.O,D=s.f,X=s.N,aA=s.ea,oA=s.W,eA=o.cc,vA=o.dc,dA=o.Mc,z=o.Nc,$=s.ka,pA=s.ka+s.T,mA=s.U,wA=mA+1>>1;for($==0?F(E,x,null,null,D,X,aA,oA,D,X,aA,oA,v,y,null,null,mA):(F(o.ec,o.fc,E,x,eA,vA,dA,z,D,X,aA,oA,v,y-p.A,v,y,mA),++f);$+2<pA;$+=2)eA=D,vA=X,dA=aA,z=oA,X+=s.Rc,oA+=s.Rc,y+=2*p.A,F(E,(x+=2*s.fa)-s.fa,E,x,eA,vA,dA,z,D,X,aA,oA,v,y-p.A,v,y,mA);return x+=s.fa,s.j+pA<s.o?(r(o.ec,o.fc,E,x,mA),r(o.cc,o.dc,D,X,wA),r(o.Mc,o.Nc,aA,oA,wA),f--):1&pA||F(E,x,null,null,D,X,aA,oA,D,X,aA,oA,v,y+p.A,null,null,mA),f}function Sn(s,o,f){var p=s.F,v=[s.J];if(p!=null){var y=s.U,F=o.ba.S,E=F==Ia||F==_a;o=o.ba.f.RGBA;var x=[0],D=s.ka;x[0]=s.T,s.Kb&&(D==0?--x[0]:(--D,v[0]-=s.width),s.j+s.ka+s.T==s.o&&(x[0]=s.o-s.j-D));var X=o.eb;D=o.fb+D*o.A,s=xe(p,v[0],s.width,y,x,X,D+(E?0:3),o.A),A(f==x),s&&ge(F)&&Zt(X,D,E,y,x,o.A)}return 0}function ut(s){var o=s.ma,f=o.ba.S,p=11>f,v=f==Ea||f==xa||f==Ia||f==El||f==12||ge(f);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!gs(o.Oa,s,v?11:12))return 0;if(v&&ge(f)&&CA(),s.da)alert("todo:use_scaling");else{if(p){if(o.Ib=$A,s.Kb){if(f=s.U+1>>1,o.memory=i(s.U+2*f),o.memory==null)return 0;o.ec=o.memory,o.fc=0,o.cc=o.ec,o.dc=o.fc+s.U,o.Mc=o.cc,o.Nc=o.dc+f,o.Ib=Be,CA()}}else alert("todo:EmitYUV");v&&(o.Jb=Sn,p&&rA())}if(p&&!yu){for(s=0;256>s;++s)tg[s]=89858*(s-128)+Sa>>Ha,ig[s]=-22014*(s-128)+Sa,ng[s]=-45773*(s-128),rg[s]=113618*(s-128)+Sa>>Ha;for(s=Fs;s<Nl;++s)o=76283*(s-16)+Sa>>Ha,sg[s-Fs]=Rt(o,255),ag[s-Fs]=Rt(o+8>>4,15);yu=1}return 1}function br(s){var o=s.ma,f=s.U,p=s.T;return A(!(1&s.ka)),0>=f||0>=p?0:(f=o.Ib(s,o),o.Jb!=null&&o.Jb(s,o,f),o.Dc+=f,1)}function Ur(s){s.ma.memory=null}function qA(s,o,f,p){return hA(s,8)!=47?0:(o[0]=hA(s,14)+1,f[0]=hA(s,14)+1,p[0]=hA(s,1),hA(s,3)!=0?0:!s.h)}function or(s,o){if(4>s)return s+1;var f=s-2>>1;return(2+(1&s)<<f)+hA(o,f)+1}function Lr(s,o){return 120<o?o-120:1<=(f=((f=Rd[o-1])>>4)*s+(8-(15&f)))?f:1;var f}function St(s,o,f){var p=T(f),v=s[o+=255&p].g-8;return 0<v&&(O(f,f.u+8),p=T(f),o+=s[o].value,o+=p&(1<<v)-1),O(f,f.u+s[o].g),s[o].value}function rt(s,o,f){return f.g+=s.g,f.value+=s.value<<o>>>0,A(8>=f.g),s.g}function Ye(s,o,f){var p=s.xc;return A((o=p==0?0:s.vc[s.md*(f>>p)+(o>>p)])<s.Wb),s.Ya[o]}function Kt(s,o,f,p){var v=s.ab,y=s.c*o,F=s.C;o=F+o;var E=f,x=p;for(p=s.Ta,f=s.Ua;0<v--;){var D=s.gc[v],X=F,aA=o,oA=E,eA=x,vA=(x=p,E=f,D.Ea);switch(A(X<aA),A(aA<=D.nc),D.hc){case 2:Ca(oA,eA,(aA-X)*vA,x,E);break;case 0:var dA=X,z=aA,$=x,pA=E,mA=(xA=D).Ea;dA==0&&(Ul(oA,eA,null,null,1,$,pA),se(oA,eA+1,0,0,mA-1,$,pA+1),eA+=mA,pA+=mA,++dA);for(var wA=1<<xA.b,OA=wA-1,LA=RA(mA,xA.b),GA=xA.K,xA=xA.w+(dA>>xA.b)*LA;dA<z;){var de=GA,we=xA,fe=1;for(ws(oA,eA,$,pA-mA,1,$,pA);fe<mA;){var oe=(fe&~OA)+wA;oe>mA&&(oe=mA),(0,an[de[we++]>>8&15])(oA,eA+ +fe,$,pA+fe-mA,oe-fe,$,pA+fe),fe=oe}eA+=mA,pA+=mA,++dA&OA||(xA+=LA)}aA!=D.nc&&r(x,E-vA,x,E+(aA-X-1)*vA,vA);break;case 1:for(vA=oA,z=eA,mA=(oA=D.Ea)-(pA=oA&~($=(eA=1<<D.b)-1)),dA=RA(oA,D.b),wA=D.K,D=D.w+(X>>D.b)*dA;X<aA;){for(OA=wA,LA=D,GA=new NA,xA=z+pA,de=z+oA;z<xA;)Ce(OA[LA++],GA),kn(GA,vA,z,eA,x,E),z+=eA,E+=eA;z<de&&(Ce(OA[LA++],GA),kn(GA,vA,z,mA,x,E),z+=mA,E+=mA),++X&$||(D+=dA)}break;case 3:if(oA==x&&eA==E&&0<D.b){for(z=x,oA=vA=E+(aA-X)*vA-(pA=(aA-X)*RA(D.Ea,D.b)),eA=x,$=E,dA=[],pA=(mA=pA)-1;0<=pA;--pA)dA[pA]=eA[$+pA];for(pA=mA-1;0<=pA;--pA)z[oA+pA]=dA[pA];Xt(D,X,aA,x,vA,x,E)}else Xt(D,X,aA,oA,eA,x,E)}E=p,x=f}x!=f&&r(p,f,E,x,y)}function ei(s,o){var f=s.V,p=s.Ba+s.c*s.C,v=o-s.C;if(A(o<=s.l.o),A(16>=v),0<v){var y=s.l,F=s.Ta,E=s.Ua,x=y.width;if(Kt(s,v,f,p),v=E=[E],A((f=s.C)<(p=o)),A(y.v<y.va),p>y.o&&(p=y.o),f<y.j){var D=y.j-f;f=y.j,v[0]+=D*x}if(f>=p?f=0:(v[0]+=4*y.v,y.ka=f-y.j,y.U=y.va-y.v,y.T=p-f,f=1),f){if(E=E[0],11>(f=s.ca).S){var X=f.f.RGBA,aA=(p=f.S,v=y.U,y=y.T,D=X.eb,X.A),oA=y;for(X=X.fb+s.Ma*X.A;0<oA--;){var eA=F,vA=E,dA=v,z=D,$=X;switch(p){case La:Tt(eA,vA,dA,z,$);break;case Ea:xt(eA,vA,dA,z,$);break;case xl:xt(eA,vA,dA,z,$),Zt(z,$,0,dA,1,0);break;case hu:qr(eA,vA,dA,z,$);break;case xa:Ne(eA,vA,dA,z,$,1);break;case Il:Ne(eA,vA,dA,z,$,1),Zt(z,$,0,dA,1,0);break;case Ia:Ne(eA,vA,dA,z,$,0);break;case _a:Ne(eA,vA,dA,z,$,0),Zt(z,$,1,dA,1,0);break;case El:on(eA,vA,dA,z,$);break;case _l:on(eA,vA,dA,z,$),Ee(z,$,dA,1,0);break;case du:Gr(eA,vA,dA,z,$);break;default:A(0)}E+=x,X+=aA}s.Ma+=y}else alert("todo:EmitRescaledRowsYUVA");A(s.Ma<=f.height)}}s.C=o,A(s.C<=s.i)}function Rr(s){var o;if(0<s.ua)return 0;for(o=0;o<s.Wb;++o){var f=s.Ya[o].G,p=s.Ya[o].H;if(0<f[1][p[1]+0].g||0<f[2][p[2]+0].g||0<f[3][p[3]+0].g)return 0}return 1}function lr(s,o,f,p,v,y){if(s.Z!=0){var F=s.qd,E=s.rd;for(A(fn[s.Z]!=null);o<f;++o)fn[s.Z](F,E,p,v,p,v,y),F=p,E=v,v+=y;s.qd=F,s.rd=E}}function cr(s,o){var f=s.l.ma,p=f.Z==0||f.Z==1?s.l.j:s.C;if(p=s.C<p?p:s.C,A(o<=s.l.o),o>p){var v=s.l.width,y=f.ca,F=f.tb+v*p,E=s.V,x=s.Ba+s.c*p,D=s.gc;A(s.ab==1),A(D[0].hc==3),ya(D[0],p,o,E,x,y,F),lr(f,p,o,y,F,v)}s.C=s.Ma=o}function ur(s,o,f,p,v,y,F){var E=s.$/p,x=s.$%p,D=s.m,X=s.s,aA=f+s.$,oA=aA;v=f+p*v;var eA=f+p*y,vA=280+X.ua,dA=s.Pb?E:16777216,z=0<X.ua?X.Wa:null,$=X.wc,pA=aA<eA?Ye(X,x,E):null;A(s.C<y),A(eA<=v);var mA=!1;A:for(;;){for(;mA||aA<eA;){var wA=0;if(E>=dA){var OA=aA-f;A((dA=s).Pb),dA.wd=dA.m,dA.xd=OA,0<dA.s.ua&&BA(dA.s.Wa,dA.s.vb),dA=E+jd}if(x&$||(pA=Ye(X,x,E)),A(pA!=null),pA.Qb&&(o[aA]=pA.qb,mA=!0),!mA)if(G(D),pA.jc){wA=D,OA=o;var LA=aA,GA=pA.pd[T(wA)&ft-1];A(pA.jc),256>GA.g?(O(wA,wA.u+GA.g),OA[LA]=GA.value,wA=0):(O(wA,wA.u+GA.g-256),A(256<=GA.value),wA=GA.value),wA==0&&(mA=!0)}else wA=St(pA.G[0],pA.H[0],D);if(D.h)break;if(mA||256>wA){if(!mA)if(pA.nd)o[aA]=(pA.qb|wA<<8)>>>0;else{if(G(D),mA=St(pA.G[1],pA.H[1],D),G(D),OA=St(pA.G[2],pA.H[2],D),LA=St(pA.G[3],pA.H[3],D),D.h)break;o[aA]=(LA<<24|mA<<16|wA<<8|OA)>>>0}if(mA=!1,++aA,++x>=p&&(x=0,++E,F!=null&&E<=y&&!(E%16)&&F(s,E),z!=null))for(;oA<aA;)wA=o[oA++],z.X[(506832829*wA&4294967295)>>>z.Mb]=wA}else if(280>wA){if(wA=or(wA-256,D),OA=St(pA.G[4],pA.H[4],D),G(D),OA=Lr(p,OA=or(OA,D)),D.h)break;if(aA-f<OA||v-aA<wA)break A;for(LA=0;LA<wA;++LA)o[aA+LA]=o[aA+LA-OA];for(aA+=wA,x+=wA;x>=p;)x-=p,++E,F!=null&&E<=y&&!(E%16)&&F(s,E);if(A(aA<=v),x&$&&(pA=Ye(X,x,E)),z!=null)for(;oA<aA;)wA=o[oA++],z.X[(506832829*wA&4294967295)>>>z.Mb]=wA}else{if(!(wA<vA))break A;for(mA=wA-280,A(z!=null);oA<aA;)wA=o[oA++],z.X[(506832829*wA&4294967295)>>>z.Mb]=wA;wA=aA,A(!(mA>>>(OA=z).Xa)),o[wA]=OA.X[mA],mA=!0}mA||A(D.h==U(D))}if(s.Pb&&D.h&&aA<v)A(s.m.h),s.a=5,s.m=s.wd,s.$=s.xd,0<s.s.ua&&BA(s.s.vb,s.s.Wa);else{if(D.h)break A;F!=null&&F(s,E>y?y:E),s.a=0,s.$=aA-f}return 1}return s.a=3,0}function Er(s){A(s!=null),s.vc=null,s.yc=null,s.Ya=null;var o=s.Wa;o!=null&&(o.X=null),s.vb=null,A(s!=null)}function Jt(){var s=new bl;return s==null?null:(s.a=0,s.xb=pu,Fr("Predictor","VP8LPredictors"),Fr("Predictor","VP8LPredictors_C"),Fr("PredictorAdd","VP8LPredictorsAdd"),Fr("PredictorAdd","VP8LPredictorsAdd_C"),Ca=ue,kn=zA,Tt=DA,xt=pt,on=he,Gr=sr,qr=Fe,k.VP8LMapColor32b=Ci,k.VP8LMapColor8b=Qa,s)}function xr(s,o,f,p,v){var y=1,F=[s],E=[o],x=p.m,D=p.s,X=null,aA=0;A:for(;;){if(f)for(;y&&hA(x,1);){var oA=F,eA=E,vA=p,dA=1,z=vA.m,$=vA.gc[vA.ab],pA=hA(z,2);if(vA.Oc&1<<pA)y=0;else{switch(vA.Oc|=1<<pA,$.hc=pA,$.Ea=oA[0],$.nc=eA[0],$.K=[null],++vA.ab,A(4>=vA.ab),pA){case 0:case 1:$.b=hA(z,3)+2,dA=xr(RA($.Ea,$.b),RA($.nc,$.b),0,vA,$.K),$.K=$.K[0];break;case 3:var mA,wA=hA(z,8)+1,OA=16<wA?0:4<wA?1:2<wA?2:3;if(oA[0]=RA($.Ea,OA),$.b=OA,mA=dA=xr(wA,1,0,vA,$.K)){var LA,GA=wA,xA=$,de=1<<(8>>xA.b),we=i(de);if(we==null)mA=0;else{var fe=xA.K[0],oe=xA.w;for(we[0]=xA.K[0][0],LA=1;LA<1*GA;++LA)we[LA]=QA(fe[oe+LA],we[LA-1]);for(;LA<4*de;++LA)we[LA]=0;xA.K[0]=null,xA.K[0]=we,mA=1}}dA=mA;break;case 2:break;default:A(0)}y=dA}}if(F=F[0],E=E[0],y&&hA(x,1)&&!(y=1<=(aA=hA(x,4))&&11>=aA)){p.a=3;break A}var be;if(be=y)e:{var ye,ne,$e,Pt=p,At=F,Ot=E,ve=aA,jt=f,Gt=Pt.m,at=Pt.s,ht=[null],_t=1,er=0,Sr=Vd[ve];t:for(;;){if(jt&&hA(Gt,1)){var ot=hA(Gt,3)+2,zr=RA(At,ot),jn=RA(Ot,ot),Ui=zr*jn;if(!xr(zr,jn,0,Pt,ht))break t;for(ht=ht[0],at.xc=ot,ye=0;ye<Ui;++ye){var hn=ht[ye]>>8&65535;ht[ye]=hn,hn>=_t&&(_t=hn+1)}}if(Gt.h)break t;for(ne=0;5>ne;++ne){var Me=gu[ne];!ne&&0<ve&&(Me+=1<<ve),er<Me&&(er=Me)}var Dl=a(_t*Sr,S),bu=_t,Uu=a(bu,M);if(Uu==null)var Da=null;else A(65536>=bu),Da=Uu;var bs=i(er);if(Da==null||bs==null||Dl==null){Pt.a=1;break t}var Ta=Dl;for(ye=$e=0;ye<_t;++ye){var Br=Da[ye],Li=Br.G,Ei=Br.H,Lu=0,Pa=1,Eu=0;for(ne=0;5>ne;++ne){Me=gu[ne],Li[ne]=Ta,Ei[ne]=$e,!ne&&0<ve&&(Me+=1<<ve);n:{var Oa,Tl=Me,ka=Pt,Us=bs,cg=Ta,ug=$e,Pl=0,dn=ka.m,fg=hA(dn,1);if(n(Us,0,0,Tl),fg){var hg=hA(dn,1)+1,dg=hA(dn,1),xu=hA(dn,dg==0?1:8);Us[xu]=1,hg==2&&(Us[xu=hA(dn,8)]=1);var Ma=1}else{var Iu=i(19),_u=hA(dn,4)+4;if(19<_u){ka.a=3;var Ka=0;break n}for(Oa=0;Oa<_u;++Oa)Iu[Kd[Oa]]=hA(dn,3);var Ol=void 0,Ls=void 0,Hu=ka,gg=Iu,Ra=Tl,Su=Us,kl=0,gn=Hu.m,Nu=8,Du=a(128,S);r:for(;I(Du,0,7,gg,19);){if(hA(gn,1)){var Bg=2+2*hA(gn,3);if((Ol=2+hA(gn,Bg))>Ra)break r}else Ol=Ra;for(Ls=0;Ls<Ra&&Ol--;){G(gn);var Tu=Du[0+(127&T(gn))];O(gn,gn.u+Tu.g);var xi=Tu.value;if(16>xi)Su[Ls++]=xi,xi!=0&&(Nu=xi);else{var pg=xi==16,Pu=xi-16,wg=kd[Pu],Ou=hA(gn,Od[Pu])+wg;if(Ls+Ou>Ra)break r;for(var vg=pg?Nu:0;0<Ou--;)Su[Ls++]=vg}}kl=1;break r}kl||(Hu.a=3),Ma=kl}(Ma=Ma&&!dn.h)&&(Pl=I(cg,ug,8,Us,Tl)),Ma&&Pl!=0?Ka=Pl:(ka.a=3,Ka=0)}if(Ka==0)break t;if(Pa&&Md[ne]==1&&(Pa=Ta[$e].g==0),Lu+=Ta[$e].g,$e+=Ka,3>=ne){var Es,Ml=bs[0];for(Es=1;Es<Me;++Es)bs[Es]>Ml&&(Ml=bs[Es]);Eu+=Ml}}if(Br.nd=Pa,Br.Qb=0,Pa&&(Br.qb=(Li[3][Ei[3]+0].value<<24|Li[1][Ei[1]+0].value<<16|Li[2][Ei[2]+0].value)>>>0,Lu==0&&256>Li[0][Ei[0]+0].value&&(Br.Qb=1,Br.qb+=Li[0][Ei[0]+0].value<<8)),Br.jc=!Br.Qb&&6>Eu,Br.jc){var Va,Yr=Br;for(Va=0;Va<ft;++Va){var Bn=Va,pn=Yr.pd[Bn],ja=Yr.G[0][Yr.H[0]+Bn];256<=ja.value?(pn.g=ja.g+256,pn.value=ja.value):(pn.g=0,pn.value=0,Bn>>=rt(ja,8,pn),Bn>>=rt(Yr.G[1][Yr.H[1]+Bn],16,pn),Bn>>=rt(Yr.G[2][Yr.H[2]+Bn],0,pn),rt(Yr.G[3][Yr.H[3]+Bn],24,pn))}}}at.vc=ht,at.Wb=_t,at.Ya=Da,at.yc=Dl,be=1;break e}be=0}if(!(y=be)){p.a=3;break A}if(0<aA){if(D.ua=1<<aA,!JA(D.Wa,aA)){p.a=1,y=0;break A}}else D.ua=0;var Kl=p,ku=F,mg=E,Rl=Kl.s,Vl=Rl.xc;if(Kl.c=ku,Kl.i=mg,Rl.md=RA(ku,Vl),Rl.wc=Vl==0?-1:(1<<Vl)-1,f){p.xb=Yd;break A}if((X=i(F*E))==null){p.a=1,y=0;break A}y=(y=ur(p,X,0,F,E,E,null))&&!x.h;break A}return y?(v!=null?v[0]=X:(A(X==null),A(f)),p.$=0,f||Er(D)):Er(D),y}function Nn(s,o){var f=s.c*s.i,p=f+o+16*o;return A(s.c<=o),s.V=i(p),s.V==null?(s.Ta=null,s.Ua=0,s.a=1,0):(s.Ta=s.V,s.Ua=s.Ba+f+o,1)}function ti(s,o){var f=s.C,p=o-f,v=s.V,y=s.Ba+s.c*f;for(A(o<=s.l.o);0<p;){var F=16<p?16:p,E=s.l.ma,x=s.l.width,D=x*F,X=E.ca,aA=E.tb+x*f,oA=s.Ta,eA=s.Ua;Kt(s,F,v,y),je(oA,eA,X,aA,D),lr(E,f,f+F,X,aA,x),p-=F,v+=F*s.c,f+=F}A(f==o),s.C=s.Ma=o}function ri(){this.ub=this.yd=this.td=this.Rb=0}function ni(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ii(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function ea(){this.Yb=function(){var s=[];return function o(f,p,v){for(var y=v[p],F=0;F<y&&(f.push(v.length>p+1?[]:0),!(v.length<p+1));F++)o(f[F],p+1,v)}(s,0,[3,11]),s}()}function tl(){this.jb=i(3),this.Wc=l([4,8],ea),this.Xc=l([4,17],ea)}function rl(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function si(){this.ld=this.La=this.dd=this.tc=0}function ta(){this.Na=this.la=0}function nl(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function $i(){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 il(){this.uc=this.M=this.Nb=0,this.wa=Array(new si),this.Y=0,this.ya=Array(new $i),this.aa=0,this.l=new ai}function ra(){this.y=i(16),this.f=i(8),this.ea=i(8)}function sl(){this.cb=this.a=0,this.sc="",this.m=new bA,this.Od=new ri,this.Kc=new ni,this.ed=new rl,this.Qa=new ii,this.Ic=this.$c=this.Aa=0,this.D=new il,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,bA),this.ia=0,this.pb=a(4,nl),this.Pa=new tl,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ra),this.Hd=0,this.rb=Array(new ta),this.sb=0,this.wa=Array(new si),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 $i),this.L=this.aa=0,this.gd=l([4,2],si),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 ai(){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 al(){var s=new sl;return s!=null&&(s.a=0,s.sc="OK",s.cb=0,s.Xb=0,Qs||(Qs=sa)),s}function Re(s,o,f){return s.a==0&&(s.a=o,s.sc=f,s.cb=0),0}function na(s,o,f){return 3<=f&&s[o+0]==157&&s[o+1]==1&&s[o+2]==42}function ia(s,o){if(s==null)return 0;if(s.a=0,s.sc="OK",o==null)return Re(s,2,"null VP8Io passed to VP8GetHeaders()");var f=o.data,p=o.w,v=o.ha;if(4>v)return Re(s,7,"Truncated header.");var y=f[p+0]|f[p+1]<<8|f[p+2]<<16,F=s.Od;if(F.Rb=!(1&y),F.td=y>>1&7,F.yd=y>>4&1,F.ub=y>>5,3<F.td)return Re(s,3,"Incorrect keyframe parameters.");if(!F.yd)return Re(s,4,"Frame not displayable.");p+=3,v-=3;var E=s.Kc;if(F.Rb){if(7>v)return Re(s,7,"cannot parse picture header");if(!na(f,p,v))return Re(s,3,"Bad code word");E.c=16383&(f[p+4]<<8|f[p+3]),E.Td=f[p+4]>>6,E.i=16383&(f[p+6]<<8|f[p+5]),E.Ud=f[p+6]>>6,p+=7,v-=7,s.za=E.c+15>>4,s.Ub=E.i+15>>4,o.width=E.c,o.height=E.i,o.Da=0,o.j=0,o.v=0,o.va=o.width,o.o=o.height,o.da=0,o.ib=o.width,o.hb=o.height,o.U=o.width,o.T=o.height,n((y=s.Pa).jb,0,255,y.jb.length),A((y=s.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,n(y.Zb,0,0,y.Zb.length),n(y.Lb,0,0,y.Lb)}if(F.ub>v)return Re(s,7,"bad partition length");lA(y=s.m,f,p,F.ub),p+=F.ub,v-=F.ub,F.Rb&&(E.Ld=sA(y),E.Kd=sA(y)),E=s.Qa;var x,D=s.Pa;if(A(y!=null),A(E!=null),E.Cb=sA(y),E.Cb){if(E.Bb=sA(y),sA(y)){for(E.Fb=sA(y),x=0;4>x;++x)E.Zb[x]=sA(y)?uA(y,7):0;for(x=0;4>x;++x)E.Lb[x]=sA(y)?uA(y,6):0}if(E.Bb)for(x=0;3>x;++x)D.jb[x]=sA(y)?iA(y,8):255}else E.Bb=0;if(y.Ka)return Re(s,3,"cannot parse segment header");if((E=s.ed).zd=sA(y),E.Tb=iA(y,6),E.wb=iA(y,3),E.Pc=sA(y),E.Pc&&sA(y)){for(D=0;4>D;++D)sA(y)&&(E.vd[D]=uA(y,6));for(D=0;4>D;++D)sA(y)&&(E.od[D]=uA(y,6))}if(s.L=E.Tb==0?0:E.zd?1:2,y.Ka)return Re(s,3,"cannot parse filter header");var X=v;if(v=x=p,p=x+X,E=X,s.Xb=(1<<iA(s.m,2))-1,X<3*(D=s.Xb))f=7;else{for(x+=3*D,E-=3*D,X=0;X<D;++X){var aA=f[v+0]|f[v+1]<<8|f[v+2]<<16;aA>E&&(aA=E),lA(s.Jc[+X],f,x,aA),x+=aA,E-=aA,v+=3}lA(s.Jc[+D],f,x,E),f=x<p?0:5}if(f!=0)return Re(s,f,"cannot parse partitions");for(f=iA(x=s.m,7),v=sA(x)?uA(x,4):0,p=sA(x)?uA(x,4):0,E=sA(x)?uA(x,4):0,D=sA(x)?uA(x,4):0,x=sA(x)?uA(x,4):0,X=s.Qa,aA=0;4>aA;++aA){if(X.Cb){var oA=X.Zb[aA];X.Fb||(oA+=f)}else{if(0<aA){s.pb[aA]=s.pb[0];continue}oA=f}var eA=s.pb[aA];eA.Sc[0]=Hl[Rt(oA+v,127)],eA.Sc[1]=Sl[Rt(oA+0,127)],eA.Eb[0]=2*Hl[Rt(oA+p,127)],eA.Eb[1]=101581*Sl[Rt(oA+E,127)]>>16,8>eA.Eb[1]&&(eA.Eb[1]=8),eA.Qc[0]=Hl[Rt(oA+D,117)],eA.Qc[1]=Sl[Rt(oA+x,127)],eA.lc=oA+x}if(!F.Rb)return Re(s,4,"Not a key frame.");for(sA(y),F=s.Pa,f=0;4>f;++f){for(v=0;8>v;++v)for(p=0;3>p;++p)for(E=0;11>E;++E)D=cA(y,Xd[f][v][p][E])?iA(y,8):Wd[f][v][p][E],F.Wc[f][v].Yb[p][E]=D;for(v=0;17>v;++v)F.Xc[f][v]=F.Wc[f][zd[v]]}return s.kc=sA(y),s.kc&&(s.Bd=iA(y,8)),s.cb=1}function sa(s,o,f,p,v,y,F){var E=o[v].Yb[f];for(f=0;16>v;++v){if(!cA(s,E[f+0]))return v;for(;!cA(s,E[f+1]);)if(E=o[++v].Yb[0],f=0,v==16)return 16;var x=o[v+1].Yb;if(cA(s,E[f+2])){var D=s,X=0;if(cA(D,(oA=E)[(aA=f)+3]))if(cA(D,oA[aA+6])){for(E=0,aA=2*(X=cA(D,oA[aA+8]))+(oA=cA(D,oA[aA+9+X])),X=0,oA=Gd[aA];oA[E];++E)X+=X+cA(D,oA[E]);X+=3+(8<<aA)}else cA(D,oA[aA+7])?(X=7+2*cA(D,165),X+=cA(D,145)):X=5+cA(D,159);else X=cA(D,oA[aA+4])?3+cA(D,oA[aA+5]):2;E=x[2]}else X=1,E=x[1];x=F+qd[v],0>(D=s).b&&AA(D);var aA,oA=D.b,eA=(aA=D.Ca>>1)-(D.I>>oA)>>31;--D.b,D.Ca+=eA,D.Ca|=1,D.I-=(aA+1&eA)<<oA,y[x]=((X^eA)-eA)*p[(0<v)+0]}return 16}function As(s){var o=s.rb[s.sb-1];o.la=0,o.Na=0,n(s.zc,0,0,s.zc.length),s.ja=0}function ol(s,o){if(s==null)return 0;if(o==null)return Re(s,2,"NULL VP8Io parameter in VP8Decode().");if(!s.cb&&!ia(s,o))return 0;if(A(s.cb),o.ac==null||o.ac(o)){o.ob&&(s.L=0);var f=Na[s.L];if(s.L==2?(s.yb=0,s.zb=0):(s.yb=o.v-f>>4,s.zb=o.j-f>>4,0>s.yb&&(s.yb=0),0>s.zb&&(s.zb=0)),s.Va=o.o+15+f>>4,s.Hb=o.va+15+f>>4,s.Hb>s.za&&(s.Hb=s.za),s.Va>s.Ub&&(s.Va=s.Ub),0<s.L){var p=s.ed;for(f=0;4>f;++f){var v;if(s.Qa.Cb){var y=s.Qa.Lb[f];s.Qa.Fb||(y+=p.Tb)}else y=p.Tb;for(v=0;1>=v;++v){var F=s.gd[f][v],E=y;if(p.Pc&&(E+=p.vd[0],v&&(E+=p.od[0])),0<(E=0>E?0:63<E?63:E)){var x=E;0<p.wb&&(x=4<p.wb?x>>2:x>>1)>9-p.wb&&(x=9-p.wb),1>x&&(x=1),F.dd=x,F.tc=2*E+x,F.ld=40<=E?2:15<=E?1:0}else F.tc=0;F.La=v}}}f=0}else Re(s,6,"Frame setup failed"),f=s.a;if(f=f==0){if(f){s.$c=0,0<s.Aa||(s.Ic=lg);A:{f=s.Ic,p=4*(x=s.za);var D=32*x,X=x+1,aA=0<s.L?x*(0<s.Aa?2:1):0,oA=(s.Aa==2?2:1)*x;if((F=p+832+(v=3*(16*f+Na[s.L])/2*D)+(y=s.Fa!=null&&0<s.Fa.length?s.Kc.c*s.Kc.i:0))!=F)f=0;else{if(F>s.Vb){if(s.Vb=0,s.Ec=i(F),s.Fc=0,s.Ec==null){f=Re(s,1,"no memory during frame initialization.");break A}s.Vb=F}F=s.Ec,E=s.Fc,s.Ac=F,s.Bc=E,E+=p,s.Gd=a(D,ra),s.Hd=0,s.rb=a(X+1,ta),s.sb=1,s.wa=aA?a(aA,si):null,s.Y=0,s.D.Nb=0,s.D.wa=s.wa,s.D.Y=s.Y,0<s.Aa&&(s.D.Y+=x),A(!0),s.oc=F,s.pc=E,E+=832,s.ya=a(oA,$i),s.aa=0,s.D.ya=s.ya,s.D.aa=s.aa,s.Aa==2&&(s.D.aa+=x),s.R=16*x,s.B=8*x,x=(D=Na[s.L])*s.R,D=D/2*s.B,s.sa=F,s.ta=E+x,s.qa=s.sa,s.ra=s.ta+16*f*s.R+D,s.Ha=s.qa,s.Ia=s.ra+8*f*s.B+D,s.$c=0,E+=v,s.mb=y?F:null,s.nb=y?E:null,A(E+y<=s.Fc+s.Vb),As(s),n(s.Ac,s.Bc,0,p),f=1}}if(f){if(o.ka=0,o.y=s.sa,o.O=s.ta,o.f=s.qa,o.N=s.ra,o.ea=s.Ha,o.Vd=s.Ia,o.fa=s.R,o.Rc=s.B,o.F=null,o.J=0,!ba){for(f=-255;255>=f;++f)nt[255+f]=0>f?-f:f;for(f=-1020;1020>=f;++f)Jr[1020+f]=-128>f?-128:127<f?127:f;for(f=-112;112>=f;++f)ys[112+f]=-16>f?-16:15<f?15:f;for(f=-255;510>=f;++f)bi[255+f]=0>f?0:255<f?255:f;ba=1}yi=ul,Wr=ll,vs=oa,It=cl,zt=la,Ve=aa,Qi=ss,Fa=Pn,ms=Fl,Mn=as,Kn=Ql,ln=hi,Rn=os,Fi=wa,Vn=pa,cn=_r,Cs=jr,Yt=yl,gr[0]=Ir,gr[1]=fl,gr[2]=Bl,gr[3]=pl,gr[4]=fa,gr[5]=ui,gr[6]=ha,gr[7]=rs,gr[8]=vl,gr[9]=wl,un[0]=ca,un[1]=dl,un[2]=Vr,un[3]=li,un[4]=wt,un[5]=gl,un[6]=ua,Xr[0]=rn,Xr[1]=hl,Xr[2]=ml,Xr[3]=ns,Xr[4]=Tn,Xr[5]=Cl,Xr[6]=is,f=1}else f=0}f&&(f=function(eA,vA){for(eA.M=0;eA.M<eA.Va;++eA.M){var dA,z=eA.Jc[eA.M&eA.Xb],$=eA.m,pA=eA;for(dA=0;dA<pA.za;++dA){var mA=$,wA=pA,OA=wA.Ac,LA=wA.Bc+4*dA,GA=wA.zc,xA=wA.ya[wA.aa+dA];if(wA.Qa.Bb?xA.$b=cA(mA,wA.Pa.jb[0])?2+cA(mA,wA.Pa.jb[2]):cA(mA,wA.Pa.jb[1]):xA.$b=0,wA.kc&&(xA.Ad=cA(mA,wA.Bd)),xA.Za=!cA(mA,145)+0,xA.Za){var de=xA.Ob,we=0;for(wA=0;4>wA;++wA){var fe,oe=GA[0+wA];for(fe=0;4>fe;++fe){oe=Jd[OA[LA+fe]][oe];for(var be=Bu[cA(mA,oe[0])];0<be;)be=Bu[2*be+cA(mA,oe[be])];oe=-be,OA[LA+fe]=oe}r(de,we,OA,LA,4),we+=4,GA[0+wA]=oe}}else oe=cA(mA,156)?cA(mA,128)?1:3:cA(mA,163)?2:0,xA.Ob[0]=oe,n(OA,LA,oe,4),n(GA,0,oe,4);xA.Dd=cA(mA,142)?cA(mA,114)?cA(mA,183)?1:3:2:0}if(pA.m.Ka)return Re(eA,7,"Premature end-of-partition0 encountered.");for(;eA.ja<eA.za;++eA.ja){if(pA=z,mA=($=eA).rb[$.sb-1],OA=$.rb[$.sb+$.ja],dA=$.ya[$.aa+$.ja],LA=$.kc?dA.Ad:0)mA.la=OA.la=0,dA.Za||(mA.Na=OA.Na=0),dA.Hc=0,dA.Gc=0,dA.ia=0;else{var ye,ne;if(mA=OA,OA=pA,LA=$.Pa.Xc,GA=$.ya[$.aa+$.ja],xA=$.pb[GA.$b],wA=GA.ad,de=0,we=$.rb[$.sb-1],oe=fe=0,n(wA,de,0,384),GA.Za)var $e=0,Pt=LA[3];else{be=i(16);var At=mA.Na+we.Na;if(At=Qs(OA,LA[1],At,xA.Eb,0,be,0),mA.Na=we.Na=(0<At)+0,1<At)yi(be,0,wA,de);else{var Ot=be[0]+3>>3;for(be=0;256>be;be+=16)wA[de+be]=Ot}$e=1,Pt=LA[0]}var ve=15&mA.la,jt=15&we.la;for(be=0;4>be;++be){var Gt=1&jt;for(Ot=ne=0;4>Ot;++Ot)ve=ve>>1|(Gt=(At=Qs(OA,Pt,At=Gt+(1&ve),xA.Sc,$e,wA,de))>$e)<<7,ne=ne<<2|(3<At?3:1<At?2:wA[de+0]!=0),de+=16;ve>>=4,jt=jt>>1|Gt<<7,fe=(fe<<8|ne)>>>0}for(Pt=ve,$e=jt>>4,ye=0;4>ye;ye+=2){for(ne=0,ve=mA.la>>4+ye,jt=we.la>>4+ye,be=0;2>be;++be){for(Gt=1&jt,Ot=0;2>Ot;++Ot)At=Gt+(1&ve),ve=ve>>1|(Gt=0<(At=Qs(OA,LA[2],At,xA.Qc,0,wA,de)))<<3,ne=ne<<2|(3<At?3:1<At?2:wA[de+0]!=0),de+=16;ve>>=2,jt=jt>>1|Gt<<5}oe|=ne<<4*ye,Pt|=ve<<4<<ye,$e|=(240&jt)<<ye}mA.la=Pt,we.la=$e,GA.Hc=fe,GA.Gc=oe,GA.ia=43690&oe?0:xA.ia,LA=!(fe|oe)}if(0<$.L&&($.wa[$.Y+$.ja]=$.gd[dA.$b][dA.Za],$.wa[$.Y+$.ja].La|=!LA),pA.Ka)return Re(eA,7,"Premature end-of-file encountered.")}if(As(eA),$=vA,pA=1,dA=(z=eA).D,mA=0<z.L&&z.M>=z.zb&&z.M<=z.Va,z.Aa==0)A:{if(dA.M=z.M,dA.uc=mA,ds(z,dA),pA=1,dA=(ne=z.D).Nb,mA=(oe=Na[z.L])*z.R,OA=oe/2*z.B,be=16*dA*z.R,Ot=8*dA*z.B,LA=z.sa,GA=z.ta-mA+be,xA=z.qa,wA=z.ra-OA+Ot,de=z.Ha,we=z.Ia-OA+Ot,jt=(ve=ne.M)==0,fe=ve>=z.Va-1,z.Aa==2&&ds(z,ne),ne.uc)for(Gt=(At=z).D.M,A(At.D.uc),ne=At.yb;ne<At.Hb;++ne){$e=ne,Pt=Gt;var at=(ht=(Me=At).D).Nb;ye=Me.R;var ht=ht.wa[ht.Y+$e],_t=Me.sa,er=Me.ta+16*at*ye+16*$e,Sr=ht.dd,ot=ht.tc;if(ot!=0)if(A(3<=ot),Me.L==1)0<$e&&cn(_t,er,ye,ot+4),ht.La&&Yt(_t,er,ye,ot),0<Pt&&Vn(_t,er,ye,ot+4),ht.La&&Cs(_t,er,ye,ot);else{var zr=Me.B,jn=Me.qa,Ui=Me.ra+8*at*zr+8*$e,hn=Me.Ha,Me=Me.Ia+8*at*zr+8*$e;at=ht.ld,0<$e&&(Fa(_t,er,ye,ot+4,Sr,at),Mn(jn,Ui,hn,Me,zr,ot+4,Sr,at)),ht.La&&(ln(_t,er,ye,ot,Sr,at),Fi(jn,Ui,hn,Me,zr,ot,Sr,at)),0<Pt&&(Qi(_t,er,ye,ot+4,Sr,at),ms(jn,Ui,hn,Me,zr,ot+4,Sr,at)),ht.La&&(Kn(_t,er,ye,ot,Sr,at),Rn(jn,Ui,hn,Me,zr,ot,Sr,at))}}if(z.ia&&alert("todo:DitherRow"),$.put!=null){if(ne=16*ve,ve=16*(ve+1),jt?($.y=z.sa,$.O=z.ta+be,$.f=z.qa,$.N=z.ra+Ot,$.ea=z.Ha,$.W=z.Ia+Ot):(ne-=oe,$.y=LA,$.O=GA,$.f=xA,$.N=wA,$.ea=de,$.W=we),fe||(ve-=oe),ve>$.o&&(ve=$.o),$.F=null,$.J=null,z.Fa!=null&&0<z.Fa.length&&ne<ve&&($.J=fs(z,$,ne,ve-ne),$.F=z.mb,$.F==null&&$.F.length==0)){pA=Re(z,3,"Could not decode alpha data.");break A}ne<$.j&&(oe=$.j-ne,ne=$.j,A(!(1&oe)),$.O+=z.R*oe,$.N+=z.B*(oe>>1),$.W+=z.B*(oe>>1),$.F!=null&&($.J+=$.width*oe)),ne<ve&&($.O+=$.v,$.N+=$.v>>1,$.W+=$.v>>1,$.F!=null&&($.J+=$.v),$.ka=ne-$.j,$.U=$.va-$.v,$.T=ve-ne,pA=$.put($))}dA+1!=z.Ic||fe||(r(z.sa,z.ta-mA,LA,GA+16*z.R,mA),r(z.qa,z.ra-OA,xA,wA+8*z.B,OA),r(z.Ha,z.Ia-OA,de,we+8*z.B,OA))}if(!pA)return Re(eA,6,"Output aborted.")}return 1}(s,o)),o.bc!=null&&o.bc(o),f&=1}return f?(s.cb=0,f):0}function fr(s,o,f,p,v){v=s[o+f+32*p]+(v>>3),s[o+f+32*p]=-256&v?0>v?0:255:v}function oi(s,o,f,p,v,y){fr(s,o,0,f,p+v),fr(s,o,1,f,p+y),fr(s,o,2,f,p-y),fr(s,o,3,f,p-v)}function Nt(s){return(20091*s>>16)+s}function es(s,o,f,p){var v,y=0,F=i(16);for(v=0;4>v;++v){var E=s[o+0]+s[o+8],x=s[o+0]-s[o+8],D=(35468*s[o+4]>>16)-Nt(s[o+12]),X=Nt(s[o+4])+(35468*s[o+12]>>16);F[y+0]=E+X,F[y+1]=x+D,F[y+2]=x-D,F[y+3]=E-X,y+=4,o++}for(v=y=0;4>v;++v)E=(s=F[y+0]+4)+F[y+8],x=s-F[y+8],D=(35468*F[y+4]>>16)-Nt(F[y+12]),fr(f,p,0,0,E+(X=Nt(F[y+4])+(35468*F[y+12]>>16))),fr(f,p,1,0,x+D),fr(f,p,2,0,x-D),fr(f,p,3,0,E-X),y++,p+=32}function aa(s,o,f,p){var v=s[o+0]+4,y=35468*s[o+4]>>16,F=Nt(s[o+4]),E=35468*s[o+1]>>16;oi(f,p,0,v+F,s=Nt(s[o+1]),E),oi(f,p,1,v+y,s,E),oi(f,p,2,v-y,s,E),oi(f,p,3,v-F,s,E)}function ll(s,o,f,p,v){es(s,o,f,p),v&&es(s,o+16,f,p+4)}function oa(s,o,f,p){Wr(s,o+0,f,p,1),Wr(s,o+32,f,p+128,1)}function cl(s,o,f,p){var v;for(s=s[o+0]+4,v=0;4>v;++v)for(o=0;4>o;++o)fr(f,p,o,v,s)}function la(s,o,f,p){s[o+0]&&It(s,o+0,f,p),s[o+16]&&It(s,o+16,f,p+4),s[o+32]&&It(s,o+32,f,p+128),s[o+48]&&It(s,o+48,f,p+128+4)}function ul(s,o,f,p){var v,y=i(16);for(v=0;4>v;++v){var F=s[o+0+v]+s[o+12+v],E=s[o+4+v]+s[o+8+v],x=s[o+4+v]-s[o+8+v],D=s[o+0+v]-s[o+12+v];y[0+v]=F+E,y[8+v]=F-E,y[4+v]=D+x,y[12+v]=D-x}for(v=0;4>v;++v)F=(s=y[0+4*v]+3)+y[3+4*v],E=y[1+4*v]+y[2+4*v],x=y[1+4*v]-y[2+4*v],D=s-y[3+4*v],f[p+0]=F+E>>3,f[p+16]=D+x>>3,f[p+32]=F-E>>3,f[p+48]=D-x>>3,p+=64}function ts(s,o,f){var p,v=o-32,y=Vt,F=255-s[v-1];for(p=0;p<f;++p){var E,x=y,D=F+s[o-1];for(E=0;E<f;++E)s[o+E]=x[D+s[v+E]];o+=32}}function fl(s,o){ts(s,o,4)}function hl(s,o){ts(s,o,8)}function dl(s,o){ts(s,o,16)}function Vr(s,o){var f;for(f=0;16>f;++f)r(s,o+32*f,s,o-32,16)}function li(s,o){var f;for(f=16;0<f;--f)n(s,o,s[o-1],16),o+=32}function ci(s,o,f){var p;for(p=0;16>p;++p)n(o,f+32*p,s,16)}function ca(s,o){var f,p=16;for(f=0;16>f;++f)p+=s[o-1+32*f]+s[o+f-32];ci(p>>5,s,o)}function wt(s,o){var f,p=8;for(f=0;16>f;++f)p+=s[o-1+32*f];ci(p>>4,s,o)}function gl(s,o){var f,p=8;for(f=0;16>f;++f)p+=s[o+f-32];ci(p>>4,s,o)}function ua(s,o){ci(128,s,o)}function YA(s,o,f){return s+2*o+f+2>>2}function Bl(s,o){var f,p=o-32;for(p=new Uint8Array([YA(s[p-1],s[p+0],s[p+1]),YA(s[p+0],s[p+1],s[p+2]),YA(s[p+1],s[p+2],s[p+3]),YA(s[p+2],s[p+3],s[p+4])]),f=0;4>f;++f)r(s,o+32*f,p,0,p.length)}function pl(s,o){var f=s[o-1],p=s[o-1+32],v=s[o-1+64],y=s[o-1+96];yA(s,o+0,16843009*YA(s[o-1-32],f,p)),yA(s,o+32,16843009*YA(f,p,v)),yA(s,o+64,16843009*YA(p,v,y)),yA(s,o+96,16843009*YA(v,y,y))}function Ir(s,o){var f,p=4;for(f=0;4>f;++f)p+=s[o+f-32]+s[o-1+32*f];for(p>>=3,f=0;4>f;++f)n(s,o+32*f,p,4)}function fa(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1-32],F=s[o+0-32],E=s[o+1-32],x=s[o+2-32],D=s[o+3-32];s[o+0+96]=YA(p,v,s[o-1+96]),s[o+1+96]=s[o+0+64]=YA(f,p,v),s[o+2+96]=s[o+1+64]=s[o+0+32]=YA(y,f,p),s[o+3+96]=s[o+2+64]=s[o+1+32]=s[o+0+0]=YA(F,y,f),s[o+3+64]=s[o+2+32]=s[o+1+0]=YA(E,F,y),s[o+3+32]=s[o+2+0]=YA(x,E,F),s[o+3+0]=YA(D,x,E)}function ha(s,o){var f=s[o+1-32],p=s[o+2-32],v=s[o+3-32],y=s[o+4-32],F=s[o+5-32],E=s[o+6-32],x=s[o+7-32];s[o+0+0]=YA(s[o+0-32],f,p),s[o+1+0]=s[o+0+32]=YA(f,p,v),s[o+2+0]=s[o+1+32]=s[o+0+64]=YA(p,v,y),s[o+3+0]=s[o+2+32]=s[o+1+64]=s[o+0+96]=YA(v,y,F),s[o+3+32]=s[o+2+64]=s[o+1+96]=YA(y,F,E),s[o+3+64]=s[o+2+96]=YA(F,E,x),s[o+3+96]=YA(E,x,x)}function ui(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1-32],F=s[o+0-32],E=s[o+1-32],x=s[o+2-32],D=s[o+3-32];s[o+0+0]=s[o+1+64]=y+F+1>>1,s[o+1+0]=s[o+2+64]=F+E+1>>1,s[o+2+0]=s[o+3+64]=E+x+1>>1,s[o+3+0]=x+D+1>>1,s[o+0+96]=YA(v,p,f),s[o+0+64]=YA(p,f,y),s[o+0+32]=s[o+1+96]=YA(f,y,F),s[o+1+32]=s[o+2+96]=YA(y,F,E),s[o+2+32]=s[o+3+96]=YA(F,E,x),s[o+3+32]=YA(E,x,D)}function rs(s,o){var f=s[o+0-32],p=s[o+1-32],v=s[o+2-32],y=s[o+3-32],F=s[o+4-32],E=s[o+5-32],x=s[o+6-32],D=s[o+7-32];s[o+0+0]=f+p+1>>1,s[o+1+0]=s[o+0+64]=p+v+1>>1,s[o+2+0]=s[o+1+64]=v+y+1>>1,s[o+3+0]=s[o+2+64]=y+F+1>>1,s[o+0+32]=YA(f,p,v),s[o+1+32]=s[o+0+96]=YA(p,v,y),s[o+2+32]=s[o+1+96]=YA(v,y,F),s[o+3+32]=s[o+2+96]=YA(y,F,E),s[o+3+64]=YA(F,E,x),s[o+3+96]=YA(E,x,D)}function wl(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1+96];s[o+0+0]=f+p+1>>1,s[o+2+0]=s[o+0+32]=p+v+1>>1,s[o+2+32]=s[o+0+64]=v+y+1>>1,s[o+1+0]=YA(f,p,v),s[o+3+0]=s[o+1+32]=YA(p,v,y),s[o+3+32]=s[o+1+64]=YA(v,y,y),s[o+3+64]=s[o+2+64]=s[o+0+96]=s[o+1+96]=s[o+2+96]=s[o+3+96]=y}function vl(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1+96],F=s[o-1-32],E=s[o+0-32],x=s[o+1-32],D=s[o+2-32];s[o+0+0]=s[o+2+32]=f+F+1>>1,s[o+0+32]=s[o+2+64]=p+f+1>>1,s[o+0+64]=s[o+2+96]=v+p+1>>1,s[o+0+96]=y+v+1>>1,s[o+3+0]=YA(E,x,D),s[o+2+0]=YA(F,E,x),s[o+1+0]=s[o+3+32]=YA(f,F,E),s[o+1+32]=s[o+3+64]=YA(p,f,F),s[o+1+64]=s[o+3+96]=YA(v,p,f),s[o+1+96]=YA(y,v,p)}function ml(s,o){var f;for(f=0;8>f;++f)r(s,o+32*f,s,o-32,8)}function ns(s,o){var f;for(f=0;8>f;++f)n(s,o,s[o-1],8),o+=32}function Dn(s,o,f){var p;for(p=0;8>p;++p)n(o,f+32*p,s,8)}function rn(s,o){var f,p=8;for(f=0;8>f;++f)p+=s[o+f-32]+s[o-1+32*f];Dn(p>>4,s,o)}function Cl(s,o){var f,p=4;for(f=0;8>f;++f)p+=s[o+f-32];Dn(p>>3,s,o)}function Tn(s,o){var f,p=4;for(f=0;8>f;++f)p+=s[o-1+32*f];Dn(p>>3,s,o)}function is(s,o){Dn(128,s,o)}function fi(s,o,f){var p=s[o-f],v=s[o+0],y=3*(v-p)+Ll[1020+s[o-2*f]-s[o+f]],F=Ua[112+(y+4>>3)];s[o-f]=Vt[255+p+Ua[112+(y+3>>3)]],s[o+0]=Vt[255+v-F]}function da(s,o,f,p){var v=s[o+0],y=s[o+f];return $t[255+s[o-2*f]-s[o-f]]>p||$t[255+y-v]>p}function ga(s,o,f,p){return 4*$t[255+s[o-f]-s[o+0]]+$t[255+s[o-2*f]-s[o+f]]<=p}function Ba(s,o,f,p,v){var y=s[o-3*f],F=s[o-2*f],E=s[o-f],x=s[o+0],D=s[o+f],X=s[o+2*f],aA=s[o+3*f];return 4*$t[255+E-x]+$t[255+F-D]>p?0:$t[255+s[o-4*f]-y]<=v&&$t[255+y-F]<=v&&$t[255+F-E]<=v&&$t[255+aA-X]<=v&&$t[255+X-D]<=v&&$t[255+D-x]<=v}function pa(s,o,f,p){var v=2*p+1;for(p=0;16>p;++p)ga(s,o+p,f,v)&&fi(s,o+p,f)}function _r(s,o,f,p){var v=2*p+1;for(p=0;16>p;++p)ga(s,o+p*f,1,v)&&fi(s,o+p*f,1)}function jr(s,o,f,p){var v;for(v=3;0<v;--v)pa(s,o+=4*f,f,p)}function yl(s,o,f,p){var v;for(v=3;0<v;--v)_r(s,o+=4,f,p)}function nn(s,o,f,p,v,y,F,E){for(y=2*y+1;0<v--;){if(Ba(s,o,f,y,F))if(da(s,o,f,E))fi(s,o,f);else{var x=s,D=o,X=f,aA=x[D-2*X],oA=x[D-X],eA=x[D+0],vA=x[D+X],dA=x[D+2*X],z=27*(pA=Ll[1020+3*(eA-oA)+Ll[1020+aA-vA]])+63>>7,$=18*pA+63>>7,pA=9*pA+63>>7;x[D-3*X]=Vt[255+x[D-3*X]+pA],x[D-2*X]=Vt[255+aA+$],x[D-X]=Vt[255+oA+z],x[D+0]=Vt[255+eA-z],x[D+X]=Vt[255+vA-$],x[D+2*X]=Vt[255+dA-pA]}o+=p}}function hr(s,o,f,p,v,y,F,E){for(y=2*y+1;0<v--;){if(Ba(s,o,f,y,F))if(da(s,o,f,E))fi(s,o,f);else{var x=s,D=o,X=f,aA=x[D-X],oA=x[D+0],eA=x[D+X],vA=Ua[112+((dA=3*(oA-aA))+4>>3)],dA=Ua[112+(dA+3>>3)],z=vA+1>>1;x[D-2*X]=Vt[255+x[D-2*X]+z],x[D-X]=Vt[255+aA+dA],x[D+0]=Vt[255+oA-vA],x[D+X]=Vt[255+eA-z]}o+=p}}function ss(s,o,f,p,v,y){nn(s,o,f,1,16,p,v,y)}function Pn(s,o,f,p,v,y){nn(s,o,1,f,16,p,v,y)}function Ql(s,o,f,p,v,y){var F;for(F=3;0<F;--F)hr(s,o+=4*f,f,1,16,p,v,y)}function hi(s,o,f,p,v,y){var F;for(F=3;0<F;--F)hr(s,o+=4,1,f,16,p,v,y)}function Fl(s,o,f,p,v,y,F,E){nn(s,o,v,1,8,y,F,E),nn(f,p,v,1,8,y,F,E)}function as(s,o,f,p,v,y,F,E){nn(s,o,1,v,8,y,F,E),nn(f,p,1,v,8,y,F,E)}function os(s,o,f,p,v,y,F,E){hr(s,o+4*v,v,1,8,y,F,E),hr(f,p+4*v,v,1,8,y,F,E)}function wa(s,o,f,p,v,y,F,E){hr(s,o+4,1,v,8,y,F,E),hr(f,p+4,1,v,8,y,F,E)}function di(){this.ba=new ar,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Oe,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ls(){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 cs(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function va(){this.ua=0,this.Wa=new K,this.vb=new K,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new M,this.yc=new S}function bl(){this.xb=this.a=0,this.l=new ai,this.ca=new ar,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new va,this.ab=0,this.gc=a(4,cs),this.Oc=0}function gi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ai,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function On(s,o,f,p,v,y,F){for(s=s==null?0:s[o+0],o=0;o<F;++o)v[y+o]=s+f[p+o]&255,s=v[y+o]}function us(s,o,f,p,v,y,F){var E;if(s==null)On(null,null,f,p,v,y,F);else for(E=0;E<F;++E)v[y+E]=s[o+E]+f[p+E]&255}function sn(s,o,f,p,v,y,F){if(s==null)On(null,null,f,p,v,y,F);else{var E,x=s[o+0],D=x,X=x;for(E=0;E<F;++E)D=X+(x=s[o+E])-D,X=f[p+E]+(-256&D?0>D?0:255:D)&255,D=x,v[y+E]=X}}function fs(s,o,f,p){var v=o.width,y=o.o;if(A(s!=null&&o!=null),0>f||0>=p||f+p>y)return null;if(!s.Cc){if(s.ga==null){var F;if(s.ga=new gi,(F=s.ga==null)||(F=o.width*o.o,A(s.Gb.length==0),s.Gb=i(F),s.Uc=0,s.Gb==null?F=0:(s.mb=s.Gb,s.nb=s.Uc,s.rc=null,F=1),F=!F),!F){F=s.ga;var E=s.Fa,x=s.P,D=s.qc,X=s.mb,aA=s.nb,oA=x+1,eA=D-1,vA=F.l;if(A(E!=null&&X!=null&&o!=null),fn[0]=null,fn[1]=On,fn[2]=us,fn[3]=sn,F.ca=X,F.tb=aA,F.c=o.width,F.i=o.height,A(0<F.c&&0<F.i),1>=D)o=0;else if(F.$a=E[x+0]>>0&3,F.Z=E[x+0]>>2&3,F.Lc=E[x+0]>>4&3,x=E[x+0]>>6&3,0>F.$a||1<F.$a||4<=F.Z||1<F.Lc||x)o=0;else if(vA.put=br,vA.ac=ut,vA.bc=Ur,vA.ma=F,vA.width=o.width,vA.height=o.height,vA.Da=o.Da,vA.v=o.v,vA.va=o.va,vA.j=o.j,vA.o=o.o,F.$a)A:{A(F.$a==1),o=Jt();e:for(;;){if(o==null){o=0;break A}if(A(F!=null),F.mc=o,o.c=F.c,o.i=F.i,o.l=F.l,o.l.ma=F,o.l.width=F.c,o.l.height=F.i,o.a=0,tA(o.m,E,oA,eA),!xr(F.c,F.i,1,o,null)||(o.ab==1&&o.gc[0].hc==3&&Rr(o.s)?(F.ic=1,E=o.c*o.i,o.Ta=null,o.Ua=0,o.V=i(E),o.Ba=0,o.V==null?(o.a=1,o=0):o=1):(F.ic=0,o=Nn(o,F.c)),!o))break e;o=1;break A}F.mc=null,o=0}else o=eA>=F.c*F.i;F=!o}if(F)return null;s.ga.Lc!=1?s.Ga=0:p=y-f}A(s.ga!=null),A(f+p<=y);A:{if(o=(E=s.ga).c,y=E.l.o,E.$a==0){if(oA=s.rc,eA=s.Vc,vA=s.Fa,x=s.P+1+f*o,D=s.mb,X=s.nb+f*o,A(x<=s.P+s.qc),E.Z!=0)for(A(fn[E.Z]!=null),F=0;F<p;++F)fn[E.Z](oA,eA,vA,x,D,X,o),oA=D,eA=X,X+=o,x+=o;else for(F=0;F<p;++F)r(D,X,vA,x,o),oA=D,eA=X,X+=o,x+=o;s.rc=oA,s.Vc=eA}else{if(A(E.mc!=null),o=f+p,A((F=E.mc)!=null),A(o<=F.i),F.C>=o)o=1;else if(E.ic||rA(),E.ic){E=F.V,oA=F.Ba,eA=F.c;var dA=F.i,z=(vA=1,x=F.$/eA,D=F.$%eA,X=F.m,aA=F.s,F.$),$=eA*dA,pA=eA*o,mA=aA.wc,wA=z<pA?Ye(aA,D,x):null;A(z<=$),A(o<=dA),A(Rr(aA));e:for(;;){for(;!X.h&&z<pA;){if(D&mA||(wA=Ye(aA,D,x)),A(wA!=null),G(X),256>(dA=St(wA.G[0],wA.H[0],X)))E[oA+z]=dA,++z,++D>=eA&&(D=0,++x<=o&&!(x%16)&&cr(F,x));else{if(!(280>dA)){vA=0;break e}dA=or(dA-256,X);var OA,LA=St(wA.G[4],wA.H[4],X);if(G(X),!(z>=(LA=Lr(eA,LA=or(LA,X)))&&$-z>=dA)){vA=0;break e}for(OA=0;OA<dA;++OA)E[oA+z+OA]=E[oA+z+OA-LA];for(z+=dA,D+=dA;D>=eA;)D-=eA,++x<=o&&!(x%16)&&cr(F,x);z<pA&&D&mA&&(wA=Ye(aA,D,x))}A(X.h==U(X))}cr(F,x>o?o:x);break e}!vA||X.h&&z<$?(vA=0,F.a=X.h?5:3):F.$=z,o=vA}else o=ur(F,F.V,F.Ba,F.c,F.i,o,ti);if(!o){p=0;break A}}f+p>=y&&(s.Cc=1),p=1}if(!p)return null;if(s.Cc&&((p=s.ga)!=null&&(p.mc=null),s.ga=null,0<s.Ga))return alert("todo:WebPDequantizeLevels"),null}return s.nb+f*v}function u(s,o,f,p,v,y){for(;0<v--;){var F,E=s,x=o+(f?1:0),D=s,X=o+(f?0:3);for(F=0;F<p;++F){var aA=D[X+4*F];aA!=255&&(aA*=32897,E[x+4*F+0]=E[x+4*F+0]*aA>>23,E[x+4*F+1]=E[x+4*F+1]*aA>>23,E[x+4*F+2]=E[x+4*F+2]*aA>>23)}o+=y}}function m(s,o,f,p,v){for(;0<p--;){var y;for(y=0;y<f;++y){var F=s[o+2*y+0],E=15&(D=s[o+2*y+1]),x=4369*E,D=(240&D|D>>4)*x>>16;s[o+2*y+0]=(240&F|F>>4)*x>>16&240|(15&F|F<<4)*x>>16>>4&15,s[o+2*y+1]=240&D|E}o+=v}}function P(s,o,f,p,v,y,F,E){var x,D,X=255;for(D=0;D<v;++D){for(x=0;x<p;++x){var aA=s[o+x];y[F+4*x]=aA,X&=aA}o+=f,F+=E}return X!=255}function W(s,o,f,p,v){var y;for(y=0;y<v;++y)f[p+y]=s[o+y]>>8}function rA(){Zt=u,Ee=m,xe=P,je=W}function gA(s,o,f){k[s]=function(p,v,y,F,E,x,D,X,aA,oA,eA,vA,dA,z,$,pA,mA){var wA,OA=mA-1>>1,LA=E[x+0]|D[X+0]<<16,GA=aA[oA+0]|eA[vA+0]<<16;A(p!=null);var xA=3*LA+GA+131074>>2;for(o(p[v+0],255&xA,xA>>16,dA,z),y!=null&&(xA=3*GA+LA+131074>>2,o(y[F+0],255&xA,xA>>16,$,pA)),wA=1;wA<=OA;++wA){var de=E[x+wA]|D[X+wA]<<16,we=aA[oA+wA]|eA[vA+wA]<<16,fe=LA+de+GA+we+524296,oe=fe+2*(de+GA)>>3;xA=oe+LA>>1,LA=(fe=fe+2*(LA+we)>>3)+de>>1,o(p[v+2*wA-1],255&xA,xA>>16,dA,z+(2*wA-1)*f),o(p[v+2*wA-0],255&LA,LA>>16,dA,z+(2*wA-0)*f),y!=null&&(xA=fe+GA>>1,LA=oe+we>>1,o(y[F+2*wA-1],255&xA,xA>>16,$,pA+(2*wA-1)*f),o(y[F+2*wA+0],255&LA,LA>>16,$,pA+(2*wA+0)*f)),LA=de,GA=we}1&mA||(xA=3*LA+GA+131074>>2,o(p[v+mA-1],255&xA,xA>>16,dA,z+(mA-1)*f),y!=null&&(xA=3*GA+LA+131074>>2,o(y[F+mA-1],255&xA,xA>>16,$,pA+(mA-1)*f)))}}function CA(){Ar[La]=Zd,Ar[Ea]=wu,Ar[hu]=$d,Ar[xa]=vu,Ar[Ia]=mu,Ar[El]=Cu,Ar[du]=Ag,Ar[xl]=wu,Ar[Il]=vu,Ar[_a]=mu,Ar[_l]=Cu}function PA(s){return s&-16384?0>s?0:255:s>>eg}function jA(s,o){return PA((19077*s>>8)+(26149*o>>8)-14234)}function re(s,o,f){return PA((19077*s>>8)-(6419*o>>8)-(13320*f>>8)+8708)}function Ae(s,o){return PA((19077*s>>8)+(33050*o>>8)-17685)}function ce(s,o,f,p,v){p[v+0]=jA(s,f),p[v+1]=re(s,o,f),p[v+2]=Ae(s,o)}function Te(s,o,f,p,v){p[v+0]=Ae(s,o),p[v+1]=re(s,o,f),p[v+2]=jA(s,f)}function ke(s,o,f,p,v){var y=re(s,o,f);o=y<<3&224|Ae(s,o)>>3,p[v+0]=248&jA(s,f)|y>>5,p[v+1]=o}function Ze(s,o,f,p,v){var y=240&Ae(s,o)|15;p[v+0]=240&jA(s,f)|re(s,o,f)>>4,p[v+1]=y}function vt(s,o,f,p,v){p[v+0]=255,ce(s,o,f,p,v+1)}function st(s,o,f,p,v){Te(s,o,f,p,v),p[v+3]=255}function dr(s,o,f,p,v){ce(s,o,f,p,v),p[v+3]=255}function Rt(s,o){return 0>s?0:s>o?o:s}function Hr(s,o,f){k[s]=function(p,v,y,F,E,x,D,X,aA){for(var oA=X+(-2&aA)*f;X!=oA;)o(p[v+0],y[F+0],E[x+0],D,X),o(p[v+1],y[F+0],E[x+0],D,X+f),v+=2,++F,++x,X+=2*f;1&aA&&o(p[v+0],y[F+0],E[x+0],D,X)}}function ma(s,o,f){return f==0?s==0?o==0?6:5:o==0?4:0:f}function hs(s,o,f,p,v){switch(s>>>30){case 3:Wr(o,f,p,v,0);break;case 2:Ve(o,f,p,v);break;case 1:It(o,f,p,v)}}function ds(s,o){var f,p,v=o.M,y=o.Nb,F=s.oc,E=s.pc+40,x=s.oc,D=s.pc+584,X=s.oc,aA=s.pc+600;for(f=0;16>f;++f)F[E+32*f-1]=129;for(f=0;8>f;++f)x[D+32*f-1]=129,X[aA+32*f-1]=129;for(0<v?F[E-1-32]=x[D-1-32]=X[aA-1-32]=129:(n(F,E-32-1,127,21),n(x,D-32-1,127,9),n(X,aA-32-1,127,9)),p=0;p<s.za;++p){var oA=o.ya[o.aa+p];if(0<p){for(f=-1;16>f;++f)r(F,E+32*f-4,F,E+32*f+12,4);for(f=-1;8>f;++f)r(x,D+32*f-4,x,D+32*f+4,4),r(X,aA+32*f-4,X,aA+32*f+4,4)}var eA=s.Gd,vA=s.Hd+p,dA=oA.ad,z=oA.Hc;if(0<v&&(r(F,E-32,eA[vA].y,0,16),r(x,D-32,eA[vA].f,0,8),r(X,aA-32,eA[vA].ea,0,8)),oA.Za){var $=F,pA=E-32+16;for(0<v&&(p>=s.za-1?n($,pA,eA[vA].y[15],4):r($,pA,eA[vA+1].y,0,4)),f=0;4>f;f++)$[pA+128+f]=$[pA+256+f]=$[pA+384+f]=$[pA+0+f];for(f=0;16>f;++f,z<<=2)$=F,pA=E+Qu[f],gr[oA.Ob[f]]($,pA),hs(z,dA,16*+f,$,pA)}else if($=ma(p,v,oA.Ob[0]),un[$](F,E),z!=0)for(f=0;16>f;++f,z<<=2)hs(z,dA,16*+f,F,E+Qu[f]);for(f=oA.Gc,$=ma(p,v,oA.Dd),Xr[$](x,D),Xr[$](X,aA),z=dA,$=x,pA=D,255&(oA=f>>0)&&(170&oA?vs(z,256,$,pA):zt(z,256,$,pA)),oA=X,z=aA,255&(f>>=8)&&(170&f?vs(dA,320,oA,z):zt(dA,320,oA,z)),v<s.Ub-1&&(r(eA[vA].y,0,F,E+480,16),r(eA[vA].f,0,x,D+224,8),r(eA[vA].ea,0,X,aA+224,8)),f=8*y*s.B,eA=s.sa,vA=s.ta+16*p+16*y*s.R,dA=s.qa,oA=s.ra+8*p+f,z=s.Ha,$=s.Ia+8*p+f,f=0;16>f;++f)r(eA,vA+f*s.R,F,E+32*f,16);for(f=0;8>f;++f)r(dA,oA+f*s.B,x,D+32*f,8),r(z,$+f*s.B,X,aA+32*f,8)}}function Bi(s,o,f,p,v,y,F,E,x){var D=[0],X=[0],aA=0,oA=x!=null?x.kd:0,eA=x??new ls;if(s==null||12>f)return 7;eA.data=s,eA.w=o,eA.ha=f,o=[o],f=[f],eA.gb=[eA.gb];A:{var vA=o,dA=f,z=eA.gb;if(A(s!=null),A(dA!=null),A(z!=null),z[0]=0,12<=dA[0]&&!t(s,vA[0],"RIFF")){if(t(s,vA[0]+8,"WEBP")){z=3;break A}var $=EA(s,vA[0]+4);if(12>$||4294967286<$){z=3;break A}if(oA&&$>dA[0]-8){z=7;break A}z[0]=$,vA[0]+=12,dA[0]-=12}z=0}if(z!=0)return z;for($=0<eA.gb[0],f=f[0];;){A:{var pA=s;dA=o,z=f;var mA=D,wA=X,OA=vA=[0];if((xA=aA=[aA])[0]=0,8>z[0])z=7;else{if(!t(pA,dA[0],"VP8X")){if(EA(pA,dA[0]+4)!=10){z=3;break A}if(18>z[0]){z=7;break A}var LA=EA(pA,dA[0]+8),GA=1+HA(pA,dA[0]+12);if(2147483648<=GA*(pA=1+HA(pA,dA[0]+15))){z=3;break A}OA!=null&&(OA[0]=LA),mA!=null&&(mA[0]=GA),wA!=null&&(wA[0]=pA),dA[0]+=18,z[0]-=18,xA[0]=1}z=0}}if(aA=aA[0],vA=vA[0],z!=0)return z;if(dA=!!(2&vA),!$&&aA)return 3;if(y!=null&&(y[0]=!!(16&vA)),F!=null&&(F[0]=dA),E!=null&&(E[0]=0),F=D[0],vA=X[0],aA&&dA&&x==null){z=0;break}if(4>f){z=7;break}if($&&aA||!$&&!aA&&!t(s,o[0],"ALPH")){f=[f],eA.na=[eA.na],eA.P=[eA.P],eA.Sa=[eA.Sa];A:{LA=s,z=o,$=f;var xA=eA.gb;mA=eA.na,wA=eA.P,OA=eA.Sa,GA=22,A(LA!=null),A($!=null),pA=z[0];var de=$[0];for(A(mA!=null),A(OA!=null),mA[0]=null,wA[0]=null,OA[0]=0;;){if(z[0]=pA,$[0]=de,8>de){z=7;break A}var we=EA(LA,pA+4);if(4294967286<we){z=3;break A}var fe=8+we+1&-2;if(GA+=fe,0<xA&&GA>xA){z=3;break A}if(!t(LA,pA,"VP8 ")||!t(LA,pA,"VP8L")){z=0;break A}if(de[0]<fe){z=7;break A}t(LA,pA,"ALPH")||(mA[0]=LA,wA[0]=pA+8,OA[0]=we),pA+=fe,de-=fe}}if(f=f[0],eA.na=eA.na[0],eA.P=eA.P[0],eA.Sa=eA.Sa[0],z!=0)break}f=[f],eA.Ja=[eA.Ja],eA.xa=[eA.xa];A:if(xA=s,z=o,$=f,mA=eA.gb[0],wA=eA.Ja,OA=eA.xa,LA=z[0],pA=!t(xA,LA,"VP8 "),GA=!t(xA,LA,"VP8L"),A(xA!=null),A($!=null),A(wA!=null),A(OA!=null),8>$[0])z=7;else{if(pA||GA){if(xA=EA(xA,LA+4),12<=mA&&xA>mA-12){z=3;break A}if(oA&&xA>$[0]-8){z=7;break A}wA[0]=xA,z[0]+=8,$[0]-=8,OA[0]=GA}else OA[0]=5<=$[0]&&xA[LA+0]==47&&!(xA[LA+4]>>5),wA[0]=$[0];z=0}if(f=f[0],eA.Ja=eA.Ja[0],eA.xa=eA.xa[0],o=o[0],z!=0)break;if(4294967286<eA.Ja)return 3;if(E==null||dA||(E[0]=eA.xa?2:1),F=[F],vA=[vA],eA.xa){if(5>f){z=7;break}E=F,oA=vA,dA=y,s==null||5>f?s=0:5<=f&&s[o+0]==47&&!(s[o+4]>>5)?($=[0],xA=[0],mA=[0],tA(wA=new b,s,o,f),qA(wA,$,xA,mA)?(E!=null&&(E[0]=$[0]),oA!=null&&(oA[0]=xA[0]),dA!=null&&(dA[0]=mA[0]),s=1):s=0):s=0}else{if(10>f){z=7;break}E=vA,s==null||10>f||!na(s,o+3,f-3)?s=0:(oA=s[o+0]|s[o+1]<<8|s[o+2]<<16,dA=16383&(s[o+7]<<8|s[o+6]),s=16383&(s[o+9]<<8|s[o+8]),1&oA||3<(oA>>1&7)||!(oA>>4&1)||oA>>5>=eA.Ja||!dA||!s?s=0:(F&&(F[0]=dA),E&&(E[0]=s),s=1))}if(!s||(F=F[0],vA=vA[0],aA&&(D[0]!=F||X[0]!=vA)))return 3;x!=null&&(x[0]=eA,x.offset=o-x.w,A(4294967286>o-x.w),A(x.offset==x.ha-f));break}return z==0||z==7&&aA&&x==null?(y!=null&&(y[0]|=eA.na!=null&&0<eA.na.length),p!=null&&(p[0]=F),v!=null&&(v[0]=vA),0):z}function gs(s,o,f){var p=o.width,v=o.height,y=0,F=0,E=p,x=v;if(o.Da=s!=null&&0<s.Da,o.Da&&(E=s.cd,x=s.bd,y=s.v,F=s.j,11>f||(y&=-2,F&=-2),0>y||0>F||0>=E||0>=x||y+E>p||F+x>v))return 0;if(o.v=y,o.j=F,o.va=y+E,o.o=F+x,o.U=E,o.T=x,o.da=s!=null&&0<s.da,o.da){if(!te(E,x,f=[s.ib],y=[s.hb]))return 0;o.ib=f[0],o.hb=y[0]}return o.ob=s!=null&&s.ob,o.Kb=s==null||!s.Sd,o.da&&(o.ob=o.ib<3*p/4&&o.hb<3*v/4,o.Kb=0),1}function Bs(s){if(s==null)return 2;if(11>s.S){var o=s.f.RGBA;o.fb+=(s.height-1)*o.A,o.A=-o.A}else o=s.f.kb,s=s.height,o.O+=(s-1)*o.fa,o.fa=-o.fa,o.N+=(s-1>>1)*o.Ab,o.Ab=-o.Ab,o.W+=(s-1>>1)*o.Db,o.Db=-o.Db,o.F!=null&&(o.J+=(s-1)*o.lb,o.lb=-o.lb);return 0}function pi(s,o,f,p){if(p==null||0>=s||0>=o)return 2;if(f!=null){if(f.Da){var v=f.cd,y=f.bd,F=-2&f.v,E=-2&f.j;if(0>F||0>E||0>=v||0>=y||F+v>s||E+y>o)return 2;s=v,o=y}if(f.da){if(!te(s,o,v=[f.ib],y=[f.hb]))return 2;s=v[0],o=y[0]}}p.width=s,p.height=o;A:{var x=p.width,D=p.height;if(s=p.S,0>=x||0>=D||!(s>=La&&13>s))s=2;else{if(0>=p.Rd&&p.sd==null){F=y=v=o=0;var X=(E=x*Fu[s])*D;if(11>s||(y=(D+1)/2*(o=(x+1)/2),s==12&&(F=(v=x)*D)),(D=i(X+2*y+F))==null){s=1;break A}p.sd=D,11>s?((x=p.f.RGBA).eb=D,x.fb=0,x.A=E,x.size=X):((x=p.f.kb).y=D,x.O=0,x.fa=E,x.Fd=X,x.f=D,x.N=0+X,x.Ab=o,x.Cd=y,x.ea=D,x.W=0+X+y,x.Db=o,x.Ed=y,s==12&&(x.F=D,x.J=0+X+2*y),x.Tc=F,x.lb=v)}if(o=1,v=p.S,y=p.width,F=p.height,v>=La&&13>v)if(11>v)s=p.f.RGBA,o&=(E=Math.abs(s.A))*(F-1)+y<=s.size,o&=E>=y*Fu[v],o&=s.eb!=null;else{s=p.f.kb,E=(y+1)/2,X=(F+1)/2,x=Math.abs(s.fa),D=Math.abs(s.Ab);var aA=Math.abs(s.Db),oA=Math.abs(s.lb),eA=oA*(F-1)+y;o&=x*(F-1)+y<=s.Fd,o&=D*(X-1)+E<=s.Cd,o=(o&=aA*(X-1)+E<=s.Ed)&x>=y&D>=E&aA>=E,o&=s.y!=null,o&=s.f!=null,o&=s.ea!=null,v==12&&(o&=oA>=y,o&=eA<=s.Tc,o&=s.F!=null)}else o=0;s=o?0:2}}return s!=0||f!=null&&f.fd&&(s=Bs(p)),s}var ft=64,wi=[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],vi=24,mi=32,ps=8,Dt=[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];UA("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(s){return s},k.Predictor2=function(s,o,f){return o[f+0]},k.Predictor3=function(s,o,f){return o[f+1]},k.Predictor4=function(s,o,f){return o[f-1]},k.Predictor5=function(s,o,f){return _A(_A(s,o[f+1]),o[f+0])},k.Predictor6=function(s,o,f){return _A(s,o[f-1])},k.Predictor7=function(s,o,f){return _A(s,o[f+0])},k.Predictor8=function(s,o,f){return _A(o[f-1],o[f+0])},k.Predictor9=function(s,o,f){return _A(o[f+0],o[f+1])},k.Predictor10=function(s,o,f){return _A(_A(s,o[f-1]),_A(o[f+0],o[f+1]))},k.Predictor11=function(s,o,f){var p=o[f+0];return 0>=ie(p>>24&255,s>>24&255,(o=o[f-1])>>24&255)+ie(p>>16&255,s>>16&255,o>>16&255)+ie(p>>8&255,s>>8&255,o>>8&255)+ie(255&p,255&s,255&o)?p:s},k.Predictor12=function(s,o,f){var p=o[f+0];return(VA((s>>24&255)+(p>>24&255)-((o=o[f-1])>>24&255))<<24|VA((s>>16&255)+(p>>16&255)-(o>>16&255))<<16|VA((s>>8&255)+(p>>8&255)-(o>>8&255))<<8|VA((255&s)+(255&p)-(255&o)))>>>0},k.Predictor13=function(s,o,f){var p=o[f-1];return(ZA((s=_A(s,o[f+0]))>>24&255,p>>24&255)<<24|ZA(s>>16&255,p>>16&255)<<16|ZA(s>>8&255,p>>8&255)<<8|ZA(s>>0&255,p>>0&255))>>>0};var Ul=k.PredictorAdd0;k.PredictorAdd1=se,UA("Predictor2","PredictorAdd2"),UA("Predictor3","PredictorAdd3"),UA("Predictor4","PredictorAdd4"),UA("Predictor5","PredictorAdd5"),UA("Predictor6","PredictorAdd6"),UA("Predictor7","PredictorAdd7"),UA("Predictor8","PredictorAdd8"),UA("Predictor9","PredictorAdd9"),UA("Predictor10","PredictorAdd10"),UA("Predictor11","PredictorAdd11"),UA("Predictor12","PredictorAdd12"),UA("Predictor13","PredictorAdd13");var ws=k.PredictorAdd2;ae("ColorIndexInverseTransform","MapARGB","32b",function(s){return s>>8&255},function(s){return s}),ae("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(s){return s},function(s){return s>>8&255});var Ca,Xt=k.ColorIndexInverseTransform,Ci=k.MapARGB,ya=k.VP8LColorIndexInverseTransformAlpha,Qa=k.MapAlpha,an=k.VP8LPredictorsAdd=[];an.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var kn,Tt,xt,on,Gr,qr,yi,Wr,Ve,vs,It,zt,Qi,Fa,ms,Mn,Kn,ln,Rn,Fi,Vn,cn,Cs,Yt,Zt,Ee,xe,je,nt=i(511),Jr=i(2041),ys=i(225),bi=i(767),ba=0,Ll=Jr,Ua=ys,Vt=bi,$t=nt,La=0,Ea=1,hu=2,xa=3,Ia=4,El=5,du=6,xl=7,Il=8,_a=9,_l=10,Od=[2,3,7],kd=[3,3,11],gu=[280,256,256,256,40],Md=[0,1,1,1,0],Kd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Rd=[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],Vd=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],jd=8,Hl=[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],Sl=[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],Qs=null,Gd=[[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]],qd=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Bu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Wd=[[[[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]]]],Jd=[[[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]]],Xd=[[[[255,255,255,255,255,255,255,255,255,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]]]],zd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],un=[],gr=[],Xr=[],Yd=1,pu=2,fn=[],Ar=[];gA("UpsampleRgbLinePair",ce,3),gA("UpsampleBgrLinePair",Te,3),gA("UpsampleRgbaLinePair",dr,4),gA("UpsampleBgraLinePair",st,4),gA("UpsampleArgbLinePair",vt,4),gA("UpsampleRgba4444LinePair",Ze,2),gA("UpsampleRgb565LinePair",ke,2);var Zd=k.UpsampleRgbLinePair,$d=k.UpsampleBgrLinePair,wu=k.UpsampleRgbaLinePair,vu=k.UpsampleBgraLinePair,mu=k.UpsampleArgbLinePair,Cu=k.UpsampleRgba4444LinePair,Ag=k.UpsampleRgb565LinePair,Ha=16,Sa=1<<Ha-1,Fs=-227,Nl=482,eg=6,yu=0,tg=i(256),rg=i(256),ng=i(256),ig=i(256),sg=i(Nl-Fs),ag=i(Nl-Fs);Hr("YuvToRgbRow",ce,3),Hr("YuvToBgrRow",Te,3),Hr("YuvToRgbaRow",dr,4),Hr("YuvToBgraRow",st,4),Hr("YuvToArgbRow",vt,4),Hr("YuvToRgba4444Row",Ze,2),Hr("YuvToRgb565Row",ke,2);var Qu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Na=[0,2,8],og=[8,7,6,4,4,2,2,2,1,1,1,1],lg=1;this.WebPDecodeRGBA=function(s,o,f,p,v){var y=Ea,F=new di,E=new ar;F.ba=E,E.S=y,E.width=[E.width],E.height=[E.height];var x=E.width,D=E.height,X=new Kr;if(X==null||s==null)var aA=2;else A(X!=null),aA=Bi(s,o,f,X.width,X.height,X.Pd,X.Qd,X.format,null);if(aA!=0?x=0:(x!=null&&(x[0]=X.width[0]),D!=null&&(D[0]=X.height[0]),x=1),x){E.width=E.width[0],E.height=E.height[0],p!=null&&(p[0]=E.width),v!=null&&(v[0]=E.height);A:{if(p=new ai,(v=new ls).data=s,v.w=o,v.ha=f,v.kd=1,o=[0],A(v!=null),((s=Bi(v.data,v.w,v.ha,null,null,null,o,null,v))==0||s==7)&&o[0]&&(s=4),(o=s)==0){if(A(F!=null),p.data=v.data,p.w=v.w+v.offset,p.ha=v.ha-v.offset,p.put=br,p.ac=ut,p.bc=Ur,p.ma=F,v.xa){if((s=Jt())==null){F=1;break A}if(function(oA,eA){var vA=[0],dA=[0],z=[0];e:for(;;){if(oA==null)return 0;if(eA==null)return oA.a=2,0;if(oA.l=eA,oA.a=0,tA(oA.m,eA.data,eA.w,eA.ha),!qA(oA.m,vA,dA,z)){oA.a=3;break e}if(oA.xb=pu,eA.width=vA[0],eA.height=dA[0],!xr(vA[0],dA[0],1,oA,null))break e;return 1}return A(oA.a!=0),0}(s,p)){if(p=(o=pi(p.width,p.height,F.Oa,F.ba))==0){e:{p=s;t:for(;;){if(p==null){p=0;break e}if(A(p.s.yc!=null),A(p.s.Ya!=null),A(0<p.s.Wb),A((f=p.l)!=null),A((v=f.ma)!=null),p.xb!=0){if(p.ca=v.ba,p.tb=v.tb,A(p.ca!=null),!gs(v.Oa,f,xa)){p.a=2;break t}if(!Nn(p,f.width)||f.da)break t;if((f.da||ge(p.ca.S))&&rA(),11>p.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),p.ca.f.kb.F!=null&&rA()),p.Pb&&0<p.s.ua&&p.s.vb.X==null&&!JA(p.s.vb,p.s.Wa.Xa)){p.a=1;break t}p.xb=0}if(!ur(p,p.V,p.Ba,p.c,p.i,f.o,ei))break t;v.Dc=p.Ma,p=1;break e}A(p.a!=0),p=0}p=!p}p&&(o=s.a)}else o=s.a}else{if((s=new al)==null){F=1;break A}if(s.Fa=v.na,s.P=v.P,s.qc=v.Sa,ia(s,p)){if((o=pi(p.width,p.height,F.Oa,F.ba))==0){if(s.Aa=0,f=F.Oa,A((v=s)!=null),f!=null){if(0<(x=0>(x=f.Md)?0:100<x?255:255*x/100)){for(D=X=0;4>D;++D)12>(aA=v.pb[D]).lc&&(aA.ia=x*og[0>aA.lc?0:aA.lc]>>3),X|=aA.ia;X&&(alert("todo:VP8InitRandom"),v.ia=1)}v.Ga=f.Id,100<v.Ga?v.Ga=100:0>v.Ga&&(v.Ga=0)}ol(s,p)||(o=s.a)}}else o=s.a}o==0&&F.Oa!=null&&F.Oa.fd&&(o=Bs(F.ba))}F=o}y=F!=0?null:11>y?E.f.RGBA.eb:E.f.kb.y}else y=null;return y};var Fu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(k,q){for(var nA="",I=0;I<4;I++)nA+=String.fromCharCode(k[q++]);return nA}function g(k,q){return(k[q+0]<<0|k[q+1]<<8|k[q+2]<<16)>>>0}function B(k,q){return(k[q+0]<<0|k[q+1]<<8|k[q+2]<<16|k[q+3]<<24)>>>0}new c;var w=[0],d=[0],L=[],Q=new c,H=e,C=function(k,q){var nA={},I=0,S=!1,R=0,M=0;if(nA.frames=[],!function(T,U,O,G){for(var AA=0;AA<G;AA++)if(T[U+AA]!=O.charCodeAt(AA))return!0;return!1}(k,q,"RIFF",4)){for(B(k,q+=4),q+=8;q<k.length;){var lA=h(k,q),iA=B(k,q+=4);q+=4;var uA=iA+(1&iA);switch(lA){case"VP8 ":case"VP8L":nA.frames[I]===void 0&&(nA.frames[I]={}),(hA=nA.frames[I]).src_off=S?M:q-8,hA.src_size=R+iA+8,I++,S&&(S=!1,R=0,M=0);break;case"VP8X":(hA=nA.header={}).feature_flags=k[q];var tA=q+4;hA.canvas_width=1+g(k,tA),tA+=3,hA.canvas_height=1+g(k,tA),tA+=3;break;case"ALPH":S=!0,R=uA+8,M=q-8;break;case"ANIM":(hA=nA.header).bgcolor=B(k,q),tA=q+4,hA.loop_count=(bA=k)[(b=tA)+0]<<0|bA[b+1]<<8,tA+=2;break;case"ANMF":var fA,hA;(hA=nA.frames[I]={}).offset_x=2*g(k,q),q+=3,hA.offset_y=2*g(k,q),q+=3,hA.width=1+g(k,q),q+=3,hA.height=1+g(k,q),q+=3,hA.duration=g(k,q),q+=3,fA=k[q++],hA.dispose=1&fA,hA.blend=fA>>1&1}lA!="ANMF"&&(q+=uA)}var bA,b;return nA}}(H,0);C.response=H,C.rgbaoutput=!0,C.dataurl=!1;var _=C.header?C.header:null,V=C.frames?C.frames:null;if(_){_.loop_counter=_.loop_count,w=[_.canvas_height],d=[_.canvas_width];for(var Y=0;Y<V.length&&V[Y].blend!=0;Y++);}var j=V[0],Z=Q.WebPDecodeRGBA(H,j.src_off,j.src_size,d,w);j.rgba=Z,j.imgwidth=d[0],j.imgheight=w[0];for(var J=0;J<d[0]*w[0]*4;J++)L[J]=Z[J];return this.width=d,this.height=w,this.data=L,this}(function(e){var A=function(){return typeof zc=="function"},t=function(w,d,L,Q){var H=4,C=a;switch(Q){case e.image_compression.FAST:H=1,C=i;break;case e.image_compression.MEDIUM:H=6,C=l;break;case e.image_compression.SLOW:H=9,C=c}w=r(w,d,L,C);var _=zc(w,{level:H});return e.__addimage__.arrayBufferToBinaryString(_)},r=function(w,d,L,Q){for(var H,C,_,V=w.length/d,Y=new Uint8Array(w.length+V),j=g(),Z=0;Z<V;Z+=1){if(_=Z*d,H=w.subarray(_,_+d),Q)Y.set(Q(H,L,C),_+Z);else{for(var J,k=j.length,q=[];J<k;J+=1)q[J]=j[J](H,L,C);var nA=B(q.concat());Y.set(q[nA],_+Z)}C=H}return Y},n=function(w){var d=Array.apply([],w);return d.unshift(0),d},i=function(w,d){var L,Q=[],H=w.length;Q[0]=1;for(var C=0;C<H;C+=1)L=w[C-d]||0,Q[C+1]=w[C]-L+256&255;return Q},a=function(w,d,L){var Q,H=[],C=w.length;H[0]=2;for(var _=0;_<C;_+=1)Q=L&&L[_]||0,H[_+1]=w[_]-Q+256&255;return H},l=function(w,d,L){var Q,H,C=[],_=w.length;C[0]=3;for(var V=0;V<_;V+=1)Q=w[V-d]||0,H=L&&L[V]||0,C[V+1]=w[V]+256-(Q+H>>>1)&255;return C},c=function(w,d,L){var Q,H,C,_,V=[],Y=w.length;V[0]=4;for(var j=0;j<Y;j+=1)Q=w[j-d]||0,H=L&&L[j]||0,C=L&&L[j-d]||0,_=h(Q,H,C),V[j+1]=w[j]-_+256&255;return V},h=function(w,d,L){if(w===d&&d===L)return w;var Q=Math.abs(d-L),H=Math.abs(w-L),C=Math.abs(w+d-L-L);return Q<=H&&Q<=C?w:H<=C?d:L},g=function(){return[n,i,a,l,c]},B=function(w){var d=w.map(function(L){return L.reduce(function(Q,H){return Q+Math.abs(H)},0)});return d.indexOf(Math.min.apply(null,d))};e.processPNG=function(w,d,L,Q){var H,C,_,V,Y,j,Z,J,k,q,nA,I,S,R,M,lA=this.decode.FLATE_DECODE,iA="";if(this.__addimage__.isArrayBuffer(w)&&(w=new Uint8Array(w)),this.__addimage__.isArrayBufferView(w)){if(w=(_=new lw(w)).imgData,C=_.bits,H=_.colorSpace,Y=_.colors,[4,6].indexOf(_.colorType)!==-1){if(_.bits===8){k=(J=_.pixelBitlength==32?new Uint32Array(_.decodePixels().buffer):_.pixelBitlength==16?new Uint16Array(_.decodePixels().buffer):new Uint8Array(_.decodePixels().buffer)).length,nA=new Uint8Array(k*_.colors),q=new Uint8Array(k);var uA,tA=_.pixelBitlength-_.bits;for(R=0,M=0;R<k;R++){for(S=J[R],uA=0;uA<tA;)nA[M++]=S>>>uA&255,uA+=_.bits;q[R]=S>>>uA&255}}if(_.bits===16){k=(J=new Uint32Array(_.decodePixels().buffer)).length,nA=new Uint8Array(k*(32/_.pixelBitlength)*_.colors),q=new Uint8Array(k*(32/_.pixelBitlength)),I=_.colors>1,R=0,M=0;for(var fA=0;R<k;)S=J[R++],nA[M++]=S>>>0&255,I&&(nA[M++]=S>>>16&255,S=J[R++],nA[M++]=S>>>0&255),q[fA++]=S>>>16&255;C=8}Q!==e.image_compression.NONE&&A()?(w=t(nA,_.width*_.colors,_.colors,Q),Z=t(q,_.width,1,Q)):(w=nA,Z=q,lA=void 0)}if(_.colorType===3&&(H=this.color_spaces.INDEXED,j=_.palette,_.transparency.indexed)){var hA=_.transparency.indexed,bA=0;for(R=0,k=hA.length;R<k;++R)bA+=hA[R];if((bA/=255)===k-1&&hA.indexOf(0)!==-1)V=[hA.indexOf(0)];else if(bA!==k){for(J=_.decodePixels(),q=new Uint8Array(J.length),R=0,k=J.length;R<k;R++)q[R]=hA[J[R]];Z=t(q,_.width,1)}}var b=function(T){var U;switch(T){case e.image_compression.FAST:U=11;break;case e.image_compression.MEDIUM:U=13;break;case e.image_compression.SLOW:U=14;break;default:U=12}return U}(Q);return lA===this.decode.FLATE_DECODE&&(iA="/Predictor "+b+" "),iA+="/Colors "+Y+" /BitsPerComponent "+C+" /Columns "+_.width,(this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),(Z&&this.__addimage__.isArrayBuffer(Z)||this.__addimage__.isArrayBufferView(Z))&&(Z=this.__addimage__.arrayBufferToBinaryString(Z)),{alias:L,data:w,index:d,filter:lA,decodeParameters:iA,transparency:V,palette:j,sMask:Z,predictor:b,width:_.width,height:_.height,bitsPerComponent:C,colorSpace:H}}}})(WA.API),function(e){e.processGIF89A=function(A,t,r,n){var i=new cw(A),a=i.width,l=i.height,c=[];i.decodeAndBlitFrameRGBA(0,c);var h={data:c,width:a,height:l},g=new Cc(100).encode(h,100);return e.processJPEG.call(this,g,t,r,n)},e.processGIF87A=e.processGIF89A}(WA.API),wr.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 e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var A=0;A<e;A++){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[A]={red:n,green:r,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},wr.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[e]()}catch(t){Le.log("bit decode error:"+t)}},wr.prototype.bit1=function(){var e,A=Math.ceil(this.width/8),t=A%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*n*4,l=0;l<8&&8*n+l<this.width;l++){var c=this.palette[i>>7-l&1];this.data[a+4*l]=c.blue,this.data[a+4*l+1]=c.green,this.data[a+4*l+2]=c.red,this.data[a+4*l+3]=255}t!==0&&(this.pos+=4-t)}},wr.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),A=e%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<e;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*n*4,l=i>>4,c=15&i,h=this.palette[l];if(this.data[a]=h.blue,this.data[a+1]=h.green,this.data[a+2]=h.red,this.data[a+3]=255,2*n+1>=this.width)break;h=this.palette[c],this.data[a+4]=h.blue,this.data[a+4+1]=h.green,this.data[a+4+2]=h.red,this.data[a+4+3]=255}A!==0&&(this.pos+=4-A)}},wr.prototype.bit8=function(){for(var e=this.width%4,A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,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}e!==0&&(this.pos+=4-e)}},wr.prototype.bit15=function(){for(var e=this.width%3,A=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&A)/A*255|0,l=(i>>5&A)/A*255|0,c=(i>>10&A)/A*255|0,h=i>>15?255:0,g=r*this.width*4+4*n;this.data[g]=c,this.data[g+1]=l,this.data[g+2]=a,this.data[g+3]=h}this.pos+=e}},wr.prototype.bit16=function(){for(var e=this.width%3,A=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 l=(a&A)/A*255|0,c=(a>>5&t)/t*255|0,h=(a>>11)/A*255|0,g=n*this.width*4+4*i;this.data[g]=h,this.data[g+1]=c,this.data[g+2]=l,this.data[g+3]=255}this.pos+=e}},wr.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var A=this.bottom_up?e:this.height-1-e,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=A*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}},wr.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var A=this.bottom_up?e:this.height-1-e,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),l=A*this.width*4+4*t;this.data[l]=i,this.data[l+1]=n,this.data[l+2]=r,this.data[l+3]=a}},wr.prototype.getData=function(){return this.data},function(e){e.processBMP=function(A,t,r,n){var i=new wr(A,!1),a=i.width,l=i.height,c={data:i.getData(),width:a,height:l},h=new Cc(100).encode(c,100);return e.processJPEG.call(this,h,t,r,n)}}(WA.API),oh.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(A,t,r,n){var i=new oh(A),a=i.width,l=i.height,c={data:i.getData(),width:a,height:l},h=new Cc(100).encode(c,100);return e.processJPEG.call(this,h,t,r,n)}}(WA.API),WA.API.processRGBA=function(e,A,t){for(var r=e.data,n=r.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),l=0,c=0,h=0;h<n;h+=4){var g=r[h],B=r[h+1],w=r[h+2],d=r[h+3];i[l++]=g,i[l++]=B,i[l++]=w,a[c++]=d}var L=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:L,index:A,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},WA.API.setLanguage=function(e){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"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,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},Oi=WA.API,vo=Oi.getCharWidthsArray=function(e,A){var t,r,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),a=A.charSpace||this.internal.getCharSpace(),l=A.widths?A.widths:n.metadata.Unicode.widths,c=l.fof?l.fof:1,h=A.kerning?A.kerning:n.metadata.Unicode.kerning,g=h.fof?h.fof:1,B=A.doKerning!==!1,w=0,d=e.length,L=0,Q=l[0]||c,H=[];for(t=0;t<d;t++)r=e.charCodeAt(t),typeof n.metadata.widthOfString=="function"?H.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+a*(1e3/i)||0)/1e3):(w=B&&me(h[r])==="object"&&!isNaN(parseInt(h[r][L],10))?h[r][L]/g:0,H.push((l[r]||Q)/c+w)),L=r;return H},nh=Oi.getStringUnitWidth=function(e,A){var t=(A=A||{}).fontSize||this.internal.getFontSize(),r=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return Oi.processArabic&&(e=Oi.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,t,n)/t:vo.apply(this,arguments).reduce(function(i,a){return i+a},0)},ih=function(e,A,t,r){for(var n=[],i=0,a=e.length,l=0;i!==a&&l+A[i]<t;)l+=A[i],i++;n.push(e.slice(0,i));var c=i;for(l=0;i!==a;)l+A[i]>r&&(n.push(e.slice(c,i)),l=0,c=i),l+=A[i],i++;return c!==i&&n.push(e.slice(c,i)),n},sh=function(e,A,t){t||(t={});var r,n,i,a,l,c,h,g=[],B=[g],w=t.textIndent||0,d=0,L=0,Q=e.split(" "),H=vo.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?Q[0].length+2:t.lineIndent||0){var C=Array(c).join(" "),_=[];Q.map(function(Y){(Y=Y.split(/\s*\n/)).length>1?_=_.concat(Y.map(function(j,Z){return(Z&&j.length?`
`:"")+j})):_.push(Y[0])}),Q=_,c=nh.apply(this,[C,t])}for(i=0,a=Q.length;i<a;i++){var V=0;if(r=Q[i],c&&r[0]==`
`&&(r=r.substr(1),V=1),w+d+(L=(n=vo.apply(this,[r,t])).reduce(function(Y,j){return Y+j},0))>A||V){if(L>A){for(l=ih.apply(this,[r,n,A-(w+d),A]),g.push(l.shift()),g=[l.pop()];l.length;)B.push([l.shift()]);L=n.slice(r.length-(g[0]?g[0].length:0)).reduce(function(Y,j){return Y+j},0)}else g=[r];B.push(g),w=L+c,d=H}else g.push(r),w+=d+L,d=H}return h=c?function(Y,j){return(j?C:"")+Y.join(" ")}:function(Y){return Y.join(" ")},B.map(h)},Oi.splitTextToSize=function(e,A,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=(function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var B=this.internal.getFont(g.fontName,g.fontStyle);return B.metadata.Unicode?{widths:B.metadata.Unicode.widths||{0:1},kerning:B.metadata.Unicode.kerning||{}}:{font:B.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*A/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var l,c,h=[];for(l=0,c=r.length;l<c;l++)h=h.concat(sh.apply(this,[r[l],a,i]));return h},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",t={},r={},n=0;n<A.length;n++)t[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(B){return"0x"+parseInt(B,10).toString(16)},a=e.__fontmetrics__.compress=function(B){var w,d,L,Q,H=["{"];for(var C in B){if(w=B[C],isNaN(parseInt(C,10))?d="'"+C+"'":(C=parseInt(C,10),d=(d=i(C).slice(2)).slice(0,-1)+r[d.slice(-1)]),typeof w=="number")w<0?(L=i(w).slice(3),Q="-"):(L=i(w).slice(2),Q=""),L=Q+L.slice(0,-1)+r[L.slice(-1)];else{if(me(w)!=="object")throw new Error("Don't know what to do with value type "+me(w)+".");L=a(w)}H.push(d+L)}return H.push("}"),H.join("")},l=e.__fontmetrics__.uncompress=function(B){if(typeof B!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,d,L,Q,H={},C=1,_=H,V=[],Y="",j="",Z=B.length-1,J=1;J<Z;J+=1)(Q=B[J])=="'"?w?(L=w.join(""),w=void 0):w=[]:w?w.push(Q):Q=="{"?(V.push([_,L]),_={},L=void 0):Q=="}"?((d=V.pop())[0][d[1]]=_,L=void 0,_=d[0]):Q=="-"?C=-1:L===void 0?t.hasOwnProperty(Q)?(Y+=t[Q],L=parseInt(Y,16)*C,C=1,Y=""):Y+=Q:t.hasOwnProperty(Q)?(j+=t[Q],_[L]=parseInt(j,16)*C,C=1,L=void 0,j=""):j+=Q;return H},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},g={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'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":l("{'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:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'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:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'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":l("{'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:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'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":l("{'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":l("{'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}}}")}};e.events.push(["addFont",function(B){var w=B.font,d=g.Unicode[w.postScriptName];d&&(w.metadata.Unicode={},w.metadata.Unicode.widths=d.widths,w.metadata.Unicode.kerning=d.kerning);var L=h.Unicode[w.postScriptName];L&&(w.metadata.Unicode.encoding=L,w.encoding=L.codePages[0])}])}(WA.API),function(e){var A=function(t){for(var r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n};e.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,l){l=/^\x00\x01\x00\x00/.test(l)?A(l):A(Js(l)),a.metadata=e.API.TTFFont.open(l),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,r)}}])}(WA),function(e){function A(){return(XA.canvg?Promise.resolve(XA.canvg):yc(()=>import("./index.es.D5TeBl7i.js"),__vite__mapDeps([0,1,2,3,4,5,6]))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}WA.API.addSvgAsImage=function(t,r,n,i,a,l,c,h){if(isNaN(r)||isNaN(n))throw Le.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Le.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var g=document.createElement("canvas");g.width=i,g.height=a;var B=g.getContext("2d");B.fillStyle="#fff",B.fillRect(0,0,g.width,g.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return A().then(function(L){return L.fromString(B,t,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(L){return L.render(w)}).then(function(){d.addImage(g.toDataURL("image/jpeg",1),r,n,i,a,c,h)})}}(),WA.API.putTotalPages=function(e){var A,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(e,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(A,t);return this},WA.API.viewerPreferences=function(e,A){var t;e=e||{},A=A||!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}},l=Object.keys(a),c=[],h=0,g=0,B=0;function w(L,Q){var H,C=!1;for(H=0;H<L.length;H+=1)L[H]===Q&&(C=!0);return C}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,e==="reset"||A===!0){var d=l.length;for(B=0;B<d;B+=1)t[l[B]].value=t[l[B]].defaultValue,t[l[B]].explicitSet=!1}if(me(e)==="object"){for(n in e)if(i=e[n],w(l,n)&&i!==void 0){if(t[n].type==="boolean"&&typeof i=="boolean")t[n].value=i;else if(t[n].type==="name"&&w(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(h=0;h<i.length;h+=1)if(r=!0,i[h].length===1&&typeof i[h][0]=="number")c.push(String(i[h]-1));else if(i[h].length>1){for(g=0;g<i[h].length;g+=1)typeof i[h][g]!="number"&&(r=!1);r===!0&&c.push([i[h][0]-1,i[h][1]-1].join(" "))}t[n].value="["+c.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 L,Q=[];for(L in t)t[L].explicitSet===!0&&(t[L].type==="name"?Q.push("/"+L+" /"+t[L].value):Q.push("/"+L+" "+t[L].value));Q.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Q.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(e){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),c=unescape(encodeURIComponent("</x:xmpmeta>")),h=i.length+a.length+l.length+n.length+c.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+h+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+l+c),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")};e.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",A)),this}}(WA.API),function(e){var A=e.API,t=A.pdfEscape16=function(i,a){for(var l,c=a.metadata.Unicode.widths,h=["","0","00","000","0000"],g=[""],B=0,w=i.length;B<w;++B){if(l=a.metadata.characterToGlyph(i.charCodeAt(B)),a.metadata.glyIdsUsed.push(l),a.metadata.toUnicode[l]=i.charCodeAt(B),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(a.metadata.widthOfGlyph(l),10)])),l=="0")return g.join("");l=l.toString(16),g.push(h[4-l.length],l)}return g.join("")},r=function(i){var a,l,c,h,g,B,w;for(g=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,c=[],B=0,w=(l=Object.keys(i).sort(function(d,L){return d-L})).length;B<w;B++)a=l[B],c.length>=100&&(g+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar`,c=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(h=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),c.push("<"+a+"><"+h+">"));return c.length&&(g+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar
`),g+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};A.events.push(["putFont",function(i){(function(a){var l=a.font,c=a.out,h=a.newObject,g=a.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="Identity-H"){for(var B=l.metadata.Unicode.widths,w=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),d="",L=0;L<w.length;L++)d+=String.fromCharCode(w[L]);var Q=h();g({data:d,addLength1:!0,objectId:Q}),c("endobj");var H=h();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:H}),c("endobj");var C=h();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Vi(l.fontName)),c("/FontFile2 "+Q+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var _=h();c("<<"),c("/Type /Font"),c("/BaseFont /"+Vi(l.fontName)),c("/FontDescriptor "+C+" 0 R"),c("/W "+e.API.PDFObject.convert(B)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=h(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+H+" 0 R"),c("/BaseFont /"+Vi(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+_+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(a){var l=a.font,c=a.out,h=a.newObject,g=a.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var B=l.metadata.rawData,w="",d=0;d<B.length;d++)w+=String.fromCharCode(B[d]);var L=h();g({data:w,addLength1:!0,objectId:L}),c("endobj");var Q=h();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:Q}),c("endobj");var H=h();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+L+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+Vi(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=h();for(var C=0;C<l.metadata.hmtx.widths.length;C++)l.metadata.hmtx.widths[C]=parseInt(l.metadata.hmtx.widths[C]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+Q+" 0 R/BaseFont/"+Vi(l.fontName)+"/FontDescriptor "+H+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,l=i.text||"",c=i.x,h=i.y,g=i.options||{},B=i.mutex||{},w=B.pdfEscape,d=B.activeFontKey,L=B.fonts,Q=d,H="",C=0,_="",V=L[Q].encoding;if(L[Q].encoding!=="Identity-H")return{text:l,x:c,y:h,options:g,mutex:B};for(_=l,Q=d,Array.isArray(l)&&(_=l[0]),C=0;C<_.length;C+=1)L[Q].metadata.hasOwnProperty("cmap")&&(a=L[Q].metadata.cmap.unicode.codeMap[_[C].charCodeAt(0)]),a||_[C].charCodeAt(0)<256&&L[Q].metadata.hasOwnProperty("Unicode")?H+=_[C]:H+="";var Y="";return parseInt(Q.slice(1))<14||V==="WinAnsiEncoding"?Y=w(H,Q).split("").map(function(j){return j.charCodeAt(0).toString(16)}).join(""):V==="Identity-H"&&(Y=t(H,L[Q])),B.isHex=!0,{text:Y,x:c,y:h,options:g,mutex:B}};A.events.push(["postProcessText",function(i){var a=i.text||"",l=[],c={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var h=0;for(h=0;h<a.length;h+=1)Array.isArray(a[h])&&a[h].length===3?l.push([n(Object.assign({},c,{text:a[h][0]})).text,a[h][1],a[h][2]]):l.push(n(Object.assign({},c,{text:a[h]})).text);i.text=l}else i.text=n(Object.assign({},c,{text:a})).text}])}(WA),function(e){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,r){return A.call(this),this.internal.vFS[t]=r,this},e.getFileFromVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(WA.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var n,i,a,l,c,h,g,B=A,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],L={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Q={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},H=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],C=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,V=0;this.__bidiEngine__={};var Y=function(I){var S=I.charCodeAt(),R=S>>8,M=Q[R];return M!==void 0?B[256*M+(255&S)]:R===252||R===253?"AL":C.test(R)?"L":R===8?"R":"N"},j=function(I){for(var S,R=0;R<I.length;R++){if((S=Y(I.charAt(R)))==="L")return!1;if(S==="R")return!0}return!1},Z=function(I,S,R,M){var lA,iA,uA,tA,fA=S[M];switch(fA){case"L":case"R":_=!1;break;case"N":case"AN":break;case"EN":_&&(fA="AN");break;case"AL":_=!0,fA="R";break;case"WS":fA="N";break;case"CS":M<1||M+1>=S.length||(lA=R[M-1])!=="EN"&&lA!=="AN"||(iA=S[M+1])!=="EN"&&iA!=="AN"?fA="N":_&&(iA="AN"),fA=iA===lA?iA:"N";break;case"ES":fA=(lA=M>0?R[M-1]:"B")==="EN"&&M+1<S.length&&S[M+1]==="EN"?"EN":"N";break;case"ET":if(M>0&&R[M-1]==="EN"){fA="EN";break}if(_){fA="N";break}for(uA=M+1,tA=S.length;uA<tA&&S[uA]==="ET";)uA++;fA=uA<tA&&S[uA]==="EN"?"EN":"N";break;case"NSM":if(a&&!l){for(tA=S.length,uA=M+1;uA<tA&&S[uA]==="NSM";)uA++;if(uA<tA){var hA=I[M],bA=hA>=1425&&hA<=2303||hA===64286;if(lA=S[uA],bA&&(lA==="R"||lA==="AL")){fA="R";break}}}fA=M<1||(lA=S[M-1])==="B"?"N":R[M-1];break;case"B":_=!1,n=!0,fA=V;break;case"S":i=!0,fA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_=!1;break;case"BN":fA="N"}return fA},J=function(I,S,R){var M=I.split("");return R&&k(M,R,{hiLevel:V}),M.reverse(),S&&S.reverse(),M.join("")},k=function(I,S,R){var M,lA,iA,uA,tA,fA=-1,hA=I.length,bA=0,b=[],T=V?d:w,U=[];for(_=!1,n=!1,i=!1,lA=0;lA<hA;lA++)U[lA]=Y(I[lA]);for(iA=0;iA<hA;iA++){if(tA=bA,b[iA]=Z(I,U,b,iA),M=240&(bA=T[tA][L[b[iA]]]),bA&=15,S[iA]=uA=T[bA][5],M>0)if(M===16){for(lA=fA;lA<iA;lA++)S[lA]=1;fA=-1}else fA=-1;if(T[bA][6])fA===-1&&(fA=iA);else if(fA>-1){for(lA=fA;lA<iA;lA++)S[lA]=uA;fA=-1}U[iA]==="B"&&(S[iA]=0),R.hiLevel|=uA}i&&function(O,G,AA){for(var sA=0;sA<AA;sA++)if(O[sA]==="S"){G[sA]=V;for(var cA=sA-1;cA>=0&&O[cA]==="WS";cA--)G[cA]=V}}(U,S,hA)},q=function(I,S,R,M,lA){if(!(lA.hiLevel<I)){if(I===1&&V===1&&!n)return S.reverse(),void(R&&R.reverse());for(var iA,uA,tA,fA,hA=S.length,bA=0;bA<hA;){if(M[bA]>=I){for(tA=bA+1;tA<hA&&M[tA]>=I;)tA++;for(fA=bA,uA=tA-1;fA<uA;fA++,uA--)iA=S[fA],S[fA]=S[uA],S[uA]=iA,R&&(iA=R[fA],R[fA]=R[uA],R[uA]=iA);bA=tA}bA++}}},nA=function(I,S,R){var M=I.split(""),lA={hiLevel:V};return R||(R=[]),k(M,R,lA),function(iA,uA,tA){if(tA.hiLevel!==0&&g)for(var fA,hA=0;hA<iA.length;hA++)uA[hA]===1&&(fA=H.indexOf(iA[hA]))>=0&&(iA[hA]=H[fA+1])}(M,R,lA),q(2,M,S,R,lA),q(1,M,S,R,lA),M.join("")};return this.__bidiEngine__.doBidiReorder=function(I,S,R){if(function(lA,iA){if(iA)for(var uA=0;uA<lA.length;uA++)iA[uA]=uA;l===void 0&&(l=j(lA)),h===void 0&&(h=j(lA))}(I,S),a||!c||h)if(a&&c&&l^h)V=l?1:0,I=J(I,S,R);else if(!a&&c&&h)V=l?1:0,I=nA(I,S,R),I=J(I,S);else if(!a||l||c||h){if(a&&!c&&l^h)I=J(I,S),l?(V=0,I=nA(I,S,R)):(V=1,I=nA(I,S,R),I=J(I,S));else if(a&&l&&!c&&h)V=1,I=nA(I,S,R),I=J(I,S);else if(!a&&!c&&l^h){var M=g;l?(V=1,I=nA(I,S,R),V=0,g=!1,I=nA(I,S,R),g=M):(V=0,I=nA(I,S,R),I=J(I,S),V=1,g=!1,I=nA(I,S,R),g=M,I=J(I,S))}}else V=0,I=nA(I,S,R);else V=l?1:0,I=nA(I,S,R);return I},this.__bidiEngine__.setOptions=function(I){I&&(a=I.isInputVisual,c=I.isOutputVisual,l=I.isInputRtl,h=I.isOutputRtl,g=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new e.__bidiEngine__({isInputVisual:!0});e.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 l=0;for(a=[],l=0;l<n.length;l+=1)Object.prototype.toString.call(n[l])==="[object Array]"?a.push([t.doBidiReorder(n[l][0]),n[l][1],n[l][2]]):a.push([t.doBidiReorder(n[l])]);r.text=a}else r.text=t.doBidiReorder(n);t.setOptions({isInputVisual:!0})}])}(WA),WA.API.TTFFont=function(){function e(A){var t;if(this.rawData=A,t=this.contents=new _n(A),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new bw(this),this.registerTTF()}return e.open=function(A){return new e(A)},e.prototype.parse=function(){return this.directory=new uw(this.contents),this.head=new hw(this),this.name=new ww(this),this.cmap=new Td(this),this.toUnicode={},this.hhea=new dw(this),this.maxp=new vw(this),this.hmtx=new mw(this),this.post=new Bw(this),this.os2=new gw(this),this.loca=new Fw(this),this.glyf=new Cw(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]},e.prototype.registerTTF=function(){var A,t,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,l,c,h;for(h=[],a=0,l=(c=this.bbox).length;a<l;a++)A=c[a],h.push(Math.round(A*this.scaleFactor));return h}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(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")},e.prototype.characterToGlyph=function(A){var t;return((t=this.cmap.unicode)!=null?t.codeMap[A]:void 0)||0},e.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},e.prototype.widthOfString=function(A,t,r){var n,i,a,l;for(a=0,i=0,l=(A=""+A).length;0<=l?i<l:i>l;i=0<=l?++i:--i)n=A.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return a*(t/1e3)},e.prototype.lineHeight=function(A,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*A},e}();var Qr,_n=function(){function e(A){this.data=A??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(A){return this.data[this.pos++]=A},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},e.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},e.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},e.prototype.readString=function(A){var t,r;for(r=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(A){var t,r,n;for(n=[],t=0,r=A.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(A.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(A){return this.writeInt16(A)},e.prototype.readLongLong=function(){var A,t,r,n,i,a,l,c;return A=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),l=this.readByte(),c=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^l)+(255^c)+1):72057594037927940*A+281474976710656*t+1099511627776*r+4294967296*n+16777216*i+65536*a+256*l+c},e.prototype.writeLongLong=function(A){var t,r;return t=Math.floor(A/4294967296),r=4294967295&A,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)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(A){return this.writeInt32(A)},e.prototype.read=function(A){var t,r;for(t=[],r=0;0<=A?r<A:r>A;r=0<=A?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(A){var t,r,n,i;for(i=[],r=0,n=A.length;r<n;r++)t=A[r],i.push(this.writeByte(t));return i},e}(),uw=function(){var e;function A(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 A.prototype.encode=function(t){var r,n,i,a,l,c,h,g,B,w,d,L,Q;for(Q in d=Object.keys(t).length,c=Math.log(2),B=16*Math.floor(Math.log(d)/c),a=Math.floor(B/c),g=16*d-B,(n=new _n).writeInt(this.scalarType),n.writeShort(d),n.writeShort(B),n.writeShort(a),n.writeShort(g),i=16*d,h=n.pos+i,l=null,L=[],t)for(w=t[Q],n.writeString(Q),n.writeInt(e(w)),n.writeInt(h),n.writeInt(w.length),L=L.concat(w),Q==="head"&&(l=h),h+=w.length;h%4;)L.push(0),h++;return n.write(L),r=2981146554-e(n.data),n.pos=l+8,n.writeUInt32(r),n.data},e=function(t){var r,n,i,a;for(t=Pd.call(t);t.length%4;)t.push(0);for(i=new _n(t),n=0,r=0,a=t.length;r<a;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),fw={}.hasOwnProperty,Mr=function(e,A){for(var t in A)fw.call(A,t)&&(e[t]=A[t]);function r(){this.constructor=e}return r.prototype=A.prototype,e.prototype=new r,e.__super__=A.prototype,e};Qr=function(){function e(A){var t;this.file=A,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 e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var hw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="head",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},A.prototype.encode=function(t){var r;return(r=new _n).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},A}(),lh=function(){function e(A,t){var r,n,i,a,l,c,h,g,B,w,d,L,Q,H,C,_,V;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),B=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=A.readByte();break;case 4:for(d=A.readUInt16(),w=d/2,A.pos+=6,i=function(){var Y,j;for(j=[],c=Y=0;0<=w?Y<w:Y>w;c=0<=w?++Y:--Y)j.push(A.readUInt16());return j}(),A.pos+=2,Q=function(){var Y,j;for(j=[],c=Y=0;0<=w?Y<w:Y>w;c=0<=w?++Y:--Y)j.push(A.readUInt16());return j}(),h=function(){var Y,j;for(j=[],c=Y=0;0<=w?Y<w:Y>w;c=0<=w?++Y:--Y)j.push(A.readUInt16());return j}(),g=function(){var Y,j;for(j=[],c=Y=0;0<=w?Y<w:Y>w;c=0<=w?++Y:--Y)j.push(A.readUInt16());return j}(),n=(this.length-A.pos+this.offset)/2,l=function(){var Y,j;for(j=[],c=Y=0;0<=n?Y<n:Y>n;c=0<=n?++Y:--Y)j.push(A.readUInt16());return j}(),c=C=0,V=i.length;C<V;c=++C)for(H=i[c],r=_=L=Q[c];L<=H?_<=H:_>=H;r=L<=H?++_:--_)g[c]===0?a=r+h[c]:(a=l[g[c]/2+(r-L)-(w-c)]||0)!==0&&(a+=h[c]),this.codeMap[r]=65535&a}A.pos=B}return e.encode=function(A,t){var r,n,i,a,l,c,h,g,B,w,d,L,Q,H,C,_,V,Y,j,Z,J,k,q,nA,I,S,R,M,lA,iA,uA,tA,fA,hA,bA,b,T,U,O,G,AA,sA,cA,yA,FA,HA;switch(M=new _n,a=Object.keys(A).sort(function(EA,JA){return EA-JA}),t){case"macroman":for(Q=0,H=function(){var EA=[];for(L=0;L<256;++L)EA.push(0);return EA}(),_={0:0},i={},lA=0,fA=a.length;lA<fA;lA++)_[cA=A[n=a[lA]]]==null&&(_[cA]=++Q),i[n]={old:A[n],new:_[A[n]]},H[n]=_[A[n]];return M.writeUInt16(1),M.writeUInt16(0),M.writeUInt32(12),M.writeUInt16(0),M.writeUInt16(262),M.writeUInt16(0),M.write(H),{charMap:i,subtable:M.data,maxGlyphID:Q+1};case"unicode":for(S=[],B=[],V=0,_={},r={},C=h=null,iA=0,hA=a.length;iA<hA;iA++)_[j=A[n=a[iA]]]==null&&(_[j]=++V),r[n]={old:j,new:_[j]},l=_[j]-n,C!=null&&l===h||(C&&B.push(C),S.push(n),h=l),C=n;for(C&&B.push(C),B.push(65535),S.push(65535),nA=2*(q=S.length),k=2*Math.pow(Math.log(q)/Math.LN2,2),w=Math.log(k/2)/Math.LN2,J=2*q-k,c=[],Z=[],d=[],L=uA=0,bA=S.length;uA<bA;L=++uA){if(I=S[L],g=B[L],I===65535){c.push(0),Z.push(0);break}if(I-(R=r[I].new)>=32768)for(c.push(0),Z.push(2*(d.length+q-L)),n=tA=I;I<=g?tA<=g:tA>=g;n=I<=g?++tA:--tA)d.push(r[n].new);else c.push(R-I),Z.push(0)}for(M.writeUInt16(3),M.writeUInt16(1),M.writeUInt32(12),M.writeUInt16(4),M.writeUInt16(16+8*q+2*d.length),M.writeUInt16(0),M.writeUInt16(nA),M.writeUInt16(k),M.writeUInt16(w),M.writeUInt16(J),AA=0,b=B.length;AA<b;AA++)n=B[AA],M.writeUInt16(n);for(M.writeUInt16(0),sA=0,T=S.length;sA<T;sA++)n=S[sA],M.writeUInt16(n);for(yA=0,U=c.length;yA<U;yA++)l=c[yA],M.writeUInt16(l);for(FA=0,O=Z.length;FA<O;FA++)Y=Z[FA],M.writeUInt16(Y);for(HA=0,G=d.length;HA<G;HA++)Q=d[HA],M.writeUInt16(Q);return{charMap:r,subtable:M.data,maxGlyphID:V+1}}},e}(),Td=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="cmap",A.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new lh(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},A.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=lh.encode(t,r),(i=new _n).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},A}(),dw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="hhea",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},A}(),gw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="OS/2",A.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},A}(),Bw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="post",A.prototype.parse=function(t){var r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var a;for(n=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=(function(){var l,c,h;for(h=[],a=l=0,c=this.file.maxp.numGlyphs;0<=c?l<c:l>c;a=0<=c?++l:--l)h.push(t.readUInt32());return h}).call(this)}},A}(),pw=function(e,A){this.raw=e,this.length=e.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},ww=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="name",A.prototype.parse=function(t){var r,n,i,a,l,c,h,g,B,w,d;for(t.pos=this.offset,t.readShort(),r=t.readShort(),c=t.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+c+t.readShort()});for(h={},a=B=0,w=n.length;B<w;a=++B)i=n[a],t.pos=i.offset,g=t.readString(i.length),l=new pw(g,i),h[d=i.nameID]==null&&(h[d]=[]),h[i.nameID].push(l);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},A}(),vw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="maxp",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},A}(),mw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="hmtx",A.prototype.parse=function(t){var r,n,i,a,l,c,h;for(t.pos=this.offset,this.metrics=[],r=0,c=this.file.hhea.numberOfMetrics;0<=c?r<c:r>c;r=0<=c?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var g,B;for(B=[],r=g=0;0<=i?g<i:g>i;r=0<=i?++g:--g)B.push(t.readInt16());return B}(),this.widths=(function(){var g,B,w,d;for(d=[],g=0,B=(w=this.metrics).length;g<B;g++)a=w[g],d.push(a.advance);return d}).call(this),n=this.widths[this.widths.length-1],h=[],r=l=0;0<=i?l<i:l>i;r=0<=i?++l:--l)h.push(this.widths.push(n));return h},A.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},A}(),Pd=[].slice,Cw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(t){var r,n,i,a,l,c,h,g,B,w;return t in this.cache?this.cache[t]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,l=(c=new _n(r.read(i))).readShort(),g=c.readShort(),w=c.readShort(),h=c.readShort(),B=c.readShort(),this.cache[t]=l===-1?new Qw(c,g,w,h,B):new yw(c,l,g,w,h,B),this.cache[t]))},A.prototype.encode=function(t,r,n){var i,a,l,c,h;for(l=[],a=[],c=0,h=r.length;c<h;c++)i=t[r[c]],a.push(l.length),i&&(l=l.concat(i.encode(n)));return a.push(l.length),{table:l,offsets:a}},A}(),yw=function(){function e(A,t,r,n,i,a){this.raw=A,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Qw=function(){function e(A,t,r,n,i){var a,l;for(this.raw=A,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;l=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&l;)a.pos+=1&l?4:2,128&l?a.pos+=8:64&l?a.pos+=4:8&l&&(a.pos+=2)}return e.prototype.encode=function(){var A,t,r;for(t=new _n(Pd.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)t.pos=this.glyphOffsets[A];return t.data},e}(),Fw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Mr(A,Qr),A.prototype.tag="loca",A.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(t.readUInt32());return a}).call(this)},A.prototype.indexOf=function(t){return this.offsets[t]},A.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},A.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,l=0;l<n.length;++l)if(n[l]=i,a<r.length&&r[a]==l){++a,n[l]=i;var c=this.offsets[l],h=this.offsets[l+1]-c;h>0&&(i+=h)}for(var g=new Array(4*n.length),B=0;B<n.length;++B)g[4*B+3]=255&n[B],g[4*B+2]=(65280&n[B])>>8,g[4*B+1]=(16711680&n[B])>>16,g[4*B]=(4278190080&n[B])>>24;return g},A}(),bw=function(){function e(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var A,t,r,n,i;for(t in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)r=i[t],A[t]=n[r];return A},e.prototype.glyphsFor=function(A){var t,r,n,i,a,l,c;for(n={},a=0,l=A.length;a<l;a++)n[i=A[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 c=this.glyphsFor(t))r=c[i],n[i]=r;return n},e.prototype.encode=function(A,t){var r,n,i,a,l,c,h,g,B,w,d,L,Q,H,C;for(n in r=Td.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(A),d={0:0},C=r.charMap)d[(c=C[n]).old]=c.new;for(L in w=r.maxGlyphID,a)L in d||(d[L]=w++);return g=function(_){var V,Y;for(V in Y={},_)Y[_[V]]=V;return Y}(d),B=Object.keys(g).sort(function(_,V){return _-V}),Q=function(){var _,V,Y;for(Y=[],_=0,V=B.length;_<V;_++)l=B[_],Y.push(g[l]);return Y}(),i=this.font.glyf.encode(a,Q,d),h=this.font.loca.encode(i.offsets,Q),H={cmap:this.font.cmap.raw(),glyf:i.table,loca:h,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(H["OS/2"]=this.font.os2.raw()),this.font.directory.encode(H)},e}();WA.API.PDFObject=function(){var e;function A(){}return e=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},A.convert=function(t){var r,n,i,a;if(Array.isArray(t))return"["+function(){var l,c,h;for(h=[],l=0,c=t.length;l<c;l++)r=t[l],h.push(A.convert(r));return h}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(n in i=["<<"],t)a=t[n],i.push("/"+n+" "+A.convert(a));return i.push(">>"),i.join(`
`)}return""+t},A}();const Uw="/assets/notPass.DHv04sgr.png",Lw="/assets/pass.CAwr4jML.png",Ew="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABt9JREFUaEPNml1sFFUUx8/sbLsfQNld+oFl2yVUo5hA/XrBR014kfBsCEiiL/igiQ9GjPHJF4gPJPIAPmBUlJCYGDBqAR8QUIIoUKiIgEuZdpe0dru7Xbb70d2ZMWfYO969c2fmzrLWTjLZduZ+nN/8z7l37rkjgbdDcijudM+pF93hptO9pmoinbNl6P9F6nt5VLThLIQjlJsh5L7bLzHWrT0Wys5Yct3u1/Jw7DrmGY7X6BMbY8t5efp0WZ7BeI0+sTxbzmyDB0IbxxrvKxQKO0Kh0EuyLD8jSVI/AMitWs/UU3Vdv6eq6uVyufxdV1fXYQDQGBgCRkMZzdj5Pw3gw3KFQuGV5cuXvy9J0kCbDHdsRtf1yWKx+EFXV9fnDRgWqgmGB8JC+CqVyr5AILBrMQDYPqrV6sFgMPhWQx2eQhZFCJShAADg7/8KQaBsYBDKVIUX1AYAntlsdmc0Gj3YihK6LjwF/Buwkv2gl8vldsVisc8oZYg6BgwvsAmIrKrqTZ/PF/cCggAX7v4F5+/ehmx5Xqjqis4gbH96E/RHY+DzYffWQ9O0lCzLjwOAynMzFsSEmJmZ2dnd3X1AyBKisa7DsbFLcPLW716qGWVfHHgUtmx8FkKhkG3dTCbzek9PD6pigSGBjZVNlwIAf7VaPdLZ2blV1CJUolUI7OP5njhsHX4OIpGIbZcLCwvfBAKBbQBQZ1ysaYJDKJwTjFNV1RuiboUQx8cuwYkWlCBWb+peY4BEo1FbkIZ7rW8ogqrgacwtlqEW1cBT1/WsyGTXDgi0XAQEDZckKdZQhFbFAoJqEJC8m1s9rDvR7QuCgCRJ6HsIgSeJFRPEDHIKJOcE0k4ID4ogCPoeC6IR12JBOhquZctyZXIcPv7ljJtowvc9KIKuVWMUsYAYbkXFCNcQVOPQhR/ht7QibKhbQY8gRBEzTlhFCAgqMmvXuaZpsP/ccdA6b0BkWQlWhCogSToUSmGYK4XgzlQvLNSxKfHDA8gqSpEmEPrdSghkfO4nuJo5Bj4ftmM96qoM1yfikM7aD6VsrYcEMYKdgJA5BGFsFbl7/2e4lvlK6FGPjifgniBMiyDmXOIJpFSfhdOpPaDqGGvuR02V4ez19VCtubvZooJcnjkMqeIlV4JscRn4JN2In/HpHriRWuNaZxFBdBhR3oOaVnI0CgO9Wu+A9fG0Ua5YCcLZ608sHZCaVoYR5V3TIE3zg6br4JfRTcEYpTAmosvm4bH+qSbDT1zZCJrGfz0nBRdNkbpWge+V3aaBxfleuHinB55aqxjrydE7CVi3+m9Y2ztjefqnRjcAjmROx6KBoBEjym6oaRXTnvRsDK4pA8a754a1ExBfhe+ZzQcG/A+jG5aOa6ElV2a+hMnir01GZQorQNV80BeZ4xqbyiDs4NICuV+bgtOpvVSezNk+XCjg8DtfCSwtELTmVv4k/JkbcTUMC+Cwi8OvyNHOGMFhRegVZWz2axgvnHW072b6EUhO9YkwGGVaBCHvWk2vKMIg+NJ44PxRgEAS+mM5kH0PUkw4MqVnozCR6Yb75aAwRLtAzGQcpQgudXEc5Y6ZCLLv9AjczlmHWk/WU4UFFcGlLvqq62s8Wep21Ov1MVmWue8WCPLphTNw8V771iOb+9fBC09udMyiqKqa9vv9OJa7LqzMNXupVDocCoW28J4wLqwKhQKcu/UHzJdK0EpWkW431NEBw2sS0NvbC+Fw2FbUcrn8bTgc3uG01CXuZYJMTk7uiMfj++1aRVXK5TJUq1XAv1s9JEkysovBYBACgYBtphHbT6VSbwwMDOB2g23ygQah3euqnXu1anir9RpuNcy4lSWLQpa89OLKryjK9sHBwY9a7byd9SYmJt5MJBJfMGpYEnTYJ51JMV0sn8/vXbly5WvtNMprW3Nzc4cikcg7HAj0acOvbZPY9FCcy+X2RCKRV70a0I7y+Xz+k2g0ihD49C35LDplSoDojAoqQiZIQ51kMrktkUi8vVgxgzGhKMqHQ0NDR6gcFpnJzdjggRAgOitvJrVJcjuZTL7c19e3ORgMDsuyvFokPyyojKqq6lSlUrk6PT19amho6CiTrCaJBuJO3I0eVhV6FEMwohD5JZkXdrua2Gy/9fSgBG9/nd6KJsaSJ8/+WrauhTZDG27GQtAwdLwJCmAWo/fO8W/ypFkY8j9v/118e5oa1egUEr1R5KaCHSALwoOhr3H32nmd8/YVLfvu1FcQD6MGgXOCYRXgfv1g9xTp6zQEqwC7K+zVrZxASCyxn3HwYsziWqwhvO1rdv6h63h1r//8oxo7INaNvBruppjdZ06um/ZeDXEq77Ut1q14kK4ApNI/12uBidpnTjUAAAAASUVORK5CYII=",xw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABUxJREFUaEPtms9v40QUx9/EaWyHkib9iaBtkCKx4oAWcYATVy4gzmhFWQkuywEkDogTJy4gDkhwYC8gwaIV5wUuCPgD9oBUgYQWKaC0AW3a0qRWNo7b2EbPmzGv4xl7nIZdFiWS5daeH+8z3/c8njdmkO/HUoqn3UvrJUy5mXbvVDWdzsUy9H+d+nmGihouQqRCZRnC72edubFZ7YlQKmP5ddU5MTiqjmWG4zV6YGNiuTyjT8vKDMZr9MDyYrm4DRkINU40vuA4zpZt288ahvEEY+xBADAmtV6o54dh+Kfv+z+6rvtNpVK5AgCBAMPBKFTUjMr/KUAByzmO89L8/PzbjLGNKRme2kwYhrv9fv+dSqXy+RhGhDoFIwMRIQrD4fAD0zQv3QkAsQ/P8y5blvXGWB2ZQglFOFSkAADg+a5CcCgFDELFqsiCOgLA4/Dw8GKtVrs8iRJhqD0F/BOwTP3Q63a7lxYXFz8jynB1IhhZYHMQw/f9G4VCYT0PCAIEt34FGNwAFvS1qgZgwej+p6FkL0GhgN0nf0EQtA3DOAcAvszNRJAYYn9//+Ly8vLHWpZwjRGidx0MdztPtahsNzgH1tKTYNu2su7BwcGrKysrqEoChgc2Vo5dCgCKnuddLZVKz+taFClxdB2MQX4I7KMzqIO5/BRUq1Vll8fHx9dM07wAACPBxU5NcAiFc0J0+L7/i65bnRUCLb95azMCqdVqSpCxez06VgRVwSOaWxKPWlQDjzAMD3Umu2lA6IKg4YyxxbEiVJUECKrBQXpZbjUtiBwgwBhD30MIPHisxCBxkBOQbhpIBDFhYMva1XEtrMcYQ98TQQLuWiLI3Ni1lCyjfhOKzvdZomnfzwGCrnUiKJIAidyKxIjUEFRjdPAdzJ38rm1oVsGcIFyROE5ERTgIKvKXqvMgCGC09xWUgk6Wfdr3c4AsEUVOgdB3K22Qk841MMM9bUOzCp4RJAp2DsLnEITJVOQ/AhLPJTOQmSKKYJkwRmauFY0nPn5nrjVzrdsjwBijE+IsRu6JGMEZ/n/xinLPg8TJOKIILnX3VUvdu/j4xaXuCllYKV/j+VJ3bjQa/WQYxkOypyWCeHs/gB38lvVSq32/3X8E5lcfT82i+L7/R7FYfExnYRWv2QeDwRXbtp+TWYILK8dxYHD4M3juACbJKtJ2AyiBcd/DsLq6CuVyWQnvuu7X5XJ5K22py90rBtnd3d1aX1//KG1x5boueJ4XzfST/hhjUXbRsiwwTVOZacT22+32axsbG7jdoEw+UBDqXtsq95rU8Enrjd3qvOBWiSwKX/LSxVWx1Wq9uLm5+eGknU+z3s7Ozuv1ev0LQY1Egg77pJmU2MV6vd57CwsLr0zTqLxtHR0dfVKtVt+SQKBPR36tTGLTR3G32323Wq2+nNeAaZTv9Xqf1mo1hMDRT+SzaMqUA9GMCirCJ8hInWazeaFer795p2IGY6LVar3faDSukhwWnzfi2JCBcCCalY+T2jy53Ww2X1hbW3vGsqzzhmE8oJMf1lTG933/5nA43O50Ot82Go0vhWQ1f9Pl7iTd6BFVoU8xBOMK8TPPvIjb1dxm9dbT7RKy/XW6Fc2N5SMvnhNb11qboWM3EyEoDI03TQHiYnTvHP/mIy3C8P9l++/629PkqUZTSHSjKEsFFaAIIoOh16R77bLOZfuKiX138hXEWdTgcGkwogLSrx9Uo0ivUwhRAXFXOK9bpYHwWBI/45DFWMK1RENk29fi/EPr5HWvf/2jGhWQ6EZ5Dc9STPWZU+amfV5D0srnbUt0KxlkJgCv9Dfa+0eJPECHGQAAAABJRU5ErkJggg==",Iw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAeVJREFUOE+tlD9oU1EUh7/z8m5NGqRoERXFP1irhSYv6GYHQRepu4OzQhdBsa8OLhkcii92VCx0cnAouDh0bEFXMVerlCqS4tCCIg5G2ryXHElMapM8WwfveM/vfPecc3/3Cv9hSSdDbwzsCpO9Y4KcB4aAo6AlkCWFeZPe80jyC9HWvDbIxu3M6YQ4z1UY2KbAd27NuSwPXq+0NJuQjTuZjFNzFoC9/9DhWjVRG0lOvv1U1zYgmj/bG5WjZeBQB+ALKlcQnQZOdsSW3NLgsMzOVhuQcDx3F9F7MRWsmcAeDMe9IoLXNT/Vaz2FNzO/IX7OgmZjIN9MYPtDP/sepD7k9iUyZ+4XR0XzOFHZCwGnS6T8MAW7O/JzHxU9EXPIVxPYfdKcR/kvw1w3gU1V/OyKIEfiNG5p0G2241UAEycygZXQ91aBAzHxnyaw6RbkJTASW43qRUSeAX0x8XkT2AsNSMX3bglMxUFUeSLCVSDRfTuM9RTs46ZPjiWjct8H4HCHsIJwCeUpsL8tJiy7391hmX4V/nHsxJkhR6MXIP07OlZYjRw5l5osljYd20pan8ieclXmFI5vA1p0q9VRmVr83PV2Whv1Vxyl0jdF5XqbNxSrwowpDT6sW33rIV1fwY6txAh+AbLgpb7IpONgAAAAAElFTkSuQmCC";Qg([Fg,bg,Ug,Lg,Eg,xg,Ig]);const _w={name:"JobApplicationReport",components:{VChart:r1},data(){return{analyzing:!1,userInfo:{avatar:"/@/assets/default-avatar.png",name:"张某三",interviewTime:"2021-06-30 18:00",duration:"18分 12秒",idNumber:"24893119999999999",phone:"14893725981",pass:60,visual_analysis_done:!1},totalScore:52,abilityItems:[],isPassed:!1,hireRecommendation:"",failReason:"候选人答题过程中存在非正常表现和应答，同时，可行性较为不足，候选人表现出来的综合能力也不符合岗位要求的行为和动机表现，在特定学习方面，候选人未能呈现出明显的优势和发展潜质。",qualityDetails:{strengths:[],weaknesses:[]},activeTab:"comprehensive",tabs:[{id:"comprehensive",name:"综合评价"},{id:"ability",name:"能力素质"},{id:"cheat",name:"作弊检测"},{id:"psychology",name:"心理检测"},{id:"body",name:"肢体检测"},{id:"eye-emotion",name:"眼动/情绪检测",isDialog:!0},{id:"personal-info",name:"个人详细信息",isInfo:!0},{id:"answers",name:"问答记录"},{id:"other-answers",name:"其余答题详情",isLink:!0}],isNavFixed:!1,navHeight:0,navOffsetTop:0,loading:!1,error:null,analysisMap:{clear_expression:"表达清晰",logical_thinking:"逻辑思维能力强",professional_knowledge:"专业知识扎实",communication_skills:"沟通能力出色",problem_solving:"问题解决能力强",team_collaboration:"团队协作意识好",learning_ability:"学习能力强",lack_experience:"经验不足",weak_professional:"专业知识有待提升",poor_expression:"表达能力需要提高",weak_logic:"逻辑思维需要加强",weak_communication:"沟通技巧需要改进",weak_teamwork:"团队协作意识不足",weak_learning:"学习能力有待提升"},psychologyData:{score:35,description:"轻微焦虑或负面情绪，仍具备岗位适应力。候选人在某些方面可能存在轻微的心理压力，但总体上仍保持稳定，基本符合岗位要求。",recommendation:"可考虑录取"},redLineQuestions:{allCorrect:!1,failedQuestions:[]},handVerificationData:{left:[],right:[]},reportTime:"2025.5.19",reportId:"2489372598",isMobile:!1,showInfoDialog:!1,userProfile:{name:"",gender:"",age:"",education:"",phone:"",email:"",address:"",position:"",experience:"",expectedSalary:"",idCard:"",height:"",weight:"",nativePlace:"",politicalStatus:"",ethnicity:"",maritalStatus:"",specialties:"",schoolName:"",major:"",graduationDate:"",currentCompany:"",department:""},showBodyVerification:!1,eyeEmotionDialogVisible:!1,eyeEmotionData:{eyeTrackingData:{focusPoints:[],dwellTime:[],scanPath:[]},emotionAnalysis:{mainEmotion:"",emotionDetails:[],suggestions:[]}},competencyMap:{communication_cooperation:"团队协作能力",learning_ability:"应变能力",service_awareness:"服务意识",customer_insight:"客户需求洞察力",position_matching:"应变能力",communication_expression:"沟通表达能力"},radarData:{indicator:[{name:"团队协作能力",value:50,max:100},{name:"应变能力",value:50,max:100},{name:"服务意识",value:50,max:100},{name:"客户需求洞察力",value:50,max:100},{name:"应变能力",value:50,max:100},{name:"沟通表达能力",value:50,max:100}],values:[50,50,50,50,50,50]},exporting:!1,radarChartInstance:null,interview_progress:[],interviewRecords:[],followUpQuestions:[],noTableHeight:0,showCheatVerification:!1,abnormalPhotos:{photos_by_type:{identity_changed:[]}},emotionAnalysis:{},enable_posture_check:!1,enable_emotion_analysis:!1,enable_scoring_questions:!1}},async created(){await Promise.all([this.fetchApplicationDetail(),this.initPositionConfig()])},mounted(){this.$nextTick(()=>{const e=this.$refs.navTabs;e&&(this.navHeight=e.offsetHeight,this.navOffsetTop=e.offsetTop,window.addEventListener("scroll",this.handleScroll))}),this.checkDevice(),window.addEventListener("resize",this.checkDevice),this.$nextTick(()=>{this.radarChartInstance=this.$refs.radarChart}),this.$nextTick(()=>{this.$refs.radarChart&&(this.radarChartInstance=this.$refs.radarChart)})},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.checkDevice)},computed:{radarOption(){return{radar:{indicator:this.radarData.indicator,center:["50%","50%"],radius:"65%",splitNumber:4,shape:"circle",axisName:{color:"#666",fontSize:12,formatter:e=>{const A=this.radarData.indicator.findIndex(i=>i.name===e),t=this.radarData.values[A],n={团队协作能力:"团队协作",应变能力:"应变能力",服务意识:"服务意识",客户需求洞察力:"需求洞察",沟通表达能力:"沟通表达"}[e]||e;return`${t}
${n}`}},nameGap:15,axisLabel:{show:!1},splitArea:{show:!0,areaStyle:{color:["#fff"]}},splitLine:{show:!0,lineStyle:{color:"#E7E9ED",type:"solid",width:1}},axisLine:{show:!0,lineStyle:{color:"#E7E9ED",width:1}}},series:[{type:"radar",symbol:"none",itemStyle:{normal:{lineStyle:{color:"#c1dafc",width:2},areaStyle:{type:"default",color:"rgba(193, 218, 252, 0.6)",shadowBlur:10,shadowColor:"rgba(193, 218, 252, 0.5)",shadowOffsetY:5}}},data:[{value:this.radarData.values}]}]}},getPsychologyScoreClass(){const e=this.psychologyData.score;return e<=20?"low-risk":e<=55?"medium-risk":"high-risk"},getPsychologyRiskLevel(){const e=this.psychologyData.score;return e<=20?"低风险":e<=55?"中风险":"高风险"}},methods:{async initPositionConfig(){try{const e=this.$route.query.position||this.$route.params.position;if(!e){console.warn("未找到position参数，跳过职位配置获取");return}const A=await fetch(`https://backend.qicai321.com/api/system/job_config/position/detail/${e}`);if(!A.ok)throw new Error(`获取职位配置失败: ${A.status}`);const t=await A.json();if(t.code===2e3){const r=t.data;this.enable_posture_check=r.enable_posture_check||!1,this.enable_emotion_analysis=r.enable_emotion_analysis||!1,this.enable_scoring_questions=r.question_form_switches.enable_scoring_questions||!1,console.log("职位配置加载成功:",r)}else console.error("获取职位配置失败:",t.message||"未知错误")}catch(e){console.error("获取职位配置时发生错误:",e)}},async reAnalyze(){try{const e=await Mg.post("https://backend.qicai321.com/api/system/report/rerun_full_analysis/",{application_id:this.$route.query.id||this.$route.params.id});if(e.data.code!==2e3){Ii.warning(e.data.message||"视频分析失败");return}else Ii.success("重新分析提交成功")}catch(e){console.error("重新分析失败:",e),Ii.warning("重新分析失败")}},async fetchApplicationDetail(){var e,A,t,r,n,i,a,l,c,h,g,B;console.log(Ga.get("tenant_id"));try{const w=this.$route.query.id||this.$route.params.id,d=this.$route.query.tenant_id||this.$route.params.tenant_id;console.log(w),this.loading=!0;const L=await fetch(`https://backend.qicai321.com/api/job/application_detail?tenant_id=${Ga.get("tenant_id")||d}&application_id=${w}`);if(!L.ok)throw new Error("获取数据失败");const Q=await L.json();if(Q.code===2e3){const H=Q.data||{};if(this.reportTime=((e=H.application)==null?void 0:e.update_datetime)||"",this.userInfo={avatar:this.getFacePhoto(H.posture_photos)||"/@/assets/default-avatar.png",name:((A=H.applicant)==null?void 0:A.name)||"未知",interviewTime:((t=H.application)==null?void 0:t.interview_completion_time)||"-",duration:((r=H.application)==null?void 0:r.interview_duration_formatted)||"-",idNumber:((n=H.applicant)==null?void 0:n.id_card)||"-",phone:((i=H.applicant)==null?void 0:i.phone)||"-",pass:((a=H.application)==null?void 0:a.comprehensive_score)||0,visual_analysis_done:H.application.analysis_status.visual_analysis_done},this.reportId=((l=H.application)==null?void 0:l.report_id)||"",H.posture_photos&&Array.isArray(H.posture_photos)){const V=H.posture_photos.filter(j=>{var Z,J;return((Z=j==null?void 0:j.description)==null?void 0:Z.includes("left_"))||((J=j==null?void 0:j.description)==null?void 0:J.includes("左手"))})||[],Y=H.posture_photos.filter(j=>{var Z,J;return((Z=j==null?void 0:j.description)==null?void 0:Z.includes("right_"))||((J=j==null?void 0:j.description)==null?void 0:J.includes("右手"))})||[];this.handVerificationData.left=V.map(j=>{var Z,J;return{url:(j==null?void 0:j.photo_url)||"/@/assets/default-image.png",description:this.getPhotoDescription((j==null?void 0:j.description)||""),part_verification:{is_correct_part:((Z=j==null?void 0:j.part_verification)==null?void 0:Z.is_correct_part)??!0,explanation:((J=j==null?void 0:j.part_verification)==null?void 0:J.explanation)||"手势验证通过"}}}),this.handVerificationData.right=Y.map(j=>{var Z,J;return{url:(j==null?void 0:j.photo_url)||"/@/assets/default-image.png",description:this.getPhotoDescription((j==null?void 0:j.description)||""),part_verification:{is_correct_part:((Z=j==null?void 0:j.part_verification)==null?void 0:Z.is_correct_part)??!0,explanation:((J=j==null?void 0:j.part_verification)==null?void 0:J.explanation)||"手势验证通过"}}})}this.abnormalPhotos=H.application.abnormal_photos||{},this.emotionAnalysis=H.emotion_analysis||{},H.application&&(this.totalScore=H.application.comprehensive_score||0,this.hireRecommendation=H.application.hire_recommendation||"",this.failReason=H.application.hire_reason||"");const C=(h=(c=H.application)==null?void 0:c.comprehensive_analysis)==null?void 0:h.video_analysis_data;C!=null&&C.competency_scores?this.abilityItems=Object.entries(C.competency_scores).map(([V,Y])=>({tag_name:this.getCompetencyName(V)||Y.tag_name||V,weighted_score:Math.round(Y.weighted_score||0)})):this.abilityItems=[{tag_name:"团队协作能力",weighted_score:0},{tag_name:"应变能力",weighted_score:0},{tag_name:"服务意识",weighted_score:0},{tag_name:"客户需求洞察力",weighted_score:0},{tag_name:"沟通表达能力",weighted_score:0}],C?this.qualityDetails={strengths:C.strengths||[],weaknesses:C.weaknesses||[]}:this.qualityDetails={strengths:[],weaknesses:[]},H.required_questions_summary&&(this.redLineQuestions={allCorrect:H.required_questions_summary.all_correct||!1,failedQuestions:H.required_questions_summary.failed_questions_details||[]});const _=(g=H.scoring_summary)==null?void 0:g.total_score_obtained;this.psychologyData={score:_||0,description:this.getPsychologyDescription(_),recommendation:this.getHireRecommendation(_)},C!=null&&C.competency_scores?this.updateRadarData(C.competency_scores):this.radarData={indicator:[{name:"团队协作能力",max:100},{name:"应变能力",max:100},{name:"服务意识",max:100},{name:"客户需求洞察力",max:100},{name:"沟通表达能力",max:100}],values:[0,0,0,0,0]},this.followUpQuestions=H.follow_up_records.map(V=>{let Y=null;try{Y=JSON.parse(V.user_text.replace(/'/g,'"')),console.log(Y)}catch(J){console.error("Failed to parse user_text:",J)}const Z=((Y==null?void 0:Y.text)||"暂无提问").replace(/^"|"$/g,"");return{...V}}),console.log(this.followUpQuestions),(B=Q.data)!=null&&B.interview_progress&&(this.interviewRecords=this.processInterviewRecords(Q.data.interview_progress),this.interview_progress=Q.data.interview_progress,console.log(this.interviewRecords))}}catch(w){console.error("获取应用详情失败:",w),this.error=w.message}finally{this.loading=!1}},formats(e){return console.log(e),`${e}分`},format(e){return`${e}分`},async scrollToSection(e){if(e==="other-answers"){const t=this.$route.query.id||this.$route.params.id,r=window.location.origin,n=this.interview_progress.filter(i=>i.question_form!==0&&i.question_form!==5);if(console.log("过滤后的数据:",n),n.length===0){this.$message.warning("暂无其余问题");return}this.interviewRecords=n,console.log("处理后的数据:",this.interviewRecords),window.open(`${r}/#/topic?applicationId=${t}`,"_blank")}this.activeTab=e;const A=this.$refs[e];A&&A.scrollIntoView({behavior:"smooth"})},handleScroll(){const e=window.pageYOffset||document.documentElement.scrollTop;this.isNavFixed=e>this.navOffsetTop,this.updateActiveTab(e)},updateActiveTab(e){const A=this.navHeight,t=this.tabs.map(r=>{const n=this.$refs[r.id];return{id:r.id,top:n.getBoundingClientRect().top+window.pageYOffset-A-20}});for(let r=t.length-1;r>=0;r--)if(e>=t[r].top){this.activeTab=t[r].id;break}},getChineseAnalysis(e){return this.analysisMap[e]||e},getPsychologyDescription(e){return e===void 0?"未进行心理测评或数据缺失":e<=20?"心理状态健康，情绪稳定、认知正常。候选人在心理测评中表现出稳定的情绪状态和健康的心理特质，适合岗位要求。":e<=35?"轻微焦虑或负面情绪，仍具备岗位适应力。候选人在某些方面可能存在轻微的心理压力，但总体上仍保持稳定，基本符合岗位要求。":e<=55?"存在一定情绪波动或压力反应。候选人在测评中表现出一定程度的心理压力或情绪波动，建议进一步面谈评估。":e<=70?"心理压力较大，可能影响工作稳定性。候选人在测评中表现出较明显的心理压力或情绪不稳定性，建议慎重录用或考虑调岗。":"可能存在较严重心理或精神问题。候选人在测评中表现出明显的心理或情绪问题，不建议录用。"},getHireRecommendation(e){return e===void 0?"无法给出建议":e<=20?"建议优先录取":e<=35?"可考虑录取":e<=55?"建议进一步面谈评估":e<=70?"慎重录用或建议调岗":"不建议录用"},getPhotoDescription(e){return{left_palm:"左手手心",left_back:"左手手背",left_fist:"左手腕拳",right_palm:"右手手心",right_back:"右手手背",right_fist:"右手腕拳",左手手心:"左手手心",左手手背:"左手手背",左手腕拳:"左手腕拳",右手手心:"右手手心",右手手背:"右手手背",右手腕拳:"右手腕拳"}[e]||e},getHandPhotos(e){return(this.handVerificationData[e]||[]).map(t=>({url:t.url,status:"normal",photo_id:1,detections:[],description:t.description,photo_index:1,analysis_model:"",part_verification:t.part_verification,analysis_timestamp:"",overall_assessment:"正常"}))},handleImageError(e){const A=e.target;A&&(A.src="/@/assets/default-image.png")},checkDevice(){this.isMobile=window.innerWidth<=768},async handleTabClick(e){e.isInfo?(await this.fetchUserProfile(),this.showInfoDialog=!0):e.isLink?this.scrollToSection(e.id):e.isDialog?e.id==="eye-emotion"&&this.openEyeEmotionDialog():this.scrollToSection(e.id)},async openEyeEmotionDialog(){this.eyeEmotionDialogVisible=!0},handleEyeEmotionDialogClose(){this.eyeEmotionDialogVisible=!1},async fetchEyeEmotionData(){try{const e=this.$route.query.id||this.$route.params.id,A=await fetch(`https://backend.qicai321.com/api/job/eye_emotion_analysis?tenant_id=${Ga.get("tenant_id")}&application_id=${e}`);if(!A.ok)throw new Error("获取眼动情绪数据失败");const t=await A.json();t.code===2e3?this.eyeEmotionData=t.data||this.eyeEmotionData:Ii.error("获取眼动情绪数据失败")}catch(e){console.error("获取眼动情绪数据失败:",e),Ii.error("获取眼动情绪数据失败")}},handleDialogClose(){this.showInfoDialog=!1},async fetchUserProfile(){try{const e=this.$route.query.application_id,A=Ga.get("tenant_id"),t=await fetch(`https://backend.qicai321.com/api/system/wechat/user/profile/get?user_id=${e}&tenant_id=${A}`);if(!t.ok)throw new Error("获取用户信息失败");const r=await t.json();if(console.log(r),r.code===2e3&&r.data){const n=r.data.user_info,i=r.data.educations[0]||{},a=r.data.profile,l=r.data.work_experiences[0]||{};this.userProfile={name:n.name||this.userInfo.name,gender:n.gender===1?"男":"女",age:n.age||"",education:this.getEducationLevel(i.degree),phone:n.phone||this.userInfo.phone,email:"",address:a.current_address||"",position:l.position||"",experience:this.formatWorkExperience(l),expectedSalary:l.monthly_salary?`${l.monthly_salary}元/月`:"",idCard:n.id_card||"",height:a.height?`${a.height}cm`:"",weight:a.weight?`${a.weight}kg`:"",nativePlace:a.native_place||"",politicalStatus:a.political_status||"",ethnicity:a.ethnicity||"",maritalStatus:a.marital_status_name||"",specialties:a.specialties||"",schoolName:i.school_name||"",major:i.major||"",graduationDate:i.end_date||"",currentCompany:l.company_name||"",department:l.department||""}}}catch(e){console.error("获取用户详细信息失败:",e)}},getEducationLevel(e){return{0:"高中",1:"中专",2:"大专",3:"本科",4:"硕士",5:"博士"}[e]||"未知"},formatWorkExperience(e){if(!e.start_date)return"无工作经验";const A=new Date(e.start_date),t=e.end_date?new Date(e.end_date):new Date;return`${Math.floor((t-A)/(365*24*60*60*1e3))}年`},getMaritalStatus(e){return e===0?"未婚":"已婚"},getPositionLabel(e,A){var n;const t=this.getPhotoType(e,A);return((n={left:{palm:"①左手手心",back:"②左手手背",fist:"③左手腕拳"},right:{palm:"④右手手心",back:"⑤右手手背",fist:"⑥右手腕拳"}}[e])==null?void 0:n[t])||`${e==="left"?"左":"右"}手部位${A+1}`},getDefaultDescription(e,A){var n;const t=this.getPhotoType(e,A);return((n={left:{palm:"手掌纹理清晰，活动自然",back:"手背皮肤正常，关节灵活",fist:"腕关节活动度正常"},right:{palm:"手掌纹理清晰，活动自然",back:"手背皮肤正常，关节灵活",fist:"腕关节活动度正常"}}[e])==null?void 0:n[t])||"手部动作正常"},getPhotoType(e,A){var i,a,l;const t=(i=this.handVerificationData[e])==null?void 0:i[A];if(!t)return null;const r=((a=t.description)==null?void 0:a.toLowerCase())||"";return r.includes("palm")||r.includes("手心")?"palm":r.includes("back")||r.includes("手背")?"back":r.includes("fist")||r.includes("腕拳")?"fist":(l=t.part_verification)!=null&&l.part_type?t.part_verification.part_type:["palm","back","fist"][A]||"unknown"},handleBodyVerificationClose(){this.showBodyVerification=!1},getCompetencyName(e){return{communication_cooperation:"团队协作能力",learning_ability:"应变能力",service_awareness:"服务意识",customer_insight:"客户需求洞察力",position_matching:"岗位匹配度",communication_expression:"沟通表达能力"}[e]},updateRadarData(e){if(!e)return;const A=Object.entries(e).map(([t,r])=>({name:this.getCompetencyName(t)||r.tag_name||t,score:Math.round(r.weighted_score||0)})).sort((t,r)=>r.score-t.score).slice(0,6);this.radarData={indicator:A.map(t=>({name:t.name,max:100})),values:A.map(t=>t.score)}},async ensureChartRendered(){var t,r;let e=0;const A=5;for(;!((t=this.$refs.radarChart)!=null&&t.chart)&&e<A;)await new Promise(n=>setTimeout(n,200)),e++;return(r=this.$refs.radarChart)==null?void 0:r.chart},getFacePhoto(e){var r;if(!e||!Array.isArray(e))return null;const A=["face","facial","面部","人脸","头像"],t=e.find(n=>{const i=((n==null?void 0:n.description)||"").toLowerCase();return A.some(a=>i.includes(a))});return(t==null?void 0:t.photo_url)||((r=e[0])==null?void 0:r.photo_url)},getQuestionTypeName(e){return{0:"视频问答题",1:"单选题",2:"多选题",3:"图片选择题",4:"问卷题",5:"开放问答题"}[e]||"未知题型"},processInterviewRecords(e){if(!e||!Array.isArray(e))return[];const A=e.filter(t=>(t.question_form===0||t.question_form===5)&&(t.video_answer||t.answer_data)).map(t=>{var r,n,i,a,l,c;return{question:t.question_text||"未提供问题",answer:((r=t.video_answer)==null?void 0:r.transcript)||((n=t.answer_data)==null?void 0:n.text_answer)||"",analysis:((a=(i=t.video_answer)==null?void 0:i.ai_analysis)==null?void 0:a.comment)||"",score:(l=t.video_answer)!=null&&l.ai_score?`${t.video_answer.ai_score}`:"",question_form:t.question_form,question_id:t.question_id,parent_question_id:t.parent_question_id,follow_up_questions:[],video_url:((c=t.video_answer)==null?void 0:c.video_url)||""}});return e.filter(t=>t.question_form===5&&t.parent_question_id).forEach(t=>{var n,i,a,l,c;const r=A.find(h=>h.question_id===t.parent_question_id);r&&r.follow_up_questions.push({question:t.question_text||"未提供问题",answer:((n=t.video_answer)==null?void 0:n.transcript)||"",analysis:((a=(i=t.video_answer)==null?void 0:i.ai_analysis)==null?void 0:a.comment)||"",score:(l=t.video_answer)!=null&&l.ai_score?`${t.video_answer.ai_score}分`:"",question_form:t.question_form,question_id:t.question_id,parent_question_id:t.parent_question_id,follow_up_questions:[],video_url:((c=t.video_answer)==null?void 0:c.video_url)||""})}),A},getProgressColor(e){return e>=80?[{color:"#00b050",percentage:0},{color:"#6aff05",percentage:100}]:[{color:"#f7681d",percentage:0},{color:"#fdd1bb",percentage:100}]},formatAnalysis(e){return e?e.replace(/^\s+/,"").replace(/【/g,`
【`).replace(/^\n/,""):""},extractAssessmentPoints(e){if(!e)return[];const A=/【([^】]+)】评价：([^【]+)(?=【|$)/g,t=[];let r;for(;(r=A.exec(e))!==null;){const n=r[1].trim(),i=r[2].trim();let a="";i.includes("优秀")?a="优秀":i.includes("良好")?a="良好":i.includes("一般")?a="一般":i.includes("较差")?a="较差":a="一般";const l=i.replace(/(优秀|良好|一般|较差)，/,"").trim();t.push({name:n,score:a,detail:l})}return t},getScoreClass(e){switch(e){case"优秀":return"score-excellent";case"良好":return"score-good";case"一般":return"score-average";case"较差":return"score-poor";default:return"score-average"}},getPsychologyScoreClass(){const e=this.psychologyData.score;return e<=20?"low-risk":e<=55?"medium-risk":"high-risk"},getPsychologyRiskLevel(){const e=this.psychologyData.score;return e<=20?"低风险":e<=55?"中风险":"高风险"},async exportPDF(){try{this.exporting=!0;const e=document.querySelector(".report-container");if(!e)throw new Error("未找到要导出的内容");const A={allowTaint:!1,useCORS:!0,scale:2,logging:!1,backgroundColor:"#ffffff",height:e.scrollHeight,windowHeight:e.scrollHeight,imageTimeout:0,onclone:h=>{const g=h.createElement("style");g.innerHTML=`
              @media print {
                body {
                  -webkit-print-color-adjust: exact !important;
                  print-color-adjust: exact !important;
                }
                .report-container {
                  width: 100% !important;
                  margin: 0 !important;
                  padding: 20px !important;
                  display: block !important;
                }
                .report-header {
                  display: flex !important;
                  justify-content: space-between !important;
                  align-items: flex-end !important;
                  height: 80px !important;
                  margin-bottom: 30px !important;
                }
                 :v-deep(.status-tag),
                .status-tag[style*="background"],
                span[class="status-tag"] {
                  background: none !important;
                  background-color: transparent !important;
                  -webkit-print-color-adjust: exact !important;
                  print-color-adjust: exact !important;
                  color: #000000 !important;
                  border: 1px solid #000000 !important;
                }
                /* 确保内联样式不会覆盖我们的设置 */
                span[style*="background"].status-tag {
                  background: none !important;
                  background-color: transparent !important;
                }
                .header {
                  display: flex !important;
                  gap: 20px !important;
                }
                .header-right {
                  display: flex !important;
                  position: relative !important;
                }
                .nav-tabs {
                  display: flex !important;
                  gap: 32px !important;
                  justify-content: flex-start !important;
                  align-items: center !important;
                }
                .evaluation-result {
                  display: flex !important;
                  justify-content: space-between !important;
                  align-items: flex-start !important;
                }
                .score-section {
                  display: flex !important;
                  flex-direction: column !important;
                  gap: 24px !important;
                }
                .score-section-left {
                  display: flex !important;
                  justify-content: flex-start !important;
                  align-items: center !important;
                  gap: 16px !important;
                }
                .detection-results {
                  display: flex !important;
                  align-items: center !important;
                  gap: 8px !important;
                }
                .ability-quality {
                  display: block !important;
                }
                .quality-details {
                  display: block !important;
                }
                .quality-item {
                  display: flex !important;
                  gap: 24px !important;
                }
                .psychology_box {
                  display: flex !important;
                  flex-direction: row !important;
                  gap: 16px !important;
                  justify-content: space-between !important;
                  align-items: center !important;
                }
                .detection-section-content {
                  display: flex !important;
                  justify-content: space-between !important;
                  gap: 16px !important;
                }
                .fixed-btn {
                  display: none !important;
                }
                
                /* 确保所有flex容器在打印时保持flex布局 */
                [class*="flex"] {
                  display: flex !important;
                }
                
                /* 确保图表容器保持正确的尺寸 */
                .radar-chart {
                  width: 500px !important;
                  height: 350px !important;
                }
                
                /* 确保进度条样式正确 */
                .el-progress-bar__outer {
                  height: 8px !important;
                  background-color: #EBEEF5 !important;
                }
                
                .el-progress-bar__inner {
                  transition: none !important;
                }
                :v-deep(.el-progress__text){
                  display: none !important;
                }
                
                /* 确保文字样式正确 
                .text-[14px] {
                  font-size: 14px !important;
                  line-height: 16px !important;
                }*/
                
                /* 确保边距和间距正确 */
                .mt-6 { margin-top: 1.5rem !important; }
                .mb-4 { margin-bottom: 1rem !important; }
                .p-4 { padding: 1rem !important; }
                
                /* 确保圆角样式正确 */
                .rounded-lg { border-radius: 0.5rem !important; }
                
                /* 确保背景色正确 */
                .bg-white { background-color: #ffffff !important; }
                .bg-gray-50 { background-color: #F9FAFB !important; }
              }
            `,h.head.appendChild(g),h.querySelectorAll("*").forEach(w=>{w.style.visibility="visible",w.style.opacity="1"})}},t=await Bd(e,A),r=595.28,i=841.89,a=t.toDataURL("image/jpeg",1),l=new WA({orientation:"p",unit:"pt",format:"a4",compress:!0}),c=Math.ceil(t.height*r/t.width/i);for(let h=0;h<c;h++){h>0&&l.addPage();const g=-h*i;l.addImage(a,"JPEG",0,g,r,t.height*r/t.width,"","FAST")}l.save(`AI面试结果检验报告_${this.userInfo.name||"未知"}_${this.reportId}.pdf`)}catch(e){console.error("导出PDF失败:",e),Ii.error("导出PDF失败，请稍后重试")}finally{this.exporting=!1}},getFooterElement(e,A=0){const t=document.createElement("div");return t.style.background="#ffffff",t.style.width="calc(100% + 8px)",t.style.marginLeft="-4px",t.style.marginBottom="0px",t.classList.add("divRemove"),t.style.height=e+A+"px",t},isSplit(e,A,t){return e[A+1]?(e[A].localName!=="tr"&&(this.noTableHeight+=e[A].clientHeight),e[A].localName!=="tr"?e[A].offsetTop+e[A].offsetHeight<t&&e[A+1]&&e[A+1].offsetTop+e[A+1].offsetHeight>t:e[A].offsetTop+e[A].offsetHeight+this.noTableHeight<t&&e[A+1]&&e[A+1].offsetTop+e[A+1].offsetHeight+this.noTableHeight>t):!1},getBarChartOption(e){const A=e.weighted_score>=80?[{offset:0,color:"#00b050"},{offset:1,color:"#6aff05"}]:[{offset:0,color:"#f7681d"},{offset:1,color:"#fdd1bb"}];return{grid:{left:0,right:40,top:0,bottom:0,containLabel:!1},xAxis:{type:"value",show:!1,max:100},yAxis:{type:"category",show:!1},series:[{type:"bar",data:[e.weighted_score],barWidth:8,label:{show:!0,position:"right",formatter:"{c}分",fontSize:12,color:"#808080"},itemStyle:{borderRadius:[0,4,4,0],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:A}}}]}},formatTextWithBrackets(e){return e?e.replace(/】[^【：]*：[^：]*：/,"】").replace(/】[^【：]*：/,"】").replace(/【(.*?)】/g,'<span  style="color:#81b337; font-weight: 500;">【$1】</span>'):""},formatTextWithBrackets2(e){return e?e.replace(/】[^【：]*：[^：]*：/,"】").replace(/】[^【：]*：/,"】").replace(/【(.*?)】/g,'<span  style="color:#fb752f; font-weight: 500;">【$1】</span>'):""},getAnswerText(e){if(!e)return"暂无回答";if(typeof e=="string")return e;if(console.log(e),Array.isArray(e)&&e.length>0){const A=e[0];if(A&&A.text)return A.text}return typeof e=="object"&&e.text?e.text:"暂无回答"},handleCheatVerificationClose(){this.showCheatVerification=!1}}},Hw={key:0,class:"loading-state"},Sw={key:1,class:"error-state"},Nw={key:2,class:"report-container"},Dw={class:"report-header"},Tw={class:"header-right"},Pw={class:"report-id"},Ow={class:"header"},kw={class:"header-left"},Mw=["src"],Kw={class:"header-right"},Rw={class:"left-section"},Vw={class:"info-row"},jw={class:"value"},Gw={class:"info-row"},qw={class:"value"},Ww={class:"info-row"},Jw={class:"value"},Xw={class:"right-section"},zw={class:"info-row"},Yw={class:"value"},Zw={class:"info-row"},$w={class:"value"},Av={class:"stamp"},ev={key:0,src:Uw,alt:"不通过印章"},tv={key:1,src:Lw,alt:"通过印章"},rv={class:"eye-emotion-content"},nv={class:"emotion-data"},iv={class:"emotion-analysis mt-4"},sv={key:0},av={class:"mb-2"},ov={class:"mt-1"},lv={key:1},cv={class:"mb-2"},uv={class:"mt-1"},fv={class:"mt-2"},hv={key:0},dv={key:0},gv={key:1,class:"mt-4"},Bv=["onClick"],pv={key:0,class:"el-icon-link"},wv={key:1,class:"el-icon-info"},vv={ref:"comprehensive",class:"evaluation-result pdfRef"},mv={class:"score-section"},Cv={class:"score-section-left"},yv={class:"score-value"},Qv={class:"number"},Fv={key:0,class:"status-tag"},bv={key:1,class:"status-tag",style:{background:"#67C23A"}},Uv={class:"detection-results"},Lv={class:"detection-item"},Ev={key:0,class:"separator"},xv={key:1,class:"detection-item"},Iv={key:2,class:"separator"},_v={key:3,class:"detection-item"},Hv={class:"fail-reason"},Sv={class:"reason-header"},Nv={class:"reason-content"},Dv={class:"reason-content redline-section"},Tv={class:"redline-header"},Pv={key:0,class:"failed-questions"},Ov={class:"failed-list"},kv={class:"question-text"},Mv={class:"radar-chart"},Kv={ref:"ability",class:"ability-quality pdfRef"},Rv={style:{"font-size":"16px","font-weight":"bold"}},Vv={style:{"font-size":"14px","font-weight":"normal"}},jv={class:"score-text"},Gv={class:"quality-details"},qv={class:"quality-item"},Wv={class:"quality-left"},Jv={class:"content"},Xv=["innerHTML"],zv={key:1},Yv={class:"quality-right"},Zv={class:"content"},$v=["innerHTML"],Am={key:1},em={class:"detailed-evaluation"},tm={class:"ability-scores"},rm={class:"ability-name"},nm={class:"bar-chart-container"},im={ref:"cheat",class:"detection-section"},sm={class:"detection-section-header"},am={key:0,class:"status-tag normal"},om={class:"detection-section-content"},lm={class:"detection-items"},cm={class:"item"},um={class:"desc"},fm={key:1,ref:"psychology",class:"psychology-section"},hm={class:"psychology_box"},dm={class:"psychology_body"},gm={class:"psychology-desc"},Bm={class:"psychology-recommendation"},pm={class:"value"},wm={class:"duv-score"},vm={key:2,ref:"body",class:"body-detection-section"},mm={class:"detection-section-header"},Cm={class:"detection-results mt-6"},ym={class:"grid grid-cols-2 gap-4"},Qm={class:"position",style:{color:"#6c6c6c"}},Fm={class:"description text-gray-500 text-sm"},bm={class:"position",style:{color:"#6c6c6c"}},Um={class:"description text-gray-500 text-sm"},Lm={ref:"answers",class:"report-footer"},Em={class:"qa-section"},xm={class:"qa-content"},Im={class:"space-y-4"},_m={key:0,class:"mb-4"},Hm={class:"flex items-start space-x-2 w-2/3"},Sm={class:"px-2 py-1 rounded text-sm",style:{"font-size":"14px","font-weight":"600","font-family":"微软雅黑"}},Nm={class:"flex-1"},Dm={class:"text-gray-800 color-black",style:{"font-size":"14px"}},Tm={key:0,class:"mt-4"},Pm={class:"flex space-x-4"},Om={class:"w-2/3"},km={class:"bg-white p-4 rounded-xl"},Mm={class:""},Km={class:"flex flex-col space-x-2"},Rm={class:"flex-1"},Vm={class:"text-gray-700 mb-0",style:{"font-size":"14px","line-height":"20px",color:"#808080"}},jm={class:"w-1/3"},Gm={class:"video-container"},qm=["src","poster"],Wm={key:0,class:"mt-2 border-gray-200"},Jm={class:"flex items-start space-x-2"},Xm={class:"flex-1"},zm={class:"mt-2"},Ym={class:"flex space-x-4"},Zm={class:"w-2/3"},$m={class:"p-4 rounded-xl bg-white"},A4={class:""},e4={class:"flex items-start space-x-2"},t4={class:"flex-1"},r4={class:"font-medium text-gray-800",style:{"font-size":"14px"}},n4={class:"text-gray-700 mb-0",style:{"font-size":"14px","line-height":"20px",color:"#808080"}},i4={key:0,class:"w-1/3"},s4={class:"video-container"},a4=["src","poster"],o4={class:"flex flex-col items-start bg-[#f8f8f8] p-4 rounded-lg"},l4={class:"flex items-center"},c4={class:"text-[#409EFF] font-medium"},u4={class:"flex ml-0"},f4={class:"analysis-content flex-1"},h4={class:"text-[14px] text-[#666666] m-0 ml-4 analysis-text"},d4={class:"flex items-center"},g4={class:"analysis-content flex-1"},B4={class:"assessment-points"},p4={class:"assessment-item"},w4={class:"point-name"},v4={key:0,class:"separator"},m4={class:"progress-bar",style:{"margin-left":"20px",width:"180px","font-size":"12px",color:"#808080"}},C4={key:0,class:"mt-2 border-gray-200"},y4={class:"flex items-start space-x-2 pb-4"},Q4={class:"flex-1"},F4={class:"text-gray-800 color-black",style:{"font-size":"14px"}},b4={class:"bg-white p-4 rounded-xl mb-4"},U4={class:""},L4={class:"flex flex-col space-x-2"},E4={class:"flex-1"},x4={class:"text-gray-700 mb-0",style:{"font-size":"14px","line-height":"20px",color:"#808080"}},I4={class:"info-content"},_4={class:"info-section"},H4={class:"info-grid"},S4={class:"info-item"},N4={class:"value"},D4={class:"info-item"},T4={class:"value"},P4={class:"info-item"},O4={class:"value"},k4={class:"info-item"},M4={class:"value"},K4={class:"info-item"},R4={class:"value"},V4={class:"info-item"},j4={class:"value"},G4={class:"info-item"},q4={class:"value"},W4={class:"info-item"},J4={class:"value"},X4={class:"info-item"},z4={class:"value"},Y4={class:"info-section"},Z4={class:"info-grid"},$4={class:"info-item"},AC={class:"value"},eC={class:"info-item"},tC={class:"value"},rC={class:"info-item"},nC={class:"value"},iC={class:"info-section"},sC={class:"info-grid"},aC={class:"info-item"},oC={class:"value"},lC={class:"info-item"},cC={class:"value"},uC={class:"info-item"},fC={class:"value"},hC={class:"info-item"},dC={class:"value"},gC={class:"info-section"},BC={class:"info-grid"},pC={class:"info-item"},wC={class:"value"},vC={class:"info-item"},mC={class:"value"},CC={class:"info-item"},yC={class:"value"},QC={class:"info-item"},FC={class:"value"},bC={class:"info-item"},UC={class:"value"},LC={class:"info-section"},EC={class:"info-grid"},xC={class:"info-item"},IC={class:"value"},_C={class:"hand-verification"},HC={class:"grid grid-cols-2 gap-8"},SC={class:"grid grid-cols-3 gap-2"},NC={class:"w-full h-full"},DC=["src","alt"],TC=["src","alt"],PC={class:"grid grid-cols-3 gap-2"},OC={class:"w-full h-full"},kC=["src","alt"],MC=["src","alt"],KC={class:"cheat-verification"},RC={class:"verification-content"},VC={class:"verification-item"},jC={class:"item-details"},GC={class:"detail-images"},qC=["src"];function WC(e,A,t,r,n,i){var Z,J,k,q,nA,I,S,R,M,lA,iA,uA,tA,fA,hA,bA,b,T;const a=mt("el-tag"),l=mt("el-descriptions-item"),c=mt("el-descriptions"),h=mt("el-collapse-item"),g=mt("el-timeline-item"),B=mt("el-timeline"),w=mt("el-collapse"),d=mt("el-alert"),L=mt("el-dialog"),Q=mt("v-chart"),H=mt("el-button"),C=mt("el-progress"),_=mt("Download"),V=mt("el-icon"),Y=mt("RefreshRight"),j=mt("el-tooltip");return SA(),MA("div",{class:Ct(["outer-container",{mobile:n.isMobile}])},[n.loading?(SA(),MA("div",Hw," 加载中... ")):n.error?(SA(),MA("div",Sw,IA(n.error),1)):(SA(),MA("div",Nw,[N("div",Dw,[A[14]||(A[14]=N("div",{class:"header-left"},[N("img",{src:Kg,class:"cc-icon",alt:"cc icon"}),Ge(" AI面试结果检验报告 ")],-1)),N("div",Tw,[N("div",null,"报告生成时间："+IA(n.reportTime),1),N("div",Pw,"报告ID："+IA(n.reportId),1)])]),N("div",Ow,[N("div",kw,[N("img",{class:"avatar",src:n.userInfo.avatar,alt:"用户头像"},null,8,Mw)]),N("div",Kw,[N("div",Rw,[N("div",Vw,[A[15]||(A[15]=N("span",{class:"label"},"姓名：",-1)),N("span",jw,IA(n.userInfo.name),1)]),N("div",Gw,[A[16]||(A[16]=N("span",{class:"label"},"面试时间：",-1)),N("span",qw,IA(n.userInfo.interviewTime),1)]),N("div",Ww,[A[17]||(A[17]=N("span",{class:"label"},"面试时长：",-1)),N("span",Jw,IA(n.userInfo.duration),1)])]),N("div",Xw,[A[20]||(A[20]=N("div",{class:"info-row"},[N("span",{class:"label"},"实名认证："),N("span",{class:"value verified"},"已核验")],-1)),N("div",zw,[A[18]||(A[18]=N("span",{class:"label"},"身份证号：",-1)),N("span",Yw,IA(n.userInfo.idNumber),1)]),N("div",Zw,[A[19]||(A[19]=N("span",{class:"label"},"手机号码：",-1)),N("span",$w,IA(n.userInfo.phone),1)])]),N("div",Av,[n.userInfo.pass<60?(SA(),MA("img",ev)):(SA(),MA("img",tv))])])]),Ie(L,{modelValue:n.eyeEmotionDialogVisible,"onUpdate:modelValue":A[0]||(A[0]=U=>n.eyeEmotionDialogVisible=U),title:"眼动情绪检测",width:"80%","before-close":i.handleEyeEmotionDialogClose},{default:Ue(()=>[N("div",rv,[N("div",nv,[A[21]||(A[21]=N("h3",null,"情绪分析概览",-1)),Ie(c,{column:2,border:""},{default:Ue(()=>[Ie(l,{label:"主要情绪"},{default:Ue(()=>[Ie(a,{type:n.emotionAnalysis.emotion_score<=3?"danger":n.emotionAnalysis.emotion_score<=6?"warning":"success"},{default:Ue(()=>[Ge(IA(n.emotionAnalysis.primary_emotion||"暂无数据"),1)]),_:1},8,["type"])]),_:1}),Ie(l,{label:"情绪稳定性"},{default:Ue(()=>[Ge(IA(n.emotionAnalysis.emotion_stability||"暂无数据"),1)]),_:1}),Ie(l,{label:"置信度"},{default:Ue(()=>[Ge(IA(n.emotionAnalysis.confidence_level||"暂无数据"),1)]),_:1})]),_:1})]),N("div",iv,[A[28]||(A[28]=N("h3",null,"详细分析",-1)),n.emotionAnalysis.emotion_details?(SA(),Gn(w,{key:0},{default:Ue(()=>[Ie(h,{title:"情绪指标",name:"1"},{default:Ue(()=>{var U,O;return[(U=n.emotionAnalysis.emotion_details.positive_indicators)!=null&&U.length?(SA(),MA("div",sv,[N("div",av,[Ie(a,{type:"success",effect:"plain"},{default:Ue(()=>A[22]||(A[22]=[Ge("积极表现")])),_:1}),N("div",ov,[(SA(!0),MA(et,null,dt(n.emotionAnalysis.emotion_details.positive_indicators,(G,AA)=>(SA(),Gn(a,{key:AA,class:"mr-2 mb-2",type:"success",effect:"light"},{default:Ue(()=>[Ge(IA(G),1)]),_:2},1024))),128))])])])):_e("",!0),(O=n.emotionAnalysis.emotion_details.negative_indicators)!=null&&O.length?(SA(),MA("div",lv,[N("div",cv,[Ie(a,{type:"danger",effect:"plain"},{default:Ue(()=>A[23]||(A[23]=[Ge("消极表现")])),_:1}),N("div",uv,[(SA(!0),MA(et,null,dt(n.emotionAnalysis.emotion_details.negative_indicators,(G,AA)=>(SA(),Gn(a,{key:AA,class:"mr-2 mb-2",type:"danger",effect:"light"},{default:Ue(()=>[Ge(IA(G),1)]),_:2},1024))),128))])])])):_e("",!0),N("div",fv,[N("p",null,[A[24]||(A[24]=N("strong",null,"语言流畅度：",-1)),Ge(IA(n.emotionAnalysis.emotion_details.language_fluency),1)])])]}),_:1}),Ie(h,{title:"岗位适配性评估",name:"2"},{default:Ue(()=>[n.emotionAnalysis.job_suitability?(SA(),MA("div",hv,[N("p",null,[A[25]||(A[25]=N("strong",null,"沟通能力：",-1)),Ge(IA(n.emotionAnalysis.job_suitability.communication_readiness),1)]),N("p",null,[A[26]||(A[26]=N("strong",null,"抗压能力：",-1)),Ge(IA(n.emotionAnalysis.job_suitability.pressure_resistance),1)])])):_e("",!0)]),_:1}),Ie(h,{title:"改进建议",name:"3"},{default:Ue(()=>{var U;return[(U=n.emotionAnalysis.recommendations)!=null&&U.length?(SA(),MA("div",dv,[Ie(B,null,{default:Ue(()=>[(SA(!0),MA(et,null,dt(n.emotionAnalysis.recommendations,(O,G)=>(SA(),Gn(g,{key:G,type:G%2===0?"primary":"success"},{default:Ue(()=>[Ge(IA(O),1)]),_:2},1032,["type"]))),128))]),_:1})])):_e("",!0)]}),_:1})]),_:1})):_e("",!0),n.emotionAnalysis.summary?(SA(),MA("div",gv,[A[27]||(A[27]=N("h4",null,"总结评价",-1)),Ie(d,{title:n.emotionAnalysis.summary,type:n.emotionAnalysis.emotion_score<=3?"error":n.emotionAnalysis.emotion_score<=6?"warning":"success",closable:!1,class:"mt-2"},null,8,["title","type"])])):_e("",!0)])])]),_:1},8,["modelValue","before-close"]),N("div",{class:Ct(["nav-tabs",{fixed:n.isNavFixed}]),ref:"navTabs"},[(SA(!0),MA(et,null,dt(n.tabs,U=>Mu((SA(),MA("div",{key:U.id,class:Ct(["tab-item",{active:n.activeTab===U.id,"link-tab":U.isLink,"info-tab":U.isInfo}]),onClick:O=>i.handleTabClick(U)},[Ge(IA(U.name)+" ",1),U.isLink?(SA(),MA("i",pv)):_e("",!0),U.isInfo?(SA(),MA("i",wv)):_e("",!0)],10,Bv)),[[Ku,U.name=="肢体检测"?this.enable_posture_check:U.name=="眼动/情绪检测"?this.enable_emotion_analysis:U.name=="心理检测"?this.enable_scoring_questions:!0]])),128))],2),n.isNavFixed?(SA(),MA("div",{key:0,class:"nav-placeholder",style:Ru({height:n.navHeight+"px"})},null,4)):_e("",!0),N("div",vv,[N("div",mv,[N("div",Cv,[A[34]||(A[34]=N("div",{class:"score-title"},"综合评价",-1)),N("div",yv,[A[29]||(A[29]=N("span",{class:"unit"},"综合得分",-1)),N("span",Qv,IA(n.userInfo.pass),1),A[30]||(A[30]=N("span",{class:"unit"},"分",-1)),n.userInfo.pass<60?(SA(),MA("p",Fv,"不通过")):(SA(),MA("p",bv,"通过"))]),N("div",Uv,[N("span",Lv,[A[31]||(A[31]=Ge(" 身份认证 ")),N("span",{class:Ct(n.userInfo.idNumber?"status-normal":"status-warning")},IA(n.userInfo.idNumber?"无异常":"有异常"),3)]),this.enable_scoring_questions?(SA(),MA("span",Ev,"/")):_e("",!0),this.enable_scoring_questions?(SA(),MA("span",xv,[A[32]||(A[32]=Ge(" 心理检测 ")),N("span",{class:Ct(n.userInfo.phone?"status-normal":"status-warning")},IA(i.getPsychologyRiskLevel=="低风险"?"无异常":"有异常"),3)])):_e("",!0),this.enable_posture_check?(SA(),MA("span",Iv,"/")):_e("",!0),this.enable_posture_check?(SA(),MA("span",_v,[A[33]||(A[33]=Ge(" 肢体检测 ")),N("span",{class:"status-normal",style:Ru(n.userInfo.visual_analysis_done?"":"color:#f56c6c;")},IA(n.userInfo.visual_analysis_done?"无异常":"有异常"),5)])):_e("",!0)])]),N("div",Hv,[N("div",Sv,[N("span",null,"录用建议："+IA(n.hireRecommendation||"正在分析中"),1)]),N("div",Nv,IA(n.failReason),1)]),N("div",Dv,[N("div",Tv,[A[35]||(A[35]=N("span",{class:"redline-title"},"红线题检测结果",-1)),N("span",{class:Ct({"status-normal":n.redLineQuestions.allCorrect,"status-warning":!n.redLineQuestions.allCorrect})},IA(n.redLineQuestions.allCorrect?"全部正确":"存在错误，建议不录用"),3)]),!n.redLineQuestions.allCorrect&&n.redLineQuestions.failedQuestions.length>0?(SA(),MA("div",Pv,[A[37]||(A[37]=N("div",{class:"failed-title"},"未通过的红线题：",-1)),N("div",Ov,[(SA(!0),MA(et,null,dt(n.redLineQuestions.failedQuestions,(U,O)=>(SA(),MA("div",{key:"failed-"+O,class:"failed-item"},[A[36]||(A[36]=N("span",{class:"bullet"},"•",-1)),N("span",kv,IA(U.question_text||`问题 ${O+1}`),1)]))),128))])])):_e("",!0)])]),N("div",Mv,[Ie(Q,{ref:"radarChart",class:"radar",option:i.radarOption,autoresize:""},null,8,["option"])])],512),N("div",Kv,[N("h3",Rv,[A[39]||(A[39]=Ge("能力素质 ")),N("span",Vv,[A[38]||(A[38]=Ge("综合得分")),N("span",jv,IA(n.totalScore||"正在分析中"),1),Ge(IA(n.totalScore?"/100 分":""),1)])]),N("div",Gv,[N("div",qv,[N("div",Wv,[A[40]||(A[40]=N("div",{class:"icon-box"},[N("div",{class:"icon advantage-icon"},[N("img",{src:Ew,alt:"优势展现"})]),N("h5",null,"优势展现")],-1)),N("div",Jv,[n.qualityDetails.strengths&&n.qualityDetails.strengths.length?(SA(!0),MA(et,{key:0},dt(n.qualityDetails.strengths,(U,O)=>(SA(),MA("p",{key:O,innerHTML:i.formatTextWithBrackets(i.getChineseAnalysis(U))},null,8,Xv))),128)):(SA(),MA("p",zv,"正在分析中"))])]),N("div",Yv,[A[41]||(A[41]=N("div",{class:"icon-box"},[N("div",{class:"icon suggestion-icon",style:{position:"relative"}},[N("img",{src:xw,alt:"发展建议"}),N("img",{style:{width:"10px",height:"10px",position:"absolute",top:"32%",left:"5px"},src:Iw,alt:""})]),N("h5",null,"发展建议")],-1)),N("div",Zv,[n.qualityDetails.weaknesses&&n.qualityDetails.weaknesses.length?(SA(!0),MA(et,{key:0},dt(n.qualityDetails.weaknesses,(U,O)=>(SA(),MA("p",{key:O,innerHTML:i.formatTextWithBrackets2(i.getChineseAnalysis(U))},null,8,$v))),128)):(SA(),MA("p",Am,"正在分析中"))])])])])],512),N("div",null,[N("div",em,[A[42]||(A[42]=Gl('<div class="line-info" data-v-33d304ac><div class="line-info-left" data-v-33d304ac>低</div><div class="line-info-center" data-v-33d304ac>中</div><div class="line-info-right" data-v-33d304ac>高</div></div><div class="line-chart" data-v-33d304ac><div class="line-chart-left" data-v-33d304ac></div><div class="line_left" data-v-33d304ac></div><div class="line_center" data-v-33d304ac></div><div class="line_right" data-v-33d304ac></div></div>',2)),N("div",tm,[(SA(!0),MA(et,null,dt(n.abilityItems,(U,O)=>(SA(),MA("div",{key:O,class:"ability-item"},[N("span",rm,IA(U.tag_name),1),N("div",nm,[Ie(Q,{option:i.getBarChartOption(U),autoresize:!0,style:{width:"100%",height:"30px"}},null,8,["option"])])]))),128))])])]),N("div",im,[N("div",sm,[A[44]||(A[44]=N("div",{class:"section-title"},"作弊检测",-1)),(k=(J=(Z=n.abnormalPhotos)==null?void 0:Z.photos_by_type)==null?void 0:J.identity_changed)!=null&&k.length?_e("",!0):(SA(),MA("div",am,"无异常")),((I=(nA=(q=n.abnormalPhotos)==null?void 0:q.photos_by_type)==null?void 0:nA.identity_changed)==null?void 0:I.length)>0?(SA(),Gn(H,{key:1,type:"primary",link:"",onClick:A[1]||(A[1]=U=>n.showCheatVerification=!0)},{default:Ue(()=>A[43]||(A[43]=[Ge(" 查看异常详情 ")])),_:1})):_e("",!0)]),N("div",om,[N("div",lm,[N("div",cm,[N("span",{class:Ct(["status",{normal:!((M=(R=(S=n.abnormalPhotos)==null?void 0:S.photos_by_type)==null?void 0:R.identity_changed)!=null&&M.length),warning:((uA=(iA=(lA=n.abnormalPhotos)==null?void 0:lA.photos_by_type)==null?void 0:iA.identity_changed)==null?void 0:uA.length)>0}])},IA((hA=(fA=(tA=n.abnormalPhotos)==null?void 0:tA.photos_by_type)==null?void 0:fA.identity_changed)!=null&&hA.length?"存在风险":"无风险"),3),A[45]||(A[45]=N("span",{class:"separator"},"/",-1)),N("span",um," 人脸一致性："+IA((T=(b=(bA=n.abnormalPhotos)==null?void 0:bA.photos_by_type)==null?void 0:b.identity_changed)!=null&&T.length?`检测到${n.abnormalPhotos.photos_by_type.identity_changed.length}处异常`:"检测无异常"),1)]),A[46]||(A[46]=Gl('<div class="item" data-v-33d304ac><span class="status normal" data-v-33d304ac>无风险</span><span class="separator" data-v-33d304ac>/</span><span class="desc" data-v-33d304ac>信息一致性</span></div><div class="item" data-v-33d304ac><span class="status normal" data-v-33d304ac>无风险</span><span class="separator" data-v-33d304ac>/</span><span class="desc" data-v-33d304ac>截屏/录屏</span></div>',2))]),A[47]||(A[47]=Gl('<div class="risk-standards" data-v-33d304ac><div class="standards-title" data-v-33d304ac>风险等级标准</div><div class="standards-content" data-v-33d304ac><div class="standard-item" data-v-33d304ac><span class="level" data-v-33d304ac>无异常：</span><span class="desc" data-v-33d304ac>候选人提供的信息属实/无截屏录屏行为/无替考行为</span></div><div class="standard-item" data-v-33d304ac><span class="level" data-v-33d304ac>低风险：</span><span class="desc" data-v-33d304ac>候选人提供信息属实/有截屏录屏的行为/无替考作答行为</span></div><div class="standard-item" data-v-33d304ac><span class="level" data-v-33d304ac>高风险：</span><span class="desc" data-v-33d304ac>而试者与候选人身份不一致/过程疑似有替考的行为</span></div></div></div>',1))])],512),this.enable_scoring_questions?(SA(),MA("div",fm,[A[49]||(A[49]=N("div",{class:"section-title"},"心理检测",-1)),N("div",hm,[N("div",dm,[N("div",gm,IA(n.psychologyData.description),1),N("div",Bm,[A[48]||(A[48]=N("span",{class:"label"},"录用建议：",-1)),N("span",pm,IA(n.psychologyData.recommendation),1)])]),N("div",wm,[N("span",{class:Ct(["risk-level",i.getPsychologyScoreClass])},IA(i.getPsychologyRiskLevel),3)])])],512)):_e("",!0),this.enable_posture_check?(SA(),MA("div",vm,[N("div",mm,[A[51]||(A[51]=N("div",{class:"section-title"},"肢体检测",-1)),Ie(H,{type:"text",link:"",style:{color:"#0619a5"},onClick:A[2]||(A[2]=U=>n.showBodyVerification=!0)},{default:Ue(()=>A[50]||(A[50]=[Ge(" 查看肢体核验结果 ")])),_:1})]),N("div",Cm,[N("div",ym,[(SA(!0),MA(et,null,dt(i.getHandPhotos("left"),(U,O)=>{var G,AA,sA,cA,yA;return SA(),MA("div",{key:"left-"+O,class:"detection-item",style:{"background-color":"#f8f8f8"}},[N("span",Qm,IA(i.getPositionLabel("left",O)),1),N("span",{class:Ct(["status",{"status-normal":(G=U.part_verification)==null?void 0:G.is_correct_part,"status-error":!((AA=U.part_verification)!=null&&AA.is_correct_part)}])},IA((sA=U.part_verification)!=null&&sA.is_correct_part?"动作检测无异常":"动作检测异常"),3),N("span",Fm,IA((cA=U.part_verification)!=null&&cA.is_correct_part?i.getDefaultDescription("left",O):((yA=U.part_verification)==null?void 0:yA.explanation)||"检测未通过"),1)])}),128)),(SA(!0),MA(et,null,dt(i.getHandPhotos("right"),(U,O)=>{var G,AA,sA,cA,yA;return SA(),MA("div",{key:"right-"+O,class:"detection-item",style:{"background-color":"#f8f8f8"}},[N("span",bm,IA(i.getPositionLabel("right",O)),1),N("span",{class:Ct(["status",{"status-normal":(G=U.part_verification)==null?void 0:G.is_correct_part,"status-error":!((AA=U.part_verification)!=null&&AA.is_correct_part)}])},IA((sA=U.part_verification)!=null&&sA.is_correct_part?"动作检测无异常":"动作检测异常"),3),N("span",Um,IA((cA=U.part_verification)!=null&&cA.is_correct_part?i.getDefaultDescription("right",O):((yA=U.part_verification)==null?void 0:yA.explanation)||"检测未通过"),1)])}),128))])])],512)):_e("",!0),N("div",Lm,[N("div",Em,[A[62]||(A[62]=N("h3",{class:"section-title"},"问答记录",-1)),N("div",xm,[N("div",Im,[(SA(!0),MA(et,null,dt(n.interviewRecords,(U,O)=>Mu((SA(),MA("div",{key:O,class:"rounded-lg p-4"},[U.question_form===0?(SA(),MA("div",_m,[N("div",Hm,[N("div",Sm,"第"+IA(O+1)+"题:",1),N("div",Nm,[N("span",Dm,IA(U.question),1)])]),U.question_form===0?(SA(),MA("div",Tm,[N("div",Pm,[N("div",Om,[N("div",km,[N("div",Mm,[N("div",Km,[A[52]||(A[52]=N("div",{class:"px-2 py-1 rounded text-sm",id:"candidate-answer",style:{"font-size":"14px"}},"候选人回答:",-1)),N("div",Rm,[N("p",Vm,IA(i.getAnswerText(U.answer)),1)])])]),A[53]||(A[53]=N("div",null,null,-1))])]),N("div",jm,[N("div",Gm,[N("video",{class:"w-full h-full object-cover rounded-lg",controls:"",src:U.video_url,preload:"metadata",poster:e.fallbackImageBase64Ref,onLoadeddata:A[3]||(A[3]=(...G)=>e.handleVideoLoaded&&e.handleVideoLoaded(...G)),onError:A[4]||(A[4]=(...G)=>e.handleVideoError&&e.handleVideoError(...G))}," 您的浏览器不支持视频播放。 ",40,qm)])])]),U.follow_up_questions&&U.follow_up_questions.length>0?(SA(),MA("div",Wm,[(SA(!0),MA(et,null,dt(U.follow_up_questions.slice(-1),(G,AA)=>(SA(),MA("div",{key:AA,class:""},[N("div",Jm,[N("div",Xm,[N("div",zm,[N("div",Ym,[N("div",Zm,[N("div",$m,[N("div",A4,[N("div",e4,[A[54]||(A[54]=N("div",{class:"bg-purple-100 text-purple-800 px-2 py-1 rounded text-sm",style:{"font-size":"14px","background-color":"#fdd3bd",color:"#f7681d"}},"追问题",-1)),N("div",t4,[N("span",r4,IA(G.question),1),N("p",n4,IA(G.answer),1)])])]),A[55]||(A[55]=N("div",null,null,-1))])]),G.video_url?(SA(),MA("div",i4,[N("div",s4,[N("video",{class:"w-full h-full object-cover rounded-lg",controls:"",src:G.video_url,preload:"metadata",poster:e.fallbackImageBase64Ref,onLoadeddata:A[5]||(A[5]=(...sA)=>e.handleVideoLoaded&&e.handleVideoLoaded(...sA)),onError:A[6]||(A[6]=(...sA)=>e.handleVideoError&&e.handleVideoError(...sA))}," 您的浏览器不支持视频播放。 ",40,a4)])])):_e("",!0)])])])])]))),128))])):_e("",!0),N("div",o4,[N("div",l4,[A[56]||(A[56]=N("div",{class:"text-[14px] text-[#000] mr-2"},"本题评分：",-1)),N("div",c4,IA(U.score)+"分",1)]),N("div",u4,[A[57]||(A[57]=N("div",{class:"text-[14px] text-[#f7681d] mr-2"},"整体分析：",-1)),N("div",f4,[N("p",h4,IA(i.formatAnalysis(U.analysis)),1)])]),N("div",d4,[A[58]||(A[58]=N("div",{class:"text-[14px] text-[#666666] mr-2"},"考核点：",-1)),N("div",g4,[N("div",B4,[(SA(!0),MA(et,null,dt(i.extractAssessmentPoints(U.analysis),(G,AA)=>(SA(),MA(et,{key:AA},[N("div",p4,[N("span",w4,IA(G.name),1)]),AA<i.extractAssessmentPoints(U.analysis).length-1?(SA(),MA("span",v4,"/")):_e("",!0)],64))),128))])]),N("div",m4,[Ie(C,{percentage:Number(U.score),"stroke-width":6,format:i.formats,color:i.getProgressColor(U.score),class:"custom-progress",style:{"font-size":"12px",color:"#808080"}},null,8,["percentage","format","color"])])])])])):_e("",!0)])):_e("",!0)])),[[Ku,U.question_form===0]])),128))]),n.followUpQuestions&&n.followUpQuestions.length>0?(SA(),MA("div",C4,[(SA(!0),MA(et,null,dt([n.followUpQuestions[n.followUpQuestions.length-1]],(U,O)=>(SA(),MA("div",{key:O,class:""},[N("div",y4,[A[59]||(A[59]=N("div",{class:"px-2 py-1 rounded text-sm",style:{"font-size":"14px","font-weight":"600","font-family":"微软雅黑"}},"候选人提问:",-1)),N("div",Q4,[N("span",F4,IA(U.user_text),1)])]),N("div",b4,[N("div",U4,[N("div",L4,[A[60]||(A[60]=N("div",{class:"px-2 py-1 rounded text-sm",id:"candidate-answer",style:{"font-size":"14px"}},"智能体回答:",-1)),N("div",E4,[N("p",x4,IA(U.ai_reply),1)])])]),A[61]||(A[61]=N("div",null,null,-1))])]))),128))])):_e("",!0)])])],512),Ie(H,{type:"primary",circle:"",class:"export-btn fixed-btn",loading:n.exporting,onClick:i.exportPDF},{default:Ue(()=>[Ie(V,null,{default:Ue(()=>[Ie(_)]),_:1})]),_:1},8,["loading","onClick"]),Ie(H,{type:"primary",circle:"",class:"analyze-btn fixed-btn",loading:n.analyzing,onClick:i.reAnalyze},{default:Ue(()=>[Ie(V,null,{default:Ue(()=>[Ie(Y)]),_:1})]),_:1},8,["loading","onClick"])])),Ie(L,{title:"个人详细信息",modelValue:n.showInfoDialog,"onUpdate:modelValue":A[7]||(A[7]=U=>n.showInfoDialog=U),width:"60%","before-close":i.handleDialogClose,class:"info-dialog"},{default:Ue(()=>[N("div",I4,[N("div",_4,[A[72]||(A[72]=N("h4",null,"基本信息",-1)),N("div",H4,[N("div",S4,[A[63]||(A[63]=N("span",{class:"label"},"姓名：",-1)),N("span",N4,IA(n.userProfile.name),1)]),N("div",D4,[A[64]||(A[64]=N("span",{class:"label"},"性别：",-1)),N("span",T4,IA(n.userProfile.gender),1)]),N("div",P4,[A[65]||(A[65]=N("span",{class:"label"},"年龄：",-1)),N("span",O4,IA(n.userProfile.age)+"岁",1)]),N("div",k4,[A[66]||(A[66]=N("span",{class:"label"},"身份证：",-1)),N("span",M4,IA(n.userProfile.idCard),1)]),N("div",K4,[A[67]||(A[67]=N("span",{class:"label"},"民族：",-1)),N("span",R4,IA(n.userProfile.ethnicity),1)]),N("div",V4,[A[68]||(A[68]=N("span",{class:"label"},"政治面貌：",-1)),N("span",j4,IA(n.userProfile.politicalStatus),1)]),N("div",G4,[A[69]||(A[69]=N("span",{class:"label"},"婚姻状况：",-1)),N("span",q4,IA(n.userProfile.maritalStatus),1)]),N("div",W4,[A[70]||(A[70]=N("span",{class:"label"},"身高：",-1)),N("span",J4,IA(n.userProfile.height),1)]),N("div",X4,[A[71]||(A[71]=N("span",{class:"label"},"体重：",-1)),N("span",z4,IA(n.userProfile.weight),1)])])]),N("div",Y4,[A[76]||(A[76]=N("h4",null,"联系方式",-1)),N("div",Z4,[N("div",$4,[A[73]||(A[73]=N("span",{class:"label"},"手机号码：",-1)),N("span",AC,IA(n.userProfile.phone),1)]),N("div",eC,[A[74]||(A[74]=N("span",{class:"label"},"籍贯：",-1)),N("span",tC,IA(n.userProfile.nativePlace),1)]),N("div",rC,[A[75]||(A[75]=N("span",{class:"label"},"现居地址：",-1)),N("span",nC,IA(n.userProfile.address),1)])])]),N("div",iC,[A[81]||(A[81]=N("h4",null,"教育背景",-1)),N("div",sC,[N("div",aC,[A[77]||(A[77]=N("span",{class:"label"},"学历：",-1)),N("span",oC,IA(n.userProfile.education),1)]),N("div",lC,[A[78]||(A[78]=N("span",{class:"label"},"毕业院校：",-1)),N("span",cC,IA(n.userProfile.schoolName),1)]),N("div",uC,[A[79]||(A[79]=N("span",{class:"label"},"专业：",-1)),N("span",fC,IA(n.userProfile.major),1)]),N("div",hC,[A[80]||(A[80]=N("span",{class:"label"},"毕业时间：",-1)),N("span",dC,IA(n.userProfile.graduationDate),1)])])]),N("div",gC,[A[87]||(A[87]=N("h4",null,"工作信息",-1)),N("div",BC,[N("div",pC,[A[82]||(A[82]=N("span",{class:"label"},"当前公司：",-1)),N("span",wC,IA(n.userProfile.currentCompany),1)]),N("div",vC,[A[83]||(A[83]=N("span",{class:"label"},"所在部门：",-1)),N("span",mC,IA(n.userProfile.department),1)]),N("div",CC,[A[84]||(A[84]=N("span",{class:"label"},"当前职位：",-1)),N("span",yC,IA(n.userProfile.position),1)]),N("div",QC,[A[85]||(A[85]=N("span",{class:"label"},"工作经验：",-1)),N("span",FC,IA(n.userProfile.experience),1)]),N("div",bC,[A[86]||(A[86]=N("span",{class:"label"},"期望薪资：",-1)),N("span",UC,IA(n.userProfile.expectedSalary),1)])])]),N("div",LC,[A[89]||(A[89]=N("h4",null,"其他信息",-1)),N("div",EC,[N("div",xC,[A[88]||(A[88]=N("span",{class:"label"},"特长爱好：",-1)),N("span",IC,IA(n.userProfile.specialties),1)])])])])]),_:1},8,["modelValue","before-close"]),Ie(L,{title:"肢体核验结果",modelValue:n.showBodyVerification,"onUpdate:modelValue":A[12]||(A[12]=U=>n.showBodyVerification=U),width:"80%","before-close":i.handleBodyVerificationClose,class:"body-verification-dialog"},{default:Ue(()=>[N("div",_C,[N("div",HC,[N("div",null,[A[90]||(A[90]=N("h4",{class:"text-gray-600 mb-2"},"左手手势验证",-1)),N("div",SC,[(SA(!0),MA(et,null,dt(i.getHandPhotos("left"),(U,O)=>{var G;return SA(),MA("div",{key:O,class:Ct(["relative aspect-square rounded-lg overflow-hidden bg-gray-100",{"border-2":U.part_verification,"border-green-500":(G=U.part_verification)==null?void 0:G.is_correct_part,"border-red-500":U.part_verification&&!U.part_verification.is_correct_part}])},[U.part_verification&&!U.part_verification.is_correct_part?(SA(),Gn(j,{key:0,content:U.part_verification.explanation||"未提供失败原因",placement:"top",effect:"dark","show-after":200},{default:Ue(()=>{var AA,sA;return[N("div",NC,[N("img",{src:U.url,alt:U.description,class:"w-full h-full object-cover",onError:A[8]||(A[8]=(...cA)=>i.handleImageError&&i.handleImageError(...cA))},null,40,DC),N("div",{class:Ct(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":(AA=U.part_verification)==null?void 0:AA.is_correct_part,"bg-red-500 bg-opacity-90":U.part_verification&&!U.part_verification.is_correct_part}])},IA((sA=U.part_verification)!=null&&sA.is_correct_part?"通过":"未通过"),3)])]}),_:2},1032,["content"])):(SA(),MA(et,{key:1},[N("img",{src:U.url,alt:U.description,class:"w-full h-full object-cover",onError:A[9]||(A[9]=(...AA)=>i.handleImageError&&i.handleImageError(...AA))},null,40,TC),U.part_verification?(SA(),MA("div",{key:0,class:Ct(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":U.part_verification.is_correct_part,"bg-red-500 bg-opacity-90":!U.part_verification.is_correct_part}])},IA(U.part_verification.is_correct_part?"通过":"未通过"),3)):_e("",!0)],64))],2)}),128))])]),N("div",null,[A[91]||(A[91]=N("h4",{class:"text-gray-600 mb-2"},"右手手势验证",-1)),N("div",PC,[(SA(!0),MA(et,null,dt(i.getHandPhotos("right"),(U,O)=>{var G;return SA(),MA("div",{key:O,class:Ct(["relative aspect-square rounded-lg overflow-hidden bg-gray-100",{"border-2":U.part_verification,"border-green-500":(G=U.part_verification)==null?void 0:G.is_correct_part,"border-red-500":U.part_verification&&!U.part_verification.is_correct_part}])},[U.part_verification&&!U.part_verification.is_correct_part?(SA(),Gn(j,{key:0,content:U.part_verification.explanation||"未提供失败原因",placement:"top",effect:"dark","show-after":200},{default:Ue(()=>{var AA,sA;return[N("div",OC,[N("img",{src:U.url,alt:U.description,class:"w-full h-full object-cover",onError:A[10]||(A[10]=(...cA)=>i.handleImageError&&i.handleImageError(...cA))},null,40,kC),N("div",{class:Ct(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":(AA=U.part_verification)==null?void 0:AA.is_correct_part,"bg-red-500 bg-opacity-90":U.part_verification&&!U.part_verification.is_correct_part}])},IA((sA=U.part_verification)!=null&&sA.is_correct_part?"通过":"未通过"),3)])]}),_:2},1032,["content"])):(SA(),MA(et,{key:1},[N("img",{src:U.url,alt:U.description,class:"w-full h-full object-cover",onError:A[11]||(A[11]=(...AA)=>i.handleImageError&&i.handleImageError(...AA))},null,40,MC),U.part_verification?(SA(),MA("div",{key:0,class:Ct(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":U.part_verification.is_correct_part,"bg-red-500 bg-opacity-90":!U.part_verification.is_correct_part}])},IA(U.part_verification.is_correct_part?"通过":"未通过"),3)):_e("",!0)],64))],2)}),128))])])])])]),_:1},8,["modelValue","before-close"]),Ie(L,{title:"作弊检测详情",modelValue:n.showCheatVerification,"onUpdate:modelValue":A[13]||(A[13]=U=>n.showCheatVerification=U),width:"60%","before-close":i.handleCheatVerificationClose,class:"cheat-verification-dialog"},{default:Ue(()=>[N("div",KC,[N("div",RC,[N("div",VC,[A[93]||(A[93]=N("div",{class:"item-header"},[N("span",{class:"item-title"},"异常图片")],-1)),N("div",jC,[A[92]||(A[92]=N("p",null,"通过AI人脸识别技术，对考生面部特征进行实时监控，发现异常情况。",-1)),N("div",GC,[(SA(!0),MA(et,null,dt(n.abnormalPhotos.photos_by_type.identity_changed,U=>(SA(),MA("img",{key:U.id,src:"data:image/jpeg;base64,"+U.photo_data,alt:"身份识别图片"},null,8,qC))),128))])])])])])]),_:1},8,["modelValue","before-close"])],2)}const JC=Rg(_w,[["render",WC],["__scopeId","data-v-33d304ac"]]),Ay=Object.freeze(Object.defineProperty({__proto__:null,default:JC},Symbol.toStringTag,{value:"Module"}));export{me as _,Ay as r};
