@adaptive-ai/sdk 0.1.8 → 0.1.9

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.
@@ -1,8 +1,8 @@
1
- import {useState,useEffect,useRef,useCallback}from'react';import {useMutation}from'@tanstack/react-query';import {identity}from'lodash';import {nanoid}from'nanoid';import yt from'superjson';import {rpcClient,RpcError}from'typed-rpc';var vn=Object.create;var _t=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var bn=Object.getOwnPropertyNames;var _n=Object.getPrototypeOf,En=Object.prototype.hasOwnProperty;var Ze=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports);var Sn=(i,r,S,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of bn(r))!En.call(i,e)&&e!==S&&_t(i,e,{get:()=>r[e],enumerable:!(l=wn(r,e))||l.enumerable});return i};var Et=(i,r,S)=>(S=i!=null?vn(_n(i)):{},Sn(_t(S,"default",{value:i,enumerable:true}),i));var Ft=Ze((nt,rt)=>{(i=>{let r=(()=>{let R=0;return {escape:function(s){return s.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(s){return s.search(/^(data:)/)!==-1},canvasToBlob:function(s){return s.toBlob?new Promise(function(y){s.toBlob(y);}):(y=>new Promise(function(_){var A=a(y.toDataURL().split(",")[1]),T=A.length,m=new Uint8Array(T);for(let d=0;d<T;d++)m[d]=A.charCodeAt(d);_(new Blob([m],{type:"image/png"}));}))(s)},resolveUrl:function(s,y){var _=globalThis.document.implementation.createHTMLDocument(),A=_.createElement("base"),T=(_.head.appendChild(A),_.createElement("a"));return _.body.appendChild(T),A.href=y,T.href=s,T.href},getAndEncode:function(s){let y=v.impl.urlCache.find(function(_){return _.url===s});return y||(y={url:s,promise:null},v.impl.urlCache.push(y)),y.promise===null&&(v.impl.options.cacheBust&&(s+=(/\?/.test(s)?"&":"?")+new Date().getTime()),y.promise=new Promise(function(_){let A=new XMLHttpRequest;function T(P){console.error(P),_("");}function m(){var P=v.impl.options.imagePlaceholder;P?_(P):T("Status:"+A.status+" while fetching resource: "+s);}if(A.timeout=v.impl.options.httpTimeout,A.onerror=m,A.ontimeout=m,A.onloadend=function(){if(A.readyState===XMLHttpRequest.DONE){var P=A.status;if(P===0&&s.toLowerCase().startsWith("file://")||200<=P&&P<=300&&A.response!==null){P=A.response,P instanceof Blob||T("Expected response to be a Blob, but got: "+typeof P);let U=new globalThis.FileReader;U.onloadend=function(){var x=U.result;_(x);};try{U.readAsDataURL(P);}catch(x){T("Failed to read the response as Data URL: "+x.toString());}}else m();}},0<v.impl.options.useCredentialsFilters.length&&(v.impl.options.useCredentials=0<v.impl.options.useCredentialsFilters.filter(P=>0<=s.search(P)).length),v.impl.options.useCredentials&&(A.withCredentials=true),v.impl.options.corsImg&&s.indexOf("http")===0&&s.indexOf(globalThis.window.location.origin)===-1){var d=(v.impl.options.corsImg.method||"GET").toUpperCase()==="POST"?"POST":"GET";A.open(d,(v.impl.options.corsImg.url||"").replace("#{cors}",s),true);let P=false,U=v.impl.options.corsImg.headers||{},x=(Object.keys(U).forEach(function(N){U[N].indexOf("application/json")!==-1&&(P=true),A.setRequestHeader(N,U[N]);}),(N=>{try{return JSON.parse(JSON.stringify(N))}catch(D){T("corsImg.data is missing or invalid:"+D.toString());}})(v.impl.options.corsImg.data||""));Object.keys(x).forEach(function(N){typeof x[N]=="string"&&(x[N]=x[N].replace("#{cors}",s));}),A.responseType="blob",A.send(P?JSON.stringify(x):x);}else A.open("GET",s,true),A.responseType="blob",A.send();})),y.promise},uid:function(){return "u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+R++},asArray:function(s){var y=[],_=s.length;for(let A=0;A<_;A++)y.push(s[A]);return y},escapeXhtml:function(s){return s.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(s){return s!=="data:,"?new Promise(function(y,_){let A=globalThis.document.createElementNS("http://www.w3.org/2000/svg","svg"),T=new globalThis.Image;v.impl.options.useCredentials&&(T.crossOrigin="use-credentials"),T.onload=function(){globalThis.document.body.removeChild(A),globalThis.window&&globalThis.window.requestAnimationFrame?globalThis.window.requestAnimationFrame(function(){y(T);}):y(T);},T.onerror=m=>{globalThis.document.body.removeChild(A),_(m);},A.appendChild(T),T.src=s,globalThis.document.body.appendChild(A);}):Promise.resolve()},width:function(s){var y=b(s,"width");if(!isNaN(y))return y;var y=b(s,"border-left-width"),_=b(s,"border-right-width");return s.scrollWidth+y+_},height:function(s){var y=b(s,"height");if(!isNaN(y))return y;var y=b(s,"border-top-width"),_=b(s,"border-bottom-width");return s.scrollHeight+y+_},getWindow:p,isElement:u,isElementHostForOpenShadowRoot:function(s){return u(s)&&s.shadowRoot!==null},isShadowRoot:O,isInShadowRoot:f,isHTMLElement:function(s){return s instanceof p(s).HTMLElement},isHTMLCanvasElement:function(s){return s instanceof p(s).HTMLCanvasElement},isHTMLInputElement:function(s){return s instanceof p(s).HTMLInputElement},isHTMLImageElement:function(s){return s instanceof p(s).HTMLImageElement},isHTMLLinkElement:function(s){return s instanceof p(s).HTMLLinkElement},isHTMLScriptElement:function(s){return s instanceof p(s).HTMLScriptElement},isHTMLStyleElement:function(s){return s instanceof p(s).HTMLStyleElement},isHTMLTextAreaElement:function(s){return s instanceof p(s).HTMLTextAreaElement},isShadowSlotElement:function(s){return f(s)&&s instanceof p(s).HTMLSlotElement},isSVGElement:function(s){return s instanceof p(s).SVGElement},isSVGRectElement:function(s){return s instanceof p(s).SVGRectElement},isDimensionMissing:function(s){return isNaN(s)||s<=0}};function p(s){return s=s?s.ownerDocument:void 0,(s?s.defaultView:void 0)||globalThis.window||i}function O(s){return s instanceof p(s).ShadowRoot}function f(s){return s!=null&&s.getRootNode!==void 0&&O(s.getRootNode())}function u(s){return s instanceof p(s).Element}function b(s,y){if(s.nodeType===E){let _=o(s).getPropertyValue(y);if(_.slice(-2)==="px")return _=_.slice(0,-2),parseFloat(_)}return NaN}})(),S=(()=>{let R=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return {inlineAll:function(b,s,y){return p(b)?Promise.resolve(b).then(O).then(function(_){let A=Promise.resolve(b);return _.forEach(function(T){A=A.then(function(m){return u(m,T,s,y)});}),A}):Promise.resolve(b)},shouldProcess:p,impl:{readUrls:O,inline:u,urlAsRegex:f}};function p(b){return b.search(R)!==-1}function O(b){for(var s,y=[];(s=R.exec(b))!==null;)y.push(s[2]);return y.filter(function(_){return !r.isDataUrl(_)})}function f(b){return new RegExp(`url\\((["']?)(${r.escape(b)})\\1\\)`,"gm")}function u(b,s,y,_){return Promise.resolve(s).then(function(A){return y?r.resolveUrl(A,y):A}).then(_||r.getAndEncode).then(function(A){var T=f(s);return b.replace(T,`url($1${A}$1)`)})}})(),l={resolveAll:function(){return e().then(function(R){return Promise.all(R.map(function(p){return p.resolve()}))}).then(function(R){return R.join(`
2
- `)})},impl:{readAll:e}};function e(){return Promise.resolve(r.asArray(globalThis.document.styleSheets)).then(function(p){let O=[];return p.forEach(function(f){var u=Object.getPrototypeOf(f);if(Object.prototype.hasOwnProperty.call(u,"cssRules"))try{r.asArray(f.cssRules||[]).forEach(O.push.bind(O));}catch(b){console.error("domtoimage: Error while reading CSS rules from: "+f.href,b.toString());}}),O}).then(function(p){return p.filter(function(O){return O.type===CSSRule.FONT_FACE_RULE}).filter(function(O){return S.shouldProcess(O.style.getPropertyValue("src"))})}).then(function(p){return p.map(R)});function R(p){return {resolve:function(){var O=(p.parentStyleSheet||{}).href;return S.inlineAll(p.cssText,O)},src:function(){return p.style.getPropertyValue("src")}}}}let t={inlineAll:function R(p){if(!r.isElement(p))return Promise.resolve(p);return O(p).then(function(){return r.isHTMLImageElement(p)?g(p).inline():Promise.all(r.asArray(p.childNodes).map(function(f){return R(f)}))});function O(f){let u=["background","background-image"],b=u.map(function(s){let y=f.style.getPropertyValue(s),_=f.style.getPropertyPriority(s);return y?S.inlineAll(y).then(function(A){f.style.setProperty(s,A,_);}):Promise.resolve()});return Promise.all(b).then(function(){return f})}},impl:{newImage:g}};function g(R){return {inline:function(p){return r.isDataUrl(R.src)?Promise.resolve():Promise.resolve(R.src).then(p||r.getAndEncode).then(function(O){return new Promise(function(f){R.onload=f,R.onerror=f,R.src=O;})})}}}let c={copyDefaultStyles:true,imagePlaceholder:void 0,cacheBust:false,useCredentials:false,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0},v={toSvg:n,toPng:function(R,p){return h(R,p).then(function(O){return O.toDataURL()})},toJpeg:function(R,p){return h(R,p).then(function(O){return O.toDataURL("image/jpeg",(p?p.quality:void 0)||1)})},toBlob:function(R,p){return h(R,p).then(r.canvasToBlob)},toPixelData:function(R,p){return h(R,p).then(function(O){return O.getContext("2d").getImageData(0,0,r.width(R),r.height(R)).data})},toCanvas:h,impl:{fontFaces:l,images:t,util:r,inliner:S,urlCache:[],options:{},copyOptions:function(R){R.copyDefaultStyles===void 0?v.impl.options.copyDefaultStyles=c.copyDefaultStyles:v.impl.options.copyDefaultStyles=R.copyDefaultStyles,v.impl.options.imagePlaceholder=(R.imagePlaceholder===void 0?c:R).imagePlaceholder,v.impl.options.cacheBust=(R.cacheBust===void 0?c:R).cacheBust,v.impl.options.corsImg=(R.corsImg===void 0?c:R).corsImg,v.impl.options.useCredentials=(R.useCredentials===void 0?c:R).useCredentials,v.impl.options.useCredentialsFilters=(R.useCredentialsFilters===void 0?c:R).useCredentialsFilters,v.impl.options.httpTimeout=(R.httpTimeout===void 0?c:R).httpTimeout,v.impl.options.styleCaching=(R.styleCaching===void 0?c:R).styleCaching;}}},E=(typeof nt=="object"&&typeof rt=="object"?rt.exports=v:i.domtoimage=v,(globalThis.Node===void 0?void 0:globalThis.Node.ELEMENT_NODE)||1),o=(i===void 0?void 0:i.getComputedStyle)||(globalThis.window===void 0?void 0:globalThis.window.getComputedStyle)||globalThis.getComputedStyle,a=(i===void 0?void 0:i.atob)||(globalThis.window===void 0?void 0:globalThis.window.atob)||globalThis.atob;function n(R,p){v.impl.util.getWindow(R);let f=(p=p||{},v.impl.copyOptions(p),[]);return Promise.resolve(R).then(function(u){if(u.nodeType===E)return u;var b=u,s=globalThis.document.createElement("span");return b.replaceWith(s),s.append(u),f.push({child:b,wrapper:s}),s}).then(function(u){return function b(s,y,_,A){let T=y.filter;if(s===w||r.isHTMLScriptElement(s)||r.isHTMLStyleElement(s)||r.isHTMLLinkElement(s)||_!==null&&T&&!T(s))return Promise.resolve();return Promise.resolve(s).then(m).then(d).then(function(D){return x(D,U(s))}).then(P).then(function(D){return N(D,s)});function m(D){return r.isHTMLCanvasElement(D)?r.makeImage(D.toDataURL()):D.cloneNode(false)}function d(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,false),Promise.resolve(D)}function P(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,true),Promise.resolve(D)}function U(D){return r.isElementHostForOpenShadowRoot(D)?D.shadowRoot:D}function x(D,Q){let k=K(Q),F=Promise.resolve();if(k.length!==0){let V=o($(Q));r.asArray(k).forEach(function(z){F=F.then(function(){return b(z,y,V).then(function(q){q&&D.appendChild(q);})});});}return F.then(function(){return D});function $(V){return r.isShadowRoot(V)?V.host:V}function K(V){if(r.isShadowSlotElement(V)){let z=V.assignedNodes();if(z&&0<z.length)return z}return V.childNodes}}function N(D,Q){return !r.isElement(D)||r.isShadowSlotElement(Q)?Promise.resolve(D):Promise.resolve().then(F).then($).then(K).then(V).then(k).then(function(){return D});function k(){r.isHTMLImageElement(D)&&(D.removeAttribute("loading"),Q.srcset||Q.sizes)&&(D.removeAttribute("srcset"),D.removeAttribute("sizes"),D.src=Q.currentSrc||Q.src);}function F(){function z(G,W){W.font=G.font,W.fontFamily=G.fontFamily,W.fontFeatureSettings=G.fontFeatureSettings,W.fontKerning=G.fontKerning,W.fontSize=G.fontSize,W.fontStretch=G.fontStretch,W.fontStyle=G.fontStyle,W.fontVariant=G.fontVariant,W.fontVariantCaps=G.fontVariantCaps,W.fontVariantEastAsian=G.fontVariantEastAsian,W.fontVariantLigatures=G.fontVariantLigatures,W.fontVariantNumeric=G.fontVariantNumeric,W.fontVariationSettings=G.fontVariationSettings,W.fontWeight=G.fontWeight;}function q(G,W){let ie=o(G);ie.cssText?(W.style.cssText=ie.cssText,z(ie,W.style)):(I(y,G,ie,_,W),_===null&&(["inset-block","inset-block-start","inset-block-end"].forEach(ae=>W.style.removeProperty(ae)),["left","right","top","bottom"].forEach(ae=>{W.style.getPropertyValue(ae)&&W.style.setProperty(ae,"0px");})));}q(Q,D);}function $(){let z=r.uid();function q(G){let W=o(Q,G),ie=W.getPropertyValue("content");if(ie!==""&&ie!=="none"){let Y=function(){let J=`.${z}:`+G,ne=(W.cssText?oe:j)();return globalThis.document.createTextNode(J+`{${ne}}`);function oe(){return `${W.cssText} content: ${ie};`}function j(){return r.asArray(W).map(ee).join("; ")+";";function ee(X){let le=W.getPropertyValue(X),ge=W.getPropertyPriority(X)?" !important":"";return X+": "+le+ge}}};let Z=D.getAttribute("class")||"",te=(D.setAttribute("class",Z+" "+z),globalThis.document.createElement("style"));te.appendChild(Y()),D.appendChild(te);}}[":before",":after"].forEach(function(G){q(G);});}function K(){r.isHTMLTextAreaElement(Q)&&(D.innerHTML=Q.value),r.isHTMLInputElement(Q)&&D.setAttribute("value",Q.value);}function V(){r.isSVGElement(D)&&(D.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.isSVGRectElement(D))&&["width","height"].forEach(function(z){let q=D.getAttribute(z);q&&D.style.setProperty(z,q);});}}}(u,p,null)}).then(p.disableEmbedFonts?Promise.resolve(R):C).then(p.disableInlineImages?Promise.resolve(R):M).then(function(u){p.bgcolor&&(u.style.backgroundColor=p.bgcolor),p.width&&(u.style.width=p.width+"px"),p.height&&(u.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(s){u.style[s]=p.style[s];});let b=null;return typeof p.onclone=="function"&&(b=p.onclone(u)),Promise.resolve(b).then(function(){return u})}).then(function(u){let b=p.width||r.width(R),s=p.height||r.height(R);return Promise.resolve(u).then(function(y){return y.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(y)}).then(r.escapeXhtml).then(function(y){var _=(r.isDimensionMissing(b)?' width="100%"':` width="${b}"`)+(r.isDimensionMissing(s)?' height="100%"':` height="${s}"`);return `<svg xmlns="http://www.w3.org/2000/svg"${(r.isDimensionMissing(b)?"":` width="${b}"`)+(r.isDimensionMissing(s)?"":` height="${s}"`)}><foreignObject${_}>${y}</foreignObject></svg>`}).then(function(y){return "data:image/svg+xml;charset=utf-8,"+y})}).then(function(u){for(;0<f.length;){var b=f.pop();b.wrapper.replaceWith(b.child);}return u}).then(function(u){return v.impl.urlCache=[],w&&(globalThis.document.body.removeChild(w),w=null),H&&clearTimeout(H),H=setTimeout(()=>{H=null,B={};},2e4),u})}function h(R,p){return n(R,p=p||{}).then(r.makeImage).then(function(O){var f=typeof p.scale!="number"?1:p.scale,u=((s,y)=>{let _=p.width||r.width(s),A=p.height||r.height(s);return r.isDimensionMissing(_)&&(_=r.isDimensionMissing(A)?300:2*A),r.isDimensionMissing(A)&&(A=_/2),(s=globalThis.document.createElement("canvas")).width=_*y,s.height=A*y,p.bgcolor&&((y=s.getContext("2d")).fillStyle=p.bgcolor,y.fillRect(0,0,s.width,s.height)),s})(R,f),b=u.getContext("2d");return b.msImageSmoothingEnabled=false,b.imageSmoothingEnabled=false,O&&(b.scale(f,f),b.drawImage(O,0,0)),u})}let w=null;function C(R){return l.resolveAll().then(function(p){var O;return p!==""&&(O=globalThis.document.createElement("style"),R.appendChild(O),O.appendChild(globalThis.document.createTextNode(p))),R})}function M(R){return t.inlineAll(R).then(function(){return R})}function I(R,p,O,f,u){let b=v.impl.options.copyDefaultStyles?((y,_)=>{var A,T=(P=>(y.styleCaching!=="relaxed"?P:P.filter((U,x,N)=>x===0||x===N.length-1)).join(">"))(_=(P=>{var U=[];do if(P.nodeType===E){var x=P.tagName;if(U.push(x),L.includes(x))break}while(P=P.parentNode);return U})(_));{if(B[T])return B[T];_=((P,U)=>{let x=P.body;do{var N=U.pop(),N=P.createElement(N);x.appendChild(N),x=N;}while(0<U.length);return x.textContent="\u200B",x})((A=(()=>{if(w)return w.contentWindow;U=globalThis.document.characterSet||"UTF-8",P=(P=globalThis.document.doctype)?(`<!DOCTYPE ${F(P.name)} ${F(P.publicId)} `+F(P.systemId)).trim()+">":"",(w=globalThis.document.createElement("iframe")).id="domtoimage-sandbox-"+r.uid(),w.style.top="-9999px",w.style.visibility="hidden",w.style.position="fixed",globalThis.document.body.appendChild(w);var P,U,x=w,N="domtoimage-sandbox";try{return x.contentWindow.document.write(P+`<html><head><meta charset='${U}'><title>${N}</title></head><body></body></html>`),x.contentWindow}catch{}var D=globalThis.document.createElement("meta");D.setAttribute("charset",U);try{var Q=globalThis.document.implementation.createHTMLDocument(N),k=(Q.head.appendChild(D),P+Q.documentElement.outerHTML);return x.setAttribute("srcdoc",k),x.contentWindow}catch{}return x.contentDocument.head.appendChild(D),x.contentDocument.title=N,x.contentWindow;function F($){var K;return $?((K=globalThis.document.createElement("div")).innerText=$,K.innerHTML):""}})()).document,_),A=((P,U)=>{let x={},N=P.getComputedStyle(U);return r.asArray(N).forEach(function(D){x[D]=D==="width"||D==="height"?"auto":N.getPropertyValue(D);}),x})(A,_);var m=_;do{var d=m.parentElement;d!==null&&d.removeChild(m),m=d;}while(m&&m.tagName!=="BODY");return B[T]=A}})(R,p):{},s=u.style;r.asArray(O).forEach(function(y){var _,A,T,m;R.filterStyles&&!R.filterStyles(p,y)||(A=O.getPropertyValue(y),T=b[y],_=f?f.getPropertyValue(y):void 0,s.getPropertyValue(y))||(A!==T||f&&A!==_)&&(T=O.getPropertyPriority(y),_=s,A=A,T=T,m=0<=["background-clip"].indexOf(y=y),T?(_.setProperty(y,A,T),m&&_.setProperty("-webkit-"+y,A,T)):(_.setProperty(y,A),m&&_.setProperty("-webkit-"+y,A)));});}let H=null,B={},L=["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"];})(nt);});var Bt=Ze(()=>{});var on=Ze((Or,rn)=>{var ht=typeof Map=="function"&&Map.prototype,ot=Object.getOwnPropertyDescriptor&&ht?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ke=ht&&ot&&typeof ot.get=="function"?ot.get:null,Ht=ht&&Map.prototype.forEach,pt=typeof Set=="function"&&Set.prototype,it=Object.getOwnPropertyDescriptor&&pt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xe=pt&&it&&typeof it.get=="function"?it.get:null,kt=pt&&Set.prototype.forEach,Mn=typeof WeakMap=="function"&&WeakMap.prototype,Be=Mn?WeakMap.prototype.has:null,Ln=typeof WeakSet=="function"&&WeakSet.prototype,He=Ln?WeakSet.prototype.has:null,Dn=typeof WeakRef=="function"&&WeakRef.prototype,Nt=Dn?WeakRef.prototype.deref:null,Fn=Boolean.prototype.valueOf,Bn=Object.prototype.toString,Hn=Function.prototype.toString,kn=String.prototype.match,gt=String.prototype.slice,Ee=String.prototype.replace,Nn=String.prototype.toUpperCase,Qt=String.prototype.toLowerCase,Yt=RegExp.prototype.test,$t=Array.prototype.concat,Ae=Array.prototype.join,Qn=Array.prototype.slice,Wt=Math.floor,lt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||true)?Symbol.toStringTag:null,Jt=Object.prototype.propertyIsEnumerable,zt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(i){return i.__proto__}:null);function Gt(i,r){if(i===1/0||i===-1/0||i!==i||i&&i>-1e3&&i<1e3||Yt.call(/e/,r))return r;var S=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof i=="number"){var l=i<0?-Wt(-i):Wt(i);if(l!==i){var e=String(l),t=gt.call(r,e.length+1);return Ee.call(e,S,"$&_")+"."+Ee.call(Ee.call(t,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ee.call(r,S,"$&_")}var ut=Bt(),Vt=ut.custom,qt=en(Vt)?Vt:null,Zt={__proto__:null,double:'"',single:"'"},$n={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};rn.exports=function i(r,S,l,e){var t=S||{};if(we(t,"quoteStyle")&&!we(Zt,t.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(we(t,"maxStringLength")&&(typeof t.maxStringLength=="number"?t.maxStringLength<0&&t.maxStringLength!==1/0:t.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=we(t,"customInspect")?t.customInspect:true;if(typeof g!="boolean"&&g!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(we(t,"indent")&&t.indent!==null&&t.indent!==" "&&!(parseInt(t.indent,10)===t.indent&&t.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(we(t,"numericSeparator")&&typeof t.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=t.numericSeparator;if(typeof r>"u")return "undefined";if(r===null)return "null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return nn(r,t);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var v=String(r);return c?Gt(r,v):v}if(typeof r=="bigint"){var E=String(r)+"n";return c?Gt(r,E):E}var o=typeof t.depth>"u"?5:t.depth;if(typeof l>"u"&&(l=0),l>=o&&o>0&&typeof r=="object")return ft(r)?"[Array]":"[Object]";var a=ar(t,l);if(typeof e>"u")e=[];else if(tn(e,r)>=0)return "[Circular]";function n(_,A,T){if(A&&(e=Qn.call(e),e.push(A)),T){var m={depth:t.depth};return we(t,"quoteStyle")&&(m.quoteStyle=t.quoteStyle),i(_,m,l+1,e)}return i(_,t,l+1,e)}if(typeof r=="function"&&!Kt(r)){var h=Jn(r),w=qe(r,n);return "[Function"+(h?": "+h:" (anonymous)")+"]"+(w.length>0?" { "+Ae.call(w,", ")+" }":"")}if(en(r)){var C=Me?Ee.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):ct.call(r);return typeof r=="object"&&!Me?Fe(C):C}if(rr(r)){for(var M="<"+Qt.call(String(r.nodeName)),I=r.attributes||[],H=0;H<I.length;H++)M+=" "+I[H].name+"="+jt(Wn(I[H].value),"double",t);return M+=">",r.childNodes&&r.childNodes.length&&(M+="..."),M+="</"+Qt.call(String(r.nodeName))+">",M}if(ft(r)){if(r.length===0)return "[]";var B=qe(r,n);return a&&!ir(B)?"["+dt(B,a)+"]":"[ "+Ae.call(B,", ")+" ]"}if(Gn(r)){var L=qe(r,n);return !("cause"in Error.prototype)&&"cause"in r&&!Jt.call(r,"cause")?"{ ["+String(r)+"] "+Ae.call($t.call("[cause]: "+n(r.cause),L),", ")+" }":L.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Ae.call(L,", ")+" }"}if(typeof r=="object"&&g){if(qt&&typeof r[qt]=="function"&&ut)return ut(r,{depth:o-l});if(g!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Zn(r)){var R=[];return Ht&&Ht.call(r,function(_,A){R.push(n(A,r,true)+" => "+n(_,r));}),Xt("Map",Ke.call(r),R,a)}if(tr(r)){var p=[];return kt&&kt.call(r,function(_){p.push(n(_,r));}),Xt("Set",Xe.call(r),p,a)}if(jn(r))return st("WeakMap");if(nr(r))return st("WeakSet");if(er(r))return st("WeakRef");if(qn(r))return Fe(n(Number(r)));if(Xn(r))return Fe(n(lt.call(r)));if(Kn(r))return Fe(Fn.call(r));if(Vn(r))return Fe(n(String(r)));if(typeof globalThis.window<"u"&&r===globalThis.window)return "{ [object Window] }";if(typeof globalThis<"u"&&r===globalThis||typeof global<"u"&&r===global)return "{ [object globalThis] }";if(!zn(r)&&!Kt(r)){var O=qe(r,n),f=zt?zt(r)===Object.prototype:r instanceof Object||r.constructor===Object,u=r instanceof Object?"":"null prototype",b=!f&&ke&&Object(r)===r&&ke in r?gt.call(Se(r),8,-1):u?"Object":"",s=f||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",y=s+(b||u?"["+Ae.call($t.call([],b||[],u||[]),": ")+"] ":"");return O.length===0?y+"{}":a?y+"{"+dt(O,a)+"}":y+"{ "+Ae.call(O,", ")+" }"}return String(r)};function jt(i,r,S){var l=S.quoteStyle||r,e=Zt[l];return e+i+e}function Wn(i){return Ee.call(String(i),/"/g,"&quot;")}function Oe(i){return !ke||!(typeof i=="object"&&(ke in i||typeof i[ke]<"u"))}function ft(i){return Se(i)==="[object Array]"&&Oe(i)}function zn(i){return Se(i)==="[object Date]"&&Oe(i)}function Kt(i){return Se(i)==="[object RegExp]"&&Oe(i)}function Gn(i){return Se(i)==="[object Error]"&&Oe(i)}function Vn(i){return Se(i)==="[object String]"&&Oe(i)}function qn(i){return Se(i)==="[object Number]"&&Oe(i)}function Kn(i){return Se(i)==="[object Boolean]"&&Oe(i)}function en(i){if(Me)return i&&typeof i=="object"&&i instanceof Symbol;if(typeof i=="symbol")return true;if(!i||typeof i!="object"||!ct)return false;try{return ct.call(i),!0}catch{}return false}function Xn(i){if(!i||typeof i!="object"||!lt)return false;try{return lt.call(i),!0}catch{}return false}var Yn=Object.prototype.hasOwnProperty||function(i){return i in this};function we(i,r){return Yn.call(i,r)}function Se(i){return Bn.call(i)}function Jn(i){if(i.name)return i.name;var r=kn.call(Hn.call(i),/^function\s*([\w$]+)/);return r?r[1]:null}function tn(i,r){if(i.indexOf)return i.indexOf(r);for(var S=0,l=i.length;S<l;S++)if(i[S]===r)return S;return -1}function Zn(i){if(!Ke||!i||typeof i!="object")return false;try{Ke.call(i);try{Xe.call(i);}catch{return !0}return i instanceof Map}catch{}return false}function jn(i){if(!Be||!i||typeof i!="object")return false;try{Be.call(i,Be);try{He.call(i,He);}catch{return !0}return i instanceof WeakMap}catch{}return false}function er(i){if(!Nt||!i||typeof i!="object")return false;try{return Nt.call(i),!0}catch{}return false}function tr(i){if(!Xe||!i||typeof i!="object")return false;try{Xe.call(i);try{Ke.call(i);}catch{return !0}return i instanceof Set}catch{}return false}function nr(i){if(!He||!i||typeof i!="object")return false;try{He.call(i,He);try{Be.call(i,Be);}catch{return !0}return i instanceof WeakSet}catch{}return false}function rr(i){return !i||typeof i!="object"?false:typeof HTMLElement<"u"&&i instanceof HTMLElement?true:typeof i.nodeName=="string"&&typeof i.getAttribute=="function"}function nn(i,r){if(i.length>r.maxStringLength){var S=i.length-r.maxStringLength,l="... "+S+" more character"+(S>1?"s":"");return nn(gt.call(i,0,r.maxStringLength),r)+l}var e=$n[r.quoteStyle||"single"];e.lastIndex=0;var t=Ee.call(Ee.call(i,e,"\\$1"),/[\x00-\x1f]/g,or);return jt(t,"single",r)}function or(i){var r=i.charCodeAt(0),S={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return S?"\\"+S:"\\x"+(r<16?"0":"")+Nn.call(r.toString(16))}function Fe(i){return "Object("+i+")"}function st(i){return i+" { ? }"}function Xt(i,r,S,l){var e=l?dt(S,l):Ae.call(S,", ");return i+" ("+r+") {"+e+"}"}function ir(i){for(var r=0;r<i.length;r++)if(tn(i[r],`
1
+ import {useState,useEffect,useRef,useCallback}from'react';import {useMutation}from'@tanstack/react-query';import {identity}from'lodash';import {nanoid}from'nanoid';import yt from'superjson';import {rpcClient,RpcError}from'typed-rpc';var vn=Object.create;var _t=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var bn=Object.getOwnPropertyNames;var _n=Object.getPrototypeOf,En=Object.prototype.hasOwnProperty;var Ze=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports);var Sn=(i,r,S,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of bn(r))!En.call(i,e)&&e!==S&&_t(i,e,{get:()=>r[e],enumerable:!(l=wn(r,e))||l.enumerable});return i};var Et=(i,r,S)=>(S=i!=null?vn(_n(i)):{},Sn(_t(S,"default",{value:i,enumerable:true}),i));var Ft=Ze((nt,rt)=>{(i=>{let r=(()=>{let R=0;return {escape:function(s){return s.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(s){return s.search(/^(data:)/)!==-1},canvasToBlob:function(s){return s.toBlob?new Promise(function(y){s.toBlob(y);}):(y=>new Promise(function(_){var A=a(y.toDataURL().split(",")[1]),T=A.length,m=new Uint8Array(T);for(let d=0;d<T;d++)m[d]=A.charCodeAt(d);_(new Blob([m],{type:"image/png"}));}))(s)},resolveUrl:function(s,y){var _=globalThis.document.implementation.createHTMLDocument(),A=_.createElement("base"),T=(_.head.appendChild(A),_.createElement("a"));return _.body.appendChild(T),A.href=y,T.href=s,T.href},getAndEncode:function(s){let y=v.impl.urlCache.find(function(_){return _.url===s});return y||(y={url:s,promise:null},v.impl.urlCache.push(y)),y.promise===null&&(v.impl.options.cacheBust&&(s+=(/\?/.test(s)?"&":"?")+new Date().getTime()),y.promise=new Promise(function(_){let A=new XMLHttpRequest;function T(P){console.error(P),_("");}function m(){var P=v.impl.options.imagePlaceholder;P?_(P):T("Status:"+A.status+" while fetching resource: "+s);}if(A.timeout=v.impl.options.httpTimeout,A.onerror=m,A.ontimeout=m,A.onloadend=function(){if(A.readyState===XMLHttpRequest.DONE){var P=A.status;if(P===0&&s.toLowerCase().startsWith("file://")||200<=P&&P<=300&&A.response!==null){P=A.response,P instanceof Blob||T("Expected response to be a Blob, but got: "+typeof P);let x=new globalThis.FileReader;x.onloadend=function(){var O=x.result;_(O);};try{x.readAsDataURL(P);}catch(O){T("Failed to read the response as Data URL: "+O.toString());}}else m();}},0<v.impl.options.useCredentialsFilters.length&&(v.impl.options.useCredentials=0<v.impl.options.useCredentialsFilters.filter(P=>0<=s.search(P)).length),v.impl.options.useCredentials&&(A.withCredentials=true),v.impl.options.corsImg&&s.indexOf("http")===0&&s.indexOf(globalThis.window.location.origin)===-1){var d=(v.impl.options.corsImg.method||"GET").toUpperCase()==="POST"?"POST":"GET";A.open(d,(v.impl.options.corsImg.url||"").replace("#{cors}",s),true);let P=false,x=v.impl.options.corsImg.headers||{},O=(Object.keys(x).forEach(function(N){x[N].indexOf("application/json")!==-1&&(P=true),A.setRequestHeader(N,x[N]);}),(N=>{try{return JSON.parse(JSON.stringify(N))}catch(D){T("corsImg.data is missing or invalid:"+D.toString());}})(v.impl.options.corsImg.data||""));Object.keys(O).forEach(function(N){typeof O[N]=="string"&&(O[N]=O[N].replace("#{cors}",s));}),A.responseType="blob",A.send(P?JSON.stringify(O):O);}else A.open("GET",s,true),A.responseType="blob",A.send();})),y.promise},uid:function(){return "u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+R++},asArray:function(s){var y=[],_=s.length;for(let A=0;A<_;A++)y.push(s[A]);return y},escapeXhtml:function(s){return s.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(s){return s!=="data:,"?new Promise(function(y,_){let A=globalThis.document.createElementNS("http://www.w3.org/2000/svg","svg"),T=new globalThis.Image;v.impl.options.useCredentials&&(T.crossOrigin="use-credentials"),T.onload=function(){globalThis.document.body.removeChild(A),globalThis.window&&globalThis.window.requestAnimationFrame?globalThis.window.requestAnimationFrame(function(){y(T);}):y(T);},T.onerror=m=>{globalThis.document.body.removeChild(A),_(m);},A.appendChild(T),T.src=s,globalThis.document.body.appendChild(A);}):Promise.resolve()},width:function(s){var y=b(s,"width");if(!isNaN(y))return y;var y=b(s,"border-left-width"),_=b(s,"border-right-width");return s.scrollWidth+y+_},height:function(s){var y=b(s,"height");if(!isNaN(y))return y;var y=b(s,"border-top-width"),_=b(s,"border-bottom-width");return s.scrollHeight+y+_},getWindow:g,isElement:u,isElementHostForOpenShadowRoot:function(s){return u(s)&&s.shadowRoot!==null},isShadowRoot:U,isInShadowRoot:f,isHTMLElement:function(s){return s instanceof g(s).HTMLElement},isHTMLCanvasElement:function(s){return s instanceof g(s).HTMLCanvasElement},isHTMLInputElement:function(s){return s instanceof g(s).HTMLInputElement},isHTMLImageElement:function(s){return s instanceof g(s).HTMLImageElement},isHTMLLinkElement:function(s){return s instanceof g(s).HTMLLinkElement},isHTMLScriptElement:function(s){return s instanceof g(s).HTMLScriptElement},isHTMLStyleElement:function(s){return s instanceof g(s).HTMLStyleElement},isHTMLTextAreaElement:function(s){return s instanceof g(s).HTMLTextAreaElement},isShadowSlotElement:function(s){return f(s)&&s instanceof g(s).HTMLSlotElement},isSVGElement:function(s){return s instanceof g(s).SVGElement},isSVGRectElement:function(s){return s instanceof g(s).SVGRectElement},isDimensionMissing:function(s){return isNaN(s)||s<=0}};function g(s){return s=s?s.ownerDocument:void 0,(s?s.defaultView:void 0)||globalThis.window||i}function U(s){return s instanceof g(s).ShadowRoot}function f(s){return s!=null&&s.getRootNode!==void 0&&U(s.getRootNode())}function u(s){return s instanceof g(s).Element}function b(s,y){if(s.nodeType===E){let _=o(s).getPropertyValue(y);if(_.slice(-2)==="px")return _=_.slice(0,-2),parseFloat(_)}return NaN}})(),S=(()=>{let R=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return {inlineAll:function(b,s,y){return g(b)?Promise.resolve(b).then(U).then(function(_){let A=Promise.resolve(b);return _.forEach(function(T){A=A.then(function(m){return u(m,T,s,y)});}),A}):Promise.resolve(b)},shouldProcess:g,impl:{readUrls:U,inline:u,urlAsRegex:f}};function g(b){return b.search(R)!==-1}function U(b){for(var s,y=[];(s=R.exec(b))!==null;)y.push(s[2]);return y.filter(function(_){return !r.isDataUrl(_)})}function f(b){return new RegExp(`url\\((["']?)(${r.escape(b)})\\1\\)`,"gm")}function u(b,s,y,_){return Promise.resolve(s).then(function(A){return y?r.resolveUrl(A,y):A}).then(_||r.getAndEncode).then(function(A){var T=f(s);return b.replace(T,`url($1${A}$1)`)})}})(),l={resolveAll:function(){return e().then(function(R){return Promise.all(R.map(function(g){return g.resolve()}))}).then(function(R){return R.join(`
2
+ `)})},impl:{readAll:e}};function e(){return Promise.resolve(r.asArray(globalThis.document.styleSheets)).then(function(g){let U=[];return g.forEach(function(f){var u=Object.getPrototypeOf(f);if(Object.prototype.hasOwnProperty.call(u,"cssRules"))try{r.asArray(f.cssRules||[]).forEach(U.push.bind(U));}catch(b){console.error("domtoimage: Error while reading CSS rules from: "+f.href,b.toString());}}),U}).then(function(g){return g.filter(function(U){return U.type===CSSRule.FONT_FACE_RULE}).filter(function(U){return S.shouldProcess(U.style.getPropertyValue("src"))})}).then(function(g){return g.map(R)});function R(g){return {resolve:function(){var U=(g.parentStyleSheet||{}).href;return S.inlineAll(g.cssText,U)},src:function(){return g.style.getPropertyValue("src")}}}}let t={inlineAll:function R(g){if(!r.isElement(g))return Promise.resolve(g);return U(g).then(function(){return r.isHTMLImageElement(g)?p(g).inline():Promise.all(r.asArray(g.childNodes).map(function(f){return R(f)}))});function U(f){let u=["background","background-image"],b=u.map(function(s){let y=f.style.getPropertyValue(s),_=f.style.getPropertyPriority(s);return y?S.inlineAll(y).then(function(A){f.style.setProperty(s,A,_);}):Promise.resolve()});return Promise.all(b).then(function(){return f})}},impl:{newImage:p}};function p(R){return {inline:function(g){return r.isDataUrl(R.src)?Promise.resolve():Promise.resolve(R.src).then(g||r.getAndEncode).then(function(U){return new Promise(function(f){R.onload=f,R.onerror=f,R.src=U;})})}}}let c={copyDefaultStyles:true,imagePlaceholder:void 0,cacheBust:false,useCredentials:false,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0},v={toSvg:n,toPng:function(R,g){return h(R,g).then(function(U){return U.toDataURL()})},toJpeg:function(R,g){return h(R,g).then(function(U){return U.toDataURL("image/jpeg",(g?g.quality:void 0)||1)})},toBlob:function(R,g){return h(R,g).then(r.canvasToBlob)},toPixelData:function(R,g){return h(R,g).then(function(U){return U.getContext("2d").getImageData(0,0,r.width(R),r.height(R)).data})},toCanvas:h,impl:{fontFaces:l,images:t,util:r,inliner:S,urlCache:[],options:{},copyOptions:function(R){R.copyDefaultStyles===void 0?v.impl.options.copyDefaultStyles=c.copyDefaultStyles:v.impl.options.copyDefaultStyles=R.copyDefaultStyles,v.impl.options.imagePlaceholder=(R.imagePlaceholder===void 0?c:R).imagePlaceholder,v.impl.options.cacheBust=(R.cacheBust===void 0?c:R).cacheBust,v.impl.options.corsImg=(R.corsImg===void 0?c:R).corsImg,v.impl.options.useCredentials=(R.useCredentials===void 0?c:R).useCredentials,v.impl.options.useCredentialsFilters=(R.useCredentialsFilters===void 0?c:R).useCredentialsFilters,v.impl.options.httpTimeout=(R.httpTimeout===void 0?c:R).httpTimeout,v.impl.options.styleCaching=(R.styleCaching===void 0?c:R).styleCaching;}}},E=(typeof nt=="object"&&typeof rt=="object"?rt.exports=v:i.domtoimage=v,(globalThis.Node===void 0?void 0:globalThis.Node.ELEMENT_NODE)||1),o=(i===void 0?void 0:i.getComputedStyle)||(globalThis.window===void 0?void 0:globalThis.window.getComputedStyle)||globalThis.getComputedStyle,a=(i===void 0?void 0:i.atob)||(globalThis.window===void 0?void 0:globalThis.window.atob)||globalThis.atob;function n(R,g){v.impl.util.getWindow(R);let f=(g=g||{},v.impl.copyOptions(g),[]);return Promise.resolve(R).then(function(u){if(u.nodeType===E)return u;var b=u,s=globalThis.document.createElement("span");return b.replaceWith(s),s.append(u),f.push({child:b,wrapper:s}),s}).then(function(u){return (function b(s,y,_,A){let T=y.filter;if(s===w||r.isHTMLScriptElement(s)||r.isHTMLStyleElement(s)||r.isHTMLLinkElement(s)||_!==null&&T&&!T(s))return Promise.resolve();return Promise.resolve(s).then(m).then(d).then(function(D){return O(D,x(s))}).then(P).then(function(D){return N(D,s)});function m(D){return r.isHTMLCanvasElement(D)?r.makeImage(D.toDataURL()):D.cloneNode(false)}function d(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,false),Promise.resolve(D)}function P(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,true),Promise.resolve(D)}function x(D){return r.isElementHostForOpenShadowRoot(D)?D.shadowRoot:D}function O(D,Q){let H=K(Q),F=Promise.resolve();if(H.length!==0){let V=o($(Q));r.asArray(H).forEach(function(z){F=F.then(function(){return b(z,y,V).then(function(q){q&&D.appendChild(q);})});});}return F.then(function(){return D});function $(V){return r.isShadowRoot(V)?V.host:V}function K(V){if(r.isShadowSlotElement(V)){let z=V.assignedNodes();if(z&&0<z.length)return z}return V.childNodes}}function N(D,Q){return !r.isElement(D)||r.isShadowSlotElement(Q)?Promise.resolve(D):Promise.resolve().then(F).then($).then(K).then(V).then(H).then(function(){return D});function H(){r.isHTMLImageElement(D)&&(D.removeAttribute("loading"),Q.srcset||Q.sizes)&&(D.removeAttribute("srcset"),D.removeAttribute("sizes"),D.src=Q.currentSrc||Q.src);}function F(){function z(G,W){W.font=G.font,W.fontFamily=G.fontFamily,W.fontFeatureSettings=G.fontFeatureSettings,W.fontKerning=G.fontKerning,W.fontSize=G.fontSize,W.fontStretch=G.fontStretch,W.fontStyle=G.fontStyle,W.fontVariant=G.fontVariant,W.fontVariantCaps=G.fontVariantCaps,W.fontVariantEastAsian=G.fontVariantEastAsian,W.fontVariantLigatures=G.fontVariantLigatures,W.fontVariantNumeric=G.fontVariantNumeric,W.fontVariationSettings=G.fontVariationSettings,W.fontWeight=G.fontWeight;}function q(G,W){let ie=o(G);ie.cssText?(W.style.cssText=ie.cssText,z(ie,W.style)):(I(y,G,ie,_,W),_===null&&(["inset-block","inset-block-start","inset-block-end"].forEach(ae=>W.style.removeProperty(ae)),["left","right","top","bottom"].forEach(ae=>{W.style.getPropertyValue(ae)&&W.style.setProperty(ae,"0px");})));}q(Q,D);}function $(){let z=r.uid();function q(G){let W=o(Q,G),ie=W.getPropertyValue("content");if(ie!==""&&ie!=="none"){let Y=function(){let J=`.${z}:`+G,ne=(W.cssText?oe:j)();return globalThis.document.createTextNode(J+`{${ne}}`);function oe(){return `${W.cssText} content: ${ie};`}function j(){return r.asArray(W).map(ee).join("; ")+";";function ee(X){let le=W.getPropertyValue(X),ge=W.getPropertyPriority(X)?" !important":"";return X+": "+le+ge}}};let Z=D.getAttribute("class")||"",te=(D.setAttribute("class",Z+" "+z),globalThis.document.createElement("style"));te.appendChild(Y()),D.appendChild(te);}}[":before",":after"].forEach(function(G){q(G);});}function K(){r.isHTMLTextAreaElement(Q)&&(D.innerHTML=Q.value),r.isHTMLInputElement(Q)&&D.setAttribute("value",Q.value);}function V(){r.isSVGElement(D)&&(D.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.isSVGRectElement(D))&&["width","height"].forEach(function(z){let q=D.getAttribute(z);q&&D.style.setProperty(z,q);});}}})(u,g,null)}).then(g.disableEmbedFonts?Promise.resolve(R):C).then(g.disableInlineImages?Promise.resolve(R):M).then(function(u){g.bgcolor&&(u.style.backgroundColor=g.bgcolor),g.width&&(u.style.width=g.width+"px"),g.height&&(u.style.height=g.height+"px"),g.style&&Object.keys(g.style).forEach(function(s){u.style[s]=g.style[s];});let b=null;return typeof g.onclone=="function"&&(b=g.onclone(u)),Promise.resolve(b).then(function(){return u})}).then(function(u){let b=g.width||r.width(R),s=g.height||r.height(R);return Promise.resolve(u).then(function(y){return y.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(y)}).then(r.escapeXhtml).then(function(y){var _=(r.isDimensionMissing(b)?' width="100%"':` width="${b}"`)+(r.isDimensionMissing(s)?' height="100%"':` height="${s}"`);return `<svg xmlns="http://www.w3.org/2000/svg"${(r.isDimensionMissing(b)?"":` width="${b}"`)+(r.isDimensionMissing(s)?"":` height="${s}"`)}><foreignObject${_}>${y}</foreignObject></svg>`}).then(function(y){return "data:image/svg+xml;charset=utf-8,"+y})}).then(function(u){for(;0<f.length;){var b=f.pop();b.wrapper.replaceWith(b.child);}return u}).then(function(u){return v.impl.urlCache=[],w&&(globalThis.document.body.removeChild(w),w=null),B&&clearTimeout(B),B=setTimeout(()=>{B=null,k={};},2e4),u})}function h(R,g){return n(R,g=g||{}).then(r.makeImage).then(function(U){var f=typeof g.scale!="number"?1:g.scale,u=((s,y)=>{let _=g.width||r.width(s),A=g.height||r.height(s);return r.isDimensionMissing(_)&&(_=r.isDimensionMissing(A)?300:2*A),r.isDimensionMissing(A)&&(A=_/2),(s=globalThis.document.createElement("canvas")).width=_*y,s.height=A*y,g.bgcolor&&((y=s.getContext("2d")).fillStyle=g.bgcolor,y.fillRect(0,0,s.width,s.height)),s})(R,f),b=u.getContext("2d");return b.msImageSmoothingEnabled=false,b.imageSmoothingEnabled=false,U&&(b.scale(f,f),b.drawImage(U,0,0)),u})}let w=null;function C(R){return l.resolveAll().then(function(g){var U;return g!==""&&(U=globalThis.document.createElement("style"),R.appendChild(U),U.appendChild(globalThis.document.createTextNode(g))),R})}function M(R){return t.inlineAll(R).then(function(){return R})}function I(R,g,U,f,u){let b=v.impl.options.copyDefaultStyles?((y,_)=>{var A,T=(P=>(y.styleCaching!=="relaxed"?P:P.filter((x,O,N)=>O===0||O===N.length-1)).join(">"))(_=(P=>{var x=[];do if(P.nodeType===E){var O=P.tagName;if(x.push(O),L.includes(O))break}while(P=P.parentNode);return x})(_));{if(k[T])return k[T];_=((P,x)=>{let O=P.body;do{var N=x.pop(),N=P.createElement(N);O.appendChild(N),O=N;}while(0<x.length);return O.textContent="\u200B",O})((A=(()=>{if(w)return w.contentWindow;x=globalThis.document.characterSet||"UTF-8",P=(P=globalThis.document.doctype)?(`<!DOCTYPE ${F(P.name)} ${F(P.publicId)} `+F(P.systemId)).trim()+">":"",(w=globalThis.document.createElement("iframe")).id="domtoimage-sandbox-"+r.uid(),w.style.top="-9999px",w.style.visibility="hidden",w.style.position="fixed",globalThis.document.body.appendChild(w);var P,x,O=w,N="domtoimage-sandbox";try{return O.contentWindow.document.write(P+`<html><head><meta charset='${x}'><title>${N}</title></head><body></body></html>`),O.contentWindow}catch{}var D=globalThis.document.createElement("meta");D.setAttribute("charset",x);try{var Q=globalThis.document.implementation.createHTMLDocument(N),H=(Q.head.appendChild(D),P+Q.documentElement.outerHTML);return O.setAttribute("srcdoc",H),O.contentWindow}catch{}return O.contentDocument.head.appendChild(D),O.contentDocument.title=N,O.contentWindow;function F($){var K;return $?((K=globalThis.document.createElement("div")).innerText=$,K.innerHTML):""}})()).document,_),A=((P,x)=>{let O={},N=P.getComputedStyle(x);return r.asArray(N).forEach(function(D){O[D]=D==="width"||D==="height"?"auto":N.getPropertyValue(D);}),O})(A,_);var m=_;do{var d=m.parentElement;d!==null&&d.removeChild(m),m=d;}while(m&&m.tagName!=="BODY");return k[T]=A}})(R,g):{},s=u.style;r.asArray(U).forEach(function(y){var _,A,T,m;R.filterStyles&&!R.filterStyles(g,y)||(A=U.getPropertyValue(y),T=b[y],_=f?f.getPropertyValue(y):void 0,s.getPropertyValue(y))||(A!==T||f&&A!==_)&&(T=U.getPropertyPriority(y),_=s,A=A,T=T,m=0<=["background-clip"].indexOf(y=y),T?(_.setProperty(y,A,T),m&&_.setProperty("-webkit-"+y,A,T)):(_.setProperty(y,A),m&&_.setProperty("-webkit-"+y,A)));});}let B=null,k={},L=["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"];})(nt);});var kt=Ze(()=>{});var on=Ze((Ur,rn)=>{var ht=typeof Map=="function"&&Map.prototype,ot=Object.getOwnPropertyDescriptor&&ht?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ke=ht&&ot&&typeof ot.get=="function"?ot.get:null,Bt=ht&&Map.prototype.forEach,pt=typeof Set=="function"&&Set.prototype,it=Object.getOwnPropertyDescriptor&&pt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xe=pt&&it&&typeof it.get=="function"?it.get:null,Ht=pt&&Set.prototype.forEach,Mn=typeof WeakMap=="function"&&WeakMap.prototype,ke=Mn?WeakMap.prototype.has:null,Ln=typeof WeakSet=="function"&&WeakSet.prototype,Be=Ln?WeakSet.prototype.has:null,Dn=typeof WeakRef=="function"&&WeakRef.prototype,Nt=Dn?WeakRef.prototype.deref:null,Fn=Boolean.prototype.valueOf,kn=Object.prototype.toString,Bn=Function.prototype.toString,Hn=String.prototype.match,gt=String.prototype.slice,Ee=String.prototype.replace,Nn=String.prototype.toUpperCase,Qt=String.prototype.toLowerCase,Yt=RegExp.prototype.test,$t=Array.prototype.concat,Ae=Array.prototype.join,Qn=Array.prototype.slice,Wt=Math.floor,lt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",He=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||true)?Symbol.toStringTag:null,Jt=Object.prototype.propertyIsEnumerable,zt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(i){return i.__proto__}:null);function Gt(i,r){if(i===1/0||i===-1/0||i!==i||i&&i>-1e3&&i<1e3||Yt.call(/e/,r))return r;var S=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof i=="number"){var l=i<0?-Wt(-i):Wt(i);if(l!==i){var e=String(l),t=gt.call(r,e.length+1);return Ee.call(e,S,"$&_")+"."+Ee.call(Ee.call(t,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ee.call(r,S,"$&_")}var ut=kt(),Vt=ut.custom,qt=en(Vt)?Vt:null,Zt={__proto__:null,double:'"',single:"'"},$n={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};rn.exports=function i(r,S,l,e){var t=S||{};if(we(t,"quoteStyle")&&!we(Zt,t.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(we(t,"maxStringLength")&&(typeof t.maxStringLength=="number"?t.maxStringLength<0&&t.maxStringLength!==1/0:t.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=we(t,"customInspect")?t.customInspect:true;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(we(t,"indent")&&t.indent!==null&&t.indent!==" "&&!(parseInt(t.indent,10)===t.indent&&t.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(we(t,"numericSeparator")&&typeof t.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=t.numericSeparator;if(typeof r>"u")return "undefined";if(r===null)return "null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return nn(r,t);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var v=String(r);return c?Gt(r,v):v}if(typeof r=="bigint"){var E=String(r)+"n";return c?Gt(r,E):E}var o=typeof t.depth>"u"?5:t.depth;if(typeof l>"u"&&(l=0),l>=o&&o>0&&typeof r=="object")return ft(r)?"[Array]":"[Object]";var a=ar(t,l);if(typeof e>"u")e=[];else if(tn(e,r)>=0)return "[Circular]";function n(_,A,T){if(A&&(e=Qn.call(e),e.push(A)),T){var m={depth:t.depth};return we(t,"quoteStyle")&&(m.quoteStyle=t.quoteStyle),i(_,m,l+1,e)}return i(_,t,l+1,e)}if(typeof r=="function"&&!Kt(r)){var h=Jn(r),w=qe(r,n);return "[Function"+(h?": "+h:" (anonymous)")+"]"+(w.length>0?" { "+Ae.call(w,", ")+" }":"")}if(en(r)){var C=Me?Ee.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):ct.call(r);return typeof r=="object"&&!Me?Fe(C):C}if(rr(r)){for(var M="<"+Qt.call(String(r.nodeName)),I=r.attributes||[],B=0;B<I.length;B++)M+=" "+I[B].name+"="+jt(Wn(I[B].value),"double",t);return M+=">",r.childNodes&&r.childNodes.length&&(M+="..."),M+="</"+Qt.call(String(r.nodeName))+">",M}if(ft(r)){if(r.length===0)return "[]";var k=qe(r,n);return a&&!ir(k)?"["+dt(k,a)+"]":"[ "+Ae.call(k,", ")+" ]"}if(Gn(r)){var L=qe(r,n);return !("cause"in Error.prototype)&&"cause"in r&&!Jt.call(r,"cause")?"{ ["+String(r)+"] "+Ae.call($t.call("[cause]: "+n(r.cause),L),", ")+" }":L.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Ae.call(L,", ")+" }"}if(typeof r=="object"&&p){if(qt&&typeof r[qt]=="function"&&ut)return ut(r,{depth:o-l});if(p!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Zn(r)){var R=[];return Bt&&Bt.call(r,function(_,A){R.push(n(A,r,true)+" => "+n(_,r));}),Xt("Map",Ke.call(r),R,a)}if(tr(r)){var g=[];return Ht&&Ht.call(r,function(_){g.push(n(_,r));}),Xt("Set",Xe.call(r),g,a)}if(jn(r))return st("WeakMap");if(nr(r))return st("WeakSet");if(er(r))return st("WeakRef");if(qn(r))return Fe(n(Number(r)));if(Xn(r))return Fe(n(lt.call(r)));if(Kn(r))return Fe(Fn.call(r));if(Vn(r))return Fe(n(String(r)));if(typeof globalThis.window<"u"&&r===globalThis.window)return "{ [object Window] }";if(typeof globalThis<"u"&&r===globalThis||typeof global<"u"&&r===global)return "{ [object globalThis] }";if(!zn(r)&&!Kt(r)){var U=qe(r,n),f=zt?zt(r)===Object.prototype:r instanceof Object||r.constructor===Object,u=r instanceof Object?"":"null prototype",b=!f&&He&&Object(r)===r&&He in r?gt.call(Se(r),8,-1):u?"Object":"",s=f||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",y=s+(b||u?"["+Ae.call($t.call([],b||[],u||[]),": ")+"] ":"");return U.length===0?y+"{}":a?y+"{"+dt(U,a)+"}":y+"{ "+Ae.call(U,", ")+" }"}return String(r)};function jt(i,r,S){var l=S.quoteStyle||r,e=Zt[l];return e+i+e}function Wn(i){return Ee.call(String(i),/"/g,"&quot;")}function Ue(i){return !He||!(typeof i=="object"&&(He in i||typeof i[He]<"u"))}function ft(i){return Se(i)==="[object Array]"&&Ue(i)}function zn(i){return Se(i)==="[object Date]"&&Ue(i)}function Kt(i){return Se(i)==="[object RegExp]"&&Ue(i)}function Gn(i){return Se(i)==="[object Error]"&&Ue(i)}function Vn(i){return Se(i)==="[object String]"&&Ue(i)}function qn(i){return Se(i)==="[object Number]"&&Ue(i)}function Kn(i){return Se(i)==="[object Boolean]"&&Ue(i)}function en(i){if(Me)return i&&typeof i=="object"&&i instanceof Symbol;if(typeof i=="symbol")return true;if(!i||typeof i!="object"||!ct)return false;try{return ct.call(i),!0}catch{}return false}function Xn(i){if(!i||typeof i!="object"||!lt)return false;try{return lt.call(i),!0}catch{}return false}var Yn=Object.prototype.hasOwnProperty||function(i){return i in this};function we(i,r){return Yn.call(i,r)}function Se(i){return kn.call(i)}function Jn(i){if(i.name)return i.name;var r=Hn.call(Bn.call(i),/^function\s*([\w$]+)/);return r?r[1]:null}function tn(i,r){if(i.indexOf)return i.indexOf(r);for(var S=0,l=i.length;S<l;S++)if(i[S]===r)return S;return -1}function Zn(i){if(!Ke||!i||typeof i!="object")return false;try{Ke.call(i);try{Xe.call(i);}catch{return !0}return i instanceof Map}catch{}return false}function jn(i){if(!ke||!i||typeof i!="object")return false;try{ke.call(i,ke);try{Be.call(i,Be);}catch{return !0}return i instanceof WeakMap}catch{}return false}function er(i){if(!Nt||!i||typeof i!="object")return false;try{return Nt.call(i),!0}catch{}return false}function tr(i){if(!Xe||!i||typeof i!="object")return false;try{Xe.call(i);try{Ke.call(i);}catch{return !0}return i instanceof Set}catch{}return false}function nr(i){if(!Be||!i||typeof i!="object")return false;try{Be.call(i,Be);try{ke.call(i,ke);}catch{return !0}return i instanceof WeakSet}catch{}return false}function rr(i){return !i||typeof i!="object"?false:typeof HTMLElement<"u"&&i instanceof HTMLElement?true:typeof i.nodeName=="string"&&typeof i.getAttribute=="function"}function nn(i,r){if(i.length>r.maxStringLength){var S=i.length-r.maxStringLength,l="... "+S+" more character"+(S>1?"s":"");return nn(gt.call(i,0,r.maxStringLength),r)+l}var e=$n[r.quoteStyle||"single"];e.lastIndex=0;var t=Ee.call(Ee.call(i,e,"\\$1"),/[\x00-\x1f]/g,or);return jt(t,"single",r)}function or(i){var r=i.charCodeAt(0),S={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return S?"\\"+S:"\\x"+(r<16?"0":"")+Nn.call(r.toString(16))}function Fe(i){return "Object("+i+")"}function st(i){return i+" { ? }"}function Xt(i,r,S,l){var e=l?dt(S,l):Ae.call(S,", ");return i+" ("+r+") {"+e+"}"}function ir(i){for(var r=0;r<i.length;r++)if(tn(i[r],`
3
3
  `)>=0)return false;return true}function ar(i,r){var S;if(i.indent===" ")S=" ";else if(typeof i.indent=="number"&&i.indent>0)S=Ae.call(Array(i.indent+1)," ");else return null;return {base:S,prev:Ae.call(Array(r+1),S)}}function dt(i,r){if(i.length===0)return "";var S=`
4
4
  `+r.prev+r.base;return S+Ae.call(i,","+S)+`
5
- `+r.prev}function qe(i,r){var S=ft(i),l=[];if(S){l.length=i.length;for(var e=0;e<i.length;e++)l[e]=we(i,e)?r(i[e],i):"";}var t=typeof at=="function"?at(i):[],g;if(Me){g={};for(var c=0;c<t.length;c++)g["$"+t[c]]=t[c];}for(var v in i)we(i,v)&&(S&&String(Number(v))===v&&v<i.length||Me&&g["$"+v]instanceof Symbol||(Yt.call(/[^\w$]/,v)?l.push(r(v,i)+": "+r(i[v],i)):l.push(v+": "+r(i[v],i))));if(typeof at=="function")for(var E=0;E<t.length;E++)Jt.call(i,t[E])&&l.push("["+r(t[E])+"]: "+r(i[t[E]],i));return l}});function Tn(i,r){return r.forEach(function(S){S&&typeof S!="string"&&!Array.isArray(S)&&Object.keys(S).forEach(function(l){if(l!=="default"&&!(l in i)){var e=Object.getOwnPropertyDescriptor(S,l);Object.defineProperty(i,l,e.get?e:{enumerable:true,get:function(){return S[l]}});}});}),Object.freeze(i)}function Tt(i,r){return new Promise(function(S,l){let e;return In(i).then(function(t){try{return e=t,S(new Blob([r.slice(0,2),e,r.slice(2)],{type:"image/jpeg"}))}catch(g){return l(g)}},l)})}var In=i=>new Promise((r,S)=>{let l=new globalThis.FileReader;l.addEventListener("load",({target:{result:e}})=>{let t=new DataView(e),g=0;if(t.getUint16(g)!==65496)return S("not a valid JPEG");for(g+=2;;){let c=t.getUint16(g);if(c===65498)break;let v=t.getUint16(g+2);if(c===65505&&t.getUint32(g+4)===1165519206){let E=g+10,o;switch(t.getUint16(E)){case 18761:o=true;break;case 19789:o=false;break;default:return S("TIFF header contains invalid endian")}if(t.getUint16(E+2,o)!==42)return S("TIFF header contains invalid version");let a=t.getUint32(E+4,o),n=E+a+2+12*t.getUint16(E+a,o);for(let h=E+a+2;h<n;h+=12)if(t.getUint16(h,o)==274){if(t.getUint16(h+2,o)!==3)return S("Orientation data type is invalid");if(t.getUint32(h+4,o)!==1)return S("Orientation data count is invalid");t.setUint16(h+8,1,o);break}return r(e.slice(g,g+2+v))}g+=2+v;}return r(new Blob)}),l.readAsArrayBuffer(i);}),$e={},Rn={get exports(){return $e},set exports(i){$e=i;}};(function(i){var r,S,l={};Rn.exports=l,l.parse=function(e,t){for(var g=l.bin.readUshort,c=l.bin.readUint,v=0,E={},o=new Uint8Array(e),a=o.length-4;c(o,a)!=101010256;)a--;v=a,v+=4;var n=g(o,v+=4);g(o,v+=2);var h=c(o,v+=2),w=c(o,v+=4);v+=4,v=w;for(var C=0;C<n;C++){c(o,v),v+=4,v+=4,v+=4,c(o,v+=4),h=c(o,v+=4);var M=c(o,v+=4),I=g(o,v+=4),H=g(o,v+2),B=g(o,v+4);v+=6;var L=c(o,v+=8);v+=4,v+=I+H+B,l._readLocal(o,L,E,h,M,t);}return E},l._readLocal=function(e,t,g,c,v,E){var o=l.bin.readUshort,a=l.bin.readUint;a(e,t),o(e,t+=4),o(e,t+=2);var n=o(e,t+=2);a(e,t+=2),a(e,t+=4),t+=4;var h=o(e,t+=8),w=o(e,t+=2);t+=2;var C=l.bin.readUTF8(e,t,h);if(t+=h,t+=w,E)g[C]={size:v,csize:c};else {var M=new Uint8Array(e.buffer,t);if(n==0)g[C]=new Uint8Array(M.buffer.slice(t,t+c));else {if(n!=8)throw "unknown compression method: "+n;var I=new Uint8Array(v);l.inflateRaw(M,I),g[C]=I;}}},l.inflateRaw=function(e,t){return l.F.inflate(e,t)},l.inflate=function(e,t){return e[0],e[1],l.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},l.deflate=function(e,t){t==null&&(t={level:6});var g=0,c=new Uint8Array(50+Math.floor(1.1*e.length));c[g]=120,c[g+1]=156,g+=2,g=l.F.deflateRaw(e,c,g,t.level);var v=l.adler(e,0,e.length);return c[g+0]=v>>>24&255,c[g+1]=v>>>16&255,c[g+2]=v>>>8&255,c[g+3]=v>>>0&255,new Uint8Array(c.buffer,0,g+4)},l.deflateRaw=function(e,t){t==null&&(t={level:6});var g=new Uint8Array(50+Math.floor(1.1*e.length)),c=l.F.deflateRaw(e,g,c,t.level);return new Uint8Array(g.buffer,0,c)},l.encode=function(e,t){t==null&&(t=false);var g=0,c=l.bin.writeUint,v=l.bin.writeUshort,E={};for(var o in e){var a=!l._noNeed(o)&&!t,n=e[o],h=l.crc.crc(n,0,n.length);E[o]={cpr:a,usize:n.length,crc:h,file:a?l.deflateRaw(n):n};}for(var o in E)g+=E[o].file.length+30+46+2*l.bin.sizeUTF8(o);g+=22;var w=new Uint8Array(g),C=0,M=[];for(var o in E){var I=E[o];M.push(C),C=l._writeHeader(w,C,o,I,0);}var H=0,B=C;for(var o in E)I=E[o],M.push(C),C=l._writeHeader(w,C,o,I,1,M[H++]);var L=C-B;return c(w,C,101010256),C+=4,v(w,C+=4,H),v(w,C+=2,H),c(w,C+=2,L),c(w,C+=4,B),C+=4,C+=2,w.buffer},l._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return "png,jpg,jpeg,zip".indexOf(t)!=-1},l._writeHeader=function(e,t,g,c,v,E){var o=l.bin.writeUint,a=l.bin.writeUshort,n=c.file;return o(e,t,v==0?67324752:33639248),t+=4,v==1&&(t+=2),a(e,t,20),a(e,t+=2,0),a(e,t+=2,c.cpr?8:0),o(e,t+=2,0),o(e,t+=4,c.crc),o(e,t+=4,n.length),o(e,t+=4,c.usize),a(e,t+=4,l.bin.sizeUTF8(g)),a(e,t+=2,0),t+=2,v==1&&(t+=2,t+=2,o(e,t+=6,E),t+=4),t+=l.bin.writeUTF8(e,t,g),v==0&&(e.set(n,t),t+=n.length),t},l.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var g=t,c=0;c<8;c++)1&g?g=3988292384^g>>>1:g>>>=1;e[t]=g;}return e}(),update:function(e,t,g,c){for(var v=0;v<c;v++)e=l.crc.table[255&(e^t[g+v])]^e>>>8;return e},crc:function(e,t,g){return 4294967295^l.crc.update(4294967295,e,t,g)}},l.adler=function(e,t,g){for(var c=1,v=0,E=t,o=t+g;E<o;){for(var a=Math.min(E+5552,o);E<a;)v+=c+=e[E++];c%=65521,v%=65521;}return v<<16|c},l.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,g){e[t]=255&g,e[t+1]=g>>8&255;},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,g){e[t]=255&g,e[t+1]=g>>8&255,e[t+2]=g>>16&255,e[t+3]=g>>24&255;},readASCII:function(e,t,g){for(var c="",v=0;v<g;v++)c+=String.fromCharCode(e[t+v]);return c},writeASCII:function(e,t,g){for(var c=0;c<g.length;c++)e[t+c]=g.charCodeAt(c);},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,g){for(var c,v="",E=0;E<g;E++)v+="%"+l.bin.pad(e[t+E].toString(16));try{c=decodeURIComponent(v);}catch{return l.bin.readASCII(e,t,g)}return c},writeUTF8:function(e,t,g){for(var c=g.length,v=0,E=0;E<c;E++){var o=g.charCodeAt(E);if((4294967168&o)==0)e[t+v]=o,v++;else if((4294965248&o)==0)e[t+v]=192|o>>6,e[t+v+1]=128|o>>0&63,v+=2;else if((4294901760&o)==0)e[t+v]=224|o>>12,e[t+v+1]=128|o>>6&63,e[t+v+2]=128|o>>0&63,v+=3;else {if((4292870144&o)!=0)throw "e";e[t+v]=240|o>>18,e[t+v+1]=128|o>>12&63,e[t+v+2]=128|o>>6&63,e[t+v+3]=128|o>>0&63,v+=4;}}return v},sizeUTF8:function(e){for(var t=e.length,g=0,c=0;c<t;c++){var v=e.charCodeAt(c);if((4294967168&v)==0)g++;else if((4294965248&v)==0)g+=2;else if((4294901760&v)==0)g+=3;else {if((4292870144&v)!=0)throw "e";g+=4;}}return g}},l.F={},l.F.deflateRaw=function(e,t,g,c){var v=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][c],E=l.F.U,o=l.F._goodIndex;l.F._hash;var a=l.F._putsE,n=0,h=g<<3,w=0,C=e.length;if(c==0){for(;n<C;)a(t,h,n+(s=Math.min(65535,C-n))==C?1:0),h=l.F._copyExact(e,n,s,t,h+8),n+=s;return h>>>3}var M=E.lits,I=E.strt,H=E.prev,B=0,L=0,R=0,p=0,O=0,f=0;for(C>2&&(I[f=l.F._hash(e,0)]=0),n=0;n<C;n++){if(O=f,n+1<C-2){f=l.F._hash(e,n+1);var u=n+1&32767;H[u]=I[f],I[f]=u;}if(w<=n){(B>14e3||L>26697)&&C-n>100&&(w<n&&(M[B]=n-w,B+=2,w=n),h=l.F._writeBlock(n==C-1||w==C?1:0,M,B,p,e,R,n-R,t,h),B=L=p=0,R=n);var b=0;n<C-2&&(b=l.F._bestMatch(e,n,H,O,Math.min(v[2],C-n),v[3]));var s=b>>>16,y=65535&b;if(b!=0){y=65535&b;var _=o(s=b>>>16,E.of0);E.lhst[257+_]++;var A=o(y,E.df0);E.dhst[A]++,p+=E.exb[_]+E.dxb[A],M[B]=s<<23|n-w,M[B+1]=y<<16|_<<8|A,B+=2,w=n+s;}else E.lhst[e[n]]++;L++;}}for(R==n&&e.length!=0||(w<n&&(M[B]=n-w,B+=2,w=n),h=l.F._writeBlock(1,M,B,p,e,R,n-R,t,h),B=0,L=0,B=L=p=0,R=n);(7&h)!=0;)h++;return h>>>3},l.F._bestMatch=function(e,t,g,c,v,E){var o=32767&t,a=g[o],n=o-a+32768&32767;if(a==o||c!=l.F._hash(e,t-n))return 0;for(var h=0,w=0,C=Math.min(32767,t);n<=C&&--E!=0&&a!=o;){if(h==0||e[t+h]==e[t+h-n]){var M=l.F._howLong(e,t,n);if(M>h){if(w=n,(h=M)>=v)break;n+2<M&&(M=n+2);for(var I=0,H=0;H<M-2;H++){var B=t-n+H+32768&32767,L=B-g[B]+32768&32767;L>I&&(I=L,a=B);}}}n+=(o=a)-(a=g[o])+32768&32767;}return h<<16|w},l.F._howLong=function(e,t,g){if(e[t]!=e[t-g]||e[t+1]!=e[t+1-g]||e[t+2]!=e[t+2-g])return 0;var c=t,v=Math.min(e.length,t+258);for(t+=3;t<v&&e[t]==e[t-g];)t++;return t-c},l.F._hash=function(e,t){return (e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},l.saved=0,l.F._writeBlock=function(e,t,g,c,v,E,o,a,n){var h,w,C,M,I,H,B,L,R,p=l.F.U,O=l.F._putsF,f=l.F._putsE;p.lhst[256]++,w=(h=l.F.getTrees())[0],C=h[1],M=h[2],I=h[3],H=h[4],B=h[5],L=h[6],R=h[7];var u=32+((n+3&7)==0?0:8-(n+3&7))+(o<<3),b=c+l.F.contSize(p.fltree,p.lhst)+l.F.contSize(p.fdtree,p.dhst),s=c+l.F.contSize(p.ltree,p.lhst)+l.F.contSize(p.dtree,p.dhst);s+=14+3*B+l.F.contSize(p.itree,p.ihst)+(2*p.ihst[16]+3*p.ihst[17]+7*p.ihst[18]);for(var y=0;y<286;y++)p.lhst[y]=0;for(y=0;y<30;y++)p.dhst[y]=0;for(y=0;y<19;y++)p.ihst[y]=0;var _=u<b&&u<s?0:b<s?1:2;if(O(a,n,e),O(a,n+1,_),n+=3,_==0){for(;(7&n)!=0;)n++;n=l.F._copyExact(v,E,o,a,n);}else {var A,T;if(_==1&&(A=p.fltree,T=p.fdtree),_==2){l.F.makeCodes(p.ltree,w),l.F.revCodes(p.ltree,w),l.F.makeCodes(p.dtree,C),l.F.revCodes(p.dtree,C),l.F.makeCodes(p.itree,M),l.F.revCodes(p.itree,M),A=p.ltree,T=p.dtree,f(a,n,I-257),f(a,n+=5,H-1),f(a,n+=5,B-4),n+=4;for(var m=0;m<B;m++)f(a,n+3*m,p.itree[1+(p.ordr[m]<<1)]);n+=3*B,n=l.F._codeTiny(L,p.itree,a,n),n=l.F._codeTiny(R,p.itree,a,n);}for(var d=E,P=0;P<g;P+=2){for(var U=t[P],x=U>>>23,N=d+(8388607&U);d<N;)n=l.F._writeLit(v[d++],A,a,n);if(x!=0){var D=t[P+1],Q=D>>16,k=D>>8&255,F=255&D;f(a,n=l.F._writeLit(257+k,A,a,n),x-p.of0[k]),n+=p.exb[k],O(a,n=l.F._writeLit(F,T,a,n),Q-p.df0[F]),n+=p.dxb[F],d+=x;}}n=l.F._writeLit(256,A,a,n);}return n},l.F._copyExact=function(e,t,g,c,v){var E=v>>>3;return c[E]=g,c[E+1]=g>>>8,c[E+2]=255-c[E],c[E+3]=255-c[E+1],E+=4,c.set(new Uint8Array(e.buffer,t,g),E),v+(g+4<<3)},l.F.getTrees=function(){for(var e=l.F.U,t=l.F._hufTree(e.lhst,e.ltree,15),g=l.F._hufTree(e.dhst,e.dtree,15),c=[],v=l.F._lenCodes(e.ltree,c),E=[],o=l.F._lenCodes(e.dtree,E),a=0;a<c.length;a+=2)e.ihst[c[a]]++;for(a=0;a<E.length;a+=2)e.ihst[E[a]]++;for(var n=l.F._hufTree(e.ihst,e.itree,7),h=19;h>4&&e.itree[1+(e.ordr[h-1]<<1)]==0;)h--;return [t,g,n,v,o,h,c,E]},l.F.getSecond=function(e){for(var t=[],g=0;g<e.length;g+=2)t.push(e[g+1]);return t},l.F.nonZero=function(e){for(var t="",g=0;g<e.length;g+=2)e[g+1]!=0&&(t+=(g>>1)+",");return t},l.F.contSize=function(e,t){for(var g=0,c=0;c<t.length;c++)g+=t[c]*e[1+(c<<1)];return g},l.F._codeTiny=function(e,t,g,c){for(var v=0;v<e.length;v+=2){var E=e[v],o=e[v+1];c=l.F._writeLit(E,t,g,c);var a=E==16?2:E==17?3:7;E>15&&(l.F._putsE(g,c,o,a),c+=a);}return c},l.F._lenCodes=function(e,t){for(var g=e.length;g!=2&&e[g-1]==0;)g-=2;for(var c=0;c<g;c+=2){var v=e[c+1],E=c+3<g?e[c+3]:-1,o=c+5<g?e[c+5]:-1,a=c==0?-1:e[c-1];if(v==0&&E==v&&o==v){for(var n=c+5;n+2<g&&e[n+2]==v;)n+=2;(h=Math.min(n+1-c>>>1,138))<11?t.push(17,h-3):t.push(18,h-11),c+=2*h-2;}else if(v==a&&E==v&&o==v){for(n=c+5;n+2<g&&e[n+2]==v;)n+=2;var h=Math.min(n+1-c>>>1,6);t.push(16,h-3),c+=2*h-2;}else t.push(v,0);}return g>>>1},l.F._hufTree=function(e,t,g){var c=[],v=e.length,E=t.length,o=0;for(o=0;o<E;o+=2)t[o]=0,t[o+1]=0;for(o=0;o<v;o++)e[o]!=0&&c.push({lit:o,f:e[o]});var a=c.length,n=c.slice(0);if(a==0)return 0;if(a==1){var h=c[0].lit;return n=h==0?1:0,t[1+(h<<1)]=1,t[1+(n<<1)]=1,1}c.sort(function(L,R){return L.f-R.f});var w=c[0],C=c[1],M=0,I=1,H=2;for(c[0]={lit:-1,f:w.f+C.f,l:w,r:C,d:0};I!=a-1;)w=M!=I&&(H==a||c[M].f<c[H].f)?c[M++]:c[H++],C=M!=I&&(H==a||c[M].f<c[H].f)?c[M++]:c[H++],c[I++]={lit:-1,f:w.f+C.f,l:w,r:C};var B=l.F.setDepth(c[I-1],0);for(B>g&&(l.F.restrictDepth(n,g,B),B=g),o=0;o<a;o++)t[1+(n[o].lit<<1)]=n[o].d;return B},l.F.setDepth=function(e,t){return e.lit!=-1?(e.d=t,t):Math.max(l.F.setDepth(e.l,t+1),l.F.setDepth(e.r,t+1))},l.F.restrictDepth=function(e,t,g){var c=0,v=1<<g-t,E=0;for(e.sort(function(a,n){return n.d==a.d?a.f-n.f:n.d-a.d}),c=0;c<e.length&&e[c].d>t;c++){var o=e[c].d;e[c].d=t,E+=v-(1<<g-o);}for(E>>>=g-t;E>0;)(o=e[c].d)<t?(e[c].d++,E-=1<<t-o-1):c++;for(;c>=0;c--)e[c].d==t&&E<0&&(e[c].d--,E++);E!=0&&console.log("debt left");},l.F._goodIndex=function(e,t){var g=0;return t[16|g]<=e&&(g|=16),t[8|g]<=e&&(g|=8),t[4|g]<=e&&(g|=4),t[2|g]<=e&&(g|=2),t[1|g]<=e&&(g|=1),g},l.F._writeLit=function(e,t,g,c){return l.F._putsF(g,c,t[e<<1]),c+t[1+(e<<1)]},l.F.inflate=function(e,t){var g=Uint8Array;if(e[0]==3&&e[1]==0)return t||new g(0);var c=l.F,v=c._bitsF,E=c._bitsE,o=c._decodeTiny,a=c.makeCodes,n=c.codes2map,h=c._get17,w=c.U,C=t==null;C&&(t=new g(e.length>>>2<<3));for(var M,I,H=0,B=0,L=0,R=0,p=0,O=0,f=0,u=0,b=0;H==0;)if(H=v(e,b,1),B=v(e,b+1,2),b+=3,B!=0){if(C&&(t=l.F._check(t,u+(1<<17))),B==1&&(M=w.flmap,I=w.fdmap,O=511,f=31),B==2){L=E(e,b,5)+257,R=E(e,b+5,5)+1,p=E(e,b+10,4)+4,b+=14;for(var s=0;s<38;s+=2)w.itree[s]=0,w.itree[s+1]=0;var y=1;for(s=0;s<p;s++){var _=E(e,b+3*s,3);w.itree[1+(w.ordr[s]<<1)]=_,_>y&&(y=_);}b+=3*p,a(w.itree,y),n(w.itree,y,w.imap),M=w.lmap,I=w.dmap,b=o(w.imap,(1<<y)-1,L+R,e,b,w.ttree);var A=c._copyOut(w.ttree,0,L,w.ltree);O=(1<<A)-1;var T=c._copyOut(w.ttree,L,R,w.dtree);f=(1<<T)-1,a(w.ltree,A),n(w.ltree,A,M),a(w.dtree,T),n(w.dtree,T,I);}for(;;){var m=M[h(e,b)&O];b+=15&m;var d=m>>>4;if(!(d>>>8))t[u++]=d;else {if(d==256)break;var P=u+d-254;if(d>264){var U=w.ldef[d-257];P=u+(U>>>3)+E(e,b,7&U),b+=7&U;}var x=I[h(e,b)&f];b+=15&x;var N=x>>>4,D=w.ddef[N],Q=(D>>>4)+v(e,b,15&D);for(b+=15&D,C&&(t=l.F._check(t,u+(1<<17)));u<P;)t[u]=t[u++-Q],t[u]=t[u++-Q],t[u]=t[u++-Q],t[u]=t[u++-Q];u=P;}}}else {(7&b)!=0&&(b+=8-(7&b));var k=4+(b>>>3),F=e[k-4]|e[k-3]<<8;C&&(t=l.F._check(t,u+F)),t.set(new g(e.buffer,e.byteOffset+k,F),u),b=k+F<<3,u+=F;}return t.length==u?t:t.slice(0,u)},l.F._check=function(e,t){var g=e.length;if(t<=g)return e;var c=new Uint8Array(Math.max(g<<1,t));return c.set(e,0),c},l.F._decodeTiny=function(e,t,g,c,v,E){for(var o=l.F._bitsE,a=l.F._get17,n=0;n<g;){var h=e[a(c,v)&t];v+=15&h;var w=h>>>4;if(w<=15)E[n]=w,n++;else {var C=0,M=0;w==16?(M=3+o(c,v,2),v+=2,C=E[n-1]):w==17?(M=3+o(c,v,3),v+=3):w==18&&(M=11+o(c,v,7),v+=7);for(var I=n+M;n<I;)E[n]=C,n++;}}return v},l.F._copyOut=function(e,t,g,c){for(var v=0,E=0,o=c.length>>>1;E<g;){var a=e[E+t];c[E<<1]=0,c[1+(E<<1)]=a,a>v&&(v=a),E++;}for(;E<o;)c[E<<1]=0,c[1+(E<<1)]=0,E++;return v},l.F.makeCodes=function(e,t){for(var g,c,v,E,o=l.F.U,a=e.length,n=o.bl_count,h=0;h<=t;h++)n[h]=0;for(h=1;h<a;h+=2)n[e[h]]++;var w=o.next_code;for(g=0,n[0]=0,c=1;c<=t;c++)g=g+n[c-1]<<1,w[c]=g;for(v=0;v<a;v+=2)(E=e[v+1])!=0&&(e[v]=w[E],w[E]++);},l.F.codes2map=function(e,t,g){for(var c=e.length,v=l.F.U.rev15,E=0;E<c;E+=2)if(e[E+1]!=0)for(var o=E>>1,a=e[E+1],n=o<<4|a,h=t-a,w=e[E]<<h,C=w+(1<<h);w!=C;)g[v[w]>>>15-t]=n,w++;},l.F.revCodes=function(e,t){for(var g=l.F.U.rev15,c=15-t,v=0;v<e.length;v+=2){var E=e[v]<<t-e[v+1];e[v]=g[E]>>>c;}},l.F._putsE=function(e,t,g){g<<=7&t;var c=t>>>3;e[c]|=g,e[c+1]|=g>>>8;},l.F._putsF=function(e,t,g){g<<=7&t;var c=t>>>3;e[c]|=g,e[c+1]|=g>>>8,e[c+2]|=g>>>16;},l.F._bitsE=function(e,t,g){return (e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<g)-1},l.F._bitsF=function(e,t,g){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<g)-1},l.F._get17=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},l.F._get25=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},l.F.U=(r=Uint16Array,S=Uint32Array,{next_code:new r(16),bl_count:new r(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[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,999,999,999],exb:[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],ldef:new r(32),df0:[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,65535,65535],dxb:[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],ddef:new S(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new S(286),dhst:new S(30),ihst:new S(19),lits:new S(15e3),strt:new r(65536),prev:new r(32768)}),function(){for(var e=l.F.U,t=0;t<32768;t++){var g=t;g=(4278255360&(g=(4042322160&(g=(3435973836&(g=(2863311530&g)>>>1|(1431655765&g)<<1))>>>2|(858993459&g)<<2))>>>4|(252645135&g)<<4))>>>8|(16711935&g)<<8,e.rev15[t]=(g>>>16|g<<16)>>>17;}function c(v,E,o){for(;E--!=0;)v.push(0,o);}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];c(e.fltree,144,8),c(e.fltree,112,9),c(e.fltree,24,7),c(e.fltree,8,8),l.F.makeCodes(e.fltree,9),l.F.codes2map(e.fltree,9,e.flmap),l.F.revCodes(e.fltree,9),c(e.fdtree,32,5),l.F.makeCodes(e.fdtree,5),l.F.codes2map(e.fdtree,5,e.fdmap),l.F.revCodes(e.fdtree,5),c(e.itree,19,0),c(e.ltree,286,0),c(e.dtree,30,0),c(e.ttree,320,0);}();})();var Cn=Tn({__proto__:null,default:$e},[$e]),pe=function(){var i={nextZero(o,a){for(;o[a]!=0;)a++;return a},readUshort:(o,a)=>o[a]<<8|o[a+1],writeUshort(o,a,n){o[a]=n>>8&255,o[a+1]=255&n;},readUint:(o,a)=>16777216*o[a]+(o[a+1]<<16|o[a+2]<<8|o[a+3]),writeUint(o,a,n){o[a]=n>>24&255,o[a+1]=n>>16&255,o[a+2]=n>>8&255,o[a+3]=255&n;},readASCII(o,a,n){let h="";for(let w=0;w<n;w++)h+=String.fromCharCode(o[a+w]);return h},writeASCII(o,a,n){for(let h=0;h<n.length;h++)o[a+h]=n.charCodeAt(h);},readBytes(o,a,n){let h=[];for(let w=0;w<n;w++)h.push(o[a+w]);return h},pad:o=>o.length<2?`0${o}`:o,readUTF8(o,a,n){let h,w="";for(let C=0;C<n;C++)w+=`%${i.pad(o[a+C].toString(16))}`;try{h=decodeURIComponent(w);}catch{return i.readASCII(o,a,n)}return h}};function r(o,a,n,h){let w=a*n,C=t(h),M=Math.ceil(a*C/8),I=new Uint8Array(4*w),H=new Uint32Array(I.buffer),{ctype:B}=h,{depth:L}=h,R=i.readUshort;if(B==6){let U=w<<2;if(L==8)for(var p=0;p<U;p+=4)I[p]=o[p],I[p+1]=o[p+1],I[p+2]=o[p+2],I[p+3]=o[p+3];if(L==16)for(p=0;p<U;p++)I[p]=o[p<<1];}else if(B==2){let U=h.tabs.tRNS;if(U==null){if(L==8)for(p=0;p<w;p++){var O=3*p;H[p]=255<<24|o[O+2]<<16|o[O+1]<<8|o[O];}if(L==16)for(p=0;p<w;p++)O=6*p,H[p]=255<<24|o[O+4]<<16|o[O+2]<<8|o[O];}else {var f=U[0];let x=U[1],N=U[2];if(L==8)for(p=0;p<w;p++){var u=p<<2;O=3*p,H[p]=255<<24|o[O+2]<<16|o[O+1]<<8|o[O],o[O]==f&&o[O+1]==x&&o[O+2]==N&&(I[u+3]=0);}if(L==16)for(p=0;p<w;p++)u=p<<2,O=6*p,H[p]=255<<24|o[O+4]<<16|o[O+2]<<8|o[O],R(o,O)==f&&R(o,O+2)==x&&R(o,O+4)==N&&(I[u+3]=0);}}else if(B==3){let U=h.tabs.PLTE,x=h.tabs.tRNS,N=x?x.length:0;if(L==1)for(var b=0;b<n;b++){var s=b*M,y=b*a;for(p=0;p<a;p++){u=y+p<<2;var _=3*(A=o[s+(p>>3)]>>7-((7&p)<<0)&1);I[u]=U[_],I[u+1]=U[_+1],I[u+2]=U[_+2],I[u+3]=A<N?x[A]:255;}}if(L==2)for(b=0;b<n;b++)for(s=b*M,y=b*a,p=0;p<a;p++)u=y+p<<2,_=3*(A=o[s+(p>>2)]>>6-((3&p)<<1)&3),I[u]=U[_],I[u+1]=U[_+1],I[u+2]=U[_+2],I[u+3]=A<N?x[A]:255;if(L==4)for(b=0;b<n;b++)for(s=b*M,y=b*a,p=0;p<a;p++)u=y+p<<2,_=3*(A=o[s+(p>>1)]>>4-((1&p)<<2)&15),I[u]=U[_],I[u+1]=U[_+1],I[u+2]=U[_+2],I[u+3]=A<N?x[A]:255;if(L==8)for(p=0;p<w;p++){var A;u=p<<2,_=3*(A=o[p]),I[u]=U[_],I[u+1]=U[_+1],I[u+2]=U[_+2],I[u+3]=A<N?x[A]:255;}}else if(B==4){if(L==8)for(p=0;p<w;p++){u=p<<2;var T=o[m=p<<1];I[u]=T,I[u+1]=T,I[u+2]=T,I[u+3]=o[m+1];}if(L==16)for(p=0;p<w;p++){var m;u=p<<2,T=o[m=p<<2],I[u]=T,I[u+1]=T,I[u+2]=T,I[u+3]=o[m+2];}}else if(B==0)for(f=h.tabs.tRNS?h.tabs.tRNS:-1,b=0;b<n;b++){let U=b*M,x=b*a;if(L==1)for(var d=0;d<a;d++){var P=(T=255*(o[U+(d>>>3)]>>>7-(7&d)&1))==255*f?0:255;H[x+d]=P<<24|T<<16|T<<8|T;}else if(L==2)for(d=0;d<a;d++)P=(T=85*(o[U+(d>>>2)]>>>6-((3&d)<<1)&3))==85*f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;else if(L==4)for(d=0;d<a;d++)P=(T=17*(o[U+(d>>>1)]>>>4-((1&d)<<2)&15))==17*f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;else if(L==8)for(d=0;d<a;d++)P=(T=o[U+d])==f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;else if(L==16)for(d=0;d<a;d++)T=o[U+(d<<1)],P=R(o,U+(d<<1))==f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;}return I}function S(o,a,n,h){let w=t(o),C=Math.ceil(n*w/8),M=new Uint8Array((C+1+o.interlace)*h);return a=o.tabs.CgBI?e(a,M):l(a,M),o.interlace==0?a=g(a,o,0,n,h):o.interlace==1&&(a=function(H,B){let L=B.width,R=B.height,p=t(B),O=p>>3,f=Math.ceil(L*p/8),u=new Uint8Array(R*f),b=0,s=[0,0,4,0,2,0,1],y=[0,4,0,2,0,1,0],_=[8,8,8,4,4,2,2],A=[8,8,4,4,2,2,1],T=0;for(;T<7;){let d=_[T],P=A[T],U=0,x=0,N=s[T];for(;N<R;)N+=d,x++;let D=y[T];for(;D<L;)D+=P,U++;let Q=Math.ceil(U*p/8);g(H,B,b,U,x);let k=0,F=s[T];for(;F<R;){let $=y[T],K=b+k*Q<<3;for(;$<L;){var m;if(p==1&&(m=(m=H[K>>3])>>7-(7&K)&1,u[F*f+($>>3)]|=m<<7-((7&$)<<0)),p==2&&(m=(m=H[K>>3])>>6-(7&K)&3,u[F*f+($>>2)]|=m<<6-((3&$)<<1)),p==4&&(m=(m=H[K>>3])>>4-(7&K)&15,u[F*f+($>>1)]|=m<<4-((1&$)<<2)),p>=8){let V=F*f+$*O;for(let z=0;z<O;z++)u[V+z]=H[(K>>3)+z];}K+=p,$+=P;}k++,F+=d;}U*x!=0&&(b+=x*(1+Q)),T+=1;}return u}(a,o)),a}function l(o,a){return e(new Uint8Array(o.buffer,2,o.length-6),a)}var e=function(){let o={H:{}};return o.H.N=function(a,n){let h=Uint8Array,w,C,M=0,I=0,H=0,B=0,L=0,R=0,p=0,O=0,f=0;if(a[0]==3&&a[1]==0)return n||new h(0);let u=o.H,b=u.b,s=u.e,y=u.R,_=u.n,A=u.A,T=u.Z,m=u.m,d=n==null;for(d&&(n=new h(a.length>>>2<<5));M==0;)if(M=b(a,f,1),I=b(a,f+1,2),f+=3,I!=0){if(d&&(n=o.H.W(n,O+(1<<17))),I==1&&(w=m.J,C=m.h,R=511,p=31),I==2){H=s(a,f,5)+257,B=s(a,f+5,5)+1,L=s(a,f+10,4)+4,f+=14;let U=1;for(var P=0;P<38;P+=2)m.Q[P]=0,m.Q[P+1]=0;for(P=0;P<L;P++){let D=s(a,f+3*P,3);m.Q[1+(m.X[P]<<1)]=D,D>U&&(U=D);}f+=3*L,_(m.Q,U),A(m.Q,U,m.u),w=m.w,C=m.d,f=y(m.u,(1<<U)-1,H+B,a,f,m.v);let x=u.V(m.v,0,H,m.C);R=(1<<x)-1;let N=u.V(m.v,H,B,m.D);p=(1<<N)-1,_(m.C,x),A(m.C,x,w),_(m.D,N),A(m.D,N,C);}for(;;){let U=w[T(a,f)&R];f+=15&U;let x=U>>>4;if(!(x>>>8))n[O++]=x;else {if(x==256)break;{let N=O+x-254;if(x>264){let $=m.q[x-257];N=O+($>>>3)+s(a,f,7&$),f+=7&$;}let D=C[T(a,f)&p];f+=15&D;let Q=D>>>4,k=m.c[Q],F=(k>>>4)+b(a,f,15&k);for(f+=15&k;O<N;)n[O]=n[O++-F],n[O]=n[O++-F],n[O]=n[O++-F],n[O]=n[O++-F];O=N;}}}}else {(7&f)!=0&&(f+=8-(7&f));let U=4+(f>>>3),x=a[U-4]|a[U-3]<<8;d&&(n=o.H.W(n,O+x)),n.set(new h(a.buffer,a.byteOffset+U,x),O),f=U+x<<3,O+=x;}return n.length==O?n:n.slice(0,O)},o.H.W=function(a,n){let h=a.length;if(n<=h)return a;let w=new Uint8Array(h<<1);return w.set(a,0),w},o.H.R=function(a,n,h,w,C,M){let I=o.H.e,H=o.H.Z,B=0;for(;B<h;){let L=a[H(w,C)&n];C+=15&L;let R=L>>>4;if(R<=15)M[B]=R,B++;else {let p=0,O=0;R==16?(O=3+I(w,C,2),C+=2,p=M[B-1]):R==17?(O=3+I(w,C,3),C+=3):R==18&&(O=11+I(w,C,7),C+=7);let f=B+O;for(;B<f;)M[B]=p,B++;}}return C},o.H.V=function(a,n,h,w){let C=0,M=0,I=w.length>>>1;for(;M<h;){let H=a[M+n];w[M<<1]=0,w[1+(M<<1)]=H,H>C&&(C=H),M++;}for(;M<I;)w[M<<1]=0,w[1+(M<<1)]=0,M++;return C},o.H.n=function(a,n){let h=o.H.m,w=a.length,C,M,I,H,B=h.j;for(var L=0;L<=n;L++)B[L]=0;for(L=1;L<w;L+=2)B[a[L]]++;let R=h.K;for(C=0,B[0]=0,M=1;M<=n;M++)C=C+B[M-1]<<1,R[M]=C;for(I=0;I<w;I+=2)H=a[I+1],H!=0&&(a[I]=R[H],R[H]++);},o.H.A=function(a,n,h){let w=a.length,C=o.H.m.r;for(let M=0;M<w;M+=2)if(a[M+1]!=0){let I=M>>1,H=a[M+1],B=I<<4|H,L=n-H,R=a[M]<<L,p=R+(1<<L);for(;R!=p;)h[C[R]>>>15-n]=B,R++;}},o.H.l=function(a,n){let h=o.H.m.r,w=15-n;for(let C=0;C<a.length;C+=2){let M=a[C]<<n-a[C+1];a[C]=h[M]>>>w;}},o.H.M=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8;},o.H.I=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8,a[w+2]|=h>>>16;},o.H.e=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8)>>>(7&n)&(1<<h)-1},o.H.b=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)&(1<<h)-1},o.H.Z=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)},o.H.i=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16|a[3+(n>>>3)]<<24)>>>(7&n)},o.H.m=function(){let a=Uint16Array,n=Uint32Array;return {K:new a(16),j:new a(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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],q:new a(32),p:[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,65535,65535],z:[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],c:new n(32),J:new a(512),_:[],h:new a(32),$:[],w:new a(32768),C:[],v:[],d:new a(32768),D:[],u:new a(512),Q:[],r:new a(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new a(65536),g:new a(32768)}}(),function(){let a=o.H.m;for(var n=0;n<32768;n++){let w=n;w=(2863311530&w)>>>1|(1431655765&w)<<1,w=(3435973836&w)>>>2|(858993459&w)<<2,w=(4042322160&w)>>>4|(252645135&w)<<4,w=(4278255360&w)>>>8|(16711935&w)<<8,a.r[n]=(w>>>16|w<<16)>>>17;}function h(w,C,M){for(;C--!=0;)w.push(0,M);}for(n=0;n<32;n++)a.q[n]=a.S[n]<<3|a.T[n],a.c[n]=a.p[n]<<4|a.z[n];h(a._,144,8),h(a._,112,9),h(a._,24,7),h(a._,8,8),o.H.n(a._,9),o.H.A(a._,9,a.J),o.H.l(a._,9),h(a.$,32,5),o.H.n(a.$,5),o.H.A(a.$,5,a.h),o.H.l(a.$,5),h(a.Q,19,0),h(a.C,286,0),h(a.D,30,0),h(a.v,320,0);}(),o.H.N}();function t(o){return [1,null,3,1,2,null,4][o.ctype]*o.depth}function g(o,a,n,h,w){let C=t(a),M=Math.ceil(h*C/8),I,H;C=Math.ceil(C/8);let B=o[n],L=0;if(B>1&&(o[n]=[0,0,1][B-2]),B==3)for(L=C;L<M;L++)o[L+1]=o[L+1]+(o[L+1-C]>>>1)&255;for(let R=0;R<w;R++)if(I=n+R*M,H=I+R+1,B=o[H-1],L=0,B==0)for(;L<M;L++)o[I+L]=o[H+L];else if(B==1){for(;L<C;L++)o[I+L]=o[H+L];for(;L<M;L++)o[I+L]=o[H+L]+o[I+L-C];}else if(B==2)for(;L<M;L++)o[I+L]=o[H+L]+o[I+L-M];else if(B==3){for(;L<C;L++)o[I+L]=o[H+L]+(o[I+L-M]>>>1);for(;L<M;L++)o[I+L]=o[H+L]+(o[I+L-M]+o[I+L-C]>>>1);}else {for(;L<C;L++)o[I+L]=o[H+L]+c(0,o[I+L-M],0);for(;L<M;L++)o[I+L]=o[H+L]+c(o[I+L-C],o[I+L-M],o[I+L-C-M]);}return o}function c(o,a,n){let h=o+a-n,w=h-o,C=h-a,M=h-n;return w*w<=C*C&&w*w<=M*M?o:C*C<=M*M?a:n}function v(o,a,n){n.width=i.readUint(o,a),a+=4,n.height=i.readUint(o,a),a+=4,n.depth=o[a],a++,n.ctype=o[a],a++,n.compress=o[a],a++,n.filter=o[a],a++,n.interlace=o[a],a++;}function E(o,a,n,h,w,C,M,I,H){let B=Math.min(a,w),L=Math.min(n,C),R=0,p=0;for(let T=0;T<L;T++)for(let m=0;m<B;m++)if(M>=0&&I>=0?(R=T*a+m<<2,p=(I+T)*w+M+m<<2):(R=(-I+T)*a-M+m<<2,p=T*w+m<<2),H==0)h[p]=o[R],h[p+1]=o[R+1],h[p+2]=o[R+2],h[p+3]=o[R+3];else if(H==1){var O=o[R+3]*.00392156862745098,f=o[R]*O,u=o[R+1]*O,b=o[R+2]*O,s=h[p+3]*(1/255),y=h[p]*s,_=h[p+1]*s,A=h[p+2]*s;let d=1-O,P=O+s*d,U=P==0?0:1/P;h[p+3]=255*P,h[p+0]=(f+y*d)*U,h[p+1]=(u+_*d)*U,h[p+2]=(b+A*d)*U;}else if(H==2)O=o[R+3],f=o[R],u=o[R+1],b=o[R+2],s=h[p+3],y=h[p],_=h[p+1],A=h[p+2],O==s&&f==y&&u==_&&b==A?(h[p]=0,h[p+1]=0,h[p+2]=0,h[p+3]=0):(h[p]=f,h[p+1]=u,h[p+2]=b,h[p+3]=O);else if(H==3){if(O=o[R+3],f=o[R],u=o[R+1],b=o[R+2],s=h[p+3],y=h[p],_=h[p+1],A=h[p+2],O==s&&f==y&&u==_&&b==A)continue;if(O<220&&s>20)return false}return true}return {decode:function(a){let n=new Uint8Array(a),h=8,w=i,C=w.readUshort,M=w.readUint,I={tabs:{},frames:[]},H=new Uint8Array(n.length),B,L=0,R=0,p=[137,80,78,71,13,10,26,10];for(var O=0;O<8;O++)if(n[O]!=p[O])throw "The input is not a PNG file!";for(;h<n.length;){let T=w.readUint(n,h);h+=4;let m=w.readASCII(n,h,4);if(h+=4,m=="IHDR")v(n,h,I);else if(m=="iCCP"){for(var f=h;n[f]!=0;)f++;w.readASCII(n,h,f-h),n[f+1];let d=n.slice(f+2,h+T),P=null;try{P=l(d);}catch{P=e(d);}I.tabs[m]=P;}else if(m=="CgBI")I.tabs[m]=n.slice(h,h+4);else if(m=="IDAT"){for(O=0;O<T;O++)H[L+O]=n[h+O];L+=T;}else if(m=="acTL")I.tabs[m]={num_frames:M(n,h),num_plays:M(n,h+4)},B=new Uint8Array(n.length);else if(m=="fcTL"){R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,B.slice(0,R),A.rect.width,A.rect.height),R=0);let d={x:M(n,h+12),y:M(n,h+16),width:M(n,h+4),height:M(n,h+8)},P=C(n,h+22);P=C(n,h+20)/(P==0?100:P);let U={rect:d,delay:Math.round(1e3*P),dispose:n[h+24],blend:n[h+25]};I.frames.push(U);}else if(m=="fdAT"){for(O=0;O<T-4;O++)B[R+O]=n[h+O+4];R+=T-4;}else if(m=="pHYs")I.tabs[m]=[w.readUint(n,h),w.readUint(n,h+4),n[h+8]];else if(m=="cHRM")for(I.tabs[m]=[],O=0;O<8;O++)I.tabs[m].push(w.readUint(n,h+4*O));else if(m=="tEXt"||m=="zTXt"){I.tabs[m]==null&&(I.tabs[m]={});var u=w.nextZero(n,h),b=w.readASCII(n,h,u-h),s=h+T-u-1;if(m=="tEXt")_=w.readASCII(n,u+1,s);else {var y=l(n.slice(u+2,u+2+s));_=w.readUTF8(y,0,y.length);}I.tabs[m][b]=_;}else if(m=="iTXt"){I.tabs[m]==null&&(I.tabs[m]={}),u=0,f=h,u=w.nextZero(n,f),b=w.readASCII(n,f,u-f);let d=n[f=u+1];var _;n[f+1],f+=2,u=w.nextZero(n,f),w.readASCII(n,f,u-f),f=u+1,u=w.nextZero(n,f),w.readUTF8(n,f,u-f),s=T-((f=u+1)-h),d==0?_=w.readUTF8(n,f,s):(y=l(n.slice(f,f+s)),_=w.readUTF8(y,0,y.length)),I.tabs[m][b]=_;}else if(m=="PLTE")I.tabs[m]=w.readBytes(n,h,T);else if(m=="hIST"){let d=I.tabs.PLTE.length/3;for(I.tabs[m]=[],O=0;O<d;O++)I.tabs[m].push(C(n,h+2*O));}else if(m=="tRNS")I.ctype==3?I.tabs[m]=w.readBytes(n,h,T):I.ctype==0?I.tabs[m]=C(n,h):I.ctype==2&&(I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]);else if(m=="gAMA")I.tabs[m]=w.readUint(n,h)/1e5;else if(m=="sRGB")I.tabs[m]=n[h];else if(m=="bKGD")I.ctype==0||I.ctype==4?I.tabs[m]=[C(n,h)]:I.ctype==2||I.ctype==6?I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]:I.ctype==3&&(I.tabs[m]=n[h]);else if(m=="IEND")break;h+=T,w.readUint(n,h),h+=4;}var A;return R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,B.slice(0,R),A.rect.width,A.rect.height)),I.data=S(I,H,I.width,I.height),delete I.compress,delete I.interlace,delete I.filter,I},toRGBA8:function(a){let n=a.width,h=a.height;if(a.tabs.acTL==null)return [r(a.data,n,h,a).buffer];let w=[];a.frames[0].data==null&&(a.frames[0].data=a.data);let C=n*h*4,M=new Uint8Array(C),I=new Uint8Array(C),H=new Uint8Array(C);for(let L=0;L<a.frames.length;L++){let R=a.frames[L],p=R.rect.x,O=R.rect.y,f=R.rect.width,u=R.rect.height,b=r(R.data,f,u,a);if(L!=0)for(var B=0;B<C;B++)H[B]=M[B];if(R.blend==0?E(b,f,u,M,n,h,p,O,0):R.blend==1&&E(b,f,u,M,n,h,p,O,1),w.push(M.buffer.slice(0)),R.dispose!=0){if(R.dispose==1)E(I,f,u,M,n,h,p,O,0);else if(R.dispose==2)for(B=0;B<C;B++)M[B]=H[B];}}return w},_paeth:c,_copyTile:E,_bin:i}}();(function(){let{_copyTile:i}=pe,{_bin:r}=pe,S=pe._paeth;var l={table:function(){let f=new Uint32Array(256);for(let u=0;u<256;u++){let b=u;for(let s=0;s<8;s++)1&b?b=3988292384^b>>>1:b>>>=1;f[u]=b;}return f}(),update(f,u,b,s){for(let y=0;y<s;y++)f=l.table[255&(f^u[b+y])]^f>>>8;return f},crc:(f,u,b)=>4294967295^l.update(4294967295,f,u,b)};function e(f,u,b,s){u[b]+=f[0]*s>>4,u[b+1]+=f[1]*s>>4,u[b+2]+=f[2]*s>>4,u[b+3]+=f[3]*s>>4;}function t(f){return Math.max(0,Math.min(255,f))}function g(f,u){let b=f[0]-u[0],s=f[1]-u[1],y=f[2]-u[2],_=f[3]-u[3];return b*b+s*s+y*y+_*_}function c(f,u,b,s,y,_,A){A==null&&(A=1);let T=s.length,m=[];for(var d=0;d<T;d++){let F=s[d];m.push([F>>>0&255,F>>>8&255,F>>>16&255,F>>>24&255]);}for(d=0;d<T;d++){let F=4294967295;for(var P=0,U=0;U<T;U++){var x=g(m[d],m[U]);U!=d&&x<F&&(F=x,P=U);}}let N=new Uint32Array(y.buffer),D=new Int16Array(u*b*4),Q=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(d=0;d<Q.length;d++)Q[d]=255*((Q[d]+.5)/16-.5);for(let F=0;F<b;F++)for(let $=0;$<u;$++){var k;d=4*(F*u+$),A!=2?k=[t(f[d]+D[d]),t(f[d+1]+D[d+1]),t(f[d+2]+D[d+2]),t(f[d+3]+D[d+3])]:(x=Q[4*(3&F)+(3&$)],k=[t(f[d]+x),t(f[d+1]+x),t(f[d+2]+x),t(f[d+3]+x)]),P=0;let K=16777215;for(U=0;U<T;U++){let q=g(k,m[U]);q<K&&(K=q,P=U);}let V=m[P],z=[k[0]-V[0],k[1]-V[1],k[2]-V[2],k[3]-V[3]];A==1&&($!=u-1&&e(z,D,d+4,7),F!=b-1&&($!=0&&e(z,D,d+4*u-4,3),e(z,D,d+4*u,5),$!=u-1&&e(z,D,d+4*u+4,1))),_[d>>2]=P,N[d>>2]=s[P];}}function v(f,u,b,s,y){y==null&&(y={});let{crc:_}=l,A=r.writeUint,T=r.writeUshort,m=r.writeASCII,d=8,P=f.frames.length>1,U,x=false,N=33+(P?20:0);if(y.sRGB!=null&&(N+=13),y.pHYs!=null&&(N+=21),y.iCCP!=null&&(U=pako.deflate(y.iCCP),N+=21+U.length+4),f.ctype==3){for(var D=f.plte.length,Q=0;Q<D;Q++)f.plte[Q]>>>24!=255&&(x=true);N+=8+3*D+4+(x?8+1*D+4:0);}for(var k=0;k<f.frames.length;k++)P&&(N+=38),N+=(V=f.frames[k]).cimg.length+12,k!=0&&(N+=4);N+=12;let F=new Uint8Array(N),$=[137,80,78,71,13,10,26,10];for(Q=0;Q<8;Q++)F[Q]=$[Q];if(A(F,d,13),d+=4,m(F,d,"IHDR"),d+=4,A(F,d,u),d+=4,A(F,d,b),d+=4,F[d]=f.depth,d++,F[d]=f.ctype,d++,F[d]=0,d++,F[d]=0,d++,F[d]=0,d++,A(F,d,_(F,d-17,17)),d+=4,y.sRGB!=null&&(A(F,d,1),d+=4,m(F,d,"sRGB"),d+=4,F[d]=y.sRGB,d++,A(F,d,_(F,d-5,5)),d+=4),y.iCCP!=null){let z=13+U.length;A(F,d,z),d+=4,m(F,d,"iCCP"),d+=4,m(F,d,"ICC profile"),d+=11,d+=2,F.set(U,d),d+=U.length,A(F,d,_(F,d-(z+4),z+4)),d+=4;}if(y.pHYs!=null&&(A(F,d,9),d+=4,m(F,d,"pHYs"),d+=4,A(F,d,y.pHYs[0]),d+=4,A(F,d,y.pHYs[1]),d+=4,F[d]=y.pHYs[2],d++,A(F,d,_(F,d-13,13)),d+=4),P&&(A(F,d,8),d+=4,m(F,d,"acTL"),d+=4,A(F,d,f.frames.length),d+=4,A(F,d,y.loop!=null?y.loop:0),d+=4,A(F,d,_(F,d-12,12)),d+=4),f.ctype==3){for(A(F,d,3*(D=f.plte.length)),d+=4,m(F,d,"PLTE"),d+=4,Q=0;Q<D;Q++){let z=3*Q,q=f.plte[Q],G=255&q,W=q>>>8&255,ie=q>>>16&255;F[d+z+0]=G,F[d+z+1]=W,F[d+z+2]=ie;}if(d+=3*D,A(F,d,_(F,d-3*D-4,3*D+4)),d+=4,x){for(A(F,d,D),d+=4,m(F,d,"tRNS"),d+=4,Q=0;Q<D;Q++)F[d+Q]=f.plte[Q]>>>24&255;d+=D,A(F,d,_(F,d-D-4,D+4)),d+=4;}}let K=0;for(k=0;k<f.frames.length;k++){var V=f.frames[k];P&&(A(F,d,26),d+=4,m(F,d,"fcTL"),d+=4,A(F,d,K++),d+=4,A(F,d,V.rect.width),d+=4,A(F,d,V.rect.height),d+=4,A(F,d,V.rect.x),d+=4,A(F,d,V.rect.y),d+=4,T(F,d,s[k]),d+=2,T(F,d,1e3),d+=2,F[d]=V.dispose,d++,F[d]=V.blend,d++,A(F,d,_(F,d-30,30)),d+=4);let z=V.cimg;A(F,d,(D=z.length)+(k==0?0:4)),d+=4;let q=d;m(F,d,k==0?"IDAT":"fdAT"),d+=4,k!=0&&(A(F,d,K++),d+=4),F.set(z,d),d+=D,A(F,d,_(F,q,d-q)),d+=4;}return A(F,d,0),d+=4,m(F,d,"IEND"),d+=4,A(F,d,_(F,d-4,4)),d+=4,F.buffer}function E(f,u,b){for(let s=0;s<f.frames.length;s++){let y=f.frames[s];y.rect.width;let _=y.rect.height,A=new Uint8Array(_*y.bpl+_);y.cimg=h(y.img,_,y.bpp,y.bpl,A,u,b);}}function o(f,u,b,s,y){let _=y[0],A=y[1],T=y[2],m=y[3],d=y[4],P=y[5],U=6,x=8,N=255;for(var D=0;D<f.length;D++){let te=new Uint8Array(f[D]);for(var Q=te.length,k=0;k<Q;k+=4)N&=te[k+3];}let F=N!=255,$=function(Y,J,ne,oe,j,ue){let ee=[];for(var X=0;X<Y.length;X++){let ce=new Uint8Array(Y[X]),he=new Uint32Array(ce.buffer);var le;let de=0,ve=0,me=J,Ie=ne,Ye=oe?1:0;if(X!=0){let yn=ue||oe||X==1||ee[X-2].dispose!=0?1:2,Je=0,wt=1e9;for(let Le=0;Le<yn;Le++){var ge=new Uint8Array(Y[X-1-Le]);let An=new Uint32Array(Y[X-1-Le]),be=J,_e=ne,xe=-1,De=-1;for(let Re=0;Re<ne;Re++)for(let Ce=0;Ce<J;Ce++)he[se=Re*J+Ce]!=An[se]&&(Ce<be&&(be=Ce),Ce>xe&&(xe=Ce),Re<_e&&(_e=Re),Re>De&&(De=Re));xe==-1&&(be=_e=xe=De=0),j&&((1&be)==1&&be--,(1&_e)==1&&_e--);let bt=(xe-be+1)*(De-_e+1);bt<wt&&(wt=bt,Je=Le,de=be,ve=_e,me=xe-be+1,Ie=De-_e+1);}ge=new Uint8Array(Y[X-1-Je]),Je==1&&(ee[X-1].dispose=2),le=new Uint8Array(me*Ie*4),i(ge,J,ne,le,me,Ie,-de,-ve,0),Ye=i(ce,J,ne,le,me,Ie,-de,-ve,3)?1:0,Ye==1?n(ce,J,ne,le,{x:de,y:ve,width:me,height:Ie}):i(ce,J,ne,le,me,Ie,-de,-ve,0);}else le=ce.slice(0);ee.push({rect:{x:de,y:ve,width:me,height:Ie},img:le,blend:Ye,dispose:0});}if(oe)for(X=0;X<ee.length;X++){if((Te=ee[X]).blend==1)continue;let ce=Te.rect,he=ee[X-1].rect,de=Math.min(ce.x,he.x),ve=Math.min(ce.y,he.y),me={x:de,y:ve,width:Math.max(ce.x+ce.width,he.x+he.width)-de,height:Math.max(ce.y+ce.height,he.y+he.height)-ve};ee[X-1].dispose=1,X-1!=0&&a(Y,J,ne,ee,X-1,me,j),a(Y,J,ne,ee,X,me,j);}let Ne=0;if(Y.length!=1)for(var se=0;se<ee.length;se++){var Te;Ne+=(Te=ee[se]).rect.width*Te.rect.height;}return ee}(f,u,b,_,A,T),K={},V=[],z=[];if(s!=0){let te=[];for(k=0;k<$.length;k++)te.push($[k].img.buffer);let Y=function(j){let ue=0;for(var ee=0;ee<j.length;ee++)ue+=j[ee].byteLength;let X=new Uint8Array(ue),le=0;for(ee=0;ee<j.length;ee++){let ge=new Uint8Array(j[ee]),Ne=ge.length;for(let se=0;se<Ne;se+=4){let Te=ge[se],ce=ge[se+1],he=ge[se+2],de=ge[se+3];de==0&&(Te=ce=he=0),X[le+se]=Te,X[le+se+1]=ce,X[le+se+2]=he,X[le+se+3]=de;}le+=Ne;}return X.buffer}(te),J=C(Y,s);for(k=0;k<J.plte.length;k++)V.push(J.plte[k].est.rgba);let ne=0;for(k=0;k<$.length;k++){let oe=(G=$[k]).img.length;var q=new Uint8Array(J.inds.buffer,ne>>2,oe>>2);z.push(q);let j=new Uint8Array(J.abuf,ne,oe);P&&c(G.img,G.rect.width,G.rect.height,V,j,q),G.img.set(j),ne+=oe;}}else for(D=0;D<$.length;D++){var G=$[D];let te=new Uint32Array(G.img.buffer);var W=G.rect.width;for(Q=te.length,q=new Uint8Array(Q),z.push(q),k=0;k<Q;k++){let Y=te[k];if(k!=0&&Y==te[k-1])q[k]=q[k-1];else if(k>W&&Y==te[k-W])q[k]=q[k-W];else {let J=K[Y];if(J==null&&(K[Y]=J=V.length,V.push(Y),V.length>=300))break;q[k]=J;}}}let ie=V.length;for(ie<=256&&d==0&&(x=ie<=2?1:ie<=4?2:ie<=16?4:8,x=Math.max(x,m)),D=0;D<$.length;D++){(G=$[D]).rect.x,G.rect.y,W=G.rect.width;let te=G.rect.height,Y=G.img;new Uint32Array(Y.buffer);let J=4*W,ne=4;if(ie<=256&&d==0){J=Math.ceil(x*W/8);var ae=new Uint8Array(J*te);let oe=z[D];for(let j=0;j<te;j++){k=j*J;let ue=j*W;if(x==8)for(var Z=0;Z<W;Z++)ae[k+Z]=oe[ue+Z];else if(x==4)for(Z=0;Z<W;Z++)ae[k+(Z>>1)]|=oe[ue+Z]<<4-4*(1&Z);else if(x==2)for(Z=0;Z<W;Z++)ae[k+(Z>>2)]|=oe[ue+Z]<<6-2*(3&Z);else if(x==1)for(Z=0;Z<W;Z++)ae[k+(Z>>3)]|=oe[ue+Z]<<7-1*(7&Z);}Y=ae,U=3,ne=1;}else if(F==0&&$.length==1){ae=new Uint8Array(W*te*3);let oe=W*te;for(k=0;k<oe;k++){let j=3*k,ue=4*k;ae[j]=Y[ue],ae[j+1]=Y[ue+1],ae[j+2]=Y[ue+2];}Y=ae,U=2,ne=3,J=3*W;}G.img=Y,G.bpl=J,G.bpp=ne;}return {ctype:U,depth:x,plte:V,frames:$}}function a(f,u,b,s,y,_,A){let T=Uint8Array,m=Uint32Array,d=new T(f[y-1]),P=new m(f[y-1]),U=y+1<f.length?new T(f[y+1]):null,x=new T(f[y]),N=new m(x.buffer),D=u,Q=b,k=-1,F=-1;for(let K=0;K<_.height;K++)for(let V=0;V<_.width;V++){let z=_.x+V,q=_.y+K,G=q*u+z,W=N[G];W==0||s[y-1].dispose==0&&P[G]==W&&(U==null||U[4*G+3]!=0)||(z<D&&(D=z),z>k&&(k=z),q<Q&&(Q=q),q>F&&(F=q));}k==-1&&(D=Q=k=F=0),A&&((1&D)==1&&D--,(1&Q)==1&&Q--),_={x:D,y:Q,width:k-D+1,height:F-Q+1};let $=s[y];$.rect=_,$.blend=1,$.img=new Uint8Array(_.width*_.height*4),s[y-1].dispose==0?(i(d,u,b,$.img,_.width,_.height,-_.x,-_.y,0),n(x,u,b,$.img,_)):i(x,u,b,$.img,_.width,_.height,-_.x,-_.y,0);}function n(f,u,b,s,y){i(f,u,b,s,y.width,y.height,-y.x,-y.y,2);}function h(f,u,b,s,y,_,A){let T=[],m,d=[0,1,2,3,4];_!=-1?d=[_]:(u*s>5e5||b==1)&&(d=[0]),A&&(m={level:0});let P=Cn;for(var U=0;U<d.length;U++){for(let D=0;D<u;D++)w(y,f,D,s,b,d[U]);T.push(P.deflate(y,m));}let x,N=1e9;for(U=0;U<T.length;U++)T[U].length<N&&(x=U,N=T[U].length);return T[x]}function w(f,u,b,s,y,_){let A=b*s,T=A+b;if(f[T]=_,T++,_==0)if(s<500)for(var m=0;m<s;m++)f[T+m]=u[A+m];else f.set(new Uint8Array(u.buffer,A,s),T);else if(_==1){for(m=0;m<y;m++)f[T+m]=u[A+m];for(m=y;m<s;m++)f[T+m]=u[A+m]-u[A+m-y]+256&255;}else if(b==0){for(m=0;m<y;m++)f[T+m]=u[A+m];if(_==2)for(m=y;m<s;m++)f[T+m]=u[A+m];if(_==3)for(m=y;m<s;m++)f[T+m]=u[A+m]-(u[A+m-y]>>1)+256&255;if(_==4)for(m=y;m<s;m++)f[T+m]=u[A+m]-S(u[A+m-y],0,0)+256&255;}else {if(_==2)for(m=0;m<s;m++)f[T+m]=u[A+m]+256-u[A+m-s]&255;if(_==3){for(m=0;m<y;m++)f[T+m]=u[A+m]+256-(u[A+m-s]>>1)&255;for(m=y;m<s;m++)f[T+m]=u[A+m]+256-(u[A+m-s]+u[A+m-y]>>1)&255;}if(_==4){for(m=0;m<y;m++)f[T+m]=u[A+m]+256-S(0,u[A+m-s],0)&255;for(m=y;m<s;m++)f[T+m]=u[A+m]+256-S(u[A+m-y],u[A+m-s],u[A+m-y-s])&255;}}}function C(f,u){let b=new Uint8Array(f),s=b.slice(0),y=new Uint32Array(s.buffer),_=M(s,u),A=_[0],T=_[1],m=b.length,d=new Uint8Array(m>>2),P;if(b.length<2e7)for(var U=0;U<m;U+=4)P=I(A,x=b[U]*(1/255),N=b[U+1]*(1/255),D=b[U+2]*(1/255),Q=b[U+3]*(1/255)),d[U>>2]=P.ind,y[U>>2]=P.est.rgba;else for(U=0;U<m;U+=4){var x=b[U]*.00392156862745098,N=b[U+1]*(1/255),D=b[U+2]*(1/255),Q=b[U+3]*(1/255);for(P=A;P.left;)P=H(P.est,x,N,D,Q)<=0?P.left:P.right;d[U>>2]=P.ind,y[U>>2]=P.est.rgba;}return {abuf:s.buffer,inds:d,plte:T}}function M(f,u,b){b==null&&(b=1e-4);let s=new Uint32Array(f.buffer),y={i0:0,i1:f.length,bst:null,est:null,tdst:0,left:null,right:null};y.bst=R(f,y.i0,y.i1),y.est=p(y.bst);let _=[y];for(;_.length<u;){let T=0,m=0;for(var A=0;A<_.length;A++)_[A].est.L>T&&(T=_[A].est.L,m=A);if(T<b)break;let d=_[m],P=B(f,s,d.i0,d.i1,d.est.e,d.est.eMq255);if(d.i0>=P||d.i1<=P){d.est.L=0;continue}let U={i0:d.i0,i1:P,bst:null,est:null,tdst:0,left:null,right:null};U.bst=R(f,U.i0,U.i1),U.est=p(U.bst);let x={i0:P,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};for(x.bst={R:[],m:[],N:d.bst.N-U.bst.N},A=0;A<16;A++)x.bst.R[A]=d.bst.R[A]-U.bst.R[A];for(A=0;A<4;A++)x.bst.m[A]=d.bst.m[A]-U.bst.m[A];x.est=p(x.bst),d.left=U,d.right=x,_[m]=U,_.push(x);}for(_.sort((T,m)=>m.bst.N-T.bst.N),A=0;A<_.length;A++)_[A].ind=A;return [y,_]}function I(f,u,b,s,y){if(f.left==null)return f.tdst=function(U,x,N,D,Q){let k=x-U[0],F=N-U[1],$=D-U[2],K=Q-U[3];return k*k+F*F+$*$+K*K}(f.est.q,u,b,s,y),f;let _=H(f.est,u,b,s,y),A=f.left,T=f.right;_>0&&(A=f.right,T=f.left);let m=I(A,u,b,s,y);if(m.tdst<=_*_)return m;let d=I(T,u,b,s,y);return d.tdst<m.tdst?d:m}function H(f,u,b,s,y){let{e:_}=f;return _[0]*u+_[1]*b+_[2]*s+_[3]*y-f.eMq}function B(f,u,b,s,y,_){for(s-=4;b<s;){for(;L(f,b,y)<=_;)b+=4;for(;L(f,s,y)>_;)s-=4;if(b>=s)break;let A=u[b>>2];u[b>>2]=u[s>>2],u[s>>2]=A,b+=4,s-=4;}for(;L(f,b,y)>_;)b-=4;return b+4}function L(f,u,b){return f[u]*b[0]+f[u+1]*b[1]+f[u+2]*b[2]+f[u+3]*b[3]}function R(f,u,b){let s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=[0,0,0,0],_=b-u>>2;for(let A=u;A<b;A+=4){let T=f[A]*.00392156862745098,m=f[A+1]*(1/255),d=f[A+2]*(1/255),P=f[A+3]*(1/255);y[0]+=T,y[1]+=m,y[2]+=d,y[3]+=P,s[0]+=T*T,s[1]+=T*m,s[2]+=T*d,s[3]+=T*P,s[5]+=m*m,s[6]+=m*d,s[7]+=m*P,s[10]+=d*d,s[11]+=d*P,s[15]+=P*P;}return s[4]=s[1],s[8]=s[2],s[9]=s[6],s[12]=s[3],s[13]=s[7],s[14]=s[11],{R:s,m:y,N:_}}function p(f){let{R:u}=f,{m:b}=f,{N:s}=f,y=b[0],_=b[1],A=b[2],T=b[3],m=s==0?0:1/s,d=[u[0]-y*y*m,u[1]-y*_*m,u[2]-y*A*m,u[3]-y*T*m,u[4]-_*y*m,u[5]-_*_*m,u[6]-_*A*m,u[7]-_*T*m,u[8]-A*y*m,u[9]-A*_*m,u[10]-A*A*m,u[11]-A*T*m,u[12]-T*y*m,u[13]-T*_*m,u[14]-T*A*m,u[15]-T*T*m],P=d,U=O,x=[Math.random(),Math.random(),Math.random(),Math.random()],N=0,D=0;if(s!=0)for(let k=0;k<16&&(x=U.multVec(P,x),D=Math.sqrt(U.dot(x,x)),x=U.sml(1/D,x),!(k!=0&&Math.abs(D-N)<1e-9));k++)N=D;let Q=[y*m,_*m,A*m,T*m];return {Cov:d,q:Q,e:x,L:N,eMq255:U.dot(U.sml(255,Q),x),eMq:U.dot(x,Q),rgba:(Math.round(255*Q[3])<<24|Math.round(255*Q[2])<<16|Math.round(255*Q[1])<<8|Math.round(255*Q[0])<<0)>>>0}}var O={multVec:(f,u)=>[f[0]*u[0]+f[1]*u[1]+f[2]*u[2]+f[3]*u[3],f[4]*u[0]+f[5]*u[1]+f[6]*u[2]+f[7]*u[3],f[8]*u[0]+f[9]*u[1]+f[10]*u[2]+f[11]*u[3],f[12]*u[0]+f[13]*u[1]+f[14]*u[2]+f[15]*u[3]],dot:(f,u)=>f[0]*u[0]+f[1]*u[1]+f[2]*u[2]+f[3]*u[3],sml:(f,u)=>[f*u[0],f*u[1],f*u[2],f*u[3]]};pe.encode=function(u,b,s,y,_,A,T){y==null&&(y=0),T==null&&(T=false);let m=o(u,b,s,y,[false,false,false,0,T,false]);return E(m,-1),v(m,b,s,_,A)},pe.encodeLL=function(u,b,s,y,_,A,T,m){let d={ctype:0+(y==1?0:2)+(_==0?0:4),depth:A,frames:[]},P=(y+_)*A,U=P*b;for(let x=0;x<u.length;x++)d.frames.push({rect:{x:0,y:0,width:b,height:s},img:new Uint8Array(u[x]),blend:0,dispose:1,bpp:Math.ceil(P/8),bpl:Math.ceil(U/8)});return E(d,0,true),v(d,b,s,T,m)},pe.encode.compress=o,pe.encode.dither=c,pe.quantize=C,pe.quantize.getKDtree=M,pe.quantize.getNearest=I;})();var It={toArrayBuffer(i,r){let S=i.width,l=i.height,e=S<<2,t=i.getContext("2d").getImageData(0,0,S,l),g=new Uint32Array(t.data.buffer),c=(32*S+31)/32<<2,v=c*l,E=122+v,o=new ArrayBuffer(E),a=new DataView(o),n=1<<20,h,w,C,M,I=n,H=0,B=0,L=0;function R(f){a.setUint16(B,f,true),B+=2;}function p(f){a.setUint32(B,f,true),B+=4;}function O(f){B+=f;}R(19778),p(E),O(4),p(122),p(108),p(S),p(-l>>>0),R(1),R(32),p(3),p(v),p(2835),p(2835),O(8),p(16711680),p(65280),p(255),p(4278190080),p(1466527264),function f(){for(;H<l&&I>0;){for(M=122+H*c,h=0;h<e;)I--,w=g[L++],C=w>>>24,a.setUint32(M+h,w<<8|C),h+=4;H++;}L<g.length?(I=n,setTimeout(f,It._dly)):r(o);}();},toBlob(i,r){this.toArrayBuffer(i,S=>{r(new Blob([S],{type:"image/bmp"}));});},_dly:9},fe={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},Un={[fe.CHROME]:16384,[fe.FIREFOX]:11180,[fe.DESKTOP_SAFARI]:16384,[fe.IE]:8192,[fe.IOS]:4096,[fe.ETC]:8192},et=typeof globalThis.window<"u",Rt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,We=et&&globalThis.window.cordova&&globalThis.window.cordova.require&&globalThis.window.cordova.require("cordova/modulemapper"),On=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"File")||typeof File<"u"&&File),Ct=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"FileReader")||typeof globalThis.FileReader<"u"&&globalThis.FileReader);function tt(i,r,S=Date.now()){return new Promise(l=>{let e=i.split(","),t=e[0].match(/:(.*?);/)[1],g=globalThis.atob(e[1]),c=g.length,v=new Uint8Array(c);for(;c--;)v[c]=g.charCodeAt(c);let E=new Blob([v],{type:t});E.name=r,E.lastModified=S,l(E);})}function Ut(i){return new Promise((r,S)=>{let l=new Ct;l.onload=()=>r(l.result),l.onerror=e=>S(e),l.readAsDataURL(i);})}function Ot(i){return new Promise((r,S)=>{let l=new globalThis.Image;l.onload=()=>r(l),l.onerror=e=>S(e),l.src=i;})}function Ue(){if(Ue.cachedResult!==void 0)return Ue.cachedResult;let i=fe.ETC,{userAgent:r}=navigator;return /Chrom(e|ium)/i.test(r)?i=fe.CHROME:/iP(ad|od|hone)/i.test(r)&&/WebKit/i.test(r)?i=fe.IOS:/Safari/i.test(r)?i=fe.DESKTOP_SAFARI:/Firefox/i.test(r)?i=fe.FIREFOX:(/MSIE/i.test(r)||globalThis.document.documentMode)&&(i=fe.IE),Ue.cachedResult=i,Ue.cachedResult}function xt(i,r){let S=Ue(),l=Un[S],e=i,t=r,g=e*t,c=e>t?t/e:e/t;for(;g>l*l;){let v=(l+e)/2,E=(l+t)/2;v<E?(t=E,e=E*c):(t=v*c,e=v),g=e*t;}return {width:e,height:t}}function Ve(i,r){let S,l;try{if(S=new OffscreenCanvas(i,r),l=S.getContext("2d"),l===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{S=globalThis.document.createElement("canvas"),l=S.getContext("2d");}return S.width=i,S.height=r,[S,l]}function Pt(i,r){let{width:S,height:l}=xt(i.width,i.height),[e,t]=Ve(S,l);return r&&/jpe?g/.test(r)&&(t.fillStyle="white",t.fillRect(0,0,e.width,e.height)),t.drawImage(i,0,0,e.width,e.height),e}function Qe(){return Qe.cachedResult!==void 0||(Qe.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof globalThis.document<"u"&&"ontouchend"in globalThis.document),Qe.cachedResult}function ze(i,r={}){return new Promise(function(S,l){let e,t;var g=function(){try{return t=Pt(e,r.fileType||i.type),S([e,t])}catch(v){return l(v)}},c=function(v){try{var E=function(o){try{throw o}catch(a){return l(a)}};try{let o;return Ut(i).then(function(a){try{return o=a,Ot(o).then(function(n){try{return e=n,function(){try{return g()}catch(h){return l(h)}}()}catch(h){return E(h)}},E)}catch(n){return E(n)}},E)}catch(o){E(o);}}catch(o){return l(o)}};try{if(Qe()||[fe.DESKTOP_SAFARI,fe.MOBILE_SAFARI].includes(Ue()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(i).then(function(v){try{return e=v,g()}catch{return c()}},c)}catch{c();}})}function Ge(i,r,S,l,e=1){return new Promise(function(t,g){let c;if(r==="image/png"){let a,n,h;return a=i.getContext("2d"),{data:n}=a.getImageData(0,0,i.width,i.height),h=pe.encode([n.buffer],i.width,i.height,4096*e),c=new Blob([h],{type:r}),c.name=S,c.lastModified=l,v.call(this)}{let a=function(){return v.call(this)};if(r==="image/bmp")return new Promise(n=>It.toBlob(i,n)).then(function(n){try{return c=n,c.name=S,c.lastModified=l,a.call(this)}catch(h){return g(h)}}.bind(this),g);{let n=function(){return a.call(this)};if(typeof OffscreenCanvas=="function"&&i instanceof OffscreenCanvas)return i.convertToBlob({type:r,quality:e}).then(function(h){try{return c=h,c.name=S,c.lastModified=l,n.call(this)}catch(w){return g(w)}}.bind(this),g);{let h;return h=i.toDataURL(r,e),tt(h,S,l).then(function(w){try{return c=w,n.call(this)}catch(C){return g(C)}}.bind(this),g)}}}function v(){return t(c)}})}function ye(i){i.width=0,i.height=0;}function Pe(){return new Promise(function(i,r){let l,e,t,g;return Pe.cachedResult!==void 0?i(Pe.cachedResult):(tt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(c){try{return l=c,ze(l).then(function(v){try{return e=v[1],Ge(e,l.type,l.name,l.lastModified).then(function(E){try{return t=E,ye(e),ze(t).then(function(o){try{return g=o[0],Pe.cachedResult=g.width===1&&g.height===2,i(Pe.cachedResult)}catch(a){return r(a)}},r)}catch(o){return r(o)}},r)}catch(E){return r(E)}},r)}catch(v){return r(v)}},r))})}function Mt(i){return new Promise((r,S)=>{let l=new Ct;l.onload=e=>{let t=new DataView(e.target.result);if(t.getUint16(0,false)!=65496)return r(-2);let g=t.byteLength,c=2;for(;c<g;){if(t.getUint16(c+2,false)<=8)return r(-1);let v=t.getUint16(c,false);if(c+=2,v==65505){if(t.getUint32(c+=2,false)!=1165519206)return r(-1);let E=t.getUint16(c+=6,false)==18761;c+=t.getUint32(c+4,E);let o=t.getUint16(c,E);c+=2;for(let a=0;a<o;a++)if(t.getUint16(c+12*a,E)==274)return r(t.getUint16(c+12*a+8,E))}else {if((65280&v)!=65280)break;c+=t.getUint16(c,false);}}return r(-1)},l.onerror=e=>S(e),l.readAsArrayBuffer(i);})}function Lt(i,r){let{width:S}=i,{height:l}=i,{maxWidthOrHeight:e}=r,t,g=i;return isFinite(e)&&(S>e||l>e)&&([g,t]=Ve(S,l),S>l?(g.width=e,g.height=l/S*e):(g.width=S/l*e,g.height=e),t.drawImage(i,0,0,g.width,g.height),ye(i)),g}function Dt(i,r){let{width:S}=i,{height:l}=i,[e,t]=Ve(S,l);switch(r>4&&r<9?(e.width=l,e.height=S):(e.width=S,e.height=l),r){case 2:t.transform(-1,0,0,1,S,0);break;case 3:t.transform(-1,0,0,-1,S,l);break;case 4:t.transform(1,0,0,-1,0,l);break;case 5:t.transform(0,1,1,0,0,0);break;case 6:t.transform(0,1,-1,0,l,0);break;case 7:t.transform(0,-1,-1,0,l,S);break;case 8:t.transform(0,-1,1,0,0,S);}return t.drawImage(i,0,0,S,l),ye(i),e}function St(i,r,S=0){return new Promise(function(l,e){let t,g,c,v,E,o,a,n,h,w,C,M,I,H,B,L,R,p,O,f;function u(s=5){if(r.signal&&r.signal.aborted)throw r.signal.reason;t+=s,r.onProgress(Math.min(t,100));}function b(s){if(r.signal&&r.signal.aborted)throw r.signal.reason;t=Math.min(Math.max(s,t),100),r.onProgress(t);}return t=S,g=r.maxIteration||10,c=1024*r.maxSizeMB*1024,u(),ze(i,r).then(function(s){try{return [,v]=s,u(),E=Lt(v,r),u(),new Promise(function(y,_){var A;if(!(A=r.exifOrientation))return Mt(i).then(function(m){try{return A=m,T.call(this)}catch(d){return _(d)}}.bind(this),_);function T(){return y(A)}return T.call(this)}).then(function(y){try{return o=y,u(),Pe().then(function(_){try{return a=_?E:Dt(E,o),u(),n=r.initialQuality||1,h=r.fileType||i.type,Ge(a,h,i.name,i.lastModified,n).then(function(A){try{{let P=function(){if(g--&&(B>c||B>I)){let x,N;return x=f?.95*O.width:O.width,N=f?.95*O.height:O.height,[R,p]=Ve(x,N),p.drawImage(O,0,0,x,N),n*=h==="image/png"?.85:.95,Ge(R,h,i.name,i.lastModified,n).then(function(D){try{return L=D,ye(O),O=R,B=L.size,b(Math.min(99,Math.floor((H-B)/(H-c)*100))),P}catch(Q){return e(Q)}},e)}return [1]},U=function(){return ye(O),ye(R),ye(E),ye(a),ye(v),b(100),l(L)};var m=P,d=U;if(w=A,u(),C=w.size>c,M=w.size>i.size,!C&&!M)return b(100),l(w);var T;return I=i.size,H=w.size,B=H,O=a,f=!r.alwaysKeepResolution&&C,(T=function(x){for(;x;){if(x.then)return void x.then(T,e);try{if(x.pop){if(x.length)return x.pop()?U.call(this):x;x=P;}else x=x.call(this);}catch(N){return e(N)}}}.bind(this))(P)}}catch(P){return e(P)}}.bind(this),e)}catch(A){return e(A)}}.bind(this),e)}catch(_){return e(_)}}.bind(this),e)}catch(y){return e(y)}}.bind(this),e)})}var xn=`
5
+ `+r.prev}function qe(i,r){var S=ft(i),l=[];if(S){l.length=i.length;for(var e=0;e<i.length;e++)l[e]=we(i,e)?r(i[e],i):"";}var t=typeof at=="function"?at(i):[],p;if(Me){p={};for(var c=0;c<t.length;c++)p["$"+t[c]]=t[c];}for(var v in i)we(i,v)&&(S&&String(Number(v))===v&&v<i.length||Me&&p["$"+v]instanceof Symbol||(Yt.call(/[^\w$]/,v)?l.push(r(v,i)+": "+r(i[v],i)):l.push(v+": "+r(i[v],i))));if(typeof at=="function")for(var E=0;E<t.length;E++)Jt.call(i,t[E])&&l.push("["+r(t[E])+"]: "+r(i[t[E]],i));return l}});function Tn(i,r){return r.forEach((function(S){S&&typeof S!="string"&&!Array.isArray(S)&&Object.keys(S).forEach((function(l){if(l!=="default"&&!(l in i)){var e=Object.getOwnPropertyDescriptor(S,l);Object.defineProperty(i,l,e.get?e:{enumerable:true,get:function(){return S[l]}});}}));})),Object.freeze(i)}function Tt(i,r){return new Promise((function(S,l){let e;return In(i).then((function(t){try{return e=t,S(new Blob([r.slice(0,2),e,r.slice(2)],{type:"image/jpeg"}))}catch(p){return l(p)}}),l)}))}var In=i=>new Promise(((r,S)=>{let l=new globalThis.FileReader;l.addEventListener("load",(({target:{result:e}})=>{let t=new DataView(e),p=0;if(t.getUint16(p)!==65496)return S("not a valid JPEG");for(p+=2;;){let c=t.getUint16(p);if(c===65498)break;let v=t.getUint16(p+2);if(c===65505&&t.getUint32(p+4)===1165519206){let E=p+10,o;switch(t.getUint16(E)){case 18761:o=true;break;case 19789:o=false;break;default:return S("TIFF header contains invalid endian")}if(t.getUint16(E+2,o)!==42)return S("TIFF header contains invalid version");let a=t.getUint32(E+4,o),n=E+a+2+12*t.getUint16(E+a,o);for(let h=E+a+2;h<n;h+=12)if(t.getUint16(h,o)==274){if(t.getUint16(h+2,o)!==3)return S("Orientation data type is invalid");if(t.getUint32(h+4,o)!==1)return S("Orientation data count is invalid");t.setUint16(h+8,1,o);break}return r(e.slice(p,p+2+v))}p+=2+v;}return r(new Blob)})),l.readAsArrayBuffer(i);})),$e={},Rn={get exports(){return $e},set exports(i){$e=i;}};(function(i){var r,S,l={};Rn.exports=l,l.parse=function(e,t){for(var p=l.bin.readUshort,c=l.bin.readUint,v=0,E={},o=new Uint8Array(e),a=o.length-4;c(o,a)!=101010256;)a--;v=a,v+=4;var n=p(o,v+=4);p(o,v+=2);var h=c(o,v+=2),w=c(o,v+=4);v+=4,v=w;for(var C=0;C<n;C++){c(o,v),v+=4,v+=4,v+=4,c(o,v+=4),h=c(o,v+=4);var M=c(o,v+=4),I=p(o,v+=4),B=p(o,v+2),k=p(o,v+4);v+=6;var L=c(o,v+=8);v+=4,v+=I+B+k,l._readLocal(o,L,E,h,M,t);}return E},l._readLocal=function(e,t,p,c,v,E){var o=l.bin.readUshort,a=l.bin.readUint;a(e,t),o(e,t+=4),o(e,t+=2);var n=o(e,t+=2);a(e,t+=2),a(e,t+=4),t+=4;var h=o(e,t+=8),w=o(e,t+=2);t+=2;var C=l.bin.readUTF8(e,t,h);if(t+=h,t+=w,E)p[C]={size:v,csize:c};else {var M=new Uint8Array(e.buffer,t);if(n==0)p[C]=new Uint8Array(M.buffer.slice(t,t+c));else {if(n!=8)throw "unknown compression method: "+n;var I=new Uint8Array(v);l.inflateRaw(M,I),p[C]=I;}}},l.inflateRaw=function(e,t){return l.F.inflate(e,t)},l.inflate=function(e,t){return e[0],e[1],l.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},l.deflate=function(e,t){t==null&&(t={level:6});var p=0,c=new Uint8Array(50+Math.floor(1.1*e.length));c[p]=120,c[p+1]=156,p+=2,p=l.F.deflateRaw(e,c,p,t.level);var v=l.adler(e,0,e.length);return c[p+0]=v>>>24&255,c[p+1]=v>>>16&255,c[p+2]=v>>>8&255,c[p+3]=v>>>0&255,new Uint8Array(c.buffer,0,p+4)},l.deflateRaw=function(e,t){t==null&&(t={level:6});var p=new Uint8Array(50+Math.floor(1.1*e.length)),c=l.F.deflateRaw(e,p,c,t.level);return new Uint8Array(p.buffer,0,c)},l.encode=function(e,t){t==null&&(t=false);var p=0,c=l.bin.writeUint,v=l.bin.writeUshort,E={};for(var o in e){var a=!l._noNeed(o)&&!t,n=e[o],h=l.crc.crc(n,0,n.length);E[o]={cpr:a,usize:n.length,crc:h,file:a?l.deflateRaw(n):n};}for(var o in E)p+=E[o].file.length+30+46+2*l.bin.sizeUTF8(o);p+=22;var w=new Uint8Array(p),C=0,M=[];for(var o in E){var I=E[o];M.push(C),C=l._writeHeader(w,C,o,I,0);}var B=0,k=C;for(var o in E)I=E[o],M.push(C),C=l._writeHeader(w,C,o,I,1,M[B++]);var L=C-k;return c(w,C,101010256),C+=4,v(w,C+=4,B),v(w,C+=2,B),c(w,C+=2,L),c(w,C+=4,k),C+=4,C+=2,w.buffer},l._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return "png,jpg,jpeg,zip".indexOf(t)!=-1},l._writeHeader=function(e,t,p,c,v,E){var o=l.bin.writeUint,a=l.bin.writeUshort,n=c.file;return o(e,t,v==0?67324752:33639248),t+=4,v==1&&(t+=2),a(e,t,20),a(e,t+=2,0),a(e,t+=2,c.cpr?8:0),o(e,t+=2,0),o(e,t+=4,c.crc),o(e,t+=4,n.length),o(e,t+=4,c.usize),a(e,t+=4,l.bin.sizeUTF8(p)),a(e,t+=2,0),t+=2,v==1&&(t+=2,t+=2,o(e,t+=6,E),t+=4),t+=l.bin.writeUTF8(e,t,p),v==0&&(e.set(n,t),t+=n.length),t},l.crc={table:(function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var p=t,c=0;c<8;c++)1&p?p=3988292384^p>>>1:p>>>=1;e[t]=p;}return e})(),update:function(e,t,p,c){for(var v=0;v<c;v++)e=l.crc.table[255&(e^t[p+v])]^e>>>8;return e},crc:function(e,t,p){return 4294967295^l.crc.update(4294967295,e,t,p)}},l.adler=function(e,t,p){for(var c=1,v=0,E=t,o=t+p;E<o;){for(var a=Math.min(E+5552,o);E<a;)v+=c+=e[E++];c%=65521,v%=65521;}return v<<16|c},l.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,p){e[t]=255&p,e[t+1]=p>>8&255;},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,p){e[t]=255&p,e[t+1]=p>>8&255,e[t+2]=p>>16&255,e[t+3]=p>>24&255;},readASCII:function(e,t,p){for(var c="",v=0;v<p;v++)c+=String.fromCharCode(e[t+v]);return c},writeASCII:function(e,t,p){for(var c=0;c<p.length;c++)e[t+c]=p.charCodeAt(c);},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,p){for(var c,v="",E=0;E<p;E++)v+="%"+l.bin.pad(e[t+E].toString(16));try{c=decodeURIComponent(v);}catch{return l.bin.readASCII(e,t,p)}return c},writeUTF8:function(e,t,p){for(var c=p.length,v=0,E=0;E<c;E++){var o=p.charCodeAt(E);if((4294967168&o)==0)e[t+v]=o,v++;else if((4294965248&o)==0)e[t+v]=192|o>>6,e[t+v+1]=128|o>>0&63,v+=2;else if((4294901760&o)==0)e[t+v]=224|o>>12,e[t+v+1]=128|o>>6&63,e[t+v+2]=128|o>>0&63,v+=3;else {if((4292870144&o)!=0)throw "e";e[t+v]=240|o>>18,e[t+v+1]=128|o>>12&63,e[t+v+2]=128|o>>6&63,e[t+v+3]=128|o>>0&63,v+=4;}}return v},sizeUTF8:function(e){for(var t=e.length,p=0,c=0;c<t;c++){var v=e.charCodeAt(c);if((4294967168&v)==0)p++;else if((4294965248&v)==0)p+=2;else if((4294901760&v)==0)p+=3;else {if((4292870144&v)!=0)throw "e";p+=4;}}return p}},l.F={},l.F.deflateRaw=function(e,t,p,c){var v=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][c],E=l.F.U,o=l.F._goodIndex;l.F._hash;var a=l.F._putsE,n=0,h=p<<3,w=0,C=e.length;if(c==0){for(;n<C;)a(t,h,n+(s=Math.min(65535,C-n))==C?1:0),h=l.F._copyExact(e,n,s,t,h+8),n+=s;return h>>>3}var M=E.lits,I=E.strt,B=E.prev,k=0,L=0,R=0,g=0,U=0,f=0;for(C>2&&(I[f=l.F._hash(e,0)]=0),n=0;n<C;n++){if(U=f,n+1<C-2){f=l.F._hash(e,n+1);var u=n+1&32767;B[u]=I[f],I[f]=u;}if(w<=n){(k>14e3||L>26697)&&C-n>100&&(w<n&&(M[k]=n-w,k+=2,w=n),h=l.F._writeBlock(n==C-1||w==C?1:0,M,k,g,e,R,n-R,t,h),k=L=g=0,R=n);var b=0;n<C-2&&(b=l.F._bestMatch(e,n,B,U,Math.min(v[2],C-n),v[3]));var s=b>>>16,y=65535&b;if(b!=0){y=65535&b;var _=o(s=b>>>16,E.of0);E.lhst[257+_]++;var A=o(y,E.df0);E.dhst[A]++,g+=E.exb[_]+E.dxb[A],M[k]=s<<23|n-w,M[k+1]=y<<16|_<<8|A,k+=2,w=n+s;}else E.lhst[e[n]]++;L++;}}for(R==n&&e.length!=0||(w<n&&(M[k]=n-w,k+=2,w=n),h=l.F._writeBlock(1,M,k,g,e,R,n-R,t,h),k=0,L=0,k=L=g=0,R=n);(7&h)!=0;)h++;return h>>>3},l.F._bestMatch=function(e,t,p,c,v,E){var o=32767&t,a=p[o],n=o-a+32768&32767;if(a==o||c!=l.F._hash(e,t-n))return 0;for(var h=0,w=0,C=Math.min(32767,t);n<=C&&--E!=0&&a!=o;){if(h==0||e[t+h]==e[t+h-n]){var M=l.F._howLong(e,t,n);if(M>h){if(w=n,(h=M)>=v)break;n+2<M&&(M=n+2);for(var I=0,B=0;B<M-2;B++){var k=t-n+B+32768&32767,L=k-p[k]+32768&32767;L>I&&(I=L,a=k);}}}n+=(o=a)-(a=p[o])+32768&32767;}return h<<16|w},l.F._howLong=function(e,t,p){if(e[t]!=e[t-p]||e[t+1]!=e[t+1-p]||e[t+2]!=e[t+2-p])return 0;var c=t,v=Math.min(e.length,t+258);for(t+=3;t<v&&e[t]==e[t-p];)t++;return t-c},l.F._hash=function(e,t){return (e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},l.saved=0,l.F._writeBlock=function(e,t,p,c,v,E,o,a,n){var h,w,C,M,I,B,k,L,R,g=l.F.U,U=l.F._putsF,f=l.F._putsE;g.lhst[256]++,w=(h=l.F.getTrees())[0],C=h[1],M=h[2],I=h[3],B=h[4],k=h[5],L=h[6],R=h[7];var u=32+((n+3&7)==0?0:8-(n+3&7))+(o<<3),b=c+l.F.contSize(g.fltree,g.lhst)+l.F.contSize(g.fdtree,g.dhst),s=c+l.F.contSize(g.ltree,g.lhst)+l.F.contSize(g.dtree,g.dhst);s+=14+3*k+l.F.contSize(g.itree,g.ihst)+(2*g.ihst[16]+3*g.ihst[17]+7*g.ihst[18]);for(var y=0;y<286;y++)g.lhst[y]=0;for(y=0;y<30;y++)g.dhst[y]=0;for(y=0;y<19;y++)g.ihst[y]=0;var _=u<b&&u<s?0:b<s?1:2;if(U(a,n,e),U(a,n+1,_),n+=3,_==0){for(;(7&n)!=0;)n++;n=l.F._copyExact(v,E,o,a,n);}else {var A,T;if(_==1&&(A=g.fltree,T=g.fdtree),_==2){l.F.makeCodes(g.ltree,w),l.F.revCodes(g.ltree,w),l.F.makeCodes(g.dtree,C),l.F.revCodes(g.dtree,C),l.F.makeCodes(g.itree,M),l.F.revCodes(g.itree,M),A=g.ltree,T=g.dtree,f(a,n,I-257),f(a,n+=5,B-1),f(a,n+=5,k-4),n+=4;for(var m=0;m<k;m++)f(a,n+3*m,g.itree[1+(g.ordr[m]<<1)]);n+=3*k,n=l.F._codeTiny(L,g.itree,a,n),n=l.F._codeTiny(R,g.itree,a,n);}for(var d=E,P=0;P<p;P+=2){for(var x=t[P],O=x>>>23,N=d+(8388607&x);d<N;)n=l.F._writeLit(v[d++],A,a,n);if(O!=0){var D=t[P+1],Q=D>>16,H=D>>8&255,F=255&D;f(a,n=l.F._writeLit(257+H,A,a,n),O-g.of0[H]),n+=g.exb[H],U(a,n=l.F._writeLit(F,T,a,n),Q-g.df0[F]),n+=g.dxb[F],d+=O;}}n=l.F._writeLit(256,A,a,n);}return n},l.F._copyExact=function(e,t,p,c,v){var E=v>>>3;return c[E]=p,c[E+1]=p>>>8,c[E+2]=255-c[E],c[E+3]=255-c[E+1],E+=4,c.set(new Uint8Array(e.buffer,t,p),E),v+(p+4<<3)},l.F.getTrees=function(){for(var e=l.F.U,t=l.F._hufTree(e.lhst,e.ltree,15),p=l.F._hufTree(e.dhst,e.dtree,15),c=[],v=l.F._lenCodes(e.ltree,c),E=[],o=l.F._lenCodes(e.dtree,E),a=0;a<c.length;a+=2)e.ihst[c[a]]++;for(a=0;a<E.length;a+=2)e.ihst[E[a]]++;for(var n=l.F._hufTree(e.ihst,e.itree,7),h=19;h>4&&e.itree[1+(e.ordr[h-1]<<1)]==0;)h--;return [t,p,n,v,o,h,c,E]},l.F.getSecond=function(e){for(var t=[],p=0;p<e.length;p+=2)t.push(e[p+1]);return t},l.F.nonZero=function(e){for(var t="",p=0;p<e.length;p+=2)e[p+1]!=0&&(t+=(p>>1)+",");return t},l.F.contSize=function(e,t){for(var p=0,c=0;c<t.length;c++)p+=t[c]*e[1+(c<<1)];return p},l.F._codeTiny=function(e,t,p,c){for(var v=0;v<e.length;v+=2){var E=e[v],o=e[v+1];c=l.F._writeLit(E,t,p,c);var a=E==16?2:E==17?3:7;E>15&&(l.F._putsE(p,c,o,a),c+=a);}return c},l.F._lenCodes=function(e,t){for(var p=e.length;p!=2&&e[p-1]==0;)p-=2;for(var c=0;c<p;c+=2){var v=e[c+1],E=c+3<p?e[c+3]:-1,o=c+5<p?e[c+5]:-1,a=c==0?-1:e[c-1];if(v==0&&E==v&&o==v){for(var n=c+5;n+2<p&&e[n+2]==v;)n+=2;(h=Math.min(n+1-c>>>1,138))<11?t.push(17,h-3):t.push(18,h-11),c+=2*h-2;}else if(v==a&&E==v&&o==v){for(n=c+5;n+2<p&&e[n+2]==v;)n+=2;var h=Math.min(n+1-c>>>1,6);t.push(16,h-3),c+=2*h-2;}else t.push(v,0);}return p>>>1},l.F._hufTree=function(e,t,p){var c=[],v=e.length,E=t.length,o=0;for(o=0;o<E;o+=2)t[o]=0,t[o+1]=0;for(o=0;o<v;o++)e[o]!=0&&c.push({lit:o,f:e[o]});var a=c.length,n=c.slice(0);if(a==0)return 0;if(a==1){var h=c[0].lit;return n=h==0?1:0,t[1+(h<<1)]=1,t[1+(n<<1)]=1,1}c.sort((function(L,R){return L.f-R.f}));var w=c[0],C=c[1],M=0,I=1,B=2;for(c[0]={lit:-1,f:w.f+C.f,l:w,r:C,d:0};I!=a-1;)w=M!=I&&(B==a||c[M].f<c[B].f)?c[M++]:c[B++],C=M!=I&&(B==a||c[M].f<c[B].f)?c[M++]:c[B++],c[I++]={lit:-1,f:w.f+C.f,l:w,r:C};var k=l.F.setDepth(c[I-1],0);for(k>p&&(l.F.restrictDepth(n,p,k),k=p),o=0;o<a;o++)t[1+(n[o].lit<<1)]=n[o].d;return k},l.F.setDepth=function(e,t){return e.lit!=-1?(e.d=t,t):Math.max(l.F.setDepth(e.l,t+1),l.F.setDepth(e.r,t+1))},l.F.restrictDepth=function(e,t,p){var c=0,v=1<<p-t,E=0;for(e.sort((function(a,n){return n.d==a.d?a.f-n.f:n.d-a.d})),c=0;c<e.length&&e[c].d>t;c++){var o=e[c].d;e[c].d=t,E+=v-(1<<p-o);}for(E>>>=p-t;E>0;)(o=e[c].d)<t?(e[c].d++,E-=1<<t-o-1):c++;for(;c>=0;c--)e[c].d==t&&E<0&&(e[c].d--,E++);E!=0&&console.log("debt left");},l.F._goodIndex=function(e,t){var p=0;return t[16|p]<=e&&(p|=16),t[8|p]<=e&&(p|=8),t[4|p]<=e&&(p|=4),t[2|p]<=e&&(p|=2),t[1|p]<=e&&(p|=1),p},l.F._writeLit=function(e,t,p,c){return l.F._putsF(p,c,t[e<<1]),c+t[1+(e<<1)]},l.F.inflate=function(e,t){var p=Uint8Array;if(e[0]==3&&e[1]==0)return t||new p(0);var c=l.F,v=c._bitsF,E=c._bitsE,o=c._decodeTiny,a=c.makeCodes,n=c.codes2map,h=c._get17,w=c.U,C=t==null;C&&(t=new p(e.length>>>2<<3));for(var M,I,B=0,k=0,L=0,R=0,g=0,U=0,f=0,u=0,b=0;B==0;)if(B=v(e,b,1),k=v(e,b+1,2),b+=3,k!=0){if(C&&(t=l.F._check(t,u+(1<<17))),k==1&&(M=w.flmap,I=w.fdmap,U=511,f=31),k==2){L=E(e,b,5)+257,R=E(e,b+5,5)+1,g=E(e,b+10,4)+4,b+=14;for(var s=0;s<38;s+=2)w.itree[s]=0,w.itree[s+1]=0;var y=1;for(s=0;s<g;s++){var _=E(e,b+3*s,3);w.itree[1+(w.ordr[s]<<1)]=_,_>y&&(y=_);}b+=3*g,a(w.itree,y),n(w.itree,y,w.imap),M=w.lmap,I=w.dmap,b=o(w.imap,(1<<y)-1,L+R,e,b,w.ttree);var A=c._copyOut(w.ttree,0,L,w.ltree);U=(1<<A)-1;var T=c._copyOut(w.ttree,L,R,w.dtree);f=(1<<T)-1,a(w.ltree,A),n(w.ltree,A,M),a(w.dtree,T),n(w.dtree,T,I);}for(;;){var m=M[h(e,b)&U];b+=15&m;var d=m>>>4;if(!(d>>>8))t[u++]=d;else {if(d==256)break;var P=u+d-254;if(d>264){var x=w.ldef[d-257];P=u+(x>>>3)+E(e,b,7&x),b+=7&x;}var O=I[h(e,b)&f];b+=15&O;var N=O>>>4,D=w.ddef[N],Q=(D>>>4)+v(e,b,15&D);for(b+=15&D,C&&(t=l.F._check(t,u+(1<<17)));u<P;)t[u]=t[u++-Q],t[u]=t[u++-Q],t[u]=t[u++-Q],t[u]=t[u++-Q];u=P;}}}else {(7&b)!=0&&(b+=8-(7&b));var H=4+(b>>>3),F=e[H-4]|e[H-3]<<8;C&&(t=l.F._check(t,u+F)),t.set(new p(e.buffer,e.byteOffset+H,F),u),b=H+F<<3,u+=F;}return t.length==u?t:t.slice(0,u)},l.F._check=function(e,t){var p=e.length;if(t<=p)return e;var c=new Uint8Array(Math.max(p<<1,t));return c.set(e,0),c},l.F._decodeTiny=function(e,t,p,c,v,E){for(var o=l.F._bitsE,a=l.F._get17,n=0;n<p;){var h=e[a(c,v)&t];v+=15&h;var w=h>>>4;if(w<=15)E[n]=w,n++;else {var C=0,M=0;w==16?(M=3+o(c,v,2),v+=2,C=E[n-1]):w==17?(M=3+o(c,v,3),v+=3):w==18&&(M=11+o(c,v,7),v+=7);for(var I=n+M;n<I;)E[n]=C,n++;}}return v},l.F._copyOut=function(e,t,p,c){for(var v=0,E=0,o=c.length>>>1;E<p;){var a=e[E+t];c[E<<1]=0,c[1+(E<<1)]=a,a>v&&(v=a),E++;}for(;E<o;)c[E<<1]=0,c[1+(E<<1)]=0,E++;return v},l.F.makeCodes=function(e,t){for(var p,c,v,E,o=l.F.U,a=e.length,n=o.bl_count,h=0;h<=t;h++)n[h]=0;for(h=1;h<a;h+=2)n[e[h]]++;var w=o.next_code;for(p=0,n[0]=0,c=1;c<=t;c++)p=p+n[c-1]<<1,w[c]=p;for(v=0;v<a;v+=2)(E=e[v+1])!=0&&(e[v]=w[E],w[E]++);},l.F.codes2map=function(e,t,p){for(var c=e.length,v=l.F.U.rev15,E=0;E<c;E+=2)if(e[E+1]!=0)for(var o=E>>1,a=e[E+1],n=o<<4|a,h=t-a,w=e[E]<<h,C=w+(1<<h);w!=C;)p[v[w]>>>15-t]=n,w++;},l.F.revCodes=function(e,t){for(var p=l.F.U.rev15,c=15-t,v=0;v<e.length;v+=2){var E=e[v]<<t-e[v+1];e[v]=p[E]>>>c;}},l.F._putsE=function(e,t,p){p<<=7&t;var c=t>>>3;e[c]|=p,e[c+1]|=p>>>8;},l.F._putsF=function(e,t,p){p<<=7&t;var c=t>>>3;e[c]|=p,e[c+1]|=p>>>8,e[c+2]|=p>>>16;},l.F._bitsE=function(e,t,p){return (e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<p)-1},l.F._bitsF=function(e,t,p){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<p)-1},l.F._get17=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},l.F._get25=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},l.F.U=(r=Uint16Array,S=Uint32Array,{next_code:new r(16),bl_count:new r(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[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,999,999,999],exb:[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],ldef:new r(32),df0:[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,65535,65535],dxb:[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],ddef:new S(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new S(286),dhst:new S(30),ihst:new S(19),lits:new S(15e3),strt:new r(65536),prev:new r(32768)}),(function(){for(var e=l.F.U,t=0;t<32768;t++){var p=t;p=(4278255360&(p=(4042322160&(p=(3435973836&(p=(2863311530&p)>>>1|(1431655765&p)<<1))>>>2|(858993459&p)<<2))>>>4|(252645135&p)<<4))>>>8|(16711935&p)<<8,e.rev15[t]=(p>>>16|p<<16)>>>17;}function c(v,E,o){for(;E--!=0;)v.push(0,o);}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];c(e.fltree,144,8),c(e.fltree,112,9),c(e.fltree,24,7),c(e.fltree,8,8),l.F.makeCodes(e.fltree,9),l.F.codes2map(e.fltree,9,e.flmap),l.F.revCodes(e.fltree,9),c(e.fdtree,32,5),l.F.makeCodes(e.fdtree,5),l.F.codes2map(e.fdtree,5,e.fdmap),l.F.revCodes(e.fdtree,5),c(e.itree,19,0),c(e.ltree,286,0),c(e.dtree,30,0),c(e.ttree,320,0);})();})();var Cn=Tn({__proto__:null,default:$e},[$e]),pe=(function(){var i={nextZero(o,a){for(;o[a]!=0;)a++;return a},readUshort:(o,a)=>o[a]<<8|o[a+1],writeUshort(o,a,n){o[a]=n>>8&255,o[a+1]=255&n;},readUint:(o,a)=>16777216*o[a]+(o[a+1]<<16|o[a+2]<<8|o[a+3]),writeUint(o,a,n){o[a]=n>>24&255,o[a+1]=n>>16&255,o[a+2]=n>>8&255,o[a+3]=255&n;},readASCII(o,a,n){let h="";for(let w=0;w<n;w++)h+=String.fromCharCode(o[a+w]);return h},writeASCII(o,a,n){for(let h=0;h<n.length;h++)o[a+h]=n.charCodeAt(h);},readBytes(o,a,n){let h=[];for(let w=0;w<n;w++)h.push(o[a+w]);return h},pad:o=>o.length<2?`0${o}`:o,readUTF8(o,a,n){let h,w="";for(let C=0;C<n;C++)w+=`%${i.pad(o[a+C].toString(16))}`;try{h=decodeURIComponent(w);}catch{return i.readASCII(o,a,n)}return h}};function r(o,a,n,h){let w=a*n,C=t(h),M=Math.ceil(a*C/8),I=new Uint8Array(4*w),B=new Uint32Array(I.buffer),{ctype:k}=h,{depth:L}=h,R=i.readUshort;if(k==6){let x=w<<2;if(L==8)for(var g=0;g<x;g+=4)I[g]=o[g],I[g+1]=o[g+1],I[g+2]=o[g+2],I[g+3]=o[g+3];if(L==16)for(g=0;g<x;g++)I[g]=o[g<<1];}else if(k==2){let x=h.tabs.tRNS;if(x==null){if(L==8)for(g=0;g<w;g++){var U=3*g;B[g]=255<<24|o[U+2]<<16|o[U+1]<<8|o[U];}if(L==16)for(g=0;g<w;g++)U=6*g,B[g]=255<<24|o[U+4]<<16|o[U+2]<<8|o[U];}else {var f=x[0];let O=x[1],N=x[2];if(L==8)for(g=0;g<w;g++){var u=g<<2;U=3*g,B[g]=255<<24|o[U+2]<<16|o[U+1]<<8|o[U],o[U]==f&&o[U+1]==O&&o[U+2]==N&&(I[u+3]=0);}if(L==16)for(g=0;g<w;g++)u=g<<2,U=6*g,B[g]=255<<24|o[U+4]<<16|o[U+2]<<8|o[U],R(o,U)==f&&R(o,U+2)==O&&R(o,U+4)==N&&(I[u+3]=0);}}else if(k==3){let x=h.tabs.PLTE,O=h.tabs.tRNS,N=O?O.length:0;if(L==1)for(var b=0;b<n;b++){var s=b*M,y=b*a;for(g=0;g<a;g++){u=y+g<<2;var _=3*(A=o[s+(g>>3)]>>7-((7&g)<<0)&1);I[u]=x[_],I[u+1]=x[_+1],I[u+2]=x[_+2],I[u+3]=A<N?O[A]:255;}}if(L==2)for(b=0;b<n;b++)for(s=b*M,y=b*a,g=0;g<a;g++)u=y+g<<2,_=3*(A=o[s+(g>>2)]>>6-((3&g)<<1)&3),I[u]=x[_],I[u+1]=x[_+1],I[u+2]=x[_+2],I[u+3]=A<N?O[A]:255;if(L==4)for(b=0;b<n;b++)for(s=b*M,y=b*a,g=0;g<a;g++)u=y+g<<2,_=3*(A=o[s+(g>>1)]>>4-((1&g)<<2)&15),I[u]=x[_],I[u+1]=x[_+1],I[u+2]=x[_+2],I[u+3]=A<N?O[A]:255;if(L==8)for(g=0;g<w;g++){var A;u=g<<2,_=3*(A=o[g]),I[u]=x[_],I[u+1]=x[_+1],I[u+2]=x[_+2],I[u+3]=A<N?O[A]:255;}}else if(k==4){if(L==8)for(g=0;g<w;g++){u=g<<2;var T=o[m=g<<1];I[u]=T,I[u+1]=T,I[u+2]=T,I[u+3]=o[m+1];}if(L==16)for(g=0;g<w;g++){var m;u=g<<2,T=o[m=g<<2],I[u]=T,I[u+1]=T,I[u+2]=T,I[u+3]=o[m+2];}}else if(k==0)for(f=h.tabs.tRNS?h.tabs.tRNS:-1,b=0;b<n;b++){let x=b*M,O=b*a;if(L==1)for(var d=0;d<a;d++){var P=(T=255*(o[x+(d>>>3)]>>>7-(7&d)&1))==255*f?0:255;B[O+d]=P<<24|T<<16|T<<8|T;}else if(L==2)for(d=0;d<a;d++)P=(T=85*(o[x+(d>>>2)]>>>6-((3&d)<<1)&3))==85*f?0:255,B[O+d]=P<<24|T<<16|T<<8|T;else if(L==4)for(d=0;d<a;d++)P=(T=17*(o[x+(d>>>1)]>>>4-((1&d)<<2)&15))==17*f?0:255,B[O+d]=P<<24|T<<16|T<<8|T;else if(L==8)for(d=0;d<a;d++)P=(T=o[x+d])==f?0:255,B[O+d]=P<<24|T<<16|T<<8|T;else if(L==16)for(d=0;d<a;d++)T=o[x+(d<<1)],P=R(o,x+(d<<1))==f?0:255,B[O+d]=P<<24|T<<16|T<<8|T;}return I}function S(o,a,n,h){let w=t(o),C=Math.ceil(n*w/8),M=new Uint8Array((C+1+o.interlace)*h);return a=o.tabs.CgBI?e(a,M):l(a,M),o.interlace==0?a=p(a,o,0,n,h):o.interlace==1&&(a=(function(B,k){let L=k.width,R=k.height,g=t(k),U=g>>3,f=Math.ceil(L*g/8),u=new Uint8Array(R*f),b=0,s=[0,0,4,0,2,0,1],y=[0,4,0,2,0,1,0],_=[8,8,8,4,4,2,2],A=[8,8,4,4,2,2,1],T=0;for(;T<7;){let d=_[T],P=A[T],x=0,O=0,N=s[T];for(;N<R;)N+=d,O++;let D=y[T];for(;D<L;)D+=P,x++;let Q=Math.ceil(x*g/8);p(B,k,b,x,O);let H=0,F=s[T];for(;F<R;){let $=y[T],K=b+H*Q<<3;for(;$<L;){var m;if(g==1&&(m=(m=B[K>>3])>>7-(7&K)&1,u[F*f+($>>3)]|=m<<7-((7&$)<<0)),g==2&&(m=(m=B[K>>3])>>6-(7&K)&3,u[F*f+($>>2)]|=m<<6-((3&$)<<1)),g==4&&(m=(m=B[K>>3])>>4-(7&K)&15,u[F*f+($>>1)]|=m<<4-((1&$)<<2)),g>=8){let V=F*f+$*U;for(let z=0;z<U;z++)u[V+z]=B[(K>>3)+z];}K+=g,$+=P;}H++,F+=d;}x*O!=0&&(b+=O*(1+Q)),T+=1;}return u})(a,o)),a}function l(o,a){return e(new Uint8Array(o.buffer,2,o.length-6),a)}var e=(function(){let o={H:{}};return o.H.N=function(a,n){let h=Uint8Array,w,C,M=0,I=0,B=0,k=0,L=0,R=0,g=0,U=0,f=0;if(a[0]==3&&a[1]==0)return n||new h(0);let u=o.H,b=u.b,s=u.e,y=u.R,_=u.n,A=u.A,T=u.Z,m=u.m,d=n==null;for(d&&(n=new h(a.length>>>2<<5));M==0;)if(M=b(a,f,1),I=b(a,f+1,2),f+=3,I!=0){if(d&&(n=o.H.W(n,U+(1<<17))),I==1&&(w=m.J,C=m.h,R=511,g=31),I==2){B=s(a,f,5)+257,k=s(a,f+5,5)+1,L=s(a,f+10,4)+4,f+=14;let x=1;for(var P=0;P<38;P+=2)m.Q[P]=0,m.Q[P+1]=0;for(P=0;P<L;P++){let D=s(a,f+3*P,3);m.Q[1+(m.X[P]<<1)]=D,D>x&&(x=D);}f+=3*L,_(m.Q,x),A(m.Q,x,m.u),w=m.w,C=m.d,f=y(m.u,(1<<x)-1,B+k,a,f,m.v);let O=u.V(m.v,0,B,m.C);R=(1<<O)-1;let N=u.V(m.v,B,k,m.D);g=(1<<N)-1,_(m.C,O),A(m.C,O,w),_(m.D,N),A(m.D,N,C);}for(;;){let x=w[T(a,f)&R];f+=15&x;let O=x>>>4;if(!(O>>>8))n[U++]=O;else {if(O==256)break;{let N=U+O-254;if(O>264){let $=m.q[O-257];N=U+($>>>3)+s(a,f,7&$),f+=7&$;}let D=C[T(a,f)&g];f+=15&D;let Q=D>>>4,H=m.c[Q],F=(H>>>4)+b(a,f,15&H);for(f+=15&H;U<N;)n[U]=n[U++-F],n[U]=n[U++-F],n[U]=n[U++-F],n[U]=n[U++-F];U=N;}}}}else {(7&f)!=0&&(f+=8-(7&f));let x=4+(f>>>3),O=a[x-4]|a[x-3]<<8;d&&(n=o.H.W(n,U+O)),n.set(new h(a.buffer,a.byteOffset+x,O),U),f=x+O<<3,U+=O;}return n.length==U?n:n.slice(0,U)},o.H.W=function(a,n){let h=a.length;if(n<=h)return a;let w=new Uint8Array(h<<1);return w.set(a,0),w},o.H.R=function(a,n,h,w,C,M){let I=o.H.e,B=o.H.Z,k=0;for(;k<h;){let L=a[B(w,C)&n];C+=15&L;let R=L>>>4;if(R<=15)M[k]=R,k++;else {let g=0,U=0;R==16?(U=3+I(w,C,2),C+=2,g=M[k-1]):R==17?(U=3+I(w,C,3),C+=3):R==18&&(U=11+I(w,C,7),C+=7);let f=k+U;for(;k<f;)M[k]=g,k++;}}return C},o.H.V=function(a,n,h,w){let C=0,M=0,I=w.length>>>1;for(;M<h;){let B=a[M+n];w[M<<1]=0,w[1+(M<<1)]=B,B>C&&(C=B),M++;}for(;M<I;)w[M<<1]=0,w[1+(M<<1)]=0,M++;return C},o.H.n=function(a,n){let h=o.H.m,w=a.length,C,M,I,B,k=h.j;for(var L=0;L<=n;L++)k[L]=0;for(L=1;L<w;L+=2)k[a[L]]++;let R=h.K;for(C=0,k[0]=0,M=1;M<=n;M++)C=C+k[M-1]<<1,R[M]=C;for(I=0;I<w;I+=2)B=a[I+1],B!=0&&(a[I]=R[B],R[B]++);},o.H.A=function(a,n,h){let w=a.length,C=o.H.m.r;for(let M=0;M<w;M+=2)if(a[M+1]!=0){let I=M>>1,B=a[M+1],k=I<<4|B,L=n-B,R=a[M]<<L,g=R+(1<<L);for(;R!=g;)h[C[R]>>>15-n]=k,R++;}},o.H.l=function(a,n){let h=o.H.m.r,w=15-n;for(let C=0;C<a.length;C+=2){let M=a[C]<<n-a[C+1];a[C]=h[M]>>>w;}},o.H.M=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8;},o.H.I=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8,a[w+2]|=h>>>16;},o.H.e=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8)>>>(7&n)&(1<<h)-1},o.H.b=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)&(1<<h)-1},o.H.Z=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)},o.H.i=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16|a[3+(n>>>3)]<<24)>>>(7&n)},o.H.m=(function(){let a=Uint16Array,n=Uint32Array;return {K:new a(16),j:new a(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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],q:new a(32),p:[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,65535,65535],z:[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],c:new n(32),J:new a(512),_:[],h:new a(32),$:[],w:new a(32768),C:[],v:[],d:new a(32768),D:[],u:new a(512),Q:[],r:new a(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new a(65536),g:new a(32768)}})(),(function(){let a=o.H.m;for(var n=0;n<32768;n++){let w=n;w=(2863311530&w)>>>1|(1431655765&w)<<1,w=(3435973836&w)>>>2|(858993459&w)<<2,w=(4042322160&w)>>>4|(252645135&w)<<4,w=(4278255360&w)>>>8|(16711935&w)<<8,a.r[n]=(w>>>16|w<<16)>>>17;}function h(w,C,M){for(;C--!=0;)w.push(0,M);}for(n=0;n<32;n++)a.q[n]=a.S[n]<<3|a.T[n],a.c[n]=a.p[n]<<4|a.z[n];h(a._,144,8),h(a._,112,9),h(a._,24,7),h(a._,8,8),o.H.n(a._,9),o.H.A(a._,9,a.J),o.H.l(a._,9),h(a.$,32,5),o.H.n(a.$,5),o.H.A(a.$,5,a.h),o.H.l(a.$,5),h(a.Q,19,0),h(a.C,286,0),h(a.D,30,0),h(a.v,320,0);})(),o.H.N})();function t(o){return [1,null,3,1,2,null,4][o.ctype]*o.depth}function p(o,a,n,h,w){let C=t(a),M=Math.ceil(h*C/8),I,B;C=Math.ceil(C/8);let k=o[n],L=0;if(k>1&&(o[n]=[0,0,1][k-2]),k==3)for(L=C;L<M;L++)o[L+1]=o[L+1]+(o[L+1-C]>>>1)&255;for(let R=0;R<w;R++)if(I=n+R*M,B=I+R+1,k=o[B-1],L=0,k==0)for(;L<M;L++)o[I+L]=o[B+L];else if(k==1){for(;L<C;L++)o[I+L]=o[B+L];for(;L<M;L++)o[I+L]=o[B+L]+o[I+L-C];}else if(k==2)for(;L<M;L++)o[I+L]=o[B+L]+o[I+L-M];else if(k==3){for(;L<C;L++)o[I+L]=o[B+L]+(o[I+L-M]>>>1);for(;L<M;L++)o[I+L]=o[B+L]+(o[I+L-M]+o[I+L-C]>>>1);}else {for(;L<C;L++)o[I+L]=o[B+L]+c(0,o[I+L-M],0);for(;L<M;L++)o[I+L]=o[B+L]+c(o[I+L-C],o[I+L-M],o[I+L-C-M]);}return o}function c(o,a,n){let h=o+a-n,w=h-o,C=h-a,M=h-n;return w*w<=C*C&&w*w<=M*M?o:C*C<=M*M?a:n}function v(o,a,n){n.width=i.readUint(o,a),a+=4,n.height=i.readUint(o,a),a+=4,n.depth=o[a],a++,n.ctype=o[a],a++,n.compress=o[a],a++,n.filter=o[a],a++,n.interlace=o[a],a++;}function E(o,a,n,h,w,C,M,I,B){let k=Math.min(a,w),L=Math.min(n,C),R=0,g=0;for(let T=0;T<L;T++)for(let m=0;m<k;m++)if(M>=0&&I>=0?(R=T*a+m<<2,g=(I+T)*w+M+m<<2):(R=(-I+T)*a-M+m<<2,g=T*w+m<<2),B==0)h[g]=o[R],h[g+1]=o[R+1],h[g+2]=o[R+2],h[g+3]=o[R+3];else if(B==1){var U=o[R+3]*.00392156862745098,f=o[R]*U,u=o[R+1]*U,b=o[R+2]*U,s=h[g+3]*(1/255),y=h[g]*s,_=h[g+1]*s,A=h[g+2]*s;let d=1-U,P=U+s*d,x=P==0?0:1/P;h[g+3]=255*P,h[g+0]=(f+y*d)*x,h[g+1]=(u+_*d)*x,h[g+2]=(b+A*d)*x;}else if(B==2)U=o[R+3],f=o[R],u=o[R+1],b=o[R+2],s=h[g+3],y=h[g],_=h[g+1],A=h[g+2],U==s&&f==y&&u==_&&b==A?(h[g]=0,h[g+1]=0,h[g+2]=0,h[g+3]=0):(h[g]=f,h[g+1]=u,h[g+2]=b,h[g+3]=U);else if(B==3){if(U=o[R+3],f=o[R],u=o[R+1],b=o[R+2],s=h[g+3],y=h[g],_=h[g+1],A=h[g+2],U==s&&f==y&&u==_&&b==A)continue;if(U<220&&s>20)return false}return true}return {decode:function(a){let n=new Uint8Array(a),h=8,w=i,C=w.readUshort,M=w.readUint,I={tabs:{},frames:[]},B=new Uint8Array(n.length),k,L=0,R=0,g=[137,80,78,71,13,10,26,10];for(var U=0;U<8;U++)if(n[U]!=g[U])throw "The input is not a PNG file!";for(;h<n.length;){let T=w.readUint(n,h);h+=4;let m=w.readASCII(n,h,4);if(h+=4,m=="IHDR")v(n,h,I);else if(m=="iCCP"){for(var f=h;n[f]!=0;)f++;w.readASCII(n,h,f-h),n[f+1];let d=n.slice(f+2,h+T),P=null;try{P=l(d);}catch{P=e(d);}I.tabs[m]=P;}else if(m=="CgBI")I.tabs[m]=n.slice(h,h+4);else if(m=="IDAT"){for(U=0;U<T;U++)B[L+U]=n[h+U];L+=T;}else if(m=="acTL")I.tabs[m]={num_frames:M(n,h),num_plays:M(n,h+4)},k=new Uint8Array(n.length);else if(m=="fcTL"){R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,k.slice(0,R),A.rect.width,A.rect.height),R=0);let d={x:M(n,h+12),y:M(n,h+16),width:M(n,h+4),height:M(n,h+8)},P=C(n,h+22);P=C(n,h+20)/(P==0?100:P);let x={rect:d,delay:Math.round(1e3*P),dispose:n[h+24],blend:n[h+25]};I.frames.push(x);}else if(m=="fdAT"){for(U=0;U<T-4;U++)k[R+U]=n[h+U+4];R+=T-4;}else if(m=="pHYs")I.tabs[m]=[w.readUint(n,h),w.readUint(n,h+4),n[h+8]];else if(m=="cHRM")for(I.tabs[m]=[],U=0;U<8;U++)I.tabs[m].push(w.readUint(n,h+4*U));else if(m=="tEXt"||m=="zTXt"){I.tabs[m]==null&&(I.tabs[m]={});var u=w.nextZero(n,h),b=w.readASCII(n,h,u-h),s=h+T-u-1;if(m=="tEXt")_=w.readASCII(n,u+1,s);else {var y=l(n.slice(u+2,u+2+s));_=w.readUTF8(y,0,y.length);}I.tabs[m][b]=_;}else if(m=="iTXt"){I.tabs[m]==null&&(I.tabs[m]={}),u=0,f=h,u=w.nextZero(n,f),b=w.readASCII(n,f,u-f);let d=n[f=u+1];var _;n[f+1],f+=2,u=w.nextZero(n,f),w.readASCII(n,f,u-f),f=u+1,u=w.nextZero(n,f),w.readUTF8(n,f,u-f),s=T-((f=u+1)-h),d==0?_=w.readUTF8(n,f,s):(y=l(n.slice(f,f+s)),_=w.readUTF8(y,0,y.length)),I.tabs[m][b]=_;}else if(m=="PLTE")I.tabs[m]=w.readBytes(n,h,T);else if(m=="hIST"){let d=I.tabs.PLTE.length/3;for(I.tabs[m]=[],U=0;U<d;U++)I.tabs[m].push(C(n,h+2*U));}else if(m=="tRNS")I.ctype==3?I.tabs[m]=w.readBytes(n,h,T):I.ctype==0?I.tabs[m]=C(n,h):I.ctype==2&&(I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]);else if(m=="gAMA")I.tabs[m]=w.readUint(n,h)/1e5;else if(m=="sRGB")I.tabs[m]=n[h];else if(m=="bKGD")I.ctype==0||I.ctype==4?I.tabs[m]=[C(n,h)]:I.ctype==2||I.ctype==6?I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]:I.ctype==3&&(I.tabs[m]=n[h]);else if(m=="IEND")break;h+=T,w.readUint(n,h),h+=4;}var A;return R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,k.slice(0,R),A.rect.width,A.rect.height)),I.data=S(I,B,I.width,I.height),delete I.compress,delete I.interlace,delete I.filter,I},toRGBA8:function(a){let n=a.width,h=a.height;if(a.tabs.acTL==null)return [r(a.data,n,h,a).buffer];let w=[];a.frames[0].data==null&&(a.frames[0].data=a.data);let C=n*h*4,M=new Uint8Array(C),I=new Uint8Array(C),B=new Uint8Array(C);for(let L=0;L<a.frames.length;L++){let R=a.frames[L],g=R.rect.x,U=R.rect.y,f=R.rect.width,u=R.rect.height,b=r(R.data,f,u,a);if(L!=0)for(var k=0;k<C;k++)B[k]=M[k];if(R.blend==0?E(b,f,u,M,n,h,g,U,0):R.blend==1&&E(b,f,u,M,n,h,g,U,1),w.push(M.buffer.slice(0)),R.dispose!=0){if(R.dispose==1)E(I,f,u,M,n,h,g,U,0);else if(R.dispose==2)for(k=0;k<C;k++)M[k]=B[k];}}return w},_paeth:c,_copyTile:E,_bin:i}})();(function(){let{_copyTile:i}=pe,{_bin:r}=pe,S=pe._paeth;var l={table:(function(){let f=new Uint32Array(256);for(let u=0;u<256;u++){let b=u;for(let s=0;s<8;s++)1&b?b=3988292384^b>>>1:b>>>=1;f[u]=b;}return f})(),update(f,u,b,s){for(let y=0;y<s;y++)f=l.table[255&(f^u[b+y])]^f>>>8;return f},crc:(f,u,b)=>4294967295^l.update(4294967295,f,u,b)};function e(f,u,b,s){u[b]+=f[0]*s>>4,u[b+1]+=f[1]*s>>4,u[b+2]+=f[2]*s>>4,u[b+3]+=f[3]*s>>4;}function t(f){return Math.max(0,Math.min(255,f))}function p(f,u){let b=f[0]-u[0],s=f[1]-u[1],y=f[2]-u[2],_=f[3]-u[3];return b*b+s*s+y*y+_*_}function c(f,u,b,s,y,_,A){A==null&&(A=1);let T=s.length,m=[];for(var d=0;d<T;d++){let F=s[d];m.push([F>>>0&255,F>>>8&255,F>>>16&255,F>>>24&255]);}for(d=0;d<T;d++){let F=4294967295;for(var P=0,x=0;x<T;x++){var O=p(m[d],m[x]);x!=d&&O<F&&(F=O,P=x);}}let N=new Uint32Array(y.buffer),D=new Int16Array(u*b*4),Q=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(d=0;d<Q.length;d++)Q[d]=255*((Q[d]+.5)/16-.5);for(let F=0;F<b;F++)for(let $=0;$<u;$++){var H;d=4*(F*u+$),A!=2?H=[t(f[d]+D[d]),t(f[d+1]+D[d+1]),t(f[d+2]+D[d+2]),t(f[d+3]+D[d+3])]:(O=Q[4*(3&F)+(3&$)],H=[t(f[d]+O),t(f[d+1]+O),t(f[d+2]+O),t(f[d+3]+O)]),P=0;let K=16777215;for(x=0;x<T;x++){let q=p(H,m[x]);q<K&&(K=q,P=x);}let V=m[P],z=[H[0]-V[0],H[1]-V[1],H[2]-V[2],H[3]-V[3]];A==1&&($!=u-1&&e(z,D,d+4,7),F!=b-1&&($!=0&&e(z,D,d+4*u-4,3),e(z,D,d+4*u,5),$!=u-1&&e(z,D,d+4*u+4,1))),_[d>>2]=P,N[d>>2]=s[P];}}function v(f,u,b,s,y){y==null&&(y={});let{crc:_}=l,A=r.writeUint,T=r.writeUshort,m=r.writeASCII,d=8,P=f.frames.length>1,x,O=false,N=33+(P?20:0);if(y.sRGB!=null&&(N+=13),y.pHYs!=null&&(N+=21),y.iCCP!=null&&(x=pako.deflate(y.iCCP),N+=21+x.length+4),f.ctype==3){for(var D=f.plte.length,Q=0;Q<D;Q++)f.plte[Q]>>>24!=255&&(O=true);N+=8+3*D+4+(O?8+1*D+4:0);}for(var H=0;H<f.frames.length;H++)P&&(N+=38),N+=(V=f.frames[H]).cimg.length+12,H!=0&&(N+=4);N+=12;let F=new Uint8Array(N),$=[137,80,78,71,13,10,26,10];for(Q=0;Q<8;Q++)F[Q]=$[Q];if(A(F,d,13),d+=4,m(F,d,"IHDR"),d+=4,A(F,d,u),d+=4,A(F,d,b),d+=4,F[d]=f.depth,d++,F[d]=f.ctype,d++,F[d]=0,d++,F[d]=0,d++,F[d]=0,d++,A(F,d,_(F,d-17,17)),d+=4,y.sRGB!=null&&(A(F,d,1),d+=4,m(F,d,"sRGB"),d+=4,F[d]=y.sRGB,d++,A(F,d,_(F,d-5,5)),d+=4),y.iCCP!=null){let z=13+x.length;A(F,d,z),d+=4,m(F,d,"iCCP"),d+=4,m(F,d,"ICC profile"),d+=11,d+=2,F.set(x,d),d+=x.length,A(F,d,_(F,d-(z+4),z+4)),d+=4;}if(y.pHYs!=null&&(A(F,d,9),d+=4,m(F,d,"pHYs"),d+=4,A(F,d,y.pHYs[0]),d+=4,A(F,d,y.pHYs[1]),d+=4,F[d]=y.pHYs[2],d++,A(F,d,_(F,d-13,13)),d+=4),P&&(A(F,d,8),d+=4,m(F,d,"acTL"),d+=4,A(F,d,f.frames.length),d+=4,A(F,d,y.loop!=null?y.loop:0),d+=4,A(F,d,_(F,d-12,12)),d+=4),f.ctype==3){for(A(F,d,3*(D=f.plte.length)),d+=4,m(F,d,"PLTE"),d+=4,Q=0;Q<D;Q++){let z=3*Q,q=f.plte[Q],G=255&q,W=q>>>8&255,ie=q>>>16&255;F[d+z+0]=G,F[d+z+1]=W,F[d+z+2]=ie;}if(d+=3*D,A(F,d,_(F,d-3*D-4,3*D+4)),d+=4,O){for(A(F,d,D),d+=4,m(F,d,"tRNS"),d+=4,Q=0;Q<D;Q++)F[d+Q]=f.plte[Q]>>>24&255;d+=D,A(F,d,_(F,d-D-4,D+4)),d+=4;}}let K=0;for(H=0;H<f.frames.length;H++){var V=f.frames[H];P&&(A(F,d,26),d+=4,m(F,d,"fcTL"),d+=4,A(F,d,K++),d+=4,A(F,d,V.rect.width),d+=4,A(F,d,V.rect.height),d+=4,A(F,d,V.rect.x),d+=4,A(F,d,V.rect.y),d+=4,T(F,d,s[H]),d+=2,T(F,d,1e3),d+=2,F[d]=V.dispose,d++,F[d]=V.blend,d++,A(F,d,_(F,d-30,30)),d+=4);let z=V.cimg;A(F,d,(D=z.length)+(H==0?0:4)),d+=4;let q=d;m(F,d,H==0?"IDAT":"fdAT"),d+=4,H!=0&&(A(F,d,K++),d+=4),F.set(z,d),d+=D,A(F,d,_(F,q,d-q)),d+=4;}return A(F,d,0),d+=4,m(F,d,"IEND"),d+=4,A(F,d,_(F,d-4,4)),d+=4,F.buffer}function E(f,u,b){for(let s=0;s<f.frames.length;s++){let y=f.frames[s];y.rect.width;let _=y.rect.height,A=new Uint8Array(_*y.bpl+_);y.cimg=h(y.img,_,y.bpp,y.bpl,A,u,b);}}function o(f,u,b,s,y){let _=y[0],A=y[1],T=y[2],m=y[3],d=y[4],P=y[5],x=6,O=8,N=255;for(var D=0;D<f.length;D++){let te=new Uint8Array(f[D]);for(var Q=te.length,H=0;H<Q;H+=4)N&=te[H+3];}let F=N!=255,$=(function(Y,J,ne,oe,j,ue){let ee=[];for(var X=0;X<Y.length;X++){let ce=new Uint8Array(Y[X]),he=new Uint32Array(ce.buffer);var le;let de=0,ve=0,me=J,Ie=ne,Ye=oe?1:0;if(X!=0){let yn=ue||oe||X==1||ee[X-2].dispose!=0?1:2,Je=0,wt=1e9;for(let Le=0;Le<yn;Le++){var ge=new Uint8Array(Y[X-1-Le]);let An=new Uint32Array(Y[X-1-Le]),be=J,_e=ne,Oe=-1,De=-1;for(let Re=0;Re<ne;Re++)for(let Ce=0;Ce<J;Ce++)he[se=Re*J+Ce]!=An[se]&&(Ce<be&&(be=Ce),Ce>Oe&&(Oe=Ce),Re<_e&&(_e=Re),Re>De&&(De=Re));Oe==-1&&(be=_e=Oe=De=0),j&&((1&be)==1&&be--,(1&_e)==1&&_e--);let bt=(Oe-be+1)*(De-_e+1);bt<wt&&(wt=bt,Je=Le,de=be,ve=_e,me=Oe-be+1,Ie=De-_e+1);}ge=new Uint8Array(Y[X-1-Je]),Je==1&&(ee[X-1].dispose=2),le=new Uint8Array(me*Ie*4),i(ge,J,ne,le,me,Ie,-de,-ve,0),Ye=i(ce,J,ne,le,me,Ie,-de,-ve,3)?1:0,Ye==1?n(ce,J,ne,le,{x:de,y:ve,width:me,height:Ie}):i(ce,J,ne,le,me,Ie,-de,-ve,0);}else le=ce.slice(0);ee.push({rect:{x:de,y:ve,width:me,height:Ie},img:le,blend:Ye,dispose:0});}if(oe)for(X=0;X<ee.length;X++){if((Te=ee[X]).blend==1)continue;let ce=Te.rect,he=ee[X-1].rect,de=Math.min(ce.x,he.x),ve=Math.min(ce.y,he.y),me={x:de,y:ve,width:Math.max(ce.x+ce.width,he.x+he.width)-de,height:Math.max(ce.y+ce.height,he.y+he.height)-ve};ee[X-1].dispose=1,X-1!=0&&a(Y,J,ne,ee,X-1,me,j),a(Y,J,ne,ee,X,me,j);}let Ne=0;if(Y.length!=1)for(var se=0;se<ee.length;se++){var Te;Ne+=(Te=ee[se]).rect.width*Te.rect.height;}return ee})(f,u,b,_,A,T),K={},V=[],z=[];if(s!=0){let te=[];for(H=0;H<$.length;H++)te.push($[H].img.buffer);let Y=(function(j){let ue=0;for(var ee=0;ee<j.length;ee++)ue+=j[ee].byteLength;let X=new Uint8Array(ue),le=0;for(ee=0;ee<j.length;ee++){let ge=new Uint8Array(j[ee]),Ne=ge.length;for(let se=0;se<Ne;se+=4){let Te=ge[se],ce=ge[se+1],he=ge[se+2],de=ge[se+3];de==0&&(Te=ce=he=0),X[le+se]=Te,X[le+se+1]=ce,X[le+se+2]=he,X[le+se+3]=de;}le+=Ne;}return X.buffer})(te),J=C(Y,s);for(H=0;H<J.plte.length;H++)V.push(J.plte[H].est.rgba);let ne=0;for(H=0;H<$.length;H++){let oe=(G=$[H]).img.length;var q=new Uint8Array(J.inds.buffer,ne>>2,oe>>2);z.push(q);let j=new Uint8Array(J.abuf,ne,oe);P&&c(G.img,G.rect.width,G.rect.height,V,j,q),G.img.set(j),ne+=oe;}}else for(D=0;D<$.length;D++){var G=$[D];let te=new Uint32Array(G.img.buffer);var W=G.rect.width;for(Q=te.length,q=new Uint8Array(Q),z.push(q),H=0;H<Q;H++){let Y=te[H];if(H!=0&&Y==te[H-1])q[H]=q[H-1];else if(H>W&&Y==te[H-W])q[H]=q[H-W];else {let J=K[Y];if(J==null&&(K[Y]=J=V.length,V.push(Y),V.length>=300))break;q[H]=J;}}}let ie=V.length;for(ie<=256&&d==0&&(O=ie<=2?1:ie<=4?2:ie<=16?4:8,O=Math.max(O,m)),D=0;D<$.length;D++){(G=$[D]).rect.x,G.rect.y,W=G.rect.width;let te=G.rect.height,Y=G.img;new Uint32Array(Y.buffer);let J=4*W,ne=4;if(ie<=256&&d==0){J=Math.ceil(O*W/8);var ae=new Uint8Array(J*te);let oe=z[D];for(let j=0;j<te;j++){H=j*J;let ue=j*W;if(O==8)for(var Z=0;Z<W;Z++)ae[H+Z]=oe[ue+Z];else if(O==4)for(Z=0;Z<W;Z++)ae[H+(Z>>1)]|=oe[ue+Z]<<4-4*(1&Z);else if(O==2)for(Z=0;Z<W;Z++)ae[H+(Z>>2)]|=oe[ue+Z]<<6-2*(3&Z);else if(O==1)for(Z=0;Z<W;Z++)ae[H+(Z>>3)]|=oe[ue+Z]<<7-1*(7&Z);}Y=ae,x=3,ne=1;}else if(F==0&&$.length==1){ae=new Uint8Array(W*te*3);let oe=W*te;for(H=0;H<oe;H++){let j=3*H,ue=4*H;ae[j]=Y[ue],ae[j+1]=Y[ue+1],ae[j+2]=Y[ue+2];}Y=ae,x=2,ne=3,J=3*W;}G.img=Y,G.bpl=J,G.bpp=ne;}return {ctype:x,depth:O,plte:V,frames:$}}function a(f,u,b,s,y,_,A){let T=Uint8Array,m=Uint32Array,d=new T(f[y-1]),P=new m(f[y-1]),x=y+1<f.length?new T(f[y+1]):null,O=new T(f[y]),N=new m(O.buffer),D=u,Q=b,H=-1,F=-1;for(let K=0;K<_.height;K++)for(let V=0;V<_.width;V++){let z=_.x+V,q=_.y+K,G=q*u+z,W=N[G];W==0||s[y-1].dispose==0&&P[G]==W&&(x==null||x[4*G+3]!=0)||(z<D&&(D=z),z>H&&(H=z),q<Q&&(Q=q),q>F&&(F=q));}H==-1&&(D=Q=H=F=0),A&&((1&D)==1&&D--,(1&Q)==1&&Q--),_={x:D,y:Q,width:H-D+1,height:F-Q+1};let $=s[y];$.rect=_,$.blend=1,$.img=new Uint8Array(_.width*_.height*4),s[y-1].dispose==0?(i(d,u,b,$.img,_.width,_.height,-_.x,-_.y,0),n(O,u,b,$.img,_)):i(O,u,b,$.img,_.width,_.height,-_.x,-_.y,0);}function n(f,u,b,s,y){i(f,u,b,s,y.width,y.height,-y.x,-y.y,2);}function h(f,u,b,s,y,_,A){let T=[],m,d=[0,1,2,3,4];_!=-1?d=[_]:(u*s>5e5||b==1)&&(d=[0]),A&&(m={level:0});let P=Cn;for(var x=0;x<d.length;x++){for(let D=0;D<u;D++)w(y,f,D,s,b,d[x]);T.push(P.deflate(y,m));}let O,N=1e9;for(x=0;x<T.length;x++)T[x].length<N&&(O=x,N=T[x].length);return T[O]}function w(f,u,b,s,y,_){let A=b*s,T=A+b;if(f[T]=_,T++,_==0)if(s<500)for(var m=0;m<s;m++)f[T+m]=u[A+m];else f.set(new Uint8Array(u.buffer,A,s),T);else if(_==1){for(m=0;m<y;m++)f[T+m]=u[A+m];for(m=y;m<s;m++)f[T+m]=u[A+m]-u[A+m-y]+256&255;}else if(b==0){for(m=0;m<y;m++)f[T+m]=u[A+m];if(_==2)for(m=y;m<s;m++)f[T+m]=u[A+m];if(_==3)for(m=y;m<s;m++)f[T+m]=u[A+m]-(u[A+m-y]>>1)+256&255;if(_==4)for(m=y;m<s;m++)f[T+m]=u[A+m]-S(u[A+m-y],0,0)+256&255;}else {if(_==2)for(m=0;m<s;m++)f[T+m]=u[A+m]+256-u[A+m-s]&255;if(_==3){for(m=0;m<y;m++)f[T+m]=u[A+m]+256-(u[A+m-s]>>1)&255;for(m=y;m<s;m++)f[T+m]=u[A+m]+256-(u[A+m-s]+u[A+m-y]>>1)&255;}if(_==4){for(m=0;m<y;m++)f[T+m]=u[A+m]+256-S(0,u[A+m-s],0)&255;for(m=y;m<s;m++)f[T+m]=u[A+m]+256-S(u[A+m-y],u[A+m-s],u[A+m-y-s])&255;}}}function C(f,u){let b=new Uint8Array(f),s=b.slice(0),y=new Uint32Array(s.buffer),_=M(s,u),A=_[0],T=_[1],m=b.length,d=new Uint8Array(m>>2),P;if(b.length<2e7)for(var x=0;x<m;x+=4)P=I(A,O=b[x]*(1/255),N=b[x+1]*(1/255),D=b[x+2]*(1/255),Q=b[x+3]*(1/255)),d[x>>2]=P.ind,y[x>>2]=P.est.rgba;else for(x=0;x<m;x+=4){var O=b[x]*.00392156862745098,N=b[x+1]*(1/255),D=b[x+2]*(1/255),Q=b[x+3]*(1/255);for(P=A;P.left;)P=B(P.est,O,N,D,Q)<=0?P.left:P.right;d[x>>2]=P.ind,y[x>>2]=P.est.rgba;}return {abuf:s.buffer,inds:d,plte:T}}function M(f,u,b){b==null&&(b=1e-4);let s=new Uint32Array(f.buffer),y={i0:0,i1:f.length,bst:null,est:null,tdst:0,left:null,right:null};y.bst=R(f,y.i0,y.i1),y.est=g(y.bst);let _=[y];for(;_.length<u;){let T=0,m=0;for(var A=0;A<_.length;A++)_[A].est.L>T&&(T=_[A].est.L,m=A);if(T<b)break;let d=_[m],P=k(f,s,d.i0,d.i1,d.est.e,d.est.eMq255);if(d.i0>=P||d.i1<=P){d.est.L=0;continue}let x={i0:d.i0,i1:P,bst:null,est:null,tdst:0,left:null,right:null};x.bst=R(f,x.i0,x.i1),x.est=g(x.bst);let O={i0:P,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};for(O.bst={R:[],m:[],N:d.bst.N-x.bst.N},A=0;A<16;A++)O.bst.R[A]=d.bst.R[A]-x.bst.R[A];for(A=0;A<4;A++)O.bst.m[A]=d.bst.m[A]-x.bst.m[A];O.est=g(O.bst),d.left=x,d.right=O,_[m]=x,_.push(O);}for(_.sort(((T,m)=>m.bst.N-T.bst.N)),A=0;A<_.length;A++)_[A].ind=A;return [y,_]}function I(f,u,b,s,y){if(f.left==null)return f.tdst=(function(x,O,N,D,Q){let H=O-x[0],F=N-x[1],$=D-x[2],K=Q-x[3];return H*H+F*F+$*$+K*K})(f.est.q,u,b,s,y),f;let _=B(f.est,u,b,s,y),A=f.left,T=f.right;_>0&&(A=f.right,T=f.left);let m=I(A,u,b,s,y);if(m.tdst<=_*_)return m;let d=I(T,u,b,s,y);return d.tdst<m.tdst?d:m}function B(f,u,b,s,y){let{e:_}=f;return _[0]*u+_[1]*b+_[2]*s+_[3]*y-f.eMq}function k(f,u,b,s,y,_){for(s-=4;b<s;){for(;L(f,b,y)<=_;)b+=4;for(;L(f,s,y)>_;)s-=4;if(b>=s)break;let A=u[b>>2];u[b>>2]=u[s>>2],u[s>>2]=A,b+=4,s-=4;}for(;L(f,b,y)>_;)b-=4;return b+4}function L(f,u,b){return f[u]*b[0]+f[u+1]*b[1]+f[u+2]*b[2]+f[u+3]*b[3]}function R(f,u,b){let s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=[0,0,0,0],_=b-u>>2;for(let A=u;A<b;A+=4){let T=f[A]*.00392156862745098,m=f[A+1]*(1/255),d=f[A+2]*(1/255),P=f[A+3]*(1/255);y[0]+=T,y[1]+=m,y[2]+=d,y[3]+=P,s[0]+=T*T,s[1]+=T*m,s[2]+=T*d,s[3]+=T*P,s[5]+=m*m,s[6]+=m*d,s[7]+=m*P,s[10]+=d*d,s[11]+=d*P,s[15]+=P*P;}return s[4]=s[1],s[8]=s[2],s[9]=s[6],s[12]=s[3],s[13]=s[7],s[14]=s[11],{R:s,m:y,N:_}}function g(f){let{R:u}=f,{m:b}=f,{N:s}=f,y=b[0],_=b[1],A=b[2],T=b[3],m=s==0?0:1/s,d=[u[0]-y*y*m,u[1]-y*_*m,u[2]-y*A*m,u[3]-y*T*m,u[4]-_*y*m,u[5]-_*_*m,u[6]-_*A*m,u[7]-_*T*m,u[8]-A*y*m,u[9]-A*_*m,u[10]-A*A*m,u[11]-A*T*m,u[12]-T*y*m,u[13]-T*_*m,u[14]-T*A*m,u[15]-T*T*m],P=d,x=U,O=[Math.random(),Math.random(),Math.random(),Math.random()],N=0,D=0;if(s!=0)for(let H=0;H<16&&(O=x.multVec(P,O),D=Math.sqrt(x.dot(O,O)),O=x.sml(1/D,O),!(H!=0&&Math.abs(D-N)<1e-9));H++)N=D;let Q=[y*m,_*m,A*m,T*m];return {Cov:d,q:Q,e:O,L:N,eMq255:x.dot(x.sml(255,Q),O),eMq:x.dot(O,Q),rgba:(Math.round(255*Q[3])<<24|Math.round(255*Q[2])<<16|Math.round(255*Q[1])<<8|Math.round(255*Q[0])<<0)>>>0}}var U={multVec:(f,u)=>[f[0]*u[0]+f[1]*u[1]+f[2]*u[2]+f[3]*u[3],f[4]*u[0]+f[5]*u[1]+f[6]*u[2]+f[7]*u[3],f[8]*u[0]+f[9]*u[1]+f[10]*u[2]+f[11]*u[3],f[12]*u[0]+f[13]*u[1]+f[14]*u[2]+f[15]*u[3]],dot:(f,u)=>f[0]*u[0]+f[1]*u[1]+f[2]*u[2]+f[3]*u[3],sml:(f,u)=>[f*u[0],f*u[1],f*u[2],f*u[3]]};pe.encode=function(u,b,s,y,_,A,T){y==null&&(y=0),T==null&&(T=false);let m=o(u,b,s,y,[false,false,false,0,T,false]);return E(m,-1),v(m,b,s,_,A)},pe.encodeLL=function(u,b,s,y,_,A,T,m){let d={ctype:0+(y==1?0:2)+(_==0?0:4),depth:A,frames:[]},P=(y+_)*A,x=P*b;for(let O=0;O<u.length;O++)d.frames.push({rect:{x:0,y:0,width:b,height:s},img:new Uint8Array(u[O]),blend:0,dispose:1,bpp:Math.ceil(P/8),bpl:Math.ceil(x/8)});return E(d,0,true),v(d,b,s,T,m)},pe.encode.compress=o,pe.encode.dither=c,pe.quantize=C,pe.quantize.getKDtree=M,pe.quantize.getNearest=I;})();var It={toArrayBuffer(i,r){let S=i.width,l=i.height,e=S<<2,t=i.getContext("2d").getImageData(0,0,S,l),p=new Uint32Array(t.data.buffer),c=(32*S+31)/32<<2,v=c*l,E=122+v,o=new ArrayBuffer(E),a=new DataView(o),n=1<<20,h,w,C,M,I=n,B=0,k=0,L=0;function R(f){a.setUint16(k,f,true),k+=2;}function g(f){a.setUint32(k,f,true),k+=4;}function U(f){k+=f;}R(19778),g(E),U(4),g(122),g(108),g(S),g(-l>>>0),R(1),R(32),g(3),g(v),g(2835),g(2835),U(8),g(16711680),g(65280),g(255),g(4278190080),g(1466527264),(function f(){for(;B<l&&I>0;){for(M=122+B*c,h=0;h<e;)I--,w=p[L++],C=w>>>24,a.setUint32(M+h,w<<8|C),h+=4;B++;}L<p.length?(I=n,setTimeout(f,It._dly)):r(o);})();},toBlob(i,r){this.toArrayBuffer(i,(S=>{r(new Blob([S],{type:"image/bmp"}));}));},_dly:9},fe={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},xn={[fe.CHROME]:16384,[fe.FIREFOX]:11180,[fe.DESKTOP_SAFARI]:16384,[fe.IE]:8192,[fe.IOS]:4096,[fe.ETC]:8192},et=typeof globalThis.window<"u",Rt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,We=et&&globalThis.window.cordova&&globalThis.window.cordova.require&&globalThis.window.cordova.require("cordova/modulemapper"),Un=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"File")||typeof File<"u"&&File),Ct=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"FileReader")||typeof globalThis.FileReader<"u"&&globalThis.FileReader);function tt(i,r,S=Date.now()){return new Promise((l=>{let e=i.split(","),t=e[0].match(/:(.*?);/)[1],p=globalThis.atob(e[1]),c=p.length,v=new Uint8Array(c);for(;c--;)v[c]=p.charCodeAt(c);let E=new Blob([v],{type:t});E.name=r,E.lastModified=S,l(E);}))}function xt(i){return new Promise(((r,S)=>{let l=new Ct;l.onload=()=>r(l.result),l.onerror=e=>S(e),l.readAsDataURL(i);}))}function Ut(i){return new Promise(((r,S)=>{let l=new globalThis.Image;l.onload=()=>r(l),l.onerror=e=>S(e),l.src=i;}))}function xe(){if(xe.cachedResult!==void 0)return xe.cachedResult;let i=fe.ETC,{userAgent:r}=navigator;return /Chrom(e|ium)/i.test(r)?i=fe.CHROME:/iP(ad|od|hone)/i.test(r)&&/WebKit/i.test(r)?i=fe.IOS:/Safari/i.test(r)?i=fe.DESKTOP_SAFARI:/Firefox/i.test(r)?i=fe.FIREFOX:(/MSIE/i.test(r)||globalThis.document.documentMode)&&(i=fe.IE),xe.cachedResult=i,xe.cachedResult}function Ot(i,r){let S=xe(),l=xn[S],e=i,t=r,p=e*t,c=e>t?t/e:e/t;for(;p>l*l;){let v=(l+e)/2,E=(l+t)/2;v<E?(t=E,e=E*c):(t=v*c,e=v),p=e*t;}return {width:e,height:t}}function Ve(i,r){let S,l;try{if(S=new OffscreenCanvas(i,r),l=S.getContext("2d"),l===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{S=globalThis.document.createElement("canvas"),l=S.getContext("2d");}return S.width=i,S.height=r,[S,l]}function Pt(i,r){let{width:S,height:l}=Ot(i.width,i.height),[e,t]=Ve(S,l);return r&&/jpe?g/.test(r)&&(t.fillStyle="white",t.fillRect(0,0,e.width,e.height)),t.drawImage(i,0,0,e.width,e.height),e}function Qe(){return Qe.cachedResult!==void 0||(Qe.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof globalThis.document<"u"&&"ontouchend"in globalThis.document),Qe.cachedResult}function ze(i,r={}){return new Promise((function(S,l){let e,t;var p=function(){try{return t=Pt(e,r.fileType||i.type),S([e,t])}catch(v){return l(v)}},c=function(v){try{var E=function(o){try{throw o}catch(a){return l(a)}};try{let o;return xt(i).then((function(a){try{return o=a,Ut(o).then((function(n){try{return e=n,(function(){try{return p()}catch(h){return l(h)}})()}catch(h){return E(h)}}),E)}catch(n){return E(n)}}),E)}catch(o){E(o);}}catch(o){return l(o)}};try{if(Qe()||[fe.DESKTOP_SAFARI,fe.MOBILE_SAFARI].includes(xe()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(i).then((function(v){try{return e=v,p()}catch{return c()}}),c)}catch{c();}}))}function Ge(i,r,S,l,e=1){return new Promise((function(t,p){let c;if(r==="image/png"){let a,n,h;return a=i.getContext("2d"),{data:n}=a.getImageData(0,0,i.width,i.height),h=pe.encode([n.buffer],i.width,i.height,4096*e),c=new Blob([h],{type:r}),c.name=S,c.lastModified=l,v.call(this)}{let a=function(){return v.call(this)};if(r==="image/bmp")return new Promise((n=>It.toBlob(i,n))).then(function(n){try{return c=n,c.name=S,c.lastModified=l,a.call(this)}catch(h){return p(h)}}.bind(this),p);{let n=function(){return a.call(this)};if(typeof OffscreenCanvas=="function"&&i instanceof OffscreenCanvas)return i.convertToBlob({type:r,quality:e}).then(function(h){try{return c=h,c.name=S,c.lastModified=l,n.call(this)}catch(w){return p(w)}}.bind(this),p);{let h;return h=i.toDataURL(r,e),tt(h,S,l).then(function(w){try{return c=w,n.call(this)}catch(C){return p(C)}}.bind(this),p)}}}function v(){return t(c)}}))}function ye(i){i.width=0,i.height=0;}function Pe(){return new Promise((function(i,r){let l,e,t,p;return Pe.cachedResult!==void 0?i(Pe.cachedResult):(tt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then((function(c){try{return l=c,ze(l).then((function(v){try{return e=v[1],Ge(e,l.type,l.name,l.lastModified).then((function(E){try{return t=E,ye(e),ze(t).then((function(o){try{return p=o[0],Pe.cachedResult=p.width===1&&p.height===2,i(Pe.cachedResult)}catch(a){return r(a)}}),r)}catch(o){return r(o)}}),r)}catch(E){return r(E)}}),r)}catch(v){return r(v)}}),r))}))}function Mt(i){return new Promise(((r,S)=>{let l=new Ct;l.onload=e=>{let t=new DataView(e.target.result);if(t.getUint16(0,false)!=65496)return r(-2);let p=t.byteLength,c=2;for(;c<p;){if(t.getUint16(c+2,false)<=8)return r(-1);let v=t.getUint16(c,false);if(c+=2,v==65505){if(t.getUint32(c+=2,false)!=1165519206)return r(-1);let E=t.getUint16(c+=6,false)==18761;c+=t.getUint32(c+4,E);let o=t.getUint16(c,E);c+=2;for(let a=0;a<o;a++)if(t.getUint16(c+12*a,E)==274)return r(t.getUint16(c+12*a+8,E))}else {if((65280&v)!=65280)break;c+=t.getUint16(c,false);}}return r(-1)},l.onerror=e=>S(e),l.readAsArrayBuffer(i);}))}function Lt(i,r){let{width:S}=i,{height:l}=i,{maxWidthOrHeight:e}=r,t,p=i;return isFinite(e)&&(S>e||l>e)&&([p,t]=Ve(S,l),S>l?(p.width=e,p.height=l/S*e):(p.width=S/l*e,p.height=e),t.drawImage(i,0,0,p.width,p.height),ye(i)),p}function Dt(i,r){let{width:S}=i,{height:l}=i,[e,t]=Ve(S,l);switch(r>4&&r<9?(e.width=l,e.height=S):(e.width=S,e.height=l),r){case 2:t.transform(-1,0,0,1,S,0);break;case 3:t.transform(-1,0,0,-1,S,l);break;case 4:t.transform(1,0,0,-1,0,l);break;case 5:t.transform(0,1,1,0,0,0);break;case 6:t.transform(0,1,-1,0,l,0);break;case 7:t.transform(0,-1,-1,0,l,S);break;case 8:t.transform(0,-1,1,0,0,S);}return t.drawImage(i,0,0,S,l),ye(i),e}function St(i,r,S=0){return new Promise((function(l,e){let t,p,c,v,E,o,a,n,h,w,C,M,I,B,k,L,R,g,U,f;function u(s=5){if(r.signal&&r.signal.aborted)throw r.signal.reason;t+=s,r.onProgress(Math.min(t,100));}function b(s){if(r.signal&&r.signal.aborted)throw r.signal.reason;t=Math.min(Math.max(s,t),100),r.onProgress(t);}return t=S,p=r.maxIteration||10,c=1024*r.maxSizeMB*1024,u(),ze(i,r).then(function(s){try{return [,v]=s,u(),E=Lt(v,r),u(),new Promise((function(y,_){var A;if(!(A=r.exifOrientation))return Mt(i).then(function(m){try{return A=m,T.call(this)}catch(d){return _(d)}}.bind(this),_);function T(){return y(A)}return T.call(this)})).then(function(y){try{return o=y,u(),Pe().then(function(_){try{return a=_?E:Dt(E,o),u(),n=r.initialQuality||1,h=r.fileType||i.type,Ge(a,h,i.name,i.lastModified,n).then(function(A){try{{let P=function(){if(p--&&(k>c||k>I)){let O,N;return O=f?.95*U.width:U.width,N=f?.95*U.height:U.height,[R,g]=Ve(O,N),g.drawImage(U,0,0,O,N),n*=h==="image/png"?.85:.95,Ge(R,h,i.name,i.lastModified,n).then((function(D){try{return L=D,ye(U),U=R,k=L.size,b(Math.min(99,Math.floor((B-k)/(B-c)*100))),P}catch(Q){return e(Q)}}),e)}return [1]},x=function(){return ye(U),ye(R),ye(E),ye(a),ye(v),b(100),l(L)};var m=P,d=x;if(w=A,u(),C=w.size>c,M=w.size>i.size,!C&&!M)return b(100),l(w);var T;return I=i.size,B=w.size,k=B,U=a,f=!r.alwaysKeepResolution&&C,(T=function(O){for(;O;){if(O.then)return void O.then(T,e);try{if(O.pop){if(O.length)return O.pop()?x.call(this):O;O=P;}else O=O.call(this);}catch(N){return e(N)}}}.bind(this))(P)}}catch(P){return e(P)}}.bind(this),e)}catch(A){return e(A)}}.bind(this),e)}catch(_){return e(_)}}.bind(this),e)}catch(y){return e(y)}}.bind(this),e)}))}var On=`
6
6
  let scriptImported = false
7
7
  self.addEventListener('message', async (e) => {
8
8
  const { file, id, imageCompressionLibUrl, options } = e.data
@@ -21,7 +21,7 @@ self.addEventListener('message', async (e) => {
21
21
  self.postMessage({ error: e.message + '\\n' + e.stack, id })
22
22
  }
23
23
  })
24
- `,je;function Pn(i,r){return new Promise((S,l)=>{je||(je=function(g){let c=[];return c.push(g),URL.createObjectURL(new Blob(c))}(xn));let e=new Worker(je);e.addEventListener("message",function(g){if(r.signal&&r.signal.aborted)e.terminate();else if(g.data.progress===void 0){if(g.data.error)return l(new Error(g.data.error)),void e.terminate();S(g.data.file),e.terminate();}else r.onProgress(g.data.progress);}),e.addEventListener("error",l),r.signal&&r.signal.addEventListener("abort",()=>{l(r.signal.reason),e.terminate();}),e.postMessage({file:i,imageCompressionLibUrl:r.libURL,options:{...r,onProgress:void 0,signal:void 0}});})}function re(i,r){return new Promise(function(S,l){let e,t,g,c,v,E;if(e={...r},g=0,{onProgress:c}=e,e.maxSizeMB=e.maxSizeMB||Number.POSITIVE_INFINITY,v=typeof e.useWebWorker!="boolean"||e.useWebWorker,delete e.useWebWorker,e.onProgress=h=>{g=h,typeof c=="function"&&c(g);},!(i instanceof Blob||i instanceof On))return l(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(i.type))return l(new Error("The file given is not an image"));if(E=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!v||typeof Worker!="function"||E)return St(i,e).then(function(h){try{return t=h,n.call(this)}catch(w){return l(w)}}.bind(this),l);var o=function(){try{return n.call(this)}catch(h){return l(h)}}.bind(this),a=function(h){try{return St(i,e).then(function(w){try{return t=w,o()}catch(C){return l(C)}},l)}catch(w){return l(w)}};try{return e.libURL=e.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",Pn(i,e).then(function(h){try{return t=h,o()}catch{return a()}},a)}catch{a();}function n(){try{t.name=i.name,t.lastModified=i.lastModified;}catch{}try{e.preserveExif&&i.type==="image/jpeg"&&(!e.fileType||e.fileType&&e.fileType===i.type)&&(t=Tt(i,t));}catch{}return S(t)}})}re.getDataUrlFromFile=Ut,re.getFilefromDataUrl=tt,re.loadImage=Ot,re.drawImageInCanvas=Pt,re.drawFileInCanvas=ze,re.canvasToFile=Ge,re.getExifOrientation=Mt,re.handleMaxWidthOrHeight=Lt,re.followExifOrientation=Dt,re.cleanupCanvasMemory=ye,re.isAutoOrientationInBrowser=Pe,re.approximateBelowMaximumCanvasSizeOfBrowser=xt,re.copyExifWithoutOrientation=Tt,re.getBrowserName=Ue,re.version="2.0.2";var gn=Et(Ft()),mn=Et(on());function cr(i){let r=globalThis.document.getElementById("__AUTH_DRAWER"),S=globalThis.document.querySelector(".__drawer_container"),l=globalThis.document.querySelector(".__auth_close_button");r&&l&&S?.classList.contains("__hidden")&&(S.classList.remove("__hidden"),r.src=i,r.onload=()=>{l.classList.remove("__hidden"),r.classList.remove("__hidden"),r.contentWindow?.focus();});}function an(){if(globalThis.document.getElementById("__AUTH_DRAWER"))return;let i=globalThis.document.createElement("style");i.innerHTML=`
24
+ `,je;function Pn(i,r){return new Promise(((S,l)=>{je||(je=(function(p){let c=[];return c.push(p),URL.createObjectURL(new Blob(c))})(On));let e=new Worker(je);e.addEventListener("message",(function(p){if(r.signal&&r.signal.aborted)e.terminate();else if(p.data.progress===void 0){if(p.data.error)return l(new Error(p.data.error)),void e.terminate();S(p.data.file),e.terminate();}else r.onProgress(p.data.progress);})),e.addEventListener("error",l),r.signal&&r.signal.addEventListener("abort",(()=>{l(r.signal.reason),e.terminate();})),e.postMessage({file:i,imageCompressionLibUrl:r.libURL,options:{...r,onProgress:void 0,signal:void 0}});}))}function re(i,r){return new Promise((function(S,l){let e,t,p,c,v,E;if(e={...r},p=0,{onProgress:c}=e,e.maxSizeMB=e.maxSizeMB||Number.POSITIVE_INFINITY,v=typeof e.useWebWorker!="boolean"||e.useWebWorker,delete e.useWebWorker,e.onProgress=h=>{p=h,typeof c=="function"&&c(p);},!(i instanceof Blob||i instanceof Un))return l(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(i.type))return l(new Error("The file given is not an image"));if(E=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!v||typeof Worker!="function"||E)return St(i,e).then(function(h){try{return t=h,n.call(this)}catch(w){return l(w)}}.bind(this),l);var o=function(){try{return n.call(this)}catch(h){return l(h)}}.bind(this),a=function(h){try{return St(i,e).then((function(w){try{return t=w,o()}catch(C){return l(C)}}),l)}catch(w){return l(w)}};try{return e.libURL=e.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",Pn(i,e).then((function(h){try{return t=h,o()}catch{return a()}}),a)}catch{a();}function n(){try{t.name=i.name,t.lastModified=i.lastModified;}catch{}try{e.preserveExif&&i.type==="image/jpeg"&&(!e.fileType||e.fileType&&e.fileType===i.type)&&(t=Tt(i,t));}catch{}return S(t)}}))}re.getDataUrlFromFile=xt,re.getFilefromDataUrl=tt,re.loadImage=Ut,re.drawImageInCanvas=Pt,re.drawFileInCanvas=ze,re.canvasToFile=Ge,re.getExifOrientation=Mt,re.handleMaxWidthOrHeight=Lt,re.followExifOrientation=Dt,re.cleanupCanvasMemory=ye,re.isAutoOrientationInBrowser=Pe,re.approximateBelowMaximumCanvasSizeOfBrowser=Ot,re.copyExifWithoutOrientation=Tt,re.getBrowserName=xe,re.version="2.0.2";var gn=Et(Ft()),mn=Et(on());function cr(i){let r=globalThis.document.getElementById("__AUTH_DRAWER"),S=globalThis.document.querySelector(".__drawer_container"),l=globalThis.document.querySelector(".__auth_close_button");r&&l&&S?.classList.contains("__hidden")&&(S.classList.remove("__hidden"),r.src=i,r.onload=()=>{l.classList.remove("__hidden"),r.classList.remove("__hidden"),r.contentWindow?.focus();});}function an(){if(globalThis.document.getElementById("__AUTH_DRAWER"))return;let i=globalThis.document.createElement("style");i.innerHTML=`
25
25
  .__button_container * {
26
26
  font-family: -apple-system,
27
27
  BlinkMacSystemFont,
@@ -140,7 +140,93 @@ self.addEventListener('message', async (e) => {
140
140
  background: hsl(217.2, 32.6%, 21.5%);
141
141
  color: rgb(248, 250, 252);
142
142
  }
143
- }`,globalThis.document.head.appendChild(i);let r=globalThis.document.createElement("div");r.className="__drawer_container __hidden";let S=globalThis.document.createElement("iframe");S.className="__drawer_frame __hidden",S.id="__AUTH_DRAWER",S.setAttribute("allow","fullscreen; camera; microphone; gyroscope; accelerometer; clipboard-write; clipboard-read; autoplay; geolocation; display-capture; picture-in-picture; payment; midi; bluetooth; web-share; screen-wake-lock; xr-spatial-tracking; encrypted-media; idle-detection; hid; serial; window-management"),S.loading="eager",S.referrerPolicy="unsafe-url",S.title="Login";let l=globalThis.document.createElement("div");l.setAttribute("alt","Close"),l.className="__auth_close_button",r.appendChild(S),r.appendChild(l),globalThis.document.body.appendChild(r);let e=globalThis.document.querySelector(".__auth_close_button");function t(){r.classList.add("__hidden"),S.classList.add("__hidden");}e?.addEventListener("click",t),r.addEventListener("click",t);}var mt=i=>{let{email:r,phoneNumber:S}=i??{},l=r??S,e=new URLSearchParams;i&&"redirectUri"in i&&i.redirectUri?e.set("returnTo",i.redirectUri):e.set("returnTo",globalThis.window.location.pathname+globalThis.window.location.search),i?.provider&&"scope"in i&&(e.set("provider",i.provider),i.scope&&i.scope.length>0&&e.set("scope",i.scope.join(","))),i?.provider=="AC1"&&l&&e.set("identity",l),e.set("stripped","true");let t=globalThis.window.__APP_ID__;cr(`${globalThis.window.__ROOT_URL__}/setup/${t}?${e.toString()}`);};function ur(i={}){let[r,S]=useState({userId:void 0,status:"loading",signIn:mt,providers:[]});return useEffect(()=>{(async()=>{try{let t=await(await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json","x-guest-api-internal":"session",...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{}}})).json()??{};S({userId:t.userId??null,status:"authenticated",signIn:mt,providers:t?.providers??[]});}catch{if(i.required){let t=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),g=globalThis.window.__APP_ID__;globalThis.window.top?globalThis.window.top.location.href=`${globalThis.window.__ROOT_URL__}/setup/${g}?returnTo=${t}`:globalThis.window.location.href=`${globalThis.window.__ROOT_URL__}/setup/${g}?returnTo=${t}`;}else S({userId:null,status:"unauthenticated",signIn:mt,providers:[]});}})();},[i.required]),r}async function ln({channelId:i,initialData:r,broadcastOnly:S,onUpdate:l}){let e=r,t=0,g=globalThis.window.__REALTIME_DOMAIN__;if(S)return {getData(){return e},setData(v){e=v,fetch(`https://${g}/${i}`,{method:"POST",body:yt.stringify(e)}).catch(console.error),l?.(v);},destroy(){}};let c=new WebSocket(`wss://${g}/${i}`);return new Promise((v,E)=>{function o(w){try{let C=JSON.parse(w.data.toString());C?.id&&C.id>t?(e=yt.parse(C.payload),l?.(e),t=C.id):console.error("Invalid message:",w.data);}catch{console.error("Error parsing message:",w.data);}}function a(w){h(),E(w);}function n(){v({getData(){return e},setData(w){e=w,l?.(w),c.send(yt.stringify(w));},destroy:h});}function h(){c.removeEventListener("message",o),c.removeEventListener("error",a),c.removeEventListener("open",n),c.close();}c.addEventListener("message",o),c.addEventListener("error",a),c.addEventListener("open",n);})}function cn(i,r){let S=useRef(null),[l,e]=useState(0);return useEffect(()=>((async()=>i&&(S.current=await ln({channelId:i,initialData:r,onUpdate:()=>{e(t=>t+1);}})))(),S.current?.destroy),[i,e]),[S.current?.getData(),S.current?.setData??identity]}function yr(i){let[r,S]=useState(null),[l]=cn(r,void 0),e=i.mutationFn;if(!e)throw new Error("useRealtimeMutation requires a mutationFn option.");let t=useCallback(async c=>{let v=nanoid(32);return S(v),await e({...c,__channelId:v})},[i?.mutationFn]);return {...useMutation({...i,mutationFn:t}),data:l}}function un(i){return i?.message?.startsWith("__MISSING AUTH FOR SCOPE")}function hn(i){return i[0]}function wr(i){let S=i?.message?.slice("__MISSING AUTH FOR SCOPE:".length+1).trim()??"",l=JSON.parse(atob(S.split(" ")?.[0])),e=l?.provider,t=l?.scope;return {provider:e,scope:t,isPopup:i?.message?.endsWith("--popup"),accountId:l?.accountId}}var br=60,_r=30*1e3,At=0,pn=Date.now(),vt=false;function Er(){return rpcClient({transport:async(i,r)=>{let S=Date.now();if(S-pn>=_r)pn=S,At=0,vt=false;else if(At>=br)throw vt||(globalThis.window.dispatchEvent(new Event("rate-limit-exceeded")),vt=true),new RpcError("Rate limit exceeded",-32e3,{status:429});At++;let l="/api/"+i.method,e=i.params&&hn(i.params)?.__channelId;e&&delete hn(i.params)?.__channelId;let t=await fetch(l,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...e?{"x-channel-id":e}:{},...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{},"x-boxman-box-id":globalThis.window.__BOX_ID__},body:yt.stringify(i),signal:r});if(!t.ok){let c=t.statusText,v=-32e3;try{let{message:E,code:o}=await t.json();E&&(c=E),o&&(v=o);}catch{}throw c.trim()===""&&(c=`Request failed with status: ${t.status}`),new RpcError(c,v,{status:t.status})}let g=yt.deserialize(await t.json());if(un(g.error)){let c=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),v=wr(g.error),E=[`returnTo=${c}`,v.provider?`&provider=${v.provider}`:"",v.scope?`&scope=${v.scope.join(",")}`:"",v.accountId?`&accountId=${v.accountId}`:""].filter(Boolean).join("&");if(v.isPopup){globalThis.window.__OPEN_AUTH_DRAWER__(`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}&stripped=true`);return}let o=globalThis.window.top??globalThis.window;return o.location.href=`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}`,null}return g}})}function qr(i){return new Promise(r=>{let S=new globalThis.FileReader;S.onload=()=>{r(S.result);},S.readAsDataURL(i);})}function Sr(){let i={...globalThis.window.console};function r(S,l){let e=(0, mn.default)(l,{depth:5,maxStringLength:512,indent:2});fetch("/_logger",{method:"POST",body:`[console.${S.toLowerCase()}] ${e}`}).catch(()=>{});}globalThis.window.console.log=(...S)=>{r("LOG",S),i.log(...S);},globalThis.window.console.error=(...S)=>{r("ERROR",S),i.error(...S);},globalThis.window.console.info=(...S)=>{r("INFO",S),i.info(...S);},globalThis.window.console.warn=(...S)=>{r("WARN",S),i.warn(...S);};}function Tr(){function i(r,S=globalThis.window.parent,l="*"){S?.postMessage({...r,source:"iframe"},{targetOrigin:l});}globalThis.window.addEventListener("message",async r=>{let{origin:S,source:l,data:e}=r,{type:t}=e;if(t==="screenshot"){let g=globalThis.window.getComputedStyle(globalThis.document.body).backgroundColor,c=await gn.default.toPng(globalThis.document.body,{bgcolor:g,style:{transform:"translateY("+-globalThis.window.scrollY+"px)"},width:globalThis.window.innerWidth,height:globalThis.window.innerHeight,copyDefaultStyles:false}),v=await fetch(c).then(n=>n.blob()),E=await re(v,{maxSizeMB:4,maxWidthOrHeight:1920,useWebWorker:false}),a={type:"screenshot",payload:{screenshot:await re.getDataUrlFromFile(E)}};i(a,l,S);}});}function Kr({appId:i,rootUrl:r,baseUrl:S,isTesting:l,realtimeDomain:e,boxId:t}){typeof globalThis.window>"u"||globalThis.window.__APP_ID__||(globalThis.window.__APP_ID__=i,globalThis.window.__ROOT_URL__=r,globalThis.window.__BASE_URL__=S,globalThis.window.__IS_TESTING__=l,globalThis.window.__REALTIME_DOMAIN__=e,globalThis.window.__BOX_ID__=t,Tr(),Sr(),an(),globalThis.window.onerror=function(g){console.error("Global JS error:",g);},globalThis.window.onunhandledrejection=function(g){console.error("Unhandled promise rejection:",g.reason);});}function Xr(){return globalThis.window.__BASE_URL__}/*! Bundled license information:
143
+ }
144
+
145
+ .__drawer_container {
146
+ position: fixed;
147
+ pointer-events: auto !important;
148
+ top: 0;
149
+ left: 0;
150
+ width: 100%;
151
+ height: 100%;
152
+ background: rgba(255, 255, 255, 0.4);
153
+ backdrop-filter: blur(16px);
154
+ z-index: 10000;
155
+ display: flex;
156
+ flex-direction: column;
157
+ align-items: center;
158
+ justify-content: center;
159
+ transition: backdrop-filter 1s ease;
160
+ }
161
+
162
+ .__drawer_container.__hidden {
163
+ visibility: hidden;
164
+ pointer-events: none !important;
165
+ backdrop-filter: blur(0);
166
+ }
167
+
168
+ .__auth_close_button {
169
+ position: absolute;
170
+ top: 16px;
171
+ right: 16px;
172
+ cursor: pointer;
173
+ width: 24px;
174
+ height: 24px;
175
+ background: rgb(0, 0, 0, 0.8);
176
+ border: none;
177
+ mask: url(https://static.acflare.com/x.svg) no-repeat center;
178
+ mask-size: contain;
179
+ transition: opacity 0.3s ease;
180
+ }
181
+
182
+ .__auth_close_button:hover {
183
+ background: rgb(0, 0, 0, 1);
184
+ }
185
+
186
+ @media (prefers-color-scheme: dark) {
187
+ .__drawer_container {
188
+ background: rgba(0, 0, 0, 0.4);
189
+ }
190
+
191
+ .__auth_close_button {
192
+ background: rgb(255, 255, 255, 0.8);
193
+ }
194
+
195
+ .__auth_close_button:hover {
196
+ background: rgb(255, 255, 255, 1);
197
+ }
198
+ }
199
+
200
+ .__drawer_frame {
201
+ width: 100%;
202
+ height: 100%;
203
+ max-width: 400px;
204
+ max-height: 340px;
205
+ border: none;
206
+ border-radius: 16px;
207
+ box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
208
+ opacity: 1;
209
+ transition: opacity 0.3s ease;
210
+ }
211
+
212
+ .__drawer_frame.__hidden {
213
+ visibility: hidden;
214
+ opacity: 0;
215
+ pointer-events: none;
216
+ }
217
+
218
+ @media (max-width: 640px) {
219
+ .__drawer_container {
220
+ justify-content: flex-end;
221
+ }
222
+
223
+ .__drawer_frame {
224
+ border-bottom-right-radius: 0;
225
+ border-bottom-left-radius: 0;
226
+ max-width: 100%;
227
+ }
228
+ }
229
+ `,globalThis.document.head.appendChild(i);let r=globalThis.document.createElement("div");r.className="__drawer_container __hidden";let S=globalThis.document.createElement("iframe");S.className="__drawer_frame __hidden",S.id="__AUTH_DRAWER",S.setAttribute("allow","fullscreen; camera; microphone; gyroscope; accelerometer; clipboard-write; clipboard-read; autoplay; geolocation; display-capture; picture-in-picture; payment; midi; bluetooth; web-share; screen-wake-lock; xr-spatial-tracking; encrypted-media; idle-detection; hid; serial; window-management"),S.loading="eager",S.referrerPolicy="unsafe-url",S.title="Login";let l=globalThis.document.createElement("div");l.setAttribute("alt","Close"),l.className="__auth_close_button",r.appendChild(S),r.appendChild(l),globalThis.document.body.appendChild(r);let e=globalThis.document.querySelector(".__auth_close_button");function t(){r.classList.add("__hidden"),S.classList.add("__hidden");}globalThis.window.addEventListener("message",p=>{!p.data||typeof p.data!="object"||p.data.type==="closeAuthDrawer"&&t();}),e?.addEventListener("click",t),r.addEventListener("click",t);}var mt=i=>{let{email:r,phoneNumber:S}=i??{},l=r??S,e=new URLSearchParams;i&&"redirectUri"in i&&i.redirectUri?e.set("returnTo",i.redirectUri):e.set("returnTo",globalThis.window.location.pathname+globalThis.window.location.search),i?.provider&&"scope"in i&&(e.set("provider",i.provider),i.scope&&i.scope.length>0&&e.set("scope",i.scope.join(","))),i?.provider=="AC1"&&l&&e.set("identity",l),e.set("stripped","true");let t=globalThis.window.__APP_ID__;cr(`${globalThis.window.__ROOT_URL__}/setup/${t}?${e.toString()}`);};function ur(i={}){let[r,S]=useState({userId:void 0,status:"loading",signIn:mt,providers:[]});return useEffect(()=>{(async()=>{try{let t=await(await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json","x-guest-api-internal":"session",...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{}}})).json()??{};S({userId:t.userId??null,status:"authenticated",signIn:mt,providers:t?.providers??[]});}catch{if(i.required){let t=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),p=globalThis.window.__APP_ID__;globalThis.window.top?globalThis.window.top.location.href=`${globalThis.window.__ROOT_URL__}/setup/${p}?returnTo=${t}`:globalThis.window.location.href=`${globalThis.window.__ROOT_URL__}/setup/${p}?returnTo=${t}`;}else S({userId:null,status:"unauthenticated",signIn:mt,providers:[]});}})();},[i.required]),r}async function ln({channelId:i,initialData:r,broadcastOnly:S,onUpdate:l}){let e=r,t=0,p=globalThis.window.__REALTIME_DOMAIN__;if(S)return {getData(){return e},setData(v){e=v,fetch(`https://${p}/${i}`,{method:"POST",body:yt.stringify(e)}).catch(console.error),l?.(v);},destroy(){}};let c=new WebSocket(`wss://${p}/${i}`);return new Promise((v,E)=>{function o(w){try{let C=JSON.parse(w.data.toString());C?.id&&C.id>t?(e=yt.parse(C.payload),l?.(e),t=C.id):console.error("Invalid message:",w.data);}catch{console.error("Error parsing message:",w.data);}}function a(w){h(),E(w);}function n(){v({getData(){return e},setData(w){e=w,l?.(w),c.send(yt.stringify(w));},destroy:h});}function h(){c.removeEventListener("message",o),c.removeEventListener("error",a),c.removeEventListener("open",n),c.close();}c.addEventListener("message",o),c.addEventListener("error",a),c.addEventListener("open",n);})}function cn(i,r){let S=useRef(null),[l,e]=useState(0);return useEffect(()=>((async()=>i&&(S.current=await ln({channelId:i,initialData:r,onUpdate:()=>{e(t=>t+1);}})))(),S.current?.destroy),[i,e]),[S.current?.getData(),S.current?.setData??identity]}function yr(i){let[r,S]=useState(null),[l]=cn(r,void 0),e=i.mutationFn;if(!e)throw new Error("useRealtimeMutation requires a mutationFn option.");let t=useCallback(async c=>{let v=nanoid(32);return S(v),await e({...c,__channelId:v})},[i?.mutationFn]);return {...useMutation({...i,mutationFn:t}),data:l}}function un(i){return i?.message?.startsWith("__MISSING AUTH FOR SCOPE")}function hn(i){return i[0]}function wr(i){let S=i?.message?.slice("__MISSING AUTH FOR SCOPE:".length+1).trim()??"",l=JSON.parse(atob(S.split(" ")?.[0])),e=l?.provider,t=l?.scope;return {provider:e,scope:t,isPopup:i?.message?.endsWith("--popup"),accountId:l?.accountId}}var br=60,_r=30*1e3,At=0,pn=Date.now(),vt=false;function Er(){return rpcClient({transport:async(i,r)=>{let S=Date.now();if(S-pn>=_r)pn=S,At=0,vt=false;else if(At>=br)throw vt||(globalThis.window.dispatchEvent(new Event("rate-limit-exceeded")),vt=true),new RpcError("Rate limit exceeded",-32e3,{status:429});At++;let l="/api/"+i.method,e=i.params&&hn(i.params)?.__channelId;e&&delete hn(i.params)?.__channelId;let t=await fetch(l,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...e?{"x-channel-id":e}:{},...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{},"x-boxman-box-id":globalThis.window.__BOX_ID__},body:yt.stringify(i),signal:r});if(!t.ok){let c=t.statusText,v=-32e3;try{let{message:E,code:o}=await t.json();E&&(c=E),o&&(v=o);}catch{}throw c.trim()===""&&(c=`Request failed with status: ${t.status}`),new RpcError(c,v,{status:t.status})}let p=yt.deserialize(await t.json());if(un(p.error)){let c=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),v=wr(p.error),E=[`returnTo=${c}`,v.provider?`&provider=${v.provider}`:"",v.scope?`&scope=${v.scope.join(",")}`:"",v.accountId?`&accountId=${v.accountId}`:""].filter(Boolean).join("&");if(v.isPopup){globalThis.window.__OPEN_AUTH_DRAWER__(`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}&stripped=true`);return}let o=globalThis.window.top??globalThis.window;return o.location.href=`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}`,null}return p}})}function qr(i){return new Promise(r=>{let S=new globalThis.FileReader;S.onload=()=>{r(S.result);},S.readAsDataURL(i);})}function Sr(){let i={...globalThis.window.console};function r(S,l){let e=(0, mn.default)(l,{depth:5,maxStringLength:512,indent:2});fetch("/_logger",{method:"POST",body:`[console.${S.toLowerCase()}] ${e}`}).catch(()=>{});}globalThis.window.console.log=(...S)=>{r("LOG",S),i.log(...S);},globalThis.window.console.error=(...S)=>{r("ERROR",S),i.error(...S);},globalThis.window.console.info=(...S)=>{r("INFO",S),i.info(...S);},globalThis.window.console.warn=(...S)=>{r("WARN",S),i.warn(...S);};}function Tr(){function i(r,S=globalThis.window.parent,l="*"){S?.postMessage({...r,source:"iframe"},{targetOrigin:l});}globalThis.window.addEventListener("message",async r=>{let{origin:S,source:l,data:e}=r,{type:t}=e;if(t==="screenshot"){let p=globalThis.window.getComputedStyle(globalThis.document.body).backgroundColor,c=await gn.default.toPng(globalThis.document.body,{bgcolor:p,style:{transform:"translateY("+-globalThis.window.scrollY+"px)"},width:globalThis.window.innerWidth,height:globalThis.window.innerHeight,copyDefaultStyles:false}),v=await fetch(c).then(n=>n.blob()),E=await re(v,{maxSizeMB:4,maxWidthOrHeight:1920,useWebWorker:false}),a={type:"screenshot",payload:{screenshot:await re.getDataUrlFromFile(E)}};i(a,l,S);}});}function Kr({appId:i,rootUrl:r,baseUrl:S,isTesting:l,realtimeDomain:e,boxId:t}){typeof globalThis.window>"u"||globalThis.window.__APP_ID__||(globalThis.window.__APP_ID__=i,globalThis.window.__ROOT_URL__=r,globalThis.window.__BASE_URL__=S,globalThis.window.__IS_TESTING__=l,globalThis.window.__REALTIME_DOMAIN__=e,globalThis.window.__BOX_ID__=t,Tr(),Sr(),an(),globalThis.window.onerror=function(p){console.error("Global JS error:",p);},globalThis.window.onunhandledrejection=function(p){console.error("Unhandled promise rejection:",p.reason);});}function Xr(){return globalThis.window.__BASE_URL__}/*! Bundled license information:
144
230
 
145
231
  dom-to-image-more/dist/dom-to-image-more.min.js:
146
232
  (*! dom-to-image-more 23-10-2025 *)
@@ -334,14 +334,14 @@ declare let client: {
334
334
  pushToken: string | null | undefined;
335
335
  };
336
336
  _input_in: {
337
- markdown: string;
338
337
  subject: string;
338
+ markdown: string;
339
339
  toUserId: string;
340
340
  appId?: string | undefined;
341
341
  };
342
342
  _input_out: {
343
- markdown: string;
344
343
  subject: string;
344
+ markdown: string;
345
345
  toUserId: string;
346
346
  appId?: string | undefined;
347
347
  };
@@ -420,18 +420,20 @@ declare let client: {
420
420
  pushToken: string | null | undefined;
421
421
  };
422
422
  _input_in: {
423
- appId?: string | undefined;
424
- email?: string | undefined;
425
- markdown?: string | undefined;
426
- subject?: string | undefined;
423
+ appId: string;
424
+ email: string;
425
+ subject: string;
426
+ markdown: string;
427
427
  unauthenticatedLinks?: boolean | undefined;
428
+ aclLevel?: "EDITOR" | "VIEWER" | undefined;
428
429
  };
429
430
  _input_out: {
430
- appId?: string | undefined;
431
- email?: string | undefined;
432
- markdown?: string | undefined;
433
- subject?: string | undefined;
431
+ appId: string;
432
+ email: string;
433
+ subject: string;
434
+ markdown: string;
434
435
  unauthenticatedLinks?: boolean | undefined;
436
+ aclLevel?: "EDITOR" | "VIEWER" | undefined;
435
437
  };
436
438
  _output_in: typeof _trpc_server.unsetMarker;
437
439
  _output_out: typeof _trpc_server.unsetMarker;
@@ -510,12 +512,12 @@ declare let client: {
510
512
  pushToken: string | null | undefined;
511
513
  };
512
514
  _input_in: {
513
- base64: string;
514
515
  fileName: string;
516
+ base64: string;
515
517
  };
516
518
  _input_out: {
517
- base64: string;
518
519
  fileName: string;
520
+ base64: string;
519
521
  };
520
522
  _output_in: typeof _trpc_server.unsetMarker;
521
523
  _output_out: typeof _trpc_server.unsetMarker;
@@ -958,13 +960,13 @@ declare let client: {
958
960
  pushToken: string | null | undefined;
959
961
  };
960
962
  _input_in: {
961
- base64?: string | undefined;
962
963
  url?: string | undefined;
964
+ base64?: string | undefined;
963
965
  schema?: any;
964
966
  };
965
967
  _input_out: {
966
- base64?: string | undefined;
967
968
  url?: string | undefined;
969
+ base64?: string | undefined;
968
970
  schema?: any;
969
971
  };
970
972
  _output_in: typeof _trpc_server.unsetMarker;
@@ -1042,13 +1044,13 @@ declare let client: {
1042
1044
  pushToken: string | null | undefined;
1043
1045
  };
1044
1046
  _input_in: {
1045
- base64?: string | undefined;
1046
1047
  url?: string | undefined;
1048
+ base64?: string | undefined;
1047
1049
  outputFormat?: "raw" | "formatted-markdown" | undefined;
1048
1050
  };
1049
1051
  _input_out: {
1050
- base64?: string | undefined;
1051
1052
  url?: string | undefined;
1053
+ base64?: string | undefined;
1052
1054
  outputFormat?: "raw" | "formatted-markdown" | undefined;
1053
1055
  };
1054
1056
  _output_in: typeof _trpc_server.unsetMarker;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptive-ai/sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -67,14 +67,14 @@
67
67
  "browser-image-compression": "^2.0.2",
68
68
  "dom-to-image-more": "^3.7.2",
69
69
  "eslint": "^8.47.0",
70
- "eslint-config-next": "15.5.6",
71
- "eslint-config-prettier": "^9.0.0",
70
+ "eslint-config-next": "15.5.9",
71
+ "eslint-config-prettier": "^10.1.8",
72
72
  "eslint-formatter-codeframe": "^7.32.1",
73
- "eslint-plugin-prettier": "^5.0.1",
73
+ "eslint-plugin-prettier": "^5.5.4",
74
74
  "eslint-plugin-simple-import-sort": "^12.1.0",
75
75
  "npm-run-all": "^4.1.5",
76
76
  "object-inspect": "^1.13.4",
77
- "prettier": "^3.0.3",
77
+ "prettier": "^3.7.4",
78
78
  "rimraf": "^6.0.1",
79
79
  "tsup": "^8.2.4",
80
80
  "tsx": "^4.7.1",