diff --git a/app/srv/core/main.js b/app/srv/core/main.js index c146a78e..51a1d1ee 100644 --- a/app/srv/core/main.js +++ b/app/srv/core/main.js @@ -128,7 +128,7 @@ return ${h.trim()} `):" "+E1(o[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:xp};function Sp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yn(null,e)}function fu(e){return Sp(e),e.headers=Fe.from(e.headers),e.data=Os.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cu.getAdapter(e.adapter||ro.adapter)(e).then(function(r){return Sp(e),r.data=Os.call(e,e.transformResponse,r),r.headers=Fe.from(r.headers),r},function(r){return Ts(r)||(Sp(e),r&&r.response&&(r.response.data=Os.call(e,e.transformResponse,r.response),r.response.headers=Fe.from(r.response.headers))),Promise.reject(r)})}y();w();_();y();w();_();var du="1.7.2";var kp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var R1={};kp.transitional=function(t,n,r){function i(o,s){return"[Axios v"+du+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new Q(i(s," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!R1[s]&&(R1[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function rC(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],s=t[o];if(s){let l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new Q("option "+o+" must be "+c,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}}var pu={assertOptions:rC,validators:kp};var kr=pu.validators,so=class{constructor(t){this.defaults=t,this.interceptors={request:new up,response:new up}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=rn(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&pu.assertOptions(r,{silentJSONParsing:kr.transitional(kr.boolean),forcedJSONParsing:kr.transitional(kr.boolean),clarifyTimeoutError:kr.transitional(kr.boolean)},!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:pu.assertOptions(i,{encode:kr.function,serialize:kr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&I.merge(o.common,o[n.method]);o&&I.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=Fe.concat(s,o);let l=[],c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});let u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let a,p=0,f;if(!c){let h=[fu.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,u),f=h.length,a=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o,s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new yn(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new e(function(i){t=i}),cancel:t}}},C1=bp;y();w();_();function Ep(e){return function(n){return e.apply(null,n)}}y();w();_();function Rp(e){return I.isObject(e)&&e.isAxiosError===!0}y();w();_();var Cp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cp).forEach(([e,t])=>{Cp[t]=e});var I1=Cp;function O1(e){let t=new Ps(e),n=bs(Ps.prototype.request,t);return I.extend(n,Ps.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return O1(rn(e,i))},n}var De=O1(ro);De.Axios=Ps;De.CanceledError=yn;De.CancelToken=C1;De.isCancel=Ts;De.VERSION=du;De.toFormData=Sr;De.AxiosError=Q;De.Cancel=De.CanceledError;De.all=function(t){return Promise.all(t)};De.spread=Ep;De.isAxiosError=Rp;De.mergeConfig=rn;De.AxiosHeaders=Fe;De.formToJSON=e=>ou(I.isHTMLForm(e)?new FormData(e):e);De.getAdapter=cu.getAdapter;De.HttpStatusCode=I1;De.default=De;var mu=De;var{Axios:$5,AxiosError:H5,CanceledError:V5,isCancel:W5,CancelToken:G5,VERSION:Z5,all:K5,Cancel:q5,isAxiosError:X5,spread:Q5,toFormData:J5,AxiosHeaders:Y5,HttpStatusCode:eF,formToJSON:tF,getAdapter:nF,mergeConfig:rF}=mu;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var A1=typeof window<"u"?window:null,hu=typeof global<"u"?global:void 0,gu=async(e,t,n,r)=>{let i={...n},o=null,s=!1,l=null,c=[];if(Array.isArray(t))for(let f of t)f instanceof File&&(c.push(f),s=!0),typeof f=="function"&&(l=f);else t instanceof File&&(s=!0,c.push(t));if(!s)o=JSON.stringify(t),i["content-type"]="aplication/json";else{let f=new FormData;for(let d of c)f.append(d.name,d);o=f,delete i["content-type"],i.enctype="multipart/form-data;"}let u=new URL(e);if(A1!==null){let f=new URL(location.href),d="";if(u.host===f.host||hu&&typeof hu.server_hook=="function"?d=u.toString():d=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(u.toString())}`,d){if(l)return(await mu({method:t?"post":void 0,url:d,data:o,onUploadProgress:l})).data;{let S=await(await fetch(d,t?{method:"POST",body:o,headers:i}:void 0)).text();if(r===!1)return S;try{return JSON.parse(S,T1)}catch{return S}}}}let p=await(await fetch(u,t?{method:"POST",body:o,headers:i}:void 0)).text();try{return JSON.parse(p,T1)}catch{return p}},T1=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t,N1=e=>{let t=new URL(e);if(A1!==null){let n=new URL(location.href),r="";return t.host===n.host||hu&&typeof hu.server_hook=="function"?r=t.toString():r=`${n.protocol}//${n.host}/_proxy/${encodeURIComponent(t.toString())}`,r}return t};y();w();_();var Ip=Z(rp()),P1=async(e,t)=>{let n=(0,Ip.default)(e,"/");await new Promise(r=>{let i=document,o=i.createElement("script");o.onload=async()=>{r()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let s=localStorage.getItem("api-ts-"+n),l=new URL(n),c=new URL(location.href);c.hash="",l.hash="";let u="";l.host!==c.host&&(u="&remote=1"),c.pathname="";let a=(0,Ip.default)(c.toString(),"/");t?o.src=`${a}/_prasi/load.js?url=${n}&v3&dev=1${u}`:o.src=`${a}/_prasi/load.js?url=${n}&v3${u}`,o.onerror=()=>{r()},document.querySelector(`script[src="${o.src}"]`)?r():i.body.appendChild(o)})};var Ls={},D1=e=>{zn.prasiApi||(zn.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return zn.prasiApi[n]||Ls[n]||(Ls[n]=P1(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,i)=>{if(i==="_url")return(s,l)=>{let c=new URL(n);c.pathname=s.split("/").filter(p=>p).join("/");let u=new URL(location.href),a="";return c.host===u.host||l===!1?a=c.toString():a=`${u.protocol}//${u.host}/_proxy/${encodeURIComponent(c.toString())}`,a};let o=s=>function(...l){return new Promise(async(c,u)=>{try{let a=zn.prasiApi[n];if(!a&&Ls&&typeof Ls[n]=="object"&&(await Ls[n],a=zn.prasiApi[n]),a){if(s==="_raw"){let d=l[0],h=`${n}${d}`,S=await L1(h,l.slice(1));c(S);return}if(a.apiEntry||(a.apiEntry={}),a.apiEntry&&!a.apiEntry[s]){u(`API ${s.toString()} not found, existing API: - ${Object.keys(a.apiEntry||{}).join(` - - `)}`);return}let p=a.apiEntry[s].url,f=a.apiEntry[s].args;if(p&&f){if(l.length>0&&f.length>0)for(let[S,k]of Object.entries(l)){let m=f[parseInt(S)];f&&f.includes(m)&&k&&typeof k!="string"&&typeof k!="number"||(p=p.replace(`:${m}?`,k+""),p=p.replace(`:${m}`,k+""))}let d=`${n}${p}`,h=await L1(d,l);c(h)}else console.error(`API Not Found: ${s.toString()}`)}else u("Failed to load API [Proxy]: "+n)}catch(a){u(a)}})};return i==="then"?new Proxy({},{get:(s,l)=>o(l)}):o(i)}})}catch{return null}},L1=async(e,t)=>await gu(e,t,{"content-type":"application/json"});y();w();_();var ox=Z(z1());y();w();_();function po(e){let t=e.length;for(;--t>=0;)e[t]=0}var aC=0,kv=1,uC=2,cC=3,fC=258,Jp=29,qs=256,Bs=qs+1+Jp,uo=30,Yp=19,bv=2*Bs+1,ti=15,Op=16,dC=7,em=256,Ev=16,Rv=17,Cv=18,Hp=new Uint8Array([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]),Su=new Uint8Array([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]),pC=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Iv=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mC=512,$n=new Array((Bs+2)*2);po($n);var zs=new Array(uo*2);po(zs);var $s=new Array(mC);po($s);var Hs=new Array(fC-cC+1);po(Hs);var tm=new Array(Jp);po(tm);var ku=new Array(uo);po(ku);function Tp(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var Ov,Tv,Av;function Ap(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var Nv=e=>e<256?$s[e]:$s[256+(e>>>7)],Vs=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},xt=(e,t,n)=>{e.bi_valid>Op-n?(e.bi_buf|=t<>Op-e.bi_valid,e.bi_valid+=n-Op):(e.bi_buf|=t<{xt(e,n[t*2],n[t*2+1])},Pv=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},hC=e=>{e.bi_valid===16?(Vs(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},gC=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,c=t.stat_desc.max_length,u,a,p,f,d,h,S=0;for(f=0;f<=ti;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(f=c,S++),n[a*2+1]=f,!(a>r)&&(e.bl_count[f]++,d=0,a>=l&&(d=s[a-l]),h=n[a*2],e.opt_len+=h*(f+d),o&&(e.static_len+=h*(i[a*2+1]+d)));if(S!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,S-=2}while(S>0);for(f=c;f!==0;f--)for(a=e.bl_count[f];a!==0;)p=e.heap[--u],!(p>r)&&(n[p*2+1]!==f&&(e.opt_len+=(f-n[p*2+1])*n[p*2],n[p*2+1]=f),a--)}},Lv=(e,t,n)=>{let r=new Array(ti+1),i=0,o,s;for(o=1;o<=ti;o++)i=i+n[o-1]<<1,r[o]=i;for(s=0;s<=t;s++){let l=e[s*2+1];l!==0&&(e[s*2]=Pv(r[l]++,l))}},yC=()=>{let e,t,n,r,i,o=new Array(ti+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Vs(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},F1=(e,t,n,r)=>{let i=t*2,o=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,o=0,s,l;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],r===0?wn(e,i,t):(s=Hs[i],wn(e,s+qs+1,t),l=Hp[s],l!==0&&(i-=tm[s],xt(e,i,l)),r--,s=Nv(r),wn(e,s,n),l=Su[s],l!==0&&(r-=ku[s],xt(e,r,l)));while(o{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems,s,l,c=-1,u;for(e.heap_len=0,e.heap_max=bv,s=0;s>1;s>=1;s--)Np(e,n,s);u=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Np(e,n,1),l=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=l,n[u*2]=n[s*2]+n[l*2],e.depth[u]=(e.depth[s]>=e.depth[l]?e.depth[s]:e.depth[l])+1,n[s*2+1]=n[l*2+1]=u,e.heap[1]=u++,Np(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gC(e,t),Lv(n,c,e.bl_count)},B1=(e,t,n)=>{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=s,s=t[(r+1)*2+1],!(++l{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),r=0;r<=n;r++)if(o=s,s=t[(r+1)*2+1],!(++l{let t;for(B1(e,e.dyn_ltree,e.l_desc.max_code),B1(e,e.dyn_dtree,e.d_desc.max_code),Vp(e,e.bl_desc),t=Yp-1;t>=3&&e.bl_tree[Iv[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},wC=(e,t,n,r)=>{let i;for(xt(e,t-257,5),xt(e,n-1,5),xt(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return 1;for(n=32;n{H1||(yC(),H1=!0),e.l_desc=new Ap(e.dyn_ltree,Ov),e.d_desc=new Ap(e.dyn_dtree,Tv),e.bl_desc=new Ap(e.bl_tree,Av),e.bi_buf=0,e.bi_valid=0,Dv(e)},jv=(e,t,n,r)=>{xt(e,(aC<<1)+(r?1:0),3),Mv(e),Vs(e,n),Vs(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},SC=e=>{xt(e,kv<<1,3),wn(e,em,$n),hC(e)},kC=(e,t,n,r)=>{let i,o,s=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=vC(e)),Vp(e,e.l_desc),Vp(e,e.d_desc),s=_C(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?jv(e,t,n,r):e.strategy===4||o===i?(xt(e,(kv<<1)+(r?1:0),3),U1(e,$n,zs)):(xt(e,(uC<<1)+(r?1:0),3),wC(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),U1(e,e.dyn_ltree,e.dyn_dtree)),Dv(e),r&&Mv(e)},bC=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Hs[n]+qs+1)*2]++,e.dyn_dtree[Nv(t)*2]++),e.sym_next===e.sym_end),EC=xC,RC=jv,CC=kC,IC=bC,OC=SC,TC={_tr_init:EC,_tr_stored_block:RC,_tr_flush_block:CC,_tr_tally:IC,_tr_align:OC},AC=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do i=i+t[r++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0},Ws=AC,NC=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},PC=new Uint32Array(NC()),LC=(e,t,n,r)=>{let i=PC,o=r+n;e^=-1;for(let s=r;s>>8^i[(e^t[s])&255];return e^-1},We=LC,ii={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},li={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:DC,_tr_stored_block:Wp,_tr_flush_block:MC,_tr_tally:Rr,_tr_align:jC}=TC,{Z_NO_FLUSH:Cr,Z_PARTIAL_FLUSH:zC,Z_FULL_FLUSH:FC,Z_FINISH:Gt,Z_BLOCK:V1,Z_OK:et,Z_STREAM_END:W1,Z_STREAM_ERROR:vn,Z_DATA_ERROR:UC,Z_BUF_ERROR:Pp,Z_DEFAULT_COMPRESSION:BC,Z_FILTERED:$C,Z_HUFFMAN_ONLY:yu,Z_RLE:HC,Z_FIXED:VC,Z_DEFAULT_STRATEGY:WC,Z_UNKNOWN:GC,Z_DEFLATED:Ru}=li,ZC=9,KC=15,qC=8,XC=29,QC=256,Gp=QC+1+XC,JC=30,YC=19,e3=2*Gp+1,t3=15,se=3,Er=258,xn=Er+se+1,n3=32,co=42,nm=57,Zp=69,Kp=73,qp=91,Xp=103,ni=113,Ms=666,dt=1,mo=2,oi=3,ho=4,r3=3,ri=(e,t)=>(e.msg=ii[t],t),G1=e=>e*2-(e>4?9:0),br=e=>{let t=e.length;for(;--t>=0;)e[t]=0},i3=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},o3=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},At=(e,t)=>{MC(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Tt(e.strm)},ce=(e,t)=>{e.pending_buf[e.pending++]=t},Ds=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Qp=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Ws(e.adler,t,i,n):e.state.wrap===2&&(e.adler=We(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},zv=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,o,s=e.prev_length,l=e.nice_match,c=e.strstart>e.w_size-xn?e.strstart-(e.w_size-xn):0,u=e.window,a=e.w_mask,p=e.prev,f=e.strstart+Er,d=u[r+s-1],h=u[r+s];e.prev_length>=e.good_match&&(n>>=2),l>e.lookahead&&(l=e.lookahead);do if(i=t,!(u[i+s]!==h||u[i+s-1]!==d||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&rs){if(e.match_start=t,s=o,o>=l)break;d=u[r+s-1],h=u[r+s]}}while((t=p[t&a])>c&&--n!==0);return s<=e.lookahead?s:e.lookahead},fo=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-xn)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),i3(e),r+=t),e.strm.avail_in===0)break;if(n=Qp(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=se)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ir(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ir(e,e.ins_h,e.window[i+se-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,o,s=0,l=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Tt(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Qp(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(s===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(Qp(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=n||(i||t===Gt)&&t!==Cr&&e.strm.avail_in===0&&i<=o)&&(r=i>o?o:i,s=t===Gt&&e.strm.avail_in===0&&r===i?1:0,Wp(e,e.block_start,r,s),e.block_start+=r,Tt(e.strm)),s?oi:dt)},Lp=(e,t)=>{let n,r;for(;;){if(e.lookahead=se&&(e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-xn&&(e.match_length=zv(e,n)),e.match_length>=se)if(r=Rr(e,e.strstart-e.match_start,e.match_length-se),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=se){e.match_length--;do e.strstart++,e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+1]);else r=Rr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(At(e,!1),e.strm.avail_out===0))return dt}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=se&&(e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=se-1,n!==0&&e.prev_length4096)&&(e.match_length=se-1)),e.prev_length>=se&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-se,r=Rr(e,e.strstart-1-e.prev_match,e.prev_length-se),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=se-1,e.strstart++,r&&(At(e,!1),e.strm.avail_out===0))return dt}else if(e.match_available){if(r=Rr(e,0,e.window[e.strstart-1]),r&&At(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return dt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Rr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,o,s=e.window;for(;;){if(e.lookahead<=Er){if(fo(e),e.lookahead<=Er&&t===Cr)return dt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=se&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+Er;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=se?(n=Rr(e,1,e.match_length-se),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Rr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(At(e,!1),e.strm.avail_out===0))return dt}return e.insert=0,t===Gt?(At(e,!0),e.strm.avail_out===0?oi:ho):e.sym_next&&(At(e,!1),e.strm.avail_out===0)?dt:mo},l3=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(fo(e),e.lookahead===0)){if(t===Cr)return dt;break}if(e.match_length=0,n=Rr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(At(e,!1),e.strm.avail_out===0))return dt}return e.insert=0,t===Gt?(At(e,!0),e.strm.avail_out===0?oi:ho):e.sym_next&&(At(e,!1),e.strm.avail_out===0)?dt:mo};function _n(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var js=[new _n(0,0,0,0,Fv),new _n(4,4,8,4,Lp),new _n(4,5,16,8,Lp),new _n(4,6,32,32,Lp),new _n(4,4,16,16,lo),new _n(8,16,32,32,lo),new _n(8,16,128,128,lo),new _n(8,32,128,256,lo),new _n(32,128,258,1024,lo),new _n(32,258,258,4096,lo)],a3=e=>{e.window_size=2*e.w_size,br(e.head),e.max_lazy_match=js[e.level].max_lazy,e.good_match=js[e.level].good_length,e.nice_match=js[e.level].nice_length,e.max_chain_length=js[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=se-1,e.match_available=0,e.ins_h=0};function u3(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ru,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(e3*2),this.dyn_dtree=new Uint16Array((2*JC+1)*2),this.bl_tree=new Uint16Array((2*YC+1)*2),br(this.dyn_ltree),br(this.dyn_dtree),br(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(t3+1),this.heap=new Uint16Array(2*Gp+1),br(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Gp+1),br(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Xs=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==co&&t.status!==nm&&t.status!==Zp&&t.status!==Kp&&t.status!==qp&&t.status!==Xp&&t.status!==ni&&t.status!==Ms?1:0},Uv=e=>{if(Xs(e))return ri(e,vn);e.total_in=e.total_out=0,e.data_type=GC;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?nm:t.wrap?co:ni,e.adler=t.wrap===2?0:1,t.last_flush=-2,DC(t),et},Bv=e=>{let t=Uv(e);return t===et&&a3(e.state),t},c3=(e,t)=>Xs(e)||e.state.wrap!==2?vn:(e.state.gzhead=t,et),$v=(e,t,n,r,i,o)=>{if(!e)return vn;let s=1;if(t===BC&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>ZC||n!==Ru||r<8||r>15||t<0||t>9||o<0||o>VC||r===8&&s!==1)return ri(e,vn);r===8&&(r=9);let l=new u3;return e.state=l,l.strm=e,l.status=co,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<$v(e,t,Ru,KC,qC,WC),d3=(e,t)=>{if(Xs(e)||t>V1||t<0)return e?ri(e,vn):vn;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Ms&&t!==Gt)return ri(e,e.avail_out===0?Pp:vn);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Tt(e),e.avail_out===0)return n.last_flush=-1,et}else if(e.avail_in===0&&G1(t)<=G1(r)&&t!==Gt)return ri(e,Pp);if(n.status===Ms&&e.avail_in!==0)return ri(e,Pp);if(n.status===co&&n.wrap===0&&(n.status=ni),n.status===co){let i=Ru+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=yu||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,i|=o<<6,n.strstart!==0&&(i|=n3),i+=31-i%31,Ds(n,i),n.strstart!==0&&(Ds(n,e.adler>>>16),Ds(n,e.adler&65535)),e.adler=1,n.status=ni,Tt(e),n.pending!==0)return n.last_flush=-1,et}if(n.status===nm){if(e.adler=0,ce(n,31),ce(n,139),ce(n,8),n.gzhead)ce(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),ce(n,n.gzhead.time&255),ce(n,n.gzhead.time>>8&255),ce(n,n.gzhead.time>>16&255),ce(n,n.gzhead.time>>24&255),ce(n,n.level===9?2:n.strategy>=yu||n.level<2?4:0),ce(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(ce(n,n.gzhead.extra.length&255),ce(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=We(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Zp;else if(ce(n,0),ce(n,0),ce(n,0),ce(n,0),ce(n,0),ce(n,n.level===9?2:n.strategy>=yu||n.level<2?4:0),ce(n,r3),n.status=ni,Tt(e),n.pending!==0)return n.last_flush=-1,et}if(n.status===Zp){if(n.gzhead.extra){let i=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let l=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=l,Tt(e),n.pending!==0)return n.last_flush=-1,et;i=0,o-=l}let s=new Uint8Array(n.gzhead.extra);n.pending_buf.set(s.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Kp}if(n.status===Kp){if(n.gzhead.name){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),Tt(e),n.pending!==0)return n.last_flush=-1,et;i=0}n.gzindexi&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=qp}if(n.status===qp){if(n.gzhead.comment){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),Tt(e),n.pending!==0)return n.last_flush=-1,et;i=0}n.gzindexi&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i))}n.status=Xp}if(n.status===Xp){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Tt(e),n.pending!==0))return n.last_flush=-1,et;ce(n,e.adler&255),ce(n,e.adler>>8&255),e.adler=0}if(n.status=ni,Tt(e),n.pending!==0)return n.last_flush=-1,et}if(e.avail_in!==0||n.lookahead!==0||t!==Cr&&n.status!==Ms){let i=n.level===0?Fv(n,t):n.strategy===yu?l3(n,t):n.strategy===HC?s3(n,t):js[n.level].func(n,t);if((i===oi||i===ho)&&(n.status=Ms),i===dt||i===oi)return e.avail_out===0&&(n.last_flush=-1),et;if(i===mo&&(t===zC?jC(n):t!==V1&&(Wp(n,0,0,!1),t===FC&&(br(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Tt(e),e.avail_out===0))return n.last_flush=-1,et}return t!==Gt?et:n.wrap<=0?W1:(n.wrap===2?(ce(n,e.adler&255),ce(n,e.adler>>8&255),ce(n,e.adler>>16&255),ce(n,e.adler>>24&255),ce(n,e.total_in&255),ce(n,e.total_in>>8&255),ce(n,e.total_in>>16&255),ce(n,e.total_in>>24&255)):(Ds(n,e.adler>>>16),Ds(n,e.adler&65535)),Tt(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?et:W1)},p3=e=>{if(Xs(e))return vn;let t=e.state.status;return e.state=null,t===ni?ri(e,UC):et},m3=(e,t)=>{let n=t.length;if(Xs(e))return vn;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==co||r.lookahead)return vn;if(i===1&&(e.adler=Ws(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(br(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}let o=e.avail_in,s=e.next_in,l=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,fo(r);r.lookahead>=se;){let c=r.strstart,u=r.lookahead-(se-1);do r.ins_h=Ir(r,r.ins_h,r.window[c+se-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=se-1,fo(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=se-1,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,r.wrap=i,et},h3=f3,g3=$v,y3=Bv,_3=Uv,w3=c3,v3=d3,x3=p3,S3=m3,k3="pako deflate (from Nodeca project)",Fs={deflateInit:h3,deflateInit2:g3,deflateReset:y3,deflateResetKeep:_3,deflateSetHeader:w3,deflate:v3,deflateEnd:x3,deflateSetDictionary:S3,deflateInfo:k3},b3=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),E3=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)b3(n,r)&&(e[r]=n[r])}}return e},R3=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Gs[254]=Gs[254]=1;var C3=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,s=e.length,l=0;for(i=0;i>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t},I3=(e,t)=>{if(t<65534&&e.subarray&&Hv)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,o=new Array(n*2);for(i=0,r=0;r4){o[i++]=65533,r+=l-1;continue}for(s&=l===2?31:l===3?15:7;l>1&&r1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return I3(o,i)},T3=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Gs[e[n]]>t?n:t},Zs={string2buf:C3,buf2string:O3,utf8border:T3};function A3(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Vv=A3,Wv=Object.prototype.toString,{Z_NO_FLUSH:N3,Z_SYNC_FLUSH:P3,Z_FULL_FLUSH:L3,Z_FINISH:D3,Z_OK:bu,Z_STREAM_END:M3,Z_DEFAULT_COMPRESSION:j3,Z_DEFAULT_STRATEGY:z3,Z_DEFLATED:F3}=li;function Qs(e){this.options=Cu.assign({level:j3,method:F3,chunkSize:16384,windowBits:15,memLevel:8,strategy:z3},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vv,this.strm.avail_out=0;let n=Fs.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==bu)throw new Error(ii[n]);if(t.header&&Fs.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Zs.string2buf(t.dictionary):Wv.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Fs.deflateSetDictionary(this.strm,r),n!==bu)throw new Error(ii[n]);this._dict_set=!0}}Qs.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?D3:N3,typeof e=="string"?n.input=Zs.string2buf(e):Wv.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===P3||o===L3)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Fs.deflate(n,o),i===M3)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Fs.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===bu;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Qs.prototype.onData=function(e){this.chunks.push(e)};Qs.prototype.onEnd=function(e){e===bu&&(this.result=Cu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rm(e,t){let n=new Qs(t);if(n.push(e,!0),n.err)throw n.msg||ii[n.err];return n.result}function U3(e,t){return t=t||{},t.raw=!0,rm(e,t)}function B3(e,t){return t=t||{},t.gzip=!0,rm(e,t)}var $3=Qs,H3=rm,V3=U3,W3=B3,G3=li,Z3={Deflate:$3,deflate:H3,deflateRaw:V3,gzip:W3,constants:G3},_u=16209,K3=16191,q3=function(t,n){let r,i,o,s,l,c,u,a,p,f,d,h,S,k,m,g,v,x,N,L,P,D,V,F,G=t.state;r=t.next_in,V=t.input,i=r+(t.avail_in-5),o=t.next_out,F=t.output,s=o-(n-t.avail_out),l=o+(t.avail_out-257),c=G.dmax,u=G.wsize,a=G.whave,p=G.wnext,f=G.window,d=G.hold,h=G.bits,S=G.lencode,k=G.distcode,m=(1<>>24,d>>>=x,h-=x,x=v>>>16&255,x===0)F[o++]=v&65535;else if(x&16){N=v&65535,x&=15,x&&(h>>=x,h-=x),h<15&&(d+=V[r++]<>>24,d>>>=x,h-=x,x=v>>>16&255,x&16){if(L=v&65535,x&=15,hc){t.msg="invalid distance too far back",G.mode=_u;break e}if(d>>>=x,h-=x,x=o-s,L>x){if(x=L-x,x>a&&G.sane){t.msg="invalid distance too far back",G.mode=_u;break e}if(P=0,D=f,p===0){if(P+=u-x,x2;)F[o++]=D[P++],F[o++]=D[P++],F[o++]=D[P++],N-=3;N&&(F[o++]=D[P++],N>1&&(F[o++]=D[P++]))}else{P=o-L;do F[o++]=F[P++],F[o++]=F[P++],F[o++]=F[P++],N-=3;while(N>2);N&&(F[o++]=F[P++],N>1&&(F[o++]=F[P++]))}}else if(x&64){t.msg="invalid distance code",G.mode=_u;break e}else{v=k[(v&65535)+(d&(1<>3,r-=N,h-=N<<3,d&=(1<{let c=l.bits,u=0,a=0,p=0,f=0,d=0,h=0,S=0,k=0,m=0,g=0,v,x,N,L,P,D=null,V,F=new Uint16Array(ao+1),G=new Uint16Array(ao+1),Ge=null,fi,O,B;for(u=0;u<=ao;u++)F[u]=0;for(a=0;a=1&&F[f]===0;f--);if(d>f&&(d=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(e===q1||f!==1))return-1;for(G[1]=0,u=1;uZ1||e===X1&&m>K1)return 1;for(;;){fi=u-S,s[a]+1=V?(O=Ge[s[a]-V],B=D[s[a]-V]):(O=96,B=0),v=1<>S)+x]=fi<<24|O<<16|B|0;while(x!==0);for(v=1<>=1;if(v!==0?(g&=v-1,g+=v):g=0,a++,--F[u]===0){if(u===f)break;u=t[n+s[a]]}if(u>d&&(g&L)!==N){for(S===0&&(S=d),P+=p,h=u-S,k=1<Z1||e===X1&&m>K1)return 1;N=g&L,i[N]=d<<24|h<<16|P-o|0}}return g!==0&&(i[P+g]=u-S<<24|64<<16|0),l.bits=d,0},Us=eI,tI=0,Gv=1,Zv=2,{Z_FINISH:Q1,Z_BLOCK:nI,Z_TREES:wu,Z_OK:si,Z_STREAM_END:rI,Z_NEED_DICT:iI,Z_STREAM_ERROR:Zt,Z_DATA_ERROR:Kv,Z_MEM_ERROR:qv,Z_BUF_ERROR:oI,Z_DEFLATED:J1}=li,Iu=16180,Y1=16181,ev=16182,tv=16183,nv=16184,rv=16185,iv=16186,ov=16187,sv=16188,lv=16189,Eu=16190,Bn=16191,Mp=16192,av=16193,jp=16194,uv=16195,cv=16196,fv=16197,dv=16198,vu=16199,xu=16200,pv=16201,mv=16202,hv=16203,gv=16204,yv=16205,zp=16206,_v=16207,wv=16208,be=16209,Xv=16210,Qv=16211,sI=852,lI=592,aI=15,uI=aI,vv=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function cI(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var ai=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.modeQv?1:0},Jv=e=>{if(ai(e))return Zt;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Iu,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(sI),t.distcode=t.distdyn=new Int32Array(lI),t.sane=1,t.back=-1,si},Yv=e=>{if(ai(e))return Zt;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Jv(e)},ex=(e,t)=>{let n;if(ai(e))return Zt;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Zt:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Yv(e))},tx=(e,t)=>{if(!e)return Zt;let n=new cI;e.state=n,n.strm=e,n.window=null,n.mode=Iu;let r=ex(e,t);return r!==si&&(e.state=null),r},fI=e=>tx(e,uI),xv=!0,Fp,Up,dI=e=>{if(xv){Fp=new Int32Array(512),Up=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Us(Gv,e.lens,0,288,Fp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Us(Zv,e.lens,0,32,Up,0,e.work,{bits:5}),xv=!1}e.lencode=Fp,e.lenbits=9,e.distcode=Up,e.distbits=5},nx=(e,t,n,r)=>{let i,o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,i,o,s,l,c,u,a,p,f,d,h,S,k=0,m,g,v,x,N,L,P,D,V=new Uint8Array(4),F,G,Ge=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ai(e)||!e.output||!e.input&&e.avail_in!==0)return Zt;n=e.state,n.mode===Bn&&(n.mode=Mp),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,p=l,f=c,D=si;e:for(;;)switch(n.mode){case Iu:if(n.wrap===0){n.mode=Mp;break}for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=We(n.check,V,2,0),u=0,a=0,n.mode=Y1;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=be;break}if((u&15)!==J1){e.msg="unknown compression method",n.mode=be;break}if(u>>>=4,a-=4,P=(u&15)+8,n.wbits===0&&(n.wbits=P),P>15||P>n.wbits){e.msg="invalid window size",n.mode=be;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(V[0]=u&255,V[1]=u>>>8&255,n.check=We(n.check,V,2,0)),u=0,a=0,n.mode=ev;case ev:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>8&255,V[2]=u>>>16&255,V[3]=u>>>24&255,n.check=We(n.check,V,4,0)),u=0,a=0,n.mode=tv;case tv:for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(V[0]=u&255,V[1]=u>>>8&255,n.check=We(n.check,V,2,0)),u=0,a=0,n.mode=nv;case nv:if(n.flags&1024){for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=We(n.check,V,2,0)),u=0,a=0}else n.head&&(n.head.extra=null);n.mode=rv;case rv:if(n.flags&1024&&(d=n.length,d>l&&(d=l),d&&(n.head&&(P=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+d),P)),n.flags&512&&n.wrap&4&&(n.check=We(n.check,r,d,o)),l-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=iv;case iv:if(n.flags&2048){if(l===0)break e;d=0;do P=r[o+d++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P));while(P&&d>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Bn;break;case lv:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>=a&7,a-=a&7,n.mode=zp;break}for(;a<3;){if(l===0)break e;l--,u+=r[o++]<>>=1,a-=1,u&3){case 0:n.mode=av;break;case 1:if(dI(n),n.mode=vu,t===wu){u>>>=2,a-=2;break e}break;case 2:n.mode=cv;break;case 3:e.msg="invalid block type",n.mode=be}u>>>=2,a-=2;break;case av:for(u>>>=a&7,a-=a&7;a<32;){if(l===0)break e;l--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=be;break}if(n.length=u&65535,u=0,a=0,n.mode=jp,t===wu)break e;case jp:n.mode=uv;case uv:if(d=n.length,d){if(d>l&&(d=l),d>c&&(d=c),d===0)break e;i.set(r.subarray(o,o+d),s),l-=d,o+=d,c-=d,s+=d,n.length-=d;break}n.mode=Bn;break;case cv:for(;a<14;){if(l===0)break e;l--,u+=r[o++]<>>=5,a-=5,n.ndist=(u&31)+1,u>>>=5,a-=5,n.ncode=(u&15)+4,u>>>=4,a-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=be;break}n.have=0,n.mode=fv;case fv:for(;n.have>>=3,a-=3}for(;n.have<19;)n.lens[Ge[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,F={bits:n.lenbits},D=Us(tI,n.lens,0,19,n.lencode,0,n.work,F),n.lenbits=F.bits,D){e.msg="invalid code lengths set",n.mode=be;break}n.have=0,n.mode=dv;case dv:for(;n.have>>24,g=k>>>16&255,v=k&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=m,a-=m,n.lens[n.have++]=v;else{if(v===16){for(G=m+2;a>>=m,a-=m,n.have===0){e.msg="invalid bit length repeat",n.mode=be;break}P=n.lens[n.have-1],d=3+(u&3),u>>>=2,a-=2}else if(v===17){for(G=m+3;a>>=m,a-=m,P=0,d=3+(u&7),u>>>=3,a-=3}else{for(G=m+7;a>>=m,a-=m,P=0,d=11+(u&127),u>>>=7,a-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=be;break}for(;d--;)n.lens[n.have++]=P}}if(n.mode===be)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=be;break}if(n.lenbits=9,F={bits:n.lenbits},D=Us(Gv,n.lens,0,n.nlen,n.lencode,0,n.work,F),n.lenbits=F.bits,D){e.msg="invalid literal/lengths set",n.mode=be;break}if(n.distbits=6,n.distcode=n.distdyn,F={bits:n.distbits},D=Us(Zv,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,F),n.distbits=F.bits,D){e.msg="invalid distances set",n.mode=be;break}if(n.mode=vu,t===wu)break e;case vu:n.mode=xu;case xu:if(l>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=u,n.bits=a,q3(e,f),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,n.mode===Bn&&(n.back=-1);break}for(n.back=0;k=n.lencode[u&(1<>>24,g=k>>>16&255,v=k&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>x)],m=k>>>24,g=k>>>16&255,v=k&65535,!(x+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=x,a-=x,n.back+=x}if(u>>>=m,a-=m,n.back+=m,n.length=v,g===0){n.mode=yv;break}if(g&32){n.back=-1,n.mode=Bn;break}if(g&64){e.msg="invalid literal/length code",n.mode=be;break}n.extra=g&15,n.mode=pv;case pv:if(n.extra){for(G=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=mv;case mv:for(;k=n.distcode[u&(1<>>24,g=k>>>16&255,v=k&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>x)],m=k>>>24,g=k>>>16&255,v=k&65535,!(x+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=x,a-=x,n.back+=x}if(u>>>=m,a-=m,n.back+=m,g&64){e.msg="invalid distance code",n.mode=be;break}n.offset=v,n.extra=g&15,n.mode=hv;case hv:if(n.extra){for(G=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=be;break}n.mode=gv;case gv:if(c===0)break e;if(d=f-c,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=be;break}d>n.wnext?(d-=n.wnext,h=n.wsize-d):h=n.wnext-d,d>n.length&&(d=n.length),S=n.window}else S=i,h=s-n.offset,d=n.length;d>c&&(d=c),c-=d,n.length-=d;do i[s++]=S[h++];while(--d);n.length===0&&(n.mode=xu);break;case yv:if(c===0)break e;i[s++]=n.length,c--,n.mode=xu;break;case zp:if(n.wrap){for(;a<32;){if(l===0)break e;l--,u|=r[o++]<{if(ai(e))return Zt;let t=e.state;return t.window&&(t.window=null),e.state=null,si},hI=(e,t)=>{if(ai(e))return Zt;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,si):Zt},gI=(e,t)=>{let n=t.length,r,i,o;return ai(e)||(r=e.state,r.wrap!==0&&r.mode!==Eu)?Zt:r.mode===Eu&&(i=1,i=Ws(i,t,n,0),i!==r.check)?Kv:(o=nx(e,t,n,n),o?(r.mode=Xv,qv):(r.havedict=1,si))},yI=Yv,_I=ex,wI=Jv,vI=fI,xI=tx,SI=pI,kI=mI,bI=hI,EI=gI,RI="pako inflate (from Nodeca project)",Hn={inflateReset:yI,inflateReset2:_I,inflateResetKeep:wI,inflateInit:vI,inflateInit2:xI,inflate:SI,inflateEnd:kI,inflateGetHeader:bI,inflateSetDictionary:EI,inflateInfo:RI};function CI(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var II=CI,rx=Object.prototype.toString,{Z_NO_FLUSH:OI,Z_FINISH:TI,Z_OK:Ks,Z_STREAM_END:Bp,Z_NEED_DICT:$p,Z_STREAM_ERROR:AI,Z_DATA_ERROR:Sv,Z_MEM_ERROR:NI}=li;function Js(e){this.options=Cu.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vv,this.strm.avail_out=0;let n=Hn.inflateInit2(this.strm,t.windowBits);if(n!==Ks)throw new Error(ii[n]);if(this.header=new II,Hn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Zs.string2buf(t.dictionary):rx.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Hn.inflateSetDictionary(this.strm,t.dictionary),n!==Ks)))throw new Error(ii[n])}Js.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,o,s,l;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?TI:OI,rx.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Hn.inflate(n,s),o===$p&&i&&(o=Hn.inflateSetDictionary(n,i),o===Ks?o=Hn.inflate(n,s):o===Sv&&(o=$p));n.avail_in>0&&o===Bp&&n.state.wrap>0&&e[n.next_in]!==0;)Hn.inflateReset(n),o=Hn.inflate(n,s);switch(o){case AI:case Sv:case $p:case NI:return this.onEnd(o),this.ended=!0,!1}if(l=n.avail_out,n.next_out&&(n.avail_out===0||o===Bp))if(this.options.to==="string"){let c=Zs.utf8border(n.output,n.next_out),u=n.next_out-c,a=Zs.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(a)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Ks&&l===0)){if(o===Bp)return o=Hn.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Js.prototype.onData=function(e){this.chunks.push(e)};Js.prototype.onEnd=function(e){e===Ks&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function im(e,t){let n=new Js(t);if(n.push(e),n.err)throw n.msg||ii[n.err];return n.result}function PI(e,t){return t=t||{},t.raw=!0,im(e,t)}var LI=Js,DI=im,MI=PI,jI=im,zI=li,FI={Inflate:LI,inflate:DI,inflateRaw:MI,ungzip:jI,constants:zI},{Deflate:UI,deflate:BI,deflateRaw:$I,gzip:HI}=Z3,{Inflate:VI,inflate:WI,inflateRaw:GI,ungzip:ZI}=FI,KI=UI,qI=BI,XI=$I,om=HI,QI=VI,JI=WI,YI=GI,eO=ZI,tO=li,ix={Deflate:KI,deflate:qI,deflateRaw:XI,gzip:om,Inflate:QI,inflate:JI,inflateRaw:YI,ungzip:eO,constants:tO};var Vn={tables:{},columns:{},rels:{}},Ou={},sx=e=>{let t="";return Ou[e]||Or({table:"check",action:"check"},e).then(n=>{n&&n.mode==="encrypted"?Ou[e]="msgpack":Ou[e]="json"}),new Proxy({},{get(n,r){return r==="_batch"?{update:async i=>Or({name:t,action:"batch_update",table:"",params:{batch:i}},e),upsert:async i=>Or({name:t,action:"batch_upsert",table:"",params:{arg:i}},e)}:r==="_schema"?{tables:async()=>(Vn.tables[e]||(Vn.tables[e]=Or({name:t,action:"schema_tables",table:"",params:[]},e)),await Vn.tables[e]),columns:async i=>(Vn.columns[e+"_"+i]||(Vn.columns[e+"_"+i]=Or({name:t,action:"schema_columns",table:i,params:[]},e)),await Vn.columns[e+"_"+i]),rels:async i=>(Vn.rels[e+"_"+i]||(Vn.rels[e+"_"+i]=Or({name:t,action:"schema_rels",table:i,params:[]},e)),await Vn.rels[e+"_"+i])}:r.startsWith("$")?(...i)=>{let o=ix.gzip(JSON.stringify(i));return Or({name:t,action:"query",table:r,params:btoa(o.reduce((s,l)=>s+String.fromCharCode(l),""))},e)}:new Proxy({},{get(i,o){return async(...s)=>(r==="query"&&(r=o,o="query"),await Or({name:t,action:o,table:r,params:s},e))}})}})},sm={},Or=async(e,t)=>{let n=new URL(t);n.pathname="/_dbs";let r=e||{};r.table&&(n.pathname+=`/${r.table}`);let i=n.toString();typeof localStorage<"u"&&localStorage.mlsid&&(r.mlsid=localStorage.mlsid);let o=(0,ox.default)({...r,dburl:t}),s=!1;typeof location<"u"&&n.hostname!==location.hostname&&window.isEditor&&["prasi.avolut.com","localhost:4550","127.0.0.1:4550"].includes(location.host)&&(s=!0);let l=async()=>{let c=r,u=null;if(Ou[t]==="msgpack"){let a="";try{c=om(new Uint8Array(Yd(r)),{}),a=await(await fetch(N1(i),{method:"POST",body:c})).text(),u=JSON.parse(a),console.error("%c\u2B06","color:green","SENT",r),console.error("%c\u2B07","color:purple","RECV",u),console.log("")}catch(p){if(["localhost","prasi.avolut.com"].includes(location.hostname))console.error("Error while fetching from db:"),console.error("%c\u2B06","color:green","SENT",r),console.error("%c\u2B07","color:red","RECV",a);else throw p}}else u=await gu(i,c,{"content-type":"application/json"},!1);try{if(typeof u=="string")return JSON.parse(u)}catch{}return u};if(s){let c=await fs(`editor-db-cache-${o}`);return c?sm[o]||(l().then(u=>{Gr(`editor-db-cache-${o}`,u)}),sm[o]=!0):(c=await l(),sm[o]=!0,Gr(`editor-db-cache-${o}`,c)),c}return await l()};y();w();_();y();w();_();y();w();_();var lx=Z(Pa());var ax=e=>{let{item:t,item_comp:n,ids:r}=e,i=gr(n);if(ux(i,r),t.id&&(i.id=t.id),i.hidden=t.hidden,i.component){if(i.component.props&&t.component&&t.component.props)for(let o of Object.keys(i.component.props)){let s=t.component.props[o],l=i.component.props[o];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}i.component.instances=t.component?.instances,i.component.style=t.component?.style}for(let o of Object.keys(t))delete t[o];for(let[o,s]of Object.entries(i))t[o]=s},ux=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,lx.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)ux(n,t)};y();w();_();var fx=e=>{let t=Object.entries(e.item_comp.component?.props||{}).sort((n,r)=>n[1].idx-r[1].idx);for(let[n,r]of t){let i=gr(r),o=e.item.component?.props;o&&o[n]&&(i.value=o[n].value,i.valueBuilt=o[n].valueBuilt,o[n].content&&(i.content=o[n].content)),i&&e.each(n,i)}};y();w();_();var Tu=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let i of r)i.type==="item"&&i.component?t.childs.push(i):t.childs.push({name:i.name,id:i.id,originalId:i.originalId})}else t[n]=r;return t};var dx=(e,t)=>{let{item:n}=t;if(n.type==="item"&&n.component?.id&&t.parent?.item.id){let r=e.comps[n.component.id];if(e.on?.visit_component&&e.on.visit_component(n,t.root||t.item),!r)return;if(r){let i;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),i=n.component.instances):i=t.parent?.root_instances,i){let s=i[n.id];i[n.id]||(i[n.id]={},s=i[n.id]),ax({item:n,item_comp:r,ids:s})}let o={item:Tu(n),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:i};if(e.on?.visit&&e.on.visit(o,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=o),fx({item:n,item_comp:r,instance:i?i[n.id]:{},each(s,l){let c=n.component?.id;l.meta?.type==="content-element"&&c&&l.content&&(l.content.name=s,go({...e},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:c,name:s},parent:{item:o.item,instance_id:n.id,comp:r,root_instances:i}}))}}),n.childs)for(let s of Object.values(n.childs))s?.name?.startsWith("jsx:")||s&&Object.keys(s).length>3&&go({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:i,comp:r}})}}};var go=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){dx(e,t);return}let r={item:Tu(n),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(r.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(r,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[r.item.id]=r),n.childs){for(let[i,o]of Object.entries(n.childs))if(o.id){let s={item:o,is_root:!1,root:t.root||t.item,parent:{item:r.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(s.jsx_prop={...t.jsx_prop,is_root:!1}),go(e,s)}}};var ui={route:null,promise:null},nO=()=>{if(ui.promise)return ui.promise;ui.promise=new Promise(async e=>{ui.route&&e(ui.route);let t=await fetch(z.url`_prasi/route`);t.headers.get("content-encoding")||fetch(z.url`_prasi/compress/only-gz`),ui.route=await t.json(),e(ui.route)})},px=async()=>{let e=La(),t=[];try{let n=await nO();if(n&&n.site&&n.urls){n.layout&&(z.layout.id=n.layout.id,z.layout.root=n.layout.root,z.layout.meta={},z.layout.root&&(await ci(z.layout.root.childs),Ys(z.layout.meta,z.layout.root))),z.site=n.site,z.site.code={mode:"vsc"},await rO(),z.site.api=D1(z.site.api_url),z.site.db=sx(z.site.api_url);let r=window;r.serverurl=z.site.api_url,r.db=z.site.db,r.api=z.site.api;for(let i of n.urls)e.insert(i.url,i),t.push(i)}}catch{}return{router:e,pages:t}},rO=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=z.site.api_url;r==="*"&&(r=`${location.protocol}//${location.host}`,z.site.api_url=r),r=(0,lm.default)(r,"/"),localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let i=new URL(location.href);if(i.pathname="",!r||!["prasi.avolut.com"].includes(i.hostname)&&i.port!=="4550"){i.hash="";let o=(0,lm.default)(i.toString(),"/");n.src=`${o}/_prasi/load.js?url=${o}&v3`,z.site.api_url=`${i.protocol}//${i.host}`}else n.src=`${r}/_prasi/load.js?url=${r}&v3`;n.onerror=()=>{e()},document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),Ys=(e,t)=>{for(let n of t.childs)go({set_meta:!0,comps:z.comp.list,meta:e,mode:"page"},{item:n})};var iO=new ei({structuredClone:!0}),Au={debug:!!localStorage.getItem("prasi-ws-debug"),reconnectTimeout:1e3,id_client:"",id_site:"",ws:null};var Nu=e=>{Au.ws&&oO(Au.ws,{type:"preview",mode:"listen",data:{...e,client_id:Au.id_client}})},oO=(e,t)=>{let n=iO.pack(t);Au.debug&&console.log("%c\u2B06","color:blue",sO(n.length,0),t),e.send(n)};function sO(e,t){if(e==0)return"0 Bytes";var n=1024,r=t||2,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(r))+" "+i[o]}var ci=async(e,t)=>{let n=z.comp;for(let i of e)i&&i.type!=="text"&&Pu(i,t);let r=Object.keys(n.pending);if(r.length>0){Nu({type:"comp",ids:r});try{let i=await(await fetch(z.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...r]})})).json();for(let[o,s]of Object.entries(i))delete n.pending[o],n.list[o]=s,await Gr(`comp-${o}`,s);if(Object.keys(n.pending).length>0){console.error(`Warning: component not found: ${Object.keys(n.pending)}`);return}await ci(Object.values(i))}catch(i){console.error(i)}}},Pu=(e,t)=>{let n=z.comp;if(e.type==="item"){let r=e.component?.id;if(r){if(!n.list[r]&&!n.pending[r]&&(n.pending[r]=[]),n.pending[r]&&(n.pending[r].find(i=>i.id===e.id)||n.pending[r].push(e)),n.pending[r]&&n.list[r]){for(let i of n.pending[r])for(let o of Object.values(i.component?.props||{}))o.content&&Pu(o.content,t);delete n.pending[r]}if(e.component?.props)for(let i of Object.values(e.component?.props||{}))i.content&&Pu(i.content,t)}}if(e.childs)for(let r of e.childs){let i=r;i&&i.type!=="text"&&Pu(i,t)}};y();w();_();var Lu={},mx=e=>(typeof Lu[e]=="object"||(Lu[e]=new Promise(async t=>{let n=!1,r=await fs(`page-${e}`);r&&(t(r),n=!0);let i=await(await fetch(z.url`_prasi/page/${e}`)).json();!i.root&&i.content_tree&&(i.root=i.content_tree,delete i.content_tree),n||t(i)})),Lu[e]),lO=e=>new Promise(async t=>{let n={},r=[...new Set(e)],i=!0;for(let s of r){let l=await fs(`page-${s}`);if(l)n[s]=l;else{i=!1;break}}i&&t(n);let o=await(await fetch(z.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();i||t(o)}),hx=async e=>{let t=e.map(r=>z.route.router?.lookup(r)).filter(r=>r&&r.id);return await lO(t.map(r=>r?.id))};y();w();_();var yx=Z(gx()),_x=()=>{let e=z;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,yx.default)();e.mode=t.device.type==="mobile"?"mobile":"desktop"}else e.site.responsive==="mobile-only"?e.mode="mobile":e.site.responsive==="desktop-only"&&(e.mode="desktop");localStorage.getItem("prasi-editor-mode")&&(e.mode=localStorage.getItem("prasi-editor-mode"))}};y();w();_();var Oe=window;var Wn=Z(me()),um=()=>location.hostname.split(".").length===4||location.hostname==="prasi.app"||location.hostname==="prasi.avolut.com"||location.hostname.includes("ngrok")||location.hostname==="localhost"||location.hostname==="127.0.0.1"||location.hostname==="10.0.2.2",vx=()=>{let e=mr({page_id:""}),[t,n]=(0,wx.useState)({}),r=()=>n({});Oe.prasiContext.render=r;let i=ld.Provider,o=um()&&location.pathname.startsWith("/prod");if(z.route.status!=="ready"||z.route.router?.ctx.rootNode.children.size===0)return z.route.status!=="loading"&&(z.route.status="loading",px().then(async({router:f,pages:d})=>{_x(),z.route.status="ready",z.route.router=f,z.route.pages=d;let h=Oe._prasi.basepath,S=`${h.endsWith("/")?h:`${h}/`}_prasi/code/index.js`,k=new URL(location.href);S.startsWith("/")&&(S=`${k.protocol}//${k.host}${S}`);let m=new Function("callback",`import("${S}").then(callback)`);await new Promise(g=>{m(v=>{for(let[x,N]of Object.entries(v))Oe[x]=N;g()})}),r()})),(0,Wn.jsx)(ds,{});let s=z.route.router;if(!s)return(0,Wn.jsx)(hd,{children:"Failed to create Router"});let l="";if(o){let f=location.pathname.split("/");md(f[3])&&(l=f[3])}let c=null,u=null;if(Oe._prasi.page_id)s.insert(z.pathname,{id:Oe._prasi.page_id,url:z.pathname}),c={id:Oe._prasi.page_id,url:"",params:Oe._prasi.params},Oe._prasi.routed={page_id:Oe._prasi.page_id,params:Oe._prasi.params},delete Oe._prasi.page_id,delete Oe._prasi.params;else{if(c=s.lookup(z.pathname),l){let f=z.route.pages.find(d=>l===d.id);u=f,f&&(c=f)}c&&Oe._prasi.routed&&Oe._prasi.routed.page_id===c.id&&Oe._prasi.routed.params&&(c.params=Oe._prasi.routed.params)}if(!c)return console.error("Page Not Found:",c,z),(0,Wn.jsx)(hd,{children:"Page Not Found"});c.id!==e.page_id&&(z.init_local_effect={},Nu({type:"page",id:c.id})),Oe.params=c.params||{},z.page.id=c.id,z.page.url=c.url;let a=z.page.cache[c.id];if(a)z.page.root=a.root,z.page.meta=a.meta;else return mx(c.id).then(async({root:f})=>{if(c){let d={id:c.id,url:c.url,root:f,meta:{}};await ci(f.childs,!0),Ys(d.meta,f),z.page.cache[d.id]=d,r()}}).catch(()=>{r()}),(0,Wn.jsx)(ds,{note:"Loading page"});let p="";return z.page.root.responsive==="mobile"?(z.mode="mobile",p=css` + - `)}`);return}let p=a.apiEntry[s].url,f=a.apiEntry[s].args;if(p&&f){if(l.length>0&&f.length>0)for(let[S,k]of Object.entries(l)){let m=f[parseInt(S)];f&&f.includes(m)&&k&&typeof k!="string"&&typeof k!="number"||(p=p.replace(`:${m}?`,k+""),p=p.replace(`:${m}`,k+""))}let d=`${n}${p}`,h=await L1(d,l);c(h)}else console.error(`API Not Found: ${s.toString()}`)}else u("Failed to load API [Proxy]: "+n)}catch(a){u(a)}})};return i==="then"?new Proxy({},{get:(s,l)=>o(l)}):o(i)}})}catch{return null}},L1=async(e,t)=>await gu(e,t,{"content-type":"application/json"});y();w();_();var ox=Z(z1());y();w();_();function po(e){let t=e.length;for(;--t>=0;)e[t]=0}var aC=0,kv=1,uC=2,cC=3,fC=258,Jp=29,qs=256,Bs=qs+1+Jp,uo=30,Yp=19,bv=2*Bs+1,ti=15,Op=16,dC=7,em=256,Ev=16,Rv=17,Cv=18,Hp=new Uint8Array([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]),Su=new Uint8Array([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]),pC=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Iv=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mC=512,$n=new Array((Bs+2)*2);po($n);var zs=new Array(uo*2);po(zs);var $s=new Array(mC);po($s);var Hs=new Array(fC-cC+1);po(Hs);var tm=new Array(Jp);po(tm);var ku=new Array(uo);po(ku);function Tp(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var Ov,Tv,Av;function Ap(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var Nv=e=>e<256?$s[e]:$s[256+(e>>>7)],Vs=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},xt=(e,t,n)=>{e.bi_valid>Op-n?(e.bi_buf|=t<>Op-e.bi_valid,e.bi_valid+=n-Op):(e.bi_buf|=t<{xt(e,n[t*2],n[t*2+1])},Pv=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},hC=e=>{e.bi_valid===16?(Vs(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},gC=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,c=t.stat_desc.max_length,u,a,p,f,d,h,S=0;for(f=0;f<=ti;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(f=c,S++),n[a*2+1]=f,!(a>r)&&(e.bl_count[f]++,d=0,a>=l&&(d=s[a-l]),h=n[a*2],e.opt_len+=h*(f+d),o&&(e.static_len+=h*(i[a*2+1]+d)));if(S!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,S-=2}while(S>0);for(f=c;f!==0;f--)for(a=e.bl_count[f];a!==0;)p=e.heap[--u],!(p>r)&&(n[p*2+1]!==f&&(e.opt_len+=(f-n[p*2+1])*n[p*2],n[p*2+1]=f),a--)}},Lv=(e,t,n)=>{let r=new Array(ti+1),i=0,o,s;for(o=1;o<=ti;o++)i=i+n[o-1]<<1,r[o]=i;for(s=0;s<=t;s++){let l=e[s*2+1];l!==0&&(e[s*2]=Pv(r[l]++,l))}},yC=()=>{let e,t,n,r,i,o=new Array(ti+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Vs(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},F1=(e,t,n,r)=>{let i=t*2,o=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,o=0,s,l;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],r===0?wn(e,i,t):(s=Hs[i],wn(e,s+qs+1,t),l=Hp[s],l!==0&&(i-=tm[s],xt(e,i,l)),r--,s=Nv(r),wn(e,s,n),l=Su[s],l!==0&&(r-=ku[s],xt(e,r,l)));while(o{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems,s,l,c=-1,u;for(e.heap_len=0,e.heap_max=bv,s=0;s>1;s>=1;s--)Np(e,n,s);u=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Np(e,n,1),l=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=l,n[u*2]=n[s*2]+n[l*2],e.depth[u]=(e.depth[s]>=e.depth[l]?e.depth[s]:e.depth[l])+1,n[s*2+1]=n[l*2+1]=u,e.heap[1]=u++,Np(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gC(e,t),Lv(n,c,e.bl_count)},B1=(e,t,n)=>{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=s,s=t[(r+1)*2+1],!(++l{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),r=0;r<=n;r++)if(o=s,s=t[(r+1)*2+1],!(++l{let t;for(B1(e,e.dyn_ltree,e.l_desc.max_code),B1(e,e.dyn_dtree,e.d_desc.max_code),Vp(e,e.bl_desc),t=Yp-1;t>=3&&e.bl_tree[Iv[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},wC=(e,t,n,r)=>{let i;for(xt(e,t-257,5),xt(e,n-1,5),xt(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return 1;for(n=32;n{H1||(yC(),H1=!0),e.l_desc=new Ap(e.dyn_ltree,Ov),e.d_desc=new Ap(e.dyn_dtree,Tv),e.bl_desc=new Ap(e.bl_tree,Av),e.bi_buf=0,e.bi_valid=0,Dv(e)},jv=(e,t,n,r)=>{xt(e,(aC<<1)+(r?1:0),3),Mv(e),Vs(e,n),Vs(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},SC=e=>{xt(e,kv<<1,3),wn(e,em,$n),hC(e)},kC=(e,t,n,r)=>{let i,o,s=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=vC(e)),Vp(e,e.l_desc),Vp(e,e.d_desc),s=_C(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?jv(e,t,n,r):e.strategy===4||o===i?(xt(e,(kv<<1)+(r?1:0),3),U1(e,$n,zs)):(xt(e,(uC<<1)+(r?1:0),3),wC(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),U1(e,e.dyn_ltree,e.dyn_dtree)),Dv(e),r&&Mv(e)},bC=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Hs[n]+qs+1)*2]++,e.dyn_dtree[Nv(t)*2]++),e.sym_next===e.sym_end),EC=xC,RC=jv,CC=kC,IC=bC,OC=SC,TC={_tr_init:EC,_tr_stored_block:RC,_tr_flush_block:CC,_tr_tally:IC,_tr_align:OC},AC=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do i=i+t[r++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0},Ws=AC,NC=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},PC=new Uint32Array(NC()),LC=(e,t,n,r)=>{let i=PC,o=r+n;e^=-1;for(let s=r;s>>8^i[(e^t[s])&255];return e^-1},We=LC,ii={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},li={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:DC,_tr_stored_block:Wp,_tr_flush_block:MC,_tr_tally:Rr,_tr_align:jC}=TC,{Z_NO_FLUSH:Cr,Z_PARTIAL_FLUSH:zC,Z_FULL_FLUSH:FC,Z_FINISH:Gt,Z_BLOCK:V1,Z_OK:et,Z_STREAM_END:W1,Z_STREAM_ERROR:vn,Z_DATA_ERROR:UC,Z_BUF_ERROR:Pp,Z_DEFAULT_COMPRESSION:BC,Z_FILTERED:$C,Z_HUFFMAN_ONLY:yu,Z_RLE:HC,Z_FIXED:VC,Z_DEFAULT_STRATEGY:WC,Z_UNKNOWN:GC,Z_DEFLATED:Ru}=li,ZC=9,KC=15,qC=8,XC=29,QC=256,Gp=QC+1+XC,JC=30,YC=19,e3=2*Gp+1,t3=15,se=3,Er=258,xn=Er+se+1,n3=32,co=42,nm=57,Zp=69,Kp=73,qp=91,Xp=103,ni=113,Ms=666,dt=1,mo=2,oi=3,ho=4,r3=3,ri=(e,t)=>(e.msg=ii[t],t),G1=e=>e*2-(e>4?9:0),br=e=>{let t=e.length;for(;--t>=0;)e[t]=0},i3=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},o3=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},At=(e,t)=>{MC(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Tt(e.strm)},ce=(e,t)=>{e.pending_buf[e.pending++]=t},Ds=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Qp=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Ws(e.adler,t,i,n):e.state.wrap===2&&(e.adler=We(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},zv=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,o,s=e.prev_length,l=e.nice_match,c=e.strstart>e.w_size-xn?e.strstart-(e.w_size-xn):0,u=e.window,a=e.w_mask,p=e.prev,f=e.strstart+Er,d=u[r+s-1],h=u[r+s];e.prev_length>=e.good_match&&(n>>=2),l>e.lookahead&&(l=e.lookahead);do if(i=t,!(u[i+s]!==h||u[i+s-1]!==d||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&rs){if(e.match_start=t,s=o,o>=l)break;d=u[r+s-1],h=u[r+s]}}while((t=p[t&a])>c&&--n!==0);return s<=e.lookahead?s:e.lookahead},fo=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-xn)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),i3(e),r+=t),e.strm.avail_in===0)break;if(n=Qp(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=se)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ir(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ir(e,e.ins_h,e.window[i+se-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,o,s=0,l=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Tt(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Qp(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(s===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(Qp(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=n||(i||t===Gt)&&t!==Cr&&e.strm.avail_in===0&&i<=o)&&(r=i>o?o:i,s=t===Gt&&e.strm.avail_in===0&&r===i?1:0,Wp(e,e.block_start,r,s),e.block_start+=r,Tt(e.strm)),s?oi:dt)},Lp=(e,t)=>{let n,r;for(;;){if(e.lookahead=se&&(e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-xn&&(e.match_length=zv(e,n)),e.match_length>=se)if(r=Rr(e,e.strstart-e.match_start,e.match_length-se),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=se){e.match_length--;do e.strstart++,e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+1]);else r=Rr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(At(e,!1),e.strm.avail_out===0))return dt}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=se&&(e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=se-1,n!==0&&e.prev_length4096)&&(e.match_length=se-1)),e.prev_length>=se&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-se,r=Rr(e,e.strstart-1-e.prev_match,e.prev_length-se),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ir(e,e.ins_h,e.window[e.strstart+se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=se-1,e.strstart++,r&&(At(e,!1),e.strm.avail_out===0))return dt}else if(e.match_available){if(r=Rr(e,0,e.window[e.strstart-1]),r&&At(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return dt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Rr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,o,s=e.window;for(;;){if(e.lookahead<=Er){if(fo(e),e.lookahead<=Er&&t===Cr)return dt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=se&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+Er;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=se?(n=Rr(e,1,e.match_length-se),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Rr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(At(e,!1),e.strm.avail_out===0))return dt}return e.insert=0,t===Gt?(At(e,!0),e.strm.avail_out===0?oi:ho):e.sym_next&&(At(e,!1),e.strm.avail_out===0)?dt:mo},l3=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(fo(e),e.lookahead===0)){if(t===Cr)return dt;break}if(e.match_length=0,n=Rr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(At(e,!1),e.strm.avail_out===0))return dt}return e.insert=0,t===Gt?(At(e,!0),e.strm.avail_out===0?oi:ho):e.sym_next&&(At(e,!1),e.strm.avail_out===0)?dt:mo};function _n(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var js=[new _n(0,0,0,0,Fv),new _n(4,4,8,4,Lp),new _n(4,5,16,8,Lp),new _n(4,6,32,32,Lp),new _n(4,4,16,16,lo),new _n(8,16,32,32,lo),new _n(8,16,128,128,lo),new _n(8,32,128,256,lo),new _n(32,128,258,1024,lo),new _n(32,258,258,4096,lo)],a3=e=>{e.window_size=2*e.w_size,br(e.head),e.max_lazy_match=js[e.level].max_lazy,e.good_match=js[e.level].good_length,e.nice_match=js[e.level].nice_length,e.max_chain_length=js[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=se-1,e.match_available=0,e.ins_h=0};function u3(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ru,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(e3*2),this.dyn_dtree=new Uint16Array((2*JC+1)*2),this.bl_tree=new Uint16Array((2*YC+1)*2),br(this.dyn_ltree),br(this.dyn_dtree),br(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(t3+1),this.heap=new Uint16Array(2*Gp+1),br(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Gp+1),br(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Xs=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==co&&t.status!==nm&&t.status!==Zp&&t.status!==Kp&&t.status!==qp&&t.status!==Xp&&t.status!==ni&&t.status!==Ms?1:0},Uv=e=>{if(Xs(e))return ri(e,vn);e.total_in=e.total_out=0,e.data_type=GC;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?nm:t.wrap?co:ni,e.adler=t.wrap===2?0:1,t.last_flush=-2,DC(t),et},Bv=e=>{let t=Uv(e);return t===et&&a3(e.state),t},c3=(e,t)=>Xs(e)||e.state.wrap!==2?vn:(e.state.gzhead=t,et),$v=(e,t,n,r,i,o)=>{if(!e)return vn;let s=1;if(t===BC&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>ZC||n!==Ru||r<8||r>15||t<0||t>9||o<0||o>VC||r===8&&s!==1)return ri(e,vn);r===8&&(r=9);let l=new u3;return e.state=l,l.strm=e,l.status=co,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<$v(e,t,Ru,KC,qC,WC),d3=(e,t)=>{if(Xs(e)||t>V1||t<0)return e?ri(e,vn):vn;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Ms&&t!==Gt)return ri(e,e.avail_out===0?Pp:vn);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Tt(e),e.avail_out===0)return n.last_flush=-1,et}else if(e.avail_in===0&&G1(t)<=G1(r)&&t!==Gt)return ri(e,Pp);if(n.status===Ms&&e.avail_in!==0)return ri(e,Pp);if(n.status===co&&n.wrap===0&&(n.status=ni),n.status===co){let i=Ru+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=yu||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,i|=o<<6,n.strstart!==0&&(i|=n3),i+=31-i%31,Ds(n,i),n.strstart!==0&&(Ds(n,e.adler>>>16),Ds(n,e.adler&65535)),e.adler=1,n.status=ni,Tt(e),n.pending!==0)return n.last_flush=-1,et}if(n.status===nm){if(e.adler=0,ce(n,31),ce(n,139),ce(n,8),n.gzhead)ce(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),ce(n,n.gzhead.time&255),ce(n,n.gzhead.time>>8&255),ce(n,n.gzhead.time>>16&255),ce(n,n.gzhead.time>>24&255),ce(n,n.level===9?2:n.strategy>=yu||n.level<2?4:0),ce(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(ce(n,n.gzhead.extra.length&255),ce(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=We(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Zp;else if(ce(n,0),ce(n,0),ce(n,0),ce(n,0),ce(n,0),ce(n,n.level===9?2:n.strategy>=yu||n.level<2?4:0),ce(n,r3),n.status=ni,Tt(e),n.pending!==0)return n.last_flush=-1,et}if(n.status===Zp){if(n.gzhead.extra){let i=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let l=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=l,Tt(e),n.pending!==0)return n.last_flush=-1,et;i=0,o-=l}let s=new Uint8Array(n.gzhead.extra);n.pending_buf.set(s.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Kp}if(n.status===Kp){if(n.gzhead.name){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),Tt(e),n.pending!==0)return n.last_flush=-1,et;i=0}n.gzindexi&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=qp}if(n.status===qp){if(n.gzhead.comment){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i)),Tt(e),n.pending!==0)return n.last_flush=-1,et;i=0}n.gzindexi&&(e.adler=We(e.adler,n.pending_buf,n.pending-i,i))}n.status=Xp}if(n.status===Xp){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Tt(e),n.pending!==0))return n.last_flush=-1,et;ce(n,e.adler&255),ce(n,e.adler>>8&255),e.adler=0}if(n.status=ni,Tt(e),n.pending!==0)return n.last_flush=-1,et}if(e.avail_in!==0||n.lookahead!==0||t!==Cr&&n.status!==Ms){let i=n.level===0?Fv(n,t):n.strategy===yu?l3(n,t):n.strategy===HC?s3(n,t):js[n.level].func(n,t);if((i===oi||i===ho)&&(n.status=Ms),i===dt||i===oi)return e.avail_out===0&&(n.last_flush=-1),et;if(i===mo&&(t===zC?jC(n):t!==V1&&(Wp(n,0,0,!1),t===FC&&(br(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Tt(e),e.avail_out===0))return n.last_flush=-1,et}return t!==Gt?et:n.wrap<=0?W1:(n.wrap===2?(ce(n,e.adler&255),ce(n,e.adler>>8&255),ce(n,e.adler>>16&255),ce(n,e.adler>>24&255),ce(n,e.total_in&255),ce(n,e.total_in>>8&255),ce(n,e.total_in>>16&255),ce(n,e.total_in>>24&255)):(Ds(n,e.adler>>>16),Ds(n,e.adler&65535)),Tt(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?et:W1)},p3=e=>{if(Xs(e))return vn;let t=e.state.status;return e.state=null,t===ni?ri(e,UC):et},m3=(e,t)=>{let n=t.length;if(Xs(e))return vn;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==co||r.lookahead)return vn;if(i===1&&(e.adler=Ws(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(br(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}let o=e.avail_in,s=e.next_in,l=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,fo(r);r.lookahead>=se;){let c=r.strstart,u=r.lookahead-(se-1);do r.ins_h=Ir(r,r.ins_h,r.window[c+se-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=se-1,fo(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=se-1,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,r.wrap=i,et},h3=f3,g3=$v,y3=Bv,_3=Uv,w3=c3,v3=d3,x3=p3,S3=m3,k3="pako deflate (from Nodeca project)",Fs={deflateInit:h3,deflateInit2:g3,deflateReset:y3,deflateResetKeep:_3,deflateSetHeader:w3,deflate:v3,deflateEnd:x3,deflateSetDictionary:S3,deflateInfo:k3},b3=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),E3=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)b3(n,r)&&(e[r]=n[r])}}return e},R3=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Gs[254]=Gs[254]=1;var C3=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,s=e.length,l=0;for(i=0;i>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t},I3=(e,t)=>{if(t<65534&&e.subarray&&Hv)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,o=new Array(n*2);for(i=0,r=0;r4){o[i++]=65533,r+=l-1;continue}for(s&=l===2?31:l===3?15:7;l>1&&r1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return I3(o,i)},T3=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Gs[e[n]]>t?n:t},Zs={string2buf:C3,buf2string:O3,utf8border:T3};function A3(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Vv=A3,Wv=Object.prototype.toString,{Z_NO_FLUSH:N3,Z_SYNC_FLUSH:P3,Z_FULL_FLUSH:L3,Z_FINISH:D3,Z_OK:bu,Z_STREAM_END:M3,Z_DEFAULT_COMPRESSION:j3,Z_DEFAULT_STRATEGY:z3,Z_DEFLATED:F3}=li;function Qs(e){this.options=Cu.assign({level:j3,method:F3,chunkSize:16384,windowBits:15,memLevel:8,strategy:z3},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vv,this.strm.avail_out=0;let n=Fs.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==bu)throw new Error(ii[n]);if(t.header&&Fs.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Zs.string2buf(t.dictionary):Wv.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Fs.deflateSetDictionary(this.strm,r),n!==bu)throw new Error(ii[n]);this._dict_set=!0}}Qs.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?D3:N3,typeof e=="string"?n.input=Zs.string2buf(e):Wv.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===P3||o===L3)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Fs.deflate(n,o),i===M3)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Fs.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===bu;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Qs.prototype.onData=function(e){this.chunks.push(e)};Qs.prototype.onEnd=function(e){e===bu&&(this.result=Cu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rm(e,t){let n=new Qs(t);if(n.push(e,!0),n.err)throw n.msg||ii[n.err];return n.result}function U3(e,t){return t=t||{},t.raw=!0,rm(e,t)}function B3(e,t){return t=t||{},t.gzip=!0,rm(e,t)}var $3=Qs,H3=rm,V3=U3,W3=B3,G3=li,Z3={Deflate:$3,deflate:H3,deflateRaw:V3,gzip:W3,constants:G3},_u=16209,K3=16191,q3=function(t,n){let r,i,o,s,l,c,u,a,p,f,d,h,S,k,m,g,v,x,N,L,P,D,V,F,G=t.state;r=t.next_in,V=t.input,i=r+(t.avail_in-5),o=t.next_out,F=t.output,s=o-(n-t.avail_out),l=o+(t.avail_out-257),c=G.dmax,u=G.wsize,a=G.whave,p=G.wnext,f=G.window,d=G.hold,h=G.bits,S=G.lencode,k=G.distcode,m=(1<>>24,d>>>=x,h-=x,x=v>>>16&255,x===0)F[o++]=v&65535;else if(x&16){N=v&65535,x&=15,x&&(h>>=x,h-=x),h<15&&(d+=V[r++]<>>24,d>>>=x,h-=x,x=v>>>16&255,x&16){if(L=v&65535,x&=15,hc){t.msg="invalid distance too far back",G.mode=_u;break e}if(d>>>=x,h-=x,x=o-s,L>x){if(x=L-x,x>a&&G.sane){t.msg="invalid distance too far back",G.mode=_u;break e}if(P=0,D=f,p===0){if(P+=u-x,x2;)F[o++]=D[P++],F[o++]=D[P++],F[o++]=D[P++],N-=3;N&&(F[o++]=D[P++],N>1&&(F[o++]=D[P++]))}else{P=o-L;do F[o++]=F[P++],F[o++]=F[P++],F[o++]=F[P++],N-=3;while(N>2);N&&(F[o++]=F[P++],N>1&&(F[o++]=F[P++]))}}else if(x&64){t.msg="invalid distance code",G.mode=_u;break e}else{v=k[(v&65535)+(d&(1<>3,r-=N,h-=N<<3,d&=(1<{let c=l.bits,u=0,a=0,p=0,f=0,d=0,h=0,S=0,k=0,m=0,g=0,v,x,N,L,P,D=null,V,F=new Uint16Array(ao+1),G=new Uint16Array(ao+1),Ge=null,fi,O,B;for(u=0;u<=ao;u++)F[u]=0;for(a=0;a=1&&F[f]===0;f--);if(d>f&&(d=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(e===q1||f!==1))return-1;for(G[1]=0,u=1;uZ1||e===X1&&m>K1)return 1;for(;;){fi=u-S,s[a]+1=V?(O=Ge[s[a]-V],B=D[s[a]-V]):(O=96,B=0),v=1<>S)+x]=fi<<24|O<<16|B|0;while(x!==0);for(v=1<>=1;if(v!==0?(g&=v-1,g+=v):g=0,a++,--F[u]===0){if(u===f)break;u=t[n+s[a]]}if(u>d&&(g&L)!==N){for(S===0&&(S=d),P+=p,h=u-S,k=1<Z1||e===X1&&m>K1)return 1;N=g&L,i[N]=d<<24|h<<16|P-o|0}}return g!==0&&(i[P+g]=u-S<<24|64<<16|0),l.bits=d,0},Us=eI,tI=0,Gv=1,Zv=2,{Z_FINISH:Q1,Z_BLOCK:nI,Z_TREES:wu,Z_OK:si,Z_STREAM_END:rI,Z_NEED_DICT:iI,Z_STREAM_ERROR:Zt,Z_DATA_ERROR:Kv,Z_MEM_ERROR:qv,Z_BUF_ERROR:oI,Z_DEFLATED:J1}=li,Iu=16180,Y1=16181,ev=16182,tv=16183,nv=16184,rv=16185,iv=16186,ov=16187,sv=16188,lv=16189,Eu=16190,Bn=16191,Mp=16192,av=16193,jp=16194,uv=16195,cv=16196,fv=16197,dv=16198,vu=16199,xu=16200,pv=16201,mv=16202,hv=16203,gv=16204,yv=16205,zp=16206,_v=16207,wv=16208,be=16209,Xv=16210,Qv=16211,sI=852,lI=592,aI=15,uI=aI,vv=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function cI(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var ai=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.modeQv?1:0},Jv=e=>{if(ai(e))return Zt;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Iu,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(sI),t.distcode=t.distdyn=new Int32Array(lI),t.sane=1,t.back=-1,si},Yv=e=>{if(ai(e))return Zt;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Jv(e)},ex=(e,t)=>{let n;if(ai(e))return Zt;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Zt:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Yv(e))},tx=(e,t)=>{if(!e)return Zt;let n=new cI;e.state=n,n.strm=e,n.window=null,n.mode=Iu;let r=ex(e,t);return r!==si&&(e.state=null),r},fI=e=>tx(e,uI),xv=!0,Fp,Up,dI=e=>{if(xv){Fp=new Int32Array(512),Up=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Us(Gv,e.lens,0,288,Fp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Us(Zv,e.lens,0,32,Up,0,e.work,{bits:5}),xv=!1}e.lencode=Fp,e.lenbits=9,e.distcode=Up,e.distbits=5},nx=(e,t,n,r)=>{let i,o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,i,o,s,l,c,u,a,p,f,d,h,S,k=0,m,g,v,x,N,L,P,D,V=new Uint8Array(4),F,G,Ge=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ai(e)||!e.output||!e.input&&e.avail_in!==0)return Zt;n=e.state,n.mode===Bn&&(n.mode=Mp),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,p=l,f=c,D=si;e:for(;;)switch(n.mode){case Iu:if(n.wrap===0){n.mode=Mp;break}for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=We(n.check,V,2,0),u=0,a=0,n.mode=Y1;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=be;break}if((u&15)!==J1){e.msg="unknown compression method",n.mode=be;break}if(u>>>=4,a-=4,P=(u&15)+8,n.wbits===0&&(n.wbits=P),P>15||P>n.wbits){e.msg="invalid window size",n.mode=be;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(V[0]=u&255,V[1]=u>>>8&255,n.check=We(n.check,V,2,0)),u=0,a=0,n.mode=ev;case ev:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>8&255,V[2]=u>>>16&255,V[3]=u>>>24&255,n.check=We(n.check,V,4,0)),u=0,a=0,n.mode=tv;case tv:for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(V[0]=u&255,V[1]=u>>>8&255,n.check=We(n.check,V,2,0)),u=0,a=0,n.mode=nv;case nv:if(n.flags&1024){for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=We(n.check,V,2,0)),u=0,a=0}else n.head&&(n.head.extra=null);n.mode=rv;case rv:if(n.flags&1024&&(d=n.length,d>l&&(d=l),d&&(n.head&&(P=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+d),P)),n.flags&512&&n.wrap&4&&(n.check=We(n.check,r,d,o)),l-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=iv;case iv:if(n.flags&2048){if(l===0)break e;d=0;do P=r[o+d++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P));while(P&&d>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Bn;break;case lv:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>=a&7,a-=a&7,n.mode=zp;break}for(;a<3;){if(l===0)break e;l--,u+=r[o++]<>>=1,a-=1,u&3){case 0:n.mode=av;break;case 1:if(dI(n),n.mode=vu,t===wu){u>>>=2,a-=2;break e}break;case 2:n.mode=cv;break;case 3:e.msg="invalid block type",n.mode=be}u>>>=2,a-=2;break;case av:for(u>>>=a&7,a-=a&7;a<32;){if(l===0)break e;l--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=be;break}if(n.length=u&65535,u=0,a=0,n.mode=jp,t===wu)break e;case jp:n.mode=uv;case uv:if(d=n.length,d){if(d>l&&(d=l),d>c&&(d=c),d===0)break e;i.set(r.subarray(o,o+d),s),l-=d,o+=d,c-=d,s+=d,n.length-=d;break}n.mode=Bn;break;case cv:for(;a<14;){if(l===0)break e;l--,u+=r[o++]<>>=5,a-=5,n.ndist=(u&31)+1,u>>>=5,a-=5,n.ncode=(u&15)+4,u>>>=4,a-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=be;break}n.have=0,n.mode=fv;case fv:for(;n.have>>=3,a-=3}for(;n.have<19;)n.lens[Ge[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,F={bits:n.lenbits},D=Us(tI,n.lens,0,19,n.lencode,0,n.work,F),n.lenbits=F.bits,D){e.msg="invalid code lengths set",n.mode=be;break}n.have=0,n.mode=dv;case dv:for(;n.have>>24,g=k>>>16&255,v=k&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=m,a-=m,n.lens[n.have++]=v;else{if(v===16){for(G=m+2;a>>=m,a-=m,n.have===0){e.msg="invalid bit length repeat",n.mode=be;break}P=n.lens[n.have-1],d=3+(u&3),u>>>=2,a-=2}else if(v===17){for(G=m+3;a>>=m,a-=m,P=0,d=3+(u&7),u>>>=3,a-=3}else{for(G=m+7;a>>=m,a-=m,P=0,d=11+(u&127),u>>>=7,a-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=be;break}for(;d--;)n.lens[n.have++]=P}}if(n.mode===be)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=be;break}if(n.lenbits=9,F={bits:n.lenbits},D=Us(Gv,n.lens,0,n.nlen,n.lencode,0,n.work,F),n.lenbits=F.bits,D){e.msg="invalid literal/lengths set",n.mode=be;break}if(n.distbits=6,n.distcode=n.distdyn,F={bits:n.distbits},D=Us(Zv,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,F),n.distbits=F.bits,D){e.msg="invalid distances set",n.mode=be;break}if(n.mode=vu,t===wu)break e;case vu:n.mode=xu;case xu:if(l>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=u,n.bits=a,q3(e,f),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,n.mode===Bn&&(n.back=-1);break}for(n.back=0;k=n.lencode[u&(1<>>24,g=k>>>16&255,v=k&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>x)],m=k>>>24,g=k>>>16&255,v=k&65535,!(x+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=x,a-=x,n.back+=x}if(u>>>=m,a-=m,n.back+=m,n.length=v,g===0){n.mode=yv;break}if(g&32){n.back=-1,n.mode=Bn;break}if(g&64){e.msg="invalid literal/length code",n.mode=be;break}n.extra=g&15,n.mode=pv;case pv:if(n.extra){for(G=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=mv;case mv:for(;k=n.distcode[u&(1<>>24,g=k>>>16&255,v=k&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>x)],m=k>>>24,g=k>>>16&255,v=k&65535,!(x+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=x,a-=x,n.back+=x}if(u>>>=m,a-=m,n.back+=m,g&64){e.msg="invalid distance code",n.mode=be;break}n.offset=v,n.extra=g&15,n.mode=hv;case hv:if(n.extra){for(G=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=be;break}n.mode=gv;case gv:if(c===0)break e;if(d=f-c,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=be;break}d>n.wnext?(d-=n.wnext,h=n.wsize-d):h=n.wnext-d,d>n.length&&(d=n.length),S=n.window}else S=i,h=s-n.offset,d=n.length;d>c&&(d=c),c-=d,n.length-=d;do i[s++]=S[h++];while(--d);n.length===0&&(n.mode=xu);break;case yv:if(c===0)break e;i[s++]=n.length,c--,n.mode=xu;break;case zp:if(n.wrap){for(;a<32;){if(l===0)break e;l--,u|=r[o++]<{if(ai(e))return Zt;let t=e.state;return t.window&&(t.window=null),e.state=null,si},hI=(e,t)=>{if(ai(e))return Zt;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,si):Zt},gI=(e,t)=>{let n=t.length,r,i,o;return ai(e)||(r=e.state,r.wrap!==0&&r.mode!==Eu)?Zt:r.mode===Eu&&(i=1,i=Ws(i,t,n,0),i!==r.check)?Kv:(o=nx(e,t,n,n),o?(r.mode=Xv,qv):(r.havedict=1,si))},yI=Yv,_I=ex,wI=Jv,vI=fI,xI=tx,SI=pI,kI=mI,bI=hI,EI=gI,RI="pako inflate (from Nodeca project)",Hn={inflateReset:yI,inflateReset2:_I,inflateResetKeep:wI,inflateInit:vI,inflateInit2:xI,inflate:SI,inflateEnd:kI,inflateGetHeader:bI,inflateSetDictionary:EI,inflateInfo:RI};function CI(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var II=CI,rx=Object.prototype.toString,{Z_NO_FLUSH:OI,Z_FINISH:TI,Z_OK:Ks,Z_STREAM_END:Bp,Z_NEED_DICT:$p,Z_STREAM_ERROR:AI,Z_DATA_ERROR:Sv,Z_MEM_ERROR:NI}=li;function Js(e){this.options=Cu.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vv,this.strm.avail_out=0;let n=Hn.inflateInit2(this.strm,t.windowBits);if(n!==Ks)throw new Error(ii[n]);if(this.header=new II,Hn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Zs.string2buf(t.dictionary):rx.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Hn.inflateSetDictionary(this.strm,t.dictionary),n!==Ks)))throw new Error(ii[n])}Js.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,o,s,l;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?TI:OI,rx.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Hn.inflate(n,s),o===$p&&i&&(o=Hn.inflateSetDictionary(n,i),o===Ks?o=Hn.inflate(n,s):o===Sv&&(o=$p));n.avail_in>0&&o===Bp&&n.state.wrap>0&&e[n.next_in]!==0;)Hn.inflateReset(n),o=Hn.inflate(n,s);switch(o){case AI:case Sv:case $p:case NI:return this.onEnd(o),this.ended=!0,!1}if(l=n.avail_out,n.next_out&&(n.avail_out===0||o===Bp))if(this.options.to==="string"){let c=Zs.utf8border(n.output,n.next_out),u=n.next_out-c,a=Zs.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(a)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Ks&&l===0)){if(o===Bp)return o=Hn.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Js.prototype.onData=function(e){this.chunks.push(e)};Js.prototype.onEnd=function(e){e===Ks&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function im(e,t){let n=new Js(t);if(n.push(e),n.err)throw n.msg||ii[n.err];return n.result}function PI(e,t){return t=t||{},t.raw=!0,im(e,t)}var LI=Js,DI=im,MI=PI,jI=im,zI=li,FI={Inflate:LI,inflate:DI,inflateRaw:MI,ungzip:jI,constants:zI},{Deflate:UI,deflate:BI,deflateRaw:$I,gzip:HI}=Z3,{Inflate:VI,inflate:WI,inflateRaw:GI,ungzip:ZI}=FI,KI=UI,qI=BI,XI=$I,om=HI,QI=VI,JI=WI,YI=GI,eO=ZI,tO=li,ix={Deflate:KI,deflate:qI,deflateRaw:XI,gzip:om,Inflate:QI,inflate:JI,inflateRaw:YI,ungzip:eO,constants:tO};var Vn={tables:{},columns:{},rels:{}},Ou={},sx=e=>{let t="";return Ou[e]||Or({table:"check",action:"check"},e).then(n=>{n&&n.mode==="encrypted"?Ou[e]="msgpack":Ou[e]="json"}),new Proxy({},{get(n,r){return r==="_batch"?{update:async i=>Or({name:t,action:"batch_update",table:"",params:{batch:i}},e),upsert:async i=>Or({name:t,action:"batch_upsert",table:"",params:{arg:i}},e)}:r==="_schema"?{tables:async()=>(Vn.tables[e]||(Vn.tables[e]=Or({name:t,action:"schema_tables",table:"",params:[]},e)),await Vn.tables[e]),columns:async i=>(Vn.columns[e+"_"+i]||(Vn.columns[e+"_"+i]=Or({name:t,action:"schema_columns",table:i,params:[]},e)),await Vn.columns[e+"_"+i]),rels:async i=>(Vn.rels[e+"_"+i]||(Vn.rels[e+"_"+i]=Or({name:t,action:"schema_rels",table:i,params:[]},e)),await Vn.rels[e+"_"+i])}:r.startsWith("$")?(...i)=>{let o=ix.gzip(JSON.stringify(i));return Or({name:t,action:"query",table:r,params:btoa(o.reduce((s,l)=>s+String.fromCharCode(l),""))},e)}:new Proxy({},{get(i,o){return async(...s)=>(r==="query"&&(r=o,o="query"),await Or({name:t,action:o,table:r,params:s},e))}})}})},sm={},Or=async(e,t)=>{let n=new URL(t);n.pathname="/_dbs";let r=e||{};r.table&&(n.pathname+=`/${r.table}`);let i=n.toString();typeof localStorage<"u"&&localStorage.mlsid&&(r.mlsid=localStorage.mlsid);let o=(0,ox.default)({...r,dburl:t}),s=!1;typeof location<"u"&&n.hostname!==location.hostname&&window.isEditor&&["prasi.avolut.com","localhost:4550","127.0.0.1:4550"].includes(location.host)&&(s=!0);let l=async()=>{let c=r,u=null;if(Ou[t]==="msgpack"){let a="";try{c=om(new Uint8Array(Yd(r)),{}),a=await(await fetch(N1(i),{method:"POST",body:c})).text(),u=JSON.parse(a),["localhost","prasi.avolut.com"].includes(location.hostname)&&(console.error("%c\u2B06","color:green","SENT",r),console.error("%c\u2B07","color:purple","RECV",u),console.log(""))}catch(p){if(["localhost","prasi.avolut.com"].includes(location.hostname))console.error("Error while fetching from db:"),console.error("%c\u2B06","color:green","SENT",r),console.error("%c\u2B07","color:red","RECV",a);else throw p}}else u=await gu(i,c,{"content-type":"application/json"},!1);try{if(typeof u=="string")return JSON.parse(u)}catch{}return u};if(s){let c=await fs(`editor-db-cache-${o}`);return c?sm[o]||(l().then(u=>{Gr(`editor-db-cache-${o}`,u)}),sm[o]=!0):(c=await l(),sm[o]=!0,Gr(`editor-db-cache-${o}`,c)),c}return await l()};y();w();_();y();w();_();y();w();_();var lx=Z(Pa());var ax=e=>{let{item:t,item_comp:n,ids:r}=e,i=gr(n);if(ux(i,r),t.id&&(i.id=t.id),i.hidden=t.hidden,i.component){if(i.component.props&&t.component&&t.component.props)for(let o of Object.keys(i.component.props)){let s=t.component.props[o],l=i.component.props[o];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}i.component.instances=t.component?.instances,i.component.style=t.component?.style}for(let o of Object.keys(t))delete t[o];for(let[o,s]of Object.entries(i))t[o]=s},ux=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,lx.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)ux(n,t)};y();w();_();var fx=e=>{let t=Object.entries(e.item_comp.component?.props||{}).sort((n,r)=>n[1].idx-r[1].idx);for(let[n,r]of t){let i=gr(r),o=e.item.component?.props;o&&o[n]&&(i.value=o[n].value,i.valueBuilt=o[n].valueBuilt,o[n].content&&(i.content=o[n].content)),i&&e.each(n,i)}};y();w();_();var Tu=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let i of r)i.type==="item"&&i.component?t.childs.push(i):t.childs.push({name:i.name,id:i.id,originalId:i.originalId})}else t[n]=r;return t};var dx=(e,t)=>{let{item:n}=t;if(n.type==="item"&&n.component?.id&&t.parent?.item.id){let r=e.comps[n.component.id];if(e.on?.visit_component&&e.on.visit_component(n,t.root||t.item),!r)return;if(r){let i;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),i=n.component.instances):i=t.parent?.root_instances,i){let s=i[n.id];i[n.id]||(i[n.id]={},s=i[n.id]),ax({item:n,item_comp:r,ids:s})}let o={item:Tu(n),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:i};if(e.on?.visit&&e.on.visit(o,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=o),fx({item:n,item_comp:r,instance:i?i[n.id]:{},each(s,l){let c=n.component?.id;l.meta?.type==="content-element"&&c&&l.content&&(l.content.name=s,go({...e},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:c,name:s},parent:{item:o.item,instance_id:n.id,comp:r,root_instances:i}}))}}),n.childs)for(let s of Object.values(n.childs))s?.name?.startsWith("jsx:")||s&&Object.keys(s).length>3&&go({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:i,comp:r}})}}};var go=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){dx(e,t);return}let r={item:Tu(n),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(r.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(r,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[r.item.id]=r),n.childs){for(let[i,o]of Object.entries(n.childs))if(o.id){let s={item:o,is_root:!1,root:t.root||t.item,parent:{item:r.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(s.jsx_prop={...t.jsx_prop,is_root:!1}),go(e,s)}}};var ui={route:null,promise:null},nO=()=>{if(ui.promise)return ui.promise;ui.promise=new Promise(async e=>{ui.route&&e(ui.route);let t=await fetch(z.url`_prasi/route`);t.headers.get("content-encoding")||fetch(z.url`_prasi/compress/only-gz`),ui.route=await t.json(),e(ui.route)})},px=async()=>{let e=La(),t=[];try{let n=await nO();if(n&&n.site&&n.urls){n.layout&&(z.layout.id=n.layout.id,z.layout.root=n.layout.root,z.layout.meta={},z.layout.root&&(await ci(z.layout.root.childs),Ys(z.layout.meta,z.layout.root))),z.site=n.site,z.site.code={mode:"vsc"},await rO(),z.site.api=D1(z.site.api_url),z.site.db=sx(z.site.api_url);let r=window;r.serverurl=z.site.api_url,r.db=z.site.db,r.api=z.site.api;for(let i of n.urls)e.insert(i.url,i),t.push(i)}}catch{}return{router:e,pages:t}},rO=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=z.site.api_url;r==="*"&&(r=`${location.protocol}//${location.host}`,z.site.api_url=r),r=(0,lm.default)(r,"/"),localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let i=new URL(location.href);if(i.pathname="",!r||!["prasi.avolut.com"].includes(i.hostname)&&i.port!=="4550"){i.hash="";let o=(0,lm.default)(i.toString(),"/");n.src=`${o}/_prasi/load.js?url=${o}&v3`,z.site.api_url=`${i.protocol}//${i.host}`}else n.src=`${r}/_prasi/load.js?url=${r}&v3`;n.onerror=()=>{e()},document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),Ys=(e,t)=>{for(let n of t.childs)go({set_meta:!0,comps:z.comp.list,meta:e,mode:"page"},{item:n})};var iO=new ei({structuredClone:!0}),Au={debug:!!localStorage.getItem("prasi-ws-debug"),reconnectTimeout:1e3,id_client:"",id_site:"",ws:null};var Nu=e=>{Au.ws&&oO(Au.ws,{type:"preview",mode:"listen",data:{...e,client_id:Au.id_client}})},oO=(e,t)=>{let n=iO.pack(t);Au.debug&&console.log("%c\u2B06","color:blue",sO(n.length,0),t),e.send(n)};function sO(e,t){if(e==0)return"0 Bytes";var n=1024,r=t||2,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(r))+" "+i[o]}var ci=async(e,t)=>{let n=z.comp;for(let i of e)i&&i.type!=="text"&&Pu(i,t);let r=Object.keys(n.pending);if(r.length>0){Nu({type:"comp",ids:r});try{let i=await(await fetch(z.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...r]})})).json();for(let[o,s]of Object.entries(i))delete n.pending[o],n.list[o]=s,await Gr(`comp-${o}`,s);if(Object.keys(n.pending).length>0){console.error(`Warning: component not found: ${Object.keys(n.pending)}`);return}await ci(Object.values(i))}catch(i){console.error(i)}}},Pu=(e,t)=>{let n=z.comp;if(e.type==="item"){let r=e.component?.id;if(r){if(!n.list[r]&&!n.pending[r]&&(n.pending[r]=[]),n.pending[r]&&(n.pending[r].find(i=>i.id===e.id)||n.pending[r].push(e)),n.pending[r]&&n.list[r]){for(let i of n.pending[r])for(let o of Object.values(i.component?.props||{}))o.content&&Pu(o.content,t);delete n.pending[r]}if(e.component?.props)for(let i of Object.values(e.component?.props||{}))i.content&&Pu(i.content,t)}}if(e.childs)for(let r of e.childs){let i=r;i&&i.type!=="text"&&Pu(i,t)}};y();w();_();var Lu={},mx=e=>(typeof Lu[e]=="object"||(Lu[e]=new Promise(async t=>{let n=!1,r=await fs(`page-${e}`);r&&(t(r),n=!0);let i=await(await fetch(z.url`_prasi/page/${e}`)).json();!i.root&&i.content_tree&&(i.root=i.content_tree,delete i.content_tree),n||t(i)})),Lu[e]),lO=e=>new Promise(async t=>{let n={},r=[...new Set(e)],i=!0;for(let s of r){let l=await fs(`page-${s}`);if(l)n[s]=l;else{i=!1;break}}i&&t(n);let o=await(await fetch(z.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();i||t(o)}),hx=async e=>{let t=e.map(r=>z.route.router?.lookup(r)).filter(r=>r&&r.id);return await lO(t.map(r=>r?.id))};y();w();_();var yx=Z(gx()),_x=()=>{let e=z;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,yx.default)();e.mode=t.device.type==="mobile"?"mobile":"desktop"}else e.site.responsive==="mobile-only"?e.mode="mobile":e.site.responsive==="desktop-only"&&(e.mode="desktop");localStorage.getItem("prasi-editor-mode")&&(e.mode=localStorage.getItem("prasi-editor-mode"))}};y();w();_();var Oe=window;var Wn=Z(me()),um=()=>location.hostname.split(".").length===4||location.hostname==="prasi.app"||location.hostname==="prasi.avolut.com"||location.hostname.includes("ngrok")||location.hostname==="localhost"||location.hostname==="127.0.0.1"||location.hostname==="10.0.2.2",vx=()=>{let e=mr({page_id:""}),[t,n]=(0,wx.useState)({}),r=()=>n({});Oe.prasiContext.render=r;let i=ld.Provider,o=um()&&location.pathname.startsWith("/prod");if(z.route.status!=="ready"||z.route.router?.ctx.rootNode.children.size===0)return z.route.status!=="loading"&&(z.route.status="loading",px().then(async({router:f,pages:d})=>{_x(),z.route.status="ready",z.route.router=f,z.route.pages=d;let h=Oe._prasi.basepath,S=`${h.endsWith("/")?h:`${h}/`}_prasi/code/index.js`,k=new URL(location.href);S.startsWith("/")&&(S=`${k.protocol}//${k.host}${S}`);let m=new Function("callback",`import("${S}").then(callback)`);await new Promise(g=>{m(v=>{for(let[x,N]of Object.entries(v))Oe[x]=N;g()})}),r()})),(0,Wn.jsx)(ds,{});let s=z.route.router;if(!s)return(0,Wn.jsx)(hd,{children:"Failed to create Router"});let l="";if(o){let f=location.pathname.split("/");md(f[3])&&(l=f[3])}let c=null,u=null;if(Oe._prasi.page_id)s.insert(z.pathname,{id:Oe._prasi.page_id,url:z.pathname}),c={id:Oe._prasi.page_id,url:"",params:Oe._prasi.params},Oe._prasi.routed={page_id:Oe._prasi.page_id,params:Oe._prasi.params},delete Oe._prasi.page_id,delete Oe._prasi.params;else{if(c=s.lookup(z.pathname),l){let f=z.route.pages.find(d=>l===d.id);u=f,f&&(c=f)}c&&Oe._prasi.routed&&Oe._prasi.routed.page_id===c.id&&Oe._prasi.routed.params&&(c.params=Oe._prasi.routed.params)}if(!c)return console.error("Page Not Found:",c,z),(0,Wn.jsx)(hd,{children:"Page Not Found"});c.id!==e.page_id&&(z.init_local_effect={},Nu({type:"page",id:c.id})),Oe.params=c.params||{},z.page.id=c.id,z.page.url=c.url;let a=z.page.cache[c.id];if(a)z.page.root=a.root,z.page.meta=a.meta;else return mx(c.id).then(async({root:f})=>{if(c){let d={id:c.id,url:c.url,root:f,meta:{}};await ci(f.childs,!0),Ys(d.meta,f),z.page.cache[d.id]=d,r()}}).catch(()=>{r()}),(0,Wn.jsx)(ds,{note:"Loading page"});let p="";return z.page.root.responsive==="mobile"?(z.mode="mobile",p=css` @media (min-width: 1280px) { border-left: 1px solid #ccc; border-right: 1px solid #ccc; diff --git a/static-br-temp/index.4c963c2c.js b/static-br-temp/index.4c963c2c.js new file mode 100644 index 00000000..63f7260c Binary files /dev/null and b/static-br-temp/index.4c963c2c.js differ diff --git a/static-br-temp/index.6ae0ce91.js b/static-br-temp/index.6ae0ce91.js deleted file mode 100644 index e1a2130c..00000000 Binary files a/static-br-temp/index.6ae0ce91.js and /dev/null differ diff --git a/static-br-temp/index.html b/static-br-temp/index.html index 61e2dc44..952c35d0 100644 Binary files a/static-br-temp/index.html and b/static-br-temp/index.html differ diff --git a/static-br-temp/index.runtime.561c243b.js b/static-br-temp/index.runtime.561c243b.js deleted file mode 100644 index 9091d37d..00000000 Binary files a/static-br-temp/index.runtime.561c243b.js and /dev/null differ diff --git a/static-br-temp/index.runtime.627eab12.js b/static-br-temp/index.runtime.627eab12.js new file mode 100644 index 00000000..0cef32f3 Binary files /dev/null and b/static-br-temp/index.runtime.627eab12.js differ diff --git a/static-br-temp/sworker.js b/static-br-temp/sworker.js index 83058ef6..7e2fcbf4 100644 Binary files a/static-br-temp/sworker.js and b/static-br-temp/sworker.js differ diff --git a/static-temp/index.6ae0ce91.js b/static-temp/index.4c963c2c.js similarity index 99% rename from static-temp/index.6ae0ce91.js rename to static-temp/index.4c963c2c.js index 5bdc2a67..2c4cb72b 100644 --- a/static-temp/index.6ae0ce91.js +++ b/static-temp/index.4c963c2c.js @@ -1,5 +1,5 @@ !function(e,t,r,n,a){var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},o="function"==typeof l[n]&&l[n],i=o.cache||{},s="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function u(t,r){if(!i[t]){if(!e[t]){var a="function"==typeof l[n]&&l[n];if(!r&&a)return a(t,!0);if(o)return o(t,!0);if(s&&"string"==typeof t)return s(t);var c=Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}d.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},d.cache={};var f=i[t]=new u.Module(t);e[t][0].call(f.exports,d,f,f.exports,this)}return i[t].exports;function d(e){var t=d.resolve(e);return!1===t?{}:u(t)}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=i,u.parent=o,u.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(u,"root",{get:function(){return l[n]}}),l[n]=u;for(var c=0;c{let e={root:null},t=new URL(f.w.basehost||location.href),r=`${t.protocol}//${t.host}`;f.w._db=(0,s.dbProxy)(r);try{await (0,i.loadApiProxyDef)(r,!1),f.w._api=(0,o.apiProxy)(r)}catch(e){t.host&&console.error("Failed to load API:",r)}f.w.serverurl=r,(0,c.sworkerRegister)(e),(0,l.defineReact)(),await (0,l.defineWindow)(!1),(0,c.sworkerAddCache)(r);let d=document.getElementById("root");d&&(e.root=(0,a.createRoot)(d),e.root.render((0,n.jsx)(u.Root,{})))})()},{"react/jsx-runtime":"f4Tol","react-dom/client":"6cxee","web-utils":"ccU4J","./base/load/api/api-proxy":"gSUXN","./base/load/api/api-proxy-def":"ad3R8","./base/load/db/db-proxy":"gXSmQ","./base/root":"4pSjz","./sworker-boot":"kQgkP","./utils/types/general":"fBAQm"}],f4Tol:[function(e,t,r){t.exports=e("74c4d8b749aa4062")},{"74c4d8b749aa4062":"5FE3b"}],"5FE3b":[function(e,t,r){var n=e("ec7c466cd0540f08"),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,l={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,n)&&!s.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:c,props:l,_owner:i.current}}r.Fragment=l,r.jsx=u,r.jsxs=u},{ec7c466cd0540f08:"aq5hc"}],aq5hc:[function(e,t,r){t.exports=e("7fae94c780840210")},{"7fae94c780840210":"4oFTj"}],"4oFTj":[function(e,t,r){var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function v(){}function w(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var _=w.prototype=new v;_.constructor=w,g(_,b.prototype),_.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var a,l={},o=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,a)&&!E.hasOwnProperty(a)&&(l[a]=t[a]);var s=arguments.length-2;if(1===s)l.children=r;else if(1