x-print-designer 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,170 @@
1
+ var Sf=Object.defineProperty;var kf=(n,e,t)=>e in n?Sf(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xe=(n,e,t)=>kf(n,typeof e!="symbol"?e+"":e,t);import{_ as Se}from"./canvg-ChoTXRpY.js";const Pf="modulepreload",Ef=function(n){return"/"+n},Bl={},bs=function(e,t,r){let o=Promise.resolve();if(t&&t.length>0){let h=function(d){return Promise.all(d.map(g=>Promise.resolve(g).then(L=>({status:"fulfilled",value:L}),L=>({status:"rejected",reason:L}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=h(t.map(d=>{if(d=Ef(d),d in Bl)return;Bl[d]=!0;const g=d.endsWith(".css"),L=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${L}`))return;const P=document.createElement("link");if(P.rel=g?"stylesheet":Pf,g||(P.as="script"),P.crossOrigin="",P.href=d,c&&P.setAttribute("nonce",c),document.head.appendChild(P),g)return new Promise((p,R)=>{P.addEventListener("load",p),P.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(h){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=h,window.dispatchEvent(l),!l.defaultPrevented)throw h}return o.then(h=>{for(const l of h||[])l.status==="rejected"&&a(l.reason);return e().catch(a)})};var Eo={exports:{}};/*! dom-to-image-more 23-10-2025 */var Cf=Eo.exports,Rl;function L2(){return Rl||(Rl=1,(function(n,e){(t=>{let r=(()=>{let Q=0;return{escape:function(_){return _.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(_){return _.search(/^(data:)/)!==-1},canvasToBlob:function(_){return _.toBlob?new Promise(function(F){_.toBlob(F)}):(F=>new Promise(function(Y){var $=p(F.toDataURL().split(",")[1]),it=$.length,et=new Uint8Array(it);for(let ct=0;ct<it;ct++)et[ct]=$.charCodeAt(ct);Y(new Blob([et],{type:"image/png"}))}))(_)},resolveUrl:function(_,F){var Y=document.implementation.createHTMLDocument(),$=Y.createElement("base"),it=(Y.head.appendChild($),Y.createElement("a"));return Y.body.appendChild(it),$.href=F,it.href=_,it.href},getAndEncode:function(_){let F=g.impl.urlCache.find(function(Y){return Y.url===_});return F||(F={url:_,promise:null},g.impl.urlCache.push(F)),F.promise===null&&(g.impl.options.cacheBust&&(_+=(/\?/.test(_)?"&":"?")+new Date().getTime()),F.promise=new Promise(function(Y){let $=new XMLHttpRequest;function it(dt){console.error(dt),Y("")}function et(){var dt=g.impl.options.imagePlaceholder;dt?Y(dt):it("Status:"+$.status+" while fetching resource: "+_)}if($.timeout=g.impl.options.httpTimeout,$.onerror=et,$.ontimeout=et,$.onloadend=function(){if($.readyState===XMLHttpRequest.DONE){var dt=$.status;if(dt===0&&_.toLowerCase().startsWith("file://")||200<=dt&&dt<=300&&$.response!==null){dt=$.response,dt instanceof Blob||it("Expected response to be a Blob, but got: "+typeof dt);let ht=new FileReader;ht.onloadend=function(){var w=ht.result;Y(w)};try{ht.readAsDataURL(dt)}catch(w){it("Failed to read the response as Data URL: "+w.toString())}}else et()}},0<g.impl.options.useCredentialsFilters.length&&(g.impl.options.useCredentials=0<g.impl.options.useCredentialsFilters.filter(dt=>0<=_.search(dt)).length),g.impl.options.useCredentials&&($.withCredentials=!0),g.impl.options.corsImg&&_.indexOf("http")===0&&_.indexOf(window.location.origin)===-1){var ct=(g.impl.options.corsImg.method||"GET").toUpperCase()==="POST"?"POST":"GET";$.open(ct,(g.impl.options.corsImg.url||"").replace("#{cors}",_),!0);let dt=!1,ht=g.impl.options.corsImg.headers||{},w=(Object.keys(ht).forEach(function(k){ht[k].indexOf("application/json")!==-1&&(dt=!0),$.setRequestHeader(k,ht[k])}),(k=>{try{return JSON.parse(JSON.stringify(k))}catch(q){it("corsImg.data is missing or invalid:"+q.toString())}})(g.impl.options.corsImg.data||""));Object.keys(w).forEach(function(k){typeof w[k]=="string"&&(w[k]=w[k].replace("#{cors}",_))}),$.responseType="blob",$.send(dt?JSON.stringify(w):w)}else $.open("GET",_,!0),$.responseType="blob",$.send()})),F.promise},uid:function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+Q++},asArray:function(_){var F=[],Y=_.length;for(let $=0;$<Y;$++)F.push(_[$]);return F},escapeXhtml:function(_){return _.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(_){return _!=="data:,"?new Promise(function(F,Y){let $=document.createElementNS("http://www.w3.org/2000/svg","svg"),it=new Image;g.impl.options.useCredentials&&(it.crossOrigin="use-credentials"),it.onload=function(){document.body.removeChild($),window&&window.requestAnimationFrame?window.requestAnimationFrame(function(){F(it)}):F(it)},it.onerror=et=>{document.body.removeChild($),Y(et)},$.appendChild(it),it.src=_,document.body.appendChild($)}):Promise.resolve()},width:function(_){var F=N(_,"width");if(!isNaN(F))return F;var F=N(_,"border-left-width"),Y=N(_,"border-right-width");return _.scrollWidth+F+Y},height:function(_){var F=N(_,"height");if(!isNaN(F))return F;var F=N(_,"border-top-width"),Y=N(_,"border-bottom-width");return _.scrollHeight+F+Y},getWindow:D,isElement:A,isElementHostForOpenShadowRoot:function(_){return A(_)&&_.shadowRoot!==null},isShadowRoot:T,isInShadowRoot:V,isHTMLElement:function(_){return _ instanceof D(_).HTMLElement},isHTMLCanvasElement:function(_){return _ instanceof D(_).HTMLCanvasElement},isHTMLInputElement:function(_){return _ instanceof D(_).HTMLInputElement},isHTMLImageElement:function(_){return _ instanceof D(_).HTMLImageElement},isHTMLLinkElement:function(_){return _ instanceof D(_).HTMLLinkElement},isHTMLScriptElement:function(_){return _ instanceof D(_).HTMLScriptElement},isHTMLStyleElement:function(_){return _ instanceof D(_).HTMLStyleElement},isHTMLTextAreaElement:function(_){return _ instanceof D(_).HTMLTextAreaElement},isShadowSlotElement:function(_){return V(_)&&_ instanceof D(_).HTMLSlotElement},isSVGElement:function(_){return _ instanceof D(_).SVGElement},isSVGRectElement:function(_){return _ instanceof D(_).SVGRectElement},isDimensionMissing:function(_){return isNaN(_)||_<=0}};function D(_){return _=_?_.ownerDocument:void 0,(_?_.defaultView:void 0)||window||t}function T(_){return _ instanceof D(_).ShadowRoot}function V(_){return _!=null&&_.getRootNode!==void 0&&T(_.getRootNode())}function A(_){return _ instanceof D(_).Element}function N(_,F){if(_.nodeType===L){let Y=P(_).getPropertyValue(F);if(Y.slice(-2)==="px")return Y=Y.slice(0,-2),parseFloat(Y)}return NaN}})(),o=(()=>{let Q=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return{inlineAll:function(N,_,F){return D(N)?Promise.resolve(N).then(T).then(function(Y){let $=Promise.resolve(N);return Y.forEach(function(it){$=$.then(function(et){return A(et,it,_,F)})}),$}):Promise.resolve(N)},shouldProcess:D,impl:{readUrls:T,inline:A,urlAsRegex:V}};function D(N){return N.search(Q)!==-1}function T(N){for(var _,F=[];(_=Q.exec(N))!==null;)F.push(_[2]);return F.filter(function(Y){return!r.isDataUrl(Y)})}function V(N){return new RegExp(`url\\((["']?)(${r.escape(N)})\\1\\)`,"gm")}function A(N,_,F,Y){return Promise.resolve(_).then(function($){return F?r.resolveUrl($,F):$}).then(Y||r.getAndEncode).then(function($){var it=V(_);return N.replace(it,`url($1${$}$1)`)})}})(),a={resolveAll:function(){return h().then(function(Q){return Promise.all(Q.map(function(D){return D.resolve()}))}).then(function(Q){return Q.join(`
2
+ `)})},impl:{readAll:h}};function h(){return Promise.resolve(r.asArray(document.styleSheets)).then(function(D){let T=[];return D.forEach(function(V){var A=Object.getPrototypeOf(V);if(Object.prototype.hasOwnProperty.call(A,"cssRules"))try{r.asArray(V.cssRules||[]).forEach(T.push.bind(T))}catch(N){console.error("domtoimage: Error while reading CSS rules from: "+V.href,N.toString())}}),T}).then(function(D){return D.filter(function(T){return T.type===CSSRule.FONT_FACE_RULE}).filter(function(T){return o.shouldProcess(T.style.getPropertyValue("src"))})}).then(function(D){return D.map(Q)});function Q(D){return{resolve:function(){var T=(D.parentStyleSheet||{}).href;return o.inlineAll(D.cssText,T)},src:function(){return D.style.getPropertyValue("src")}}}}let l={inlineAll:function Q(D){if(!r.isElement(D))return Promise.resolve(D);return T(D).then(function(){return r.isHTMLImageElement(D)?c(D).inline():Promise.all(r.asArray(D.childNodes).map(function(V){return Q(V)}))});function T(V){let A=["background","background-image"],N=A.map(function(_){let F=V.style.getPropertyValue(_),Y=V.style.getPropertyPriority(_);return F?o.inlineAll(F).then(function($){V.style.setProperty(_,$,Y)}):Promise.resolve()});return Promise.all(N).then(function(){return V})}},impl:{newImage:c}};function c(Q){return{inline:function(D){return r.isDataUrl(Q.src)?Promise.resolve():Promise.resolve(Q.src).then(D||r.getAndEncode).then(function(T){return new Promise(function(V){Q.onload=V,Q.onerror=V,Q.src=T})})}}}let d={copyDefaultStyles:!0,imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0},g={toSvg:R,toPng:function(Q,D){return j(Q,D).then(function(T){return T.toDataURL()})},toJpeg:function(Q,D){return j(Q,D).then(function(T){return T.toDataURL("image/jpeg",(D?D.quality:void 0)||1)})},toBlob:function(Q,D){return j(Q,D).then(r.canvasToBlob)},toPixelData:function(Q,D){return j(Q,D).then(function(T){return T.getContext("2d").getImageData(0,0,r.width(Q),r.height(Q)).data})},toCanvas:j,impl:{fontFaces:a,images:l,util:r,inliner:o,urlCache:[],options:{},copyOptions:function(Q){Q.copyDefaultStyles===void 0?g.impl.options.copyDefaultStyles=d.copyDefaultStyles:g.impl.options.copyDefaultStyles=Q.copyDefaultStyles,g.impl.options.imagePlaceholder=(Q.imagePlaceholder===void 0?d:Q).imagePlaceholder,g.impl.options.cacheBust=(Q.cacheBust===void 0?d:Q).cacheBust,g.impl.options.corsImg=(Q.corsImg===void 0?d:Q).corsImg,g.impl.options.useCredentials=(Q.useCredentials===void 0?d:Q).useCredentials,g.impl.options.useCredentialsFilters=(Q.useCredentialsFilters===void 0?d:Q).useCredentialsFilters,g.impl.options.httpTimeout=(Q.httpTimeout===void 0?d:Q).httpTimeout,g.impl.options.styleCaching=(Q.styleCaching===void 0?d:Q).styleCaching}}},L=(n.exports=g,(Node===void 0?void 0:Node.ELEMENT_NODE)||1),P=(t===void 0?void 0:t.getComputedStyle)||(window===void 0?void 0:window.getComputedStyle)||globalThis.getComputedStyle,p=(t===void 0?void 0:t.atob)||(window===void 0?void 0:window.atob)||globalThis.atob;function R(Q,D){g.impl.util.getWindow(Q);let T=(D=D||{},g.impl.copyOptions(D),[]);return Promise.resolve(Q).then(function(V){if(V.nodeType===L)return V;var A=V,N=document.createElement("span");return A.replaceWith(N),N.append(V),T.push({child:A,wrapper:N}),N}).then(function(V){return(function A(N,_,F,Y){let $=_.filter;if(N===U||r.isHTMLScriptElement(N)||r.isHTMLStyleElement(N)||r.isHTMLLinkElement(N)||F!==null&&$&&!$(N))return Promise.resolve();return Promise.resolve(N).then(it).then(et).then(function(k){return ht(k,dt(N))}).then(ct).then(function(k){return w(k,N)});function it(k){return r.isHTMLCanvasElement(k)?r.makeImage(k.toDataURL()):k.cloneNode(!1)}function et(k){return _.adjustClonedNode&&_.adjustClonedNode(N,k,!1),Promise.resolve(k)}function ct(k){return _.adjustClonedNode&&_.adjustClonedNode(N,k,!0),Promise.resolve(k)}function dt(k){return r.isElementHostForOpenShadowRoot(k)?k.shadowRoot:k}function ht(k,q){let W=lt(q),K=Promise.resolve();if(W.length!==0){let st=P(rt(q));r.asArray(W).forEach(function(ft){K=K.then(function(){return A(ft,_,st).then(function(xt){xt&&k.appendChild(xt)})})})}return K.then(function(){return k});function rt(st){return r.isShadowRoot(st)?st.host:st}function lt(st){if(r.isShadowSlotElement(st)){let ft=st.assignedNodes();if(ft&&0<ft.length)return ft}return st.childNodes}}function w(k,q){return!r.isElement(k)||r.isShadowSlotElement(q)?Promise.resolve(k):Promise.resolve().then(K).then(rt).then(lt).then(st).then(W).then(function(){return k});function W(){r.isHTMLImageElement(k)&&(k.removeAttribute("loading"),q.srcset||q.sizes)&&(k.removeAttribute("srcset"),k.removeAttribute("sizes"),k.src=q.currentSrc||q.src)}function K(){function ft(Nt,_t){_t.font=Nt.font,_t.fontFamily=Nt.fontFamily,_t.fontFeatureSettings=Nt.fontFeatureSettings,_t.fontKerning=Nt.fontKerning,_t.fontSize=Nt.fontSize,_t.fontStretch=Nt.fontStretch,_t.fontStyle=Nt.fontStyle,_t.fontVariant=Nt.fontVariant,_t.fontVariantCaps=Nt.fontVariantCaps,_t.fontVariantEastAsian=Nt.fontVariantEastAsian,_t.fontVariantLigatures=Nt.fontVariantLigatures,_t.fontVariantNumeric=Nt.fontVariantNumeric,_t.fontVariationSettings=Nt.fontVariationSettings,_t.fontWeight=Nt.fontWeight}function xt(Nt,_t){let It=P(Nt);It.cssText?(_t.style.cssText=It.cssText,ft(It,_t.style)):(X(_,Nt,It,F,_t),F===null&&(["inset-block","inset-block-start","inset-block-end"].forEach(I=>_t.style.removeProperty(I)),["left","right","top","bottom"].forEach(I=>{_t.style.getPropertyValue(I)&&_t.style.setProperty(I,"0px")})))}xt(q,k)}function rt(){let ft=r.uid();function xt(Nt){let _t=P(q,Nt),It=_t.getPropertyValue("content");if(It!==""&&It!=="none"){let ne=function(){let Ut=`.${ft}:`+Nt,At=(_t.cssText?zt:Pt)();return document.createTextNode(Ut+`{${At}}`);function zt(){return`${_t.cssText} content: ${It};`}function Pt(){return r.asArray(_t).map(qt).join("; ")+";";function qt(de){let le=_t.getPropertyValue(de),Xt=_t.getPropertyPriority(de)?" !important":"";return de+": "+le+Xt}}},I=k.getAttribute("class")||"",kt=(k.setAttribute("class",I+" "+ft),document.createElement("style"));kt.appendChild(ne()),k.appendChild(kt)}}[":before",":after"].forEach(function(Nt){xt(Nt)})}function lt(){r.isHTMLTextAreaElement(q)&&(k.innerHTML=q.value),r.isHTMLInputElement(q)&&k.setAttribute("value",q.value)}function st(){r.isSVGElement(k)&&(k.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.isSVGRectElement(k))&&["width","height"].forEach(function(ft){let xt=k.getAttribute(ft);xt&&k.style.setProperty(ft,xt)})}}})(V,D,null)}).then(D.disableEmbedFonts?Promise.resolve(Q):C).then(D.disableInlineImages?Promise.resolve(Q):J).then(function(V){D.bgcolor&&(V.style.backgroundColor=D.bgcolor),D.width&&(V.style.width=D.width+"px"),D.height&&(V.style.height=D.height+"px"),D.style&&Object.keys(D.style).forEach(function(N){V.style[N]=D.style[N]});let A=null;return typeof D.onclone=="function"&&(A=D.onclone(V)),Promise.resolve(A).then(function(){return V})}).then(function(V){let A=D.width||r.width(Q),N=D.height||r.height(Q);return Promise.resolve(V).then(function(_){return _.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(_)}).then(r.escapeXhtml).then(function(_){var F=(r.isDimensionMissing(A)?' width="100%"':` width="${A}"`)+(r.isDimensionMissing(N)?' height="100%"':` height="${N}"`);return`<svg xmlns="http://www.w3.org/2000/svg"${(r.isDimensionMissing(A)?"":` width="${A}"`)+(r.isDimensionMissing(N)?"":` height="${N}"`)}><foreignObject${F}>${_}</foreignObject></svg>`}).then(function(_){return"data:image/svg+xml;charset=utf-8,"+_})}).then(function(V){for(;0<T.length;){var A=T.pop();A.wrapper.replaceWith(A.child)}return V}).then(function(V){return g.impl.urlCache=[],U&&(document.body.removeChild(U),U=null),z&&clearTimeout(z),z=setTimeout(()=>{z=null,ut={}},2e4),V})}function j(Q,D){return R(Q,D=D||{}).then(r.makeImage).then(function(T){var V=typeof D.scale!="number"?1:D.scale,A=((_,F)=>{let Y=D.width||r.width(_),$=D.height||r.height(_);return r.isDimensionMissing(Y)&&(Y=r.isDimensionMissing($)?300:2*$),r.isDimensionMissing($)&&($=Y/2),(_=document.createElement("canvas")).width=Y*F,_.height=$*F,D.bgcolor&&((F=_.getContext("2d")).fillStyle=D.bgcolor,F.fillRect(0,0,_.width,_.height)),_})(Q,V),N=A.getContext("2d");return N.msImageSmoothingEnabled=!1,N.imageSmoothingEnabled=!1,T&&(N.scale(V,V),N.drawImage(T,0,0)),A})}let U=null;function C(Q){return a.resolveAll().then(function(D){var T;return D!==""&&(T=document.createElement("style"),Q.appendChild(T),T.appendChild(document.createTextNode(D))),Q})}function J(Q){return l.inlineAll(Q).then(function(){return Q})}function X(Q,D,T,V,A){let N=g.impl.options.copyDefaultStyles?((F,Y)=>{var $,it=(dt=>(F.styleCaching!=="relaxed"?dt:dt.filter((ht,w,k)=>w===0||w===k.length-1)).join(">"))(Y=(dt=>{var ht=[];do if(dt.nodeType===L){var w=dt.tagName;if(ht.push(w),bt.includes(w))break}while(dt=dt.parentNode);return ht})(Y));{if(ut[it])return ut[it];Y=((dt,ht)=>{let w=dt.body;do{var k=ht.pop(),k=dt.createElement(k);w.appendChild(k),w=k}while(0<ht.length);return w.textContent="​",w})(($=(()=>{if(U)return U.contentWindow;ht=document.characterSet||"UTF-8",dt=(dt=document.doctype)?(`<!DOCTYPE ${rt(dt.name)} ${rt(dt.publicId)} `+rt(dt.systemId)).trim()+">":"",(U=document.createElement("iframe")).id="domtoimage-sandbox-"+r.uid(),U.style.top="-9999px",U.style.visibility="hidden",U.style.position="fixed",document.body.appendChild(U);var dt,ht,w=U,k="domtoimage-sandbox";try{return w.contentWindow.document.write(dt+`<html><head><meta charset='${ht}'><title>${k}</title></head><body></body></html>`),w.contentWindow}catch{}var q=document.createElement("meta");q.setAttribute("charset",ht);try{var W=document.implementation.createHTMLDocument(k),K=(W.head.appendChild(q),dt+W.documentElement.outerHTML);return w.setAttribute("srcdoc",K),w.contentWindow}catch{}return w.contentDocument.head.appendChild(q),w.contentDocument.title=k,w.contentWindow;function rt(lt){var st;return lt?((st=document.createElement("div")).innerText=lt,st.innerHTML):""}})()).document,Y),$=((dt,ht)=>{let w={},k=dt.getComputedStyle(ht);return r.asArray(k).forEach(function(q){w[q]=q==="width"||q==="height"?"auto":k.getPropertyValue(q)}),w})($,Y);var et=Y;do{var ct=et.parentElement;ct!==null&&ct.removeChild(et),et=ct}while(et&&et.tagName!=="BODY");return ut[it]=$}})(Q,D):{},_=A.style;r.asArray(T).forEach(function(F){var Y,$,it,et;Q.filterStyles&&!Q.filterStyles(D,F)||($=T.getPropertyValue(F),it=N[F],Y=V?V.getPropertyValue(F):void 0,_.getPropertyValue(F))||($!==it||V&&$!==Y)&&(it=T.getPropertyPriority(F),Y=_,$=$,it=it,et=0<=["background-clip"].indexOf(F=F),it?(Y.setProperty(F,$,it),et&&Y.setProperty("-webkit-"+F,$,it)):(Y.setProperty(F,$),et&&Y.setProperty("-webkit-"+F,$)))})}let z=null,ut={},bt=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"]})(Cf)})(Eo)),Eo.exports}var tr=Uint8Array,Bn=Uint16Array,Ks=Int32Array,Zs=new tr([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]),Qs=new tr([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]),Dl=new tr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ku=function(n,e){for(var t=new Bn(31),r=0;r<31;++r)t[r]=e+=1<<n[r-1];for(var o=new Ks(t[30]),r=1;r<30;++r)for(var a=t[r];a<t[r+1];++a)o[a]=a-t[r]<<5|r;return{b:t,r:o}},Zu=Ku(Zs,2),If=Zu.b,qs=Zu.r;If[28]=258,qs[258]=28;var Ff=Ku(Qs,0),ql=Ff.r,Us=new Bn(32768);for(var Oe=0;Oe<32768;++Oe){var Jr=(Oe&43690)>>1|(Oe&21845)<<1;Jr=(Jr&52428)>>2|(Jr&13107)<<2,Jr=(Jr&61680)>>4|(Jr&3855)<<4,Us[Oe]=((Jr&65280)>>8|(Jr&255)<<8)>>1}var Ca=(function(n,e,t){for(var r=n.length,o=0,a=new Bn(e);o<r;++o)n[o]&&++a[n[o]-1];var h=new Bn(e);for(o=1;o<e;++o)h[o]=h[o-1]+a[o-1]<<1;var l;if(t){l=new Bn(1<<e);var c=15-e;for(o=0;o<r;++o)if(n[o])for(var d=o<<4|n[o],g=e-n[o],L=h[n[o]-1]++<<g,P=L|(1<<g)-1;L<=P;++L)l[Us[L]>>c]=d}else for(l=new Bn(r),o=0;o<r;++o)n[o]&&(l[o]=Us[h[n[o]-1]++]>>15-n[o]);return l}),Si=new tr(288);for(var Oe=0;Oe<144;++Oe)Si[Oe]=8;for(var Oe=144;Oe<256;++Oe)Si[Oe]=9;for(var Oe=256;Oe<280;++Oe)Si[Oe]=7;for(var Oe=280;Oe<288;++Oe)Si[Oe]=8;var Fo=new tr(32);for(var Oe=0;Oe<32;++Oe)Fo[Oe]=5;var Of=Ca(Si,9,0),jf=Ca(Fo,5,0),Qu=function(n){return(n+7)/8|0},Tf=function(n,e,t){return(t==null||t>n.length)&&(t=n.length),new tr(n.subarray(e,t))},Ir=function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8},Pa=function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8,n[r+2]|=t>>16},ws=function(n,e){for(var t=[],r=0;r<n.length;++r)n[r]&&t.push({s:r,f:n[r]});var o=t.length,a=t.slice();if(!o)return{t:ec,l:0};if(o==1){var h=new tr(t[0].s+1);return h[t[0].s]=1,{t:h,l:1}}t.sort(function(ut,bt){return ut.f-bt.f}),t.push({s:-1,f:25001});var l=t[0],c=t[1],d=0,g=1,L=2;for(t[0]={s:-1,f:l.f+c.f,l,r:c};g!=o-1;)l=t[t[d].f<t[L].f?d++:L++],c=t[d!=g&&t[d].f<t[L].f?d++:L++],t[g++]={s:-1,f:l.f+c.f,l,r:c};for(var P=a[0].s,r=1;r<o;++r)a[r].s>P&&(P=a[r].s);var p=new Bn(P+1),R=zs(t[g-1],p,0);if(R>e){var r=0,j=0,U=R-e,C=1<<U;for(a.sort(function(bt,Q){return p[Q.s]-p[bt.s]||bt.f-Q.f});r<o;++r){var J=a[r].s;if(p[J]>e)j+=C-(1<<R-p[J]),p[J]=e;else break}for(j>>=U;j>0;){var X=a[r].s;p[X]<e?j-=1<<e-p[X]++-1:++r}for(;r>=0&&j;--r){var z=a[r].s;p[z]==e&&(--p[z],++j)}R=e}return{t:new tr(p),l:R}},zs=function(n,e,t){return n.s==-1?Math.max(zs(n.l,e,t+1),zs(n.r,e,t+1)):e[n.s]=t},Ul=function(n){for(var e=n.length;e&&!n[--e];);for(var t=new Bn(++e),r=0,o=n[0],a=1,h=function(c){t[r++]=c},l=1;l<=e;++l)if(n[l]==o&&l!=e)++a;else{if(!o&&a>2){for(;a>138;a-=138)h(32754);a>2&&(h(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(h(o),--a;a>6;a-=6)h(8304);a>2&&(h(a-3<<5|8208),a=0)}for(;a--;)h(o);a=1,o=n[l]}return{c:t.subarray(0,r),n:e}},Ea=function(n,e){for(var t=0,r=0;r<e.length;++r)t+=n[r]*e[r];return t},tc=function(n,e,t){var r=t.length,o=Qu(e+2);n[o]=r&255,n[o+1]=r>>8,n[o+2]=n[o]^255,n[o+3]=n[o+1]^255;for(var a=0;a<r;++a)n[o+a+4]=t[a];return(o+4+r)*8},zl=function(n,e,t,r,o,a,h,l,c,d,g){Ir(e,g++,t),++o[256];for(var L=ws(o,15),P=L.t,p=L.l,R=ws(a,15),j=R.t,U=R.l,C=Ul(P),J=C.c,X=C.n,z=Ul(j),ut=z.c,bt=z.n,Q=new Bn(19),D=0;D<J.length;++D)++Q[J[D]&31];for(var D=0;D<ut.length;++D)++Q[ut[D]&31];for(var T=ws(Q,7),V=T.t,A=T.l,N=19;N>4&&!V[Dl[N-1]];--N);var _=d+5<<3,F=Ea(o,Si)+Ea(a,Fo)+h,Y=Ea(o,P)+Ea(a,j)+h+14+3*N+Ea(Q,V)+2*Q[16]+3*Q[17]+7*Q[18];if(c>=0&&_<=F&&_<=Y)return tc(e,g,n.subarray(c,c+d));var $,it,et,ct;if(Ir(e,g,1+(Y<F)),g+=2,Y<F){$=Ca(P,p,0),it=P,et=Ca(j,U,0),ct=j;var dt=Ca(V,A,0);Ir(e,g,X-257),Ir(e,g+5,bt-1),Ir(e,g+10,N-4),g+=14;for(var D=0;D<N;++D)Ir(e,g+3*D,V[Dl[D]]);g+=3*N;for(var ht=[J,ut],w=0;w<2;++w)for(var k=ht[w],D=0;D<k.length;++D){var q=k[D]&31;Ir(e,g,dt[q]),g+=V[q],q>15&&(Ir(e,g,k[D]>>5&127),g+=k[D]>>12)}}else $=Of,it=Si,et=jf,ct=Fo;for(var D=0;D<l;++D){var W=r[D];if(W>255){var q=W>>18&31;Pa(e,g,$[q+257]),g+=it[q+257],q>7&&(Ir(e,g,W>>23&31),g+=Zs[q]);var K=W&31;Pa(e,g,et[K]),g+=ct[K],K>3&&(Pa(e,g,W>>5&8191),g+=Qs[K])}else Pa(e,g,$[W]),g+=it[W]}return Pa(e,g,$[256]),g+it[256]},Mf=new Ks([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ec=new tr(0),Bf=function(n,e,t,r,o,a){var h=a.z||n.length,l=new tr(r+h+5*(1+Math.ceil(h/7e3))+o),c=l.subarray(r,l.length-o),d=a.l,g=(a.r||0)&7;if(e){g&&(c[0]=a.r>>3);for(var L=Mf[e-1],P=L>>13,p=L&8191,R=(1<<t)-1,j=a.p||new Bn(32768),U=a.h||new Bn(R+1),C=Math.ceil(t/3),J=2*C,X=function(It){return(n[It]^n[It+1]<<C^n[It+2]<<J)&R},z=new Ks(25e3),ut=new Bn(288),bt=new Bn(32),Q=0,D=0,T=a.i||0,V=0,A=a.w||0,N=0;T+2<h;++T){var _=X(T),F=T&32767,Y=U[_];if(j[F]=Y,U[_]=F,A<=T){var $=h-T;if((Q>7e3||V>24576)&&($>423||!d)){g=zl(n,c,0,z,ut,bt,D,V,N,T-N,g),V=Q=D=0,N=T;for(var it=0;it<286;++it)ut[it]=0;for(var it=0;it<30;++it)bt[it]=0}var et=2,ct=0,dt=p,ht=F-Y&32767;if($>2&&_==X(T-ht))for(var w=Math.min(P,$)-1,k=Math.min(32767,T),q=Math.min(258,$);ht<=k&&--dt&&F!=Y;){if(n[T+et]==n[T+et-ht]){for(var W=0;W<q&&n[T+W]==n[T+W-ht];++W);if(W>et){if(et=W,ct=ht,W>w)break;for(var K=Math.min(ht,W-2),rt=0,it=0;it<K;++it){var lt=T-ht+it&32767,st=j[lt],ft=lt-st&32767;ft>rt&&(rt=ft,Y=lt)}}}F=Y,Y=j[F],ht+=F-Y&32767}if(ct){z[V++]=268435456|qs[et]<<18|ql[ct];var xt=qs[et]&31,Nt=ql[ct]&31;D+=Zs[xt]+Qs[Nt],++ut[257+xt],++bt[Nt],A=T+et,++Q}else z[V++]=n[T],++ut[n[T]]}}for(T=Math.max(T,A);T<h;++T)z[V++]=n[T],++ut[n[T]];g=zl(n,c,d,z,ut,bt,D,V,N,T-N,g),d||(a.r=g&7|c[g/8|0]<<3,g-=7,a.h=U,a.p=j,a.i=T,a.w=A)}else{for(var T=a.w||0;T<h+d;T+=65535){var _t=T+65535;_t>=h&&(c[g/8|0]=d,_t=h),g=tc(c,g+1,n.subarray(T,_t))}a.i=h}return Tf(l,0,r+Qu(g)+o)},nc=function(){var n=1,e=0;return{p:function(t){for(var r=n,o=e,a=t.length|0,h=0;h!=a;){for(var l=Math.min(h+2655,a);h<l;++h)o+=r+=t[h];r=(r&65535)+15*(r>>16),o=(o&65535)+15*(o>>16)}n=r,e=o},d:function(){return n%=65521,e%=65521,(n&255)<<24|(n&65280)<<8|(e&255)<<8|e>>8}}},Rf=function(n,e,t,r,o){if(!o&&(o={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),h=new tr(a.length+n.length);h.set(a),h.set(n,a.length),n=h,o.w=a.length}return Bf(n,e.level==null?6:e.level,e.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,t,r,o)},rc=function(n,e,t){for(;t;++e)n[e]=t,t>>>=8},Df=function(n,e){var t=e.level,r=t==0?0:t<6?1:t==9?3:2;if(n[0]=120,n[1]=r<<6|(e.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,e.dictionary){var o=nc();o.p(e.dictionary),rc(n,2,o.d())}};function Hs(n,e){e||(e={});var t=nc();t.p(n);var r=Rf(n,e,e.dictionary?6:2,4);return Df(r,e),rc(r,r.length-4,t.d()),r}var qf=typeof TextDecoder<"u"&&new TextDecoder,Uf=0;try{qf.decode(ec,{stream:!0}),Uf=1}catch{}function zf(n){if(Array.isArray(n))return n}function Hf(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,o,a,h,l=[],c=!0,d=!1;try{if(a=(t=t.call(n)).next,e!==0)for(;!(c=(r=a.call(t)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(g){d=!0,o=g}finally{try{if(!c&&t.return!=null&&(h=t.return(),Object(h)!==h))return}finally{if(d)throw o}}return l}}function Hl(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function Wf(n,e){if(n){if(typeof n=="string")return Hl(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hl(n,e):void 0}}function Vf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wl(n,e){return zf(n)||Hf(n,e)||Wf(n,e)||Vf()}function Vl(n,e="utf8"){return new TextDecoder(e).decode(n)}const Gf=new TextEncoder;function Yf(n){return Gf.encode(n)}const $f=1024*8,Jf=(()=>{const n=new Uint8Array(4),e=new Uint32Array(n.buffer);return!((e[0]=1)&n[0])})(),ys={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class tl{constructor(e=$f,t={}){xe(this,"buffer");xe(this,"byteLength");xe(this,"byteOffset");xe(this,"length");xe(this,"offset");xe(this,"lastWrittenByte");xe(this,"littleEndian");xe(this,"_data");xe(this,"_mark");xe(this,"_marks");let r=!1;typeof e=="number"?e=new ArrayBuffer(e):(r=!0,this.lastWrittenByte=e.byteLength);const o=t.offset?t.offset>>>0:0,a=e.byteLength-o;let h=o;(ArrayBuffer.isView(e)||e instanceof tl)&&(e.byteLength!==e.buffer.byteLength&&(h=e.byteOffset+o),e=e.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=e,this.length=a,this.byteLength=a,this.byteOffset=h,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,h,a),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const r=(this.offset+e)*2,o=new Uint8Array(r);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const r=ys[t].BYTES_PER_ELEMENT*e,o=this.byteOffset+this.offset,a=this.buffer.slice(o,o+r);if(this.littleEndian===Jf&&t!=="uint8"&&t!=="int8"){const l=new Uint8Array(this.buffer.slice(o,o+r));l.reverse();const c=new ys[t](l.buffer);return this.offset+=r,c.reverse(),c}const h=new ys[t](a);return this.offset+=r,h}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let r=0;r<e;r++)t+=this.readChar();return t}readUtf8(e=1){return Vl(this.readBytes(e))}decodeText(e=1,t="utf8"){return Vl(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(Yf(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function ia(n){let e=n.length;for(;--e>=0;)n[e]=0}const Xf=3,Kf=258,ic=29,Zf=256,Qf=Zf+1+ic,ac=30,th=512,eh=new Array((Qf+2)*2);ia(eh);const nh=new Array(ac*2);ia(nh);const rh=new Array(th);ia(rh);const ih=new Array(Kf-Xf+1);ia(ih);const ah=new Array(ic);ia(ah);const oh=new Array(ac);ia(oh);const sh=(n,e,t,r)=>{let o=n&65535|0,a=n>>>16&65535|0,h=0;for(;t!==0;){h=t>2e3?2e3:t,t-=h;do o=o+e[r++]|0,a=a+o|0;while(--h);o%=65521,a%=65521}return o|a<<16|0};var Ws=sh;const lh=()=>{let n,e=[];for(var t=0;t<256;t++){n=t;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e},uh=new Uint32Array(lh()),ch=(n,e,t,r)=>{const o=uh,a=r+t;n^=-1;for(let h=r;h<a;h++)n=n>>>8^o[(n^e[h])&255];return n^-1};var dr=ch,Vs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},oc={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const fh=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var hh=function(n){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const r in t)fh(t,r)&&(n[r]=t[r])}}return n},dh=n=>{let e=0;for(let r=0,o=n.length;r<o;r++)e+=n[r].length;const t=new Uint8Array(e);for(let r=0,o=0,a=n.length;r<a;r++){let h=n[r];t.set(h,o),o+=h.length}return t},sc={assign:hh,flattenChunks:dh};let lc=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{lc=!1}const Ma=new Uint8Array(256);for(let n=0;n<256;n++)Ma[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Ma[254]=Ma[254]=1;var ph=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let e,t,r,o,a,h=n.length,l=0;for(o=0;o<h;o++)t=n.charCodeAt(o),(t&64512)===55296&&o+1<h&&(r=n.charCodeAt(o+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),o++)),l+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(l),a=0,o=0;a<l;o++)t=n.charCodeAt(o),(t&64512)===55296&&o+1<h&&(r=n.charCodeAt(o+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),o++)),t<128?e[a++]=t:t<2048?(e[a++]=192|t>>>6,e[a++]=128|t&63):t<65536?(e[a++]=224|t>>>12,e[a++]=128|t>>>6&63,e[a++]=128|t&63):(e[a++]=240|t>>>18,e[a++]=128|t>>>12&63,e[a++]=128|t>>>6&63,e[a++]=128|t&63);return e};const gh=(n,e)=>{if(e<65534&&n.subarray&&lc)return String.fromCharCode.apply(null,n.length===e?n:n.subarray(0,e));let t="";for(let r=0;r<e;r++)t+=String.fromCharCode(n[r]);return t};var mh=(n,e)=>{const t=e||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,e));let r,o;const a=new Array(t*2);for(o=0,r=0;r<t;){let h=n[r++];if(h<128){a[o++]=h;continue}let l=Ma[h];if(l>4){a[o++]=65533,r+=l-1;continue}for(h&=l===2?31:l===3?15:7;l>1&&r<t;)h=h<<6|n[r++]&63,l--;if(l>1){a[o++]=65533;continue}h<65536?a[o++]=h:(h-=65536,a[o++]=55296|h>>10&1023,a[o++]=56320|h&1023)}return gh(a,o)},vh=(n,e)=>{e=e||n.length,e>n.length&&(e=n.length);let t=e-1;for(;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+Ma[n[t]]>e?t:e},Gs={string2buf:ph,buf2string:mh,utf8border:vh};function bh(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var wh=bh;const xo=16209,yh=16191;var xh=function(e,t){let r,o,a,h,l,c,d,g,L,P,p,R,j,U,C,J,X,z,ut,bt,Q,D,T,V;const A=e.state;r=e.next_in,T=e.input,o=r+(e.avail_in-5),a=e.next_out,V=e.output,h=a-(t-e.avail_out),l=a+(e.avail_out-257),c=A.dmax,d=A.wsize,g=A.whave,L=A.wnext,P=A.window,p=A.hold,R=A.bits,j=A.lencode,U=A.distcode,C=(1<<A.lenbits)-1,J=(1<<A.distbits)-1;t:do{R<15&&(p+=T[r++]<<R,R+=8,p+=T[r++]<<R,R+=8),X=j[p&C];e:for(;;){if(z=X>>>24,p>>>=z,R-=z,z=X>>>16&255,z===0)V[a++]=X&65535;else if(z&16){ut=X&65535,z&=15,z&&(R<z&&(p+=T[r++]<<R,R+=8),ut+=p&(1<<z)-1,p>>>=z,R-=z),R<15&&(p+=T[r++]<<R,R+=8,p+=T[r++]<<R,R+=8),X=U[p&J];n:for(;;){if(z=X>>>24,p>>>=z,R-=z,z=X>>>16&255,z&16){if(bt=X&65535,z&=15,R<z&&(p+=T[r++]<<R,R+=8,R<z&&(p+=T[r++]<<R,R+=8)),bt+=p&(1<<z)-1,bt>c){e.msg="invalid distance too far back",A.mode=xo;break t}if(p>>>=z,R-=z,z=a-h,bt>z){if(z=bt-z,z>g&&A.sane){e.msg="invalid distance too far back",A.mode=xo;break t}if(Q=0,D=P,L===0){if(Q+=d-z,z<ut){ut-=z;do V[a++]=P[Q++];while(--z);Q=a-bt,D=V}}else if(L<z){if(Q+=d+L-z,z-=L,z<ut){ut-=z;do V[a++]=P[Q++];while(--z);if(Q=0,L<ut){z=L,ut-=z;do V[a++]=P[Q++];while(--z);Q=a-bt,D=V}}}else if(Q+=L-z,z<ut){ut-=z;do V[a++]=P[Q++];while(--z);Q=a-bt,D=V}for(;ut>2;)V[a++]=D[Q++],V[a++]=D[Q++],V[a++]=D[Q++],ut-=3;ut&&(V[a++]=D[Q++],ut>1&&(V[a++]=D[Q++]))}else{Q=a-bt;do V[a++]=V[Q++],V[a++]=V[Q++],V[a++]=V[Q++],ut-=3;while(ut>2);ut&&(V[a++]=V[Q++],ut>1&&(V[a++]=V[Q++]))}}else if((z&64)===0){X=U[(X&65535)+(p&(1<<z)-1)];continue n}else{e.msg="invalid distance code",A.mode=xo;break t}break}}else if((z&64)===0){X=j[(X&65535)+(p&(1<<z)-1)];continue e}else if(z&32){A.mode=yh;break t}else{e.msg="invalid literal/length code",A.mode=xo;break t}break}}while(r<o&&a<l);ut=R>>3,r-=ut,R-=ut<<3,p&=(1<<R)-1,e.next_in=r,e.next_out=a,e.avail_in=r<o?5+(o-r):5-(r-o),e.avail_out=a<l?257+(l-a):257-(a-l),A.hold=p,A.bits=R};const Qi=15,Gl=852,Yl=592,$l=0,xs=1,Jl=2,Ah=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),_h=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Lh=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Nh=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Sh=(n,e,t,r,o,a,h,l)=>{const c=l.bits;let d=0,g=0,L=0,P=0,p=0,R=0,j=0,U=0,C=0,J=0,X,z,ut,bt,Q,D=null,T;const V=new Uint16Array(Qi+1),A=new Uint16Array(Qi+1);let N=null,_,F,Y;for(d=0;d<=Qi;d++)V[d]=0;for(g=0;g<r;g++)V[e[t+g]]++;for(p=c,P=Qi;P>=1&&V[P]===0;P--);if(p>P&&(p=P),P===0)return o[a++]=1<<24|64<<16|0,o[a++]=1<<24|64<<16|0,l.bits=1,0;for(L=1;L<P&&V[L]===0;L++);for(p<L&&(p=L),U=1,d=1;d<=Qi;d++)if(U<<=1,U-=V[d],U<0)return-1;if(U>0&&(n===$l||P!==1))return-1;for(A[1]=0,d=1;d<Qi;d++)A[d+1]=A[d]+V[d];for(g=0;g<r;g++)e[t+g]!==0&&(h[A[e[t+g]]++]=g);if(n===$l?(D=N=h,T=20):n===xs?(D=Ah,N=_h,T=257):(D=Lh,N=Nh,T=0),J=0,g=0,d=L,Q=a,R=p,j=0,ut=-1,C=1<<p,bt=C-1,n===xs&&C>Gl||n===Jl&&C>Yl)return 1;for(;;){_=d-j,h[g]+1<T?(F=0,Y=h[g]):h[g]>=T?(F=N[h[g]-T],Y=D[h[g]-T]):(F=96,Y=0),X=1<<d-j,z=1<<R,L=z;do z-=X,o[Q+(J>>j)+z]=_<<24|F<<16|Y|0;while(z!==0);for(X=1<<d-1;J&X;)X>>=1;if(X!==0?(J&=X-1,J+=X):J=0,g++,--V[d]===0){if(d===P)break;d=e[t+h[g]]}if(d>p&&(J&bt)!==ut){for(j===0&&(j=p),Q+=L,R=d-j,U=1<<R;R+j<P&&(U-=V[R+j],!(U<=0));)R++,U<<=1;if(C+=1<<R,n===xs&&C>Gl||n===Jl&&C>Yl)return 1;ut=J&bt,o[ut]=p<<24|R<<16|Q-a|0}}return J!==0&&(o[Q+J]=d-j<<24|64<<16|0),l.bits=p,0};var Ia=Sh;const kh=0,uc=1,cc=2,{Z_FINISH:Xl,Z_BLOCK:Ph,Z_TREES:Ao,Z_OK:ki,Z_STREAM_END:Eh,Z_NEED_DICT:Ch,Z_STREAM_ERROR:Vn,Z_DATA_ERROR:fc,Z_MEM_ERROR:hc,Z_BUF_ERROR:Ih,Z_DEFLATED:Kl}=oc,To=16180,Zl=16181,Ql=16182,tu=16183,eu=16184,nu=16185,ru=16186,iu=16187,au=16188,ou=16189,Oo=16190,Fr=16191,As=16192,su=16193,_s=16194,lu=16195,uu=16196,cu=16197,fu=16198,_o=16199,Lo=16200,hu=16201,du=16202,pu=16203,gu=16204,mu=16205,Ls=16206,vu=16207,bu=16208,Me=16209,dc=16210,pc=16211,Fh=852,Oh=592,jh=15,Th=jh,wu=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function Mh(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ei=n=>{if(!n)return 1;const e=n.state;return!e||e.strm!==n||e.mode<To||e.mode>pc?1:0},gc=n=>{if(Ei(n))return Vn;const e=n.state;return n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=To,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(Fh),e.distcode=e.distdyn=new Int32Array(Oh),e.sane=1,e.back=-1,ki},mc=n=>{if(Ei(n))return Vn;const e=n.state;return e.wsize=0,e.whave=0,e.wnext=0,gc(n)},vc=(n,e)=>{let t;if(Ei(n))return Vn;const r=n.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Vn:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,mc(n))},bc=(n,e)=>{if(!n)return Vn;const t=new Mh;n.state=t,t.strm=n,t.window=null,t.mode=To;const r=vc(n,e);return r!==ki&&(n.state=null),r},Bh=n=>bc(n,Th);let yu=!0,Ns,Ss;const Rh=n=>{if(yu){Ns=new Int32Array(512),Ss=new Int32Array(32);let e=0;for(;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(Ia(uc,n.lens,0,288,Ns,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;Ia(cc,n.lens,0,32,Ss,0,n.work,{bits:5}),yu=!1}n.lencode=Ns,n.lenbits=9,n.distcode=Ss,n.distbits=5},wc=(n,e,t,r)=>{let o;const a=n.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(e.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(o=a.wsize-a.wnext,o>r&&(o=r),a.window.set(e.subarray(t-r,t-r+o),a.wnext),r-=o,r?(a.window.set(e.subarray(t-r,t),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0},Dh=(n,e)=>{let t,r,o,a,h,l,c,d,g,L,P,p,R,j,U=0,C,J,X,z,ut,bt,Q,D;const T=new Uint8Array(4);let V,A;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ei(n)||!n.output||!n.input&&n.avail_in!==0)return Vn;t=n.state,t.mode===Fr&&(t.mode=As),h=n.next_out,o=n.output,c=n.avail_out,a=n.next_in,r=n.input,l=n.avail_in,d=t.hold,g=t.bits,L=l,P=c,D=ki;t:for(;;)switch(t.mode){case To:if(t.wrap===0){t.mode=As;break}for(;g<16;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(t.wrap&2&&d===35615){t.wbits===0&&(t.wbits=15),t.check=0,T[0]=d&255,T[1]=d>>>8&255,t.check=dr(t.check,T,2,0),d=0,g=0,t.mode=Zl;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){n.msg="incorrect header check",t.mode=Me;break}if((d&15)!==Kl){n.msg="unknown compression method",t.mode=Me;break}if(d>>>=4,g-=4,Q=(d&15)+8,t.wbits===0&&(t.wbits=Q),Q>15||Q>t.wbits){n.msg="invalid window size",t.mode=Me;break}t.dmax=1<<t.wbits,t.flags=0,n.adler=t.check=1,t.mode=d&512?ou:Fr,d=0,g=0;break;case Zl:for(;g<16;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(t.flags=d,(t.flags&255)!==Kl){n.msg="unknown compression method",t.mode=Me;break}if(t.flags&57344){n.msg="unknown header flags set",t.mode=Me;break}t.head&&(t.head.text=d>>8&1),t.flags&512&&t.wrap&4&&(T[0]=d&255,T[1]=d>>>8&255,t.check=dr(t.check,T,2,0)),d=0,g=0,t.mode=Ql;case Ql:for(;g<32;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}t.head&&(t.head.time=d),t.flags&512&&t.wrap&4&&(T[0]=d&255,T[1]=d>>>8&255,T[2]=d>>>16&255,T[3]=d>>>24&255,t.check=dr(t.check,T,4,0)),d=0,g=0,t.mode=tu;case tu:for(;g<16;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}t.head&&(t.head.xflags=d&255,t.head.os=d>>8),t.flags&512&&t.wrap&4&&(T[0]=d&255,T[1]=d>>>8&255,t.check=dr(t.check,T,2,0)),d=0,g=0,t.mode=eu;case eu:if(t.flags&1024){for(;g<16;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}t.length=d,t.head&&(t.head.extra_len=d),t.flags&512&&t.wrap&4&&(T[0]=d&255,T[1]=d>>>8&255,t.check=dr(t.check,T,2,0)),d=0,g=0}else t.head&&(t.head.extra=null);t.mode=nu;case nu:if(t.flags&1024&&(p=t.length,p>l&&(p=l),p&&(t.head&&(Q=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(a,a+p),Q)),t.flags&512&&t.wrap&4&&(t.check=dr(t.check,r,p,a)),l-=p,a+=p,t.length-=p),t.length))break t;t.length=0,t.mode=ru;case ru:if(t.flags&2048){if(l===0)break t;p=0;do Q=r[a+p++],t.head&&Q&&t.length<65536&&(t.head.name+=String.fromCharCode(Q));while(Q&&p<l);if(t.flags&512&&t.wrap&4&&(t.check=dr(t.check,r,p,a)),l-=p,a+=p,Q)break t}else t.head&&(t.head.name=null);t.length=0,t.mode=iu;case iu:if(t.flags&4096){if(l===0)break t;p=0;do Q=r[a+p++],t.head&&Q&&t.length<65536&&(t.head.comment+=String.fromCharCode(Q));while(Q&&p<l);if(t.flags&512&&t.wrap&4&&(t.check=dr(t.check,r,p,a)),l-=p,a+=p,Q)break t}else t.head&&(t.head.comment=null);t.mode=au;case au:if(t.flags&512){for(;g<16;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(t.wrap&4&&d!==(t.check&65535)){n.msg="header crc mismatch",t.mode=Me;break}d=0,g=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=Fr;break;case ou:for(;g<32;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}n.adler=t.check=wu(d),d=0,g=0,t.mode=Oo;case Oo:if(t.havedict===0)return n.next_out=h,n.avail_out=c,n.next_in=a,n.avail_in=l,t.hold=d,t.bits=g,Ch;n.adler=t.check=1,t.mode=Fr;case Fr:if(e===Ph||e===Ao)break t;case As:if(t.last){d>>>=g&7,g-=g&7,t.mode=Ls;break}for(;g<3;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}switch(t.last=d&1,d>>>=1,g-=1,d&3){case 0:t.mode=su;break;case 1:if(Rh(t),t.mode=_o,e===Ao){d>>>=2,g-=2;break t}break;case 2:t.mode=uu;break;case 3:n.msg="invalid block type",t.mode=Me}d>>>=2,g-=2;break;case su:for(d>>>=g&7,g-=g&7;g<32;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if((d&65535)!==(d>>>16^65535)){n.msg="invalid stored block lengths",t.mode=Me;break}if(t.length=d&65535,d=0,g=0,t.mode=_s,e===Ao)break t;case _s:t.mode=lu;case lu:if(p=t.length,p){if(p>l&&(p=l),p>c&&(p=c),p===0)break t;o.set(r.subarray(a,a+p),h),l-=p,a+=p,c-=p,h+=p,t.length-=p;break}t.mode=Fr;break;case uu:for(;g<14;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(t.nlen=(d&31)+257,d>>>=5,g-=5,t.ndist=(d&31)+1,d>>>=5,g-=5,t.ncode=(d&15)+4,d>>>=4,g-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=Me;break}t.have=0,t.mode=cu;case cu:for(;t.have<t.ncode;){for(;g<3;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}t.lens[N[t.have++]]=d&7,d>>>=3,g-=3}for(;t.have<19;)t.lens[N[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,V={bits:t.lenbits},D=Ia(kh,t.lens,0,19,t.lencode,0,t.work,V),t.lenbits=V.bits,D){n.msg="invalid code lengths set",t.mode=Me;break}t.have=0,t.mode=fu;case fu:for(;t.have<t.nlen+t.ndist;){for(;U=t.lencode[d&(1<<t.lenbits)-1],C=U>>>24,J=U>>>16&255,X=U&65535,!(C<=g);){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(X<16)d>>>=C,g-=C,t.lens[t.have++]=X;else{if(X===16){for(A=C+2;g<A;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(d>>>=C,g-=C,t.have===0){n.msg="invalid bit length repeat",t.mode=Me;break}Q=t.lens[t.have-1],p=3+(d&3),d>>>=2,g-=2}else if(X===17){for(A=C+3;g<A;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}d>>>=C,g-=C,Q=0,p=3+(d&7),d>>>=3,g-=3}else{for(A=C+7;g<A;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}d>>>=C,g-=C,Q=0,p=11+(d&127),d>>>=7,g-=7}if(t.have+p>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=Me;break}for(;p--;)t.lens[t.have++]=Q}}if(t.mode===Me)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=Me;break}if(t.lenbits=9,V={bits:t.lenbits},D=Ia(uc,t.lens,0,t.nlen,t.lencode,0,t.work,V),t.lenbits=V.bits,D){n.msg="invalid literal/lengths set",t.mode=Me;break}if(t.distbits=6,t.distcode=t.distdyn,V={bits:t.distbits},D=Ia(cc,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,V),t.distbits=V.bits,D){n.msg="invalid distances set",t.mode=Me;break}if(t.mode=_o,e===Ao)break t;case _o:t.mode=Lo;case Lo:if(l>=6&&c>=258){n.next_out=h,n.avail_out=c,n.next_in=a,n.avail_in=l,t.hold=d,t.bits=g,xh(n,P),h=n.next_out,o=n.output,c=n.avail_out,a=n.next_in,r=n.input,l=n.avail_in,d=t.hold,g=t.bits,t.mode===Fr&&(t.back=-1);break}for(t.back=0;U=t.lencode[d&(1<<t.lenbits)-1],C=U>>>24,J=U>>>16&255,X=U&65535,!(C<=g);){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(J&&(J&240)===0){for(z=C,ut=J,bt=X;U=t.lencode[bt+((d&(1<<z+ut)-1)>>z)],C=U>>>24,J=U>>>16&255,X=U&65535,!(z+C<=g);){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}d>>>=z,g-=z,t.back+=z}if(d>>>=C,g-=C,t.back+=C,t.length=X,J===0){t.mode=mu;break}if(J&32){t.back=-1,t.mode=Fr;break}if(J&64){n.msg="invalid literal/length code",t.mode=Me;break}t.extra=J&15,t.mode=hu;case hu:if(t.extra){for(A=t.extra;g<A;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}t.length+=d&(1<<t.extra)-1,d>>>=t.extra,g-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=du;case du:for(;U=t.distcode[d&(1<<t.distbits)-1],C=U>>>24,J=U>>>16&255,X=U&65535,!(C<=g);){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if((J&240)===0){for(z=C,ut=J,bt=X;U=t.distcode[bt+((d&(1<<z+ut)-1)>>z)],C=U>>>24,J=U>>>16&255,X=U&65535,!(z+C<=g);){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}d>>>=z,g-=z,t.back+=z}if(d>>>=C,g-=C,t.back+=C,J&64){n.msg="invalid distance code",t.mode=Me;break}t.offset=X,t.extra=J&15,t.mode=pu;case pu:if(t.extra){for(A=t.extra;g<A;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}t.offset+=d&(1<<t.extra)-1,d>>>=t.extra,g-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=Me;break}t.mode=gu;case gu:if(c===0)break t;if(p=P-c,t.offset>p){if(p=t.offset-p,p>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=Me;break}p>t.wnext?(p-=t.wnext,R=t.wsize-p):R=t.wnext-p,p>t.length&&(p=t.length),j=t.window}else j=o,R=h-t.offset,p=t.length;p>c&&(p=c),c-=p,t.length-=p;do o[h++]=j[R++];while(--p);t.length===0&&(t.mode=Lo);break;case mu:if(c===0)break t;o[h++]=t.length,c--,t.mode=Lo;break;case Ls:if(t.wrap){for(;g<32;){if(l===0)break t;l--,d|=r[a++]<<g,g+=8}if(P-=c,n.total_out+=P,t.total+=P,t.wrap&4&&P&&(n.adler=t.check=t.flags?dr(t.check,o,P,h-P):Ws(t.check,o,P,h-P)),P=c,t.wrap&4&&(t.flags?d:wu(d))!==t.check){n.msg="incorrect data check",t.mode=Me;break}d=0,g=0}t.mode=vu;case vu:if(t.wrap&&t.flags){for(;g<32;){if(l===0)break t;l--,d+=r[a++]<<g,g+=8}if(t.wrap&4&&d!==(t.total&4294967295)){n.msg="incorrect length check",t.mode=Me;break}d=0,g=0}t.mode=bu;case bu:D=Eh;break t;case Me:D=fc;break t;case dc:return hc;case pc:default:return Vn}return n.next_out=h,n.avail_out=c,n.next_in=a,n.avail_in=l,t.hold=d,t.bits=g,(t.wsize||P!==n.avail_out&&t.mode<Me&&(t.mode<Ls||e!==Xl))&&wc(n,n.output,n.next_out,P-n.avail_out),L-=n.avail_in,P-=n.avail_out,n.total_in+=L,n.total_out+=P,t.total+=P,t.wrap&4&&P&&(n.adler=t.check=t.flags?dr(t.check,o,P,n.next_out-P):Ws(t.check,o,P,n.next_out-P)),n.data_type=t.bits+(t.last?64:0)+(t.mode===Fr?128:0)+(t.mode===_o||t.mode===_s?256:0),(L===0&&P===0||e===Xl)&&D===ki&&(D=Ih),D},qh=n=>{if(Ei(n))return Vn;let e=n.state;return e.window&&(e.window=null),n.state=null,ki},Uh=(n,e)=>{if(Ei(n))return Vn;const t=n.state;return(t.wrap&2)===0?Vn:(t.head=e,e.done=!1,ki)},zh=(n,e)=>{const t=e.length;let r,o,a;return Ei(n)||(r=n.state,r.wrap!==0&&r.mode!==Oo)?Vn:r.mode===Oo&&(o=1,o=Ws(o,e,t,0),o!==r.check)?fc:(a=wc(n,e,t,t),a?(r.mode=dc,hc):(r.havedict=1,ki))};var Hh=mc,Wh=vc,Vh=gc,Gh=Bh,Yh=bc,$h=Dh,Jh=qh,Xh=Uh,Kh=zh,Zh="pako inflate (from Nodeca project)",Or={inflateReset:Hh,inflateReset2:Wh,inflateResetKeep:Vh,inflateInit:Gh,inflateInit2:Yh,inflate:$h,inflateEnd:Jh,inflateGetHeader:Xh,inflateSetDictionary:Kh,inflateInfo:Zh};function Qh(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var t1=Qh;const yc=Object.prototype.toString,{Z_NO_FLUSH:e1,Z_FINISH:n1,Z_OK:Ba,Z_STREAM_END:ks,Z_NEED_DICT:Ps,Z_STREAM_ERROR:r1,Z_DATA_ERROR:xu,Z_MEM_ERROR:i1}=oc;function Da(n){this.options=sc.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(n&&n.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wh,this.strm.avail_out=0;let t=Or.inflateInit2(this.strm,e.windowBits);if(t!==Ba)throw new Error(Vs[t]);if(this.header=new t1,Or.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Gs.string2buf(e.dictionary):yc.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Or.inflateSetDictionary(this.strm,e.dictionary),t!==Ba)))throw new Error(Vs[t])}Da.prototype.push=function(n,e){const t=this.strm,r=this.options.chunkSize,o=this.options.dictionary;let a,h,l;if(this.ended)return!1;for(e===~~e?h=e:h=e===!0?n1:e1,yc.call(n)==="[object ArrayBuffer]"?t.input=new Uint8Array(n):t.input=n,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),a=Or.inflate(t,h),a===Ps&&o&&(a=Or.inflateSetDictionary(t,o),a===Ba?a=Or.inflate(t,h):a===xu&&(a=Ps));t.avail_in>0&&a===ks&&t.state.wrap>0&&n[t.next_in]!==0;)Or.inflateReset(t),a=Or.inflate(t,h);switch(a){case r1:case xu:case Ps:case i1:return this.onEnd(a),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||a===ks))if(this.options.to==="string"){let c=Gs.utf8border(t.output,t.next_out),d=t.next_out-c,g=Gs.buf2string(t.output,c);t.next_out=d,t.avail_out=r-d,d&&t.output.set(t.output.subarray(c,c+d),0),this.onData(g)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ba&&l===0)){if(a===ks)return a=Or.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Da.prototype.onData=function(n){this.chunks.push(n)};Da.prototype.onEnd=function(n){n===Ba&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=sc.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function a1(n,e){const t=new Da(e);if(t.push(n),t.err)throw t.msg||Vs[t.err];return t.result}var o1=Da,s1=a1,l1={Inflate:o1,inflate:s1};const{Inflate:u1,inflate:c1}=l1;var Au=u1,f1=c1;const xc=[];for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;xc[n]=e}const _u=4294967295;function h1(n,e,t){let r=n;for(let o=0;o<t;o++)r=xc[(r^e[o])&255]^r>>>8;return r}function d1(n,e){return(h1(_u,n,e)^_u)>>>0}function Lu(n,e,t){const r=n.readUint32(),o=d1(new Uint8Array(n.buffer,n.byteOffset+n.offset-e-4,e),e);if(o!==r)throw new Error(`CRC mismatch for chunk ${t}. Expected ${r}, found ${o}`)}function Ac(n,e,t){for(let r=0;r<t;r++)e[r]=n[r]}function _c(n,e,t,r){let o=0;for(;o<r;o++)e[o]=n[o];for(;o<t;o++)e[o]=n[o]+e[o-r]&255}function Lc(n,e,t,r){let o=0;if(t.length===0)for(;o<r;o++)e[o]=n[o];else for(;o<r;o++)e[o]=n[o]+t[o]&255}function Nc(n,e,t,r,o){let a=0;if(t.length===0){for(;a<o;a++)e[a]=n[a];for(;a<r;a++)e[a]=n[a]+(e[a-o]>>1)&255}else{for(;a<o;a++)e[a]=n[a]+(t[a]>>1)&255;for(;a<r;a++)e[a]=n[a]+(e[a-o]+t[a]>>1)&255}}function Sc(n,e,t,r,o){let a=0;if(t.length===0){for(;a<o;a++)e[a]=n[a];for(;a<r;a++)e[a]=n[a]+e[a-o]&255}else{for(;a<o;a++)e[a]=n[a]+t[a]&255;for(;a<r;a++)e[a]=n[a]+p1(e[a-o],t[a],t[a-o])&255}}function p1(n,e,t){const r=n+e-t,o=Math.abs(r-n),a=Math.abs(r-e),h=Math.abs(r-t);return o<=a&&o<=h?n:a<=h?e:t}function g1(n,e,t,r,o,a){switch(n){case 0:Ac(e,t,o);break;case 1:_c(e,t,o,a);break;case 2:Lc(e,t,r,o);break;case 3:Nc(e,t,r,o,a);break;case 4:Sc(e,t,r,o,a);break;default:throw new Error(`Unsupported filter: ${n}`)}}const m1=new Uint16Array([255]),v1=new Uint8Array(m1.buffer),b1=v1[0]===255;function w1(n){const{data:e,width:t,height:r,channels:o,depth:a}=n,h=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(a/8)*o,c=new Uint8Array(r*t*l);let d=0;for(let g=0;g<7;g++){const L=h[g],P=Math.ceil((t-L.x)/L.xStep),p=Math.ceil((r-L.y)/L.yStep);if(P<=0||p<=0)continue;const R=P*l,j=new Uint8Array(R);for(let U=0;U<p;U++){const C=e[d++],J=e.subarray(d,d+R);d+=R;const X=new Uint8Array(R);g1(C,J,X,j,R,l),j.set(X);for(let z=0;z<P;z++){const ut=L.x+z*L.xStep,bt=L.y+U*L.yStep;if(!(ut>=t||bt>=r))for(let Q=0;Q<l;Q++)c[(bt*t+ut)*l+Q]=X[z*l+Q]}}}if(a===16){const g=new Uint16Array(c.buffer);if(b1)for(let L=0;L<g.length;L++)g[L]=y1(g[L]);return g}else return c}function y1(n){return(n&255)<<8|n>>8&255}const x1=new Uint16Array([255]),A1=new Uint8Array(x1.buffer),_1=A1[0]===255,L1=new Uint8Array(0);function Nu(n){const{data:e,width:t,height:r,channels:o,depth:a}=n,h=Math.ceil(a/8)*o,l=Math.ceil(a/8*o*t),c=new Uint8Array(r*l);let d=L1,g=0,L,P;for(let p=0;p<r;p++){switch(L=e.subarray(g+1,g+1+l),P=c.subarray(p*l,(p+1)*l),e[g]){case 0:Ac(L,P,l);break;case 1:_c(L,P,l,h);break;case 2:Lc(L,P,d,l);break;case 3:Nc(L,P,d,l,h);break;case 4:Sc(L,P,d,l,h);break;default:throw new Error(`Unsupported filter: ${e[g]}`)}d=P,g+=l+1}if(a===16){const p=new Uint16Array(c.buffer);if(_1)for(let R=0;R<p.length;R++)p[R]=N1(p[R]);return p}else return c}function N1(n){return(n&255)<<8|n>>8&255}const Co=Uint8Array.of(137,80,78,71,13,10,26,10);function Su(n){if(!S1(n.readBytes(Co.length)))throw new Error("wrong PNG signature")}function S1(n){if(n.length<Co.length)return!1;for(let e=0;e<Co.length;e++)if(n[e]!==Co[e])return!1;return!0}const k1="tEXt",P1=0,kc=new TextDecoder("latin1");function E1(n){if(I1(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const C1=/^[\u0000-\u00FF]*$/;function I1(n){if(!C1.test(n))throw new Error("invalid latin1 text")}function F1(n,e,t){const r=Pc(e);n[r]=O1(e,t-r.length-1)}function Pc(n){for(n.mark();n.readByte()!==P1;);const e=n.offset;n.reset();const t=kc.decode(n.readBytes(e-n.offset-1));return n.skip(1),E1(t),t}function O1(n,e){return kc.decode(n.readBytes(e))}const Mn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Es={UNKNOWN:-1,DEFLATE:0},ku={UNKNOWN:-1,ADAPTIVE:0},Cs={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},No={NONE:0,BACKGROUND:1,PREVIOUS:2},Is={SOURCE:0,OVER:1};class j1 extends tl{constructor(t,r={}){super(t);xe(this,"_checkCrc");xe(this,"_inflator");xe(this,"_png");xe(this,"_apng");xe(this,"_end");xe(this,"_hasPalette");xe(this,"_palette");xe(this,"_hasTransparency");xe(this,"_transparency");xe(this,"_compressionMethod");xe(this,"_filterMethod");xe(this,"_interlaceMethod");xe(this,"_colorType");xe(this,"_isAnimated");xe(this,"_numberOfFrames");xe(this,"_numberOfPlays");xe(this,"_frames");xe(this,"_writingDataChunks");const{checkCrc:o=!1}=r;this._checkCrc=o,this._inflator=new Au,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Es.UNKNOWN,this._filterMethod=ku.UNKNOWN,this._interlaceMethod=Cs.UNKNOWN,this._colorType=Mn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Su(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeChunk(t,r)}return this.decodeImage(),this._png}decodeApng(){for(Su(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(t,r)}return this.decodeApngImage(),this._apng}decodeChunk(t,r){const o=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case k1:F1(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Lu(this,t+4,r):this.skip(4)}decodeApngChunk(t,r){const o=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,r),this.offset=o+t;break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Lu(this,t+4,r):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=T1(this.readUint8());const r=this.readUint8();this._colorType=r;let o;switch(r){case Mn.GREYSCALE:o=1;break;case Mn.TRUECOLOUR:o=3;break;case Mn.INDEXED_COLOUR:o=1;break;case Mn.GREYSCALE_ALPHA:o=2;break;case Mn.TRUECOLOUR_ALPHA:o=4;break;case Mn.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==Es.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const r=t/3;this._hasPalette=!0;const o=[];this._palette=o;for(let a=0;a<r;a++)o.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const r=t,o=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,o,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let r=t,o=this.offset+this.byteOffset;if(o+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,o,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case Mn.GREYSCALE:case Mn.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let r=0;r<t/2;r++)this._transparency[r]=this.readUint16();break}case Mn.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r<t;r++){const o=this.readByte();this._palette[r].push(o)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case Mn.UNKNOWN:case Mn.GREYSCALE_ALPHA:case Mn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const r=Pc(this),o=this.readUint8();if(o!==Es.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${o}`);const a=this.readBytes(t-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:f1(a)}}decodepHYs(){const t=this.readUint32(),r=this.readUint32(),o=this.readByte();this._png.resolution={x:t,y:r,unit:o}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const r={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},o=this._frames.at(t);if(o){if(o.data=Nu({data:o.data,width:o.width,height:o.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||o.xOffset===0&&o.yOffset===0&&o.width===this._png.width&&o.height===this._png.height)r.data=o.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(o,a,r),this.addFrameDataToCanvas(r,o)}this._apng.frames.push(r)}}return this._apng}disposeFrame(t,r,o){switch(t.disposeOp){case No.NONE:break;case No.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let h=0;h<this._png.width;h++){const l=(a*t.width+h)*this._png.channels;for(let c=0;c<this._png.channels;c++)o.data[l+c]=0}break;case No.PREVIOUS:o.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,r){const o=1<<this._png.depth,a=(h,l)=>{const c=((h+r.yOffset)*this._png.width+r.xOffset+l)*this._png.channels,d=(h*r.width+l)*this._png.channels;return{index:c,frameIndex:d}};switch(r.blendOp){case Is.SOURCE:for(let h=0;h<r.height;h++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:d}=a(h,l);for(let g=0;g<this._png.channels;g++)t.data[c+g]=r.data[d+g]}break;case Is.OVER:for(let h=0;h<r.height;h++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:d}=a(h,l);for(let g=0;g<this._png.channels;g++){const L=r.data[d+this._png.channels-1]/o,P=g%(this._png.channels-1)===0?1:r.data[d+g],p=Math.floor(L*P+(1-L)*t.data[c+g]);t.data[c+g]+=p}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==ku.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Cs.NO_INTERLACE)this._png.data=Nu({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Cs.ADAM7)this._png.data=w1({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,r=this._frames.at(-1);r?r.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:No.NONE,blendOp:Is.SOURCE,data:t}),this._inflator=new Au,this._writingDataChunks=!1}}function T1(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}var Pu;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(Pu||(Pu={}));function M1(n,e){return new j1(n,e).decode()}var Jt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Fs(){Jt.console&&typeof Jt.console.log=="function"&&Jt.console.log.apply(Jt.console,arguments)}var Ne={log:Fs,warn:function(n){Jt.console&&(typeof Jt.console.warn=="function"?Jt.console.warn.apply(Jt.console,arguments):Fs.call(null,arguments))},error:function(n){Jt.console&&(typeof Jt.console.error=="function"?Jt.console.error.apply(Jt.console,arguments):Fs(n))}};function Os(n,e,t){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){yi(r.response,e,t)},r.onerror=function(){Ne.error("could not download file")},r.send()}function Eu(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function So(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var yi=Jt.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==Jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var r=Jt.URL||Jt.webkitURL,o=document.createElement("a");e=e||n.name||"download",o.download=e,o.rel="noopener",typeof n=="string"?(o.href=n,o.origin!==location.origin?Eu(o.href)?Os(n,e,t):So(o,o.target="_blank"):So(o)):(o.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(o.href)},4e4),setTimeout(function(){So(o)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(Eu(n))Os(n,e,t);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){So(r)})}else navigator.msSaveOrOpenBlob((function(o,a){return a===void 0?a={autoBom:!1}:Se(a)!=="object"&&(Ne.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o})(n,t),e)}:function(n,e,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return Os(n,e,t);var o=n.type==="application/octet-stream",a=/constructor/i.test(Jt.HTMLElement)||Jt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||o&&a)&&(typeof FileReader>"u"?"undefined":Se(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var g=l.result;g=h?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},l.readAsDataURL(n)}else{var c=Jt.URL||Jt.webkitURL,d=c.createObjectURL(n);r?r.location=d:location.href=d,r=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/**
4
+ * A class to parse color values
5
+ * @author Stoyan Stefanov <sstoo@gmail.com>
6
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
7
+ * @license Use it if you like it
8
+ */function Ec(n){var e;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;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 o=t[r].re,a=t[r].process,h=o.exec(n);h&&(e=a(h),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+l+c+d}}var Io=Jt.atob.bind(Jt),Cu=Jt.btoa.bind(Jt);/**
9
+ * @license
10
+ * Joseph Myers does not specify a particular license for his work.
11
+ *
12
+ * Author: Joseph Myers
13
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
14
+ *
15
+ * Modified by: Owen Leong
16
+ */function js(n,e){var t=n[0],r=n[1],o=n[2],a=n[3];t=mn(t,r,o,a,e[0],7,-680876936),a=mn(a,t,r,o,e[1],12,-389564586),o=mn(o,a,t,r,e[2],17,606105819),r=mn(r,o,a,t,e[3],22,-1044525330),t=mn(t,r,o,a,e[4],7,-176418897),a=mn(a,t,r,o,e[5],12,1200080426),o=mn(o,a,t,r,e[6],17,-1473231341),r=mn(r,o,a,t,e[7],22,-45705983),t=mn(t,r,o,a,e[8],7,1770035416),a=mn(a,t,r,o,e[9],12,-1958414417),o=mn(o,a,t,r,e[10],17,-42063),r=mn(r,o,a,t,e[11],22,-1990404162),t=mn(t,r,o,a,e[12],7,1804603682),a=mn(a,t,r,o,e[13],12,-40341101),o=mn(o,a,t,r,e[14],17,-1502002290),t=vn(t,r=mn(r,o,a,t,e[15],22,1236535329),o,a,e[1],5,-165796510),a=vn(a,t,r,o,e[6],9,-1069501632),o=vn(o,a,t,r,e[11],14,643717713),r=vn(r,o,a,t,e[0],20,-373897302),t=vn(t,r,o,a,e[5],5,-701558691),a=vn(a,t,r,o,e[10],9,38016083),o=vn(o,a,t,r,e[15],14,-660478335),r=vn(r,o,a,t,e[4],20,-405537848),t=vn(t,r,o,a,e[9],5,568446438),a=vn(a,t,r,o,e[14],9,-1019803690),o=vn(o,a,t,r,e[3],14,-187363961),r=vn(r,o,a,t,e[8],20,1163531501),t=vn(t,r,o,a,e[13],5,-1444681467),a=vn(a,t,r,o,e[2],9,-51403784),o=vn(o,a,t,r,e[7],14,1735328473),t=bn(t,r=vn(r,o,a,t,e[12],20,-1926607734),o,a,e[5],4,-378558),a=bn(a,t,r,o,e[8],11,-2022574463),o=bn(o,a,t,r,e[11],16,1839030562),r=bn(r,o,a,t,e[14],23,-35309556),t=bn(t,r,o,a,e[1],4,-1530992060),a=bn(a,t,r,o,e[4],11,1272893353),o=bn(o,a,t,r,e[7],16,-155497632),r=bn(r,o,a,t,e[10],23,-1094730640),t=bn(t,r,o,a,e[13],4,681279174),a=bn(a,t,r,o,e[0],11,-358537222),o=bn(o,a,t,r,e[3],16,-722521979),r=bn(r,o,a,t,e[6],23,76029189),t=bn(t,r,o,a,e[9],4,-640364487),a=bn(a,t,r,o,e[12],11,-421815835),o=bn(o,a,t,r,e[15],16,530742520),t=wn(t,r=bn(r,o,a,t,e[2],23,-995338651),o,a,e[0],6,-198630844),a=wn(a,t,r,o,e[7],10,1126891415),o=wn(o,a,t,r,e[14],15,-1416354905),r=wn(r,o,a,t,e[5],21,-57434055),t=wn(t,r,o,a,e[12],6,1700485571),a=wn(a,t,r,o,e[3],10,-1894986606),o=wn(o,a,t,r,e[10],15,-1051523),r=wn(r,o,a,t,e[1],21,-2054922799),t=wn(t,r,o,a,e[8],6,1873313359),a=wn(a,t,r,o,e[15],10,-30611744),o=wn(o,a,t,r,e[6],15,-1560198380),r=wn(r,o,a,t,e[13],21,1309151649),t=wn(t,r,o,a,e[4],6,-145523070),a=wn(a,t,r,o,e[11],10,-1120210379),o=wn(o,a,t,r,e[2],15,718787259),r=wn(r,o,a,t,e[9],21,-343485551),n[0]=Zr(t,n[0]),n[1]=Zr(r,n[1]),n[2]=Zr(o,n[2]),n[3]=Zr(a,n[3])}function Mo(n,e,t,r,o,a){return e=Zr(Zr(e,n),Zr(r,a)),Zr(e<<o|e>>>32-o,t)}function mn(n,e,t,r,o,a,h){return Mo(e&t|~e&r,n,e,o,a,h)}function vn(n,e,t,r,o,a,h){return Mo(e&r|t&~r,n,e,o,a,h)}function bn(n,e,t,r,o,a,h){return Mo(e^t^r,n,e,o,a,h)}function wn(n,e,t,r,o,a,h){return Mo(t^(e|~r),n,e,o,a,h)}function Cc(n){var e,t=n.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=n.length;e+=64)js(r,B1(n.substring(e-64,e)));n=n.substring(e-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n.length;e++)o[e>>2]|=n.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(js(r,o),e=0;e<16;e++)o[e]=0;return o[14]=8*t,js(r,o),r}function B1(n){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=n.charCodeAt(e)+(n.charCodeAt(e+1)<<8)+(n.charCodeAt(e+2)<<16)+(n.charCodeAt(e+3)<<24);return t}var Iu="0123456789abcdef".split("");function R1(n){for(var e="",t=0;t<4;t++)e+=Iu[n>>8*t+4&15]+Iu[n>>8*t&15];return e}function D1(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Ys(n){return Cc(n).map(D1).join("")}var q1=(function(n){for(var e=0;e<n.length;e++)n[e]=R1(n[e]);return n.join("")})(Cc("hello"))!="5d41402abc4b2a76b9719d911017c592";function Zr(n,e){if(q1){var t=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(t>>16)<<16|65535&t}return n+e&4294967295}/**
17
+ * @license
18
+ * FPDF is released under a permissive license: there is no usage restriction.
19
+ * You may embed it freely in your application (commercial or not), with or
20
+ * without modifications.
21
+ *
22
+ * Reference: http://www.fpdf.org/en/script/script37.php
23
+ */function $s(n,e){var t,r,o,a;if(n!==t){for(var h=(o=n,a=1+(256/n.length|0),new Array(a+1).join(o)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var g=l[c];d=(d+g+h.charCodeAt(c))%256,l[c]=l[d],l[d]=g}t=n,r=l}else l=r;var L=e.length,P=0,p=0,R="";for(c=0;c<L;c++)p=(p+(g=l[P=(P+1)%256]))%256,l[P]=l[p],l[p]=g,h=l[(l[P]+l[p])%256],R+=String.fromCharCode(e.charCodeAt(c)^h);return R}/**
24
+ * @license
25
+ * Licensed under the MIT License.
26
+ * http://opensource.org/licenses/mit-license
27
+ * Author: Owen Leong (@owenl131)
28
+ * Date: 15 Oct 2020
29
+ * References:
30
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
31
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
32
+ * http://www.fpdf.org/en/script/script37.php
33
+ */var Fu={print:4,modify:8,copy:16,"annot-forms":32};function na(n,e,t,r){this.v=1,this.r=2;var o=192;n.forEach(function(l){if(Fu.perm!==void 0)throw new Error("Invalid permission: "+l);o+=Fu[l]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),h=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,h),this.P=-(1+(255^o)),this.encryptionKey=Ys(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=$s(this.encryptionKey,this.padding)}function ra(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var e="",t=n.length,r=0;r<t;r++){var o=n.charCodeAt(r);e+=o<33||o===35||o===37||o===40||o===41||o===47||o===60||o===62||o===91||o===93||o===123||o===125||o>126?"#"+("0"+o.toString(16)).slice(-2):n[r]}return e}function Ou(n){if(Se(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,o){if(o=o||!1,typeof t!="string"||typeof r!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[r,!!o],a},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var a in e[t]){var h=e[t][a];try{h[0].apply(n,r)}catch(l){Jt.console&&Ne.error("jsPDF PubSub Error",l.message,l)}h[1]&&o.push(a)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ra(n){if(!(this instanceof Ra))return new Ra(n);var e="opacity,stroke-opacity".split(",");for(var t in n)n.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=n[t]);this.id="",this.objectNumber=-1}function Ic(n,e){this.gState=n,this.matrix=e,this.id="",this.objectNumber=-1}function Kr(n,e,t,r,o){if(!(this instanceof Kr))return new Kr(n,e,t,r,o);this.type=n==="axial"?2:3,this.coords=e,this.colors=t,Ic.call(this,r,o)}function xi(n,e,t,r,o){if(!(this instanceof xi))return new xi(n,e,t,r,o);this.boundingBox=n,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,Ic.call(this,r,o)}function Bt(n){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],o=arguments[2],a=arguments[3],h=[],l=1,c=16,d="S",g=null;Se(n=n||{})==="object"&&(t=n.orientation,r=n.unit||r,o=n.format||o,a=n.compress||n.compressPdf||a,(g=n.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(e=n.precision),n.floatPrecision!==void 0&&(c=n.floatPrecision),d=n.defaultPathOperation||"S"),h=n.filters||(a===!0?["FlateEncode"]:h),r=r||"mm",t=(""+(t||"P")).toLowerCase();var L=n.putOnlyUsedFonts||!1,P={},p={internal:{},__private__:{}};p.__private__.PubSub=Ou;var R="1.3",j=p.__private__.getPdfVersion=function(){return R};p.__private__.setPdfVersion=function(u){R=u};var U={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return U};var C=p.__private__.getPageFormat=function(u){return U[u]};o=o||"a4";var J="compat",X="advanced",z=J;function ut(){this.saveGraphicsState(),I(new Gt(re,0,0,-re,0,si()*re).toString()+" cm"),this.setFontSize(this.getFontSize()/re),d="n",z=X}function bt(){this.restoreGraphicsState(),d="S",z=J}var Q=p.__private__.combineFontStyleAndFontWeight=function(u,v){if(u=="bold"&&v=="normal"||u=="bold"&&v==400||u=="normal"&&v=="italic"||u=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(u=v==400||v==="normal"?u==="italic"?"italic":"normal":v!=700&&v!=="bold"||u!=="normal"?(v==700?"bold":v)+""+u:"bold"),u};p.advancedAPI=function(u){var v=z===J;return v&&ut.call(this),typeof u!="function"||(u(this),v&&bt.call(this)),this},p.compatAPI=function(u){var v=z===X;return v&&bt.call(this),typeof u!="function"||(u(this),v&&ut.call(this)),this},p.isAdvancedAPI=function(){return z===X};var D,T=function(u){if(z!==X)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},V=p.roundToPrecision=p.__private__.roundToPrecision=function(u,v){var O=e||v;if(isNaN(u)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(O).replace(/0+$/,"")};D=p.hpf=p.__private__.hpf=typeof c=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return V(u,c)}:c==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return V(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return V(u,16)};var A=p.f2=p.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return V(u,2)},N=p.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return V(u,3)},_=p.scale=p.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return z===J?u*re:z===X?u:void 0},F=function(u){return _((function(v){return z===J?si()-v:z===X?v:void 0})(u))};p.__private__.setPrecision=p.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(e=parseInt(u,10))};var Y,$="00000000000000000000000000000000",it=p.__private__.getFileId=function(){return $},et=p.__private__.setFileId=function(u){return $=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():$.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(sn=new na(g.userPermissions,g.userPassword,g.ownerPassword,$)),$};p.setFileId=function(u){return et(u),this},p.getFileId=function(){return it()};var ct=p.__private__.convertDateToPDFDate=function(u){var v=u.getTimezoneOffset(),O=v<0?"+":"-",H=Math.floor(Math.abs(v/60)),tt=Math.abs(v%60),pt=[O,q(H),"'",q(tt),"'"].join("");return["D:",u.getFullYear(),q(u.getMonth()+1),q(u.getDate()),q(u.getHours()),q(u.getMinutes()),q(u.getSeconds()),pt].join("")},dt=p.__private__.convertPDFDateToDate=function(u){var v=parseInt(u.substr(2,4),10),O=parseInt(u.substr(6,2),10)-1,H=parseInt(u.substr(8,2),10),tt=parseInt(u.substr(10,2),10),pt=parseInt(u.substr(12,2),10),wt=parseInt(u.substr(14,2),10);return new Date(v,O,H,tt,pt,wt,0)},ht=p.__private__.setCreationDate=function(u){var v;if(u===void 0&&(u=new Date),u instanceof Date)v=ct(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");v=u}return Y=v},w=p.__private__.getCreationDate=function(u){var v=Y;return u==="jsDate"&&(v=dt(Y)),v};p.setCreationDate=function(u){return ht(u),this},p.getCreationDate=function(u){return w(u)};var k,q=p.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},W=p.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},K=0,rt=[],lt=[],st=0,ft=[],xt=[],Nt=!1,_t=lt;p.__private__.setCustomOutputDestination=function(u){Nt=!0,_t=u};var It=function(u){Nt||(_t=u)};p.__private__.resetCustomOutputDestination=function(){Nt=!1,_t=lt};var I=p.__private__.out=function(u){return u=u.toString(),st+=u.length+1,_t.push(u),_t},kt=p.__private__.write=function(u){return I(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},ne=p.__private__.getArrayBuffer=function(u){for(var v=u.length,O=new ArrayBuffer(v),H=new Uint8Array(O);v--;)H[v]=u.charCodeAt(v);return O},Ut=[["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]];p.__private__.getStandardFonts=function(){return Ut};var At=n.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(u){return At=z===X?u/re:u,this};var zt,Pt=p.__private__.getFontSize=p.getFontSize=function(){return z===J?At:At*re},Ht=n.R2L||!1;p.__private__.setR2L=p.setR2L=function(u){return Ht=u,this},p.__private__.getR2L=p.getR2L=function(){return Ht};var qt,de=p.__private__.setZoomMode=function(u){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))zt=u;else if(isNaN(u)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].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.');zt=u}else zt=parseInt(u,10)};p.__private__.getZoomMode=function(){return zt};var le,Xt=p.__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.');qt=u};p.__private__.getPageMode=function(){return qt};var fe=p.__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.');le=u};p.__private__.getLayoutMode=function(){return le},p.__private__.setDisplayMode=p.setDisplayMode=function(u,v,O){return de(u),fe(v),Xt(O),this};var ce={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(u){if(Object.keys(ce).indexOf(u)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ce[u]},p.__private__.getDocumentProperties=function(){return ce},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(u){for(var v in ce)ce.hasOwnProperty(v)&&u[v]&&(ce[v]=u[v]);return this},p.__private__.setDocumentProperty=function(u,v){if(Object.keys(ce).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ce[u]=v};var Mt,re,Dt,He,me,oe={},se={},je=[],Wt={},ke={},Yt={},Qt={},Te=null,ue=0,Vt=[],be=new Ou(p),ei=n.hotfixes||[],fn={},vr={},rr=[],Gt=function u(v,O,H,tt,pt,wt){if(!(this instanceof u))return new u(v,O,H,tt,pt,wt);isNaN(v)&&(v=1),isNaN(O)&&(O=0),isNaN(H)&&(H=0),isNaN(tt)&&(tt=1),isNaN(pt)&&(pt=0),isNaN(wt)&&(wt=0),this._matrix=[v,O,H,tt,pt,wt]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Gt.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(D).join(u)},Gt.prototype.multiply=function(u){var v=u.sx*this.sx+u.shy*this.shx,O=u.sx*this.shy+u.shy*this.sy,H=u.shx*this.sx+u.sy*this.shx,tt=u.shx*this.shy+u.sy*this.sy,pt=u.tx*this.sx+u.ty*this.shx+this.tx,wt=u.tx*this.shy+u.ty*this.sy+this.ty;return new Gt(v,O,H,tt,pt,wt)},Gt.prototype.decompose=function(){var u=this.sx,v=this.shy,O=this.shx,H=this.sy,tt=this.tx,pt=this.ty,wt=Math.sqrt(u*u+v*v),Ot=(u/=wt)*O+(v/=wt)*H;O-=u*Ot,H-=v*Ot;var Ft=Math.sqrt(O*O+H*H);return Ot/=Ft,u*(H/=Ft)<v*(O/=Ft)&&(u=-u,v=-v,Ot=-Ot,wt=-wt),{scale:new Gt(wt,0,0,Ft,0,0),translate:new Gt(1,0,0,1,tt,pt),rotate:new Gt(u,v,-v,u,0,0),skew:new Gt(1,0,Ot,1,0,0)}},Gt.prototype.toString=function(u){return this.join(" ")},Gt.prototype.inversed=function(){var u=this.sx,v=this.shy,O=this.shx,H=this.sy,tt=this.tx,pt=this.ty,wt=1/(u*H-v*O),Ot=H*wt,Ft=-v*wt,Kt=-O*wt,te=u*wt;return new Gt(Ot,Ft,Kt,te,-Ot*tt-Kt*pt,-Ft*tt-te*pt)},Gt.prototype.applyToPoint=function(u){var v=u.x*this.sx+u.y*this.shx+this.tx,O=u.x*this.shy+u.y*this.sy+this.ty;return new oi(v,O)},Gt.prototype.applyToRectangle=function(u){var v=this.applyToPoint(u),O=this.applyToPoint(new oi(u.x+u.w,u.y+u.h));return new da(v.x,v.y,O.x-v.x,O.y-v.y)},Gt.prototype.clone=function(){var u=this.sx,v=this.shy,O=this.shx,H=this.sy,tt=this.tx,pt=this.ty;return new Gt(u,v,O,H,tt,pt)},p.Matrix=Gt;var br=p.matrixMult=function(u,v){return v.multiply(u)},wr=new Gt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=wr;var Rn=function(u,v){if(!ke[u]){var O=(v instanceof Kr?"Sh":"P")+(Object.keys(Wt).length+1).toString(10);v.id=O,ke[u]=O,Wt[O]=v,be.publish("addPattern",v)}};p.ShadingPattern=Kr,p.TilingPattern=xi,p.addShadingPattern=function(u,v){return T("addShadingPattern()"),Rn(u,v),this},p.beginTilingPattern=function(u){T("beginTilingPattern()"),pa(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},p.endTilingPattern=function(u,v){T("endTilingPattern()"),v.stream=xt[k].join(`
34
+ `),Rn(u,v),be.publish("endTilingPattern",v),rr.pop().restore()};var Dn,De=p.__private__.newObject=function(){var u=an();return on(u,!0),u},an=p.__private__.newObjectDeferred=function(){return K++,rt[K]=function(){return st},K},on=function(u,v){return v=typeof v=="boolean"&&v,rt[u]=st,v&&I(u+" 0 obj"),u},ni=p.__private__.newAdditionalObject=function(){var u={objId:an(),content:""};return ft.push(u),u},jr=an(),Gn=an(),ir=p.__private__.decodeColorString=function(u){var v=u.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length!==5||v[4]!=="k"&&v[4]!=="K"||(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var O=parseFloat(v[0]);v=[O,O,O,"r"]}for(var H="#",tt=0;tt<3;tt++)H+=("0"+Math.floor(255*parseFloat(v[tt])).toString(16)).slice(-2);return H},Yn=p.__private__.encodeColorString=function(u){var v;typeof u=="string"&&(u={ch1:u});var O=u.ch1,H=u.ch2,tt=u.ch3,pt=u.ch4,wt=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof O=="string"&&O.charAt(0)!=="#"){var Ot=new Ec(O);if(Ot.ok)O=Ot.toHex();else if(!/^\d*\.?\d*$/.test(O))throw new Error('Invalid color "'+O+'" passed to jsPDF.encodeColorString.')}if(typeof O=="string"&&/^#[0-9A-Fa-f]{3}$/.test(O)&&(O="#"+O[1]+O[1]+O[2]+O[2]+O[3]+O[3]),typeof O=="string"&&/^#[0-9A-Fa-f]{6}$/.test(O)){var Ft=parseInt(O.substr(1),16);O=Ft>>16&255,H=Ft>>8&255,tt=255&Ft}if(H===void 0||pt===void 0&&O===H&&H===tt)v=typeof O=="string"?O+" "+wt[0]:u.precision===2?A(O/255)+" "+wt[0]:N(O/255)+" "+wt[0];else if(pt===void 0||Se(pt)==="object"){if(pt&&!isNaN(pt.a)&&pt.a===0)return["1.","1.","1.",wt[1]].join(" ");v=typeof O=="string"?[O,H,tt,wt[1]].join(" "):u.precision===2?[A(O/255),A(H/255),A(tt/255),wt[1]].join(" "):[N(O/255),N(H/255),N(tt/255),wt[1]].join(" ")}else v=typeof O=="string"?[O,H,tt,pt,wt[2]].join(" "):u.precision===2?[A(O),A(H),A(tt),A(pt),wt[2]].join(" "):[N(O),N(H),N(tt),N(pt),wt[2]].join(" ");return v},$n=p.__private__.getFilters=function(){return h},qn=p.__private__.putStream=function(u){var v=(u=u||{}).data||"",O=u.filters||$n(),H=u.alreadyAppliedFilters||[],tt=u.addLength1||!1,pt=v.length,wt=u.objectId,Ot=function(Ie){return Ie};if(g!==null&&wt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(Ot=sn.encryptor(wt,0));var Ft={};O===!0&&(O=["FlateEncode"]);var Kt=u.additionalKeyValues||[],te=(Ft=Bt.API.processDataByFilters!==void 0?Bt.API.processDataByFilters(v,O):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(H)?H.join(" "):H.toString());if(Ft.data.length!==0&&(Kt.push({key:"Length",value:Ft.data.length}),tt===!0&&Kt.push({key:"Length1",value:pt})),te.length!=0)if(te.split("/").length-1==1)Kt.push({key:"Filter",value:te});else{Kt.push({key:"Filter",value:"["+te+"]"});for(var pe=0;pe<Kt.length;pe+=1)if(Kt[pe].key==="DecodeParms"){for(var Ke=[],_e=0;_e<Ft.reverseChain.split("/").length-1;_e+=1)Ke.push("null");Ke.push(Kt[pe].value),Kt[pe].value="["+Ke.join(" ")+"]"}}I("<<");for(var Ae=0;Ae<Kt.length;Ae++)I("/"+Kt[Ae].key+" "+Kt[Ae].value);I(">>"),Ft.data.length!==0&&(I("stream"),I(Ot(Ft.data)),I("endstream"))},ri=p.__private__.putPage=function(u){var v=u.number,O=u.data,H=u.objId,tt=u.contentsObjId;on(H,!0),I("<</Type /Page"),I("/Parent "+u.rootDictionaryObjId+" 0 R"),I("/Resources "+u.resourceDictionaryObjId+" 0 R"),I("/MediaBox ["+parseFloat(D(u.mediaBox.bottomLeftX))+" "+parseFloat(D(u.mediaBox.bottomLeftY))+" "+D(u.mediaBox.topRightX)+" "+D(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&I("/CropBox ["+D(u.cropBox.bottomLeftX)+" "+D(u.cropBox.bottomLeftY)+" "+D(u.cropBox.topRightX)+" "+D(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&I("/BleedBox ["+D(u.bleedBox.bottomLeftX)+" "+D(u.bleedBox.bottomLeftY)+" "+D(u.bleedBox.topRightX)+" "+D(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&I("/TrimBox ["+D(u.trimBox.bottomLeftX)+" "+D(u.trimBox.bottomLeftY)+" "+D(u.trimBox.topRightX)+" "+D(u.trimBox.topRightY)+"]"),u.artBox!==null&&I("/ArtBox ["+D(u.artBox.bottomLeftX)+" "+D(u.artBox.bottomLeftY)+" "+D(u.artBox.topRightX)+" "+D(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&I("/UserUnit "+u.userUnit),be.publish("putPage",{objId:H,pageContext:Vt[v],pageNumber:v,page:O}),I("/Contents "+tt+" 0 R"),I(">>"),I("endobj");var pt=O.join(`
35
+ `);return z===X&&(pt+=`
36
+ Q`),on(tt,!0),qn({data:pt,filters:$n(),objectId:tt}),I("endobj"),H},ar=p.__private__.putPages=function(){var u,v,O=[];for(u=1;u<=ue;u++)Vt[u].objId=an(),Vt[u].contentsObjId=an();for(u=1;u<=ue;u++)O.push(ri({number:u,data:xt[u],objId:Vt[u].objId,contentsObjId:Vt[u].contentsObjId,mediaBox:Vt[u].mediaBox,cropBox:Vt[u].cropBox,bleedBox:Vt[u].bleedBox,trimBox:Vt[u].trimBox,artBox:Vt[u].artBox,userUnit:Vt[u].userUnit,rootDictionaryObjId:jr,resourceDictionaryObjId:Gn}));on(jr,!0),I("<</Type /Pages");var H="/Kids [";for(v=0;v<ue;v++)H+=O[v]+" 0 R ";I(H+"]"),I("/Count "+ue),I(">>"),I("endobj"),be.publish("postPutPages")},ii=function(u){be.publish("putFont",{font:u,out:I,newObject:De,putStream:qn}),u.isAlreadyPutted!==!0&&(u.objectNumber=De(),I("<<"),I("/Type /Font"),I("/BaseFont /"+ra(u.postScriptName)),I("/Subtype /Type1"),typeof u.encoding=="string"&&I("/Encoding /"+u.encoding),I("/FirstChar 32"),I("/LastChar 255"),I(">>"),I("endobj"))},Ii=function(u){u.objectNumber=De();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[D(u.x),D(u.y),D(u.x+u.width),D(u.y+u.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var O=u.pages[1].join(`
37
+ `);qn({data:O,additionalKeyValues:v,objectId:u.objectNumber}),I("endobj")},Fi=function(u,v){v||(v=21);var O=De(),H=(function(wt,Ot){var Ft,Kt=[],te=1/(Ot-1);for(Ft=0;Ft<1;Ft+=te)Kt.push(Ft);if(Kt.push(1),wt[0].offset!=0){var pe={offset:0,color:wt[0].color};wt.unshift(pe)}if(wt[wt.length-1].offset!=1){var Ke={offset:1,color:wt[wt.length-1].color};wt.push(Ke)}for(var _e="",Ae=0,Ie=0;Ie<Kt.length;Ie++){for(Ft=Kt[Ie];Ft>wt[Ae+1].offset;)Ae++;var Be=wt[Ae].offset,Re=(Ft-Be)/(wt[Ae+1].offset-Be),hn=wt[Ae].color,Nr=wt[Ae+1].color;_e+=W(Math.round((1-Re)*hn[0]+Re*Nr[0]).toString(16))+W(Math.round((1-Re)*hn[1]+Re*Nr[1]).toString(16))+W(Math.round((1-Re)*hn[2]+Re*Nr[2]).toString(16))}return _e.trim()})(u.colors,v),tt=[];tt.push({key:"FunctionType",value:"0"}),tt.push({key:"Domain",value:"[0.0 1.0]"}),tt.push({key:"Size",value:"["+v+"]"}),tt.push({key:"BitsPerSample",value:"8"}),tt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),tt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),qn({data:H,additionalKeyValues:tt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:O}),I("endobj"),u.objectNumber=De(),I("<< /ShadingType "+u.type),I("/ColorSpace /DeviceRGB");var pt="/Coords ["+D(parseFloat(u.coords[0]))+" "+D(parseFloat(u.coords[1]))+" ";u.type===2?pt+=D(parseFloat(u.coords[2]))+" "+D(parseFloat(u.coords[3])):pt+=D(parseFloat(u.coords[2]))+" "+D(parseFloat(u.coords[3]))+" "+D(parseFloat(u.coords[4]))+" "+D(parseFloat(u.coords[5])),I(pt+="]"),u.matrix&&I("/Matrix ["+u.matrix.toString()+"]"),I("/Function "+O+" 0 R"),I("/Extend [true true]"),I(">>"),I("endobj")},Oi=function(u,v){var O=an(),H=De();v.push({resourcesOid:O,objectOid:H}),u.objectNumber=H;var tt=[];tt.push({key:"Type",value:"/Pattern"}),tt.push({key:"PatternType",value:"1"}),tt.push({key:"PaintType",value:"1"}),tt.push({key:"TilingType",value:"1"}),tt.push({key:"BBox",value:"["+u.boundingBox.map(D).join(" ")+"]"}),tt.push({key:"XStep",value:D(u.xStep)}),tt.push({key:"YStep",value:D(u.yStep)}),tt.push({key:"Resources",value:O+" 0 R"}),u.matrix&&tt.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),qn({data:u.stream,additionalKeyValues:tt,objectId:u.objectNumber}),I("endobj")},Bo=function(u){for(var v in u.objectNumber=De(),I("<<"),u)switch(v){case"opacity":I("/ca "+A(u[v]));break;case"stroke-opacity":I("/CA "+A(u[v]))}I(">>"),I("endobj")},aa=function(u){on(u.resourcesOid,!0),I("<<"),I("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var v in I("/Font <<"),oe)oe.hasOwnProperty(v)&&(L===!1||L===!0&&P.hasOwnProperty(v))&&I("/"+v+" "+oe[v].objectNumber+" 0 R");I(">>")})(),(function(){if(Object.keys(Wt).length>0){for(var v in I("/Shading <<"),Wt)Wt.hasOwnProperty(v)&&Wt[v]instanceof Kr&&Wt[v].objectNumber>=0&&I("/"+v+" "+Wt[v].objectNumber+" 0 R");be.publish("putShadingPatternDict"),I(">>")}})(),(function(v){if(Object.keys(Wt).length>0){for(var O in I("/Pattern <<"),Wt)Wt.hasOwnProperty(O)&&Wt[O]instanceof p.TilingPattern&&Wt[O].objectNumber>=0&&Wt[O].objectNumber<v&&I("/"+O+" "+Wt[O].objectNumber+" 0 R");be.publish("putTilingPatternDict"),I(">>")}})(u.objectOid),(function(){if(Object.keys(Yt).length>0){var v;for(v in I("/ExtGState <<"),Yt)Yt.hasOwnProperty(v)&&Yt[v].objectNumber>=0&&I("/"+v+" "+Yt[v].objectNumber+" 0 R");be.publish("putGStateDict"),I(">>")}})(),(function(){for(var v in I("/XObject <<"),fn)fn.hasOwnProperty(v)&&fn[v].objectNumber>=0&&I("/"+v+" "+fn[v].objectNumber+" 0 R");be.publish("putXobjectDict"),I(">>")})(),I(">>"),I("endobj")},qa=function(u){se[u.fontName]=se[u.fontName]||{},se[u.fontName][u.fontStyle]=u.id},Ua=function(u,v,O,H,tt){var pt={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:u,fontName:v,fontStyle:O,encoding:H,isStandardFont:tt||!1,metadata:{}};return be.publish("addFont",{font:pt,instance:this}),oe[pt.id]=pt,qa(pt),pt.id},Un=p.__private__.pdfEscape=p.pdfEscape=function(u,v){return(function(O,H){var tt,pt,wt,Ot,Ft,Kt,te,pe,Ke;if(wt=(H=H||{}).sourceEncoding||"Unicode",Ft=H.outputEncoding,(H.autoencode||Ft)&&oe[Mt].metadata&&oe[Mt].metadata[wt]&&oe[Mt].metadata[wt].encoding&&(Ot=oe[Mt].metadata[wt].encoding,!Ft&&oe[Mt].encoding&&(Ft=oe[Mt].encoding),!Ft&&Ot.codePages&&(Ft=Ot.codePages[0]),typeof Ft=="string"&&(Ft=Ot[Ft]),Ft)){for(te=!1,Kt=[],tt=0,pt=O.length;tt<pt;tt++)(pe=Ft[O.charCodeAt(tt)])?Kt.push(String.fromCharCode(pe)):Kt.push(O[tt]),Kt[tt].charCodeAt(0)>>8&&(te=!0);O=Kt.join("")}for(tt=O.length;te===void 0&&tt!==0;)O.charCodeAt(tt-1)>>8&&(te=!0),tt--;if(!te)return O;for(Kt=H.noBOM?[]:[254,255],tt=0,pt=O.length;tt<pt;tt++){if((Ke=(pe=O.charCodeAt(tt))>>8)>>8)throw new Error("Character at position "+tt+" of string '"+O+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Kt.push(Ke),Kt.push(pe-(Ke<<8))}return String.fromCharCode.apply(void 0,Kt)})(u,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},oa=p.__private__.beginPage=function(u){xt[++ue]=[],Vt[ue]={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])}},Ha(ue),It(xt[k])},za=function(u,v){var O,H,tt;switch(t=v||t,typeof u=="string"&&(O=C(u.toLowerCase()),Array.isArray(O)&&(H=O[0],tt=O[1])),Array.isArray(u)&&(H=u[0]*re,tt=u[1]*re),isNaN(H)&&(H=o[0],tt=o[1]),(H>14400||tt>14400)&&(Ne.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),H=Math.min(14400,H),tt=Math.min(14400,tt)),o=[H,tt],t.substr(0,1)){case"l":tt>H&&(o=[tt,H]);break;case"p":H>tt&&(o=[tt,H])}oa(o),Yo($t),I(Di),fa!==0&&I(fa+" J"),Br!==0&&I(Br+" j"),be.publish("addPage",{pageNumber:ue})},sa=function(u){u>0&&u<=ue&&(xt.splice(u,1),Vt.splice(u,1),ue--,k>ue&&(k=ue),this.setPage(k))},Ha=function(u){u>0&&u<=ue&&(k=u)},Wa=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return xt.length-1},Va=function(u,v,O){var H,tt=void 0;return O=O||{},u=u!==void 0?u:oe[Mt].fontName,v=v!==void 0?v:oe[Mt].fontStyle,H=u.toLowerCase(),se[H]!==void 0&&se[H][v]!==void 0?tt=se[H][v]:se[u]!==void 0&&se[u][v]!==void 0?tt=se[u][v]:O.disableWarning===!1&&Ne.warn("Unable to look up font label for font '"+u+"', '"+v+"'. Refer to getFontList() for available fonts."),tt||O.noFallback||(tt=se.times[v])==null&&(tt=se.times.normal),tt},or=p.__private__.putInfo=function(){var u=De(),v=function(H){return H};for(var O in g!==null&&(v=sn.encryptor(u,0)),I("<<"),I("/Producer ("+Un(v("jsPDF "+Bt.version))+")"),ce)ce.hasOwnProperty(O)&&ce[O]&&I("/"+O.substr(0,1).toUpperCase()+O.substr(1)+" ("+Un(v(ce[O]))+")");I("/CreationDate ("+Un(v(Y))+")"),I(">>"),I("endobj")},ji=p.__private__.putCatalog=function(u){var v=(u=u||{}).rootDictionaryObjId||jr;switch(De(),I("<<"),I("/Type /Catalog"),I("/Pages "+v+" 0 R"),zt||(zt="fullwidth"),zt){case"fullwidth":I("/OpenAction [3 0 R /FitH null]");break;case"fullheight":I("/OpenAction [3 0 R /FitV null]");break;case"fullpage":I("/OpenAction [3 0 R /Fit]");break;case"original":I("/OpenAction [3 0 R /XYZ null null 1]");break;default:var O=""+zt;O.substr(O.length-1)==="%"&&(zt=parseInt(zt)/100),typeof zt=="number"&&I("/OpenAction [3 0 R /XYZ null null "+A(zt)+"]")}switch(le||(le="continuous"),le){case"continuous":I("/PageLayout /OneColumn");break;case"single":I("/PageLayout /SinglePage");break;case"two":case"twoleft":I("/PageLayout /TwoColumnLeft");break;case"tworight":I("/PageLayout /TwoColumnRight")}qt&&I("/PageMode /"+qt),be.publish("putCatalog"),I(">>"),I("endobj")},Ro=p.__private__.putTrailer=function(){I("trailer"),I("<<"),I("/Size "+(K+1)),I("/Root "+K+" 0 R"),I("/Info "+(K-1)+" 0 R"),g!==null&&I("/Encrypt "+sn.oid+" 0 R"),I("/ID [ <"+$+"> <"+$+"> ]"),I(">>")},Xe=p.__private__.putHeader=function(){I("%PDF-"+R),I("%ºß¬à")},Ga=p.__private__.putXRef=function(){var u="0000000000";I("xref"),I("0 "+(K+1)),I("0000000000 65535 f ");for(var v=1;v<=K;v++)typeof rt[v]=="function"?I((u+rt[v]()).slice(-10)+" 00000 n "):rt[v]!==void 0?I((u+rt[v]).slice(-10)+" 00000 n "):I("0000000000 00000 n ")},sr=p.__private__.buildDocument=function(){var u;K=0,st=0,lt=[],rt=[],ft=[],jr=an(),Gn=an(),It(lt),be.publish("buildDocument"),Xe(),ar(),(function(){be.publish("putAdditionalObjects");for(var O=0;O<ft.length;O++){var H=ft[O];on(H.objId,!0),I(H.content),I("endobj")}be.publish("postPutAdditionalObjects")})(),u=[],(function(){for(var O in oe)oe.hasOwnProperty(O)&&(L===!1||L===!0&&P.hasOwnProperty(O))&&ii(oe[O])})(),(function(){var O;for(O in Yt)Yt.hasOwnProperty(O)&&Bo(Yt[O])})(),(function(){for(var O in fn)fn.hasOwnProperty(O)&&Ii(fn[O])})(),(function(O){var H;for(H in Wt)Wt.hasOwnProperty(H)&&(Wt[H]instanceof Kr?Fi(Wt[H]):Wt[H]instanceof xi&&Oi(Wt[H],O))})(u),be.publish("putResources"),u.forEach(aa),aa({resourcesOid:Gn,objectOid:Number.MAX_SAFE_INTEGER}),be.publish("postPutResources"),g!==null&&(sn.oid=De(),I("<<"),I("/Filter /Standard"),I("/V "+sn.v),I("/R "+sn.r),I("/U <"+sn.toHexString(sn.U)+">"),I("/O <"+sn.toHexString(sn.O)+">"),I("/P "+sn.P),I(">>"),I("endobj")),or(),ji();var v=st;return Ga(),Ro(),I("startxref"),I(""+v),I("%%EOF"),It(xt[k]),lt.join(`
38
+ `)},Ti=p.__private__.getBlob=function(u){return new Blob([ne(u)],{type:"application/pdf"})},la=function(u){for(;u.firstChild;)u.removeChild(u.firstChild)},En=function(u){var v,O=u.document,H=O.documentElement,tt=O.head,pt=O.body;return tt||(tt=O.createElement("head"),H.appendChild(tt)),pt||(pt=O.createElement("body"),H.appendChild(pt)),la(tt),la(pt),(v=O.createElement("style")).appendChild(O.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),tt.appendChild(v),{document:O,body:pt}},Mi=p.output=p.__private__.output=(Dn=function(u,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",u){case void 0:return sr();case"save":p.save(v.filename);break;case"arraybuffer":return ne(sr());case"blob":return Ti(sr());case"bloburi":case"bloburl":if(Jt.URL!==void 0&&typeof Jt.URL.createObjectURL=="function")return Jt.URL&&Jt.URL.createObjectURL(Ti(sr()))||void 0;Ne.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var O="",H=sr();try{O=Cu(H)}catch{O=Cu(unescape(encodeURIComponent(H)))}return"data:application/pdf;filename="+encodeURIComponent(v.filename)+";base64,"+O;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var tt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",pt=!v.pdfObjectUrl;pt||(tt=v.pdfObjectUrl);var wt=Jt.open();if(wt!==null){var Ot=En(wt),Ft=Ot.document.createElement("script"),Kt=this;Ft.src=tt,pt&&(Ft.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ft.crossOrigin="anonymous"),Ft.onload=function(){wt.PDFObject.embed(Kt.output("dataurlstring"),v)},Ot.body.appendChild(Ft)}return wt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var te=v.pdfJsUrl||"examples/PDF.js/web/viewer.html",pe=Jt.open();if(pe!==null){var Ke=En(pe),_e=Ke.document.createElement("iframe"),Ae=te.indexOf("?")===-1?"?":"&";Kt=this,_e.id="pdfViewer",_e.width="500px",_e.height="400px",_e.src=te+Ae+"file=&downloadName="+encodeURIComponent(v.filename),_e.onload=function(){pe.document.title=v.filename,_e.contentWindow.PDFViewerApplication.open(Kt.output("bloburl"))},Ke.body.appendChild(_e)}return pe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Jt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ie=Jt.open();if(Ie!==null){var Be=En(Ie),Re=Be.document.createElement("iframe");Re.src=this.output("datauristring",v),Be.body.appendChild(Re),Ie.document.title=v.filename}if(Ie||typeof safari>"u")return Ie;break;case"datauri":case"dataurl":return Jt.document.location.href=this.output("datauristring",v);default:return null}},Dn.foo=function(){try{return Dn.apply(this,arguments)}catch(O){var u=O.stack||"";~u.indexOf(" at ")&&(u=u.split(" at ")[1]);var v="Error in function "+u.split(`
39
+ `)[0].split("<")[0]+": "+O.message;if(!Jt.console)throw new Error(v);Jt.console.error(v,O),Jt.alert&&alert(v)}},Dn.foo.bar=Dn,Dn.foo),yr=function(u){return Array.isArray(ei)===!0&&ei.indexOf(u)>-1};switch(r){case"pt":re=1;break;case"mm":re=72/25.4;break;case"cm":re=72/2.54;break;case"in":re=72;break;case"px":re=yr("px_scaling")==1?.75:96/72;break;case"pc":case"em":re=12;break;case"ex":re=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);re=r}var sn=null;ht(),et();var Ya=p.__private__.getPageInfo=p.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Vt[u].objId,pageNumber:u,pageContext:Vt[u]}},Do=p.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Vt)if(Vt[v].objId===u)break;return Ya(v)},qo=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Vt[k].objId,pageNumber:k,pageContext:Vt[k]}};p.addPage=function(){return za.apply(this,arguments),this},p.setPage=function(){return Ha.apply(this,arguments),It.call(this,xt[k]),this},p.insertPage=function(u){return this.addPage(),this.movePage(k,u),this},p.movePage=function(u,v){var O,H;if(u>v){O=xt[u],H=Vt[u];for(var tt=u;tt>v;tt--)xt[tt]=xt[tt-1],Vt[tt]=Vt[tt-1];xt[v]=O,Vt[v]=H,this.setPage(v)}else if(u<v){O=xt[u],H=Vt[u];for(var pt=u;pt<v;pt++)xt[pt]=xt[pt+1],Vt[pt]=Vt[pt+1];xt[v]=O,Vt[v]=H,this.setPage(v)}return this},p.deletePage=function(){return sa.apply(this,arguments),this},p.__private__.text=p.text=function(u,v,O,H,tt){var pt,wt,Ot,Ft,Kt,te,pe,Ke,_e,Ae=(H=H||{}).scope||this;if(typeof u=="number"&&typeof v=="number"&&(typeof O=="string"||Array.isArray(O))){var Ie=O;O=v,v=u,u=Ie}if(arguments[3]instanceof Gt==0?(Ot=arguments[4],Ft=arguments[5],Se(pe=arguments[3])==="object"&&pe!==null||(typeof Ot=="string"&&(Ft=Ot,Ot=null),typeof pe=="string"&&(Ft=pe,pe=null),typeof pe=="number"&&(Ot=pe,pe=null),H={flags:pe,angle:Ot,align:Ft})):(T("The transform parameter of text() with a Matrix value"),_e=tt),isNaN(v)||isNaN(O)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return Ae;var Be,Re="",hn=typeof H.lineHeightFactor=="number"?H.lineHeightFactor:ai,Nr=Ae.internal.scaleFactor;function ga(Pe){return Pe=Pe.split(" ").join(Array(H.TabLen||9).join(" ")),Un(Pe,pe)}function li(Pe){for(var Ee,We=Pe.concat(),Qe=[],kr=We.length;kr--;)typeof(Ee=We.shift())=="string"?Qe.push(Ee):Array.isArray(Pe)&&(Ee.length===1||Ee[1]===void 0&&Ee[2]===void 0)?Qe.push(Ee[0]):Qe.push([Ee[0],Ee[1],Ee[2]]);return Qe}function ui(Pe,Ee){var We;if(typeof Pe=="string")We=Ee(Pe)[0];else if(Array.isArray(Pe)){for(var Qe,kr,xa=Pe.concat(),Ki=[],ro=xa.length;ro--;)typeof(Qe=xa.shift())=="string"?Ki.push(Ee(Qe)[0]):Array.isArray(Qe)&&typeof Qe[0]=="string"&&(kr=Ee(Qe[0],Qe[1],Qe[2]),Ki.push([kr[0],kr[1],kr[2]]));We=Ki}return We}var Rr=!1,ci=!0;if(typeof u=="string")Rr=!0;else if(Array.isArray(u)){var Hi=u.concat();wt=[];for(var Wi,dn=Hi.length;dn--;)(typeof(Wi=Hi.shift())!="string"||Array.isArray(Wi)&&typeof Wi[0]!="string")&&(ci=!1);Rr=ci}if(Rr===!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 fi=At/Ae.internal.scaleFactor,hi=fi*(hn-1);switch(H.baseline){case"bottom":O-=hi;break;case"top":O+=fi-hi;break;case"hanging":O+=fi-2*hi;break;case"middle":O+=fi/2-hi}if((te=H.maxWidth||0)>0&&(typeof u=="string"?u=Ae.splitTextToSize(u,te):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(Pe,Ee){return Pe.concat(Ae.splitTextToSize(Ee,te))},[]))),pt={text:u,x:v,y:O,options:H,mutex:{pdfEscape:Un,activeFontKey:Mt,fonts:oe,activeFontSize:At}},be.publish("preProcessText",pt),u=pt.text,Ot=(H=pt.options).angle,_e instanceof Gt==0&&Ot&&typeof Ot=="number"){Ot*=Math.PI/180,H.rotationDirection===0&&(Ot=-Ot),z===X&&(Ot=-Ot);var ma=Math.cos(Ot),cr=Math.sin(Ot);_e=new Gt(ma,cr,-cr,ma,0,0)}else Ot&&Ot instanceof Gt&&(_e=Ot);z!==X||_e||(_e=wr),(Kt=H.charSpace||qi)!==void 0&&(Re+=D(_(Kt))+` Tc
40
+ `,this.setCharSpace(this.getCharSpace()||0)),(Ke=H.horizontalScale)!==void 0&&(Re+=D(100*Ke)+` Tz
41
+ `),H.lang;var yn=-1,eo=H.renderingMode!==void 0?H.renderingMode:H.stroke,Vi=Ae.internal.getCurrentPageInfo().pageContext;switch(eo){case 0:case!1:case"fill":yn=0;break;case 1:case!0:case"stroke":yn=1;break;case 2:case"fillThenStroke":yn=2;break;case 3:case"invisible":yn=3;break;case 4:case"fillAndAddForClipping":yn=4;break;case 5:case"strokeAndAddPathForClipping":yn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":yn=6;break;case 7:case"addToPathForClipping":yn=7}var no=Vi.usedRenderingMode!==void 0?Vi.usedRenderingMode:-1;yn!==-1?Re+=yn+` Tr
42
+ `:no!==-1&&(Re+=`0 Tr
43
+ `),yn!==-1&&(Vi.usedRenderingMode=yn),Ft=H.align||"left";var zn,di=At*hn,va=Ae.internal.pageSize.getWidth(),Gi=oe[Mt];Kt=H.charSpace||qi,te=H.maxWidth||0,pe=Object.assign({autoencode:!0,noBOM:!0},H.flags);var pi=[],ba=function(Pe){return Ae.getStringUnitWidth(Pe,{font:Gi,charSpace:Kt,fontSize:At,doKerning:!1})*At/Nr};if(Object.prototype.toString.call(u)==="[object Array]"){var xn;wt=li(u),Ft!=="left"&&(zn=wt.map(ba));var Nn,Yi=0;if(Ft==="right"){v-=zn[0],u=[],dn=wt.length;for(var Dr=0;Dr<dn;Dr++)Dr===0?(Nn=xr(v),xn=Ar(O)):(Nn=_(Yi-zn[Dr]),xn=-di),u.push([wt[Dr],Nn,xn]),Yi=zn[Dr]}else if(Ft==="center"){v-=zn[0]/2,u=[],dn=wt.length;for(var qr=0;qr<dn;qr++)qr===0?(Nn=xr(v),xn=Ar(O)):(Nn=_((Yi-zn[qr])/2),xn=-di),u.push([wt[qr],Nn,xn]),Yi=zn[qr]}else if(Ft==="left"){u=[],dn=wt.length;for(var $i=0;$i<dn;$i++)u.push(wt[$i])}else if(Ft==="justify"&&Gi.encoding==="Identity-H"){u=[],dn=wt.length,te=te!==0?te:va;for(var gi=0,Ze=0;Ze<dn;Ze++)if(xn=Ze===0?Ar(O):-di,Nn=Ze===0?xr(v):gi,Ze<dn-1){var es=_((te-zn[Ze])/(wt[Ze].split(" ").length-1)),fr=wt[Ze].split(" ");u.push([fr[0]+" ",Nn,xn]),gi=0;for(var Jn=1;Jn<fr.length;Jn++){var mi=(ba(fr[Jn-1]+" "+fr[Jn])-ba(fr[Jn]))*Nr+es;Jn==fr.length-1?u.push([fr[Jn],mi,0]):u.push([fr[Jn]+" ",mi,0]),gi-=mi}}else u.push([wt[Ze],Nn,xn]);u.push(["",gi,0])}else{if(Ft!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],dn=wt.length,te=te!==0?te:va,Ze=0;Ze<dn;Ze++){xn=Ze===0?Ar(O):-di,Nn=Ze===0?xr(v):0;var wa=wt[Ze].split(" ").length-1,ya=wa>0?(te-zn[Ze])/wa:0;Ze<dn-1?pi.push(D(_(ya))):pi.push(0),u.push([wt[Ze],Nn,xn])}}}(typeof H.R2L=="boolean"?H.R2L:Ht)===!0&&(u=ui(u,function(Pe,Ee,We){return[Pe.split("").reverse().join(""),Ee,We]})),pt={text:u,x:v,y:O,options:H,mutex:{pdfEscape:Un,activeFontKey:Mt,fonts:oe,activeFontSize:At}},be.publish("postProcessText",pt),u=pt.text,Be=pt.mutex.isHex||!1;var Ji=oe[Mt].encoding;Ji!=="WinAnsiEncoding"&&Ji!=="StandardEncoding"||(u=ui(u,function(Pe,Ee,We){return[ga(Pe),Ee,We]})),wt=li(u),u=[];for(var vi,bi,Ur,Sr=Array.isArray(wt[0])?1:0,zr="",Xi=function(Pe,Ee,We){var Qe="";return We instanceof Gt?(We=typeof H.angle=="number"?br(We,new Gt(1,0,0,1,Pe,Ee)):br(new Gt(1,0,0,1,Pe,Ee),We),z===X&&(We=br(new Gt(1,0,0,-1,0,0),We)),Qe=We.join(" ")+` Tm
44
+ `):Qe=D(Pe)+" "+D(Ee)+` Td
45
+ `,Qe},pn=0;pn<wt.length;pn++){switch(zr="",Sr){case 1:Ur=(Be?"<":"(")+wt[pn][0]+(Be?">":")"),vi=parseFloat(wt[pn][1]),bi=parseFloat(wt[pn][2]);break;case 0:Ur=(Be?"<":"(")+wt[pn]+(Be?">":")"),vi=xr(v),bi=Ar(O)}pi!==void 0&&pi[pn]!==void 0&&(zr=pi[pn]+` Tw
46
+ `),pn===0?u.push(zr+Xi(vi,bi,_e)+Ur):Sr===0?u.push(zr+Ur):Sr===1&&u.push(zr+Xi(vi,bi,_e)+Ur)}u=Sr===0?u.join(` Tj
47
+ T* `):u.join(` Tj
48
+ `),u+=` Tj
49
+ `;var hr=`BT
50
+ /`;return hr+=Mt+" "+At+` Tf
51
+ `,hr+=D(At*hn)+` TL
52
+ `,hr+=ur+`
53
+ `,hr+=Re,hr+=u,I(hr+="ET"),P[Mt]=!0,Ae};var Uo=p.__private__.clip=p.clip=function(u){return I(u==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Uo("evenodd")},p.__private__.discardPath=p.discardPath=function(){return I("n"),this};var lr=p.__private__.isValidStyle=function(u){var v=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(v=!0),v};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(u){return lr(u)&&(d=u),this};var $a=p.__private__.getStyle=p.getStyle=function(u){var v=d;switch(u){case"D":case"S":v="S";break;case"F":v="f";break;case"FD":case"DF":v="B";break;case"f":case"f*":case"B":case"B*":v=u}return v},Bi=p.close=function(){return I("h"),this};p.stroke=function(){return I("S"),this},p.fill=function(u){return Ri("f",u),this},p.fillEvenOdd=function(u){return Ri("f*",u),this},p.fillStroke=function(u){return Ri("B",u),this},p.fillStrokeEvenOdd=function(u){return Ri("B*",u),this};var Ri=function(u,v){Se(v)==="object"?Ho(v,u):I(u)},ua=function(u){u===null||z===X&&u===void 0||(u=$a(u),I(u))};function zo(u,v,O,H,tt){var pt=new xi(v||this.boundingBox,O||this.xStep,H||this.yStep,this.gState,tt||this.matrix);pt.stream=this.stream;var wt=u+"$$"+this.cloneIndex+++"$$";return Rn(wt,pt),pt}var Ho=function(u,v){var O=ke[u.key],H=Wt[O];if(H instanceof Kr)I("q"),I(Wo(v)),H.gState&&p.setGState(H.gState),I(u.matrix.toString()+" cm"),I("/"+O+" sh"),I("Q");else if(H instanceof xi){var tt=new Gt(1,0,0,-1,0,si());u.matrix&&(tt=tt.multiply(u.matrix||wr),O=zo.call(H,u.key,u.boundingBox,u.xStep,u.yStep,tt).id),I("q"),I("/Pattern cs"),I("/"+O+" scn"),H.gState&&p.setGState(H.gState),I(v),I("Q")}},Wo=function(u){switch(u){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Tr=p.moveTo=function(u,v){return I(D(_(u))+" "+D(F(v))+" m"),this},Ja=p.lineTo=function(u,v){return I(D(_(u))+" "+D(F(v))+" l"),this},Mr=p.curveTo=function(u,v,O,H,tt,pt){return I([D(_(u)),D(F(v)),D(_(O)),D(F(H)),D(_(tt)),D(F(pt)),"c"].join(" ")),this};p.__private__.line=p.line=function(u,v,O,H,tt){if(isNaN(u)||isNaN(v)||isNaN(O)||isNaN(H)||!lr(tt))throw new Error("Invalid arguments passed to jsPDF.line");return z===J?this.lines([[O-u,H-v]],u,v,[1,1],tt||"S"):this.lines([[O-u,H-v]],u,v,[1,1]).stroke()},p.__private__.lines=p.lines=function(u,v,O,H,tt,pt){var wt,Ot,Ft,Kt,te,pe,Ke,_e,Ae,Ie,Be,Re;if(typeof u=="number"&&(Re=O,O=v,v=u,u=Re),H=H||[1,1],pt=pt||!1,isNaN(v)||isNaN(O)||!Array.isArray(u)||!Array.isArray(H)||!lr(tt)||typeof pt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Tr(v,O),wt=H[0],Ot=H[1],Kt=u.length,Ie=v,Be=O,Ft=0;Ft<Kt;Ft++)(te=u[Ft]).length===2?(Ie=te[0]*wt+Ie,Be=te[1]*Ot+Be,Ja(Ie,Be)):(pe=te[0]*wt+Ie,Ke=te[1]*Ot+Be,_e=te[2]*wt+Ie,Ae=te[3]*Ot+Be,Ie=te[4]*wt+Ie,Be=te[5]*Ot+Be,Mr(pe,Ke,_e,Ae,Ie,Be));return pt&&Bi(),ua(tt),this},p.path=function(u){for(var v=0;v<u.length;v++){var O=u[v],H=O.c;switch(O.op){case"m":Tr(H[0],H[1]);break;case"l":Ja(H[0],H[1]);break;case"c":Mr.apply(this,H);break;case"h":Bi()}}return this},p.__private__.rect=p.rect=function(u,v,O,H,tt){if(isNaN(u)||isNaN(v)||isNaN(O)||isNaN(H)||!lr(tt))throw new Error("Invalid arguments passed to jsPDF.rect");return z===J&&(H=-H),I([D(_(u)),D(F(v)),D(_(O)),D(_(H)),"re"].join(" ")),ua(tt),this},p.__private__.triangle=p.triangle=function(u,v,O,H,tt,pt,wt){if(isNaN(u)||isNaN(v)||isNaN(O)||isNaN(H)||isNaN(tt)||isNaN(pt)||!lr(wt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[O-u,H-v],[tt-O,pt-H],[u-tt,v-pt]],u,v,[1,1],wt,!0),this},p.__private__.roundedRect=p.roundedRect=function(u,v,O,H,tt,pt,wt){if(isNaN(u)||isNaN(v)||isNaN(O)||isNaN(H)||isNaN(tt)||isNaN(pt)||!lr(wt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ot=4/3*(Math.SQRT2-1);return tt=Math.min(tt,.5*O),pt=Math.min(pt,.5*H),this.lines([[O-2*tt,0],[tt*Ot,0,tt,pt-pt*Ot,tt,pt],[0,H-2*pt],[0,pt*Ot,-tt*Ot,pt,-tt,pt],[2*tt-O,0],[-tt*Ot,0,-tt,-pt*Ot,-tt,-pt],[0,2*pt-H],[0,-pt*Ot,tt*Ot,-pt,tt,-pt]],u+tt,v,[1,1],wt,!0),this},p.__private__.ellipse=p.ellipse=function(u,v,O,H,tt){if(isNaN(u)||isNaN(v)||isNaN(O)||isNaN(H)||!lr(tt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var pt=4/3*(Math.SQRT2-1)*O,wt=4/3*(Math.SQRT2-1)*H;return Tr(u+O,v),Mr(u+O,v-wt,u+pt,v-H,u,v-H),Mr(u-pt,v-H,u-O,v-wt,u-O,v),Mr(u-O,v+wt,u-pt,v+H,u,v+H),Mr(u+pt,v+H,u+O,v+wt,u+O,v),ua(tt),this},p.__private__.circle=p.circle=function(u,v,O,H){if(isNaN(u)||isNaN(v)||isNaN(O)||!lr(H))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,v,O,O,H)},p.setFont=function(u,v,O){return O&&(v=Q(v,O)),Mt=Va(u,v,{disableWarning:!1}),this};var Vo=p.__private__.getFont=p.getFont=function(){return oe[Va.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var u,v,O={};for(u in se)if(se.hasOwnProperty(u))for(v in O[u]=[],se[u])se[u].hasOwnProperty(v)&&O[u].push(v);return O},p.addFont=function(u,v,O,H,tt){var pt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&pt.indexOf(arguments[3])!==-1?tt=arguments[3]:arguments[3]&&pt.indexOf(arguments[3])==-1&&(O=Q(O,H)),Ua.call(this,u,v,O,tt=tt||"Identity-H")};var ai,$t=n.lineWidth||.200025,Go=p.__private__.getLineWidth=p.getLineWidth=function(){return $t},Yo=p.__private__.setLineWidth=p.setLineWidth=function(u){return $t=u,I(D(_(u))+" w"),this};p.__private__.setLineDash=Bt.API.setLineDash=Bt.API.setLineDashPattern=function(u,v){if(u=u||[],v=v||0,isNaN(v)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(O){return D(_(O))}).join(" "),v=D(_(v)),I("["+u+"] "+v+" d"),this};var $o=p.__private__.getLineHeight=p.getLineHeight=function(){return At*ai};p.__private__.getLineHeight=p.getLineHeight=function(){return At*ai};var Jo=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(ai=u),this},Xo=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return ai};Jo(n.lineHeight);var xr=p.__private__.getHorizontalCoordinate=function(u){return _(u)},Ar=p.__private__.getVerticalCoordinate=function(u){return z===X?u:Vt[k].mediaBox.topRightY-Vt[k].mediaBox.bottomLeftY-_(u)},Ko=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(u){return D(xr(u))},Zo=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(u){return D(Ar(u))},Di=n.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ir(Di)},p.__private__.setStrokeColor=p.setDrawColor=function(u,v,O,H){return Di=Yn({ch1:u,ch2:v,ch3:O,ch4:H,pdfColorType:"draw",precision:2}),I(Di),this};var ca=n.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ir(ca)},p.__private__.setFillColor=p.setFillColor=function(u,v,O,H){return ca=Yn({ch1:u,ch2:v,ch3:O,ch4:H,pdfColorType:"fill",precision:2}),I(ca),this};var ur=n.textColor||"0 g",Qo=p.__private__.getTextColor=p.getTextColor=function(){return ir(ur)};p.__private__.setTextColor=p.setTextColor=function(u,v,O,H){return ur=Yn({ch1:u,ch2:v,ch3:O,ch4:H,pdfColorType:"text",precision:3}),this};var qi=n.charSpace,ts=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(qi||0)};p.__private__.setCharSpace=p.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qi=u,this};var fa=0;p.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},p.__private__.setLineCap=p.setLineCap=function(u){var v=p.CapJoinStyles[u];if(v===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fa=v,I(v+" J"),this};var Br=0;p.__private__.setLineJoin=p.setLineJoin=function(u){var v=p.CapJoinStyles[u];if(v===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Br=v,I(v+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return I(D(_(u))+" M"),this},p.GState=Ra,p.setGState=function(u){(u=typeof u=="string"?Yt[Qt[u]]:ha(null,u)).equals(Te)||(I("/"+u.id+" gs"),Te=u)};var ha=function(u,v){if(!u||!Qt[u]){var O=!1;for(var H in Yt)if(Yt.hasOwnProperty(H)&&Yt[H].equals(v)){O=!0;break}if(O)v=Yt[H];else{var tt="GS"+(Object.keys(Yt).length+1).toString(10);Yt[tt]=v,v.id=tt}return u&&(Qt[u]=v.id),be.publish("addGState",v),v}};p.addGState=function(u,v){return ha(u,v),this},p.saveGraphicsState=function(){return I("q"),je.push({key:Mt,size:At,color:ur}),this},p.restoreGraphicsState=function(){I("Q");var u=je.pop();return Mt=u.key,At=u.size,ur=u.color,Te=null,this},p.setCurrentTransformationMatrix=function(u){return I(u.toString()+" cm"),this},p.comment=function(u){return I("#"+u),this};var oi=function(u,v){var O=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return O},set:function(pt){isNaN(pt)||(O=parseFloat(pt))}});var H=v||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return H},set:function(pt){isNaN(pt)||(H=parseFloat(pt))}});var tt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return tt},set:function(pt){tt=pt.toString()}}),this},da=function(u,v,O,H){oi.call(this,u,v),this.type="rect";var tt=O||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return tt},set:function(wt){isNaN(wt)||(tt=parseFloat(wt))}});var pt=H||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pt},set:function(wt){isNaN(wt)||(pt=parseFloat(wt))}}),this},Ui=function(){this.page=ue,this.currentPage=k,this.pages=xt.slice(0),this.pagesContext=Vt.slice(0),this.x=Dt,this.y=He,this.matrix=me,this.width=Xa(k),this.height=Lr(k),this.outputDestination=_t,this.id="",this.objectNumber=-1};Ui.prototype.restore=function(){ue=this.page,k=this.currentPage,Vt=this.pagesContext,xt=this.pages,Dt=this.x,He=this.y,me=this.matrix,_r(k,this.width),Ka(k,this.height),_t=this.outputDestination};var pa=function(u,v,O,H,tt){rr.push(new Ui),ue=k=0,xt=[],Dt=u,He=v,me=tt,oa([O,H])};for(var zi in p.beginFormObject=function(u,v,O,H,tt){return pa(u,v,O,H,tt),this},p.endFormObject=function(u){return(function(v){if(vr[v])rr.pop().restore();else{var O=new Ui,H="Xo"+(Object.keys(fn).length+1).toString(10);O.id=H,vr[v]=H,fn[H]=O,be.publish("addFormObject",O),rr.pop().restore()}})(u),this},p.doFormObject=function(u,v){var O=fn[vr[u]];return I("q"),I(v.toString()+" cm"),I("/"+O.id+" Do"),I("Q"),this},p.getFormObject=function(u){var v=fn[vr[u]];return{x:v.x,y:v.y,width:v.width,height:v.height,matrix:v.matrix}},p.save=function(u,v){return u=u||"generated.pdf",(v=v||{}).returnPromise=v.returnPromise||!1,v.returnPromise===!1?(yi(Ti(sr()),u),typeof yi.unload=="function"&&Jt.setTimeout&&setTimeout(yi.unload,911),this):new Promise(function(O,H){try{var tt=yi(Ti(sr()),u);typeof yi.unload=="function"&&Jt.setTimeout&&setTimeout(yi.unload,911),O(tt)}catch(pt){H(pt.message)}})},Bt.API)Bt.API.hasOwnProperty(zi)&&(zi==="events"&&Bt.API.events.length?(function(u,v){var O,H,tt;for(tt=v.length-1;tt!==-1;tt--)O=v[tt][0],H=v[tt][1],u.subscribe.apply(u,[O].concat(typeof H=="function"?[H]:H))})(be,Bt.API.events):p[zi]=Bt.API[zi]);function Xa(u){return Vt[u].mediaBox.topRightX-Vt[u].mediaBox.bottomLeftX}function _r(u,v){Vt[u].mediaBox.topRightX=v+Vt[u].mediaBox.bottomLeftX}function Lr(u){return Vt[u].mediaBox.topRightY-Vt[u].mediaBox.bottomLeftY}function Ka(u,v){Vt[u].mediaBox.topRightY=v+Vt[u].mediaBox.bottomLeftY}var Za=p.getPageWidth=function(u){return Xa(u=u||k)/re},Qa=p.setPageWidth=function(u,v){_r(u,v*re)},si=p.getPageHeight=function(u){return Lr(u=u||k)/re},to=p.setPageHeight=function(u,v){Ka(u,v*re)};return p.internal={pdfEscape:Un,getStyle:$a,getFont:Vo,getFontSize:Pt,getCharSpace:ts,getTextColor:Qo,getLineHeight:$o,getLineHeightFactor:Xo,getLineWidth:Go,write:kt,getHorizontalCoordinate:xr,getVerticalCoordinate:Ar,getCoordinateString:Ko,getVerticalCoordinateString:Zo,collections:{},newObject:De,newAdditionalObject:ni,newObjectDeferred:an,newObjectDeferredBegin:on,getFilters:$n,putStream:qn,events:be,scaleFactor:re,pageSize:{getWidth:function(){return Za(k)},setWidth:function(u){Qa(k,u)},getHeight:function(){return si(k)},setHeight:function(u){to(k,u)}},encryptionOptions:g,encryption:sn,getEncryptor:function(u){return g!==null?sn.encryptor(u,0):function(v){return v}},output:Mi,getNumberOfPages:Wa,get pages(){return xt},out:I,f2:A,f3:N,getPageInfo:Ya,getPageInfoByObjId:Do,getCurrentPageInfo:qo,getPDFVersion:j,Point:oi,Rectangle:da,Matrix:Gt,hasHotfix:yr},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Za(k)},set:function(u){Qa(k,u)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return si(k)},set:function(u){to(k,u)},enumerable:!0,configurable:!0}),(function(u){for(var v=0,O=Ut.length;v<O;v++){var H=Ua.call(this,u[v][0],u[v][1],u[v][2],Ut[v][3],!0);L===!1&&(P[H]=!0);var tt=u[v][0].split("-");qa({id:H,fontName:tt[0],fontStyle:tt[1]||""})}be.publish("addFonts",{fonts:oe,dictionary:se})}).call(p,Ut),Mt="F1",za(o,t),be.publish("initialized"),p}na.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},na.prototype.toHexString=function(n){return n.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},na.prototype.hexToBytes=function(n){for(var e=[],t=0;t<n.length;t+=2)e.push(String.fromCharCode(parseInt(n.substr(t,2),16)));return e.join("")},na.prototype.processOwnerPassword=function(n,e){return $s(Ys(e).substr(0,5),n)},na.prototype.encryptor=function(n,e){var t=Ys(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return $s(t,r)}},Ra.prototype.equals=function(n){var e,t="id,objectNumber,equals";if(!n||Se(n)!==Se(this))return!1;var r=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!n.hasOwnProperty(e)||this[e]!==n[e])return!1;r++}for(e in n)n.hasOwnProperty(e)&&t.indexOf(e)<0&&r--;return r===0},Bt.API={events:[]},Bt.version="4.2.1";var ze=Bt.API,el=1,Ci=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ta=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Pi=function(n){return n.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(t.length===1?"0"+t:t)})},Zt=function(n){return n.toFixed(2)},Xr=function(n){return n.toFixed(5)};ze.__acroform__={};var Pn=function(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n},ju=function(n){return n*el},pr=function(n){var e=new Oc,t=Ct.internal.getHeight(n)||0,r=Ct.internal.getWidth(n)||0;return e.BBox=[0,0,Number(Zt(r)),Number(Zt(t))],e},U1=ze.__acroform__.setBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<e},z1=ze.__acroform__.clearBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<e)},H1=ze.__acroform__.getBit=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<e?1:0},Ye=ze.__acroform__.getBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return H1(n,e-1)},$e=ze.__acroform__.setBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return U1(n,e-1)},Je=ze.__acroform__.clearBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return z1(n,e-1)},W1=ze.__acroform__.calculateCoordinates=function(n,e){var t=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,o=n[0],a=n[1],h=n[2],l=n[3],c={};return c.lowerLeft_X=t(o)||0,c.lowerLeft_Y=r(a+l)||0,c.upperRight_X=t(o+h)||0,c.upperRight_Y=r(a)||0,[Number(Zt(c.lowerLeft_X)),Number(Zt(c.lowerLeft_Y)),Number(Zt(c.upperRight_X)),Number(Zt(c.upperRight_Y))]},V1=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var e=[],t=n._V||n.DV,r=Js(n,t),o=n.scope.internal.getFont(n.fontName,n.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.scope.__private__.encodeColorString(n.color)),e.push("/"+o+" "+Zt(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=pr(n);return a.scope=n.scope,a.stream=e.join(`
54
+ `),a}},Js=function(n,e){var t=n.fontSize===0?n.maxFontSize:n.fontSize,r={text:"",fontSize:""},o=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");o=n.multiline?o.map(function(A){return A.split(`
55
+ `)}):o.map(function(A){return[A]});var a=t,h=Ct.internal.getHeight(n)||0;h=h<0?-h:h;var l=Ct.internal.getWidth(n)||0;l=l<0?-l:l;var c=function(A,N,_){if(A+1<o.length){var F=N+" "+o[A+1][0];return ko(F,n,_).width<=l-4}return!1};a++;t:for(;a>0;){e="",a--;var d,g,L=ko("3",n,a).height,P=n.multiline?h-a:(h-L)/2,p=P+=2,R=0,j=0,U=0;if(a<=0){e=`(...) Tj
56
+ `,e+="% Width of Text: "+ko(e,n,a=12).width+", FieldWidth:"+l+`
57
+ `;break}for(var C="",J=0,X=0;X<o.length;X++)if(o.hasOwnProperty(X)){var z=!1;if(o[X].length!==1&&U!==o[X].length-1){if((L+2)*(J+2)+2>h)continue t;C+=o[X][U],z=!0,j=X,X--}else{C=(C+=o[X][U]+" ").substr(C.length-1)==" "?C.substr(0,C.length-1):C;var ut=parseInt(X),bt=c(ut,C,a),Q=X>=o.length-1;if(bt&&!Q){C+=" ",U=0;continue}if(bt||Q){if(Q)j=ut;else if(n.multiline&&(L+2)*(J+2)+2>h)continue t}else{if(!n.multiline||(L+2)*(J+2)+2>h)continue t;j=ut}}for(var D="",T=R;T<=j;T++){var V=o[T];if(n.multiline){if(T===j){D+=V[U]+" ",U=(U+1)%V.length;continue}if(T===R){D+=V[V.length-1]+" ";continue}}D+=V[0]+" "}switch(D=D.substr(D.length-1)==" "?D.substr(0,D.length-1):D,g=ko(D,n,a).width,n.textAlign){case"right":d=l-g-2;break;case"center":d=(l-g)/2;break;default:d=2}e+=Zt(d)+" "+Zt(p)+` Td
58
+ `,e+="("+Ci(D)+`) Tj
59
+ `,e+=-Zt(d)+` 0 Td
60
+ `,p=-(a+2),g=0,R=z?j:j+1,J++,C=""}break}return r.text=e,r.fontSize=a,r},ko=function(n,e,t){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),o=e.scope.getStringUnitWidth(n,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:o}},G1={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Y1=function(n,e){var t={type:"reference",object:n};e.internal.getPageInfo(n.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&e.internal.getPageInfo(n.page).pageContext.annotations.push(t)},$1=function(n,e){if(e.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(er.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(G1)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");el=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new jc,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.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})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];a.objId=void 0,a.hasAnnotation&&Y1(a,t)}})(n)}),n.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")})(n)}),n.internal.events.subscribe("postPutPages",function(t){(function(r,o){var a=!r;for(var h in r||(o.internal.newObjectDeferredBegin(o.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),o.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||o.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(h)){var l=r[h],c=[],d=l.Rect;if(l.Rect&&(l.Rect=W1(l.Rect,o)),o.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Ct.createDefaultAppearanceStream(l),Se(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var g=V1(l);c.push({key:"AP",value:"<</N "+g+">>"}),o.internal.acroformPlugin.xForms.push(g)}if(l.appearanceStreamContent){var L="";for(var P in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(P)){var p=l.appearanceStreamContent[P];if(L+="/"+P+" ",L+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var h in p)if(p.hasOwnProperty(h)){var R=p[h];typeof R=="function"&&(R=R.call(o,l)),L+="/"+h+" "+R+" ",o.internal.acroformPlugin.xForms.indexOf(R)>=0||o.internal.acroformPlugin.xForms.push(R)}}else typeof(R=p)=="function"&&(R=R.call(o,l)),L+="/"+h+" "+R,o.internal.acroformPlugin.xForms.indexOf(R)>=0||o.internal.acroformPlugin.xForms.push(R);L+=">>"}c.push({key:"AP",value:`<<
61
+ `+L+">>"})}o.internal.putStream({additionalKeyValues:c,objectId:l.objId}),o.internal.out("endobj")}a&&(function(j,U){for(var C in j)if(j.hasOwnProperty(C)){var J=C,X=j[C];U.internal.newObjectDeferredBegin(X.objId,!0),Se(X)==="object"&&typeof X.putStream=="function"&&X.putStream(),delete j[J]}})(o.internal.acroformPlugin.xForms,o)})(t,n)}),n.internal.acroformPlugin.isInitialized=!0}},Fc=ze.__acroform__.arrayToPdfArray=function(n,e,t){var r=function(h){return h};if(Array.isArray(n)){for(var o="[",a=0;a<n.length;a++)switch(a!==0&&(o+=" "),Se(n[a])){case"boolean":case"number":case"object":o+=n[a].toString();break;case"string":n[a].substr(0,1)==="/"?o+="/"+Pi(n[a].substr(1)):(e!==void 0&&t&&(r=t.internal.getEncryptor(e)),o+="("+Ci(r(n[a].toString()))+")")}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ts=function(n,e,t){var r=function(o){return o};return e!==void 0&&t&&(r=t.internal.getEncryptor(e)),(n=n||"").toString(),"("+Ci(r(n))+")"},gr=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};gr.prototype.toString=function(){return this.objId+" 0 R"},gr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},gr.prototype.getKeyValueListForStream=function(){var n=[],e=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var r=e[t],o=this[r];o&&(Array.isArray(o)?n.push({key:r,value:Fc(o,this.objId,this.scope)}):o instanceof gr?(o.scope=this.scope,n.push({key:r,value:o.objId+" 0 R"})):typeof o!="function"&&n.push({key:r,value:o}))}return n};var Oc=function(){gr.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 n,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){n=t.trim()},get:function(){return n||null}})};Pn(Oc,gr);var jc=function(){gr.call(this);var n,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ci(t(n))+")"}},set:function(t){n=t}})};Pn(jc,gr);var er=function n(){gr.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(C){if(isNaN(C))throw new Error('Invalid value "'+C+'" for attribute F supplied.');e=C}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ye(e,3)},set:function(C){C?this.F=$e(e,3):this.F=Je(e,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 o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(C){switch(C){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=C;break;default:throw new Error('Invalid value "'+C+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof jo)return;a="FieldObject"+n.FieldNum++}var C=function(J){return J};return this.scope&&(C=this.scope.internal.getEncryptor(this.objId)),"("+Ci(C(a))+")"},set:function(C){a=C.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(C){a=C}});var h="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return h},set:function(C){h=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 d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/el:d},set:function(C){d=C}});var g="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return g},set:function(C){g=C}});var L="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!L||this instanceof jo||this instanceof Qr))return Ts(L,this.objId,this.scope)},set:function(C){C=C.toString(),L=C}});var P=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(P)return this instanceof rn==0?Ts(P,this.objId,this.scope):P},set:function(C){C=C.toString(),P=this instanceof rn==0?C.substr(0,1)==="("?ta(C.substr(1,C.length-2)):ta(C):C}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof rn==1?ta(P.substr(1,P.length-1)):P},set:function(C){C=C.toString(),P=this instanceof rn==1?"/"+Pi(C):C}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(C){this.V=C}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof rn==0?Ts(p,this.objId,this.scope):p},set:function(C){C=C.toString(),p=this instanceof rn==0?C.substr(0,1)==="("?ta(C.substr(1,C.length-2)):ta(C):C}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof rn==1?ta(p.substr(1,p.length-1)):p},set:function(C){C=C.toString(),p=this instanceof rn==1?"/"+Pi(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 R,j=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return j},set:function(C){C=!!C,j=C}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(R)return R},set:function(C){R=C}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,1)},set:function(C){C?this.Ff=$e(this.Ff,1):this.Ff=Je(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,2)},set:function(C){C?this.Ff=$e(this.Ff,2):this.Ff=Je(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,3)},set:function(C){C?this.Ff=$e(this.Ff,3):this.Ff=Je(this.Ff,3)}});var U=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(U!==null)return U},set:function(C){if([0,1,2].indexOf(C)===-1)throw new Error('Invalid value "'+C+'" for attribute Q supplied.');U=C}}),Object.defineProperty(this,"textAlign",{get:function(){var C;switch(U){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:U=2;break;case"center":case 1:U=1;break;default:U=0}}})};Pn(er,gr);var Ai=function(){er.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(t){n=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Fc(e,this.objId,this.scope)},set:function(t){var r,o;o=[],typeof(r=t)=="string"&&(o=(function(a,h,l){l||(l=1);for(var c,d=[];c=h.exec(a);)d.push(c[l]);return d})(r,/\((.*?)\)/g)),e=o}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,18)},set:function(t){t?this.Ff=$e(this.Ff,18):this.Ff=Je(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=$e(this.Ff,19):this.Ff=Je(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,20)},set:function(t){t?(this.Ff=$e(this.Ff,20),e.sort()):this.Ff=Je(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,22)},set:function(t){t?this.Ff=$e(this.Ff,22):this.Ff=Je(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,23)},set:function(t){t?this.Ff=$e(this.Ff,23):this.Ff=Je(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,27)},set:function(t){t?this.Ff=$e(this.Ff,27):this.Ff=Je(this.Ff,27)}}),this.hasAppearanceStream=!1};Pn(Ai,er);var _i=function(){Ai.call(this),this.fontName="helvetica",this.combo=!1};Pn(_i,Ai);var Li=function(){_i.call(this),this.combo=!0};Pn(Li,_i);var Fa=function(){Li.call(this),this.edit=!0};Pn(Fa,Li);var rn=function(){er.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,15)},set:function(t){t?this.Ff=$e(this.Ff,15):this.Ff=Je(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,16)},set:function(t){t?this.Ff=$e(this.Ff,16):this.Ff=Je(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,17)},set:function(t){t?this.Ff=$e(this.Ff,17):this.Ff=Je(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,26)},set:function(t){t?this.Ff=$e(this.Ff,26):this.Ff=Je(this.Ff,26)}});var n,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,o=[];for(r in o.push("<<"),e)o.push("/"+r+" ("+Ci(t(e[r]))+")");return o.push(">>"),o.join(`
62
+ `)}},set:function(t){Se(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){var r=t==null?"":t.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),n="/"+Pi(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+Pi(t)}})};Pn(rn,er);var Oa=function(){rn.call(this),this.pushButton=!0};Pn(Oa,rn);var Ni=function(){rn.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e!==void 0?e:[]}})};Pn(Ni,rn);var jo=function(){var n,e;er.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(o){n=o}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(o){e=o}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var o=function(l){return l};this.scope&&(o=this.scope.internal.getEncryptor(this.objId));var a,h=[];for(a in h.push("<<"),r)h.push("/"+a+" ("+Ci(o(r[a]))+")");return h.push(">>"),h.join(`
63
+ `)},set:function(o){Se(o)==="object"&&(r=o)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(o){typeof o=="string"&&(r.CA=o)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(o){var a=o==null?"":o.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),t="/"+Pi(a)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(o){var a=o==null?"":o.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),t="/"+Pi(a)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ct.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Pn(jo,er),Ni.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=n.createAppearanceStream(t.optionName),t.caption=n.getCA()}},Ni.prototype.createOption=function(n){var e=new jo;return e.Parent=this,e.optionName=n,this.Kids.push(e),J1.call(this.scope,e),e};var ja=function(){rn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ct.CheckBox.createAppearanceStream()};Pn(ja,rn);var Qr=function(){er.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,13)},set:function(e){e?this.Ff=$e(this.Ff,13):this.Ff=Je(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,21)},set:function(e){e?this.Ff=$e(this.Ff,21):this.Ff=Je(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,23)},set:function(e){e?this.Ff=$e(this.Ff,23):this.Ff=Je(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,24)},set:function(e){e?this.Ff=$e(this.Ff,24):this.Ff=Je(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,25)},set:function(e){e?this.Ff=$e(this.Ff,25):this.Ff=Je(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,26)},set:function(e){e?this.Ff=$e(this.Ff,26):this.Ff=Je(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){Number.isInteger(e)&&(n=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Pn(Qr,er);var Ta=function(){Qr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,14)},set:function(n){n?this.Ff=$e(this.Ff,14):this.Ff=Je(this.Ff,14)}}),this.password=!0};Pn(Ta,Qr);var Ct={CheckBox:{createAppearanceStream:function(){return{N:{On:Ct.CheckBox.YesNormal},D:{On:Ct.CheckBox.YesPushDown,Off:Ct.CheckBox.OffPushDown}}},YesPushDown:function(n){var e=pr(n);e.scope=n.scope;var t=[],r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,o=n.scope.__private__.encodeColorString(n.color),a=Js(n,n.caption);return t.push("0.749023 g"),t.push("0 0 "+Zt(Ct.internal.getWidth(n))+" "+Zt(Ct.internal.getHeight(n))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+Zt(a.fontSize)+" Tf "+o),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
64
+ `),e},YesNormal:function(n){var e=pr(n);e.scope=n.scope;var t=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color),o=[],a=Ct.internal.getHeight(n),h=Ct.internal.getWidth(n),l=Js(n,n.caption);return o.push("1 g"),o.push("0 0 "+Zt(h)+" "+Zt(a)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+Zt(h-1)+" "+Zt(a-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+t+" "+Zt(l.fontSize)+" Tf "+r),o.push(l.text),o.push("ET"),o.push("Q"),e.stream=o.join(`
65
+ `),e},OffPushDown:function(n){var e=pr(n);e.scope=n.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Zt(Ct.internal.getWidth(n))+" "+Zt(Ct.internal.getHeight(n))+" re"),t.push("f"),e.stream=t.join(`
66
+ `),e}},RadioButton:{Circle:{createAppearanceStream:function(n){var e={D:{Off:Ct.RadioButton.Circle.OffPushDown},N:{}};return e.N[n]=Ct.RadioButton.Circle.YesNormal,e.D[n]=Ct.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(n){var e=pr(n);e.scope=n.scope;var t=[],r=Ct.internal.getWidth(n)<=Ct.internal.getHeight(n)?Ct.internal.getWidth(n)/4:Ct.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var o=Ct.internal.Bezier_C,a=Number((r*o).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Xr(Ct.internal.getWidth(n)/2)+" "+Xr(Ct.internal.getHeight(n)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),t.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),t.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),t.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
67
+ `),e},YesPushDown:function(n){var e=pr(n);e.scope=n.scope;var t=[],r=Ct.internal.getWidth(n)<=Ct.internal.getHeight(n)?Ct.internal.getWidth(n)/4:Ct.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),a=Number((o*Ct.internal.Bezier_C).toFixed(5)),h=Number((r*Ct.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Xr(Ct.internal.getWidth(n)/2)+" "+Xr(Ct.internal.getHeight(n)/2)+" cm"),t.push(o+" 0 m"),t.push(o+" "+a+" "+a+" "+o+" 0 "+o+" c"),t.push("-"+a+" "+o+" -"+o+" "+a+" -"+o+" 0 c"),t.push("-"+o+" -"+a+" -"+a+" -"+o+" 0 -"+o+" c"),t.push(a+" -"+o+" "+o+" -"+a+" "+o+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Xr(Ct.internal.getWidth(n)/2)+" "+Xr(Ct.internal.getHeight(n)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+h+" "+h+" "+r+" 0 "+r+" c"),t.push("-"+h+" "+r+" -"+r+" "+h+" -"+r+" 0 c"),t.push("-"+r+" -"+h+" -"+h+" -"+r+" 0 -"+r+" c"),t.push(h+" -"+r+" "+r+" -"+h+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
68
+ `),e},OffPushDown:function(n){var e=pr(n);e.scope=n.scope;var t=[],r=Ct.internal.getWidth(n)<=Ct.internal.getHeight(n)?Ct.internal.getWidth(n)/4:Ct.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),a=Number((o*Ct.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Xr(Ct.internal.getWidth(n)/2)+" "+Xr(Ct.internal.getHeight(n)/2)+" cm"),t.push(o+" 0 m"),t.push(o+" "+a+" "+a+" "+o+" 0 "+o+" c"),t.push("-"+a+" "+o+" -"+o+" "+a+" -"+o+" 0 c"),t.push("-"+o+" -"+a+" -"+a+" -"+o+" 0 -"+o+" c"),t.push(a+" -"+o+" "+o+" -"+a+" "+o+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
69
+ `),e}},Cross:{createAppearanceStream:function(n){var e={D:{Off:Ct.RadioButton.Cross.OffPushDown},N:{}};return e.N[n]=Ct.RadioButton.Cross.YesNormal,e.D[n]=Ct.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(n){var e=pr(n);e.scope=n.scope;var t=[],r=Ct.internal.calculateCross(n);return t.push("q"),t.push("1 1 "+Zt(Ct.internal.getWidth(n)-2)+" "+Zt(Ct.internal.getHeight(n)-2)+" re"),t.push("W"),t.push("n"),t.push(Zt(r.x1.x)+" "+Zt(r.x1.y)+" m"),t.push(Zt(r.x2.x)+" "+Zt(r.x2.y)+" l"),t.push(Zt(r.x4.x)+" "+Zt(r.x4.y)+" m"),t.push(Zt(r.x3.x)+" "+Zt(r.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
70
+ `),e},YesPushDown:function(n){var e=pr(n);e.scope=n.scope;var t=Ct.internal.calculateCross(n),r=[];return r.push("0.749023 g"),r.push("0 0 "+Zt(Ct.internal.getWidth(n))+" "+Zt(Ct.internal.getHeight(n))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Zt(Ct.internal.getWidth(n)-2)+" "+Zt(Ct.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(Zt(t.x1.x)+" "+Zt(t.x1.y)+" m"),r.push(Zt(t.x2.x)+" "+Zt(t.x2.y)+" l"),r.push(Zt(t.x4.x)+" "+Zt(t.x4.y)+" m"),r.push(Zt(t.x3.x)+" "+Zt(t.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
71
+ `),e},OffPushDown:function(n){var e=pr(n);e.scope=n.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Zt(Ct.internal.getWidth(n))+" "+Zt(Ct.internal.getHeight(n))+" re"),t.push("f"),e.stream=t.join(`
72
+ `),e}}},createDefaultAppearanceStream:function(n){var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,t=n.scope.__private__.encodeColorString(n.color);return"/"+e+" "+n.fontSize+" Tf "+t}};Ct.internal={Bezier_C:.551915024494,calculateCross:function(n){var e=Ct.internal.getWidth(n),t=Ct.internal.getHeight(n),r=Math.min(e,t);return{x1:{x:(e-r)/2,y:(t-r)/2+r},x2:{x:(e-r)/2+r,y:(t-r)/2},x3:{x:(e-r)/2,y:(t-r)/2},x4:{x:(e-r)/2+r,y:(t-r)/2+r}}}},Ct.internal.getWidth=function(n){var e=0;return Se(n)==="object"&&(e=ju(n.Rect[2])),e},Ct.internal.getHeight=function(n){var e=0;return Se(n)==="object"&&(e=ju(n.Rect[3])),e};var J1=ze.addField=function(n){if($1(this,n),!(n instanceof er))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=n).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};ze.AcroFormChoiceField=Ai,ze.AcroFormListBox=_i,ze.AcroFormComboBox=Li,ze.AcroFormEditBox=Fa,ze.AcroFormButton=rn,ze.AcroFormPushButton=Oa,ze.AcroFormRadioButton=Ni,ze.AcroFormCheckBox=ja,ze.AcroFormTextField=Qr,ze.AcroFormPasswordField=Ta,ze.AcroFormAppearance=Ct,ze.AcroForm={ChoiceField:Ai,ListBox:_i,ComboBox:Li,EditBox:Fa,Button:rn,PushButton:Oa,RadioButton:Ni,CheckBox:ja,TextField:Qr,PasswordField:Ta,Appearance:Ct},Bt.AcroForm={ChoiceField:Ai,ListBox:_i,ComboBox:Li,EditBox:Fa,Button:rn,PushButton:Oa,RadioButton:Ni,CheckBox:ja,TextField:Qr,PasswordField:Ta,Appearance:Ct};var X1=Bt.AcroForm;function Tc(n){return n.reduce(function(e,t,r){return e[t]=r,e},{})}(function(n){var e="addImage_";n.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=n.__addimage__.getImageFileTypeByImageData=function(A,N){var _,F,Y,$,it,et=t;if((N=N||t)==="RGBA"||A.data!==void 0&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(bt(A))for(it in r)for(Y=r[it],_=0;_<Y.length;_+=1){for($=!0,F=0;F<Y[_].length;F+=1)if(Y[_][F]!==void 0&&Y[_][F]!==A[F]){$=!1;break}if($===!0){et=it;break}}else for(it in r)for(Y=r[it],_=0;_<Y.length;_+=1){for($=!0,F=0;F<Y[_].length;F+=1)if(Y[_][F]!==void 0&&Y[_][F]!==A.charCodeAt(F)){$=!1;break}if($===!0){et=it;break}}return et===t&&N!==t&&(et=N),et},a=function A(N){for(var _=this.internal.write,F=this.internal.putStream,Y=(0,this.internal.getFilters)();Y.indexOf("FlateEncode")!==-1;)Y.splice(Y.indexOf("FlateEncode"),1);N.objectId=this.internal.newObject();var $=[];if($.push({key:"Type",value:"/XObject"}),$.push({key:"Subtype",value:"/Image"}),$.push({key:"Width",value:N.width}),$.push({key:"Height",value:N.height}),N.colorSpace===C.INDEXED?$.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(N.palette.length/3-1)+" "+("sMask"in N&&N.sMask!==void 0?N.objectId+2:N.objectId+1)+" 0 R]"}):($.push({key:"ColorSpace",value:"/"+N.colorSpace}),N.colorSpace===C.DEVICE_CMYK&&$.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),$.push({key:"BitsPerComponent",value:N.bitsPerComponent}),"decodeParameters"in N&&N.decodeParameters!==void 0&&$.push({key:"DecodeParms",value:"<<"+N.decodeParameters+">>"}),"transparency"in N&&Array.isArray(N.transparency)&&N.transparency.length>0){for(var it="",et=0,ct=N.transparency.length;et<ct;et++)it+=N.transparency[et]+" "+N.transparency[et]+" ";$.push({key:"Mask",value:"["+it+"]"})}N.sMask!==void 0&&$.push({key:"SMask",value:N.objectId+1+" 0 R"});var dt=N.filter!==void 0?["/"+N.filter]:void 0;if(F({data:N.data,additionalKeyValues:$,alreadyAppliedFilters:dt,objectId:N.objectId}),_("endobj"),"sMask"in N&&N.sMask!==void 0){var ht,w=(ht=N.sMaskBitsPerComponent)!==null&&ht!==void 0?ht:N.bitsPerComponent,k={width:N.width,height:N.height,colorSpace:"DeviceGray",bitsPerComponent:w,data:N.sMask};"filter"in N&&(k.decodeParameters="/Predictor ".concat(N.predictor," /Colors 1 /BitsPerComponent ").concat(w," /Columns ").concat(N.width),k.filter=N.filter),A.call(this,k)}if(N.colorSpace===C.INDEXED){var q=this.internal.newObject();F({data:D(new Uint8Array(N.palette)),objectId:q}),_("endobj")}},h=function(){var A=this.internal.collections[e+"images"];for(var N in A)a.call(this,A[N])},l=function(){var A,N=this.internal.collections[e+"images"],_=this.internal.write;for(var F in N)_("/I"+(A=N[F]).index,A.objectId,"0","R")},c=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var A=this.internal.collections[e+"images"];return c.call(this),A},g=function(){return Object.keys(this.internal.collections[e+"images"]).length},L=function(A){return typeof n["process"+A.toUpperCase()]=="function"},P=function(A){return Se(A)==="object"&&A.nodeType===1},p=function(A,N){if(A.nodeName==="IMG"&&A.hasAttribute("src")){var _=""+A.getAttribute("src");if(_.indexOf("data:image/")===0)return Io(unescape(_).split("base64,").pop());var F=n.loadFile(_,!0);if(F!==void 0)return F}if(A.nodeName==="CANVAS"){if(A.width===0||A.height===0)throw new Error("Given canvas must have data. Canvas width: "+A.width+", height: "+A.height);var Y;switch(N){case"PNG":Y="image/png";break;case"WEBP":Y="image/webp";break;default:Y="image/jpeg"}return Io(A.toDataURL(Y,1).split("base64,").pop())}},R=function(A){var N=this.internal.collections[e+"images"];if(N){for(var _ in N)if(A===N[_].alias)return N[_]}},j=function(A,N,_){return A||N||(A=-96,N=-96),A<0&&(A=-1*_.width*72/A/this.internal.scaleFactor),N<0&&(N=-1*_.height*72/N/this.internal.scaleFactor),A===0&&(A=N*_.width/_.height),N===0&&(N=A*_.height/_.width),[A,N]},U=function(A,N,_,F,Y,$){var it=j.call(this,_,F,Y),et=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,dt=d.call(this);if(_=it[0],F=it[1],dt[Y.index]=Y,$){$*=Math.PI/180;var ht=Math.cos($),w=Math.sin($),k=function(W){return W.toFixed(4)},q=[k(ht),k(w),k(-1*w),k(ht),0,0,"cm"]}this.internal.write("q"),$?(this.internal.write([1,"0","0",1,et(A),ct(N+F),"cm"].join(" ")),this.internal.write(q.join(" ")),this.internal.write([et(_),"0","0",et(F),"0","0","cm"].join(" "))):this.internal.write([et(_),"0","0",et(F),et(A),ct(N+F),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Y.index+" Do"),this.internal.write("Q")},C=n.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"};n.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 J=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},X=n.__addimage__.sHashCode=function(A){var N,_,F=0;if(typeof A=="string")for(_=A.length,N=0;N<_;N++)F=(F<<5)-F+A.charCodeAt(N),F|=0;else if(bt(A))for(_=A.byteLength/2,N=0;N<_;N++)F=(F<<5)-F+A[N],F|=0;return F},z=n.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var N=!0;return A.length===0&&(N=!1),A.length%4!=0&&(N=!1),/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))===!1&&(N=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))===!1&&(N=!1),N},ut=n.__addimage__.extractImageFromDataUrl=function(A){if(A==null||!(A=A.trim()).startsWith("data:"))return null;var N=A.indexOf(",");return N<0?null:A.substring(0,N).trim().endsWith("base64")?A.substring(N+1):null};n.__addimage__.isArrayBuffer=function(A){return A instanceof ArrayBuffer};var bt=n.__addimage__.isArrayBufferView=function(A){return A instanceof Int8Array||A instanceof Uint8Array||A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array},Q=n.__addimage__.binaryStringToUint8Array=function(A){for(var N=A.length,_=new Uint8Array(N),F=0;F<N;F++)_[F]=A.charCodeAt(F);return _},D=n.__addimage__.arrayBufferToBinaryString=function(A){for(var N="",_=bt(A)?A:new Uint8Array(A),F=0;F<_.length;F+=8192)N+=String.fromCharCode.apply(null,_.subarray(F,F+8192));return N};n.addImage=function(){var A,N,_,F,Y,$,it,et,ct;if(typeof arguments[1]=="number"?(N=t,_=arguments[1],F=arguments[2],Y=arguments[3],$=arguments[4],it=arguments[5],et=arguments[6],ct=arguments[7]):(N=arguments[1],_=arguments[2],F=arguments[3],Y=arguments[4],$=arguments[5],it=arguments[6],et=arguments[7],ct=arguments[8]),Se(A=arguments[0])==="object"&&!P(A)&&"imageData"in A){var dt=A;A=dt.imageData,N=dt.format||N||t,_=dt.x||_||0,F=dt.y||F||0,Y=dt.w||dt.width||Y,$=dt.h||dt.height||$,it=dt.alias||it,et=dt.compression||et,ct=dt.rotation||dt.angle||ct}var ht=this.internal.getFilters();if(et===void 0&&ht.indexOf("FlateEncode")!==-1&&(et="SLOW"),isNaN(_)||isNaN(F))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var w=T.call(this,A,N,it,et);return U.call(this,_,F,Y,$,w,ct),this};var T=function(A,N,_,F){var Y,$,it;if(typeof A=="string"&&o(A)===t){A=unescape(A);var et=V(A,!1);(et!==""||(et=n.loadFile(A,!0))!==void 0)&&(A=et)}if(P(A)&&(A=p(A,N)),N=o(A,N),!L(N))throw new Error("addImage does not support files of type '"+N+"', please ensure that a plugin for '"+N+"' support is added.");if(((it=_)==null||it.length===0)&&(_=(function(ct){return typeof ct=="string"||bt(ct)?X(ct):bt(ct.data)?X(ct.data):null})(A)),(Y=R.call(this,_))||(A instanceof Uint8Array||N==="RGBA"||($=A,A=Q(A)),Y=this["process"+N.toUpperCase()](A,g.call(this),_,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in n.image_compression?ct:J.NONE})(F),$)),!Y)throw new Error("An unknown error occurred whilst processing the image.");return Y},V=n.__addimage__.convertBase64ToBinaryString=function(A,N){N=typeof N!="boolean"||N;var _,F="";if(typeof A=="string"){var Y;_=(Y=ut(A))!==null&&Y!==void 0?Y:A;try{F=Io(_)}catch($){if(N)throw z(_)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+$.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return F};n.getImageProperties=function(A){var N,_,F="";if(P(A)&&(A=p(A)),typeof A=="string"&&o(A)===t&&((F=V(A,!1))===""&&(F=n.loadFile(A)||""),A=F),_=o(A),!L(_))throw new Error("addImage does not support files of type '"+_+"', please ensure that a plugin for '"+_+"' support is added.");if(A instanceof Uint8Array||(A=Q(A)),!(N=this["process"+_.toUpperCase()](A)))throw new Error("An unknown error occurred whilst processing the image");return N.fileType=_,N}})(Bt.API),(function(n){var e=function(t){if(t!==void 0&&t!="")return!0};Bt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(t){for(var r,o,a,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(t.objId),d=t.pageContext.annotations,g=!1,L=0;L<d.length&&!g;L++)switch((r=d[L]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var P=0;P<d.length;P++){r=d[P];var p=this.internal.pdfEscape,R=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var j=this.internal.newAdditionalObject(),U=this.internal.newAdditionalObject(),C=this.internal.getEncryptor(j.objId),J=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(o="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(C(r.contents))+")",a+=" /Popup "+U.objId+" 0 R",a+=" /P "+c.objId+" 0 R",a+=" /T ("+p(C(J))+") >>",j.content=a;var X=j.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(o="/Rect ["+h(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+X,r.open&&(a+=" /Open true"),a+=" >>",U.content=a,this.internal.write(j.objId,"0 R",U.objId,"0 R");break;case"freetext":o="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var z="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");a="<</Type /Annot /Subtype /FreeText "+o+"/Contents ("+p(R(r.contents))+")",a+=" /DS("+p(R(z))+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var ut=this.annotations._nameMap[r.options.name];r.options.pageNumber=ut.page,r.options.top=ut.y}else r.options.top||(r.options.top=0);if(o="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /A <</S /URI /URI ("+p(R(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+o+"/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":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var bt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+bt+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),n.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)}},n.link=function(t,r,o,a,h){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(t),y:d(r),w:c(t+o),h:d(r+a)},options:h,type:"link"})},n.textWithLink=function(t,r,o,a){var h,l,c=this.getTextWidth(t),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){l=a.maxWidth;var g=this.splitTextToSize(t,l).length;h=Math.ceil(d*g)}else l=c,h=d;return this.text(t,r,o,a),o+=.2*d,a.align==="center"&&(r-=c/2),a.align==="right"&&(r-=c),this.link(r,o-d,l,h,a),c},n.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}})(Bt.API),(function(n){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];n.__arabicParser__={};var a=n.__arabicParser__.isInArabicSubstitutionA=function(j){return e[j.charCodeAt(0)]!==void 0},h=n.__arabicParser__.isArabicLetter=function(j){return typeof j=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(j)},l=n.__arabicParser__.isArabicEndLetter=function(j){return h(j)&&a(j)&&e[j.charCodeAt(0)].length<=2},c=n.__arabicParser__.isArabicAlfLetter=function(j){return h(j)&&o.indexOf(j.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(j){return h(j)&&a(j)&&e[j.charCodeAt(0)].length>=1};var d=n.__arabicParser__.arabicLetterHasFinalForm=function(j){return h(j)&&a(j)&&e[j.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(j){return h(j)&&a(j)&&e[j.charCodeAt(0)].length>=3};var g=n.__arabicParser__.arabicLetterHasMedialForm=function(j){return h(j)&&a(j)&&e[j.charCodeAt(0)].length==4},L=n.__arabicParser__.resolveLigatures=function(j){var U=0,C=t,J="",X=0;for(U=0;U<j.length;U+=1)C[j.charCodeAt(U)]!==void 0?(X++,typeof(C=C[j.charCodeAt(U)])=="number"&&(J+=String.fromCharCode(C),C=t,X=0),U===j.length-1&&(C=t,J+=j.charAt(U-(X-1)),U-=X-1,X=0)):(C=t,J+=j.charAt(U-X),U-=X,X=0);return J};n.__arabicParser__.isArabicDiacritic=function(j){return j!==void 0&&r[j.charCodeAt(0)]!==void 0};var P=n.__arabicParser__.getCorrectForm=function(j,U,C){return h(j)?a(j)===!1?-1:!d(j)||!h(U)&&!h(C)||!h(C)&&l(U)||l(j)&&!h(U)||l(j)&&c(U)||l(j)&&l(U)?0:g(j)&&h(U)&&!l(U)&&h(C)&&d(C)?3:l(j)||!h(C)?1:2:-1},p=function(j){var U=0,C=0,J=0,X="",z="",ut="",bt=(j=j||"").split("\\s+"),Q=[];for(U=0;U<bt.length;U+=1){for(Q.push(""),C=0;C<bt[U].length;C+=1)X=bt[U][C],z=bt[U][C-1],ut=bt[U][C+1],h(X)?(J=P(X,z,ut),Q[U]+=J!==-1?String.fromCharCode(e[X.charCodeAt(0)][J]):X):Q[U]+=X;Q[U]=L(Q[U])}return Q.join(" ")},R=n.__arabicParser__.processArabic=n.processArabic=function(){var j,U=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,C=[];if(Array.isArray(U)){var J=0;for(C=[],J=0;J<U.length;J+=1)Array.isArray(U[J])?C.push([p(U[J][0]),U[J][1],U[J][2]]):C.push([p(U[J])]);j=C}else j=p(U);return typeof arguments[0]=="string"?j:(arguments[0].text=j,arguments[0])};n.events.push(["preProcessText",R])})(Bt.API),Bt.API.autoPrint=function(n){var e;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},(function(n){var e=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 o=300;Object.defineProperty(this,"height",{get:function(){return o},set:function(l){o=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=o+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(l){a=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,r){var o;if((t=t||"2d")!=="2d")return null;for(o in r)this.pdf.context2d.hasOwnProperty(o)&&(this.pdf.context2d[o]=r[o]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(Bt.API),(function(n){var e={left:0,top:0,bottom:0,right:0},t=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(j){c=j}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(j){d=j}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(j){g=j}});var L=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return L},set:function(j){L=j}});var P=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return P},set:function(j){P=j}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(j){p=j}});var R=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return R},set:function(j){R=j}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},n.getTextDimensions=function(c,d){r.call(this);var g=(d=d||{}).fontSize||this.getFontSize(),L=d.font||this.getFont(),P=d.scaleFactor||this.internal.scaleFactor,p=0,R=0,j=0,U=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=d.maxWidth;C>0?typeof c=="string"?c=this.splitTextToSize(c,C):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(X,z){return X.concat(U.splitTextToSize(z,C))},[])):c=Array.isArray(c)?c:[c];for(var J=0;J<c.length;J++)p<(j=this.getStringUnitWidth(c[J],{font:L})*g)&&(p=j);return p!==0&&(R=c.length),{w:p/=P,h:Math.max((R*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/P,0)}},n.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new a(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=n.cell=function(){var c;c=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var d=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,L=this.internal.__cell__.margins||e,P=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===c.lineNumber?(c.x=(d.x||0)+(d.width||0),c.y=d.y||0):d.y+d.height+c.height+L.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=L.top,p&&P&&(this.printHeaderRow(c.lineNumber,!0),c.y+=P[0].height)):c.y=d.y+d.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};n.table=function(c,d,g,L,P){if(r.call(this),!g)throw new Error("No data for PDF table.");var p,R,j,U,C=[],J=[],X=[],z={},ut={},bt=[],Q=[],D=(P=P||{}).autoSize||!1,T=P.printHeaders!==!1,V=P.css&&P.css["font-size"]!==void 0?16*P.css["font-size"]:P.fontSize||12,A=P.margins||Object.assign({width:this.getPageWidth()},e),N=typeof P.padding=="number"?P.padding:3,_=P.headerBackgroundColor||"#c8c8c8",F=P.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=T,this.internal.__cell__.margins=A,this.internal.__cell__.table_font_size=V,this.internal.__cell__.padding=N,this.internal.__cell__.headerBackgroundColor=_,this.internal.__cell__.headerTextColor=F,this.setFontSize(V),L==null)J=C=Object.keys(g[0]),X=C.map(function(){return"left"});else if(Array.isArray(L)&&Se(L[0])==="object")for(C=L.map(function(dt){return dt.name}),J=L.map(function(dt){return dt.prompt||dt.name||""}),X=L.map(function(dt){return dt.align||"left"}),p=0;p<L.length;p+=1)ut[L[p].name]=.7499990551181103*L[p].width;else Array.isArray(L)&&typeof L[0]=="string"&&(J=C=L,X=C.map(function(){return"left"}));if(D||Array.isArray(L)&&typeof L[0]=="string")for(p=0;p<C.length;p+=1){for(z[U=C[p]]=g.map(function(dt){return dt[U]}),this.setFont(void 0,"bold"),bt.push(this.getTextDimensions(J[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),R=z[U],this.setFont(void 0,"normal"),j=0;j<R.length;j+=1)bt.push(this.getTextDimensions(R[j],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ut[U]=Math.max.apply(null,bt)+N+N,bt=[]}if(T){var Y={};for(p=0;p<C.length;p+=1)Y[C[p]]={},Y[C[p]].text=J[p],Y[C[p]].align=X[p];var $=l.call(this,Y,ut);Q=C.map(function(dt){return new a(c,d,ut[dt],$,Y[dt].text,void 0,Y[dt].align)}),this.setTableHeaderRow(Q),this.printHeaderRow(1,!1)}var it=L.reduce(function(dt,ht){return dt[ht.name]=ht.align,dt},{});for(p=0;p<g.length;p+=1){"rowStart"in P&&P.rowStart instanceof Function&&P.rowStart({row:p,data:g[p]},this);var et=l.call(this,g[p],ut);for(j=0;j<C.length;j+=1){var ct=g[p][C[j]];"cellStart"in P&&P.cellStart instanceof Function&&P.cellStart({row:p,col:j,data:ct},this),h.call(this,new a(c,d,ut[C[j]],et,ct,p+2,it[C[j]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=d,this};var l=function(c,d){var g=this.internal.__cell__.padding,L=this.internal.__cell__.table_font_size,P=this.internal.scaleFactor;return Object.keys(c).map(function(p){var R=c[p];return this.splitTextToSize(R.hasOwnProperty("text")?R.text:R,d[p]-g-g)},this).map(function(p){return this.getLineHeightFactor()*p.length*L/P+g+g},this).reduce(function(p,R){return Math.max(p,R)},0)};n.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},n.printHeaderRow=function(c,d){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 L=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(L[0],L[1],L[2],L[3],void 0,-1)}this.setFont(void 0,"bold");for(var P=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){g=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(g.y=this.internal.__cell__.margins.top||0,P.push(g)),g.lineNumber=c;var R=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,g),this.setTextColor(R)}P.length>0&&this.setTableHeaderRow(P),this.setFont(void 0,"normal"),t=!1}})(Bt.API);var Mc={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Bc=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Xs=Tc(Bc),Rc=[100,200,300,400,500,600,700,800,900],K1=Tc(Rc);function Ms(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),t=(function(a){return Mc[a=a||"normal"]?a:"normal"})(n.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(n.weight),o=(function(a){return typeof Xs[a=a||"normal"]=="number"?a:"normal"})(n.stretch);return{family:e,style:t,weight:r,stretch:o,src:n.src||[],ref:n.ref||{name:e,style:[o,t,r].join(" ")}}}function Tu(n,e,t,r){var o;for(o=t;o>=0&&o<e.length;o+=r)if(n[e[o]])return n[e[o]];for(o=t;o>=0&&o<e.length;o-=r)if(n[e[o]])return n[e[o]]}var Z1={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Bu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Ru(n){return n.trimLeft()}function Q1(n,e){for(var t=0;t<n.length;){if(n.charAt(t)===e)return[n.substring(0,t),n.substring(t+1)];t+=1}return null}function t2(n){var e=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],n.substring(e[0].length)]}var ea,Po,Du,qu,Uu,Bs=["times"];function zu(n,e,t,r,o){var a=4,h=Wu;switch(o){case Bt.API.image_compression.FAST:a=1,h=Hu;break;case Bt.API.image_compression.MEDIUM:a=6,h=Vu;break;case Bt.API.image_compression.SLOW:a=9,h=Gu}n=(function(c,d,g,L){for(var P,p=c.length/d,R=new Uint8Array(c.length+p),j=[e2,Hu,Wu,Vu,Gu],U=0;U<p;U+=1){var C=U*d,J=c.subarray(C,C+d);if(L)R.set(L(J,g,P),C+U);else{for(var X=j.length,z=[],ut=0;ut<X;ut+=1)z[ut]=j[ut](J,g,P);var bt=r2(z.concat());R.set(z[bt],C+U)}P=J}return R})(n,e,Math.ceil(t*r/8),h);var l=Hs(n,{level:a});return Bt.API.__addimage__.arrayBufferToBinaryString(l)}function e2(n){var e=Array.apply([],n);return e.unshift(0),e}function Hu(n,e){var t=n.length,r=[];r[0]=1;for(var o=0;o<t;o+=1){var a=n[o-e]||0;r[o+1]=n[o]-a+256&255}return r}function Wu(n,e,t){var r=n.length,o=[];o[0]=2;for(var a=0;a<r;a+=1){var h=t&&t[a]||0;o[a+1]=n[a]-h+256&255}return o}function Vu(n,e,t){var r=n.length,o=[];o[0]=3;for(var a=0;a<r;a+=1){var h=n[a-e]||0,l=t&&t[a]||0;o[a+1]=n[a]+256-(h+l>>>1)&255}return o}function Gu(n,e,t){var r=n.length,o=[];o[0]=4;for(var a=0;a<r;a+=1){var h=n2(n[a-e]||0,t&&t[a]||0,t&&t[a-e]||0);o[a+1]=n[a]-h+256&255}return o}function n2(n,e,t){if(n===e&&e===t)return n;var r=Math.abs(e-t),o=Math.abs(n-t),a=Math.abs(n+e-t-t);return r<=o&&r<=a?n:o<=a?e:t}function r2(n){var e=n.map(function(t){return t.reduce(function(r,o){return r+Math.abs(o)},0)});return e.indexOf(Math.min.apply(null,e))}function Rs(n,e,t){var r=e*t,o=Math.floor(r/8),a=16-(r-8*o+t),h=(1<<t)-1;return Dc(n,o)>>a&h}function Yu(n,e,t,r){var o=t*r,a=Math.floor(o/8),h=16-(o-8*a+r),l=(1<<r)-1,c=(e&l)<<h;(function(d,g,L){if(g+1<d.byteLength)d.setUint16(g,L,!1);else{var P=L>>8&255;d.setUint8(g,P)}})(n,a,Dc(n,a)&~(l<<h)&65535|c)}function Dc(n,e){return e+1<n.byteLength?n.getUint16(e,!1):n.getUint8(e)<<8}function i2(n){var e=0;if(n[e++]!==71||n[e++]!==73||n[e++]!==70||n[e++]!==56||(n[e++]+1&253)!=56||n[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=n[e++]|n[e++]<<8,r=n[e++]|n[e++]<<8,o=n[e++],a=o>>7,h=1<<1+(7&o);n[e++],n[e++];var l=null,c=null;a&&(l=e,c=h,e+=3*h);var d=!0,g=[],L=0,P=null,p=0,R=null;for(this.width=t,this.height=r;d&&e<n.length;)switch(n[e++]){case 33:switch(n[e++]){case 255:if(n[e]!==11||n[e+1]==78&&n[e+2]==69&&n[e+3]==84&&n[e+4]==83&&n[e+5]==67&&n[e+6]==65&&n[e+7]==80&&n[e+8]==69&&n[e+9]==50&&n[e+10]==46&&n[e+11]==48&&n[e+12]==3&&n[e+13]==1&&n[e+16]==0)e+=14,R=n[e++]|n[e++]<<8,e++;else for(e+=12;;){if(!((A=n[e++])>=0))throw Error("Invalid block size");if(A===0)break;e+=A}break;case 249:if(n[e++]!==4||n[e+4]!==0)throw new Error("Invalid graphics extension block.");var j=n[e++];L=n[e++]|n[e++]<<8,P=n[e++],1&j||(P=null),p=j>>2&7,e++;break;case 254:for(;;){if(!((A=n[e++])>=0))throw Error("Invalid block size");if(A===0)break;e+=A}break;default:throw new Error("Unknown graphic control label: 0x"+n[e-1].toString(16))}break;case 44:var U=n[e++]|n[e++]<<8,C=n[e++]|n[e++]<<8,J=n[e++]|n[e++]<<8,X=n[e++]|n[e++]<<8,z=n[e++],ut=z>>6&1,bt=1<<1+(7&z),Q=l,D=c,T=!1;z>>7&&(T=!0,Q=e,D=bt,e+=3*bt);var V=e;for(e++;;){var A;if(!((A=n[e++])>=0))throw Error("Invalid block size");if(A===0)break;e+=A}g.push({x:U,y:C,width:J,height:X,has_local_palette:T,palette_offset:Q,palette_size:D,data_offset:V,data_length:e-V,transparent_index:P,interlaced:!!ut,delay:L,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+n[e-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return R},this.frameInfo=function(N){if(N<0||N>=g.length)throw new Error("Frame index out of range.");return g[N]},this.decodeAndBlitFrameBGRA=function(N,_){var F=this.frameInfo(N),Y=F.width*F.height;if(Y>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var $=new Uint8Array(Y);$u(n,F.data_offset,$,Y);var it=F.palette_offset,et=F.transparent_index;et===null&&(et=256);var ct=F.width,dt=t-ct,ht=ct,w=4*(F.y*t+F.x),k=4*((F.y+F.height)*t+F.x),q=w,W=4*dt;F.interlaced===!0&&(W+=4*t*7);for(var K=8,rt=0,lt=$.length;rt<lt;++rt){var st=$[rt];if(ht===0&&(ht=ct,(q+=W)>=k&&(W=4*dt+4*t*(K-1),q=w+(ct+dt)*(K<<1),K>>=1)),st===et)q+=4;else{var ft=n[it+3*st],xt=n[it+3*st+1],Nt=n[it+3*st+2];_[q++]=Nt,_[q++]=xt,_[q++]=ft,_[q++]=255}--ht}},this.decodeAndBlitFrameRGBA=function(N,_){var F=this.frameInfo(N),Y=F.width*F.height;if(Y>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var $=new Uint8Array(Y);$u(n,F.data_offset,$,Y);var it=F.palette_offset,et=F.transparent_index;et===null&&(et=256);var ct=F.width,dt=t-ct,ht=ct,w=4*(F.y*t+F.x),k=4*((F.y+F.height)*t+F.x),q=w,W=4*dt;F.interlaced===!0&&(W+=4*t*7);for(var K=8,rt=0,lt=$.length;rt<lt;++rt){var st=$[rt];if(ht===0&&(ht=ct,(q+=W)>=k&&(W=4*dt+4*t*(K-1),q=w+(ct+dt)*(K<<1),K>>=1)),st===et)q+=4;else{var ft=n[it+3*st],xt=n[it+3*st+1],Nt=n[it+3*st+2];_[q++]=ft,_[q++]=xt,_[q++]=Nt,_[q++]=255}--ht}}}function $u(n,e,t,r){for(var o=n[e++],a=1<<o,h=a+1,l=h+1,c=o+1,d=(1<<c)-1,g=0,L=0,P=0,p=n[e++],R=new Int32Array(4096),j=null;;){for(;g<16&&p!==0;)L|=n[e++]<<g,g+=8,p===1?p=n[e++]:--p;if(g<c)break;var U=L&d;if(L>>=c,g-=c,U!==a){if(U===h)break;for(var C=U<l?U:j,J=0,X=C;X>a;)X=R[X]>>8,++J;var z=X;if(P+J+(C!==U?1:0)>r)return void Ne.log("Warning, gif stream longer than expected.");t[P++]=z;var ut=P+=J;for(C!==U&&(t[P++]=z),X=C;J--;)X=R[X],t[--ut]=255&X,X>>=8;j!==null&&l<4096&&(R[l++]=j<<8|z,l>=d+1&&c<12&&(++c,d=d<<1|1)),j=U}else l=h+1,d=(1<<(c=o+1))-1,j=null}return P!==r&&Ne.log("Warning, gif stream shorter than expected."),t}/**
73
+ * @license
74
+ Copyright (c) 2008, Adobe Systems Incorporated
75
+ All rights reserved.
76
+
77
+ Redistribution and use in source and binary forms, with or without
78
+ modification, are permitted provided that the following conditions are
79
+ met:
80
+
81
+ * Redistributions of source code must retain the above copyright notice,
82
+ this list of conditions and the following disclaimer.
83
+
84
+ * Redistributions in binary form must reproduce the above copyright
85
+ notice, this list of conditions and the following disclaimer in the
86
+ documentation and/or other materials provided with the distribution.
87
+
88
+ * Neither the name of Adobe Systems Incorporated nor the names of its
89
+ contributors may be used to endorse or promote products derived from
90
+ this software without specific prior written permission.
91
+
92
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
93
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
94
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
96
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
97
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
98
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
99
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
100
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
101
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
102
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103
+ */function Ds(n){var e,t,r,o,a,h=Math.floor,l=new Array(64),c=new Array(64),d=new Array(64),g=new Array(64),L=new Array(65535),P=new Array(65535),p=new Array(64),R=new Array(64),j=[],U=0,C=7,J=new Array(64),X=new Array(64),z=new Array(64),ut=new Array(256),bt=new Array(2048),Q=[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],D=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],A=[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],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Y=[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 $(w,k){for(var q=0,W=0,K=new Array,rt=1;rt<=16;rt++){for(var lt=1;lt<=w[rt];lt++)K[k[W]]=[],K[k[W]][0]=q,K[k[W]][1]=rt,W++,q++;q*=2}return K}function it(w){for(var k=w[0],q=w[1]-1;q>=0;)k&1<<q&&(U|=1<<C),q--,--C<0&&(U==255?(et(255),et(0)):et(U),C=7,U=0)}function et(w){j.push(w)}function ct(w){et(w>>8&255),et(255&w)}function dt(w,k,q,W,K){for(var rt,lt=K[0],st=K[240],ft=(function(At,zt){var Pt,Ht,qt,de,le,Xt,fe,ce,Mt,re,Dt=0;for(Mt=0;Mt<8;++Mt){Pt=At[Dt],Ht=At[Dt+1],qt=At[Dt+2],de=At[Dt+3],le=At[Dt+4],Xt=At[Dt+5],fe=At[Dt+6];var He=Pt+(ce=At[Dt+7]),me=Pt-ce,oe=Ht+fe,se=Ht-fe,je=qt+Xt,Wt=qt-Xt,ke=de+le,Yt=de-le,Qt=He+ke,Te=He-ke,ue=oe+je,Vt=oe-je;At[Dt]=Qt+ue,At[Dt+4]=Qt-ue;var be=.707106781*(Vt+Te);At[Dt+2]=Te+be,At[Dt+6]=Te-be;var ei=.382683433*((Qt=Yt+Wt)-(Vt=se+me)),fn=.5411961*Qt+ei,vr=1.306562965*Vt+ei,rr=.707106781*(ue=Wt+se),Gt=me+rr,br=me-rr;At[Dt+5]=br+fn,At[Dt+3]=br-fn,At[Dt+1]=Gt+vr,At[Dt+7]=Gt-vr,Dt+=8}for(Dt=0,Mt=0;Mt<8;++Mt){Pt=At[Dt],Ht=At[Dt+8],qt=At[Dt+16],de=At[Dt+24],le=At[Dt+32],Xt=At[Dt+40],fe=At[Dt+48];var wr=Pt+(ce=At[Dt+56]),Rn=Pt-ce,Dn=Ht+fe,De=Ht-fe,an=qt+Xt,on=qt-Xt,ni=de+le,jr=de-le,Gn=wr+ni,ir=wr-ni,Yn=Dn+an,$n=Dn-an;At[Dt]=Gn+Yn,At[Dt+32]=Gn-Yn;var qn=.707106781*($n+ir);At[Dt+16]=ir+qn,At[Dt+48]=ir-qn;var ri=.382683433*((Gn=jr+on)-($n=De+Rn)),ar=.5411961*Gn+ri,ii=1.306562965*$n+ri,Ii=.707106781*(Yn=on+De),Fi=Rn+Ii,Oi=Rn-Ii;At[Dt+40]=Oi+ar,At[Dt+24]=Oi-ar,At[Dt+8]=Fi+ii,At[Dt+56]=Fi-ii,Dt++}for(Mt=0;Mt<64;++Mt)re=At[Mt]*zt[Mt],p[Mt]=re>0?re+.5|0:re-.5|0;return p})(w,k),xt=0;xt<64;++xt)R[Q[xt]]=ft[xt];var Nt=R[0]-q;q=R[0],Nt==0?it(W[0]):(it(W[P[rt=32767+Nt]]),it(L[rt]));for(var _t=63;_t>0&&R[_t]==0;)_t--;if(_t==0)return it(lt),q;for(var It,I=1;I<=_t;){for(var kt=I;R[I]==0&&I<=_t;)++I;var ne=I-kt;if(ne>=16){It=ne>>4;for(var Ut=1;Ut<=It;++Ut)it(st);ne&=15}rt=32767+R[I],it(K[(ne<<4)+P[rt]]),it(L[rt]),I++}return _t!=63&&it(lt),q}function ht(w){w=Math.min(Math.max(w,1),100),a!=w&&((function(k){for(var q=[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],W=0;W<64;W++){var K=h((q[W]*k+50)/100);K=Math.min(Math.max(K,1),255),l[Q[W]]=K}for(var rt=[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],lt=0;lt<64;lt++){var st=h((rt[lt]*k+50)/100);st=Math.min(Math.max(st,1),255),c[Q[lt]]=st}for(var ft=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,Nt=0;Nt<8;Nt++)for(var _t=0;_t<8;_t++)d[xt]=1/(l[Q[xt]]*ft[Nt]*ft[_t]*8),g[xt]=1/(c[Q[xt]]*ft[Nt]*ft[_t]*8),xt++})(w<50?Math.floor(5e3/w):Math.floor(200-2*w)),a=w)}this.encode=function(w,k){k&&ht(k),j=new Array,U=0,C=7,ct(65496),ct(65504),ct(16),et(74),et(70),et(73),et(70),et(0),et(1),et(1),et(0),ct(1),ct(1),et(0),et(0),(function(){ct(65499),ct(132),et(0);for(var Ht=0;Ht<64;Ht++)et(l[Ht]);et(1);for(var qt=0;qt<64;qt++)et(c[qt])})(),(function(Ht,qt){ct(65472),ct(17),et(8),ct(qt),ct(Ht),et(3),et(1),et(17),et(0),et(2),et(17),et(1),et(3),et(17),et(1)})(w.width,w.height),(function(){ct(65476),ct(418),et(0);for(var Ht=0;Ht<16;Ht++)et(D[Ht+1]);for(var qt=0;qt<=11;qt++)et(T[qt]);et(16);for(var de=0;de<16;de++)et(V[de+1]);for(var le=0;le<=161;le++)et(A[le]);et(1);for(var Xt=0;Xt<16;Xt++)et(N[Xt+1]);for(var fe=0;fe<=11;fe++)et(_[fe]);et(17);for(var ce=0;ce<16;ce++)et(F[ce+1]);for(var Mt=0;Mt<=161;Mt++)et(Y[Mt])})(),ct(65498),ct(12),et(3),et(1),et(0),et(2),et(17),et(3),et(17),et(0),et(63),et(0);var q=0,W=0,K=0;U=0,C=7,this.encode.displayName="_encode_";for(var rt,lt,st,ft,xt,Nt,_t,It,I,kt=w.data,ne=w.width,Ut=w.height,At=4*ne,zt=0;zt<Ut;){for(rt=0;rt<At;){for(xt=At*zt+rt,_t=-1,It=0,I=0;I<64;I++)Nt=xt+(It=I>>3)*At+(_t=4*(7&I)),zt+It>=Ut&&(Nt-=At*(zt+1+It-Ut)),rt+_t>=At&&(Nt-=rt+_t-At+4),lt=kt[Nt++],st=kt[Nt++],ft=kt[Nt++],J[I]=(bt[lt]+bt[st+256|0]+bt[ft+512|0]>>16)-128,X[I]=(bt[lt+768|0]+bt[st+1024|0]+bt[ft+1280|0]>>16)-128,z[I]=(bt[lt+1280|0]+bt[st+1536|0]+bt[ft+1792|0]>>16)-128;q=dt(J,d,q,e,r),W=dt(X,g,W,t,o),K=dt(z,g,K,t,o),rt+=32}zt+=8}if(C>=0){var Pt=[];Pt[1]=C+1,Pt[0]=(1<<C+1)-1,it(Pt)}return ct(65497),new Uint8Array(j)},n=n||50,(function(){for(var w=String.fromCharCode,k=0;k<256;k++)ut[k]=w(k)})(),e=$(D,T),t=$(N,_),r=$(V,A),o=$(F,Y),(function(){for(var w=1,k=2,q=1;q<=15;q++){for(var W=w;W<k;W++)P[32767+W]=q,L[32767+W]=[],L[32767+W][1]=q,L[32767+W][0]=W;for(var K=-(k-1);K<=-w;K++)P[32767+K]=q,L[32767+K]=[],L[32767+K][1]=q,L[32767+K][0]=k-1+K;w<<=1,k<<=1}})(),(function(){for(var w=0;w<256;w++)bt[w]=19595*w,bt[w+256|0]=38470*w,bt[w+512|0]=7471*w+32768,bt[w+768|0]=-11059*w,bt[w+1024|0]=-21709*w,bt[w+1280|0]=32768*w+8421375,bt[w+1536|0]=-27439*w,bt[w+1792|0]=-5329*w})(),ht(n)}/**
104
+ * @license
105
+ * Copyright (c) 2017 Aras Abbasi
106
+ *
107
+ * Licensed under the MIT License.
108
+ * http://opensource.org/licenses/mit-license
109
+ */function Qn(n,e){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ju(n){function e(T){if(!T)throw Error("assert :P")}function t(T,V,A){for(var N=0;4>N;N++)if(T[V+N]!=A.charCodeAt(N))return!0;return!1}function r(T,V,A,N,_){for(var F=0;F<_;F++)T[V+F]=A[N+F]}function o(T,V,A,N){for(var _=0;_<N;_++)T[V+_]=A}function a(T){return new Int32Array(T)}function h(T,V){for(var A=[],N=0;N<T;N++)A.push(new V);return A}function l(T,V){var A=[];return(function N(_,F,Y){for(var $=Y[F],it=0;it<$&&(_.push(Y.length>F+1?[]:new V),!(Y.length<F+1));it++)N(_[it],F+1,Y)})(A,0,T),A}var c=function(){var T=this;function V(i,s){for(var f=1<<s-1>>>0;i&f;)f>>>=1;return f?(i&f-1)+f:i}function A(i,s,f,m,b){e(!(m%f));do i[s+(m-=f)]=b;while(0<m)}function N(i,s,f,m,b){if(e(2328>=b),512>=b)var y=a(512);else if((y=a(b))==null)return 0;return(function(x,S,E,M,G,ot){var B,Z,nt=S,gt=1<<E,at=a(16),mt=a(16);for(e(G!=0),e(M!=null),e(x!=null),e(0<E),Z=0;Z<G;++Z){if(15<M[Z])return 0;++at[M[Z]]}if(at[0]==G)return 0;for(mt[1]=0,B=1;15>B;++B){if(at[B]>1<<B)return 0;mt[B+1]=mt[B]+at[B]}for(Z=0;Z<G;++Z)B=M[Z],0<M[Z]&&(ot[mt[B]++]=Z);if(mt[15]==1)return(M=new _).g=0,M.value=ot[0],A(x,nt,1,gt,M),gt;var vt,Lt=-1,yt=gt-1,Rt=0,Et=1,ie=1,jt=1<<E;for(Z=0,B=1,G=2;B<=E;++B,G<<=1){if(Et+=ie<<=1,0>(ie-=at[B]))return 0;for(;0<at[B];--at[B])(M=new _).g=B,M.value=ot[Z++],A(x,nt+Rt,G,jt,M),Rt=V(Rt,B)}for(B=E+1,G=2;15>=B;++B,G<<=1){if(Et+=ie<<=1,0>(ie-=at[B]))return 0;for(;0<at[B];--at[B]){if(M=new _,(Rt&yt)!=Lt){for(nt+=jt,vt=1<<(Lt=B)-E;15>Lt&&!(0>=(vt-=at[Lt]));)++Lt,vt<<=1;gt+=jt=1<<(vt=Lt-E),x[S+(Lt=Rt&yt)].g=vt+E,x[S+Lt].value=nt-S-Lt}M.g=B-E,M.value=ot[Z++],A(x,nt+(Rt>>E),G,jt,M),Rt=V(Rt,B)}}return Et!=2*mt[15]-1?0:gt})(i,s,f,m,b,y)}function _(){this.value=this.g=0}function F(){this.value=this.g=0}function Y(){this.G=h(5,_),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Gi,F)}function $(i,s,f,m){e(i!=null),e(s!=null),e(2147483648>m),i.Ca=254,i.I=0,i.b=-8,i.Ka=0,i.oa=s,i.pa=f,i.Jd=s,i.Yc=f+m,i.Zc=4<=m?f+m-4+1:f,lt(i)}function it(i,s){for(var f=0;0<s--;)f|=ft(i,128)<<s;return f}function et(i,s){var f=it(i,s);return st(i)?-f:f}function ct(i,s,f,m){var b,y=0;for(e(i!=null),e(s!=null),e(4294967288>m),i.Sb=m,i.Ra=0,i.u=0,i.h=0,4<m&&(m=4),b=0;b<m;++b)y+=s[f+b]<<8*b;i.Ra=y,i.bb=m,i.oa=s,i.pa=f}function dt(i){for(;8<=i.u&&i.bb<i.Sb;)i.Ra>>>=8,i.Ra+=i.oa[i.pa+i.bb]<<xn-8>>>0,++i.bb,i.u-=8;W(i)&&(i.h=1,i.u=0)}function ht(i,s){if(e(0<=s),!i.h&&s<=ba){var f=q(i)&pi[s];return i.u+=s,dt(i),f}return i.h=1,i.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function k(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function q(i){return i.Ra>>>(i.u&xn-1)>>>0}function W(i){return e(i.bb<=i.Sb),i.h||i.bb==i.Sb&&i.u>xn}function K(i,s){i.u=s,i.h=W(i)}function rt(i){i.u>=Nn&&(e(i.u>=Nn),dt(i))}function lt(i){e(i!=null&&i.oa!=null),i.pa<i.Zc?(i.I=(i.oa[i.pa++]|i.I<<8)>>>0,i.b+=8):(e(i!=null&&i.oa!=null),i.pa<i.Yc?(i.b+=8,i.I=i.oa[i.pa++]|i.I<<8):i.Ka?i.b=0:(i.I<<=8,i.b+=8,i.Ka=1))}function st(i){return it(i,1)}function ft(i,s){var f=i.Ca;0>i.b&&lt(i);var m=i.b,b=f*s>>>8,y=(i.I>>>m>b)+0;for(y?(f-=b,i.I-=b+1<<m>>>0):f=b+1,m=f,b=0;256<=m;)b+=8,m>>=8;return m=7^b+Yi[m],i.b-=m,i.Ca=(f<<m)-1,y}function xt(i,s,f){i[s+0]=f>>24&255,i[s+1]=f>>16&255,i[s+2]=f>>8&255,i[s+3]=255&f}function Nt(i,s){return i[s+0]|i[s+1]<<8}function _t(i,s){return Nt(i,s)|i[s+2]<<16}function It(i,s){return Nt(i,s)|Nt(i,s+2)<<16}function I(i,s){var f=1<<s;return e(i!=null),e(0<s),i.X=a(f),i.X==null?0:(i.Mb=32-s,i.Xa=s,1)}function kt(i,s){e(i!=null),e(s!=null),e(i.Xa==s.Xa),r(s.X,0,i.X,0,1<<s.Xa)}function ne(){this.X=[],this.Xa=this.Mb=0}function Ut(i,s,f,m){e(f!=null),e(m!=null);var b=f[0],y=m[0];return b==0&&(b=(i*y+s/2)/s),y==0&&(y=(s*b+i/2)/i),0>=b||0>=y?0:(f[0]=b,m[0]=y,1)}function At(i,s){return i+(1<<s)-1>>>s}function zt(i,s){return((4278255360&i)+(4278255360&s)>>>0&4278255360)+((16711935&i)+(16711935&s)>>>0&16711935)>>>0}function Pt(i,s){T[s]=function(f,m,b,y,x,S,E){var M;for(M=0;M<x;++M){var G=T[i](S[E+M-1],b,y+M);S[E+M]=zt(f[m+M],G)}}}function Ht(){this.ud=this.hd=this.jd=0}function qt(i,s){return((4278124286&(i^s))>>>1)+(i&s)>>>0}function de(i){return 0<=i&&256>i?i:0>i?0:255<i?255:void 0}function le(i,s){return de(i+(i-s+.5>>1))}function Xt(i,s,f){return Math.abs(s-f)-Math.abs(i-f)}function fe(i,s,f,m,b,y,x){for(m=y[x-1],f=0;f<b;++f)y[x+f]=m=zt(i[s+f],m)}function ce(i,s,f,m,b){var y;for(y=0;y<f;++y){var x=i[s+y],S=x>>8&255,E=16711935&(E=(E=16711935&x)+((S<<16)+S));m[b+y]=(4278255360&x)+E>>>0}}function Mt(i,s){s.jd=255&i,s.hd=i>>8&255,s.ud=i>>16&255}function re(i,s,f,m,b,y){var x;for(x=0;x<m;++x){var S=s[f+x],E=S>>>8,M=S,G=255&(G=(G=S>>>16)+((i.jd<<24>>24)*(E<<24>>24)>>>5));M=255&(M=(M+=(i.hd<<24>>24)*(E<<24>>24)>>>5)+((i.ud<<24>>24)*(G<<24>>24)>>>5)),b[y+x]=(4278255360&S)+(G<<16)+M}}function Dt(i,s,f,m,b){T[s]=function(y,x,S,E,M,G,ot,B,Z){for(E=ot;E<B;++E)for(ot=0;ot<Z;++ot)M[G++]=b(S[m(y[x++])])},T[i]=function(y,x,S,E,M,G,ot){var B=8>>y.b,Z=y.Ea,nt=y.K[0],gt=y.w;if(8>B)for(y=(1<<y.b)-1,gt=(1<<B)-1;x<S;++x){var at,mt=0;for(at=0;at<Z;++at)at&y||(mt=m(E[M++])),G[ot++]=b(nt[mt&gt]),mt>>=B}else T["VP8LMapColor"+f](E,M,nt,gt,G,ot,x,S,Z)}}function He(i,s,f,m,b){for(f=s+f;s<f;){var y=i[s++];m[b++]=y>>16&255,m[b++]=y>>8&255,m[b++]=255&y}}function me(i,s,f,m,b){for(f=s+f;s<f;){var y=i[s++];m[b++]=y>>16&255,m[b++]=y>>8&255,m[b++]=255&y,m[b++]=y>>24&255}}function oe(i,s,f,m,b){for(f=s+f;s<f;){var y=(x=i[s++])>>16&240|x>>12&15,x=240&x|x>>28&15;m[b++]=y,m[b++]=x}}function se(i,s,f,m,b){for(f=s+f;s<f;){var y=(x=i[s++])>>16&248|x>>13&7,x=x>>5&224|x>>3&31;m[b++]=y,m[b++]=x}}function je(i,s,f,m,b){for(f=s+f;s<f;){var y=i[s++];m[b++]=255&y,m[b++]=y>>8&255,m[b++]=y>>16&255}}function Wt(i,s,f,m,b,y){if(y==0)for(f=s+f;s<f;)xt(m,((y=i[s++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),b+=32;else r(m,b,i,s,f)}function ke(i,s){T[s][0]=T[i+"0"],T[s][1]=T[i+"1"],T[s][2]=T[i+"2"],T[s][3]=T[i+"3"],T[s][4]=T[i+"4"],T[s][5]=T[i+"5"],T[s][6]=T[i+"6"],T[s][7]=T[i+"7"],T[s][8]=T[i+"8"],T[s][9]=T[i+"9"],T[s][10]=T[i+"10"],T[s][11]=T[i+"11"],T[s][12]=T[i+"12"],T[s][13]=T[i+"13"],T[s][14]=T[i+"0"],T[s][15]=T[i+"0"]}function Yt(i){return i==is||i==as||i==uo||i==os}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Te(){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 ue(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Te,this.sd=null}function Vt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function be(){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 ei(i){return alert("todo:WebPSamplerProcessPlane"),i.T}function fn(i,s){var f=i.T,m=s.ba.f.RGBA,b=m.eb,y=m.fb+i.ka*m.A,x=Wn[s.ba.S],S=i.y,E=i.O,M=i.f,G=i.N,ot=i.ea,B=i.W,Z=s.cc,nt=s.dc,gt=s.Mc,at=s.Nc,mt=i.ka,vt=i.ka+i.T,Lt=i.U,yt=Lt+1>>1;for(mt==0?x(S,E,null,null,M,G,ot,B,M,G,ot,B,b,y,null,null,Lt):(x(s.ec,s.fc,S,E,Z,nt,gt,at,M,G,ot,B,b,y-m.A,b,y,Lt),++f);mt+2<vt;mt+=2)Z=M,nt=G,gt=ot,at=B,G+=i.Rc,B+=i.Rc,y+=2*m.A,x(S,(E+=2*i.fa)-i.fa,S,E,Z,nt,gt,at,M,G,ot,B,b,y-m.A,b,y,Lt);return E+=i.fa,i.j+vt<i.o?(r(s.ec,s.fc,S,E,Lt),r(s.cc,s.dc,M,G,yt),r(s.Mc,s.Nc,ot,B,yt),f--):1&vt||x(S,E,null,null,M,G,ot,B,M,G,ot,B,b,y+m.A,null,null,Lt),f}function vr(i,s,f){var m=i.F,b=[i.J];if(m!=null){var y=i.U,x=s.ba.S,S=x==lo||x==uo;s=s.ba.f.RGBA;var E=[0],M=i.ka;E[0]=i.T,i.Kb&&(M==0?--E[0]:(--M,b[0]-=i.width),i.j+i.ka+i.T==i.o&&(E[0]=i.o-i.j-M));var G=s.eb;M=s.fb+M*s.A,i=sl(m,b[0],i.width,y,E,G,M+(S?0:3),s.A),e(f==E),i&&Yt(x)&&Aa(G,M,S,y,E,s.A)}return 0}function rr(i){var s=i.ma,f=s.ba.S,m=11>f,b=f==oo||f==so||f==lo||f==rs||f==12||Yt(f);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!zn(s.Oa,i,b?11:12))return 0;if(b&&Yt(f)&&Nr(),i.da)alert("todo:use_scaling");else{if(m){if(s.Ib=ei,i.Kb){if(f=i.U+1>>1,s.memory=a(i.U+2*f),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+i.U,s.Mc=s.cc,s.Nc=s.dc+f,s.Ib=fn,Nr()}}else alert("todo:EmitYUV");b&&(s.Jb=vr,m&&Re())}if(m&&!_l){for(i=0;256>i;++i)sf[i]=89858*(i-128)+fo>>co,cf[i]=-22014*(i-128)+fo,uf[i]=-45773*(i-128),lf[i]=113618*(i-128)+fo>>co;for(i=La;i<us;++i)s=76283*(i-16)+fo>>co,ff[i-La]=or(s,255),hf[i-La]=or(s+8>>4,15);_l=1}return 1}function Gt(i){var s=i.ma,f=i.U,m=i.T;return e(!(1&i.ka)),0>=f||0>=m?0:(f=s.Ib(i,s),s.Jb!=null&&s.Jb(i,s,f),s.Dc+=f,1)}function br(i){i.ma.memory=null}function wr(i,s,f,m){return ht(i,8)!=47?0:(s[0]=ht(i,14)+1,f[0]=ht(i,14)+1,m[0]=ht(i,1),ht(i,3)!=0?0:!i.h)}function Rn(i,s){if(4>i)return i+1;var f=i-2>>1;return(2+(1&i)<<f)+ht(s,f)+1}function Dn(i,s){return 120<s?s-120:1<=(f=((f=Gc[s-1])>>4)*i+(8-(15&f)))?f:1;var f}function De(i,s,f){var m=q(f),b=i[s+=255&m].g-8;return 0<b&&(K(f,f.u+8),m=q(f),s+=i[s].value,s+=m&(1<<b)-1),K(f,f.u+i[s].g),i[s].value}function an(i,s,f){return f.g+=i.g,f.value+=i.value<<s>>>0,e(8>=f.g),i.g}function on(i,s,f){var m=i.xc;return e((s=m==0?0:i.vc[i.md*(f>>m)+(s>>m)])<i.Wb),i.Ya[s]}function ni(i,s,f,m){var b=i.ab,y=i.c*s,x=i.C;s=x+s;var S=f,E=m;for(m=i.Ta,f=i.Ua;0<b--;){var M=i.gc[b],G=x,ot=s,B=S,Z=E,nt=(E=m,S=f,M.Ea);switch(e(G<ot),e(ot<=M.nc),M.hc){case 2:$i(B,Z,(ot-G)*nt,E,S);break;case 0:var gt=G,at=ot,mt=E,vt=S,Lt=(jt=M).Ea;gt==0&&(Dr(B,Z,null,null,1,mt,vt),fe(B,Z+1,0,0,Lt-1,mt,vt+1),Z+=Lt,vt+=Lt,++gt);for(var yt=1<<jt.b,Rt=yt-1,Et=At(Lt,jt.b),ie=jt.K,jt=jt.w+(gt>>jt.b)*Et;gt<at;){var he=ie,tn=jt,ae=1;for(qr(B,Z,mt,vt-Lt,1,mt,vt);ae<Lt;){var Tt=(ae&~Rt)+yt;Tt>Lt&&(Tt=Lt),(0,Jn[he[tn++]>>8&15])(B,Z+ +ae,mt,vt+ae-Lt,Tt-ae,mt,vt+ae),ae=Tt}Z+=Lt,vt+=Lt,++gt&Rt||(jt+=Et)}ot!=M.nc&&r(E,S-nt,E,S+(ot-G-1)*nt,nt);break;case 1:for(nt=B,at=Z,Lt=(B=M.Ea)-(vt=B&~(mt=(Z=1<<M.b)-1)),gt=At(B,M.b),yt=M.K,M=M.w+(G>>M.b)*gt;G<ot;){for(Rt=yt,Et=M,ie=new Ht,jt=at+vt,he=at+B;at<jt;)Mt(Rt[Et++],ie),mi(ie,nt,at,Z,E,S),at+=Z,S+=Z;at<he&&(Mt(Rt[Et++],ie),mi(ie,nt,at,Lt,E,S),at+=Lt,S+=Lt),++G&mt||(M+=gt)}break;case 3:if(B==E&&Z==S&&0<M.b){for(at=E,B=nt=S+(ot-G)*nt-(vt=(ot-G)*At(M.Ea,M.b)),Z=E,mt=S,gt=[],vt=(Lt=vt)-1;0<=vt;--vt)gt[vt]=Z[mt+vt];for(vt=Lt-1;0<=vt;--vt)at[B+vt]=gt[vt];gi(M,G,ot,E,nt,E,S)}else gi(M,G,ot,B,Z,E,S)}S=m,E=f}E!=f&&r(m,f,S,E,y)}function jr(i,s){var f=i.V,m=i.Ba+i.c*i.C,b=s-i.C;if(e(s<=i.l.o),e(16>=b),0<b){var y=i.l,x=i.Ta,S=i.Ua,E=y.width;if(ni(i,b,f,m),b=S=[S],e((f=i.C)<(m=s)),e(y.v<y.va),m>y.o&&(m=y.o),f<y.j){var M=y.j-f;f=y.j,b[0]+=M*E}if(f>=m?f=0:(b[0]+=4*y.v,y.ka=f-y.j,y.U=y.va-y.v,y.T=m-f,f=1),f){if(S=S[0],11>(f=i.ca).S){var G=f.f.RGBA,ot=(m=f.S,b=y.U,y=y.T,M=G.eb,G.A),B=y;for(G=G.fb+i.Ma*G.A;0<B--;){var Z=x,nt=S,gt=b,at=M,mt=G;switch(m){case ao:wa(Z,nt,gt,at,mt);break;case oo:ya(Z,nt,gt,at,mt);break;case is:ya(Z,nt,gt,at,mt),Aa(at,mt,0,gt,1,0);break;case pl:bi(Z,nt,gt,at,mt);break;case so:Wt(Z,nt,gt,at,mt,1);break;case as:Wt(Z,nt,gt,at,mt,1),Aa(at,mt,0,gt,1,0);break;case lo:Wt(Z,nt,gt,at,mt,0);break;case uo:Wt(Z,nt,gt,at,mt,0),Aa(at,mt,1,gt,1,0);break;case rs:Ji(Z,nt,gt,at,mt);break;case os:Ji(Z,nt,gt,at,mt),ol(at,mt,gt,1,0);break;case gl:vi(Z,nt,gt,at,mt);break;default:e(0)}S+=E,G+=ot}i.Ma+=y}else alert("todo:EmitRescaledRowsYUVA");e(i.Ma<=f.height)}}i.C=s,e(i.C<=i.i)}function Gn(i){var s;if(0<i.ua)return 0;for(s=0;s<i.Wb;++s){var f=i.Ya[s].G,m=i.Ya[s].H;if(0<f[1][m[1]+0].g||0<f[2][m[2]+0].g||0<f[3][m[3]+0].g)return 0}return 1}function ir(i,s,f,m,b,y){if(i.Z!=0){var x=i.qd,S=i.rd;for(e(Wr[i.Z]!=null);s<f;++s)Wr[i.Z](x,S,m,b,m,b,y),x=m,S=b,b+=y;i.qd=x,i.rd=S}}function Yn(i,s){var f=i.l.ma,m=f.Z==0||f.Z==1?i.l.j:i.C;if(m=i.C<m?m:i.C,e(s<=i.l.o),s>m){var b=i.l.width,y=f.ca,x=f.tb+b*m,S=i.V,E=i.Ba+i.c*m,M=i.gc;e(i.ab==1),e(M[0].hc==3),es(M[0],m,s,S,E,y,x),ir(f,m,s,y,x,b)}i.C=i.Ma=s}function $n(i,s,f,m,b,y,x){var S=i.$/m,E=i.$%m,M=i.m,G=i.s,ot=f+i.$,B=ot;b=f+m*b;var Z=f+m*y,nt=280+G.ua,gt=i.Pb?S:16777216,at=0<G.ua?G.Wa:null,mt=G.wc,vt=ot<Z?on(G,E,S):null;e(i.C<y),e(Z<=b);var Lt=!1;t:for(;;){for(;Lt||ot<Z;){var yt=0;if(S>=gt){var Rt=ot-f;e((gt=i).Pb),gt.wd=gt.m,gt.xd=Rt,0<gt.s.ua&&kt(gt.s.Wa,gt.s.vb),gt=S+$c}if(E&mt||(vt=on(G,E,S)),e(vt!=null),vt.Qb&&(s[ot]=vt.qb,Lt=!0),!Lt)if(rt(M),vt.jc){yt=M,Rt=s;var Et=ot,ie=vt.pd[q(yt)&Gi-1];e(vt.jc),256>ie.g?(K(yt,yt.u+ie.g),Rt[Et]=ie.value,yt=0):(K(yt,yt.u+ie.g-256),e(256<=ie.value),yt=ie.value),yt==0&&(Lt=!0)}else yt=De(vt.G[0],vt.H[0],M);if(M.h)break;if(Lt||256>yt){if(!Lt)if(vt.nd)s[ot]=(vt.qb|yt<<8)>>>0;else{if(rt(M),Lt=De(vt.G[1],vt.H[1],M),rt(M),Rt=De(vt.G[2],vt.H[2],M),Et=De(vt.G[3],vt.H[3],M),M.h)break;s[ot]=(Et<<24|Lt<<16|yt<<8|Rt)>>>0}if(Lt=!1,++ot,++E>=m&&(E=0,++S,x!=null&&S<=y&&!(S%16)&&x(i,S),at!=null))for(;B<ot;)yt=s[B++],at.X[(506832829*yt&4294967295)>>>at.Mb]=yt}else if(280>yt){if(yt=Rn(yt-256,M),Rt=De(vt.G[4],vt.H[4],M),rt(M),Rt=Dn(m,Rt=Rn(Rt,M)),M.h)break;if(ot-f<Rt||b-ot<yt)break t;for(Et=0;Et<yt;++Et)s[ot+Et]=s[ot+Et-Rt];for(ot+=yt,E+=yt;E>=m;)E-=m,++S,x!=null&&S<=y&&!(S%16)&&x(i,S);if(e(ot<=b),E&mt&&(vt=on(G,E,S)),at!=null)for(;B<ot;)yt=s[B++],at.X[(506832829*yt&4294967295)>>>at.Mb]=yt}else{if(!(yt<nt))break t;for(Lt=yt-280,e(at!=null);B<ot;)yt=s[B++],at.X[(506832829*yt&4294967295)>>>at.Mb]=yt;yt=ot,e(!(Lt>>>(Rt=at).Xa)),s[yt]=Rt.X[Lt],Lt=!0}Lt||e(M.h==W(M))}if(i.Pb&&M.h&&ot<b)e(i.m.h),i.a=5,i.m=i.wd,i.$=i.xd,0<i.s.ua&&kt(i.s.vb,i.s.Wa);else{if(M.h)break t;x!=null&&x(i,S>y?y:S),i.a=0,i.$=ot-f}return 1}return i.a=3,0}function qn(i){e(i!=null),i.vc=null,i.yc=null,i.Ya=null;var s=i.Wa;s!=null&&(s.X=null),i.vb=null,e(i!=null)}function ri(){var i=new Ot;return i==null?null:(i.a=0,i.xb=bl,ke("Predictor","VP8LPredictors"),ke("Predictor","VP8LPredictors_C"),ke("PredictorAdd","VP8LPredictorsAdd"),ke("PredictorAdd","VP8LPredictorsAdd_C"),$i=ce,mi=re,wa=He,ya=me,Ji=oe,vi=se,bi=je,T.VP8LMapColor32b=Ze,T.VP8LMapColor8b=fr,i)}function ar(i,s,f,m,b){var y=1,x=[i],S=[s],E=m.m,M=m.s,G=null,ot=0;t:for(;;){if(f)for(;y&&ht(E,1);){var B=x,Z=S,nt=m,gt=1,at=nt.m,mt=nt.gc[nt.ab],vt=ht(at,2);if(nt.Oc&1<<vt)y=0;else{switch(nt.Oc|=1<<vt,mt.hc=vt,mt.Ea=B[0],mt.nc=Z[0],mt.K=[null],++nt.ab,e(4>=nt.ab),vt){case 0:case 1:mt.b=ht(at,3)+2,gt=ar(At(mt.Ea,mt.b),At(mt.nc,mt.b),0,nt,mt.K),mt.K=mt.K[0];break;case 3:var Lt,yt=ht(at,8)+1,Rt=16<yt?0:4<yt?1:2<yt?2:3;if(B[0]=At(mt.Ea,Rt),mt.b=Rt,Lt=gt=ar(yt,1,0,nt,mt.K)){var Et,ie=yt,jt=mt,he=1<<(8>>jt.b),tn=a(he);if(tn==null)Lt=0;else{var ae=jt.K[0],Tt=jt.w;for(tn[0]=jt.K[0][0],Et=1;Et<1*ie;++Et)tn[Et]=zt(ae[Tt+Et],tn[Et-1]);for(;Et<4*he;++Et)tn[Et]=0;jt.K[0]=null,jt.K[0]=tn,Lt=1}}gt=Lt;break;case 2:break;default:e(0)}y=gt}}if(x=x[0],S=S[0],y&&ht(E,1)&&!(y=1<=(ot=ht(E,4))&&11>=ot)){m.a=3;break t}var St;if(St=y)e:{var Ve,ee,ge,Fe=m,ln=x,An=S,qe=ot,gn=f,_n=Fe.m,en=Fe.s,ve=[null],we=1,Ue=0,ye=Yc[qe];n:for(;;){if(gn&&ht(_n,1)){var un=ht(_n,3)+2,Kn=At(ln,un),Ge=At(An,un),Sn=Kn*Ge;if(!ar(Kn,Ge,0,Fe,ve))break n;for(ve=ve[0],en.xc=un,Ve=0;Ve<Sn;++Ve){var Le=ve[Ve]>>8&65535;ve[Ve]=Le,Le>=we&&(we=Le+1)}}if(_n.h)break n;for(ee=0;5>ee;++ee){var nn=ml[ee];!ee&&0<qe&&(nn+=1<<qe),Ue<nn&&(Ue=nn)}var In=h(we*ye,_),Ln=we,Fn=h(Ln,Y);if(Fn==null)var On=null;else e(65536>=Ln),On=Fn;var kn=a(Ue);if(On==null||kn==null||In==null){Fe.a=1;break n}var jn=In;for(Ve=ge=0;Ve<we;++Ve){var Ce=On[Ve],Tn=Ce.G,Zn=Ce.H,wi=0,Er=1,cn=0;for(ee=0;5>ee;++ee){nn=ml[ee],Tn[ee]=jn,Zn[ee]=ge,!ee&&0<qe&&(nn+=1<<qe);i:{var po,cs=nn,go=Fe,Na=kn,gf=jn,mf=ge,fs=0,Vr=go.m,vf=ht(Vr,1);if(o(Na,0,0,cs),vf){var bf=ht(Vr,1)+1,wf=ht(Vr,1),Sl=ht(Vr,wf==0?1:8);Na[Sl]=1,bf==2&&(Na[Sl=ht(Vr,8)]=1);var mo=1}else{var kl=a(19),Pl=ht(Vr,4)+4;if(19<Pl){go.a=3;var vo=0;break i}for(po=0;po<Pl;++po)kl[Vc[po]]=ht(Vr,3);var hs=void 0,Sa=void 0,El=go,yf=kl,bo=cs,Cl=Na,ds=0,Gr=El.m,Il=8,Fl=h(128,_);r:for(;N(Fl,0,7,yf,19);){if(ht(Gr,1)){var xf=2+2*ht(Gr,3);if((hs=2+ht(Gr,xf))>bo)break r}else hs=bo;for(Sa=0;Sa<bo&&hs--;){rt(Gr);var Ol=Fl[0+(127&q(Gr))];K(Gr,Gr.u+Ol.g);var Zi=Ol.value;if(16>Zi)Cl[Sa++]=Zi,Zi!=0&&(Il=Zi);else{var Af=Zi==16,jl=Zi-16,_f=Hc[jl],Tl=ht(Gr,zc[jl])+_f;if(Sa+Tl>bo)break r;for(var Lf=Af?Il:0;0<Tl--;)Cl[Sa++]=Lf}}ds=1;break r}ds||(El.a=3),mo=ds}(mo=mo&&!Vr.h)&&(fs=N(gf,mf,8,Na,cs)),mo&&fs!=0?vo=fs:(go.a=3,vo=0)}if(vo==0)break n;if(Er&&Wc[ee]==1&&(Er=jn[ge].g==0),wi+=jn[ge].g,ge+=vo,3>=ee){var ka,ps=kn[0];for(ka=1;ka<nn;++ka)kn[ka]>ps&&(ps=kn[ka]);cn+=ps}}if(Ce.nd=Er,Ce.Qb=0,Er&&(Ce.qb=(Tn[3][Zn[3]+0].value<<24|Tn[1][Zn[1]+0].value<<16|Tn[2][Zn[2]+0].value)>>>0,wi==0&&256>Tn[0][Zn[0]+0].value&&(Ce.Qb=1,Ce.qb+=Tn[0][Zn[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>cn,Ce.jc){var wo,Cr=Ce;for(wo=0;wo<Gi;++wo){var Yr=wo,$r=Cr.pd[Yr],yo=Cr.G[0][Cr.H[0]+Yr];256<=yo.value?($r.g=yo.g+256,$r.value=yo.value):($r.g=0,$r.value=0,Yr>>=an(yo,8,$r),Yr>>=an(Cr.G[1][Cr.H[1]+Yr],16,$r),Yr>>=an(Cr.G[2][Cr.H[2]+Yr],0,$r),an(Cr.G[3][Cr.H[3]+Yr],24,$r))}}}en.vc=ve,en.Wb=we,en.Ya=On,en.yc=In,St=1;break e}St=0}if(!(y=St)){m.a=3;break t}if(0<ot){if(M.ua=1<<ot,!I(M.Wa,ot)){m.a=1,y=0;break t}}else M.ua=0;var gs=m,Ml=x,Nf=S,ms=gs.s,vs=ms.xc;if(gs.c=Ml,gs.i=Nf,ms.md=At(Ml,vs),ms.wc=vs==0?-1:(1<<vs)-1,f){m.xb=ef;break t}if((G=a(x*S))==null){m.a=1,y=0;break t}y=(y=$n(m,G,0,x,S,S,null))&&!E.h;break t}return y?(b!=null?b[0]=G:(e(G==null),e(f)),m.$=0,f||qn(M)):qn(M),y}function ii(i,s){var f=i.c*i.i,m=f+s+16*s;return e(i.c<=s),i.V=a(m),i.V==null?(i.Ta=null,i.Ua=0,i.a=1,0):(i.Ta=i.V,i.Ua=i.Ba+f+s,1)}function Ii(i,s){var f=i.C,m=s-f,b=i.V,y=i.Ba+i.c*f;for(e(s<=i.l.o);0<m;){var x=16<m?16:m,S=i.l.ma,E=i.l.width,M=E*x,G=S.ca,ot=S.tb+E*f,B=i.Ta,Z=i.Ua;ni(i,x,b,y),ll(B,Z,G,ot,M),ir(S,f,f+x,G,ot,E),m-=x,b+=x*i.c,f+=x}e(f==s),i.C=i.Ma=s}function Fi(){this.ub=this.yd=this.td=this.Rb=0}function Oi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Bo(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function aa(){this.Yb=(function(){var i=[];return(function s(f,m,b){for(var y=b[m],x=0;x<y&&(f.push(b.length>m+1?[]:0),!(b.length<m+1));x++)s(f[x],m+1,b)})(i,0,[3,11]),i})()}function qa(){this.jb=a(3),this.Wc=l([4,8],aa),this.Xc=l([4,17],aa)}function Ua(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Un(){this.ld=this.La=this.dd=this.tc=0}function oa(){this.Na=this.la=0}function za(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function sa(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ha(){this.uc=this.M=this.Nb=0,this.wa=Array(new Un),this.Y=0,this.ya=Array(new sa),this.aa=0,this.l=new ji}function Wa(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Va(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Fi,this.Kc=new Oi,this.ed=new Ua,this.Qa=new Bo,this.Ic=this.$c=this.Aa=0,this.D=new Ha,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,w),this.ia=0,this.pb=h(4,za),this.Pa=new qa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Wa),this.Hd=0,this.rb=Array(new oa),this.sb=0,this.wa=Array(new Un),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 sa),this.L=this.aa=0,this.gd=l([4,2],Un),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 or(i,s){return 0>i?0:i>s?s:i}function ji(){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 Ro(){var i=new Va;return i!=null&&(i.a=0,i.sc="OK",i.cb=0,i.Xb=0,_a||(_a=Ti)),i}function Xe(i,s,f){return i.a==0&&(i.a=s,i.sc=f,i.cb=0),0}function Ga(i,s,f){return 3<=f&&i[s+0]==157&&i[s+1]==1&&i[s+2]==42}function sr(i,s){if(i==null)return 0;if(i.a=0,i.sc="OK",s==null)return Xe(i,2,"null VP8Io passed to VP8GetHeaders()");var f=s.data,m=s.w,b=s.ha;if(4>b)return Xe(i,7,"Truncated header.");var y=f[m+0]|f[m+1]<<8|f[m+2]<<16,x=i.Od;if(x.Rb=!(1&y),x.td=y>>1&7,x.yd=y>>4&1,x.ub=y>>5,3<x.td)return Xe(i,3,"Incorrect keyframe parameters.");if(!x.yd)return Xe(i,4,"Frame not displayable.");m+=3,b-=3;var S=i.Kc;if(x.Rb){if(7>b)return Xe(i,7,"cannot parse picture header");if(!Ga(f,m,b))return Xe(i,3,"Bad code word");S.c=16383&(f[m+4]<<8|f[m+3]),S.Td=f[m+4]>>6,S.i=16383&(f[m+6]<<8|f[m+5]),S.Ud=f[m+6]>>6,m+=7,b-=7,i.za=S.c+15>>4,i.Ub=S.i+15>>4,s.width=S.c,s.height=S.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,o((y=i.Pa).jb,0,255,y.jb.length),e((y=i.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,o(y.Zb,0,0,y.Zb.length),o(y.Lb,0,0,y.Lb)}if(x.ub>b)return Xe(i,7,"bad partition length");$(y=i.m,f,m,x.ub),m+=x.ub,b-=x.ub,x.Rb&&(S.Ld=st(y),S.Kd=st(y)),S=i.Qa;var E,M=i.Pa;if(e(y!=null),e(S!=null),S.Cb=st(y),S.Cb){if(S.Bb=st(y),st(y)){for(S.Fb=st(y),E=0;4>E;++E)S.Zb[E]=st(y)?et(y,7):0;for(E=0;4>E;++E)S.Lb[E]=st(y)?et(y,6):0}if(S.Bb)for(E=0;3>E;++E)M.jb[E]=st(y)?it(y,8):255}else S.Bb=0;if(y.Ka)return Xe(i,3,"cannot parse segment header");if((S=i.ed).zd=st(y),S.Tb=it(y,6),S.wb=it(y,3),S.Pc=st(y),S.Pc&&st(y)){for(M=0;4>M;++M)st(y)&&(S.vd[M]=et(y,6));for(M=0;4>M;++M)st(y)&&(S.od[M]=et(y,6))}if(i.L=S.Tb==0?0:S.zd?1:2,y.Ka)return Xe(i,3,"cannot parse filter header");var G=b;if(b=E=m,m=E+G,S=G,i.Xb=(1<<it(i.m,2))-1,G<3*(M=i.Xb))f=7;else{for(E+=3*M,S-=3*M,G=0;G<M;++G){var ot=f[b+0]|f[b+1]<<8|f[b+2]<<16;ot>S&&(ot=S),$(i.Jc[+G],f,E,ot),E+=ot,S-=ot,b+=3}$(i.Jc[+M],f,E,S),f=E<m?0:5}if(f!=0)return Xe(i,f,"cannot parse partitions");for(f=it(E=i.m,7),b=st(E)?et(E,4):0,m=st(E)?et(E,4):0,S=st(E)?et(E,4):0,M=st(E)?et(E,4):0,E=st(E)?et(E,4):0,G=i.Qa,ot=0;4>ot;++ot){if(G.Cb){var B=G.Zb[ot];G.Fb||(B+=f)}else{if(0<ot){i.pb[ot]=i.pb[0];continue}B=f}var Z=i.pb[ot];Z.Sc[0]=ss[or(B+b,127)],Z.Sc[1]=ls[or(B+0,127)],Z.Eb[0]=2*ss[or(B+m,127)],Z.Eb[1]=101581*ls[or(B+S,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=ss[or(B+M,117)],Z.Qc[1]=ls[or(B+E,127)],Z.lc=B+E}if(!x.Rb)return Xe(i,4,"Not a key frame.");for(st(y),x=i.Pa,f=0;4>f;++f){for(b=0;8>b;++b)for(m=0;3>m;++m)for(S=0;11>S;++S)M=ft(y,Qc[f][b][m][S])?it(y,8):Kc[f][b][m][S],x.Wc[f][b].Yb[m][S]=M;for(b=0;17>b;++b)x.Xc[f][b]=x.Wc[f][tf[b]]}return i.kc=st(y),i.kc&&(i.Bd=it(y,8)),i.cb=1}function Ti(i,s,f,m,b,y,x){var S=s[b].Yb[f];for(f=0;16>b;++b){if(!ft(i,S[f+0]))return b;for(;!ft(i,S[f+1]);)if(S=s[++b].Yb[0],f=0,b==16)return 16;var E=s[b+1].Yb;if(ft(i,S[f+2])){var M=i,G=0;if(ft(M,(B=S)[(ot=f)+3]))if(ft(M,B[ot+6])){for(S=0,ot=2*(G=ft(M,B[ot+8]))+(B=ft(M,B[ot+9+G])),G=0,B=Jc[ot];B[S];++S)G+=G+ft(M,B[S]);G+=3+(8<<ot)}else ft(M,B[ot+7])?(G=7+2*ft(M,165),G+=ft(M,145)):G=5+ft(M,159);else G=ft(M,B[ot+4])?3+ft(M,B[ot+5]):2;S=E[2]}else G=1,S=E[1];E=x+Xc[b],0>(M=i).b&&lt(M);var ot,B=M.b,Z=(ot=M.Ca>>1)-(M.I>>B)>>31;--M.b,M.Ca+=Z,M.Ca|=1,M.I-=(ot+1&Z)<<B,y[E]=((G^Z)-Z)*m[(0<b)+0]}return 16}function la(i){var s=i.rb[i.sb-1];s.la=0,s.Na=0,o(i.zc,0,0,i.zc.length),i.ja=0}function En(i,s,f,m,b){b=i[s+f+32*m]+(b>>3),i[s+f+32*m]=-256&b?0>b?0:255:b}function Mi(i,s,f,m,b,y){En(i,s,0,f,m+b),En(i,s,1,f,m+y),En(i,s,2,f,m-y),En(i,s,3,f,m-b)}function yr(i){return(20091*i>>16)+i}function sn(i,s,f,m){var b,y=0,x=a(16);for(b=0;4>b;++b){var S=i[s+0]+i[s+8],E=i[s+0]-i[s+8],M=(35468*i[s+4]>>16)-yr(i[s+12]),G=yr(i[s+4])+(35468*i[s+12]>>16);x[y+0]=S+G,x[y+1]=E+M,x[y+2]=E-M,x[y+3]=S-G,y+=4,s++}for(b=y=0;4>b;++b)S=(i=x[y+0]+4)+x[y+8],E=i-x[y+8],M=(35468*x[y+4]>>16)-yr(x[y+12]),En(f,m,0,0,S+(G=yr(x[y+4])+(35468*x[y+12]>>16))),En(f,m,1,0,E+M),En(f,m,2,0,E-M),En(f,m,3,0,S-G),y++,m+=32}function Ya(i,s,f,m){var b=i[s+0]+4,y=35468*i[s+4]>>16,x=yr(i[s+4]),S=35468*i[s+1]>>16;Mi(f,m,0,b+x,i=yr(i[s+1]),S),Mi(f,m,1,b+y,i,S),Mi(f,m,2,b-y,i,S),Mi(f,m,3,b-x,i,S)}function Do(i,s,f,m,b){sn(i,s,f,m),b&&sn(i,s+16,f,m+4)}function qo(i,s,f,m){Sr(i,s+0,f,m,1),Sr(i,s+32,f,m+128,1)}function Uo(i,s,f,m){var b;for(i=i[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)En(f,m,s,b,i)}function lr(i,s,f,m){i[s+0]&&pn(i,s+0,f,m),i[s+16]&&pn(i,s+16,f,m+4),i[s+32]&&pn(i,s+32,f,m+128),i[s+48]&&pn(i,s+48,f,m+128+4)}function $a(i,s,f,m){var b,y=a(16);for(b=0;4>b;++b){var x=i[s+0+b]+i[s+12+b],S=i[s+4+b]+i[s+8+b],E=i[s+4+b]-i[s+8+b],M=i[s+0+b]-i[s+12+b];y[0+b]=x+S,y[8+b]=x-S,y[4+b]=M+E,y[12+b]=M-E}for(b=0;4>b;++b)x=(i=y[0+4*b]+3)+y[3+4*b],S=y[1+4*b]+y[2+4*b],E=y[1+4*b]-y[2+4*b],M=i-y[3+4*b],f[m+0]=x+S>>3,f[m+16]=M+E>>3,f[m+32]=x-S>>3,f[m+48]=M-E>>3,m+=64}function Bi(i,s,f){var m,b=s-32,y=Cn,x=255-i[b-1];for(m=0;m<f;++m){var S,E=y,M=x+i[s-1];for(S=0;S<f;++S)i[s+S]=E[M+i[b+S]];s+=32}}function Ri(i,s){Bi(i,s,4)}function ua(i,s){Bi(i,s,8)}function zo(i,s){Bi(i,s,16)}function Ho(i,s){var f;for(f=0;16>f;++f)r(i,s+32*f,i,s-32,16)}function Wo(i,s){var f;for(f=16;0<f;--f)o(i,s,i[s-1],16),s+=32}function Tr(i,s,f){var m;for(m=0;16>m;++m)o(s,f+32*m,i,16)}function Ja(i,s){var f,m=16;for(f=0;16>f;++f)m+=i[s-1+32*f]+i[s+f-32];Tr(m>>5,i,s)}function Mr(i,s){var f,m=8;for(f=0;16>f;++f)m+=i[s-1+32*f];Tr(m>>4,i,s)}function Vo(i,s){var f,m=8;for(f=0;16>f;++f)m+=i[s+f-32];Tr(m>>4,i,s)}function ai(i,s){Tr(128,i,s)}function $t(i,s,f){return i+2*s+f+2>>2}function Go(i,s){var f,m=s-32;for(m=new Uint8Array([$t(i[m-1],i[m+0],i[m+1]),$t(i[m+0],i[m+1],i[m+2]),$t(i[m+1],i[m+2],i[m+3]),$t(i[m+2],i[m+3],i[m+4])]),f=0;4>f;++f)r(i,s+32*f,m,0,m.length)}function Yo(i,s){var f=i[s-1],m=i[s-1+32],b=i[s-1+64],y=i[s-1+96];xt(i,s+0,16843009*$t(i[s-1-32],f,m)),xt(i,s+32,16843009*$t(f,m,b)),xt(i,s+64,16843009*$t(m,b,y)),xt(i,s+96,16843009*$t(b,y,y))}function $o(i,s){var f,m=4;for(f=0;4>f;++f)m+=i[s+f-32]+i[s-1+32*f];for(m>>=3,f=0;4>f;++f)o(i,s+32*f,m,4)}function Jo(i,s){var f=i[s-1+0],m=i[s-1+32],b=i[s-1+64],y=i[s-1-32],x=i[s+0-32],S=i[s+1-32],E=i[s+2-32],M=i[s+3-32];i[s+0+96]=$t(m,b,i[s-1+96]),i[s+1+96]=i[s+0+64]=$t(f,m,b),i[s+2+96]=i[s+1+64]=i[s+0+32]=$t(y,f,m),i[s+3+96]=i[s+2+64]=i[s+1+32]=i[s+0+0]=$t(x,y,f),i[s+3+64]=i[s+2+32]=i[s+1+0]=$t(S,x,y),i[s+3+32]=i[s+2+0]=$t(E,S,x),i[s+3+0]=$t(M,E,S)}function Xo(i,s){var f=i[s+1-32],m=i[s+2-32],b=i[s+3-32],y=i[s+4-32],x=i[s+5-32],S=i[s+6-32],E=i[s+7-32];i[s+0+0]=$t(i[s+0-32],f,m),i[s+1+0]=i[s+0+32]=$t(f,m,b),i[s+2+0]=i[s+1+32]=i[s+0+64]=$t(m,b,y),i[s+3+0]=i[s+2+32]=i[s+1+64]=i[s+0+96]=$t(b,y,x),i[s+3+32]=i[s+2+64]=i[s+1+96]=$t(y,x,S),i[s+3+64]=i[s+2+96]=$t(x,S,E),i[s+3+96]=$t(S,E,E)}function xr(i,s){var f=i[s-1+0],m=i[s-1+32],b=i[s-1+64],y=i[s-1-32],x=i[s+0-32],S=i[s+1-32],E=i[s+2-32],M=i[s+3-32];i[s+0+0]=i[s+1+64]=y+x+1>>1,i[s+1+0]=i[s+2+64]=x+S+1>>1,i[s+2+0]=i[s+3+64]=S+E+1>>1,i[s+3+0]=E+M+1>>1,i[s+0+96]=$t(b,m,f),i[s+0+64]=$t(m,f,y),i[s+0+32]=i[s+1+96]=$t(f,y,x),i[s+1+32]=i[s+2+96]=$t(y,x,S),i[s+2+32]=i[s+3+96]=$t(x,S,E),i[s+3+32]=$t(S,E,M)}function Ar(i,s){var f=i[s+0-32],m=i[s+1-32],b=i[s+2-32],y=i[s+3-32],x=i[s+4-32],S=i[s+5-32],E=i[s+6-32],M=i[s+7-32];i[s+0+0]=f+m+1>>1,i[s+1+0]=i[s+0+64]=m+b+1>>1,i[s+2+0]=i[s+1+64]=b+y+1>>1,i[s+3+0]=i[s+2+64]=y+x+1>>1,i[s+0+32]=$t(f,m,b),i[s+1+32]=i[s+0+96]=$t(m,b,y),i[s+2+32]=i[s+1+96]=$t(b,y,x),i[s+3+32]=i[s+2+96]=$t(y,x,S),i[s+3+64]=$t(x,S,E),i[s+3+96]=$t(S,E,M)}function Ko(i,s){var f=i[s-1+0],m=i[s-1+32],b=i[s-1+64],y=i[s-1+96];i[s+0+0]=f+m+1>>1,i[s+2+0]=i[s+0+32]=m+b+1>>1,i[s+2+32]=i[s+0+64]=b+y+1>>1,i[s+1+0]=$t(f,m,b),i[s+3+0]=i[s+1+32]=$t(m,b,y),i[s+3+32]=i[s+1+64]=$t(b,y,y),i[s+3+64]=i[s+2+64]=i[s+0+96]=i[s+1+96]=i[s+2+96]=i[s+3+96]=y}function Zo(i,s){var f=i[s-1+0],m=i[s-1+32],b=i[s-1+64],y=i[s-1+96],x=i[s-1-32],S=i[s+0-32],E=i[s+1-32],M=i[s+2-32];i[s+0+0]=i[s+2+32]=f+x+1>>1,i[s+0+32]=i[s+2+64]=m+f+1>>1,i[s+0+64]=i[s+2+96]=b+m+1>>1,i[s+0+96]=y+b+1>>1,i[s+3+0]=$t(S,E,M),i[s+2+0]=$t(x,S,E),i[s+1+0]=i[s+3+32]=$t(f,x,S),i[s+1+32]=i[s+3+64]=$t(m,f,x),i[s+1+64]=i[s+3+96]=$t(b,m,f),i[s+1+96]=$t(y,b,m)}function Di(i,s){var f;for(f=0;8>f;++f)r(i,s+32*f,i,s-32,8)}function ca(i,s){var f;for(f=0;8>f;++f)o(i,s,i[s-1],8),s+=32}function ur(i,s,f){var m;for(m=0;8>m;++m)o(s,f+32*m,i,8)}function Qo(i,s){var f,m=8;for(f=0;8>f;++f)m+=i[s+f-32]+i[s-1+32*f];ur(m>>4,i,s)}function qi(i,s){var f,m=4;for(f=0;8>f;++f)m+=i[s+f-32];ur(m>>3,i,s)}function ts(i,s){var f,m=4;for(f=0;8>f;++f)m+=i[s-1+32*f];ur(m>>3,i,s)}function fa(i,s){ur(128,i,s)}function Br(i,s,f){var m=i[s-f],b=i[s+0],y=3*(b-m)+ns[1020+i[s-2*f]-i[s+f]],x=io[112+(y+4>>3)];i[s-f]=Cn[255+m+io[112+(y+3>>3)]],i[s+0]=Cn[255+b-x]}function ha(i,s,f,m){var b=i[s+0],y=i[s+f];return Hn[255+i[s-2*f]-i[s-f]]>m||Hn[255+y-b]>m}function oi(i,s,f,m){return 4*Hn[255+i[s-f]-i[s+0]]+Hn[255+i[s-2*f]-i[s+f]]<=m}function da(i,s,f,m,b){var y=i[s-3*f],x=i[s-2*f],S=i[s-f],E=i[s+0],M=i[s+f],G=i[s+2*f],ot=i[s+3*f];return 4*Hn[255+S-E]+Hn[255+x-M]>m?0:Hn[255+i[s-4*f]-y]<=b&&Hn[255+y-x]<=b&&Hn[255+x-S]<=b&&Hn[255+ot-G]<=b&&Hn[255+G-M]<=b&&Hn[255+M-E]<=b}function Ui(i,s,f,m){var b=2*m+1;for(m=0;16>m;++m)oi(i,s+m,f,b)&&Br(i,s+m,f)}function pa(i,s,f,m){var b=2*m+1;for(m=0;16>m;++m)oi(i,s+m*f,1,b)&&Br(i,s+m*f,1)}function zi(i,s,f,m){var b;for(b=3;0<b;--b)Ui(i,s+=4*f,f,m)}function Xa(i,s,f,m){var b;for(b=3;0<b;--b)pa(i,s+=4,f,m)}function _r(i,s,f,m,b,y,x,S){for(y=2*y+1;0<b--;){if(da(i,s,f,y,x))if(ha(i,s,f,S))Br(i,s,f);else{var E=i,M=s,G=f,ot=E[M-2*G],B=E[M-G],Z=E[M+0],nt=E[M+G],gt=E[M+2*G],at=27*(vt=ns[1020+3*(Z-B)+ns[1020+ot-nt]])+63>>7,mt=18*vt+63>>7,vt=9*vt+63>>7;E[M-3*G]=Cn[255+E[M-3*G]+vt],E[M-2*G]=Cn[255+ot+mt],E[M-G]=Cn[255+B+at],E[M+0]=Cn[255+Z-at],E[M+G]=Cn[255+nt-mt],E[M+2*G]=Cn[255+gt-vt]}s+=m}}function Lr(i,s,f,m,b,y,x,S){for(y=2*y+1;0<b--;){if(da(i,s,f,y,x))if(ha(i,s,f,S))Br(i,s,f);else{var E=i,M=s,G=f,ot=E[M-G],B=E[M+0],Z=E[M+G],nt=io[112+(4+(gt=3*(B-ot))>>3)],gt=io[112+(gt+3>>3)],at=nt+1>>1;E[M-2*G]=Cn[255+E[M-2*G]+at],E[M-G]=Cn[255+ot+gt],E[M+0]=Cn[255+B-nt],E[M+G]=Cn[255+Z-at]}s+=m}}function Ka(i,s,f,m,b,y){_r(i,s,f,1,16,m,b,y)}function Za(i,s,f,m,b,y){_r(i,s,1,f,16,m,b,y)}function Qa(i,s,f,m,b,y){var x;for(x=3;0<x;--x)Lr(i,s+=4*f,f,1,16,m,b,y)}function si(i,s,f,m,b,y){var x;for(x=3;0<x;--x)Lr(i,s+=4,1,f,16,m,b,y)}function to(i,s,f,m,b,y,x,S){_r(i,s,b,1,8,y,x,S),_r(f,m,b,1,8,y,x,S)}function u(i,s,f,m,b,y,x,S){_r(i,s,1,b,8,y,x,S),_r(f,m,1,b,8,y,x,S)}function v(i,s,f,m,b,y,x,S){Lr(i,s+4*b,b,1,8,y,x,S),Lr(f,m+4*b,b,1,8,y,x,S)}function O(i,s,f,m,b,y,x,S){Lr(i,s+4,1,b,8,y,x,S),Lr(f,m+4,1,b,8,y,x,S)}function H(){this.ba=new ue,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new be,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function tt(){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 pt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function wt(){this.ua=0,this.Wa=new ne,this.vb=new ne,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Y,this.yc=new _}function Ot(){this.xb=this.a=0,this.l=new ji,this.ca=new ue,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new k,this.Pb=0,this.wd=new k,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new wt,this.ab=0,this.gc=h(4,pt),this.Oc=0}function Ft(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ji,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Kt(i,s,f,m,b,y,x){for(i=i==null?0:i[s+0],s=0;s<x;++s)b[y+s]=i+f[m+s]&255,i=b[y+s]}function te(i,s,f,m,b,y,x){var S;if(i==null)Kt(null,null,f,m,b,y,x);else for(S=0;S<x;++S)b[y+S]=i[s+S]+f[m+S]&255}function pe(i,s,f,m,b,y,x){if(i==null)Kt(null,null,f,m,b,y,x);else{var S,E=i[s+0],M=E,G=E;for(S=0;S<x;++S)M=G+(E=i[s+S])-M,G=f[m+S]+(-256&M?0>M?0:255:M)&255,M=E,b[y+S]=G}}function Ke(i,s,f,m){var b=s.width,y=s.o;if(e(i!=null&&s!=null),0>f||0>=m||f+m>y)return null;if(!i.Cc){if(i.ga==null){var x;if(i.ga=new Ft,(x=i.ga==null)||(x=s.width*s.o,e(i.Gb.length==0),i.Gb=a(x),i.Uc=0,i.Gb==null?x=0:(i.mb=i.Gb,i.nb=i.Uc,i.rc=null,x=1),x=!x),!x){x=i.ga;var S=i.Fa,E=i.P,M=i.qc,G=i.mb,ot=i.nb,B=E+1,Z=M-1,nt=x.l;if(e(S!=null&&G!=null&&s!=null),Wr[0]=null,Wr[1]=Kt,Wr[2]=te,Wr[3]=pe,x.ca=G,x.tb=ot,x.c=s.width,x.i=s.height,e(0<x.c&&0<x.i),1>=M)s=0;else if(x.$a=3&S[E+0],x.Z=S[E+0]>>2&3,x.Lc=S[E+0]>>4&3,E=S[E+0]>>6&3,0>x.$a||1<x.$a||4<=x.Z||1<x.Lc||E)s=0;else if(nt.put=Gt,nt.ac=rr,nt.bc=br,nt.ma=x,nt.width=s.width,nt.height=s.height,nt.Da=s.Da,nt.v=s.v,nt.va=s.va,nt.j=s.j,nt.o=s.o,x.$a)t:{e(x.$a==1),s=ri();e:for(;;){if(s==null){s=0;break t}if(e(x!=null),x.mc=s,s.c=x.c,s.i=x.i,s.l=x.l,s.l.ma=x,s.l.width=x.c,s.l.height=x.i,s.a=0,ct(s.m,S,B,Z),!ar(x.c,x.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Gn(s.s)?(x.ic=1,S=s.c*s.i,s.Ta=null,s.Ua=0,s.V=a(S),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(x.ic=0,s=ii(s,x.c)),!s))break e;s=1;break t}x.mc=null,s=0}else s=Z>=x.c*x.i;x=!s}if(x)return null;i.ga.Lc!=1?i.Ga=0:m=y-f}e(i.ga!=null),e(f+m<=y);t:{if(s=(S=i.ga).c,y=S.l.o,S.$a==0){if(B=i.rc,Z=i.Vc,nt=i.Fa,E=i.P+1+f*s,M=i.mb,G=i.nb+f*s,e(E<=i.P+i.qc),S.Z!=0)for(e(Wr[S.Z]!=null),x=0;x<m;++x)Wr[S.Z](B,Z,nt,E,M,G,s),B=M,Z=G,G+=s,E+=s;else for(x=0;x<m;++x)r(M,G,nt,E,s),B=M,Z=G,G+=s,E+=s;i.rc=B,i.Vc=Z}else{if(e(S.mc!=null),s=f+m,e((x=S.mc)!=null),e(s<=x.i),x.C>=s)s=1;else if(S.ic||Re(),S.ic){S=x.V,B=x.Ba,Z=x.c;var gt=x.i,at=(nt=1,E=x.$/Z,M=x.$%Z,G=x.m,ot=x.s,x.$),mt=Z*gt,vt=Z*s,Lt=ot.wc,yt=at<vt?on(ot,M,E):null;e(at<=mt),e(s<=gt),e(Gn(ot));e:for(;;){for(;!G.h&&at<vt;){if(M&Lt||(yt=on(ot,M,E)),e(yt!=null),rt(G),256>(gt=De(yt.G[0],yt.H[0],G)))S[B+at]=gt,++at,++M>=Z&&(M=0,++E<=s&&!(E%16)&&Yn(x,E));else{if(!(280>gt)){nt=0;break e}gt=Rn(gt-256,G);var Rt,Et=De(yt.G[4],yt.H[4],G);if(rt(G),!(at>=(Et=Dn(Z,Et=Rn(Et,G)))&&mt-at>=gt)){nt=0;break e}for(Rt=0;Rt<gt;++Rt)S[B+at+Rt]=S[B+at+Rt-Et];for(at+=gt,M+=gt;M>=Z;)M-=Z,++E<=s&&!(E%16)&&Yn(x,E);at<vt&&M&Lt&&(yt=on(ot,M,E))}e(G.h==W(G))}Yn(x,E>s?s:E);break e}!nt||G.h&&at<mt?(nt=0,x.a=G.h?5:3):x.$=at,s=nt}else s=$n(x,x.V,x.Ba,x.c,x.i,s,Ii);if(!s){m=0;break t}}f+m>=y&&(i.Cc=1),m=1}if(!m)return null;if(i.Cc&&((m=i.ga)!=null&&(m.mc=null),i.ga=null,0<i.Ga))return alert("todo:WebPDequantizeLevels"),null}return i.nb+f*b}function _e(i,s,f,m,b,y){for(;0<b--;){var x,S=i,E=s+(f?1:0),M=i,G=s+(f?0:3);for(x=0;x<m;++x){var ot=M[G+4*x];ot!=255&&(ot*=32897,S[E+4*x+0]=S[E+4*x+0]*ot>>23,S[E+4*x+1]=S[E+4*x+1]*ot>>23,S[E+4*x+2]=S[E+4*x+2]*ot>>23)}s+=y}}function Ae(i,s,f,m,b){for(;0<m--;){var y;for(y=0;y<f;++y){var x=i[s+2*y+0],S=15&(M=i[s+2*y+1]),E=4369*S,M=(240&M|M>>4)*E>>16;i[s+2*y+0]=(240&x|x>>4)*E>>16&240|(15&x|x<<4)*E>>16>>4&15,i[s+2*y+1]=240&M|S}s+=b}}function Ie(i,s,f,m,b,y,x,S){var E,M,G=255;for(M=0;M<b;++M){for(E=0;E<m;++E){var ot=i[s+E];y[x+4*E]=ot,G&=ot}s+=f,x+=S}return G!=255}function Be(i,s,f,m,b){var y;for(y=0;y<b;++y)f[m+y]=i[s+y]>>8}function Re(){Aa=_e,ol=Ae,sl=Ie,ll=Be}function hn(i,s,f){T[i]=function(m,b,y,x,S,E,M,G,ot,B,Z,nt,gt,at,mt,vt,Lt){var yt,Rt=Lt-1>>1,Et=S[E+0]|M[G+0]<<16,ie=ot[B+0]|Z[nt+0]<<16;e(m!=null);var jt=3*Et+ie+131074>>2;for(s(m[b+0],255&jt,jt>>16,gt,at),y!=null&&(jt=3*ie+Et+131074>>2,s(y[x+0],255&jt,jt>>16,mt,vt)),yt=1;yt<=Rt;++yt){var he=S[E+yt]|M[G+yt]<<16,tn=ot[B+yt]|Z[nt+yt]<<16,ae=Et+he+ie+tn+524296,Tt=ae+2*(he+ie)>>3;jt=Tt+Et>>1,Et=(ae=ae+2*(Et+tn)>>3)+he>>1,s(m[b+2*yt-1],255&jt,jt>>16,gt,at+(2*yt-1)*f),s(m[b+2*yt-0],255&Et,Et>>16,gt,at+(2*yt-0)*f),y!=null&&(jt=ae+ie>>1,Et=Tt+tn>>1,s(y[x+2*yt-1],255&jt,jt>>16,mt,vt+(2*yt-1)*f),s(y[x+2*yt+0],255&Et,Et>>16,mt,vt+(2*yt+0)*f)),Et=he,ie=tn}1&Lt||(jt=3*Et+ie+131074>>2,s(m[b+Lt-1],255&jt,jt>>16,gt,at+(Lt-1)*f),y!=null&&(jt=3*ie+Et+131074>>2,s(y[x+Lt-1],255&jt,jt>>16,mt,vt+(Lt-1)*f)))}}function Nr(){Wn[ao]=nf,Wn[oo]=wl,Wn[pl]=rf,Wn[so]=yl,Wn[lo]=xl,Wn[rs]=Al,Wn[gl]=af,Wn[is]=wl,Wn[as]=yl,Wn[uo]=xl,Wn[os]=Al}function ga(i){return i&-16384?0>i?0:255:i>>of}function li(i,s){return ga((19077*i>>8)+(26149*s>>8)-14234)}function ui(i,s,f){return ga((19077*i>>8)-(6419*s>>8)-(13320*f>>8)+8708)}function Rr(i,s){return ga((19077*i>>8)+(33050*s>>8)-17685)}function ci(i,s,f,m,b){m[b+0]=li(i,f),m[b+1]=ui(i,s,f),m[b+2]=Rr(i,s)}function Hi(i,s,f,m,b){m[b+0]=Rr(i,s),m[b+1]=ui(i,s,f),m[b+2]=li(i,f)}function Wi(i,s,f,m,b){var y=ui(i,s,f);s=y<<3&224|Rr(i,s)>>3,m[b+0]=248&li(i,f)|y>>5,m[b+1]=s}function dn(i,s,f,m,b){var y=240&Rr(i,s)|15;m[b+0]=240&li(i,f)|ui(i,s,f)>>4,m[b+1]=y}function fi(i,s,f,m,b){m[b+0]=255,ci(i,s,f,m,b+1)}function hi(i,s,f,m,b){Hi(i,s,f,m,b),m[b+3]=255}function ma(i,s,f,m,b){ci(i,s,f,m,b),m[b+3]=255}function cr(i,s,f){T[i]=function(m,b,y,x,S,E,M,G,ot){for(var B=G+(-2&ot)*f;G!=B;)s(m[b+0],y[x+0],S[E+0],M,G),s(m[b+1],y[x+0],S[E+0],M,G+f),b+=2,++x,++E,G+=2*f;1&ot&&s(m[b+0],y[x+0],S[E+0],M,G)}}function yn(i,s,f){return f==0?i==0?s==0?6:5:s==0?4:0:f}function eo(i,s,f,m,b){switch(i>>>30){case 3:Sr(s,f,m,b,0);break;case 2:zr(s,f,m,b);break;case 1:pn(s,f,m,b)}}function Vi(i,s){var f,m,b=s.M,y=s.Nb,x=i.oc,S=i.pc+40,E=i.oc,M=i.pc+584,G=i.oc,ot=i.pc+600;for(f=0;16>f;++f)x[S+32*f-1]=129;for(f=0;8>f;++f)E[M+32*f-1]=129,G[ot+32*f-1]=129;for(0<b?x[S-1-32]=E[M-1-32]=G[ot-1-32]=129:(o(x,S-32-1,127,21),o(E,M-32-1,127,9),o(G,ot-32-1,127,9)),m=0;m<i.za;++m){var B=s.ya[s.aa+m];if(0<m){for(f=-1;16>f;++f)r(x,S+32*f-4,x,S+32*f+12,4);for(f=-1;8>f;++f)r(E,M+32*f-4,E,M+32*f+4,4),r(G,ot+32*f-4,G,ot+32*f+4,4)}var Z=i.Gd,nt=i.Hd+m,gt=B.ad,at=B.Hc;if(0<b&&(r(x,S-32,Z[nt].y,0,16),r(E,M-32,Z[nt].f,0,8),r(G,ot-32,Z[nt].ea,0,8)),B.Za){var mt=x,vt=S-32+16;for(0<b&&(m>=i.za-1?o(mt,vt,Z[nt].y[15],4):r(mt,vt,Z[nt+1].y,0,4)),f=0;4>f;f++)mt[vt+128+f]=mt[vt+256+f]=mt[vt+384+f]=mt[vt+0+f];for(f=0;16>f;++f,at<<=2)mt=x,vt=S+Ll[f],Xn[B.Ob[f]](mt,vt),eo(at,gt,16*+f,mt,vt)}else if(mt=yn(m,b,B.Ob[0]),Hr[mt](x,S),at!=0)for(f=0;16>f;++f,at<<=2)eo(at,gt,16*+f,x,S+Ll[f]);for(f=B.Gc,mt=yn(m,b,B.Dd),Pr[mt](E,M),Pr[mt](G,ot),at=gt,mt=E,vt=M,255&(B=0|f)&&(170&B?Xi(at,256,mt,vt):hr(at,256,mt,vt)),B=G,at=ot,255&(f>>=8)&&(170&f?Xi(gt,320,B,at):hr(gt,320,B,at)),b<i.Ub-1&&(r(Z[nt].y,0,x,S+480,16),r(Z[nt].f,0,E,M+224,8),r(Z[nt].ea,0,G,ot+224,8)),f=8*y*i.B,Z=i.sa,nt=i.ta+16*m+16*y*i.R,gt=i.qa,B=i.ra+8*m+f,at=i.Ha,mt=i.Ia+8*m+f,f=0;16>f;++f)r(Z,nt+f*i.R,x,S+32*f,16);for(f=0;8>f;++f)r(gt,B+f*i.B,E,M+32*f,8),r(at,mt+f*i.B,G,ot+32*f,8)}}function no(i,s,f,m,b,y,x,S,E){var M=[0],G=[0],ot=0,B=E!=null?E.kd:0,Z=E??new tt;if(i==null||12>f)return 7;Z.data=i,Z.w=s,Z.ha=f,s=[s],f=[f],Z.gb=[Z.gb];t:{var nt=s,gt=f,at=Z.gb;if(e(i!=null),e(gt!=null),e(at!=null),at[0]=0,12<=gt[0]&&!t(i,nt[0],"RIFF")){if(t(i,nt[0]+8,"WEBP")){at=3;break t}var mt=It(i,nt[0]+4);if(12>mt||4294967286<mt){at=3;break t}if(B&&mt>gt[0]-8){at=7;break t}at[0]=mt,nt[0]+=12,gt[0]-=12}at=0}if(at!=0)return at;for(mt=0<Z.gb[0],f=f[0];;){t:{var vt=i;gt=s,at=f;var Lt=M,yt=G,Rt=nt=[0];if((jt=ot=[ot])[0]=0,8>at[0])at=7;else{if(!t(vt,gt[0],"VP8X")){if(It(vt,gt[0]+4)!=10){at=3;break t}if(18>at[0]){at=7;break t}var Et=It(vt,gt[0]+8),ie=1+_t(vt,gt[0]+12);if(2147483648<=ie*(vt=1+_t(vt,gt[0]+15))){at=3;break t}Rt!=null&&(Rt[0]=Et),Lt!=null&&(Lt[0]=ie),yt!=null&&(yt[0]=vt),gt[0]+=18,at[0]-=18,jt[0]=1}at=0}}if(ot=ot[0],nt=nt[0],at!=0)return at;if(gt=!!(2&nt),!mt&&ot)return 3;if(y!=null&&(y[0]=!!(16&nt)),x!=null&&(x[0]=gt),S!=null&&(S[0]=0),x=M[0],nt=G[0],ot&&gt&&E==null){at=0;break}if(4>f){at=7;break}if(mt&&ot||!mt&&!ot&&!t(i,s[0],"ALPH")){f=[f],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{Et=i,at=s,mt=f;var jt=Z.gb;Lt=Z.na,yt=Z.P,Rt=Z.Sa,ie=22,e(Et!=null),e(mt!=null),vt=at[0];var he=mt[0];for(e(Lt!=null),e(Rt!=null),Lt[0]=null,yt[0]=null,Rt[0]=0;;){if(at[0]=vt,mt[0]=he,8>he){at=7;break t}var tn=It(Et,vt+4);if(4294967286<tn){at=3;break t}var ae=8+tn+1&-2;if(ie+=ae,0<jt&&ie>jt){at=3;break t}if(!t(Et,vt,"VP8 ")||!t(Et,vt,"VP8L")){at=0;break t}if(he[0]<ae){at=7;break t}t(Et,vt,"ALPH")||(Lt[0]=Et,yt[0]=vt+8,Rt[0]=tn),vt+=ae,he-=ae}}if(f=f[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],at!=0)break}f=[f],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(jt=i,at=s,mt=f,Lt=Z.gb[0],yt=Z.Ja,Rt=Z.xa,Et=at[0],vt=!t(jt,Et,"VP8 "),ie=!t(jt,Et,"VP8L"),e(jt!=null),e(mt!=null),e(yt!=null),e(Rt!=null),8>mt[0])at=7;else{if(vt||ie){if(jt=It(jt,Et+4),12<=Lt&&jt>Lt-12){at=3;break t}if(B&&jt>mt[0]-8){at=7;break t}yt[0]=jt,at[0]+=8,mt[0]-=8,Rt[0]=ie}else Rt[0]=5<=mt[0]&&jt[Et+0]==47&&!(jt[Et+4]>>5),yt[0]=mt[0];at=0}if(f=f[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],at!=0)break;if(4294967286<Z.Ja)return 3;if(S==null||gt||(S[0]=Z.xa?2:1),x=[x],nt=[nt],Z.xa){if(5>f){at=7;break}S=x,B=nt,gt=y,i==null||5>f?i=0:5<=f&&i[s+0]==47&&!(i[s+4]>>5)?(mt=[0],jt=[0],Lt=[0],ct(yt=new k,i,s,f),wr(yt,mt,jt,Lt)?(S!=null&&(S[0]=mt[0]),B!=null&&(B[0]=jt[0]),gt!=null&&(gt[0]=Lt[0]),i=1):i=0):i=0}else{if(10>f){at=7;break}S=nt,i==null||10>f||!Ga(i,s+3,f-3)?i=0:(B=i[s+0]|i[s+1]<<8|i[s+2]<<16,gt=16383&(i[s+7]<<8|i[s+6]),i=16383&(i[s+9]<<8|i[s+8]),1&B||3<(B>>1&7)||!(B>>4&1)||B>>5>=Z.Ja||!gt||!i?i=0:(x&&(x[0]=gt),S&&(S[0]=i),i=1))}if(!i||(x=x[0],nt=nt[0],ot&&(M[0]!=x||G[0]!=nt)))return 3;E!=null&&(E[0]=Z,E.offset=s-E.w,e(4294967286>s-E.w),e(E.offset==E.ha-f));break}return at==0||at==7&&ot&&E==null?(y!=null&&(y[0]|=Z.na!=null&&0<Z.na.length),m!=null&&(m[0]=x),b!=null&&(b[0]=nt),0):at}function zn(i,s,f){var m=s.width,b=s.height,y=0,x=0,S=m,E=b;if(s.Da=i!=null&&0<i.Da,s.Da&&(S=i.cd,E=i.bd,y=i.v,x=i.j,11>f||(y&=-2,x&=-2),0>y||0>x||0>=S||0>=E||y+S>m||x+E>b))return 0;if(s.v=y,s.j=x,s.va=y+S,s.o=x+E,s.U=S,s.T=E,s.da=i!=null&&0<i.da,s.da){if(!Ut(S,E,f=[i.ib],y=[i.hb]))return 0;s.ib=f[0],s.hb=y[0]}return s.ob=i!=null&&i.ob,s.Kb=i==null||!i.Sd,s.da&&(s.ob=s.ib<3*m/4&&s.hb<3*b/4,s.Kb=0),1}function di(i){if(i==null)return 2;if(11>i.S){var s=i.f.RGBA;s.fb+=(i.height-1)*s.A,s.A=-s.A}else s=i.f.kb,i=i.height,s.O+=(i-1)*s.fa,s.fa=-s.fa,s.N+=(i-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(i-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(i-1)*s.lb,s.lb=-s.lb);return 0}function va(i,s,f,m){if(m==null||0>=i||0>=s)return 2;if(f!=null){if(f.Da){var b=f.cd,y=f.bd,x=-2&f.v,S=-2&f.j;if(0>x||0>S||0>=b||0>=y||x+b>i||S+y>s)return 2;i=b,s=y}if(f.da){if(!Ut(i,s,b=[f.ib],y=[f.hb]))return 2;i=b[0],s=y[0]}}m.width=i,m.height=s;t:{var E=m.width,M=m.height;if(i=m.S,0>=E||0>=M||!(i>=ao&&13>i))i=2;else{if(0>=m.Rd&&m.sd==null){x=y=b=s=0;var G=(S=E*Nl[i])*M;if(11>i||(y=(M+1)/2*(s=(E+1)/2),i==12&&(x=(b=E)*M)),(M=a(G+2*y+x))==null){i=1;break t}m.sd=M,11>i?((E=m.f.RGBA).eb=M,E.fb=0,E.A=S,E.size=G):((E=m.f.kb).y=M,E.O=0,E.fa=S,E.Fd=G,E.f=M,E.N=0+G,E.Ab=s,E.Cd=y,E.ea=M,E.W=0+G+y,E.Db=s,E.Ed=y,i==12&&(E.F=M,E.J=0+G+2*y),E.Tc=x,E.lb=b)}if(s=1,b=m.S,y=m.width,x=m.height,b>=ao&&13>b)if(11>b)i=m.f.RGBA,s&=(S=Math.abs(i.A))*(x-1)+y<=i.size,s&=S>=y*Nl[b],s&=i.eb!=null;else{i=m.f.kb,S=(y+1)/2,G=(x+1)/2,E=Math.abs(i.fa),M=Math.abs(i.Ab);var ot=Math.abs(i.Db),B=Math.abs(i.lb),Z=B*(x-1)+y;s&=E*(x-1)+y<=i.Fd,s&=M*(G-1)+S<=i.Cd,s=(s&=ot*(G-1)+S<=i.Ed)&E>=y&M>=S&ot>=S,s&=i.y!=null,s&=i.f!=null,s&=i.ea!=null,b==12&&(s&=B>=y,s&=Z<=i.Tc,s&=i.F!=null)}else s=0;i=s?0:2}}return i!=0||f!=null&&f.fd&&(i=di(m)),i}var Gi=64,pi=[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],ba=24,xn=32,Nn=8,Yi=[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];Pt("Predictor0","PredictorAdd0"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(i){return i},T.Predictor2=function(i,s,f){return s[f+0]},T.Predictor3=function(i,s,f){return s[f+1]},T.Predictor4=function(i,s,f){return s[f-1]},T.Predictor5=function(i,s,f){return qt(qt(i,s[f+1]),s[f+0])},T.Predictor6=function(i,s,f){return qt(i,s[f-1])},T.Predictor7=function(i,s,f){return qt(i,s[f+0])},T.Predictor8=function(i,s,f){return qt(s[f-1],s[f+0])},T.Predictor9=function(i,s,f){return qt(s[f+0],s[f+1])},T.Predictor10=function(i,s,f){return qt(qt(i,s[f-1]),qt(s[f+0],s[f+1]))},T.Predictor11=function(i,s,f){var m=s[f+0];return 0>=Xt(m>>24&255,i>>24&255,(s=s[f-1])>>24&255)+Xt(m>>16&255,i>>16&255,s>>16&255)+Xt(m>>8&255,i>>8&255,s>>8&255)+Xt(255&m,255&i,255&s)?m:i},T.Predictor12=function(i,s,f){var m=s[f+0];return(de((i>>24&255)+(m>>24&255)-((s=s[f-1])>>24&255))<<24|de((i>>16&255)+(m>>16&255)-(s>>16&255))<<16|de((i>>8&255)+(m>>8&255)-(s>>8&255))<<8|de((255&i)+(255&m)-(255&s)))>>>0},T.Predictor13=function(i,s,f){var m=s[f-1];return(le((i=qt(i,s[f+0]))>>24&255,m>>24&255)<<24|le(i>>16&255,m>>16&255)<<16|le(i>>8&255,m>>8&255)<<8|le(255&i,255&m))>>>0};var Dr=T.PredictorAdd0;T.PredictorAdd1=fe,Pt("Predictor2","PredictorAdd2"),Pt("Predictor3","PredictorAdd3"),Pt("Predictor4","PredictorAdd4"),Pt("Predictor5","PredictorAdd5"),Pt("Predictor6","PredictorAdd6"),Pt("Predictor7","PredictorAdd7"),Pt("Predictor8","PredictorAdd8"),Pt("Predictor9","PredictorAdd9"),Pt("Predictor10","PredictorAdd10"),Pt("Predictor11","PredictorAdd11"),Pt("Predictor12","PredictorAdd12"),Pt("Predictor13","PredictorAdd13");var qr=T.PredictorAdd2;Dt("ColorIndexInverseTransform","MapARGB","32b",function(i){return i>>8&255},function(i){return i}),Dt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(i){return i},function(i){return i>>8&255});var $i,gi=T.ColorIndexInverseTransform,Ze=T.MapARGB,es=T.VP8LColorIndexInverseTransformAlpha,fr=T.MapAlpha,Jn=T.VP8LPredictorsAdd=[];Jn.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var mi,wa,ya,Ji,vi,bi,Ur,Sr,zr,Xi,pn,hr,Pe,Ee,We,Qe,kr,xa,Ki,ro,nl,rl,il,al,Aa,ol,sl,ll,ul=a(511),cl=a(2041),fl=a(225),hl=a(767),dl=0,ns=cl,io=fl,Cn=hl,Hn=ul,ao=0,oo=1,pl=2,so=3,lo=4,rs=5,gl=6,is=7,as=8,uo=9,os=10,zc=[2,3,7],Hc=[3,3,11],ml=[280,256,256,256,40],Wc=[0,1,1,1,0],Vc=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Gc=[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],Yc=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$c=8,ss=[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],ls=[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],_a=null,Jc=[[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]],Xc=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],vl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Kc=[[[[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]]]],Zc=[[[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]]],Qc=[[[[255,255,255,255,255,255,255,255,255,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]]]],tf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Hr=[],Xn=[],Pr=[],ef=1,bl=2,Wr=[],Wn=[];hn("UpsampleRgbLinePair",ci,3),hn("UpsampleBgrLinePair",Hi,3),hn("UpsampleRgbaLinePair",ma,4),hn("UpsampleBgraLinePair",hi,4),hn("UpsampleArgbLinePair",fi,4),hn("UpsampleRgba4444LinePair",dn,2),hn("UpsampleRgb565LinePair",Wi,2);var nf=T.UpsampleRgbLinePair,rf=T.UpsampleBgrLinePair,wl=T.UpsampleRgbaLinePair,yl=T.UpsampleBgraLinePair,xl=T.UpsampleArgbLinePair,Al=T.UpsampleRgba4444LinePair,af=T.UpsampleRgb565LinePair,co=16,fo=1<<co-1,La=-227,us=482,of=6,_l=0,sf=a(256),lf=a(256),uf=a(256),cf=a(256),ff=a(us-La),hf=a(us-La);cr("YuvToRgbRow",ci,3),cr("YuvToBgrRow",Hi,3),cr("YuvToRgbaRow",ma,4),cr("YuvToBgraRow",hi,4),cr("YuvToArgbRow",fi,4),cr("YuvToRgba4444Row",dn,2),cr("YuvToRgb565Row",Wi,2);var Ll=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ho=[0,2,8],df=[8,7,6,4,4,2,2,2,1,1,1,1],pf=1;this.WebPDecodeRGBA=function(i,s,f,m,b){var y=oo,x=new H,S=new ue;x.ba=S,S.S=y,S.width=[S.width],S.height=[S.height];var E=S.width,M=S.height,G=new Vt;if(G==null||i==null)var ot=2;else e(G!=null),ot=no(i,s,f,G.width,G.height,G.Pd,G.Qd,G.format,null);if(ot!=0?E=0:(E!=null&&(E[0]=G.width[0]),M!=null&&(M[0]=G.height[0]),E=1),E){S.width=S.width[0],S.height=S.height[0],m!=null&&(m[0]=S.width),b!=null&&(b[0]=S.height);t:{if(m=new ji,(b=new tt).data=i,b.w=s,b.ha=f,b.kd=1,s=[0],e(b!=null),((i=no(b.data,b.w,b.ha,null,null,null,s,null,b))==0||i==7)&&s[0]&&(i=4),(s=i)==0){if(e(x!=null),m.data=b.data,m.w=b.w+b.offset,m.ha=b.ha-b.offset,m.put=Gt,m.ac=rr,m.bc=br,m.ma=x,b.xa){if((i=ri())==null){x=1;break t}if((function(B,Z){var nt=[0],gt=[0],at=[0];e:for(;;){if(B==null)return 0;if(Z==null)return B.a=2,0;if(B.l=Z,B.a=0,ct(B.m,Z.data,Z.w,Z.ha),!wr(B.m,nt,gt,at)){B.a=3;break e}if(B.xb=bl,Z.width=nt[0],Z.height=gt[0],!ar(nt[0],gt[0],1,B,null))break e;return 1}return e(B.a!=0),0})(i,m)){if(m=(s=va(m.width,m.height,x.Oa,x.ba))==0){e:{m=i;n:for(;;){if(m==null){m=0;break e}if(e(m.s.yc!=null),e(m.s.Ya!=null),e(0<m.s.Wb),e((f=m.l)!=null),e((b=f.ma)!=null),m.xb!=0){if(m.ca=b.ba,m.tb=b.tb,e(m.ca!=null),!zn(b.Oa,f,so)){m.a=2;break n}if(!ii(m,f.width)||f.da)break n;if((f.da||Yt(m.ca.S))&&Re(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&Re()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!I(m.s.vb,m.s.Wa.Xa)){m.a=1;break n}m.xb=0}if(!$n(m,m.V,m.Ba,m.c,m.i,f.o,jr))break n;b.Dc=m.Ma,m=1;break e}e(m.a!=0),m=0}m=!m}m&&(s=i.a)}else s=i.a}else{if((i=new Ro)==null){x=1;break t}if(i.Fa=b.na,i.P=b.P,i.qc=b.Sa,sr(i,m)){if((s=va(m.width,m.height,x.Oa,x.ba))==0){if(i.Aa=0,f=x.Oa,e((b=i)!=null),f!=null){if(0<(E=0>(E=f.Md)?0:100<E?255:255*E/100)){for(M=G=0;4>M;++M)12>(ot=b.pb[M]).lc&&(ot.ia=E*df[0>ot.lc?0:ot.lc]>>3),G|=ot.ia;G&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=f.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(B,Z){if(B==null)return 0;if(Z==null)return Xe(B,2,"NULL VP8Io parameter in VP8Decode().");if(!B.cb&&!sr(B,Z))return 0;if(e(B.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(B.L=0);var nt=ho[B.L];if(B.L==2?(B.yb=0,B.zb=0):(B.yb=Z.v-nt>>4,B.zb=Z.j-nt>>4,0>B.yb&&(B.yb=0),0>B.zb&&(B.zb=0)),B.Va=Z.o+15+nt>>4,B.Hb=Z.va+15+nt>>4,B.Hb>B.za&&(B.Hb=B.za),B.Va>B.Ub&&(B.Va=B.Ub),0<B.L){var gt=B.ed;for(nt=0;4>nt;++nt){var at;if(B.Qa.Cb){var mt=B.Qa.Lb[nt];B.Qa.Fb||(mt+=gt.Tb)}else mt=gt.Tb;for(at=0;1>=at;++at){var vt=B.gd[nt][at],Lt=mt;if(gt.Pc&&(Lt+=gt.vd[0],at&&(Lt+=gt.od[0])),0<(Lt=0>Lt?0:63<Lt?63:Lt)){var yt=Lt;0<gt.wb&&(yt=4<gt.wb?yt>>2:yt>>1)>9-gt.wb&&(yt=9-gt.wb),1>yt&&(yt=1),vt.dd=yt,vt.tc=2*Lt+yt,vt.ld=40<=Lt?2:15<=Lt?1:0}else vt.tc=0;vt.La=at}}}nt=0}else Xe(B,6,"Frame setup failed"),nt=B.a;if(nt=nt==0){if(nt){B.$c=0,0<B.Aa||(B.Ic=pf);e:{nt=B.Ic,gt=4*(yt=B.za);var Rt=32*yt,Et=yt+1,ie=0<B.L?yt*(0<B.Aa?2:1):0,jt=(B.Aa==2?2:1)*yt;if((vt=gt+832+(at=3*(16*nt+ho[B.L])/2*Rt)+(mt=B.Fa!=null&&0<B.Fa.length?B.Kc.c*B.Kc.i:0))!=vt)nt=0;else{if(vt>B.Vb){if(B.Vb=0,B.Ec=a(vt),B.Fc=0,B.Ec==null){nt=Xe(B,1,"no memory during frame initialization.");break e}B.Vb=vt}vt=B.Ec,Lt=B.Fc,B.Ac=vt,B.Bc=Lt,Lt+=gt,B.Gd=h(Rt,Wa),B.Hd=0,B.rb=h(Et+1,oa),B.sb=1,B.wa=ie?h(ie,Un):null,B.Y=0,B.D.Nb=0,B.D.wa=B.wa,B.D.Y=B.Y,0<B.Aa&&(B.D.Y+=yt),e(!0),B.oc=vt,B.pc=Lt,Lt+=832,B.ya=h(jt,sa),B.aa=0,B.D.ya=B.ya,B.D.aa=B.aa,B.Aa==2&&(B.D.aa+=yt),B.R=16*yt,B.B=8*yt,yt=(Rt=ho[B.L])*B.R,Rt=Rt/2*B.B,B.sa=vt,B.ta=Lt+yt,B.qa=B.sa,B.ra=B.ta+16*nt*B.R+Rt,B.Ha=B.qa,B.Ia=B.ra+8*nt*B.B+Rt,B.$c=0,Lt+=at,B.mb=mt?vt:null,B.nb=mt?Lt:null,e(Lt+mt<=B.Fc+B.Vb),la(B),o(B.Ac,B.Bc,0,gt),nt=1}}if(nt){if(Z.ka=0,Z.y=B.sa,Z.O=B.ta,Z.f=B.qa,Z.N=B.ra,Z.ea=B.Ha,Z.Vd=B.Ia,Z.fa=B.R,Z.Rc=B.B,Z.F=null,Z.J=0,!dl){for(nt=-255;255>=nt;++nt)ul[255+nt]=0>nt?-nt:nt;for(nt=-1020;1020>=nt;++nt)cl[1020+nt]=-128>nt?-128:127<nt?127:nt;for(nt=-112;112>=nt;++nt)fl[112+nt]=-16>nt?-16:15<nt?15:nt;for(nt=-255;510>=nt;++nt)hl[255+nt]=0>nt?0:255<nt?255:nt;dl=1}Ur=$a,Sr=Do,Xi=qo,pn=Uo,hr=lr,zr=Ya,Pe=Ka,Ee=Za,We=to,Qe=u,kr=Qa,xa=si,Ki=v,ro=O,nl=Ui,rl=pa,il=zi,al=Xa,Xn[0]=$o,Xn[1]=Ri,Xn[2]=Go,Xn[3]=Yo,Xn[4]=Jo,Xn[5]=xr,Xn[6]=Xo,Xn[7]=Ar,Xn[8]=Zo,Xn[9]=Ko,Hr[0]=Ja,Hr[1]=zo,Hr[2]=Ho,Hr[3]=Wo,Hr[4]=Mr,Hr[5]=Vo,Hr[6]=ai,Pr[0]=Qo,Pr[1]=ua,Pr[2]=Di,Pr[3]=ca,Pr[4]=ts,Pr[5]=qi,Pr[6]=fa,nt=1}else nt=0}nt&&(nt=(function(he,tn){for(he.M=0;he.M<he.Va;++he.M){var ae,Tt=he.Jc[he.M&he.Xb],St=he.m,Ve=he;for(ae=0;ae<Ve.za;++ae){var ee=St,ge=Ve,Fe=ge.Ac,ln=ge.Bc+4*ae,An=ge.zc,qe=ge.ya[ge.aa+ae];if(ge.Qa.Bb?qe.$b=ft(ee,ge.Pa.jb[0])?2+ft(ee,ge.Pa.jb[2]):ft(ee,ge.Pa.jb[1]):qe.$b=0,ge.kc&&(qe.Ad=ft(ee,ge.Bd)),qe.Za=!ft(ee,145)+0,qe.Za){var gn=qe.Ob,_n=0;for(ge=0;4>ge;++ge){var en,ve=An[0+ge];for(en=0;4>en;++en){ve=Zc[Fe[ln+en]][ve];for(var we=vl[ft(ee,ve[0])];0<we;)we=vl[2*we+ft(ee,ve[we])];ve=-we,Fe[ln+en]=ve}r(gn,_n,Fe,ln,4),_n+=4,An[0+ge]=ve}}else ve=ft(ee,156)?ft(ee,128)?1:3:ft(ee,163)?2:0,qe.Ob[0]=ve,o(Fe,ln,ve,4),o(An,0,ve,4);qe.Dd=ft(ee,142)?ft(ee,114)?ft(ee,183)?1:3:2:0}if(Ve.m.Ka)return Xe(he,7,"Premature end-of-partition0 encountered.");for(;he.ja<he.za;++he.ja){if(Ve=Tt,ee=(St=he).rb[St.sb-1],Fe=St.rb[St.sb+St.ja],ae=St.ya[St.aa+St.ja],ln=St.kc?ae.Ad:0)ee.la=Fe.la=0,ae.Za||(ee.Na=Fe.Na=0),ae.Hc=0,ae.Gc=0,ae.ia=0;else{var Ue,ye;if(ee=Fe,Fe=Ve,ln=St.Pa.Xc,An=St.ya[St.aa+St.ja],qe=St.pb[An.$b],ge=An.ad,gn=0,_n=St.rb[St.sb-1],ve=en=0,o(ge,gn,0,384),An.Za)var un=0,Kn=ln[3];else{we=a(16);var Ge=ee.Na+_n.Na;if(Ge=_a(Fe,ln[1],Ge,qe.Eb,0,we,0),ee.Na=_n.Na=(0<Ge)+0,1<Ge)Ur(we,0,ge,gn);else{var Sn=we[0]+3>>3;for(we=0;256>we;we+=16)ge[gn+we]=Sn}un=1,Kn=ln[0]}var Le=15&ee.la,nn=15&_n.la;for(we=0;4>we;++we){var In=1&nn;for(Sn=ye=0;4>Sn;++Sn)Le=Le>>1|(In=(Ge=_a(Fe,Kn,Ge=In+(1&Le),qe.Sc,un,ge,gn))>un)<<7,ye=ye<<2|(3<Ge?3:1<Ge?2:ge[gn+0]!=0),gn+=16;Le>>=4,nn=nn>>1|In<<7,en=(en<<8|ye)>>>0}for(Kn=Le,un=nn>>4,Ue=0;4>Ue;Ue+=2){for(ye=0,Le=ee.la>>4+Ue,nn=_n.la>>4+Ue,we=0;2>we;++we){for(In=1&nn,Sn=0;2>Sn;++Sn)Ge=In+(1&Le),Le=Le>>1|(In=0<(Ge=_a(Fe,ln[2],Ge,qe.Qc,0,ge,gn)))<<3,ye=ye<<2|(3<Ge?3:1<Ge?2:ge[gn+0]!=0),gn+=16;Le>>=2,nn=nn>>1|In<<5}ve|=ye<<4*Ue,Kn|=Le<<4<<Ue,un|=(240&nn)<<Ue}ee.la=Kn,_n.la=un,An.Hc=en,An.Gc=ve,An.ia=43690&ve?0:qe.ia,ln=!(en|ve)}if(0<St.L&&(St.wa[St.Y+St.ja]=St.gd[ae.$b][ae.Za],St.wa[St.Y+St.ja].La|=!ln),Ve.Ka)return Xe(he,7,"Premature end-of-file encountered.")}if(la(he),St=tn,Ve=1,ae=(Tt=he).D,ee=0<Tt.L&&Tt.M>=Tt.zb&&Tt.M<=Tt.Va,Tt.Aa==0)e:{if(ae.M=Tt.M,ae.uc=ee,Vi(Tt,ae),Ve=1,ae=(ye=Tt.D).Nb,ee=(ve=ho[Tt.L])*Tt.R,Fe=ve/2*Tt.B,we=16*ae*Tt.R,Sn=8*ae*Tt.B,ln=Tt.sa,An=Tt.ta-ee+we,qe=Tt.qa,ge=Tt.ra-Fe+Sn,gn=Tt.Ha,_n=Tt.Ia-Fe+Sn,nn=(Le=ye.M)==0,en=Le>=Tt.Va-1,Tt.Aa==2&&Vi(Tt,ye),ye.uc)for(In=(Ge=Tt).D.M,e(Ge.D.uc),ye=Ge.yb;ye<Ge.Hb;++ye){un=ye,Kn=In;var Ln=(Fn=(cn=Ge).D).Nb;Ue=cn.R;var Fn=Fn.wa[Fn.Y+un],On=cn.sa,kn=cn.ta+16*Ln*Ue+16*un,jn=Fn.dd,Ce=Fn.tc;if(Ce!=0)if(e(3<=Ce),cn.L==1)0<un&&rl(On,kn,Ue,Ce+4),Fn.La&&al(On,kn,Ue,Ce),0<Kn&&nl(On,kn,Ue,Ce+4),Fn.La&&il(On,kn,Ue,Ce);else{var Tn=cn.B,Zn=cn.qa,wi=cn.ra+8*Ln*Tn+8*un,Er=cn.Ha,cn=cn.Ia+8*Ln*Tn+8*un;Ln=Fn.ld,0<un&&(Ee(On,kn,Ue,Ce+4,jn,Ln),Qe(Zn,wi,Er,cn,Tn,Ce+4,jn,Ln)),Fn.La&&(xa(On,kn,Ue,Ce,jn,Ln),ro(Zn,wi,Er,cn,Tn,Ce,jn,Ln)),0<Kn&&(Pe(On,kn,Ue,Ce+4,jn,Ln),We(Zn,wi,Er,cn,Tn,Ce+4,jn,Ln)),Fn.La&&(kr(On,kn,Ue,Ce,jn,Ln),Ki(Zn,wi,Er,cn,Tn,Ce,jn,Ln))}}if(Tt.ia&&alert("todo:DitherRow"),St.put!=null){if(ye=16*Le,Le=16*(Le+1),nn?(St.y=Tt.sa,St.O=Tt.ta+we,St.f=Tt.qa,St.N=Tt.ra+Sn,St.ea=Tt.Ha,St.W=Tt.Ia+Sn):(ye-=ve,St.y=ln,St.O=An,St.f=qe,St.N=ge,St.ea=gn,St.W=_n),en||(Le-=ve),Le>St.o&&(Le=St.o),St.F=null,St.J=null,Tt.Fa!=null&&0<Tt.Fa.length&&ye<Le&&(St.J=Ke(Tt,St,ye,Le-ye),St.F=Tt.mb,St.F==null&&St.F.length==0)){Ve=Xe(Tt,3,"Could not decode alpha data.");break e}ye<St.j&&(ve=St.j-ye,ye=St.j,e(!(1&ve)),St.O+=Tt.R*ve,St.N+=Tt.B*(ve>>1),St.W+=Tt.B*(ve>>1),St.F!=null&&(St.J+=St.width*ve)),ye<Le&&(St.O+=St.v,St.N+=St.v>>1,St.W+=St.v>>1,St.F!=null&&(St.J+=St.v),St.ka=ye-St.j,St.U=St.va-St.v,St.T=Le-ye,Ve=St.put(St))}ae+1!=Tt.Ic||en||(r(Tt.sa,Tt.ta-ee,ln,An+16*Tt.R,ee),r(Tt.qa,Tt.ra-Fe,qe,ge+8*Tt.B,Fe),r(Tt.Ha,Tt.Ia-Fe,gn,_n+8*Tt.B,Fe))}if(!Ve)return Xe(he,6,"Output aborted.")}return 1})(B,Z)),Z.bc!=null&&Z.bc(Z),nt&=1}return nt?(B.cb=0,nt):0})(i,m)||(s=i.a)}}else s=i.a}s==0&&x.Oa!=null&&x.Oa.fd&&(s=di(x.ba))}x=s}y=x!=0?null:11>y?S.f.RGBA.eb:S.f.kb.y}else y=null;return y};var Nl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(T,V){for(var A="",N=0;N<4;N++)A+=String.fromCharCode(T[V++]);return A}function g(T,V){return T[V+0]|T[V+1]<<8}function L(T,V){return(T[V+0]|T[V+1]<<8|T[V+2]<<16)>>>0}function P(T,V){return(T[V+0]|T[V+1]<<8|T[V+2]<<16|T[V+3]<<24)>>>0}new c;var p=[0],R=[0],j=[],U=new c,C=n,J=(function(T,V){var A={},N=0,_=!1,F=0,Y=0;if(A.frames=[],!(function(w,k){for(var q=0;q<4;q++)if(w[k+q]!="RIFF".charCodeAt(q))return!0;return!1})(T,V)){for(P(T,V+=4),V+=8;V<T.length;){var $=d(T,V),it=P(T,V+=4);V+=4;var et=it+(1&it);switch($){case"VP8 ":case"VP8L":A.frames[N]===void 0&&(A.frames[N]={}),(ht=A.frames[N]).src_off=_?Y:V-8,ht.src_size=F+it+8,N++,_&&(_=!1,F=0,Y=0);break;case"VP8X":(ht=A.header={}).feature_flags=T[V];var ct=V+4;ht.canvas_width=1+L(T,ct),ct+=3,ht.canvas_height=1+L(T,ct),ct+=3;break;case"ALPH":_=!0,F=et+8,Y=V-8;break;case"ANIM":(ht=A.header).bgcolor=P(T,V),ct=V+4,ht.loop_count=g(T,ct),ct+=2;break;case"ANMF":var dt,ht;(ht=A.frames[N]={}).offset_x=2*L(T,V),V+=3,ht.offset_y=2*L(T,V),V+=3,ht.width=1+L(T,V),V+=3,ht.height=1+L(T,V),V+=3,ht.duration=L(T,V),V+=3,dt=T[V++],ht.dispose=1&dt,ht.blend=dt>>1&1}$!="ANMF"&&(V+=et)}return A}})(C,0);J.response=C,J.rgbaoutput=!0,J.dataurl=!1;var X=J.header?J.header:null,z=J.frames?J.frames:null;if(X){X.loop_counter=X.loop_count,p=[X.canvas_height],R=[X.canvas_width];for(var ut=0;ut<z.length&&z[ut].blend!=0;ut++);}var bt=z[0],Q=U.WebPDecodeRGBA(C,bt.src_off,bt.src_size,R,p);bt.rgba=Q,bt.imgwidth=R[0],bt.imgheight=p[0];for(var D=0;D<R[0]*p[0]*4;D++)j[D]=Q[D];return this.width=R,this.height=p,this.data=j,this}/** ====================================================================
110
+ * @license
111
+ * jsPDF XMP metadata plugin
112
+ * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
113
+ *
114
+ * Permission is hereby granted, free of charge, to any person obtaining
115
+ * a copy of this software and associated documentation files (the
116
+ * "Software"), to deal in the Software without restriction, including
117
+ * without limitation the rights to use, copy, modify, merge, publish,
118
+ * distribute, sublicense, and/or sell copies of the Software, and to
119
+ * permit persons to whom the Software is furnished to do so, subject to
120
+ * the following conditions:
121
+ *
122
+ * The above copyright notice and this permission notice shall be
123
+ * included in all copies or substantial portions of the Software.
124
+ *
125
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
126
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
127
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
128
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
129
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
130
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
131
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
132
+ * ====================================================================
133
+ */function a2(){var n,e=this.internal.__metadata__.metadata,t=unescape(encodeURIComponent(e));n=this.internal.__metadata__.rawXml?t:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function o2(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var e,t,r,o,a,h,l,c,d,g=function(w){return w=w||{},this.isStrokeTransparent=w.isStrokeTransparent||!1,this.strokeOpacity=w.strokeOpacity||1,this.strokeStyle=w.strokeStyle||"#000000",this.fillStyle=w.fillStyle||"#000000",this.isFillTransparent=w.isFillTransparent||!1,this.fillOpacity=w.fillOpacity||1,this.font=w.font||"10px sans-serif",this.textBaseline=w.textBaseline||"alphabetic",this.textAlign=w.textAlign||"left",this.lineWidth=w.lineWidth||1,this.lineJoin=w.lineJoin||"miter",this.lineCap=w.lineCap||"butt",this.path=w.path||[],this.transform=w.transform!==void 0?w.transform.clone():new c,this.globalCompositeOperation=w.globalCompositeOperation||"normal",this.globalAlpha=w.globalAlpha||1,this.clip_path=w.clip_path||[],this.currentPoint=w.currentPoint||new h,this.miterLimit=w.miterLimit||10,this.lastPoint=w.lastPoint||new h,this.lineDashOffset=w.lineDashOffset||0,this.lineDash=w.lineDash||[],this.margin=w.margin||[0,0,0,0],this.prevPageLastElemOffset=w.prevPageLastElemOffset||0,this.ignoreClearRect=typeof w.ignoreClearRect!="boolean"||w.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new L(this),e=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,d=new g}]);var L=function(w){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var k=w;Object.defineProperty(this,"pdf",{get:function(){return k}});var q=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return q},set:function(I){q=!!I}});var W=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return W},set:function(I){W=!!I}});var K=0;Object.defineProperty(this,"posX",{get:function(){return K},set:function(I){isNaN(I)||(K=I)}});var rt=0;Object.defineProperty(this,"posY",{get:function(){return rt},set:function(I){isNaN(I)||(rt=I)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(I){var kt;typeof I=="number"?kt=[I,I,I,I]:((kt=new Array(4))[0]=I[0],kt[1]=I.length>=2?I[1]:kt[0],kt[2]=I.length>=3?I[2]:kt[0],kt[3]=I.length>=4?I[3]:kt[1]),d.margin=kt}});var lt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return lt},set:function(I){lt=I}});var st=0;Object.defineProperty(this,"lastBreak",{get:function(){return st},set:function(I){st=I}});var ft=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ft},set:function(I){ft=I}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(I){I instanceof g&&(d=I)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(I){d.path=I}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(I){xt=I}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(I){var kt;kt=P(I),this.ctx.fillStyle=kt.style,this.ctx.isFillTransparent=kt.a===0,this.ctx.fillOpacity=kt.a,this.pdf.setFillColor(kt.r,kt.g,kt.b,{a:kt.a}),this.pdf.setTextColor(kt.r,kt.g,kt.b,{a:kt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(I){var kt=P(I);this.ctx.strokeStyle=kt.style,this.ctx.isStrokeTransparent=kt.a===0,this.ctx.strokeOpacity=kt.a,kt.a===0?this.pdf.setDrawColor(255,255,255):(kt.a,this.pdf.setDrawColor(kt.r,kt.g,kt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(I){["butt","round","square"].indexOf(I)!==-1&&(this.ctx.lineCap=I,this.pdf.setLineCap(I))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(I){isNaN(I)||(this.ctx.lineWidth=I,this.pdf.setLineWidth(I))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(I){["bevel","round","miter"].indexOf(I)!==-1&&(this.ctx.lineJoin=I,this.pdf.setLineJoin(I))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(I){isNaN(I)||(this.ctx.miterLimit=I,this.pdf.setMiterLimit(I))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(I){this.ctx.textBaseline=I}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(I){["right","end","center","left","start"].indexOf(I)!==-1&&(this.ctx.textAlign=I)}});var Nt=null,_t=null,It=null;Object.defineProperty(this,"fontFaces",{get:function(){return It},set:function(I){Nt=null,_t=null,It=I}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(I){var kt;if(this.ctx.font=I,(kt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(I))!==null){var ne=kt[1];kt[2];var Ut=kt[3],At=kt[4];kt[5];var zt=kt[6],Pt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(At)[2];At=Math.floor(Pt==="px"?parseFloat(At)*this.pdf.internal.scaleFactor:Pt==="em"?parseFloat(At)*this.pdf.getFontSize():parseFloat(At)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(At);var Ht=(function(Dt){var He,me,oe=[],se=Dt.trim();if(se==="")return Bs;if(se in Mu)return[Mu[se]];for(;se!=="";){switch(me=null,He=(se=Ru(se)).charAt(0)){case'"':case"'":me=Q1(se.substring(1),He);break;default:me=t2(se)}if(me===null||(oe.push(me[0]),(se=Ru(me[1]))!==""&&se.charAt(0)!==","))return Bs;se=se.replace(/^,/,"")}return oe})(zt);if(this.fontFaces){var qt=(function(Dt,He){var me=Dt.getFontList(),oe=JSON.stringify(me);if(Nt===null||_t!==oe){var se=(function(je){var Wt=[];return Object.keys(je).forEach(function(ke){je[ke].forEach(function(Yt){var Qt=null;switch(Yt){case"bold":Qt={family:ke,weight:"bold"};break;case"italic":Qt={family:ke,style:"italic"};break;case"bolditalic":Qt={family:ke,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:ke}}Qt!==null&&(Qt.ref={name:ke,style:Yt},Wt.push(Qt))})}),Wt})(me);Nt=(function(je){for(var Wt={},ke=0;ke<je.length;++ke){var Yt=Ms(je[ke]),Qt=Yt.family,Te=Yt.stretch,ue=Yt.style,Vt=Yt.weight;Wt[Qt]=Wt[Qt]||{},Wt[Qt][Te]=Wt[Qt][Te]||{},Wt[Qt][Te][ue]=Wt[Qt][Te][ue]||{},Wt[Qt][Te][ue][Vt]=Yt}return Wt})(se.concat(He)),_t=oe}return Nt})(this.pdf,this.fontFaces),de=Ht.map(function(Dt){return{family:Dt,stretch:"normal",weight:Ut,style:ne}}),le=(function(Dt,He,me){for(var oe=(me=me||{}).defaultFontFamily||"times",se=Object.assign({},Z1,me.genericFontFamilies||{}),je=null,Wt=null,ke=0;ke<He.length;++ke)if(se[(je=Ms(He[ke])).family]&&(je.family=se[je.family]),Dt.hasOwnProperty(je.family)){Wt=Dt[je.family];break}if(!(Wt=Wt||Dt[oe]))throw new Error("Could not find a font-family for the rule '"+Bu(je)+"' and default family '"+oe+"'.");if(Wt=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];var Te=Xs[Yt],ue=Te<=Xs.normal?-1:1,Vt=Tu(Qt,Bc,Te,ue);if(!Vt)throw new Error("Could not find a matching font-stretch value for "+Yt);return Vt})(je.stretch,Wt),Wt=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];for(var Te=Mc[Yt],ue=0;ue<Te.length;++ue)if(Qt[Te[ue]])return Qt[Te[ue]];throw new Error("Could not find a matching font-style for "+Yt)})(je.style,Wt),!(Wt=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];if(Yt===400&&Qt[500])return Qt[500];if(Yt===500&&Qt[400])return Qt[400];var Te=K1[Yt],ue=Tu(Qt,Rc,Te,Yt<400?-1:1);if(!ue)throw new Error("Could not find a matching font-weight for value "+Yt);return ue})(je.weight,Wt)))throw new Error("Failed to resolve a font for the rule '"+Bu(je)+"'.");return Wt})(qt,de);this.pdf.setFont(le.ref.name,le.ref.style)}else{var Xt="";(Ut==="bold"||parseInt(Ut,10)>=700||ne==="bold")&&(Xt="bold"),ne==="italic"&&(Xt+="italic"),Xt.length===0&&(Xt="normal");for(var fe="",ce={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"},Mt=0;Mt<Ht.length;Mt++){if(this.pdf.internal.getFont(Ht[Mt],Xt,{noFallback:!0,disableWarning:!0})!==void 0){fe=Ht[Mt];break}if(Xt==="bolditalic"&&this.pdf.internal.getFont(Ht[Mt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)fe=Ht[Mt],Xt="bold";else if(this.pdf.internal.getFont(Ht[Mt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){fe=Ht[Mt],Xt="normal";break}}if(fe===""){for(var re=0;re<Ht.length;re++)if(ce[Ht[re]]){fe=ce[Ht[re]];break}}fe=fe===""?"Times":fe,this.pdf.setFont(fe,Xt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(I){this.ctx.globalCompositeOperation=I}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(I){this.ctx.globalAlpha=I}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(I){this.ctx.lineDashOffset=I,ht.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(I){this.ctx.lineDash=I,ht.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(I){this.ctx.ignoreClearRect=!!I}})};L.prototype.setLineDash=function(w){this.lineDash=w},L.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},L.prototype.fill=function(){z.call(this,"fill",!1)},L.prototype.stroke=function(){z.call(this,"stroke",!1)},L.prototype.beginPath=function(){this.path=[{type:"begin"}]},L.prototype.moveTo=function(w,k){if(isNaN(w)||isNaN(k))throw Ne.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var q=this.ctx.transform.applyToPoint(new h(w,k));this.path.push({type:"mt",x:q.x,y:q.y}),this.ctx.lastPoint=new h(w,k)},L.prototype.closePath=function(){var w=new h(0,0),k=0;for(k=this.path.length-1;k!==-1;k--)if(this.path[k].type==="begin"&&Se(this.path[k+1])==="object"&&typeof this.path[k+1].x=="number"){w=new h(this.path[k+1].x,this.path[k+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(w.x,w.y)},L.prototype.lineTo=function(w,k){if(isNaN(w)||isNaN(k))throw Ne.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var q=this.ctx.transform.applyToPoint(new h(w,k));this.path.push({type:"lt",x:q.x,y:q.y}),this.ctx.lastPoint=new h(q.x,q.y)},L.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),z.call(this,null,!0)},L.prototype.quadraticCurveTo=function(w,k,q,W){if(isNaN(q)||isNaN(W)||isNaN(w)||isNaN(k))throw Ne.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var K=this.ctx.transform.applyToPoint(new h(q,W)),rt=this.ctx.transform.applyToPoint(new h(w,k));this.path.push({type:"qct",x1:rt.x,y1:rt.y,x:K.x,y:K.y}),this.ctx.lastPoint=new h(K.x,K.y)},L.prototype.bezierCurveTo=function(w,k,q,W,K,rt){if(isNaN(K)||isNaN(rt)||isNaN(w)||isNaN(k)||isNaN(q)||isNaN(W))throw Ne.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var lt=this.ctx.transform.applyToPoint(new h(K,rt)),st=this.ctx.transform.applyToPoint(new h(w,k)),ft=this.ctx.transform.applyToPoint(new h(q,W));this.path.push({type:"bct",x1:st.x,y1:st.y,x2:ft.x,y2:ft.y,x:lt.x,y:lt.y}),this.ctx.lastPoint=new h(lt.x,lt.y)},L.prototype.arc=function(w,k,q,W,K,rt){if(isNaN(w)||isNaN(k)||isNaN(q)||isNaN(W)||isNaN(K))throw Ne.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(rt=!!rt,!this.ctx.transform.isIdentity){var lt=this.ctx.transform.applyToPoint(new h(w,k));w=lt.x,k=lt.y;var st=this.ctx.transform.applyToPoint(new h(0,q)),ft=this.ctx.transform.applyToPoint(new h(0,0));q=Math.sqrt(Math.pow(st.x-ft.x,2)+Math.pow(st.y-ft.y,2))}Math.abs(K-W)>=2*Math.PI&&(W=0,K=2*Math.PI),this.path.push({type:"arc",x:w,y:k,radius:q,startAngle:W,endAngle:K,counterclockwise:rt})},L.prototype.arcTo=function(w,k,q,W,K){throw new Error("arcTo not implemented.")},L.prototype.rect=function(w,k,q,W){if(isNaN(w)||isNaN(k)||isNaN(q)||isNaN(W))throw Ne.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(w,k),this.lineTo(w+q,k),this.lineTo(w+q,k+W),this.lineTo(w,k+W),this.lineTo(w,k),this.lineTo(w+q,k),this.lineTo(w,k)},L.prototype.fillRect=function(w,k,q,W){if(isNaN(w)||isNaN(k)||isNaN(q)||isNaN(W))throw Ne.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var K={};this.lineCap!=="butt"&&(K.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(K.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(w,k,q,W),this.fill(),K.hasOwnProperty("lineCap")&&(this.lineCap=K.lineCap),K.hasOwnProperty("lineJoin")&&(this.lineJoin=K.lineJoin)}},L.prototype.strokeRect=function(w,k,q,W){if(isNaN(w)||isNaN(k)||isNaN(q)||isNaN(W))throw Ne.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");R.call(this)||(this.beginPath(),this.rect(w,k,q,W),this.stroke())},L.prototype.clearRect=function(w,k,q,W){if(isNaN(w)||isNaN(k)||isNaN(q)||isNaN(W))throw Ne.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(w,k,q,W))},L.prototype.save=function(w){w=typeof w!="boolean"||w;for(var k=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("q");if(this.pdf.setPage(k),w){this.ctx.fontSize=this.pdf.internal.getFontSize();var W=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=W}},L.prototype.restore=function(w){w=typeof w!="boolean"||w;for(var k=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("Q");this.pdf.setPage(k),w&&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)},L.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var P=function(w){var k,q,W,K;if(w.isCanvasGradient===!0&&(w=w.getColor()),!w)return{r:0,g:0,b:0,a:0,style:w};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(w))k=0,q=0,W=0,K=0;else{var rt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(w);if(rt!==null)k=parseInt(rt[1]),q=parseInt(rt[2]),W=parseInt(rt[3]),K=1;else if((rt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(w))!==null)k=parseInt(rt[1]),q=parseInt(rt[2]),W=parseInt(rt[3]),K=parseFloat(rt[4]);else{if(K=1,typeof w=="string"&&w.charAt(0)!=="#"){var lt=new Ec(w);w=lt.ok?lt.toHex():"#000000"}w.length===4?(k=w.substring(1,2),k+=k,q=w.substring(2,3),q+=q,W=w.substring(3,4),W+=W):(k=w.substring(1,3),q=w.substring(3,5),W=w.substring(5,7)),k=parseInt(k,16),q=parseInt(q,16),W=parseInt(W,16)}}return{r:k,g:q,b:W,a:K,style:w}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},R=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};L.prototype.fillText=function(w,k,q,W){if(isNaN(k)||isNaN(q)||typeof w!="string")throw Ne.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(W=isNaN(W)?void 0:W,!p.call(this)){var K=et(this.ctx.transform.rotation),rt=this.ctx.transform.scaleX;N.call(this,{text:w,x:k,y:q,scale:rt,angle:K,align:this.textAlign,maxWidth:W})}},L.prototype.strokeText=function(w,k,q,W){if(isNaN(k)||isNaN(q)||typeof w!="string")throw Ne.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!R.call(this)){W=isNaN(W)?void 0:W;var K=et(this.ctx.transform.rotation),rt=this.ctx.transform.scaleX;N.call(this,{text:w,x:k,y:q,scale:rt,renderingMode:"stroke",angle:K,align:this.textAlign,maxWidth:W})}},L.prototype.measureText=function(w){if(typeof w!="string")throw Ne.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var k=this.pdf,q=this.pdf.internal.scaleFactor,W=k.internal.getFontSize(),K=k.getStringUnitWidth(w)*W/k.internal.scaleFactor;return new function(rt){var lt=(rt=rt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return lt}}),this}({width:K*=Math.round(96*q/72*1e4)/1e4})},L.prototype.scale=function(w,k){if(isNaN(w)||isNaN(k))throw Ne.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var q=new c(w,0,0,k,0,0);this.ctx.transform=this.ctx.transform.multiply(q)},L.prototype.rotate=function(w){if(isNaN(w))throw Ne.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var k=new c(Math.cos(w),Math.sin(w),-Math.sin(w),Math.cos(w),0,0);this.ctx.transform=this.ctx.transform.multiply(k)},L.prototype.translate=function(w,k){if(isNaN(w)||isNaN(k))throw Ne.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var q=new c(1,0,0,1,w,k);this.ctx.transform=this.ctx.transform.multiply(q)},L.prototype.transform=function(w,k,q,W,K,rt){if(isNaN(w)||isNaN(k)||isNaN(q)||isNaN(W)||isNaN(K)||isNaN(rt))throw Ne.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var lt=new c(w,k,q,W,K,rt);this.ctx.transform=this.ctx.transform.multiply(lt)},L.prototype.setTransform=function(w,k,q,W,K,rt){w=isNaN(w)?1:w,k=isNaN(k)?0:k,q=isNaN(q)?0:q,W=isNaN(W)?1:W,K=isNaN(K)?0:K,rt=isNaN(rt)?0:rt,this.ctx.transform=new c(w,k,q,W,K,rt)};var j=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};L.prototype.drawImage=function(w,k,q,W,K,rt,lt,st,ft){var xt=this.pdf.getImageProperties(w),Nt=1,_t=1,It=1,I=1;W!==void 0&&st!==void 0&&(It=st/W,I=ft/K,Nt=xt.width/W*st/W,_t=xt.height/K*ft/K),rt===void 0&&(rt=k,lt=q,k=0,q=0),W!==void 0&&st===void 0&&(st=W,ft=K),W===void 0&&st===void 0&&(st=xt.width,ft=xt.height);var kt=this.ctx.transform.decompose(),ne=et(kt.rotate.shx),Ut=new c,At=(Ut=(Ut=(Ut=Ut.multiply(kt.translate)).multiply(kt.skew)).multiply(kt.scale)).applyToRectangle(new l(rt-k*It,lt-q*I,W*Nt,K*_t));if(this.autoPaging){for(var zt,Pt=U.call(this,At),Ht=[],qt=0;qt<Pt.length;qt+=1)Ht.indexOf(Pt[qt])===-1&&Ht.push(Pt[qt]);X(Ht);for(var de=Ht[0],le=Ht[Ht.length-1],Xt=de;Xt<le+1;Xt++){this.pdf.setPage(Xt);var fe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ce=Xt===1?this.posY+this.margin[0]:this.margin[0],Mt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],re=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Dt=Xt===1?0:Mt+(Xt-2)*re;if(this.ctx.clip_path.length!==0){var He=this.path;zt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=J(zt,this.posX+this.margin[3],-Dt+ce+this.ctx.prevPageLastElemOffset),ut.call(this,"fill",!0),this.path=He}var me=JSON.parse(JSON.stringify(At));me=J([me],this.posX+this.margin[3],-Dt+ce+this.ctx.prevPageLastElemOffset)[0];var oe=(Xt>de||Xt<le)&&j.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],fe,re,null).clip().discardPath()),this.pdf.addImage(w,"JPEG",me.x,me.y,me.w,me.h,null,null,ne),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(w,"JPEG",At.x,At.y,At.w,At.h,null,null,ne)};var U=function(w,k,q){var W=[];k=k||this.pdf.internal.pageSize.width,q=q||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var K=this.posY+this.ctx.prevPageLastElemOffset;switch(w.type){default:case"mt":case"lt":W.push(Math.floor((w.y+K)/q)+1);break;case"arc":W.push(Math.floor((w.y+K-w.radius)/q)+1),W.push(Math.floor((w.y+K+w.radius)/q)+1);break;case"qct":var rt=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x,w.y);W.push(Math.floor((rt.y+K)/q)+1),W.push(Math.floor((rt.y+rt.h+K)/q)+1);break;case"bct":var lt=dt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x2,w.y2,w.x,w.y);W.push(Math.floor((lt.y+K)/q)+1),W.push(Math.floor((lt.y+lt.h+K)/q)+1);break;case"rect":W.push(Math.floor((w.y+K)/q)+1),W.push(Math.floor((w.y+w.h+K)/q)+1)}for(var st=0;st<W.length;st+=1)for(;this.pdf.internal.getNumberOfPages()<W[st];)C.call(this);return W},C=function(){var w=this.fillStyle,k=this.strokeStyle,q=this.font,W=this.lineCap,K=this.lineWidth,rt=this.lineJoin;this.pdf.addPage(),this.fillStyle=w,this.strokeStyle=k,this.font=q,this.lineCap=W,this.lineWidth=K,this.lineJoin=rt},J=function(w,k,q){for(var W=0;W<w.length;W++)switch(w[W].type){case"bct":w[W].x2+=k,w[W].y2+=q;case"qct":w[W].x1+=k,w[W].y1+=q;default:w[W].x+=k,w[W].y+=q}return w},X=function(w){return w.sort(function(k,q){return k-q})},z=function(w,k){var q=this.fillStyle,W=this.strokeStyle,K=this.lineCap,rt=this.lineWidth,lt=Math.abs(rt*this.ctx.transform.scaleX),st=this.lineJoin;if(this.autoPaging){for(var ft,xt,Nt=JSON.parse(JSON.stringify(this.path)),_t=JSON.parse(JSON.stringify(this.path)),It=[],I=0;I<_t.length;I++)if(_t[I].x!==void 0)for(var kt=U.call(this,_t[I]),ne=0;ne<kt.length;ne+=1)It.indexOf(kt[ne])===-1&&It.push(kt[ne]);for(var Ut=0;Ut<It.length;Ut++)for(;this.pdf.internal.getNumberOfPages()<It[Ut];)C.call(this);X(It);for(var At=It[0],zt=It[It.length-1],Pt=At;Pt<zt+1;Pt++){this.pdf.setPage(Pt),this.fillStyle=q,this.strokeStyle=W,this.lineCap=K,this.lineWidth=lt,this.lineJoin=st;var Ht=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=Pt===1?this.posY+this.margin[0]:this.margin[0],de=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],le=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xt=Pt===1?0:de+(Pt-2)*le;if(this.ctx.clip_path.length!==0){var fe=this.path;ft=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=J(ft,this.posX+this.margin[3],-Xt+qt+this.ctx.prevPageLastElemOffset),ut.call(this,w,!0),this.path=fe}if(xt=JSON.parse(JSON.stringify(Nt)),this.path=J(xt,this.posX+this.margin[3],-Xt+qt+this.ctx.prevPageLastElemOffset),k===!1||Pt===0){var ce=(Pt>At||Pt<zt)&&j.call(this);ce&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ht,le,null).clip().discardPath()),ut.call(this,w,k),ce&&this.pdf.restoreGraphicsState()}this.lineWidth=rt}this.path=Nt}else this.lineWidth=lt,ut.call(this,w,k),this.lineWidth=rt},ut=function(w,k){if((w!=="stroke"||k||!R.call(this))&&(w==="stroke"||k||!p.call(this))){for(var q,W,K=[],rt=this.path,lt=0;lt<rt.length;lt++){var st=rt[lt];switch(st.type){case"begin":K.push({begin:!0});break;case"close":K.push({close:!0});break;case"mt":K.push({start:st,deltas:[],abs:[]});break;case"lt":var ft=K.length;if(rt[lt-1]&&!isNaN(rt[lt-1].x)&&(q=[st.x-rt[lt-1].x,st.y-rt[lt-1].y],ft>0)){for(;ft>=0;ft--)if(K[ft-1].close!==!0&&K[ft-1].begin!==!0){K[ft-1].deltas.push(q),K[ft-1].abs.push(st);break}}break;case"bct":q=[st.x1-rt[lt-1].x,st.y1-rt[lt-1].y,st.x2-rt[lt-1].x,st.y2-rt[lt-1].y,st.x-rt[lt-1].x,st.y-rt[lt-1].y],K[K.length-1].deltas.push(q);break;case"qct":var xt=rt[lt-1].x+2/3*(st.x1-rt[lt-1].x),Nt=rt[lt-1].y+2/3*(st.y1-rt[lt-1].y),_t=st.x+2/3*(st.x1-st.x),It=st.y+2/3*(st.y1-st.y),I=st.x,kt=st.y;q=[xt-rt[lt-1].x,Nt-rt[lt-1].y,_t-rt[lt-1].x,It-rt[lt-1].y,I-rt[lt-1].x,kt-rt[lt-1].y],K[K.length-1].deltas.push(q);break;case"arc":K.push({deltas:[],abs:[],arc:!0}),Array.isArray(K[K.length-1].abs)&&K[K.length-1].abs.push(st)}}W=k?null:w==="stroke"?"stroke":"fill";for(var ne=!1,Ut=0;Ut<K.length;Ut++)if(K[Ut].arc)for(var At=K[Ut].abs,zt=0;zt<At.length;zt++){var Pt=At[zt];Pt.type==="arc"?D.call(this,Pt.x,Pt.y,Pt.radius,Pt.startAngle,Pt.endAngle,Pt.counterclockwise,void 0,k,!ne):_.call(this,Pt.x,Pt.y),ne=!0}else if(K[Ut].close===!0)this.pdf.internal.out("h"),ne=!1;else if(K[Ut].begin!==!0){var Ht=K[Ut].start.x,qt=K[Ut].start.y;F.call(this,K[Ut].deltas,Ht,qt),ne=!0}W&&T.call(this,W),k&&V.call(this)}},bt=function(w){var k=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,q=k*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return w-q;case"top":return w+k-q;case"hanging":return w+k-2*q;case"middle":return w+k/2-q;default:return w}},Q=function(w){return w+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};L.prototype.createLinearGradient=function(){var w=function(){};return w.colorStops=[],w.addColorStop=function(k,q){this.colorStops.push([k,q])},w.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},w.isCanvasGradient=!0,w},L.prototype.createPattern=function(){return this.createLinearGradient()},L.prototype.createRadialGradient=function(){return this.createLinearGradient()};var D=function(w,k,q,W,K,rt,lt,st,ft){for(var xt=$.call(this,q,W,K,rt),Nt=0;Nt<xt.length;Nt++){var _t=xt[Nt];Nt===0&&(ft?A.call(this,_t.x1+w,_t.y1+k):_.call(this,_t.x1+w,_t.y1+k)),Y.call(this,w,k,_t.x2,_t.y2,_t.x3,_t.y3,_t.x4,_t.y4)}st?V.call(this):T.call(this,lt)},T=function(w){switch(w){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},V=function(){this.pdf.clip(),this.pdf.discardPath()},A=function(w,k){this.pdf.internal.out(t(w)+" "+r(k)+" m")},N=function(w){var k;switch(w.align){case"right":case"end":k="right";break;case"center":k="center";break;default:k="left"}var q,W,K,rt=this.pdf.getTextDimensions(w.text),lt=bt.call(this,w.y),st=Q.call(this,lt)-rt.h,ft=this.ctx.transform.applyToPoint(new h(w.x,lt));if(this.autoPaging){var xt=this.ctx.transform.decompose(),Nt=new c;Nt=(Nt=(Nt=Nt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale);for(var _t=this.ctx.transform.applyToRectangle(new l(w.x,lt,rt.w,rt.h)),It=Nt.applyToRectangle(new l(w.x,st,rt.w,rt.h)),I=U.call(this,It),kt=[],ne=0;ne<I.length;ne+=1)kt.indexOf(I[ne])===-1&&kt.push(I[ne]);X(kt);for(var Ut=kt[0],At=kt[kt.length-1],zt=Ut;zt<At+1;zt++){this.pdf.setPage(zt);var Pt=zt===1?this.posY+this.margin[0]:this.margin[0],Ht=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qt=this.pdf.internal.pageSize.height-this.margin[2],de=qt-this.margin[0],le=this.pdf.internal.pageSize.width-this.margin[1],Xt=le-this.margin[3],fe=zt===1?0:Ht+(zt-2)*de;if(this.ctx.clip_path.length!==0){var ce=this.path;q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=J(q,this.posX+this.margin[3],-1*fe+Pt),ut.call(this,"fill",!0),this.path=ce}var Mt=J([JSON.parse(JSON.stringify(It))],this.posX+this.margin[3],-fe+Pt+this.ctx.prevPageLastElemOffset)[0];w.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*w.scale),K=this.lineWidth,this.lineWidth=K*w.scale);var re=this.autoPaging!=="text";if(re||Mt.y+Mt.h<=qt){if(re||Mt.y>=Pt&&Mt.x<=le){var Dt=re?w.text:this.pdf.splitTextToSize(w.text,w.maxWidth||le-Mt.x)[0],He=J([JSON.parse(JSON.stringify(_t))],this.posX+this.margin[3],-fe+Pt+this.ctx.prevPageLastElemOffset)[0],me=re&&(zt>Ut||zt<At)&&j.call(this);me&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xt,de,null).clip().discardPath()),this.pdf.text(Dt,He.x,He.y,{angle:w.angle,align:k,renderingMode:w.renderingMode}),me&&this.pdf.restoreGraphicsState()}}else Mt.y<qt&&(this.ctx.prevPageLastElemOffset+=qt-Mt.y);w.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=K)}}else w.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*w.scale),K=this.lineWidth,this.lineWidth=K*w.scale),this.pdf.text(w.text,ft.x+this.posX,ft.y+this.posY,{angle:w.angle,align:k,renderingMode:w.renderingMode,maxWidth:w.maxWidth}),w.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=K)},_=function(w,k,q,W){q=q||0,W=W||0,this.pdf.internal.out(t(w+q)+" "+r(k+W)+" l")},F=function(w,k,q){return this.pdf.lines(w,k,q,null,null)},Y=function(w,k,q,W,K,rt,lt,st){this.pdf.internal.out([e(o(q+w)),e(a(W+k)),e(o(K+w)),e(a(rt+k)),e(o(lt+w)),e(a(st+k)),"c"].join(" "))},$=function(w,k,q,W){for(var K=2*Math.PI,rt=Math.PI/2;k>q;)k-=K;var lt=Math.abs(q-k);lt<K&&W&&(lt=K-lt);for(var st=[],ft=W?-1:1,xt=k;lt>1e-5;){var Nt=xt+ft*Math.min(lt,rt);st.push(it.call(this,w,xt,Nt)),lt-=Math.abs(Nt-xt),xt=Nt}return st},it=function(w,k,q){var W=(q-k)/2,K=w*Math.cos(W),rt=w*Math.sin(W),lt=K,st=-rt,ft=lt*lt+st*st,xt=ft+lt*K+st*rt,Nt=4/3*(Math.sqrt(2*ft*xt)-xt)/(lt*rt-st*K),_t=lt-Nt*st,It=st+Nt*lt,I=_t,kt=-It,ne=W+k,Ut=Math.cos(ne),At=Math.sin(ne);return{x1:w*Math.cos(k),y1:w*Math.sin(k),x2:_t*Ut-It*At,y2:_t*At+It*Ut,x3:I*Ut-kt*At,y3:I*At+kt*Ut,x4:w*Math.cos(q),y4:w*Math.sin(q)}},et=function(w){return 180*w/Math.PI},ct=function(w,k,q,W,K,rt){var lt=w+.5*(q-w),st=k+.5*(W-k),ft=K+.5*(q-K),xt=rt+.5*(W-rt),Nt=Math.min(w,K,lt,ft),_t=Math.max(w,K,lt,ft),It=Math.min(k,rt,st,xt),I=Math.max(k,rt,st,xt);return new l(Nt,It,_t-Nt,I-It)},dt=function(w,k,q,W,K,rt,lt,st){var ft,xt,Nt,_t,It,I,kt,ne,Ut,At,zt,Pt,Ht,qt,de=q-w,le=W-k,Xt=K-q,fe=rt-W,ce=lt-K,Mt=st-rt;for(xt=0;xt<41;xt++)Ut=(kt=(Nt=w+(ft=xt/40)*de)+ft*((It=q+ft*Xt)-Nt))+ft*(It+ft*(K+ft*ce-It)-kt),At=(ne=(_t=k+ft*le)+ft*((I=W+ft*fe)-_t))+ft*(I+ft*(rt+ft*Mt-I)-ne),xt==0?(zt=Ut,Pt=At,Ht=Ut,qt=At):(zt=Math.min(zt,Ut),Pt=Math.min(Pt,At),Ht=Math.max(Ht,Ut),qt=Math.max(qt,At));return new l(Math.round(zt),Math.round(Pt),Math.round(Ht-zt),Math.round(qt-Pt))},ht=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var w,k,q=(w=this.ctx.lineDash,k=this.ctx.lineDashOffset,JSON.stringify({lineDash:w,lineDashOffset:k}));this.prevLineDash!==q&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=q)}}})(Bt.API),(function(n){var e=function(h){var l,c,d,g,L,P,p,R,j,U;for(c=[],d=0,g=(h+=l="\0\0\0\0".slice(h.length%4||4)).length;g>d;d+=4)(L=(h.charCodeAt(d)<<24)+(h.charCodeAt(d+1)<<16)+(h.charCodeAt(d+2)<<8)+h.charCodeAt(d+3))!==0?(P=(L=((L=((L=((L=(L-(U=L%85))/85)-(j=L%85))/85)-(R=L%85))/85)-(p=L%85))/85)%85,c.push(P+33,p+33,R+33,j+33,U+33)):c.push(122);return(function(C,J){for(var X=J;X>0;X--)C.pop()})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},t=function(h){var l,c,d,g,L,P=String,p="length",R=255,j="charCodeAt",U="slice",C="replace";for(h[U](-2),h=h[U](0,-2)[C](/\s/g,"")[C]("z","!!!!!"),d=[],g=0,L=(h+=l="uuuuu"[U](h[p]%5||5))[p];L>g;g+=5)c=52200625*(h[j](g)-33)+614125*(h[j](g+1)-33)+7225*(h[j](g+2)-33)+85*(h[j](g+3)-33)+(h[j](g+4)-33),d.push(R&c>>24,R&c>>16,R&c>>8,R&c);return(function(J,X){for(var z=X;z>0;z--)J.pop()})(d,l[p]),P.fromCharCode.apply(P,d)},r=function(h){return h.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(h){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),l.test(h)===!1)return"";for(var c="",d=0;d<h.length;d+=2)c+=String.fromCharCode("0x"+(h[d]+h[d+1]));return c},a=function(h){for(var l=new Uint8Array(h.length),c=h.length;c--;)l[c]=h.charCodeAt(c);return(l=Hs(l)).reduce(function(d,g){return d+String.fromCharCode(g)},"")};n.processDataByFilters=function(h,l){var c=0,d=h||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case"ASCII85Decode":case"/ASCII85Decode":d=t(d),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=e(d),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=o(d),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=r(d),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=a(d),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return{data:d,reverseChain:g.reverse().join(" ")}}})(Bt.API),(function(n){n.loadFile=function(e,t,r){return(function(o,a,h){a=a!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=(function(c,d,g){var L=new XMLHttpRequest,P=0,p=function(R){var j=R.length,U=[],C=String.fromCharCode;for(P=0;P<j;P+=1)U.push(C(255&R.charCodeAt(P)));return U.join("")};if(L.open("GET",c,!d),L.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(L.onload=function(){L.status===200?g(p(this.responseText)):g(void 0)}),L.send(null),d&&L.status===200)return p(L.responseText)})(o,a,h)}catch{}return l})(e,t,r)},n.allowFsRead=void 0,n.loadImageFile=n.loadFile})(Bt.API),(function(n){function e(){return(Jt.html2canvas?Promise.resolve(Jt.html2canvas):bs(()=>import("./html2canvas.esm-QH1iLAAe.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function t(){return(Jt.DOMPurify?Promise.resolve(Jt.DOMPurify):bs(()=>import("./purify.es-B5CD4DQe.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var c=Se(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},o=function(l,c){var d=document.createElement(l);for(var g in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[g]=c.style[g];return d},a=function l(c,d){for(var g=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),L=c.firstChild;L;L=L.nextSibling)d!==!0&&L.nodeType===1&&L.nodeName==="SCRIPT"||g.appendChild(l(L,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(g.width=c.width,g.height=c.height,g.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(g.value=c.value),g.addEventListener("load",function(){g.scrollTop=c.scrollTop,g.scrollLeft=c.scrollLeft},!0)),g},h=function l(c){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),d);return(g=g.setProgress(1,l,1,[l])).set(c)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(l,c){return l.__proto__=c||h.prototype,l},h.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"}},h.prototype.from=function(l,c){return this.then(function(){switch(c=c||(function(d){switch(r(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),c){case"string":return this.then(t).then(function(d){return this.set({src:o("div",{innerHTML:l,dompurify:d})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},h.prototype.to=function(l){switch(l){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.")}},h.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 l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(o("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"})},h.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then(function(c){var d=this.opt.jsPDF,g=this.opt.fontFaces,L=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,P=Object.assign({async:!0,allowTaint:!0,scale:L,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete P.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=g,g)for(var p=0;p<g.length;++p){var R=g[p],j=R.src.find(function(U){return U.format==="truetype"});j&&d.addFont(j.url,R.ref.name,R.ref.style)}return P.windowHeight=P.windowHeight||0,P.windowHeight=P.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):P.windowHeight,d.context2d.save(!0),c(this.prop.container,P)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(l,c,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},h.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,c)})},h.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},h.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(l){if(r(l)!=="object")return this;var c=Object.keys(l||{}).map(function(d){if(d in h.template.prop)return function(){this.prop[d]=l[d]};switch(d){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[d]=l[d]}}},this);return this.then(function(){return this.thenList(c)})},h.prototype.get=function(l,c){return this.then(function(){var d=l in h.template.prop?this.prop[l]:this.opt[l];return c?c(d):d})},h.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},h.prototype.setPageSize=function(l){function c(d,g){return Math.floor(d*g/72*96)}return this.then(function(){(l=l||Bt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},h.prototype.setProgress=function(l,c,d,g){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),d!=null&&(this.progress.n=d),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(l,c,d,g){return this.setProgress(l?this.progress.val+l:null,c||null,d?this.progress.n+d:null,g?this.progress.stack.concat(g):null)},h.prototype.then=function(l,c){var d=this;return this.thenCore(l,c,function(g,L){return d.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(P){return d.updateProgress(null,g),P}).then(g,L).then(function(P){return d.updateProgress(1),P})})},h.prototype.thenCore=function(l,c,d){d=d||Promise.prototype.then;var g=this;l&&(l=l.bind(g)),c&&(c=c.bind(g));var L=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:h.convert(Object.assign({},g),Promise.prototype),P=d.call(L,l,c);return h.convert(P,g.__proto__)},h.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},h.prototype.thenList=function(l){var c=this;return l.forEach(function(d){c=c.thenCore(d)}),c},h.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return h.convert(c,this)},h.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},h.prototype.error=function(l){return this.then(function(){throw new Error(l)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,Bt.getPageSize=function(l,c,d){if(Se(l)==="object"){var g=l;l=g.orientation,c=g.unit||c,d=g.format||d}c=c||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var L,P=(""+d).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(c){case"pt":L=1;break;case"mm":L=72/25.4;break;case"cm":L=72/2.54;break;case"in":L=72;break;case"px":L=.75;break;case"pc":case"em":L=12;break;case"ex":L=6;break;default:throw"Invalid unit: "+c}var R,j=0,U=0;if(p.hasOwnProperty(P))j=p[P][1]/L,U=p[P][0]/L;else try{j=d[1],U=d[0]}catch{throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",U>j&&(R=U,U=j,j=R);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",j>U&&(R=U,U=j,j=R)}return{width:U,height:j,unit:c,k:L,orientation:l}},n.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(Ms):null;var d=new h(c);return c.worker?d:d.from(l).doCallback()}})(Bt.API),Bt.API.addJS=function(n){var e,t,r=(function(o){for(var a="",h=0;h<o.length;h++){var l=o[h];if(l==="("||l===")"){for(var c=0,d=h-1;d>=0&&o[d]==="\\";d--)c++;a+=c%2==0?"\\"+l:l}else a+=l}return a})(n);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&t!==void 0&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")}),this},(function(n){var e;n.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=t.outline.render().split(/\r\n/),a=0;a<o.length;a++){var h=o[a],l=r.exec(h);if(l!=null){var c=l[1];t.internal.newObjectDeferredBegin(c,!1)}t.internal.write(h)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,g=[];for(a=0;a<d;a++){var L=t.internal.newObject();g.push(L);var P=t.internal.getPageInfo(a+1);t.internal.write("<< /D["+P.objId+" 0 R /XYZ null null null]>> endobj")}var p=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a<g.length;a++)t.internal.write("(page_"+(a+1)+")"+g[a]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+p+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,o,a){var h={title:o,options:a,children:[]};return r==null&&(r=this.root),r.children.push(h),h},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 o=0;o<r.children.length;o++)this.genIds_r(r.children[o])},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 o=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var h=r.children[a];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var c=t.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},t.outline.line=function(r){this.ctx.val+=r+`\r
134
+ `},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
135
+ `+r.id+` 0 obj\r
136
+ <<\r
137
+ `},t.outline.objEnd=function(){this.ctx.val+=`>> \r
138
+ endobj\r
139
+ `},t.outline.count_r=function(r,o){for(var a=0;a<o.children.length;a++)r.count++,this.count_r(r,o.children[a]);return r.count}}])})(Bt.API),(function(n){var e=[192,193,194,195,196,197,198,199];n.processJPEG=function(t,r,o,a,h,l){var c,d=this.decode.DCT_DECODE,g=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=h||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,c=(function(L){for(var P,p=256*L.charCodeAt(4)+L.charCodeAt(5),R=L.length,j={width:0,height:0,numcomponents:1},U=4;U<R;U+=2){if(U+=p,e.indexOf(L.charCodeAt(U+1))!==-1){P=256*L.charCodeAt(U+5)+L.charCodeAt(U+6),j={width:256*L.charCodeAt(U+7)+L.charCodeAt(U+8),height:P,numcomponents:L.charCodeAt(U+9)};break}p=256*L.charCodeAt(U+2)+L.charCodeAt(U+3)}return j})(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),c.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:d,index:r,alias:o}}return g}})(Bt.API),Bt.API.processPNG=function(n,e,t,r){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var o,a=M1(n,{checkCrc:!0}),h=a.width,l=a.height,c=a.channels,d=a.palette,g=a.depth;o=d&&c===1?(function(D){for(var T=D.width,V=D.height,A=D.data,N=D.palette,_=D.depth,F=!1,Y=[],$=[],it=void 0,et=!1,ct=0,dt=0;dt<N.length;dt++){var ht=Wl(N[dt],4),w=ht[0],k=ht[1],q=ht[2],W=ht[3];Y.push(w,k,q),W!=null&&(W===0?(ct++,$.length<1&&$.push(dt)):W<255&&(et=!0))}if(et||ct>1){F=!0,$=void 0;var K=T*V;it=new Uint8Array(K);for(var rt=new DataView(A.buffer),lt=0;lt<K;lt++){var st=Rs(rt,lt,_),ft=Wl(N[st],4)[3];it[lt]=ft}}else ct===0&&($=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:F?8:void 0,colorBytes:A,alphaBytes:it,needSMask:F,palette:Y,mask:$}})(a):c===2||c===4?(function(D){for(var T=D.data,V=D.width,A=D.height,N=D.channels,_=D.depth,F=N===2?"DeviceGray":"DeviceRGB",Y=N-1,$=V*A,it=Y,et=$*it,ct=1*$,dt=Math.ceil(et*_/8),ht=Math.ceil(ct*_/8),w=new Uint8Array(dt),k=new Uint8Array(ht),q=new DataView(T.buffer),W=new DataView(w.buffer),K=new DataView(k.buffer),rt=!1,lt=0;lt<$;lt++){for(var st=lt*N,ft=0;ft<it;ft++)Yu(W,Rs(q,st+ft,_),lt*it+ft,_);var xt=Rs(q,st+it,_);xt<(1<<_)-1&&(rt=!0),Yu(K,xt,1*lt,_)}return{colorSpace:F,colorsPerPixel:Y,sMaskBitsPerComponent:rt?_:void 0,colorBytes:w,alphaBytes:k,needSMask:rt}})(a):(function(D){var T=D.data,V=D.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:V,colorsPerPixel:V==="DeviceGray"?1:3,colorBytes:T instanceof Uint16Array?(function(A){for(var N=A.length,_=new Uint8Array(2*N),F=new DataView(_.buffer,_.byteOffset,_.byteLength),Y=0;Y<N;Y++)F.setUint16(2*Y,A[Y],!1);return _})(T):T,needSMask:!1}})(a);var L,P,p,R=o,j=R.colorSpace,U=R.colorsPerPixel,C=R.sMaskBitsPerComponent,J=R.colorBytes,X=R.alphaBytes,z=R.needSMask,ut=R.palette,bt=R.mask,Q=null;return r!==Bt.API.image_compression.NONE&&typeof Hs=="function"?(Q=(function(D){var T;switch(D){case Bt.API.image_compression.FAST:T=11;break;case Bt.API.image_compression.MEDIUM:T=13;break;case Bt.API.image_compression.SLOW:T=14;break;default:T=12}return T})(r),L=this.decode.FLATE_DECODE,P="/Predictor ".concat(Q," /Colors ").concat(U," /BitsPerComponent ").concat(g," /Columns ").concat(h),n=zu(J,Math.ceil(h*U*g/8),U,g,r),z&&(p=zu(X,Math.ceil(h*C/8),1,C,r))):(L=void 0,P=void 0,n=J,z&&(p=X)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:t,data:n,index:e,filter:L,decodeParameters:P,transparency:bt,palette:ut,sMask:p,predictor:Q,width:h,height:l,bitsPerComponent:g,sMaskBitsPerComponent:C,colorSpace:j}}},(function(n){n.processGIF89A=function(e,t,r,o){var a=new i2(e),h=a.width,l=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var d={data:c,width:h,height:l},g=new Ds(100).encode(d,100);return n.processJPEG.call(this,g,t,r,o)},n.processGIF87A=n.processGIF89A})(Bt.API),Qn.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 n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var e=0;e<n;e++){var t=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:o,green:r,blue:t,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Qn.prototype.parseBGR=function(){this.pos=this.offset;var n="bit"+this.bitPP,e=this.width*this.height*4;if(e>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[n]()}catch(t){Ne.log("bit decode error:"+t)}},Qn.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),t=e%4;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<e;o++)for(var a=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+8*o*4,l=0;l<8&&8*o+l<this.width;l++){var c=this.palette[a>>7-l&1];this.data[h+4*l]=c.blue,this.data[h+4*l+1]=c.green,this.data[h+4*l+2]=c.red,this.data[h+4*l+3]=255}t!==0&&(this.pos+=4-t)}},Qn.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,o=0;o<n;o++){var a=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+2*o*4,l=a>>4,c=15&a,d=this.palette[l];if(this.data[h]=d.blue,this.data[h+1]=d.green,this.data[h+2]=d.red,this.data[h+3]=255,2*o+1>=this.width)break;d=this.palette[c],this.data[h+4]=d.blue,this.data[h+4+1]=d.green,this.data[h+4+2]=d.red,this.data[h+4+3]=255}e!==0&&(this.pos+=4-e)}},Qn.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;if(o<this.palette.length){var h=this.palette[o];this.data[a]=h.red,this.data[a+1]=h.green,this.data[a+2]=h.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}n!==0&&(this.pos+=4-n)}},Qn.prototype.bit15=function(){for(var n=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(a&e)/e*255|0,l=(a>>5&e)/e*255|0,c=(a>>10&e)/e*255|0,d=a>>15?255:0,g=r*this.width*4+4*o;this.data[g]=c,this.data[g+1]=l,this.data[g+2]=h,this.data[g+3]=d}this.pos+=n}},Qn.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var o=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(h&e)/e*255|0,c=(h>>5&t)/t*255|0,d=(h>>11)/e*255|0,g=o*this.width*4+4*a;this.data[g]=d,this.data[g+1]=c,this.data[g+2]=l,this.data[g+3]=255}this.pos+=n}},Qn.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=e*this.width*4+4*t;this.data[h]=a,this.data[h+1]=o,this.data[h+2]=r,this.data[h+3]=255}this.pos+=this.width%4}},Qn.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var e=this.bottom_up?n:this.height-1-n,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),l=e*this.width*4+4*t;this.data[l]=a,this.data[l+1]=o,this.data[l+2]=r,this.data[l+3]=h}},Qn.prototype.getData=function(){return this.data},(function(n){n.processBMP=function(e,t,r,o){var a=new Qn(e,!1),h=a.width,l=a.height,c={data:a.getData(),width:h,height:l},d=new Ds(100).encode(c,100);return n.processJPEG.call(this,d,t,r,o)}})(Bt.API),Ju.prototype.getData=function(){return this.data},(function(n){n.processWEBP=function(e,t,r,o){var a=new Ju(e),h=a.width,l=a.height,c={data:a.getData(),width:h,height:l},d=new Ds(100).encode(c,100);return n.processJPEG.call(this,d,t,r,o)}})(Bt.API),Bt.API.processRGBA=function(n,e,t){for(var r=n.data,o=r.length,a=new Uint8Array(o/4*3),h=new Uint8Array(o/4),l=0,c=0,d=0;d<o;d+=4){var g=r[d],L=r[d+1],P=r[d+2],p=r[d+3];a[l++]=g,a[l++]=L,a[l++]=P,h[c++]=p}var R=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(h),data:R,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},Bt.API.setLanguage=function(n){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"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,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},ea=Bt.API,Po=ea.getCharWidthsArray=function(n,e){var t,r,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),h=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:o.metadata.Unicode.widths,c=l.fof?l.fof:1,d=e.kerning?e.kerning:o.metadata.Unicode.kerning,g=d.fof?d.fof:1,L=e.doKerning!==!1,P=0,p=n.length,R=0,j=l[0]||c,U=[];for(t=0;t<p;t++)r=n.charCodeAt(t),typeof o.metadata.widthOfString=="function"?U.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(r))+h*(1e3/a)||0)/1e3):(P=L&&Se(d[r])==="object"&&!isNaN(parseInt(d[r][R],10))?d[r][R]/g:0,U.push((l[r]||j)/c+P)),R=r;return U},Du=ea.getStringUnitWidth=function(n,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),o=e.charSpace||this.internal.getCharSpace();return ea.processArabic&&(n=ea.processArabic(n)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(n,t,o)/t:Po.apply(this,arguments).reduce(function(a,h){return a+h},0)},qu=function(n,e,t,r){for(var o=[],a=0,h=n.length,l=0;a!==h&&l+e[a]<t;)l+=e[a],a++;o.push(n.slice(0,a));var c=a;for(l=0;a!==h;)l+e[a]>r&&(o.push(n.slice(c,a)),l=0,c=a),l+=e[a],a++;return c!==a&&o.push(n.slice(c,a)),o},Uu=function(n,e,t){t||(t={});var r,o,a,h,l,c,d,g=[],L=[g],P=t.textIndent||0,p=0,R=0,j=n.split(" "),U=Po.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?j[0].length+2:t.lineIndent||0){var C=Array(c).join(" "),J=[];j.map(function(z){(z=z.split(/\s*\n/)).length>1?J=J.concat(z.map(function(ut,bt){return(bt&&ut.length?`
140
+ `:"")+ut})):J.push(z[0])}),j=J,c=Du.apply(this,[C,t])}for(a=0,h=j.length;a<h;a++){var X=0;if(r=j[a],c&&r[0]==`
141
+ `&&(r=r.substr(1),X=1),P+p+(R=(o=Po.apply(this,[r,t])).reduce(function(z,ut){return z+ut},0))>e||X){if(R>e){for(l=qu.apply(this,[r,o,e-(P+p),e]),g.push(l.shift()),g=[l.pop()];l.length;)L.push([l.shift()]);R=o.slice(r.length-(g[0]?g[0].length:0)).reduce(function(z,ut){return z+ut},0)}else g=[r];L.push(g),P=R+c,p=U}else g.push(r),P+=p+R,p=U}return d=c?function(z,ut){return(ut?C:"")+z.join(" ")}:function(z){return z.join(" ")},L.map(d)},ea.splitTextToSize=function(n,e,t){var r,o=(t=t||{}).fontSize||this.internal.getFontSize(),a=(function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var L=this.internal.getFont(g.fontName,g.fontStyle),P="Unicode";return L.metadata[P]?{widths:L.metadata[P].widths||{0:1},kerning:L.metadata[P].kerning||{}}:{font:L.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var h=1*this.internal.scaleFactor*e/o;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/o:0,a.lineIndent=t.lineIndent;var l,c,d=[];for(l=0,c=r.length;l<c;l++)d=d.concat(Uu.apply(this,[r[l],h,a]));return d},(function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var e="0123456789abcdef",t="klmnopqrstuvwxyz",r={},o={},a=0;a<16;a++)r[t[a]]=e[a],o[e[a]]=t[a];var h=function(P){return"0x"+parseInt(P,10).toString(16)},l=n.__fontmetrics__.compress=function(P){var p,R,j,U,C=["{"];for(var J in P){if(p=P[J],isNaN(parseInt(J,10))?R="'"+J+"'":(J=parseInt(J,10),R=(R=h(J).slice(2)).slice(0,-1)+o[R.slice(-1)]),typeof p=="number")p<0?(j=h(p).slice(3),U="-"):(j=h(p).slice(2),U=""),j=U+j.slice(0,-1)+o[j.slice(-1)];else{if(Se(p)!=="object")throw new Error("Don't know what to do with value type "+Se(p)+".");j=l(p)}C.push(R+j)}return C.push("}"),C.join("")},c=n.__fontmetrics__.uncompress=function(P){if(typeof P!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,R,j,U,C={},J=1,X=C,z=[],ut="",bt="",Q=P.length-1,D=1;D<Q;D+=1)(U=P[D])=="'"?p?(j=p.join(""),p=void 0):p=[]:p?p.push(U):U=="{"?(z.push([X,j]),X={},j=void 0):U=="}"?((R=z.pop())[0][R[1]]=X,j=void 0,X=R[0]):U=="-"?J=-1:j===void 0?r.hasOwnProperty(U)?(ut+=r[U],j=parseInt(ut,16)*J,J=1,ut=""):ut+=U:r.hasOwnProperty(U)?(bt+=r[U],X[j]=parseInt(bt,16)*J,J=1,j=void 0,bt=""):bt+=U;return C},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},L={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(P){var p=P.font,R=L.Unicode[p.postScriptName];R&&(p.metadata.Unicode={},p.metadata.Unicode.widths=R.widths,p.metadata.Unicode.kerning=R.kerning);var j=g.Unicode[p.postScriptName];j&&(p.metadata.Unicode.encoding=j,p.encoding=j.codePages[0])}])})(Bt.API),(function(n){var e=function(t){for(var r=t.length,o=new Uint8Array(r),a=0;a<r;a++)o[a]=t.charCodeAt(a);return o};n.API.events.push(["addFont",function(t){var r=void 0,o=t.font,a=t.instance;if(!o.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if(typeof(r=a.existsFileInVFS(o.postScriptName)===!1?a.loadFile(o.postScriptName):a.getFileFromVFS(o.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?e(l):e(Io(l)),h.metadata=n.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(o,r)}}])})(Bt),Bt.API.addSvgAsImage=function(n,e,t,r,o,a,h,l){if(isNaN(e)||isNaN(t))throw Ne.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(o))throw Ne.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=o;var d=c.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,c.width,c.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},L=this;return(Jt.canvg?Promise.resolve(Jt.canvg):bs(()=>import("./canvg-ChoTXRpY.js").then(P=>P.i),[])).catch(function(P){return Promise.reject(new Error("Could not load canvg: "+P))}).then(function(P){return P.default?P.default:P}).then(function(P){return P.fromString(d,n,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(P){return P.render(g)}).then(function(){L.addImage(c.toDataURL("image/jpeg",1),e,t,r,o,h,l)})},Bt.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var o=0;o<this.internal.pages[r].length;o++)this.internal.pages[r][o]=this.internal.pages[r][o].replace(e,t);return this},Bt.API.viewerPreferences=function(n,e){var t;n=n||{},e=e||!1;var r,o,a,h={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(h),c=[],d=0,g=0,L=0;function P(R,j){var U,C=!1;for(U=0;U<R.length;U+=1)R[U]===j&&(C=!0);return C}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,n==="reset"||e===!0){var p=l.length;for(L=0;L<p;L+=1)t[l[L]].value=t[l[L]].defaultValue,t[l[L]].explicitSet=!1}if(Se(n)==="object"){for(o in n)if(a=n[o],P(l,o)&&a!==void 0){if(t[o].type==="boolean"&&typeof a=="boolean")t[o].value=a;else if(t[o].type==="name"&&P(t[o].valueSet,a))t[o].value=a;else if(t[o].type==="integer"&&Number.isInteger(a))t[o].value=a;else if(t[o].type==="array"){for(d=0;d<a.length;d+=1)if(r=!0,a[d].length===1&&typeof a[d][0]=="number")c.push(String(a[d]-1));else if(a[d].length>1){for(g=0;g<a[d].length;g+=1)typeof a[d][g]!="number"&&(r=!1);r===!0&&c.push([a[d][0]-1,a[d][1]-1].join(" "))}t[o].value="["+c.join(" ")+"]"}else t[o].value=t[o].defaultValue;t[o].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var R,j=[];for(R in t)t[R].explicitSet===!0&&(t[R].type==="name"?j.push("/"+R+" /"+t[R].value):j.push("/"+R+" "+t[R].value));j.length!==0&&this.internal.write(`/ViewerPreferences
142
+ <<
143
+ `+j.join(`
144
+ `)+`
145
+ >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},Bt.API.addMetadata=function(n,e){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceUri:e??"http://jspdf.default.namespaceuri/",rawXml:typeof e=="boolean"&&e},this.internal.events.subscribe("putCatalog",o2),this.internal.events.subscribe("postPutResources",a2)),this},(function(n){var e=n.API,t=e.pdfEscape16=function(a,h){for(var l,c=h.metadata.Unicode.widths,d=["","0","00","000","0000"],g=[""],L=0,P=a.length;L<P;++L){if(l=h.metadata.characterToGlyph(a.charCodeAt(L)),h.metadata.glyIdsUsed.push(l),h.metadata.toUnicode[l]=a.charCodeAt(L),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(h.metadata.widthOfGlyph(l),10)])),l=="0")return g.join("");l=l.toString(16),g.push(d[4-l.length],l)}return g.join("")},r=function(a){var h,l,c,d,g,L,P;for(g=`/CIDInit /ProcSet findresource begin
146
+ 12 dict begin
147
+ begincmap
148
+ /CIDSystemInfo <<
149
+ /Registry (Adobe)
150
+ /Ordering (UCS)
151
+ /Supplement 0
152
+ >> def
153
+ /CMapName /Adobe-Identity-UCS def
154
+ /CMapType 2 def
155
+ 1 begincodespacerange
156
+ <0000><ffff>
157
+ endcodespacerange`,c=[],L=0,P=(l=Object.keys(a).sort(function(p,R){return p-R})).length;L<P;L++)h=l[L],c.length>=100&&(g+=`
158
+ `+c.length+` beginbfchar
159
+ `+c.join(`
160
+ `)+`
161
+ endbfchar`,c=[]),a[h]!==void 0&&a[h]!==null&&typeof a[h].toString=="function"&&(d=("0000"+a[h].toString(16)).slice(-4),h=("0000"+(+h).toString(16)).slice(-4),c.push("<"+h+"><"+d+">"));return c.length&&(g+=`
162
+ `+c.length+` beginbfchar
163
+ `+c.join(`
164
+ `)+`
165
+ endbfchar
166
+ `),g+`endcmap
167
+ CMapName currentdict /CMap defineresource pop
168
+ end
169
+ end`};e.events.push(["putFont",function(a){(function(h){var l=h.font,c=h.out,d=h.newObject,g=h.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="Identity-H"){for(var L=l.metadata.Unicode.widths,P=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",R=0;R<P.length;R++)p+=String.fromCharCode(P[R]);var j=d();g({data:p,addLength1:!0,objectId:j}),c("endobj");var U=d();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:U}),c("endobj");var C=d();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+ra(l.fontName)),c("/FontFile2 "+j+" 0 R"),c("/FontBBox "+n.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 J=d();c("<<"),c("/Type /Font"),c("/BaseFont /"+ra(l.fontName)),c("/FontDescriptor "+C+" 0 R"),c("/W "+n.API.PDFObject.convert(L)),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=d(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+U+" 0 R"),c("/BaseFont /"+ra(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+J+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(h){var l=h.font,c=h.out,d=h.newObject,g=h.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var L=l.metadata.rawData,P="",p=0;p<L.length;p++)P+=String.fromCharCode(L[p]);var R=d();g({data:P,addLength1:!0,objectId:R}),c("endobj");var j=d();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:j}),c("endobj");var U=d();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+R+" 0 R"),c("/Flags 96"),c("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+ra(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=d();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 "+j+" 0 R/BaseFont/"+ra(l.fontName)+"/FontDescriptor "+U+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(a)}]);var o=function(a){var h,l=a.text||"",c=a.x,d=a.y,g=a.options||{},L=a.mutex||{},P=L.pdfEscape,p=L.activeFontKey,R=L.fonts,j=p,U="",C=0,J="",X=R[j].encoding;if(R[j].encoding!=="Identity-H")return{text:l,x:c,y:d,options:g,mutex:L};for(J=l,j=p,Array.isArray(l)&&(J=l[0]),C=0;C<J.length;C+=1)R[j].metadata.hasOwnProperty("cmap")&&(h=R[j].metadata.cmap.unicode.codeMap[J[C].charCodeAt(0)]),h||J[C].charCodeAt(0)<256&&R[j].metadata.hasOwnProperty("Unicode")?U+=J[C]:U+="";var z="";return parseInt(j.slice(1))<14||X==="WinAnsiEncoding"?z=P(U,j).split("").map(function(ut){return ut.charCodeAt(0).toString(16)}).join(""):X==="Identity-H"&&(z=t(U,R[j])),L.isHex=!0,{text:z,x:c,y:d,options:g,mutex:L}};e.events.push(["postProcessText",function(a){var h=a.text||"",l=[],c={text:h,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(h)){var d=0;for(d=0;d<h.length;d+=1)Array.isArray(h[d])&&h[d].length===3?l.push([o(Object.assign({},c,{text:h[d][0]})).text,h[d][1],h[d][2]]):l.push(o(Object.assign({},c,{text:h[d]})).text);a.text=l}else a.text=o(Object.assign({},c,{text:h})).text}])})(Bt),(function(n){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},n.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},n.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}})(Bt.API),(function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(r){var o,a,h,l,c,d,g,L=e,P=[[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]],p=[[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]],R={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},j={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},U=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],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)$/),J=!1,X=0;this.__bidiEngine__={};var z=function(A){var N=A.charCodeAt(),_=N>>8,F=j[_];return F!==void 0?L[256*F+(255&N)]:_===252||_===253?"AL":C.test(_)?"L":_===8?"R":"N"},ut=function(A){for(var N,_=0;_<A.length;_++){if((N=z(A.charAt(_)))==="L")return!1;if(N==="R")return!0}return!1},bt=function(A,N,_,F){var Y,$,it,et,ct=N[F];switch(ct){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":J=!1;break;case"N":case"AN":break;case"EN":J&&(ct="AN");break;case"AL":J=!0,ct="R";break;case"WS":case"BN":ct="N";break;case"CS":F<1||F+1>=N.length||(Y=_[F-1])!=="EN"&&Y!=="AN"||($=N[F+1])!=="EN"&&$!=="AN"?ct="N":J&&($="AN"),ct=$===Y?$:"N";break;case"ES":ct=(Y=F>0?_[F-1]:"B")==="EN"&&F+1<N.length&&N[F+1]==="EN"?"EN":"N";break;case"ET":if(F>0&&_[F-1]==="EN"){ct="EN";break}if(J){ct="N";break}for(it=F+1,et=N.length;it<et&&N[it]==="ET";)it++;ct=it<et&&N[it]==="EN"?"EN":"N";break;case"NSM":if(h&&!l){for(et=N.length,it=F+1;it<et&&N[it]==="NSM";)it++;if(it<et){var dt=A[F],ht=dt>=1425&&dt<=2303||dt===64286;if(Y=N[it],ht&&(Y==="R"||Y==="AL")){ct="R";break}}}ct=F<1||(Y=N[F-1])==="B"?"N":_[F-1];break;case"B":J=!1,o=!0,ct=X;break;case"S":a=!0,ct="N"}return ct},Q=function(A,N,_){var F=A.split("");return _&&D(F,_,{hiLevel:X}),F.reverse(),N&&N.reverse(),F.join("")},D=function(A,N,_){var F,Y,$,it,et,ct=-1,dt=A.length,ht=0,w=[],k=X?p:P,q=[];for(J=!1,o=!1,a=!1,Y=0;Y<dt;Y++)q[Y]=z(A[Y]);for($=0;$<dt;$++){if(et=ht,w[$]=bt(A,q,w,$),F=240&(ht=k[et][R[w[$]]]),ht&=15,N[$]=it=k[ht][5],F>0)if(F===16){for(Y=ct;Y<$;Y++)N[Y]=1;ct=-1}else ct=-1;if(k[ht][6])ct===-1&&(ct=$);else if(ct>-1){for(Y=ct;Y<$;Y++)N[Y]=it;ct=-1}q[$]==="B"&&(N[$]=0),_.hiLevel|=it}a&&(function(W,K,rt){for(var lt=0;lt<rt;lt++)if(W[lt]==="S"){K[lt]=X;for(var st=lt-1;st>=0&&W[st]==="WS";st--)K[st]=X}})(q,N,dt)},T=function(A,N,_,F,Y){if(!(Y.hiLevel<A)){if(A===1&&X===1&&!o)return N.reverse(),void(_&&_.reverse());for(var $,it,et,ct,dt=N.length,ht=0;ht<dt;){if(F[ht]>=A){for(et=ht+1;et<dt&&F[et]>=A;)et++;for(ct=ht,it=et-1;ct<it;ct++,it--)$=N[ct],N[ct]=N[it],N[it]=$,_&&($=_[ct],_[ct]=_[it],_[it]=$);ht=et}ht++}}},V=function(A,N,_){var F=A.split(""),Y={hiLevel:X};return _||(_=[]),D(F,_,Y),(function($,it,et){if(et.hiLevel!==0&&g)for(var ct,dt=0;dt<$.length;dt++)it[dt]===1&&(ct=U.indexOf($[dt]))>=0&&($[dt]=U[ct+1])})(F,_,Y),T(2,F,N,_,Y),T(1,F,N,_,Y),F.join("")};return this.__bidiEngine__.doBidiReorder=function(A,N,_){if((function(Y,$){if($)for(var it=0;it<Y.length;it++)$[it]=it;l===void 0&&(l=ut(Y)),d===void 0&&(d=ut(Y))})(A,N),h||!c||d)if(h&&c&&l^d)X=l?1:0,A=Q(A,N,_);else if(!h&&c&&d)X=l?1:0,A=V(A,N,_),A=Q(A,N);else if(!h||l||c||d){if(h&&!c&&l^d)A=Q(A,N),l?(X=0,A=V(A,N,_)):(X=1,A=V(A,N,_),A=Q(A,N));else if(h&&l&&!c&&d)X=1,A=V(A,N,_),A=Q(A,N);else if(!h&&!c&&l^d){var F=g;l?(X=1,A=V(A,N,_),X=0,g=!1,A=V(A,N,_),g=F):(X=0,A=V(A,N,_),A=Q(A,N),X=1,g=!1,A=V(A,N,_),g=F,A=Q(A,N))}}else X=0,A=V(A,N,_);else X=l?1:0,A=V(A,N,_);return A},this.__bidiEngine__.setOptions=function(A){A&&(h=A.isInputVisual,c=A.isOutputVisual,l=A.isInputRtl,d=A.isOutputRtl,g=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(r){var o=r.text;r.x,r.y;var a=r.options||{};r.mutex,a.lang;var h=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,t.setOptions(a),Object.prototype.toString.call(o)==="[object Array]"){var l=0;for(h=[],l=0;l<o.length;l+=1)Object.prototype.toString.call(o[l])==="[object Array]"?h.push([t.doBidiReorder(o[l][0]),o[l][1],o[l][2]]):h.push([t.doBidiReorder(o[l])]);r.text=h}else r.text=t.doBidiReorder(o);t.setOptions({isInputVisual:!0})}])})(Bt),Bt.API.TTFFont=(function(){function n(e){var t;if(this.rawData=e,t=this.contents=new ti(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new x2(this),this.registerTTF()}return n.open=function(e){return new n(e)},n.prototype.parse=function(){return this.directory=new s2(this.contents),this.head=new u2(this),this.name=new p2(this),this.cmap=new qc(this),this.toUnicode={},this.hhea=new c2(this),this.maxp=new g2(this),this.hmtx=new m2(this),this.post=new h2(this),this.os2=new f2(this),this.loca=new y2(this),this.glyf=new v2(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]},n.prototype.registerTTF=function(){var e,t,r,o,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var h,l,c,d;for(d=[],h=0,l=(c=this.bbox).length;h<l;h++)e=c[h],d.push(Math.round(e*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(o=this.post.italic_angle),32768&(t=o>>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=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===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")},n.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},n.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},n.prototype.widthOfString=function(e,t,r){var o,a,h,l;for(h=0,a=0,l=(e=""+e).length;0<=l?a<l:a>l;a=0<=l?++a:--a)o=e.charCodeAt(a),h+=this.widthOfGlyph(this.characterToGlyph(o))+r*(1e3/t)||0;return h*(t/1e3)},n.prototype.lineHeight=function(e,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},n})();var nr,ti=(function(){function n(e){this.data=e??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(e){return this.data[this.pos++]=e},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},n.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},n.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},n.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},n.prototype.writeString=function(e){var t,r,o;for(o=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)o.push(this.writeByte(e.charCodeAt(t)));return o},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(e){return this.writeInt16(e)},n.prototype.readLongLong=function(){var e,t,r,o,a,h,l,c;return e=this.readByte(),t=this.readByte(),r=this.readByte(),o=this.readByte(),a=this.readByte(),h=this.readByte(),l=this.readByte(),c=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^o)+16777216*(255^a)+65536*(255^h)+256*(255^l)+(255^c)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*o+16777216*a+65536*h+256*l+c},n.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(e){return this.writeInt32(e)},n.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},n.prototype.write=function(e){var t,r,o,a;for(a=[],r=0,o=e.length;r<o;r++)t=e[r],a.push(this.writeByte(t));return a},n})(),s2=(function(){var n;function e(t){var r,o,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},o=0,a=this.tableCount;0<=a?o<a:o>a;o=0<=a?++o:--o)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(t){var r,o,a,h,l,c,d,g,L,P,p,R,j;for(j in p=Object.keys(t).length,c=Math.log(2),L=16*Math.floor(Math.log(p)/c),h=Math.floor(L/c),g=16*p-L,(o=new ti).writeInt(this.scalarType),o.writeShort(p),o.writeShort(L),o.writeShort(h),o.writeShort(g),a=16*p,d=o.pos+a,l=null,R=[],t)for(P=t[j],o.writeString(j),o.writeInt(n(P)),o.writeInt(d),o.writeInt(P.length),R=R.concat(P),j==="head"&&(l=d),d+=P.length;d%4;)R.push(0),d++;return o.write(R),r=2981146554-n(o.data),o.pos=l+8,o.writeUInt32(r),o.data},n=function(t){var r,o,a,h;for(t=Uc.call(t);t.length%4;)t.push(0);for(a=new ti(t),o=0,r=0,h=t.length;r<h;r=r+=4)o+=a.readUInt32();return 4294967295&o},e})(),l2={}.hasOwnProperty,mr=function(n,e){for(var t in e)l2.call(e,t)&&(n[t]=e[t]);function r(){this.constructor=n}return r.prototype=e.prototype,n.prototype=new r,n.__super__=e.prototype,n};nr=(function(){function n(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n})();var u2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="head",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},n.prototype.encode=function(e){var t;return(t=new ti).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},n})(),Xu=(function(){function n(e,t){var r,o,a,h,l,c,d,g,L,P,p,R,j,U,C,J,X;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),L=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=e.readByte();break;case 4:for(p=e.readUInt16(),P=p/2,e.pos+=6,a=(function(){var z,ut;for(ut=[],c=z=0;0<=P?z<P:z>P;c=0<=P?++z:--z)ut.push(e.readUInt16());return ut})(),e.pos+=2,j=(function(){var z,ut;for(ut=[],c=z=0;0<=P?z<P:z>P;c=0<=P?++z:--z)ut.push(e.readUInt16());return ut})(),d=(function(){var z,ut;for(ut=[],c=z=0;0<=P?z<P:z>P;c=0<=P?++z:--z)ut.push(e.readUInt16());return ut})(),g=(function(){var z,ut;for(ut=[],c=z=0;0<=P?z<P:z>P;c=0<=P?++z:--z)ut.push(e.readUInt16());return ut})(),o=(this.length-e.pos+this.offset)/2,l=(function(){var z,ut;for(ut=[],c=z=0;0<=o?z<o:z>o;c=0<=o?++z:--z)ut.push(e.readUInt16());return ut})(),c=C=0,X=a.length;C<X;c=++C)for(U=a[c],r=J=R=j[c];R<=U?J<=U:J>=U;r=R<=U?++J:--J)g[c]===0?h=r+d[c]:(h=l[g[c]/2+(r-R)-(P-c)]||0)!==0&&(h+=d[c]),this.codeMap[r]=65535&h}e.pos=L}return n.encode=function(e,t){var r,o,a,h,l,c,d,g,L,P,p,R,j,U,C,J,X,z,ut,bt,Q,D,T,V,A,N,_,F,Y,$,it,et,ct,dt,ht,w,k,q,W,K,rt,lt,st,ft,xt,Nt;switch(F=new ti,h=Object.keys(e).sort(function(_t,It){return _t-It}),t){case"macroman":for(j=0,U=(function(){var _t=[];for(R=0;R<256;++R)_t.push(0);return _t})(),J={0:0},a={},Y=0,ct=h.length;Y<ct;Y++)J[st=e[o=h[Y]]]==null&&(J[st]=++j),a[o]={old:e[o],new:J[e[o]]},U[o]=J[e[o]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(U),{charMap:a,subtable:F.data,maxGlyphID:j+1};case"unicode":for(N=[],L=[],X=0,J={},r={},C=d=null,$=0,dt=h.length;$<dt;$++)J[ut=e[o=h[$]]]==null&&(J[ut]=++X),r[o]={old:ut,new:J[ut]},l=J[ut]-o,C!=null&&l===d||(C&&L.push(C),N.push(o),d=l),C=o;for(C&&L.push(C),L.push(65535),N.push(65535),V=2*(T=N.length),D=2*Math.pow(Math.log(T)/Math.LN2,2),P=Math.log(D/2)/Math.LN2,Q=2*T-D,c=[],bt=[],p=[],R=it=0,ht=N.length;it<ht;R=++it){if(A=N[R],g=L[R],A===65535){c.push(0),bt.push(0);break}if(A-(_=r[A].new)>=32768)for(c.push(0),bt.push(2*(p.length+T-R)),o=et=A;A<=g?et<=g:et>=g;o=A<=g?++et:--et)p.push(r[o].new);else c.push(_-A),bt.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*T+2*p.length),F.writeUInt16(0),F.writeUInt16(V),F.writeUInt16(D),F.writeUInt16(P),F.writeUInt16(Q),rt=0,w=L.length;rt<w;rt++)o=L[rt],F.writeUInt16(o);for(F.writeUInt16(0),lt=0,k=N.length;lt<k;lt++)o=N[lt],F.writeUInt16(o);for(ft=0,q=c.length;ft<q;ft++)l=c[ft],F.writeUInt16(l);for(xt=0,W=bt.length;xt<W;xt++)z=bt[xt],F.writeUInt16(z);for(Nt=0,K=p.length;Nt<K;Nt++)j=p[Nt],F.writeUInt16(j);return{charMap:r,subtable:F.data,maxGlyphID:X+1}}},n})(),qc=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="cmap",n.prototype.parse=function(e){var t,r,o;for(e.pos=this.offset,this.version=e.readUInt16(),o=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=o?r<o:r>o;r=0<=o?++r:--r)t=new Xu(e,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},n.encode=function(e,t){var r,o;return t==null&&(t="macroman"),r=Xu.encode(e,t),(o=new ti).writeUInt16(0),o.writeUInt16(1),r.table=o.data.concat(r.subtable),r},n})(),c2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="hhea",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},n})(),f2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="OS/2",n.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=(function(){var t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r})(),this.charRange=(function(){var t,r;for(r=[],t=0;t<4;++t)r.push(e.readInt());return r})(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=(function(){var t,r;for(r=[],t=0;t<2;t=++t)r.push(e.readInt());return r})(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},n})(),h2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="post",n.prototype.parse=function(e){var t,r,o;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(r=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],o=[];e.pos<this.offset+this.length;)t=e.readByte(),o.push(this.names.push(e.readString(t)));return o;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 262144:return this.map=(function(){var h,l,c;for(c=[],a=h=0,l=this.file.maxp.numGlyphs;0<=l?h<l:h>l;a=0<=l?++h:--h)c.push(e.readUInt32());return c}).call(this)}},n})(),d2=function(n,e){this.raw=n,this.length=n.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},p2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="name",n.prototype.parse=function(e){var t,r,o,a,h,l,c,d,g,L,P;for(e.pos=this.offset,e.readShort(),t=e.readShort(),l=e.readShort(),r=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+l+e.readShort()});for(c={},a=g=0,L=r.length;g<L;a=++g)o=r[a],e.pos=o.offset,d=e.readString(o.length),h=new d2(d,o),c[P=o.nameID]==null&&(c[P]=[]),c[o.nameID].push(h);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},n})(),g2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="maxp",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},n})(),m2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="hmtx",n.prototype.parse=function(e){var t,r,o,a,h,l,c;for(e.pos=this.offset,this.metrics=[],t=0,l=this.file.hhea.numberOfMetrics;0<=l?t<l:t>l;t=0<=l?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,g;for(g=[],t=d=0;0<=o?d<o:d>o;t=0<=o?++d:--d)g.push(e.readInt16());return g})(),this.widths=(function(){var d,g,L,P;for(P=[],d=0,g=(L=this.metrics).length;d<g;d++)a=L[d],P.push(a.advance);return P}).call(this),r=this.widths[this.widths.length-1],c=[],t=h=0;0<=o?h<o:h>o;t=0<=o?++h:--h)c.push(this.widths.push(r));return c},n.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},n})(),Uc=[].slice,v2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(e){var t,r,o,a,h,l,c,d,g,L;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,r=a.indexOf(e),(o=a.lengthOf(e))===0?this.cache[e]=null:(t.pos=this.offset+r,h=(l=new ti(t.read(o))).readShort(),d=l.readShort(),L=l.readShort(),c=l.readShort(),g=l.readShort(),this.cache[e]=h===-1?new w2(l,d,L,c,g):new b2(l,h,d,L,c,g),this.cache[e]))},n.prototype.encode=function(e,t,r){var o,a,h,l,c;for(h=[],a=[],l=0,c=t.length;l<c;l++)o=e[t[l]],a.push(h.length),o&&(h=h.concat(o.encode(r)));return a.push(h.length),{table:h,offsets:a}},n})(),b2=(function(){function n(e,t,r,o,a,h){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=o,this.xMax=a,this.yMax=h,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n})(),w2=(function(){function n(e,t,r,o,a){var h,l;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=o,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],h=this.raw;l=h.readShort(),this.glyphOffsets.push(h.pos),this.glyphIDs.push(h.readUInt16()),32&l;)h.pos+=1&l?4:2,128&l?h.pos+=8:64&l?h.pos+=4:8&l&&(h.pos+=2)}return n.prototype.encode=function(){var e,t,r;for(t=new ti(Uc.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},n})(),y2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,nr),n.prototype.tag="loca",n.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?(function(){var o,a;for(a=[],r=0,o=this.length;r<o;r+=2)a.push(2*e.readUInt16());return a}).call(this):(function(){var o,a;for(a=[],r=0,o=this.length;r<o;r+=4)a.push(e.readUInt32());return a}).call(this)},n.prototype.indexOf=function(e){return this.offsets[e]},n.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},n.prototype.encode=function(e,t){for(var r=new Uint32Array(this.offsets.length),o=0,a=0,h=0;h<r.length;++h)if(r[h]=o,a<t.length&&t[a]==h){++a,r[h]=o;var l=this.offsets[h],c=this.offsets[h+1]-l;c>0&&(o+=c)}for(var d=new Array(4*r.length),g=0;g<r.length;++g)d[4*g+3]=255&r[g],d[4*g+2]=(65280&r[g])>>8,d[4*g+1]=(16711680&r[g])>>16,d[4*g]=(4278190080&r[g])>>24;return d},n})(),x2=(function(){function n(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var e,t,r,o,a;for(t in o=this.font.cmap.tables[0].codeMap,e={},a=this.subset)r=a[t],e[t]=o[r];return e},n.prototype.glyphsFor=function(e){var t,r,o,a,h,l,c;for(o={},h=0,l=e.length;h<l;h++)o[a=e[h]]=this.font.glyf.glyphFor(a);for(a in t=[],o)(r=o[a])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(a in c=this.glyphsFor(t))r=c[a],o[a]=r;return o},n.prototype.encode=function(e,t){var r,o,a,h,l,c,d,g,L,P,p,R,j,U,C;for(o in r=qc.encode(this.generateCmap(),"unicode"),h=this.glyphsFor(e),p={0:0},C=r.charMap)p[(c=C[o]).old]=c.new;for(R in P=r.maxGlyphID,h)R in p||(p[R]=P++);return g=(function(J){var X,z;for(X in z={},J)z[J[X]]=X;return z})(p),L=Object.keys(g).sort(function(J,X){return J-X}),j=(function(){var J,X,z;for(z=[],J=0,X=L.length;J<X;J++)l=L[J],z.push(g[l]);return z})(),a=this.font.glyf.encode(h,j,p),d=this.font.loca.encode(a.offsets,j),U={cmap:this.font.cmap.raw(),glyf:a.table,loca:d,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&&(U["OS/2"]=this.font.os2.raw()),this.font.directory.encode(U)},n})();Bt.API.PDFObject=(function(){var n;function e(){}return n=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},e.convert=function(t){var r,o,a,h;if(Array.isArray(t))return"["+(function(){var l,c,d;for(d=[],l=0,c=t.length;l<c;l++)r=t[l],d.push(e.convert(r));return d})().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+n(t.getUTCFullYear(),4)+n(t.getUTCMonth(),2)+n(t.getUTCDate(),2)+n(t.getUTCHours(),2)+n(t.getUTCMinutes(),2)+n(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(o in a=["<<"],t)h=t[o],a.push("/"+o+" "+e.convert(h));return a.push(">>"),a.join(`
170
+ `)}return""+t},e})();const N2=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:X1,AcroFormAppearance:Ct,AcroFormButton:rn,AcroFormCheckBox:ja,AcroFormChoiceField:Ai,AcroFormComboBox:Li,AcroFormEditBox:Fa,AcroFormListBox:_i,AcroFormPasswordField:Ta,AcroFormPushButton:Oa,AcroFormRadioButton:Ni,AcroFormTextField:Qr,GState:Ra,ShadingPattern:Kr,TilingPattern:xi,default:Bt,jsPDF:Bt},Symbol.toStringTag,{value:"Module"}));export{bs as _,N2 as j,L2 as r};