@adriansteffan/reactive 0.0.42 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +5 -2
- package/dist/{mod-UqYdghJl.js → mod-D6W3wq3h.js} +3 -8
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +1 -1
- package/dist/{web-pL-YTTVv.js → web-B1hJOwit.js} +1 -1
- package/dist/{web-eGzX65_f.js → web-BYSmfdtR.js} +1 -1
- package/package.json +1 -1
- package/src/components/quest.tsx +1 -8
package/dist/reactive.umd.js
CHANGED
|
@@ -118,7 +118,7 @@ Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",t
|
|
|
118
118
|
* surveyjs - Survey JavaScript library v2.4.1
|
|
119
119
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
120
120
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
121
|
-
*/var Rv={themeName:"contrast",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 216, 77, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 216, 77, 1)","--sjs-primary-backcolor-dark":"rgba(83, 83, 83, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.2)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(156, 2, 39, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};const Av=(n,e)=>{class t extends Lt{getType(){return n}}U.addClass(n,[],function(){return new t("")},"question");class s extends Rt{constructor(r){super(r),this.state={value:this.questionBase.value}}get question(){return this.questionBase}renderElement(){const r=e;return T.jsx(r,{setValue:a=>{this.question.value=a}})}}Qe.Instance.registerQuestion(n,i=>B.createElement(s,i))};function Jd({next:n,surveyJson:e,customQuestions:t={}}){Object.keys(t).forEach(r=>{Av(r,t[r])});const s=new De({...e,css:{...La,root:"sd-root-modern custom-root"}});s.applyTheme(Rv);const i=B.useCallback(r=>{const a={};for(const o in r.data){const l=r.getQuestionByName(o);l&&(a[o]=l.value)}n(a)},[n]);return s.onComplete.add(i),T.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[T.jsx("div",{className:"absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]"}),T.jsx(Rd,{model:s})]})}var kr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Za=typeof window>"u"||"Deno"in globalThis;function qs(){}function Lv(n,e){return typeof n=="function"?n(e):n}function Dv(n){return typeof n=="number"&&n>=0&&n!==1/0}function kv(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Yd(n,e){return typeof n=="function"?n(e):n}function _v(n,e){return typeof n=="function"?n(e):n}function Xd(n,e){const{type:t="all",exact:s,fetchStatus:i,predicate:r,queryKey:a,stale:o}=n;if(a){if(s){if(e.queryHash!==Ml(a,e.options))return!1}else if(!_r(e.queryKey,a))return!1}if(t!=="all"){const l=e.isActive();if(t==="active"&&!l||t==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||r&&!r(e))}function ec(n,e){const{exact:t,status:s,predicate:i,mutationKey:r}=n;if(r){if(!e.options.mutationKey)return!1;if(t){if(rn(e.options.mutationKey)!==rn(r))return!1}else if(!_r(e.options.mutationKey,r))return!1}return!(s&&e.state.status!==s||i&&!i(e))}function Ml(n,e){return((e==null?void 0:e.queryKeyHashFn)||rn)(n)}function rn(n){return JSON.stringify(n,(e,t)=>ql(t)?Object.keys(t).sort().reduce((s,i)=>(s[i]=t[i],s),{}):t)}function _r(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!_r(n[t],e[t])):!1}function Nl(n,e){if(n===e)return n;const t=tc(n)&&tc(e);if(t||ql(n)&&ql(e)){const s=t?n:Object.keys(n),i=s.length,r=t?e:Object.keys(e),a=r.length,o=t?[]:{};let l=0;for(let h=0;h<a;h++){const d=t?h:r[h];(!t&&s.includes(d)||t)&&n[d]===void 0&&e[d]===void 0?(o[d]=void 0,l++):(o[d]=Nl(n[d],e[d]),o[d]===n[d]&&n[d]!==void 0&&l++)}return i===a&&l===i?n:o}return e}function Ov(n,e){if(!e||Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function tc(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ql(n){if(!sc(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!sc(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function sc(n){return Object.prototype.toString.call(n)==="[object Object]"}function Mv(n){return new Promise(e=>{setTimeout(e,n)})}function Nv(n,e,t){if(typeof t.structuralSharing=="function")return t.structuralSharing(n,e);if(t.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Nl(n,e)}catch(s){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${t.queryHash}]: ${s}`)}return Nl(n,e)}return e}function qv(n,e,t=0){const s=[...n,e];return t&&s.length>t?s.slice(1):s}function Fv(n,e,t=0){const s=[e,...n];return t&&s.length>t?s.slice(0,-1):s}var Ka=Symbol();function ic(n,e){return process.env.NODE_ENV!=="production"&&n.queryFn===Ka&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${n.queryHash}'`),!n.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!n.queryFn||n.queryFn===Ka?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Bv=(Dg=class extends kr{constructor(){super();Ue(this,cn);Ue(this,qi);Ue(this,Zn);ke(this,Zn,e=>{if(!Za&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){$(this,qi)||this.setEventListener($(this,Zn))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,qi))==null||e.call(this),ke(this,qi,void 0))}setEventListener(e){var t;ke(this,Zn,e),(t=$(this,qi))==null||t.call(this),ke(this,qi,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){$(this,cn)!==e&&(ke(this,cn,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof $(this,cn)=="boolean"?$(this,cn):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},cn=new WeakMap,qi=new WeakMap,Zn=new WeakMap,Dg),nc=new Bv,Qv=(kg=class extends kr{constructor(){super();Ue(this,Kn,!0);Ue(this,Fi);Ue(this,Jn);ke(this,Jn,e=>{if(!Za&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}})}onSubscribe(){$(this,Fi)||this.setEventListener($(this,Jn))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,Fi))==null||e.call(this),ke(this,Fi,void 0))}setEventListener(e){var t;ke(this,Jn,e),(t=$(this,Fi))==null||t.call(this),ke(this,Fi,e(this.setOnline.bind(this)))}setOnline(e){$(this,Kn)!==e&&(ke(this,Kn,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return $(this,Kn)}},Kn=new WeakMap,Fi=new WeakMap,Jn=new WeakMap,kg),Ja=new Qv;function Hv(){let n,e;const t=new Promise((i,r)=>{n=i,e=r});t.status="pending",t.catch(()=>{});function s(i){Object.assign(t,i),delete t.resolve,delete t.reject}return t.resolve=i=>{s({status:"fulfilled",value:i}),n(i)},t.reject=i=>{s({status:"rejected",reason:i}),e(i)},t}function zv(n){return Math.min(1e3*2**n,3e4)}function rc(n){return(n??"online")==="online"?Ja.isOnline():!0}var ac=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Fl(n){return n instanceof ac}function oc(n){let e=!1,t=0,s=!1,i;const r=Hv(),a=y=>{var f;s||(g(new ac(y)),(f=n.abort)==null||f.call(n))},o=()=>{e=!0},l=()=>{e=!1},h=()=>nc.isFocused()&&(n.networkMode==="always"||Ja.isOnline())&&n.canRun(),d=()=>rc(n.networkMode)&&n.canRun(),c=y=>{var f;s||(s=!0,(f=n.onSuccess)==null||f.call(n,y),i==null||i(),r.resolve(y))},g=y=>{var f;s||(s=!0,(f=n.onError)==null||f.call(n,y),i==null||i(),r.reject(y))},x=()=>new Promise(y=>{var f;i=p=>{(s||h())&&y(p)},(f=n.onPause)==null||f.call(n)}).then(()=>{var y;i=void 0,s||(y=n.onContinue)==null||y.call(n)}),b=()=>{if(s)return;let y;const f=t===0?n.initialPromise:void 0;try{y=f??n.fn()}catch(p){y=Promise.reject(p)}Promise.resolve(y).then(c).catch(p=>{var I;if(s)return;const w=n.retry??(Za?0:3),V=n.retryDelay??zv,N=typeof V=="function"?V(t,p):V,O=w===!0||typeof w=="number"&&t<w||typeof w=="function"&&w(t,p);if(e||!O){g(p);return}t++,(I=n.onFail)==null||I.call(n,t,p),Mv(N).then(()=>h()?void 0:x()).then(()=>{e?g(p):b()})})};return{promise:r,cancel:a,continue:()=>(i==null||i(),r),cancelRetry:o,continueRetry:l,canStart:d,start:()=>(d()?b():x().then(b),r)}}function Uv(){let n=[],e=0,t=o=>{o()},s=o=>{o()},i=o=>setTimeout(o,0);const r=o=>{e?n.push(o):i(()=>{t(o)})},a=()=>{const o=n;n=[],o.length&&i(()=>{s(()=>{o.forEach(l=>{t(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{r(()=>{o(...l)})},schedule:r,setNotifyFunction:o=>{t=o},setBatchNotifyFunction:o=>{s=o},setScheduler:o=>{i=o}}}var Qt=Uv(),lc=(_g=class{constructor(){Ue(this,pn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dv(this.gcTime)&&ke(this,pn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Za?1/0:5*60*1e3))}clearGcTimeout(){$(this,pn)&&(clearTimeout($(this,pn)),ke(this,pn,void 0))}},pn=new WeakMap,_g),Wv=(Og=class extends lc{constructor(e){super();Ue(this,Hs);Ue(this,Yn);Ue(this,Xn);Ue(this,Ds);Ue(this,$t);Ue(this,Jr);Ue(this,gn);ke(this,gn,!1),ke(this,Jr,e.defaultOptions),this.setOptions(e.options),this.observers=[],ke(this,Ds,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ke(this,Yn,Gv(this.options)),this.state=e.state??$(this,Yn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=$(this,$t))==null?void 0:e.promise}setOptions(e){this.options={...$(this,Jr),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&$(this,Ds).remove(this)}setData(e,t){const s=Nv(this.state.data,e,this.options);return Pt(this,Hs,bi).call(this,{data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){Pt(this,Hs,bi).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var s,i;const t=(s=$(this,$t))==null?void 0:s.promise;return(i=$(this,$t))==null||i.cancel(e),t?t.then(qs).catch(qs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,Yn))}isActive(){return this.observers.some(e=>_v(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ka||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!kv(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=$(this,$t))==null||t.continue()}onOnline(){var t;const e=this.observers.find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=$(this,$t))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),$(this,Ds).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||($(this,$t)&&($(this,gn)?$(this,$t).cancel({revert:!0}):$(this,$t).cancelRetry()),this.scheduleGc()),$(this,Ds).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pt(this,Hs,bi).call(this,{type:"invalidate"})}fetch(e,t){var l,h,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if($(this,$t))return $(this,$t).continueRetry(),$(this,$t).promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(g=>g.options.queryFn);c&&this.setOptions(c.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const s=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(ke(this,gn,!0),s.signal)})},r=()=>{const c=ic(this.options,t),g={queryKey:this.queryKey,meta:this.meta};return i(g),ke(this,gn,!1),this.options.persister?this.options.persister(c,g,this):c(g)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:r};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),ke(this,Xn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=a.fetchOptions)==null?void 0:h.meta))&&Pt(this,Hs,bi).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const o=c=>{var g,x,b,y;Fl(c)&&c.silent||Pt(this,Hs,bi).call(this,{type:"error",error:c}),Fl(c)||((x=(g=$(this,Ds).config).onError)==null||x.call(g,c,this),(y=(b=$(this,Ds).config).onSettled)==null||y.call(b,this.state.data,c,this)),this.scheduleGc()};return ke(this,$t,oc({initialPromise:t==null?void 0:t.initialPromise,fn:a.fetchFn,abort:s.abort.bind(s),onSuccess:c=>{var g,x,b,y;if(c===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(f){o(f);return}(x=(g=$(this,Ds).config).onSuccess)==null||x.call(g,c,this),(y=(b=$(this,Ds).config).onSettled)==null||y.call(b,c,this.state.error,this),this.scheduleGc()},onError:o,onFail:(c,g)=>{Pt(this,Hs,bi).call(this,{type:"failed",failureCount:c,error:g})},onPause:()=>{Pt(this,Hs,bi).call(this,{type:"pause"})},onContinue:()=>{Pt(this,Hs,bi).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),$(this,$t).start()}},Yn=new WeakMap,Xn=new WeakMap,Ds=new WeakMap,$t=new WeakMap,Jr=new WeakMap,gn=new WeakMap,Hs=new WeakSet,bi=function(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...jv(s.data,this.options),fetchMeta:e.meta??null};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Fl(i)&&i.revert&&$(this,Xn)?{...$(this,Xn),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Qt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),$(this,Ds).notify({query:this,type:"updated",action:e})})},Og);function jv(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rc(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Gv(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=e!==void 0,s=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var $v=(Mg=class extends kr{constructor(e={}){super();Ue(this,si);this.config=e,ke(this,si,new Map)}build(e,t,s){const i=t.queryKey,r=t.queryHash??Ml(i,t);let a=this.get(r);return a||(a=new Wv({cache:this,queryKey:i,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){$(this,si).has(e.queryHash)||($(this,si).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=$(this,si).get(e.queryHash);t&&(e.destroy(),t===e&&$(this,si).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return $(this,si).get(e)}getAll(){return[...$(this,si).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>Xd(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>Xd(e,s)):t}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},si=new WeakMap,Mg),Zv=(Ng=class extends lc{constructor(e){super();Ue(this,ni);Ue(this,ii);Ue(this,ts);Ue(this,mn);this.mutationId=e.mutationId,ke(this,ts,e.mutationCache),ke(this,ii,[]),this.state=e.state||uc(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){$(this,ii).includes(e)||($(this,ii).push(e),this.clearGcTimeout(),$(this,ts).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ke(this,ii,$(this,ii).filter(t=>t!==e)),this.scheduleGc(),$(this,ts).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){$(this,ii).length||(this.state.status==="pending"?this.scheduleGc():$(this,ts).remove(this))}continue(){var e;return((e=$(this,mn))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,r,a,o,l,h,d,c,g,x,b,y,f,p,w,V,N,O,I,L;ke(this,mn,oc({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(P,k)=>{Pt(this,ni,Zi).call(this,{type:"failed",failureCount:P,error:k})},onPause:()=>{Pt(this,ni,Zi).call(this,{type:"pause"})},onContinue:()=>{Pt(this,ni,Zi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>$(this,ts).canRun(this)}));const t=this.state.status==="pending",s=!$(this,mn).canStart();try{if(!t){Pt(this,ni,Zi).call(this,{type:"pending",variables:e,isPaused:s}),await((r=(i=$(this,ts).config).onMutate)==null?void 0:r.call(i,e,this));const k=await((o=(a=this.options).onMutate)==null?void 0:o.call(a,e));k!==this.state.context&&Pt(this,ni,Zi).call(this,{type:"pending",context:k,variables:e,isPaused:s})}const P=await $(this,mn).start();return await((h=(l=$(this,ts).config).onSuccess)==null?void 0:h.call(l,P,e,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,P,e,this.state.context)),await((x=(g=$(this,ts).config).onSettled)==null?void 0:x.call(g,P,null,this.state.variables,this.state.context,this)),await((y=(b=this.options).onSettled)==null?void 0:y.call(b,P,null,e,this.state.context)),Pt(this,ni,Zi).call(this,{type:"success",data:P}),P}catch(P){try{throw await((p=(f=$(this,ts).config).onError)==null?void 0:p.call(f,P,e,this.state.context,this)),await((V=(w=this.options).onError)==null?void 0:V.call(w,P,e,this.state.context)),await((O=(N=$(this,ts).config).onSettled)==null?void 0:O.call(N,void 0,P,this.state.variables,this.state.context,this)),await((L=(I=this.options).onSettled)==null?void 0:L.call(I,void 0,P,e,this.state.context)),P}finally{Pt(this,ni,Zi).call(this,{type:"error",error:P})}}finally{$(this,ts).runNext(this)}}},ii=new WeakMap,ts=new WeakMap,mn=new WeakMap,ni=new WeakSet,Zi=function(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Qt.batch(()=>{$(this,ii).forEach(s=>{s.onMutationUpdate(e)}),$(this,ts).notify({mutation:this,type:"updated",action:e})})},Ng);function uc(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kv=(qg=class extends kr{constructor(e={}){super();Ue(this,Vs);Ue(this,Yr);this.config=e,ke(this,Vs,new Map),ke(this,Yr,Date.now())}build(e,t,s){const i=new Zv({mutationCache:this,mutationId:++Mo(this,Yr)._,options:e.defaultMutationOptions(t),state:s});return this.add(i),i}add(e){const t=Ya(e),s=$(this,Vs).get(t)??[];s.push(e),$(this,Vs).set(t,s),this.notify({type:"added",mutation:e})}remove(e){var s;const t=Ya(e);if($(this,Vs).has(t)){const i=(s=$(this,Vs).get(t))==null?void 0:s.filter(r=>r!==e);i&&(i.length===0?$(this,Vs).delete(t):$(this,Vs).set(t,i))}this.notify({type:"removed",mutation:e})}canRun(e){var s;const t=(s=$(this,Vs).get(Ya(e)))==null?void 0:s.find(i=>i.state.status==="pending");return!t||t===e}runNext(e){var s;const t=(s=$(this,Vs).get(Ya(e)))==null?void 0:s.find(i=>i!==e&&i.state.isPaused);return(t==null?void 0:t.continue())??Promise.resolve()}clear(){Qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...$(this,Vs).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find(s=>ec(t,s))}findAll(e={}){return this.getAll().filter(t=>ec(e,t))}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Qt.batch(()=>Promise.all(e.map(t=>t.continue().catch(qs))))}},Vs=new WeakMap,Yr=new WeakMap,qg);function Ya(n){var e;return((e=n.options.scope)==null?void 0:e.id)??String(n.mutationId)}function hc(n){return{onFetch:(e,t)=>{var d,c,g,x,b;const s=e.options,i=(g=(c=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:g.direction,r=((x=e.state.data)==null?void 0:x.pages)||[],a=((b=e.state.data)==null?void 0:b.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const h=async()=>{let y=!1;const f=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(e.signal.aborted?y=!0:e.signal.addEventListener("abort",()=>{y=!0}),e.signal)})},p=ic(e.options,e.fetchOptions),w=async(V,N,O)=>{if(y)return Promise.reject();if(N==null&&V.pages.length)return Promise.resolve(V);const I={queryKey:e.queryKey,pageParam:N,direction:O?"backward":"forward",meta:e.options.meta};f(I);const L=await p(I),{maxPages:P}=e.options,k=O?Fv:qv;return{pages:k(V.pages,L,P),pageParams:k(V.pageParams,N,P)}};if(i&&r.length){const V=i==="backward",N=V?Jv:dc,O={pages:r,pageParams:a},I=N(s,O);o=await w(O,I,V)}else{const V=n??r.length;do{const N=l===0?a[0]??s.initialPageParam:dc(s,o);if(l>0&&N==null)break;o=await w(o,N),l++}while(l<V)}return o};e.options.persister?e.fetchFn=()=>{var y,f;return(f=(y=e.options).persister)==null?void 0:f.call(y,h,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=h}}}function dc(n,{pages:e,pageParams:t}){const s=e.length-1;return e.length>0?n.getNextPageParam(e[s],e,t[s],t):void 0}function Jv(n,{pages:e,pageParams:t}){var s;return e.length>0?(s=n.getPreviousPageParam)==null?void 0:s.call(n,e[0],e,t[0],t):void 0}var Yv=(Fg=class{constructor(n={}){Ue(this,xt);Ue(this,Bi);Ue(this,Qi);Ue(this,er);Ue(this,tr);Ue(this,Hi);Ue(this,sr);Ue(this,ir);ke(this,xt,n.queryCache||new $v),ke(this,Bi,n.mutationCache||new Kv),ke(this,Qi,n.defaultOptions||{}),ke(this,er,new Map),ke(this,tr,new Map),ke(this,Hi,0)}mount(){Mo(this,Hi)._++,$(this,Hi)===1&&(ke(this,sr,nc.subscribe(async n=>{n&&(await this.resumePausedMutations(),$(this,xt).onFocus())})),ke(this,ir,Ja.subscribe(async n=>{n&&(await this.resumePausedMutations(),$(this,xt).onOnline())})))}unmount(){var n,e;Mo(this,Hi)._--,$(this,Hi)===0&&((n=$(this,sr))==null||n.call(this),ke(this,sr,void 0),(e=$(this,ir))==null||e.call(this),ke(this,ir,void 0))}isFetching(n){return $(this,xt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return $(this,Bi).findAll({...n,status:"pending"}).length}getQueryData(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=$(this,xt).get(e.queryHash))==null?void 0:t.state.data}ensureQueryData(n){const e=this.getQueryData(n.queryKey);if(e===void 0)return this.fetchQuery(n);{const t=this.defaultQueryOptions(n),s=$(this,xt).build(this,t);return n.revalidateIfStale&&s.isStaleByTime(Yd(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(e)}}getQueriesData(n){return $(this,xt).findAll(n).map(({queryKey:e,state:t})=>{const s=t.data;return[e,s]})}setQueryData(n,e,t){const s=this.defaultQueryOptions({queryKey:n}),i=$(this,xt).get(s.queryHash),r=i==null?void 0:i.state.data,a=Lv(e,r);if(a!==void 0)return $(this,xt).build(this,s).setData(a,{...t,manual:!0})}setQueriesData(n,e,t){return Qt.batch(()=>$(this,xt).findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,e,t)]))}getQueryState(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=$(this,xt).get(e.queryHash))==null?void 0:t.state}removeQueries(n){const e=$(this,xt);Qt.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=$(this,xt),s={type:"active",...n};return Qt.batch(()=>(t.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries(s,e)))}cancelQueries(n={},e={}){const t={revert:!0,...e},s=Qt.batch(()=>$(this,xt).findAll(n).map(i=>i.cancel(t)));return Promise.all(s).then(qs).catch(qs)}invalidateQueries(n={},e={}){return Qt.batch(()=>{if($(this,xt).findAll(n).forEach(s=>{s.invalidate()}),n.refetchType==="none")return Promise.resolve();const t={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(t,e)})}refetchQueries(n={},e){const t={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},s=Qt.batch(()=>$(this,xt).findAll(n).filter(i=>!i.isDisabled()).map(i=>{let r=i.fetch(void 0,t);return t.throwOnError||(r=r.catch(qs)),i.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(s).then(qs)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const t=$(this,xt).build(this,e);return t.isStaleByTime(Yd(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(qs).catch(qs)}fetchInfiniteQuery(n){return n.behavior=hc(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(qs).catch(qs)}ensureInfiniteQueryData(n){return n.behavior=hc(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ja.isOnline()?$(this,Bi).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,xt)}getMutationCache(){return $(this,Bi)}getDefaultOptions(){return $(this,Qi)}setDefaultOptions(n){ke(this,Qi,n)}setQueryDefaults(n,e){$(this,er).set(rn(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...$(this,er).values()];let t={};return e.forEach(s=>{_r(n,s.queryKey)&&(t={...t,...s.defaultOptions})}),t}setMutationDefaults(n,e){$(this,tr).set(rn(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...$(this,tr).values()];let t={};return e.forEach(s=>{_r(n,s.mutationKey)&&(t={...t,...s.defaultOptions})}),t}defaultQueryOptions(n){if(n._defaulted)return n;const e={...$(this,Qi).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=Ml(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Ka&&(e.enabled=!1),e}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...$(this,Qi).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){$(this,xt).clear(),$(this,Bi).clear()}},xt=new WeakMap,Bi=new WeakMap,Qi=new WeakMap,er=new WeakMap,tr=new WeakMap,Hi=new WeakMap,sr=new WeakMap,ir=new WeakMap,Fg),Xv=(Bg=class extends kr{constructor(e,t){super();Ue(this,Ci);Ue(this,zi);Ue(this,Ui);Ue(this,hs);Ue(this,yi);ke(this,zi,e),this.setOptions(t),this.bindMethods(),Pt(this,Ci,No).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var s;const t=this.options;this.options=$(this,zi).defaultMutationOptions(e),Ov(this.options,t)||$(this,zi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:$(this,hs),observer:this}),t!=null&&t.mutationKey&&this.options.mutationKey&&rn(t.mutationKey)!==rn(this.options.mutationKey)?this.reset():((s=$(this,hs))==null?void 0:s.state.status)==="pending"&&$(this,hs).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=$(this,hs))==null||e.removeObserver(this)}onMutationUpdate(e){Pt(this,Ci,No).call(this),Pt(this,Ci,Ou).call(this,e)}getCurrentResult(){return $(this,Ui)}reset(){var e;(e=$(this,hs))==null||e.removeObserver(this),ke(this,hs,void 0),Pt(this,Ci,No).call(this),Pt(this,Ci,Ou).call(this)}mutate(e,t){var s;return ke(this,yi,t),(s=$(this,hs))==null||s.removeObserver(this),ke(this,hs,$(this,zi).getMutationCache().build($(this,zi),this.options)),$(this,hs).addObserver(this),$(this,hs).execute(e)}},zi=new WeakMap,Ui=new WeakMap,hs=new WeakMap,yi=new WeakMap,Ci=new WeakSet,No=function(){var t;const e=((t=$(this,hs))==null?void 0:t.state)??uc();ke(this,Ui,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},Ou=function(e){Qt.batch(()=>{var t,s,i,r,a,o,l,h;if($(this,yi)&&this.hasListeners()){const d=$(this,Ui).variables,c=$(this,Ui).context;(e==null?void 0:e.type)==="success"?((s=(t=$(this,yi)).onSuccess)==null||s.call(t,e.data,d,c),(r=(i=$(this,yi)).onSettled)==null||r.call(i,e.data,null,d,c)):(e==null?void 0:e.type)==="error"&&((o=(a=$(this,yi)).onError)==null||o.call(a,e.error,d,c),(h=(l=$(this,yi)).onSettled)==null||h.call(l,void 0,e.error,d,c))}this.listeners.forEach(d=>{d($(this,Ui))})})},Bg),cc=u.createContext(void 0),e0=n=>{const e=u.useContext(cc);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},t0=({client:n,children:e})=>(u.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),T.jsx(cc.Provider,{value:n,children:e}));function s0(n,e){return typeof n=="function"?n(...e):!!n}function i0(){}function n0(n,e){const t=e0(),[s]=u.useState(()=>new Xv(t,n));u.useEffect(()=>{s.setOptions(n)},[s,n]);const i=u.useSyncExternalStore(u.useCallback(a=>s.subscribe(Qt.batchCalls(a)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),r=u.useCallback((a,o)=>{s.mutate(a,o).catch(i0)},[s]);if(i.error&&s0(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:r,mutateAsync:i.mutate}}const Ht=[];for(let n=0;n<256;++n)Ht.push((n+256).toString(16).slice(1));function r0(n,e=0){return(Ht[n[e+0]]+Ht[n[e+1]]+Ht[n[e+2]]+Ht[n[e+3]]+"-"+Ht[n[e+4]]+Ht[n[e+5]]+"-"+Ht[n[e+6]]+Ht[n[e+7]]+"-"+Ht[n[e+8]]+Ht[n[e+9]]+"-"+Ht[n[e+10]]+Ht[n[e+11]]+Ht[n[e+12]]+Ht[n[e+13]]+Ht[n[e+14]]+Ht[n[e+15]]).toLowerCase()}let Bl;const a0=new Uint8Array(16);function o0(){if(!Bl){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bl=crypto.getRandomValues.bind(crypto)}return Bl(a0)}const pc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function l0(n,e,t){if(pc.randomUUID&&!e&&!n)return pc.randomUUID();n=n||{};const s=n.random||(n.rng||o0)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,r0(s)}const gc="/backend";async function u0(n,e){return e instanceof FormData?await fetch(`${gc}${n}`,{method:"POST",body:e}):fetch(`${gc}${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}const Or=15,Ql=30,Hl=19,h0=29,Xa=256,zl=Xa+1+h0,mc=2*zl+1,Mr=256,d0=7,fc=16,yc=17,Cc=18,Ul=8*2,eo=-1,c0=1,to=2,p0=0,Un=0,vc=1,g0=3,rs=4,Fs=0,bc=1,so=2,Bs=-2,m0=-3,Wn=-5;function io(n){return no(n.map(([e,t])=>new Array(e).fill(t,0,e)))}function no(n){return n.reduce((e,t)=>e.concat(Array.isArray(t)?no(t):t),[])}const wc=[0,1,2,3].concat(...io([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function gt(){const n=this;function e(i){const r=n.dyn_tree,a=n.stat_desc.static_tree,o=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,h=n.stat_desc.max_length;let d,c,g,x,b,y,f=0;for(x=0;x<=Or;x++)i.bl_count[x]=0;for(r[i.heap[i.heap_max]*2+1]=0,d=i.heap_max+1;d<mc;d++)c=i.heap[d],x=r[r[c*2+1]*2+1]+1,x>h&&(x=h,f++),r[c*2+1]=x,!(c>n.max_code)&&(i.bl_count[x]++,b=0,c>=l&&(b=o[c-l]),y=r[c*2],i.opt_len+=y*(x+b),a&&(i.static_len+=y*(a[c*2+1]+b)));if(f!==0){do{for(x=h-1;i.bl_count[x]===0;)x--;i.bl_count[x]--,i.bl_count[x+1]+=2,i.bl_count[h]--,f-=2}while(f>0);for(x=h;x!==0;x--)for(c=i.bl_count[x];c!==0;)g=i.heap[--d],!(g>n.max_code)&&(r[g*2+1]!=x&&(i.opt_len+=(x-r[g*2+1])*r[g*2],r[g*2+1]=x),c--)}}function t(i,r){let a=0;do a|=i&1,i>>>=1,a<<=1;while(--r>0);return a>>>1}function s(i,r,a){const o=[];let l=0,h,d,c;for(h=1;h<=Or;h++)o[h]=l=l+a[h-1]<<1;for(d=0;d<=r;d++)c=i[d*2+1],c!==0&&(i[d*2]=t(o[c]++,c))}n.build_tree=function(i){const r=n.dyn_tree,a=n.stat_desc.static_tree,o=n.stat_desc.elems;let l,h,d=-1,c;for(i.heap_len=0,i.heap_max=mc,l=0;l<o;l++)r[l*2]!==0?(i.heap[++i.heap_len]=d=l,i.depth[l]=0):r[l*2+1]=0;for(;i.heap_len<2;)c=i.heap[++i.heap_len]=d<2?++d:0,r[c*2]=1,i.depth[c]=0,i.opt_len--,a&&(i.static_len-=a[c*2+1]);for(n.max_code=d,l=Math.floor(i.heap_len/2);l>=1;l--)i.pqdownheap(r,l);c=o;do l=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(r,1),h=i.heap[1],i.heap[--i.heap_max]=l,i.heap[--i.heap_max]=h,r[c*2]=r[l*2]+r[h*2],i.depth[c]=Math.max(i.depth[l],i.depth[h])+1,r[l*2+1]=r[h*2+1]=c,i.heap[1]=c++,i.pqdownheap(r,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],e(i),s(r,n.max_code,i.bl_count)}}gt._length_code=[0,1,2,3,4,5,6,7].concat(...io([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),gt.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],gt.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],gt.d_code=function(n){return n<256?wc[n]:wc[256+(n>>>7)]},gt.extra_lbits=[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],gt.extra_dbits=[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],gt.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],gt.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function zt(n,e,t,s,i){const r=this;r.static_tree=n,r.extra_bits=e,r.extra_base=t,r.elems=s,r.max_length=i}const f0=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],y0=io([[144,8],[112,9],[24,7],[8,8]]);zt.static_ltree=no(f0.map((n,e)=>[n,y0[e]]));const C0=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],v0=io([[30,5]]);zt.static_dtree=no(C0.map((n,e)=>[n,v0[e]])),zt.static_l_desc=new zt(zt.static_ltree,gt.extra_lbits,Xa+1,zl,Or),zt.static_d_desc=new zt(zt.static_dtree,gt.extra_dbits,0,Ql,Or),zt.static_bl_desc=new zt(null,gt.extra_blbits,0,Hl,d0);const b0=9,w0=8;function Ys(n,e,t,s,i){const r=this;r.good_length=n,r.max_lazy=e,r.nice_length=t,r.max_chain=s,r.func=i}const xc=0,ro=1,an=2,Qs=[new Ys(0,0,0,0,xc),new Ys(4,4,8,4,ro),new Ys(4,5,16,8,ro),new Ys(4,6,32,32,ro),new Ys(4,4,16,16,an),new Ys(8,16,32,32,an),new Ys(8,16,128,128,an),new Ys(8,32,128,256,an),new Ys(32,128,258,1024,an),new Ys(32,258,258,4096,an)],ao=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],As=0,oo=1,Nr=2,lo=3,x0=32,Wl=42,uo=113,qr=666,jl=8,V0=0,Gl=1,E0=2,yt=3,ho=258,bs=ho+yt+1;function Vc(n,e,t,s){const i=n[e*2],r=n[t*2];return i<r||i==r&&s[e]<=s[t]}function S0(){const n=this;let e,t,s,i,r,a,o,l,h,d,c,g,x,b,y,f,p,w,V,N,O,I,L,P,k,q,z,j,D,F,Q,H,Z;const ee=new gt,ve=new gt,se=new gt;n.depth=[];let fe,oe,pe,Le,be,ne;n.bl_count=[],n.heap=[],Q=[],H=[],Z=[];function Ve(){h=2*r,c[x-1]=0;for(let J=0;J<x-1;J++)c[J]=0;q=Qs[z].max_lazy,D=Qs[z].good_length,F=Qs[z].nice_length,k=Qs[z].max_chain,O=0,p=0,L=0,w=P=yt-1,N=0,g=0}function ht(){let J;for(J=0;J<zl;J++)Q[J*2]=0;for(J=0;J<Ql;J++)H[J*2]=0;for(J=0;J<Hl;J++)Z[J*2]=0;Q[Mr*2]=1,n.opt_len=n.static_len=0,oe=pe=0}function ss(){ee.dyn_tree=Q,ee.stat_desc=zt.static_l_desc,ve.dyn_tree=H,ve.stat_desc=zt.static_d_desc,se.dyn_tree=Z,se.stat_desc=zt.static_bl_desc,be=0,ne=0,Le=8,ht()}n.pqdownheap=function(J,ie){const Y=n.heap,re=Y[ie];let ce=ie<<1;for(;ce<=n.heap_len&&(ce<n.heap_len&&Vc(J,Y[ce+1],Y[ce],n.depth)&&ce++,!Vc(J,re,Y[ce],n.depth));)Y[ie]=Y[ce],ie=ce,ce<<=1;Y[ie]=re};function Ot(J,ie){let Y=-1,re,ce=J[0*2+1],Ie=0,Ne=7,Ct=4;ce===0&&(Ne=138,Ct=3),J[(ie+1)*2+1]=65535;for(let jt=0;jt<=ie;jt++)re=ce,ce=J[(jt+1)*2+1],!(++Ie<Ne&&re==ce)&&(Ie<Ct?Z[re*2]+=Ie:re!==0?(re!=Y&&Z[re*2]++,Z[fc*2]++):Ie<=10?Z[yc*2]++:Z[Cc*2]++,Ie=0,Y=re,ce===0?(Ne=138,Ct=3):re==ce?(Ne=6,Ct=3):(Ne=7,Ct=4))}function zs(){let J;for(Ot(Q,ee.max_code),Ot(H,ve.max_code),se.build_tree(n),J=Hl-1;J>=3&&Z[gt.bl_order[J]*2+1]===0;J--);return n.opt_len+=3*(J+1)+5+5+4,J}function Zt(J){n.pending_buf[n.pending++]=J}function is(J){Zt(J&255),Zt(J>>>8&255)}function Us(J){Zt(J>>8&255),Zt(J&255&255)}function Ze(J,ie){let Y;const re=ie;ne>Ul-re?(Y=J,be|=Y<<ne&65535,is(be),be=Y>>>Ul-ne,ne+=re-Ul):(be|=J<<ne&65535,ne+=re)}function nt(J,ie){const Y=J*2;Ze(ie[Y]&65535,ie[Y+1]&65535)}function ds(J,ie){let Y,re=-1,ce,Ie=J[0*2+1],Ne=0,Ct=7,jt=4;for(Ie===0&&(Ct=138,jt=3),Y=0;Y<=ie;Y++)if(ce=Ie,Ie=J[(Y+1)*2+1],!(++Ne<Ct&&ce==Ie)){if(Ne<jt)do nt(ce,Z);while(--Ne!==0);else ce!==0?(ce!=re&&(nt(ce,Z),Ne--),nt(fc,Z),Ze(Ne-3,2)):Ne<=10?(nt(yc,Z),Ze(Ne-3,3)):(nt(Cc,Z),Ze(Ne-11,7));Ne=0,re=ce,Ie===0?(Ct=138,jt=3):ce==Ie?(Ct=6,jt=3):(Ct=7,jt=4)}}function Wt(J,ie,Y){let re;for(Ze(J-257,5),Ze(ie-1,5),Ze(Y-4,4),re=0;re<Y;re++)Ze(Z[gt.bl_order[re]*2+1],3);ds(Q,J-1),ds(H,ie-1)}function Vt(){ne==16?(is(be),be=0,ne=0):ne>=8&&(Zt(be&255),be>>>=8,ne-=8)}function cs(){Ze(Gl<<1,3),nt(Mr,zt.static_ltree),Vt(),1+Le+10-ne<9&&(Ze(Gl<<1,3),nt(Mr,zt.static_ltree),Vt()),Le=7}function ps(J,ie){let Y,re,ce;if(n.dist_buf[oe]=J,n.lc_buf[oe]=ie&255,oe++,J===0?Q[ie*2]++:(pe++,J--,Q[(gt._length_code[ie]+Xa+1)*2]++,H[gt.d_code(J)*2]++),!(oe&8191)&&z>2){for(Y=oe*8,re=O-p,ce=0;ce<Ql;ce++)Y+=H[ce*2]*(5+gt.extra_dbits[ce]);if(Y>>>=3,pe<Math.floor(oe/2)&&Y<Math.floor(re/2))return!0}return oe==fe-1}function Mt(J,ie){let Y,re,ce=0,Ie,Ne;if(oe!==0)do Y=n.dist_buf[ce],re=n.lc_buf[ce],ce++,Y===0?nt(re,J):(Ie=gt._length_code[re],nt(Ie+Xa+1,J),Ne=gt.extra_lbits[Ie],Ne!==0&&(re-=gt.base_length[Ie],Ze(re,Ne)),Y--,Ie=gt.d_code(Y),nt(Ie,ie),Ne=gt.extra_dbits[Ie],Ne!==0&&(Y-=gt.base_dist[Ie],Ze(Y,Ne)));while(ce<oe);nt(Mr,J),Le=J[Mr*2+1]}function Wi(){ne>8?is(be):ne>0&&Zt(be&255),be=0,ne=0}function fn(J,ie,Y){Wi(),Le=8,is(ie),is(~ie),n.pending_buf.set(l.subarray(J,J+ie),n.pending),n.pending+=ie}function ks(J,ie,Y){Ze((V0<<1)+(Y?1:0),3),fn(J,ie)}function yn(J,ie,Y){let re,ce,Ie=0;z>0?(ee.build_tree(n),ve.build_tree(n),Ie=zs(),re=n.opt_len+3+7>>>3,ce=n.static_len+3+7>>>3,ce<=re&&(re=ce)):re=ce=ie+5,ie+4<=re&&J!=-1?ks(J,ie,Y):ce==re?(Ze((Gl<<1)+(Y?1:0),3),Mt(zt.static_ltree,zt.static_dtree)):(Ze((E0<<1)+(Y?1:0),3),Wt(ee.max_code+1,ve.max_code+1,Ie+1),Mt(Q,H)),ht(),Y&&Wi()}function Kt(J){yn(p>=0?p:-1,O-p,J),p=O,e.flush_pending()}function Cn(){let J,ie,Y,re;do{if(re=h-L-O,re===0&&O===0&&L===0)re=r;else if(re==-1)re--;else if(O>=r+r-bs){l.set(l.subarray(r,r+r),0),I-=r,O-=r,p-=r,J=x,Y=J;do ie=c[--Y]&65535,c[Y]=ie>=r?ie-r:0;while(--J!==0);J=r,Y=J;do ie=d[--Y]&65535,d[Y]=ie>=r?ie-r:0;while(--J!==0);re+=r}if(e.avail_in===0)return;J=e.read_buf(l,O+L,re),L+=J,L>=yt&&(g=l[O]&255,g=(g<<f^l[O+1]&255)&y)}while(L<bs&&e.avail_in!==0)}function nr(J){let ie=65535,Y;for(ie>s-5&&(ie=s-5);;){if(L<=1){if(Cn(),L===0&&J==Un)return As;if(L===0)break}if(O+=L,L=0,Y=p+ie,(O===0||O>=Y)&&(L=O-Y,O=Y,Kt(!1),e.avail_out===0)||O-p>=r-bs&&(Kt(!1),e.avail_out===0))return As}return Kt(J==rs),e.avail_out===0?J==rs?Nr:As:J==rs?lo:oo}function ji(J){let ie=k,Y=O,re,ce,Ie=P;const Ne=O>r-bs?O-(r-bs):0;let Ct=F;const jt=o,ri=O+ho;let vn=l[Y+Ie-1],or=l[Y+Ie];P>=D&&(ie>>=2),Ct>L&&(Ct=L);do if(re=J,!(l[re+Ie]!=or||l[re+Ie-1]!=vn||l[re]!=l[Y]||l[++re]!=l[Y+1])){Y+=2,re++;do;while(l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&Y<ri);if(ce=ho-(ri-Y),Y=ri-ho,ce>Ie){if(I=J,Ie=ce,ce>=Ct)break;vn=l[Y+Ie-1],or=l[Y+Ie]}}while((J=d[J&jt]&65535)>Ne&&--ie!==0);return Ie<=L?Ie:L}function Gi(J){let ie=0,Y;for(;;){if(L<bs){if(Cn(),L<bs&&J==Un)return As;if(L===0)break}if(L>=yt&&(g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O),ie!==0&&(O-ie&65535)<=r-bs&&j!=to&&(w=ji(ie)),w>=yt)if(Y=ps(O-I,w-yt),L-=w,w<=q&&L>=yt){w--;do O++,g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O;while(--w!==0);O++}else O+=w,w=0,g=l[O]&255,g=(g<<f^l[O+1]&255)&y;else Y=ps(0,l[O]&255),L--,O++;if(Y&&(Kt(!1),e.avail_out===0))return As}return Kt(J==rs),e.avail_out===0?J==rs?Nr:As:J==rs?lo:oo}function rr(J){let ie=0,Y,re;for(;;){if(L<bs){if(Cn(),L<bs&&J==Un)return As;if(L===0)break}if(L>=yt&&(g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O),P=w,V=I,w=yt-1,ie!==0&&P<q&&(O-ie&65535)<=r-bs&&(j!=to&&(w=ji(ie)),w<=5&&(j==c0||w==yt&&O-I>4096)&&(w=yt-1)),P>=yt&&w<=P){re=O+L-yt,Y=ps(O-1-V,P-yt),L-=P-1,P-=2;do++O<=re&&(g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O);while(--P!==0);if(N=0,w=yt-1,O++,Y&&(Kt(!1),e.avail_out===0))return As}else if(N!==0){if(Y=ps(0,l[O-1]&255),Y&&Kt(!1),O++,L--,e.avail_out===0)return As}else N=1,O++,L--}return N!==0&&(Y=ps(0,l[O-1]&255),N=0),Kt(J==rs),e.avail_out===0?J==rs?Nr:As:J==rs?lo:oo}function ar(J){return J.total_in=J.total_out=0,J.msg=null,n.pending=0,n.pending_out=0,t=uo,i=Un,ss(),Ve(),Fs}n.deflateInit=function(J,ie,Y,re,ce,Ie){return re||(re=jl),ce||(ce=w0),Ie||(Ie=p0),J.msg=null,ie==eo&&(ie=6),ce<1||ce>b0||re!=jl||Y<9||Y>15||ie<0||ie>9||Ie<0||Ie>to?Bs:(J.dstate=n,a=Y,r=1<<a,o=r-1,b=ce+7,x=1<<b,y=x-1,f=Math.floor((b+yt-1)/yt),l=new Uint8Array(r*2),d=[],c=[],fe=1<<ce+6,n.pending_buf=new Uint8Array(fe*4),s=fe*4,n.dist_buf=new Uint16Array(fe),n.lc_buf=new Uint8Array(fe),z=ie,j=Ie,ar(J))},n.deflateEnd=function(){return t!=Wl&&t!=uo&&t!=qr?Bs:(n.lc_buf=null,n.dist_buf=null,n.pending_buf=null,c=null,d=null,l=null,n.dstate=null,t==uo?m0:Fs)},n.deflateParams=function(J,ie,Y){let re=Fs;return ie==eo&&(ie=6),ie<0||ie>9||Y<0||Y>to?Bs:(Qs[z].func!=Qs[ie].func&&J.total_in!==0&&(re=J.deflate(vc)),z!=ie&&(z=ie,q=Qs[z].max_lazy,D=Qs[z].good_length,F=Qs[z].nice_length,k=Qs[z].max_chain),j=Y,re)},n.deflateSetDictionary=function(J,ie,Y){let re=Y,ce,Ie=0;if(!ie||t!=Wl)return Bs;if(re<yt)return Fs;for(re>r-bs&&(re=r-bs,Ie=Y-re),l.set(ie.subarray(Ie,Ie+re),0),O=re,p=re,g=l[0]&255,g=(g<<f^l[1]&255)&y,ce=0;ce<=re-yt;ce++)g=(g<<f^l[ce+(yt-1)]&255)&y,d[ce&o]=c[g],c[g]=ce;return Fs},n.deflate=function(J,ie){let Y,re,ce,Ie,Ne;if(ie>rs||ie<0)return Bs;if(!J.next_out||!J.next_in&&J.avail_in!==0||t==qr&&ie!=rs)return J.msg=ao[so-Bs],Bs;if(J.avail_out===0)return J.msg=ao[so-Wn],Wn;if(e=J,Ie=i,i=ie,t==Wl&&(re=jl+(a-8<<4)<<8,ce=(z-1&255)>>1,ce>3&&(ce=3),re|=ce<<6,O!==0&&(re|=x0),re+=31-re%31,t=uo,Us(re)),n.pending!==0){if(e.flush_pending(),e.avail_out===0)return i=-1,Fs}else if(e.avail_in===0&&ie<=Ie&&ie!=rs)return e.msg=ao[so-Wn],Wn;if(t==qr&&e.avail_in!==0)return J.msg=ao[so-Wn],Wn;if(e.avail_in!==0||L!==0||ie!=Un&&t!=qr){switch(Ne=-1,Qs[z].func){case xc:Ne=nr(ie);break;case ro:Ne=Gi(ie);break;case an:Ne=rr(ie);break}if((Ne==Nr||Ne==lo)&&(t=qr),Ne==As||Ne==Nr)return e.avail_out===0&&(i=-1),Fs;if(Ne==oo){if(ie==vc)cs();else if(ks(0,0,!1),ie==g0)for(Y=0;Y<x;Y++)c[Y]=0;if(e.flush_pending(),e.avail_out===0)return i=-1,Fs}}return ie!=rs?Fs:bc}}function Ec(){const n=this;n.next_in_index=0,n.next_out_index=0,n.avail_in=0,n.total_in=0,n.avail_out=0,n.total_out=0}Ec.prototype={deflateInit(n,e){const t=this;return t.dstate=new S0,e||(e=Or),t.dstate.deflateInit(t,n,e)},deflate(n){const e=this;return e.dstate?e.dstate.deflate(e,n):Bs},deflateEnd(){const n=this;if(!n.dstate)return Bs;const e=n.dstate.deflateEnd();return n.dstate=null,e},deflateParams(n,e){const t=this;return t.dstate?t.dstate.deflateParams(t,n,e):Bs},deflateSetDictionary(n,e){const t=this;return t.dstate?t.dstate.deflateSetDictionary(t,n,e):Bs},read_buf(n,e,t){const s=this;let i=s.avail_in;return i>t&&(i=t),i===0?0:(s.avail_in-=i,n.set(s.next_in.subarray(s.next_in_index,s.next_in_index+i),e),s.next_in_index+=i,s.total_in+=i,i)},flush_pending(){const n=this;let e=n.dstate.pending;e>n.avail_out&&(e=n.avail_out),e!==0&&(n.next_out.set(n.dstate.pending_buf.subarray(n.dstate.pending_out,n.dstate.pending_out+e),n.next_out_index),n.next_out_index+=e,n.dstate.pending_out+=e,n.total_out+=e,n.avail_out-=e,n.dstate.pending-=e,n.dstate.pending===0&&(n.dstate.pending_out=0))}};function I0(n){const e=this,t=new Ec,s=P0(n&&n.chunkSize?n.chunkSize:64*1024),i=Un,r=new Uint8Array(s);let a=n?n.level:eo;typeof a>"u"&&(a=eo),t.deflateInit(a),t.next_out=r,e.append=function(o,l){let h,d,c=0,g=0,x=0;const b=[];if(o.length){t.next_in_index=0,t.next_in=o,t.avail_in=o.length;do{if(t.next_out_index=0,t.avail_out=s,h=t.deflate(i),h!=Fs)throw new Error("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==s?b.push(new Uint8Array(r)):b.push(r.subarray(0,t.next_out_index))),x+=t.next_out_index,l&&t.next_in_index>0&&t.next_in_index!=c&&(l(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||t.avail_out===0);return b.length>1?(d=new Uint8Array(x),b.forEach(function(y){d.set(y,g),g+=y.length})):d=b[0]?new Uint8Array(b[0]):new Uint8Array,d}},e.flush=function(){let o,l,h=0,d=0;const c=[];do{if(t.next_out_index=0,t.avail_out=s,o=t.deflate(rs),o!=bc&&o!=Fs)throw new Error("deflating: "+t.msg);s-t.avail_out>0&&c.push(r.slice(0,t.next_out_index)),d+=t.next_out_index}while(t.avail_in>0||t.avail_out===0);return t.deflateEnd(),l=new Uint8Array(d),c.forEach(function(g){l.set(g,h),h+=g.length}),l}}function P0(n){return n+5*(Math.floor(n/16383)+1)}const T0=15,Ge=0,gi=1,R0=2,as=-2,mt=-3,Sc=-4,mi=-5,ws=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Ic=1440,A0=0,L0=4,D0=9,k0=5,_0=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],O0=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],M0=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],N0=[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,112,112],q0=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],F0=[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],Li=15;function $l(){const n=this;let e,t,s,i,r,a;function o(h,d,c,g,x,b,y,f,p,w,V){let N,O,I,L,P,k,q,z,j,D,F,Q,H,Z,ee;D=0,P=c;do s[h[d+D]]++,D++,P--;while(P!==0);if(s[0]==c)return y[0]=-1,f[0]=0,Ge;for(z=f[0],k=1;k<=Li&&s[k]===0;k++);for(q=k,z<k&&(z=k),P=Li;P!==0&&s[P]===0;P--);for(I=P,z>P&&(z=P),f[0]=z,Z=1<<k;k<P;k++,Z<<=1)if((Z-=s[k])<0)return mt;if((Z-=s[P])<0)return mt;for(s[P]+=Z,a[1]=k=0,D=1,H=2;--P!==0;)a[H]=k+=s[D],H++,D++;P=0,D=0;do(k=h[d+D])!==0&&(V[a[k]++]=P),D++;while(++P<c);for(c=a[I],a[0]=P=0,D=0,L=-1,Q=-z,r[0]=0,F=0,ee=0;q<=I;q++)for(N=s[q];N--!==0;){for(;q>Q+z;){if(L++,Q+=z,ee=I-Q,ee=ee>z?z:ee,(O=1<<(k=q-Q))>N+1&&(O-=N+1,H=q,k<ee))for(;++k<ee&&!((O<<=1)<=s[++H]);)O-=s[H];if(ee=1<<k,w[0]+ee>Ic)return mt;r[L]=F=w[0],w[0]+=ee,L!==0?(a[L]=P,i[0]=k,i[1]=z,k=P>>>Q-z,i[2]=F-r[L-1]-k,p.set(i,(r[L-1]+k)*3)):y[0]=F}for(i[1]=q-Q,D>=c?i[0]=192:V[D]<g?(i[0]=V[D]<256?0:96,i[2]=V[D++]):(i[0]=b[V[D]-g]+16+64,i[2]=x[V[D++]-g]),O=1<<q-Q,k=P>>>Q;k<ee;k+=O)p.set(i,(F+k)*3);for(k=1<<q-1;P&k;k>>>=1)P^=k;for(P^=k,j=(1<<Q)-1;(P&j)!=a[L];)L--,Q-=z,j=(1<<Q)-1}return Z!==0&&I!=1?mi:Ge}function l(h){let d;for(e||(e=[],t=[],s=new Int32Array(Li+1),i=[],r=new Int32Array(Li),a=new Int32Array(Li+1)),t.length<h&&(t=[]),d=0;d<h;d++)t[d]=0;for(d=0;d<Li+1;d++)s[d]=0;for(d=0;d<3;d++)i[d]=0;r.set(s.subarray(0,Li),0),a.set(s.subarray(0,Li+1),0)}n.inflate_trees_bits=function(h,d,c,g,x){let b;return l(19),e[0]=0,b=o(h,0,19,19,null,null,c,d,g,e,t),b==mt?x.msg="oversubscribed dynamic bit lengths tree":(b==mi||d[0]===0)&&(x.msg="incomplete dynamic bit lengths tree",b=mt),b},n.inflate_trees_dynamic=function(h,d,c,g,x,b,y,f,p){let w;return l(288),e[0]=0,w=o(c,0,h,257,M0,N0,b,g,f,e,t),w!=Ge||g[0]===0?(w==mt?p.msg="oversubscribed literal/length tree":w!=Sc&&(p.msg="incomplete literal/length tree",w=mt),w):(l(288),w=o(c,h,d,0,q0,F0,y,x,f,e,t),w!=Ge||x[0]===0&&h>257?(w==mt?p.msg="oversubscribed distance tree":w==mi?(p.msg="incomplete distance tree",w=mt):w!=Sc&&(p.msg="empty distance tree with lengths",w=mt),w):Ge)}}$l.inflate_trees_fixed=function(n,e,t,s){return n[0]=D0,e[0]=k0,t[0]=_0,s[0]=O0,Ge};const co=0,Pc=1,Tc=2,Rc=3,Ac=4,Lc=5,Dc=6,Zl=7,kc=8,po=9;function B0(){const n=this;let e,t=0,s,i=0,r=0,a=0,o=0,l=0,h=0,d=0,c,g=0,x,b=0;function y(f,p,w,V,N,O,I,L){let P,k,q,z,j,D,F,Q,H,Z,ee,ve,se,fe,oe,pe;F=L.next_in_index,Q=L.avail_in,j=I.bitb,D=I.bitk,H=I.write,Z=H<I.read?I.read-H-1:I.end-H,ee=ws[f],ve=ws[p];do{for(;D<20;)Q--,j|=(L.read_byte(F++)&255)<<D,D+=8;if(P=j&ee,k=w,q=V,pe=(q+P)*3,(z=k[pe])===0){j>>=k[pe+1],D-=k[pe+1],I.win[H++]=k[pe+2],Z--;continue}do{if(j>>=k[pe+1],D-=k[pe+1],z&16){for(z&=15,se=k[pe+2]+(j&ws[z]),j>>=z,D-=z;D<15;)Q--,j|=(L.read_byte(F++)&255)<<D,D+=8;P=j&ve,k=N,q=O,pe=(q+P)*3,z=k[pe];do if(j>>=k[pe+1],D-=k[pe+1],z&16){for(z&=15;D<z;)Q--,j|=(L.read_byte(F++)&255)<<D,D+=8;if(fe=k[pe+2]+(j&ws[z]),j>>=z,D-=z,Z-=se,H>=fe)oe=H-fe,H-oe>0&&2>H-oe?(I.win[H++]=I.win[oe++],I.win[H++]=I.win[oe++],se-=2):(I.win.set(I.win.subarray(oe,oe+2),H),H+=2,oe+=2,se-=2);else{oe=H-fe;do oe+=I.end;while(oe<0);if(z=I.end-oe,se>z){if(se-=z,H-oe>0&&z>H-oe)do I.win[H++]=I.win[oe++];while(--z!==0);else I.win.set(I.win.subarray(oe,oe+z),H),H+=z,oe+=z,z=0;oe=0}}if(H-oe>0&&se>H-oe)do I.win[H++]=I.win[oe++];while(--se!==0);else I.win.set(I.win.subarray(oe,oe+se),H),H+=se,oe+=se,se=0;break}else if(!(z&64))P+=k[pe+2],P+=j&ws[z],pe=(q+P)*3,z=k[pe];else return L.msg="invalid distance code",se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,mt;while(!0);break}if(z&64)return z&32?(se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,gi):(L.msg="invalid literal/length code",se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,mt);if(P+=k[pe+2],P+=j&ws[z],pe=(q+P)*3,(z=k[pe])===0){j>>=k[pe+1],D-=k[pe+1],I.win[H++]=k[pe+2],Z--;break}}while(!0)}while(Z>=258&&Q>=10);return se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,Ge}n.init=function(f,p,w,V,N,O){e=co,h=f,d=p,c=w,g=V,x=N,b=O,s=null},n.proc=function(f,p,w){let V,N,O,I=0,L=0,P=0,k,q,z,j;for(P=p.next_in_index,k=p.avail_in,I=f.bitb,L=f.bitk,q=f.write,z=q<f.read?f.read-q-1:f.end-q;;)switch(e){case co:if(z>=258&&k>=10&&(f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,w=y(h,d,c,g,x,b,f,p),P=p.next_in_index,k=p.avail_in,I=f.bitb,L=f.bitk,q=f.write,z=q<f.read?f.read-q-1:f.end-q,w!=Ge)){e=w==gi?Zl:po;break}r=h,s=c,i=g,e=Pc;case Pc:for(V=r;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}if(N=(i+(I&ws[V]))*3,I>>>=s[N+1],L-=s[N+1],O=s[N],O===0){a=s[N+2],e=Dc;break}if(O&16){o=O&15,t=s[N+2],e=Tc;break}if(!(O&64)){r=O,i=N/3+s[N+2];break}if(O&32){e=Zl;break}return e=po,p.msg="invalid literal/length code",w=mt,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);case Tc:for(V=o;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}t+=I&ws[V],I>>=V,L-=V,r=d,s=x,i=b,e=Rc;case Rc:for(V=r;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}if(N=(i+(I&ws[V]))*3,I>>=s[N+1],L-=s[N+1],O=s[N],O&16){o=O&15,l=s[N+2],e=Ac;break}if(!(O&64)){r=O,i=N/3+s[N+2];break}return e=po,p.msg="invalid distance code",w=mt,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);case Ac:for(V=o;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}l+=I&ws[V],I>>=V,L-=V,e=Lc;case Lc:for(j=q-l;j<0;)j+=f.end;for(;t!==0;){if(z===0&&(q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0&&(f.write=q,w=f.inflate_flush(p,w),q=f.write,z=q<f.read?f.read-q-1:f.end-q,q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0)))return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);f.win[q++]=f.win[j++],z--,j==f.end&&(j=0),t--}e=co;break;case Dc:if(z===0&&(q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0&&(f.write=q,w=f.inflate_flush(p,w),q=f.write,z=q<f.read?f.read-q-1:f.end-q,q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0)))return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);w=Ge,f.win[q++]=a,z--,e=co;break;case Zl:if(L>7&&(L-=8,k++,P--),f.write=q,w=f.inflate_flush(p,w),q=f.write,z=q<f.read?f.read-q-1:f.end-q,f.read!=f.write)return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);e=kc;case kc:return w=gi,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);case po:return w=mt,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);default:return w=as,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w)}},n.free=function(){}}const _c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jn=0,Kl=1,Oc=2,Mc=3,Nc=4,qc=5,go=6,mo=7,Fc=8,on=9;function Q0(n,e){const t=this;let s=jn,i=0,r=0,a=0,o;const l=[0],h=[0],d=new B0;let c=0,g=new Int32Array(Ic*3);const x=0,b=new $l;t.bitk=0,t.bitb=0,t.win=new Uint8Array(e),t.end=e,t.read=0,t.write=0,t.reset=function(y,f){f&&(f[0]=x),s==go&&d.free(y),s=jn,t.bitk=0,t.bitb=0,t.read=t.write=0},t.reset(n,null),t.inflate_flush=function(y,f){let p,w,V;return w=y.next_out_index,V=t.read,p=(V<=t.write?t.write:t.end)-V,p>y.avail_out&&(p=y.avail_out),p!==0&&f==mi&&(f=Ge),y.avail_out-=p,y.total_out+=p,y.next_out.set(t.win.subarray(V,V+p),w),w+=p,V+=p,V==t.end&&(V=0,t.write==t.end&&(t.write=0),p=t.write-V,p>y.avail_out&&(p=y.avail_out),p!==0&&f==mi&&(f=Ge),y.avail_out-=p,y.total_out+=p,y.next_out.set(t.win.subarray(V,V+p),w),w+=p,V+=p),y.next_out_index=w,t.read=V,f},t.proc=function(y,f){let p,w,V,N,O,I,L,P;for(N=y.next_in_index,O=y.avail_in,w=t.bitb,V=t.bitk,I=t.write,L=I<t.read?t.read-I-1:t.end-I;;){let k,q,z,j,D,F,Q,H;switch(s){case jn:for(;V<3;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}switch(p=w&7,c=p&1,p>>>1){case 0:w>>>=3,V-=3,p=V&7,w>>>=p,V-=p,s=Kl;break;case 1:k=[],q=[],z=[[]],j=[[]],$l.inflate_trees_fixed(k,q,z,j),d.init(k[0],q[0],z[0],0,j[0],0),w>>>=3,V-=3,s=go;break;case 2:w>>>=3,V-=3,s=Mc;break;case 3:return w>>>=3,V-=3,s=on,y.msg="invalid block type",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f)}break;case Kl:for(;V<32;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if((~w>>>16&65535)!=(w&65535))return s=on,y.msg="invalid stored block lengths",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);i=w&65535,w=V=0,s=i!==0?Oc:c!==0?mo:jn;break;case Oc:if(O===0||L===0&&(I==t.end&&t.read!==0&&(I=0,L=I<t.read?t.read-I-1:t.end-I),L===0&&(t.write=I,f=t.inflate_flush(y,f),I=t.write,L=I<t.read?t.read-I-1:t.end-I,I==t.end&&t.read!==0&&(I=0,L=I<t.read?t.read-I-1:t.end-I),L===0)))return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);if(f=Ge,p=i,p>O&&(p=O),p>L&&(p=L),t.win.set(y.read_buf(N,p),I),N+=p,O-=p,I+=p,L-=p,(i-=p)!==0)break;s=c!==0?mo:jn;break;case Mc:for(;V<14;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if(r=p=w&16383,(p&31)>29||(p>>5&31)>29)return s=on,y.msg="too many length or distance symbols",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);if(p=258+(p&31)+(p>>5&31),!o||o.length<p)o=[];else for(P=0;P<p;P++)o[P]=0;w>>>=14,V-=14,a=0,s=Nc;case Nc:for(;a<4+(r>>>10);){for(;V<3;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}o[_c[a++]]=w&7,w>>>=3,V-=3}for(;a<19;)o[_c[a++]]=0;if(l[0]=7,p=b.inflate_trees_bits(o,l,h,g,y),p!=Ge)return f=p,f==mt&&(o=null,s=on),t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);a=0,s=qc;case qc:for(;p=r,!(a>=258+(p&31)+(p>>5&31));){let Z,ee;for(p=l[0];V<p;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if(p=g[(h[0]+(w&ws[p]))*3+1],ee=g[(h[0]+(w&ws[p]))*3+2],ee<16)w>>>=p,V-=p,o[a++]=ee;else{for(P=ee==18?7:ee-14,Z=ee==18?11:3;V<p+P;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if(w>>>=p,V-=p,Z+=w&ws[P],w>>>=P,V-=P,P=a,p=r,P+Z>258+(p&31)+(p>>5&31)||ee==16&&P<1)return o=null,s=on,y.msg="invalid bit length repeat",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);ee=ee==16?o[P-1]:0;do o[P++]=ee;while(--Z!==0);a=P}}if(h[0]=-1,D=[],F=[],Q=[],H=[],D[0]=9,F[0]=6,p=r,p=b.inflate_trees_dynamic(257+(p&31),1+(p>>5&31),o,D,F,Q,H,g,y),p!=Ge)return p==mt&&(o=null,s=on),f=p,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);d.init(D[0],F[0],g,Q[0],g,H[0]),s=go;case go:if(t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,(f=d.proc(t,y,f))!=gi)return t.inflate_flush(y,f);if(f=Ge,d.free(y),N=y.next_in_index,O=y.avail_in,w=t.bitb,V=t.bitk,I=t.write,L=I<t.read?t.read-I-1:t.end-I,c===0){s=jn;break}s=mo;case mo:if(t.write=I,f=t.inflate_flush(y,f),I=t.write,L=I<t.read?t.read-I-1:t.end-I,t.read!=t.write)return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);s=Fc;case Fc:return f=gi,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);case on:return f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);default:return f=as,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f)}}},t.free=function(y){t.reset(y,null),t.win=null,g=null},t.set_dictionary=function(y,f,p){t.win.set(y.subarray(f,f+p),0),t.read=t.write=p},t.sync_point=function(){return s==Kl?1:0}}const H0=32,z0=8,U0=0,Bc=1,Qc=2,Hc=3,zc=4,Uc=5,Jl=6,Fr=7,Wc=12,Di=13,W0=[0,0,255,255];function j0(){const n=this;n.mode=0,n.method=0,n.was=[0],n.need=0,n.marker=0,n.wbits=0;function e(t){return!t||!t.istate?as:(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=Fr,t.istate.blocks.reset(t,null),Ge)}n.inflateEnd=function(t){return n.blocks&&n.blocks.free(t),n.blocks=null,Ge},n.inflateInit=function(t,s){return t.msg=null,n.blocks=null,s<8||s>15?(n.inflateEnd(t),as):(n.wbits=s,t.istate.blocks=new Q0(t,1<<s),e(t),Ge)},n.inflate=function(t,s){let i,r;if(!t||!t.istate||!t.next_in)return as;const a=t.istate;for(s=s==L0?mi:Ge,i=mi;;)switch(a.mode){case U0:if(t.avail_in===0)return i;if(i=s,t.avail_in--,t.total_in++,((a.method=t.read_byte(t.next_in_index++))&15)!=z0){a.mode=Di,t.msg="unknown compression method",a.marker=5;break}if((a.method>>4)+8>a.wbits){a.mode=Di,t.msg="invalid win size",a.marker=5;break}a.mode=Bc;case Bc:if(t.avail_in===0)return i;if(i=s,t.avail_in--,t.total_in++,r=t.read_byte(t.next_in_index++)&255,((a.method<<8)+r)%31!==0){a.mode=Di,t.msg="incorrect header check",a.marker=5;break}if(!(r&H0)){a.mode=Fr;break}a.mode=Qc;case Qc:if(t.avail_in===0)return i;i=s,t.avail_in--,t.total_in++,a.need=(t.read_byte(t.next_in_index++)&255)<<24&4278190080,a.mode=Hc;case Hc:if(t.avail_in===0)return i;i=s,t.avail_in--,t.total_in++,a.need+=(t.read_byte(t.next_in_index++)&255)<<16&16711680,a.mode=zc;case zc:if(t.avail_in===0)return i;i=s,t.avail_in--,t.total_in++,a.need+=(t.read_byte(t.next_in_index++)&255)<<8&65280,a.mode=Uc;case Uc:return t.avail_in===0?i:(i=s,t.avail_in--,t.total_in++,a.need+=t.read_byte(t.next_in_index++)&255,a.mode=Jl,R0);case Jl:return a.mode=Di,t.msg="need dictionary",a.marker=0,as;case Fr:if(i=a.blocks.proc(t,i),i==mt){a.mode=Di,a.marker=0;break}if(i==Ge&&(i=s),i!=gi)return i;i=s,a.blocks.reset(t,a.was),a.mode=Wc;case Wc:return t.avail_in=0,gi;case Di:return mt;default:return as}},n.inflateSetDictionary=function(t,s,i){let r=0,a=i;if(!t||!t.istate||t.istate.mode!=Jl)return as;const o=t.istate;return a>=1<<o.wbits&&(a=(1<<o.wbits)-1,r=i-a),o.blocks.set_dictionary(s,r,a),o.mode=Fr,Ge},n.inflateSync=function(t){let s,i,r,a,o;if(!t||!t.istate)return as;const l=t.istate;if(l.mode!=Di&&(l.mode=Di,l.marker=0),(s=t.avail_in)===0)return mi;for(i=t.next_in_index,r=l.marker;s!==0&&r<4;)t.read_byte(i)==W0[r]?r++:t.read_byte(i)!==0?r=0:r=4-r,i++,s--;return t.total_in+=i-t.next_in_index,t.next_in_index=i,t.avail_in=s,l.marker=r,r!=4?mt:(a=t.total_in,o=t.total_out,e(t),t.total_in=a,t.total_out=o,l.mode=Fr,Ge)},n.inflateSyncPoint=function(t){return!t||!t.istate||!t.istate.blocks?as:t.istate.blocks.sync_point()}}function jc(){}jc.prototype={inflateInit(n){const e=this;return e.istate=new j0,n||(n=T0),e.istate.inflateInit(e,n)},inflate(n){const e=this;return e.istate?e.istate.inflate(e,n):as},inflateEnd(){const n=this;if(!n.istate)return as;const e=n.istate.inflateEnd(n);return n.istate=null,e},inflateSync(){const n=this;return n.istate?n.istate.inflateSync(n):as},inflateSetDictionary(n,e){const t=this;return t.istate?t.istate.inflateSetDictionary(t,n,e):as},read_byte(n){return this.next_in[n]},read_buf(n,e){return this.next_in.subarray(n,n+e)}};function G0(n){const e=this,t=new jc,s=n&&n.chunkSize?Math.floor(n.chunkSize*2):128*1024,i=A0,r=new Uint8Array(s);let a=!1;t.inflateInit(),t.next_out=r,e.append=function(o,l){const h=[];let d,c,g=0,x=0,b=0;if(o.length!==0){t.next_in_index=0,t.next_in=o,t.avail_in=o.length;do{if(t.next_out_index=0,t.avail_out=s,t.avail_in===0&&!a&&(t.next_in_index=0,a=!0),d=t.inflate(i),a&&d===mi){if(t.avail_in!==0)throw new Error("inflating: bad input")}else if(d!==Ge&&d!==gi)throw new Error("inflating: "+t.msg);if((a||d===gi)&&t.avail_in===o.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===s?h.push(new Uint8Array(r)):h.push(r.subarray(0,t.next_out_index))),b+=t.next_out_index,l&&t.next_in_index>0&&t.next_in_index!=g&&(l(t.next_in_index),g=t.next_in_index)}while(t.avail_in>0||t.avail_out===0);return h.length>1?(c=new Uint8Array(b),h.forEach(function(y){c.set(y,x),x+=y.length})):c=h[0]?new Uint8Array(h[0]):new Uint8Array,c}},e.flush=function(){t.inflateEnd()}}const os=4294967295,ls=65535,Gc=8,$0=0,Z0=99,K0=67324752,$c=134695760,J0=$c,Y0=33639248,X0=101010256,eb=101075792,tb=117853008,Yl=22,Zc=20,Kc=56,sb=Yl+Zc+Kc,ib=1,nb=39169,rb=10,ab=1,Jc=21589,ob=6534,lb=1,ub=8,hb=2048,db=16,cb=20,Yc=45,Xc=51,Xl="/",ep=new Date(2107,11,31),tp=new Date(1980,0,1),ft=void 0,ki="undefined",Br="function";class sp{constructor(e){return class extends TransformStream{constructor(t,s){const i=new e(s);super({transform(r,a){a.enqueue(i.append(r))},flush(r){const a=i.flush();a&&r.enqueue(a)}})}}}}const pb=64;let ip=2;try{typeof navigator!=ki&&navigator.hardwareConcurrency&&(ip=navigator.hardwareConcurrency)}catch{}const gb={chunkSize:512*1024,maxWorkers:ip,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:ft,CompressionStreamNative:typeof CompressionStream!=ki&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=ki&&DecompressionStream},_i=Object.assign({},gb);function mb(){return _i}function fb(n){return Math.max(n.chunkSize,pb)}function eu(n){const{baseURL:e,chunkSize:t,maxWorkers:s,terminateWorkerTimeout:i,useCompressionStream:r,useWebWorkers:a,Deflate:o,Inflate:l,CompressionStream:h,DecompressionStream:d,workerScripts:c}=n;if(Oi("baseURL",e),Oi("chunkSize",t),Oi("maxWorkers",s),Oi("terminateWorkerTimeout",i),Oi("useCompressionStream",r),Oi("useWebWorkers",a),o&&(_i.CompressionStream=new sp(o)),l&&(_i.DecompressionStream=new sp(l)),Oi("CompressionStream",h),Oi("DecompressionStream",d),c!==ft){const{deflate:g,inflate:x}=c;if((g||x)&&(_i.workerScripts||(_i.workerScripts={})),g){if(!Array.isArray(g))throw new Error("workerScripts.deflate must be an array");_i.workerScripts.deflate=g}if(x){if(!Array.isArray(x))throw new Error("workerScripts.inflate must be an array");_i.workerScripts.inflate=x}}}function Oi(n,e){e!==ft&&(_i[n]=e)}const tu={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const n={};for(const e of Object.keys(tu))for(const t of Object.keys(tu[e])){const s=tu[e][t];if(typeof s=="string")n[s]=e+"/"+t;else for(let i=0;i<s.length;i++)n[s[i]]=e+"/"+t}return n})();const np=[];for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)e&1?e=e>>>1^3988292384:e=e>>>1;np[n]=e}class su{constructor(e){this.crc=e||-1}append(e){let t=this.crc|0;for(let s=0,i=e.length|0;s<i;s++)t=t>>>8^np[(t^e[s])&255];this.crc=t}get(){return~this.crc}}class rp extends TransformStream{constructor(){let e;const t=new su;super({transform(s,i){t.append(s),i.enqueue(s)},flush(){const s=new Uint8Array(4);new DataView(s.buffer).setUint32(0,t.get()),e.value=s}}),e=this}}function fo(n){if(typeof TextEncoder==ki){n=unescape(encodeURIComponent(n));const e=new Uint8Array(n.length);for(let t=0;t<e.length;t++)e[t]=n.charCodeAt(t);return e}else return new TextEncoder().encode(n)}const Xt={concat(n,e){if(n.length===0||e.length===0)return n.concat(e);const t=n[n.length-1],s=Xt.getPartial(t);return s===32?n.concat(e):Xt._shiftRight(e,s,t|0,n.slice(0,n.length-1))},bitLength(n){const e=n.length;if(e===0)return 0;const t=n[e-1];return(e-1)*32+Xt.getPartial(t)},clamp(n,e){if(n.length*32<e)return n;n=n.slice(0,Math.ceil(e/32));const t=n.length;return e=e&31,t>0&&e&&(n[t-1]=Xt.partial(e,n[t-1]&2147483648>>e-1,1)),n},partial(n,e,t){return n===32?e:(t?e|0:e<<32-n)+n*1099511627776},getPartial(n){return Math.round(n/1099511627776)||32},_shiftRight(n,e,t,s){for(s===void 0&&(s=[]);e>=32;e-=32)s.push(t),t=0;if(e===0)return s.concat(n);for(let a=0;a<n.length;a++)s.push(t|n[a]>>>e),t=n[a]<<32-e;const i=n.length?n[n.length-1]:0,r=Xt.getPartial(i);return s.push(Xt.partial(e+r&31,e+r>32?t:s.pop(),1)),s}},yo={bytes:{fromBits(n){const t=Xt.bitLength(n)/8,s=new Uint8Array(t);let i;for(let r=0;r<t;r++)r&3||(i=n[r/4]),s[r]=i>>>24,i<<=8;return s},toBits(n){const e=[];let t,s=0;for(t=0;t<n.length;t++)s=s<<8|n[t],(t&3)===3&&(e.push(s),s=0);return t&3&&e.push(Xt.partial(8*(t&3),s)),e}}},ap={};ap.sha1=class{constructor(n){const e=this;e.blockSize=512,e._init=[1732584193,4023233417,2562383102,271733878,3285377520],e._key=[1518500249,1859775393,2400959708,3395469782],n?(e._h=n._h.slice(0),e._buffer=n._buffer.slice(0),e._length=n._length):e.reset()}reset(){const n=this;return n._h=n._init.slice(0),n._buffer=[],n._length=0,n}update(n){const e=this;typeof n=="string"&&(n=yo.utf8String.toBits(n));const t=e._buffer=Xt.concat(e._buffer,n),s=e._length,i=e._length=s+Xt.bitLength(n);if(i>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const r=new Uint32Array(t);let a=0;for(let o=e.blockSize+s-(e.blockSize+s&e.blockSize-1);o<=i;o+=e.blockSize)e._block(r.subarray(16*a,16*(a+1))),a+=1;return t.splice(0,16*a),e}finalize(){const n=this;let e=n._buffer;const t=n._h;e=Xt.concat(e,[Xt.partial(1,1)]);for(let s=e.length+2;s&15;s++)e.push(0);for(e.push(Math.floor(n._length/4294967296)),e.push(n._length|0);e.length;)n._block(e.splice(0,16));return n.reset(),t}_f(n,e,t,s){if(n<=19)return e&t|~e&s;if(n<=39)return e^t^s;if(n<=59)return e&t|e&s|t&s;if(n<=79)return e^t^s}_S(n,e){return e<<n|e>>>32-n}_block(n){const e=this,t=e._h,s=Array(80);for(let h=0;h<16;h++)s[h]=n[h];let i=t[0],r=t[1],a=t[2],o=t[3],l=t[4];for(let h=0;h<=79;h++){h>=16&&(s[h]=e._S(1,s[h-3]^s[h-8]^s[h-14]^s[h-16]));const d=e._S(5,i)+e._f(h,r,a,o)+l+s[h]+e._key[Math.floor(h/20)]|0;l=o,o=a,a=e._S(30,r),r=i,i=d}t[0]=t[0]+i|0,t[1]=t[1]+r|0,t[2]=t[2]+a|0,t[3]=t[3]+o|0,t[4]=t[4]+l|0}};const op={};op.aes=class{constructor(n){const e=this;e._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],e._tables[0][0][0]||e._precompute();const t=e._tables[0][4],s=e._tables[1],i=n.length;let r,a,o,l=1;if(i!==4&&i!==6&&i!==8)throw new Error("invalid aes key size");for(e._key=[a=n.slice(0),o=[]],r=i;r<4*i+28;r++){let h=a[r-1];(r%i===0||i===8&&r%i===4)&&(h=t[h>>>24]<<24^t[h>>16&255]<<16^t[h>>8&255]<<8^t[h&255],r%i===0&&(h=h<<8^h>>>24^l<<24,l=l<<1^(l>>7)*283)),a[r]=a[r-i]^h}for(let h=0;r;h++,r--){const d=a[h&3?r:r-4];r<=4||h<4?o[h]=d:o[h]=s[0][t[d>>>24]]^s[1][t[d>>16&255]]^s[2][t[d>>8&255]]^s[3][t[d&255]]}}encrypt(n){return this._crypt(n,0)}decrypt(n){return this._crypt(n,1)}_precompute(){const n=this._tables[0],e=this._tables[1],t=n[4],s=e[4],i=[],r=[];let a,o,l,h;for(let d=0;d<256;d++)r[(i[d]=d<<1^(d>>7)*283)^d]=d;for(let d=a=0;!t[d];d^=o||1,a=r[a]||1){let c=a^a<<1^a<<2^a<<3^a<<4;c=c>>8^c&255^99,t[d]=c,s[c]=d,h=i[l=i[o=i[d]]];let g=h*16843009^l*65537^o*257^d*16843008,x=i[c]*257^c*16843008;for(let b=0;b<4;b++)n[b][d]=x=x<<24^x>>>8,e[b][c]=g=g<<24^g>>>8}for(let d=0;d<5;d++)n[d]=n[d].slice(0),e[d]=e[d].slice(0)}_crypt(n,e){if(n.length!==4)throw new Error("invalid aes block size");const t=this._key[e],s=t.length/4-2,i=[0,0,0,0],r=this._tables[e],a=r[0],o=r[1],l=r[2],h=r[3],d=r[4];let c=n[0]^t[0],g=n[e?3:1]^t[1],x=n[2]^t[2],b=n[e?1:3]^t[3],y=4,f,p,w;for(let V=0;V<s;V++)f=a[c>>>24]^o[g>>16&255]^l[x>>8&255]^h[b&255]^t[y],p=a[g>>>24]^o[x>>16&255]^l[b>>8&255]^h[c&255]^t[y+1],w=a[x>>>24]^o[b>>16&255]^l[c>>8&255]^h[g&255]^t[y+2],b=a[b>>>24]^o[c>>16&255]^l[g>>8&255]^h[x&255]^t[y+3],y+=4,c=f,g=p,x=w;for(let V=0;V<4;V++)i[e?3&-V:V]=d[c>>>24]<<24^d[g>>16&255]<<16^d[x>>8&255]<<8^d[b&255]^t[y++],f=c,c=g,g=x,x=b,b=f;return i}};const yb={getRandomValues(n){const e=new Uint32Array(n.buffer),t=s=>{let i=987654321;const r=4294967295;return function(){return i=36969*(i&65535)+(i>>16)&r,s=18e3*(s&65535)+(s>>16)&r,(((i<<16)+s&r)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let s=0,i;s<n.length;s+=4){const r=t((i||Math.random())*4294967296);i=r()*987654071,e[s/4]=r()*4294967296|0}return n}},lp={};lp.ctrGladman=class{constructor(n,e){this._prf=n,this._initIv=e,this._iv=e}reset(){this._iv=this._initIv}update(n){return this.calculate(this._prf,n,this._iv)}incWord(n){if((n>>24&255)===255){let e=n>>16&255,t=n>>8&255,s=n&255;e===255?(e=0,t===255?(t=0,s===255?s=0:++s):++t):++e,n=0,n+=e<<16,n+=t<<8,n+=s}else n+=1<<24;return n}incCounter(n){(n[0]=this.incWord(n[0]))===0&&(n[1]=this.incWord(n[1]))}calculate(n,e,t){let s;if(!(s=e.length))return[];const i=Xt.bitLength(e);for(let r=0;r<s;r+=4){this.incCounter(t);const a=n.encrypt(t);e[r]^=a[0],e[r+1]^=a[1],e[r+2]^=a[2],e[r+3]^=a[3]}return Xt.clamp(e,i)}};const ln={importKey(n){return new ln.hmacSha1(yo.bytes.toBits(n))},pbkdf2(n,e,t,s){if(t=t||1e4,s<0||t<0)throw new Error("invalid params to pbkdf2");const i=(s>>5)+1<<2;let r,a,o,l,h;const d=new ArrayBuffer(i),c=new DataView(d);let g=0;const x=Xt;for(e=yo.bytes.toBits(e),h=1;g<(i||1);h++){for(r=a=n.encrypt(x.concat(e,[h])),o=1;o<t;o++)for(a=n.encrypt(a),l=0;l<a.length;l++)r[l]^=a[l];for(o=0;g<(i||1)&&o<r.length;o++)c.setInt32(g,r[o]),g+=4}return d.slice(0,s/8)}};ln.hmacSha1=class{constructor(n){const e=this,t=e._hash=ap.sha1,s=[[],[]];e._baseHash=[new t,new t];const i=e._baseHash[0].blockSize/32;n.length>i&&(n=new t().update(n).finalize());for(let r=0;r<i;r++)s[0][r]=n[r]^909522486,s[1][r]=n[r]^1549556828;e._baseHash[0].update(s[0]),e._baseHash[1].update(s[1]),e._resultHash=new t(e._baseHash[0])}reset(){const n=this;n._resultHash=new n._hash(n._baseHash[0]),n._updated=!1}update(n){const e=this;e._updated=!0,e._resultHash.update(n)}digest(){const n=this,e=n._resultHash.finalize(),t=new n._hash(n._baseHash[1]).update(e).finalize();return n.reset(),t}encrypt(n){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(n),this.digest(n)}};const Cb=typeof crypto!=ki&&typeof crypto.getRandomValues==Br,up="Invalid password",hp="Invalid signature",dp="zipjs-abort-check-password";function cp(n){return Cb?crypto.getRandomValues(n):yb.getRandomValues(n)}const Gn=16,vb="raw",pp={name:"PBKDF2"},bb={name:"HMAC"},wb="SHA-1",xb=Object.assign({hash:bb},pp),iu=Object.assign({iterations:1e3,hash:{name:wb}},pp),Vb=["deriveBits"],Qr=[8,12,16],Hr=[16,24,32],Mi=10,Eb=[0,0,0,0],Co=typeof crypto!=ki,zr=Co&&crypto.subtle,gp=Co&&typeof zr!=ki,Xs=yo.bytes,Sb=op.aes,Ib=lp.ctrGladman,Pb=ln.hmacSha1;let mp=Co&&gp&&typeof zr.importKey==Br,fp=Co&&gp&&typeof zr.deriveBits==Br;class Tb extends TransformStream{constructor({password:e,rawPassword:t,signed:s,encryptionStrength:i,checkPasswordOnly:r}){super({start(){Object.assign(this,{ready:new Promise(a=>this.resolveReady=a),password:vp(e,t),signed:s,strength:i-1,pending:new Uint8Array})},async transform(a,o){const l=this,{password:h,strength:d,resolveReady:c,ready:g}=l;h?(await Ab(l,d,h,Ls(a,0,Qr[d]+2)),a=Ls(a,Qr[d]+2),r?o.error(new Error(dp)):c()):await g;const x=new Uint8Array(a.length-Mi-(a.length-Mi)%Gn);o.enqueue(yp(l,a,x,0,Mi,!0))},async flush(a){const{signed:o,ctr:l,hmac:h,pending:d,ready:c}=this;if(h&&l){await c;const g=Ls(d,0,d.length-Mi),x=Ls(d,d.length-Mi);let b=new Uint8Array;if(g.length){const y=Wr(Xs,g);h.update(y);const f=l.update(y);b=Ur(Xs,f)}if(o){const y=Ls(Ur(Xs,h.digest()),0,Mi);for(let f=0;f<Mi;f++)if(y[f]!=x[f])throw new Error(hp)}a.enqueue(b)}}})}}class Rb extends TransformStream{constructor({password:e,rawPassword:t,encryptionStrength:s}){let i;super({start(){Object.assign(this,{ready:new Promise(r=>this.resolveReady=r),password:vp(e,t),strength:s-1,pending:new Uint8Array})},async transform(r,a){const o=this,{password:l,strength:h,resolveReady:d,ready:c}=o;let g=new Uint8Array;l?(g=await Lb(o,h,l),d()):await c;const x=new Uint8Array(g.length+r.length-r.length%Gn);x.set(g,0),a.enqueue(yp(o,r,x,g.length,0))},async flush(r){const{ctr:a,hmac:o,pending:l,ready:h}=this;if(o&&a){await h;let d=new Uint8Array;if(l.length){const c=a.update(Wr(Xs,l));o.update(c),d=Ur(Xs,c)}i.signature=Ur(Xs,o.digest()).slice(0,Mi),r.enqueue(nu(d,i.signature))}}}),i=this}}function yp(n,e,t,s,i,r){const{ctr:a,hmac:o,pending:l}=n,h=e.length-i;l.length&&(e=nu(l,e),t=_b(t,h-h%Gn));let d;for(d=0;d<=h-Gn;d+=Gn){const c=Wr(Xs,Ls(e,d,d+Gn));r&&o.update(c);const g=a.update(c);r||o.update(g),t.set(Ur(Xs,g),d+s)}return n.pending=Ls(e,d),t}async function Ab(n,e,t,s){const i=await Cp(n,e,t,Ls(s,0,Qr[e])),r=Ls(s,Qr[e]);if(i[0]!=r[0]||i[1]!=r[1])throw new Error(up)}async function Lb(n,e,t){const s=cp(new Uint8Array(Qr[e])),i=await Cp(n,e,t,s);return nu(s,i)}async function Cp(n,e,t,s){n.password=null;const i=await Db(vb,t,xb,!1,Vb),r=await kb(Object.assign({salt:s},iu),i,8*(Hr[e]*2+2)),a=new Uint8Array(r),o=Wr(Xs,Ls(a,0,Hr[e])),l=Wr(Xs,Ls(a,Hr[e],Hr[e]*2)),h=Ls(a,Hr[e]*2);return Object.assign(n,{keys:{key:o,authentication:l,passwordVerification:h},ctr:new Ib(new Sb(o),Array.from(Eb)),hmac:new Pb(l)}),h}async function Db(n,e,t,s,i){if(mp)try{return await zr.importKey(n,e,t,s,i)}catch{return mp=!1,ln.importKey(e)}else return ln.importKey(e)}async function kb(n,e,t){if(fp)try{return await zr.deriveBits(n,e,t)}catch{return fp=!1,ln.pbkdf2(e,n.salt,iu.iterations,t)}else return ln.pbkdf2(e,n.salt,iu.iterations,t)}function vp(n,e){return e===ft?fo(n):e}function nu(n,e){let t=n;return n.length+e.length&&(t=new Uint8Array(n.length+e.length),t.set(n,0),t.set(e,n.length)),t}function _b(n,e){if(e&&e>n.length){const t=n;n=new Uint8Array(e),n.set(t,0)}return n}function Ls(n,e,t){return n.subarray(e,t)}function Ur(n,e){return n.fromBits(e)}function Wr(n,e){return n.toBits(e)}const $n=12;class Ob extends TransformStream{constructor({password:e,passwordVerification:t,checkPasswordOnly:s}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),xp(this,e)},transform(i,r){const a=this;if(a.password){const o=bp(a,i.subarray(0,$n));if(a.password=null,o[$n-1]!=a.passwordVerification)throw new Error(up);i=i.subarray($n)}s?r.error(new Error(dp)):r.enqueue(bp(a,i))}})}}class Mb extends TransformStream{constructor({password:e,passwordVerification:t}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),xp(this,e)},transform(s,i){const r=this;let a,o;if(r.password){r.password=null;const l=cp(new Uint8Array($n));l[$n-1]=r.passwordVerification,a=new Uint8Array(s.length+l.length),a.set(wp(r,l),0),o=$n}else a=new Uint8Array(s.length),o=0;a.set(wp(r,s),o),i.enqueue(a)}})}}function bp(n,e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=Vp(n)^e[s],ru(n,t[s]);return t}function wp(n,e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=Vp(n)^e[s],ru(n,e[s]);return t}function xp(n,e){const t=[305419896,591751049,878082192];Object.assign(n,{keys:t,crcKey0:new su(t[0]),crcKey2:new su(t[2])});for(let s=0;s<e.length;s++)ru(n,e.charCodeAt(s))}function ru(n,e){let[t,s,i]=n.keys;n.crcKey0.append([e]),t=~n.crcKey0.get(),s=Sp(Math.imul(Sp(s+Ep(t)),134775813)+1),n.crcKey2.append([s>>>24]),i=~n.crcKey2.get(),n.keys=[t,s,i]}function Vp(n){const e=n.keys[2]|2;return Ep(Math.imul(e,e^1)>>>8)}function Ep(n){return n&255}function Sp(n){return n&4294967295}const Ip="deflate-raw";class Nb extends TransformStream{constructor(e,{chunkSize:t,CompressionStream:s,CompressionStreamNative:i}){super({});const{compressed:r,encrypted:a,useCompressionStream:o,zipCrypto:l,signed:h,level:d}=e,c=this;let g,x,b=Pp(super.readable);(!a||l)&&h&&(g=new rp,b=ei(b,g)),r&&(b=Rp(b,o,{level:d,chunkSize:t},i,s)),a&&(l?b=ei(b,new Mb(e)):(x=new Rb(e),b=ei(b,x))),Tp(c,b,()=>{let y;a&&!l&&(y=x.signature),(!a||l)&&h&&(y=new DataView(g.value.buffer).getUint32(0)),c.signature=y})}}class qb extends TransformStream{constructor(e,{chunkSize:t,DecompressionStream:s,DecompressionStreamNative:i}){super({});const{zipCrypto:r,encrypted:a,signed:o,signature:l,compressed:h,useCompressionStream:d}=e;let c,g,x=Pp(super.readable);a&&(r?x=ei(x,new Ob(e)):(g=new Tb(e),x=ei(x,g))),h&&(x=Rp(x,d,{chunkSize:t},i,s)),(!a||r)&&o&&(c=new rp,x=ei(x,c)),Tp(this,x,()=>{if((!a||r)&&o){const b=new DataView(c.value.buffer);if(l!=b.getUint32(0,!1))throw new Error(hp)}})}}function Pp(n){return ei(n,new TransformStream({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function Tp(n,e,t){e=ei(e,new TransformStream({flush:t})),Object.defineProperty(n,"readable",{get(){return e}})}function Rp(n,e,t,s,i){try{const r=e&&s?s:i;n=ei(n,new r(Ip,t))}catch{if(e)try{n=ei(n,new i(Ip,t))}catch{return n}else return n}return n}function ei(n,e){return n.pipeThrough(e)}const Fb="message",Bb="start",Qb="pull",Ap="data",Hb="ack",Lp="close",Dp="deflate",zb="inflate";class Ub extends TransformStream{constructor(e,t){super({});const s=this,{codecType:i}=e;let r;i.startsWith(Dp)?r=Nb:i.startsWith(zb)&&(r=qb);let a=0,o=0;const l=new r(e,t),h=super.readable,d=new TransformStream({transform(g,x){g&&g.length&&(o+=g.length,x.enqueue(g))},flush(){Object.assign(s,{inputSize:o})}}),c=new TransformStream({transform(g,x){g&&g.length&&(a+=g.length,x.enqueue(g))},flush(){const{signature:g}=l;Object.assign(s,{signature:g,outputSize:a,inputSize:o})}});Object.defineProperty(s,"readable",{get(){return h.pipeThrough(d).pipeThrough(l).pipeThrough(c)}})}}class Wb extends TransformStream{constructor(e){let t;super({transform:s,flush(i){t&&t.length&&i.enqueue(t)}});function s(i,r){if(t){const a=new Uint8Array(t.length+i.length);a.set(t),a.set(i,t.length),i=a,t=null}i.length>e?(r.enqueue(i.slice(0,e)),s(i.slice(e),r)):t=i}}}let kp=typeof Worker!=ki;class au{constructor(e,{readable:t,writable:s},{options:i,config:r,streamOptions:a,useWebWorkers:o,transferStreams:l,scripts:h},d){const{signal:c}=a;return Object.assign(e,{busy:!0,readable:t.pipeThrough(new Wb(r.chunkSize)).pipeThrough(new jb(t,a),{signal:c}),writable:s,options:Object.assign({},i),scripts:h,transferStreams:l,terminate(){return new Promise(g=>{const{worker:x,busy:b}=e;x?(b?e.resolveTerminated=g:(x.terminate(),g()),e.interface=null):g()})},onTaskFinished(){const{resolveTerminated:g}=e;g&&(e.resolveTerminated=null,e.terminated=!0,e.worker.terminate(),g()),e.busy=!1,d(e)}}),(o&&kp?Gb:_p)(e,r)}}class jb extends TransformStream{constructor(e,{onstart:t,onprogress:s,size:i,onend:r}){let a=0;super({async start(){t&&await ou(t,i)},async transform(o,l){a+=o.length,s&&await ou(s,a,i),l.enqueue(o)},async flush(){e.size=a,r&&await ou(r,a)}})}}async function ou(n,...e){try{await n(...e)}catch{}}function _p(n,e){return{run:()=>$b(n,e)}}function Gb(n,e){const{baseURL:t,chunkSize:s}=e;if(!n.interface){let i;try{i=Jb(n.scripts[0],t,n)}catch{return kp=!1,_p(n,e)}Object.assign(n,{worker:i,interface:{run:()=>Zb(n,{chunkSize:s})}})}return n.interface}async function $b({options:n,readable:e,writable:t,onTaskFinished:s},i){try{const r=new Ub(n,i);await e.pipeThrough(r).pipeTo(t,{preventClose:!0,preventAbort:!0});const{signature:a,inputSize:o,outputSize:l}=r;return{signature:a,inputSize:o,outputSize:l}}finally{s()}}async function Zb(n,e){let t,s;const i=new Promise((g,x)=>{t=g,s=x});Object.assign(n,{reader:null,writer:null,resolveResult:t,rejectResult:s,result:i});const{readable:r,options:a,scripts:o}=n,{writable:l,closed:h}=Kb(n.writable),d=vo({type:Bb,scripts:o.slice(1),options:a,config:e,readable:r,writable:l},n);d||Object.assign(n,{reader:r.getReader(),writer:l.getWriter()});const c=await i;return d||await l.getWriter().close(),await h,c}function Kb(n){let e;const t=new Promise(i=>e=i);return{writable:new WritableStream({async write(i){const r=n.getWriter();await r.ready,await r.write(i),r.releaseLock()},close(){e()},abort(i){return n.getWriter().abort(i)}}),closed:t}}let Op=!0,Mp=!0;function Jb(n,e,t){const s={type:"module"};let i,r;typeof n==Br&&(n=n());try{i=new URL(n,e)}catch{i=n}if(Op)try{r=new Worker(i)}catch{Op=!1,r=new Worker(i,s)}else r=new Worker(i,s);return r.addEventListener(Fb,a=>Yb(a,t)),r}function vo(n,{worker:e,writer:t,onTaskFinished:s,transferStreams:i}){try{let{value:r,readable:a,writable:o}=n;const l=[];if(r&&(r.byteLength<r.buffer.byteLength?n.value=r.buffer.slice(0,r.byteLength):n.value=r.buffer,l.push(n.value)),i&&Mp?(a&&l.push(a),o&&l.push(o)):n.readable=n.writable=null,l.length)try{return e.postMessage(n,l),!0}catch{Mp=!1,n.readable=n.writable=null,e.postMessage(n)}else e.postMessage(n)}catch(r){throw t&&t.releaseLock(),s(),r}}async function Yb({data:n},e){const{type:t,value:s,messageId:i,result:r,error:a}=n,{reader:o,writer:l,resolveResult:h,rejectResult:d,onTaskFinished:c}=e;try{if(a){const{message:x,stack:b,code:y,name:f}=a,p=new Error(x);Object.assign(p,{stack:b,code:y,name:f}),g(p)}else{if(t==Qb){const{value:x,done:b}=await o.read();vo({type:Ap,value:x,done:b,messageId:i},e)}t==Ap&&(await l.ready,await l.write(new Uint8Array(s)),vo({type:Hb,messageId:i},e)),t==Lp&&g(null,r)}}catch(x){vo({type:Lp,messageId:i},e),g(x)}function g(x,b){x?d(x):h(b),l&&l.releaseLock(),c()}}let un=[];const lu=[];let Np=0;async function Xb(n,e){const{options:t,config:s}=e,{transferStreams:i,useWebWorkers:r,useCompressionStream:a,codecType:o,compressed:l,signed:h,encrypted:d}=t,{workerScripts:c,maxWorkers:g}=s;e.transferStreams=i||i===ft;const x=!l&&!h&&!d&&!e.transferStreams;return e.useWebWorkers=!x&&(r||r===ft&&s.useWebWorkers),e.scripts=e.useWebWorkers&&c?c[o]:[],t.useCompressionStream=a||a===ft&&s.useCompressionStream,(await b()).run();async function b(){const f=un.find(p=>!p.busy);if(f)return qp(f),new au(f,n,e,y);if(un.length<g){const p={indexWorker:Np};return Np++,un.push(p),new au(p,n,e,y)}else return new Promise(p=>lu.push({resolve:p,stream:n,workerOptions:e}))}function y(f){if(lu.length){const[{resolve:p,stream:w,workerOptions:V}]=lu.splice(0,1);p(new au(f,w,V,y))}else f.worker?(qp(f),ew(f,e)):un=un.filter(p=>p!=f)}}function ew(n,e){const{config:t}=e,{terminateWorkerTimeout:s}=t;Number.isFinite(s)&&s>=0&&(n.terminated?n.terminated=!1:n.terminateTimeout=setTimeout(async()=>{un=un.filter(i=>i!=n);try{await n.terminate()}catch{}},s))}function qp(n){const{terminateTimeout:e}=n;e&&(clearTimeout(e),n.terminateTimeout=null)}function tw(n,e={}){const t=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.v=[1732584193,4023233417,2562383102,271733878,3285377520],t.S=[1518500249,1859775393,2400959708,3395469782],e?(t.C=e.C.slice(0),t.A=e.A.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.C=e.v.slice(0),e.A=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=I.I.k(e));const n=t.A=_.concat(t.A,e),r=t._,i=t._=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<<e|t>>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},B:class{constructor(e){const t=this,n=t.U=P,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.m(t)}function ae(e,t){return e.k(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,te:new x(r[0]),ne:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.te.append([t]),n=~e.te.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.ne.append([s>>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=573,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;573>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function Le(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}He.ke=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.ze=e=>256>e?je[e]:je[256+(e>>>7)],He.Ce=[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],He.xe=[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],He.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le.Ie=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}Le.Ee=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Me=new Le(Le.Ie,He.Ce,257,286,15),Le.Ue=new Le(Le.Ee,He.xe,0,30,15),Le.Ke=new Le(null,He.Ae,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ke[n]+256+1)]++,M[2*He.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.xe[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Oe[c],s=e.Te[c],c++,0===r?Y(s,t):(i=He.ke[s],Y(i+256+1,t),o=He.Ce[i],0!==o&&(s-=He.ve[i],X(s,o)),r--,i=He.ze(r),Y(i,n),o=He.xe[i],0!==o&&(r-=He.Se[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*He._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le.Ie,Le.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i<e.fe&&$e(t,r[i+1],r[i],e.ue)&&i++,!$e(t,s,r[i],e.ue));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.Le=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.qe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ne=new i(4*T),s=4*T,e.Oe=new o(T),e.Te=new i(T),D=S,V=G,(t=>(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Xe,c=0,K.se=E,K.oe=Le.Me,N.se=M,N.oe=Le.Ue,O.se=U,O.oe=Le.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Xe?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Be!=Je[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ze=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.et||!r.tt&&0!==r.je||n==Ye&&4!=i)return r.Fe=Qe[4],Oe;if(0===r.nt)return r.Fe=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Qe[7],-5;if(n==Ye&&0!==t.je)return r.Fe=Qe[7],-5;if(0!==t.je||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.nt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,Le.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={Le(e,t){const n=this;return n.qe=new et,t||(t=15),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):Oe},Xe(){const e=this;if(!e.qe)return Oe;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):Oe},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):Oe},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[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,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[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];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Fe="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=st),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Fe="oversubscribed literal/length tree":-4!=h&&(w.Fe="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Fe="oversubscribed distance tree":h==it?(w.Fe="incomplete distance tree",h=st):-4!=h&&(w.Fe="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ct,h=o.ft,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--u);else o.ut.set(o.ut.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.ut[y++]=o.ut[S++],o.ut[y++]=o.ut[S++],k-=2):(o.ut.set(o.ut.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--k);else o.ut.set(o.ut.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,1):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.wt=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Fe="invalid literal/length code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Fe="invalid distance code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);e.ut[S++]=e.ut[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,e.ut[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);t=8;case 8:return m=1,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 9:return m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);default:return m=rt,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m)}},e.dt=()=>{}}ht.yt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ft=0,n.ct=0,n.ut=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.dt(e),s=0,n.ft=0,n.ct=0,n.read=n.write=0},n.reset(e,null),n.ht=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.wt=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.yt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Fe="invalid block type",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Fe="invalid stored block lengths",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.ut.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Fe="too many length or distance symbols",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Fe="invalid bit length repeat",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,1!=(t=w.wt(n,e,t)))return n.ht(e,t);if(t=0,w.dt(e),m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);s=8;case 8:return t=1,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);case 9:return t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);default:return t=rt,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}}},n.dt=e=>{n.reset(e,null),n.ut=null,d=null},n.bt=(e,t,r)=>{n.ut.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),0):rt}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.dt(t),e.vt=null,0),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),rt):(e.Ct=r,n.kt.vt=new yt(n,1<<r),t(n),0)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return rt;const s=e.kt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.lt(e.rt++)))){s.mode=mt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=mt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.lt(e.rt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.lt(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.lt(e.rt++),s.mode=6,2);case 6:return s.mode=mt,e.Fe="need dictionary",s.marker=0,rt;case 7:if(n=s.vt.wt(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,1;case mt:return st;default:return rt}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return rt;const i=e.kt;return s<1<<i.Ct||(s=(1<<i.Ct)-1,r=n-s),i.vt.bt(t,r,s),i.mode=7,0},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return rt;const c=e.kt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.je))return it;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.lt(r)==bt[s]?s++:s=0!==e.lt(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?st:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,0)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===it){if(0!==t.je)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Fe);if((c||1===a)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}kt.prototype={At(e){const t=this;return t.kt=new gt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):rt},xt(){const e=this;if(!e.kt)return rt;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):rt},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):rt},lt(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
|
|
121
|
+
*/var Rv={themeName:"contrast",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 216, 77, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 216, 77, 1)","--sjs-primary-backcolor-dark":"rgba(83, 83, 83, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.2)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(156, 2, 39, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};const Av=(n,e)=>{class t extends Lt{getType(){return n}}U.addClass(n,[],function(){return new t("")},"question");class s extends Rt{constructor(r){super(r),this.state={value:this.questionBase.value}}get question(){return this.questionBase}renderElement(){const r=e;return T.jsx(r,{setValue:a=>{this.question.value=a}})}}Qe.Instance.registerQuestion(n,i=>B.createElement(s,i))};function Jd({next:n,surveyJson:e,customQuestions:t={}}){Object.keys(t).forEach(r=>{Av(r,t[r])});const s=new De({...e,css:{...La,root:"sd-root-modern custom-root"}});s.applyTheme(Rv);const i=B.useCallback(r=>{n({...r.data})},[n]);return s.onComplete.add(i),T.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[T.jsx("div",{className:"absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]"}),T.jsx(Rd,{model:s})]})}var kr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Za=typeof window>"u"||"Deno"in globalThis;function qs(){}function Lv(n,e){return typeof n=="function"?n(e):n}function Dv(n){return typeof n=="number"&&n>=0&&n!==1/0}function kv(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Yd(n,e){return typeof n=="function"?n(e):n}function _v(n,e){return typeof n=="function"?n(e):n}function Xd(n,e){const{type:t="all",exact:s,fetchStatus:i,predicate:r,queryKey:a,stale:o}=n;if(a){if(s){if(e.queryHash!==Ml(a,e.options))return!1}else if(!_r(e.queryKey,a))return!1}if(t!=="all"){const l=e.isActive();if(t==="active"&&!l||t==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||r&&!r(e))}function ec(n,e){const{exact:t,status:s,predicate:i,mutationKey:r}=n;if(r){if(!e.options.mutationKey)return!1;if(t){if(rn(e.options.mutationKey)!==rn(r))return!1}else if(!_r(e.options.mutationKey,r))return!1}return!(s&&e.state.status!==s||i&&!i(e))}function Ml(n,e){return((e==null?void 0:e.queryKeyHashFn)||rn)(n)}function rn(n){return JSON.stringify(n,(e,t)=>ql(t)?Object.keys(t).sort().reduce((s,i)=>(s[i]=t[i],s),{}):t)}function _r(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!_r(n[t],e[t])):!1}function Nl(n,e){if(n===e)return n;const t=tc(n)&&tc(e);if(t||ql(n)&&ql(e)){const s=t?n:Object.keys(n),i=s.length,r=t?e:Object.keys(e),a=r.length,o=t?[]:{};let l=0;for(let h=0;h<a;h++){const d=t?h:r[h];(!t&&s.includes(d)||t)&&n[d]===void 0&&e[d]===void 0?(o[d]=void 0,l++):(o[d]=Nl(n[d],e[d]),o[d]===n[d]&&n[d]!==void 0&&l++)}return i===a&&l===i?n:o}return e}function Ov(n,e){if(!e||Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function tc(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ql(n){if(!sc(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!sc(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function sc(n){return Object.prototype.toString.call(n)==="[object Object]"}function Mv(n){return new Promise(e=>{setTimeout(e,n)})}function Nv(n,e,t){if(typeof t.structuralSharing=="function")return t.structuralSharing(n,e);if(t.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Nl(n,e)}catch(s){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${t.queryHash}]: ${s}`)}return Nl(n,e)}return e}function qv(n,e,t=0){const s=[...n,e];return t&&s.length>t?s.slice(1):s}function Fv(n,e,t=0){const s=[e,...n];return t&&s.length>t?s.slice(0,-1):s}var Ka=Symbol();function ic(n,e){return process.env.NODE_ENV!=="production"&&n.queryFn===Ka&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${n.queryHash}'`),!n.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!n.queryFn||n.queryFn===Ka?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Bv=(Dg=class extends kr{constructor(){super();Ue(this,cn);Ue(this,qi);Ue(this,Zn);ke(this,Zn,e=>{if(!Za&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){$(this,qi)||this.setEventListener($(this,Zn))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,qi))==null||e.call(this),ke(this,qi,void 0))}setEventListener(e){var t;ke(this,Zn,e),(t=$(this,qi))==null||t.call(this),ke(this,qi,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){$(this,cn)!==e&&(ke(this,cn,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof $(this,cn)=="boolean"?$(this,cn):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},cn=new WeakMap,qi=new WeakMap,Zn=new WeakMap,Dg),nc=new Bv,Qv=(kg=class extends kr{constructor(){super();Ue(this,Kn,!0);Ue(this,Fi);Ue(this,Jn);ke(this,Jn,e=>{if(!Za&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}})}onSubscribe(){$(this,Fi)||this.setEventListener($(this,Jn))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,Fi))==null||e.call(this),ke(this,Fi,void 0))}setEventListener(e){var t;ke(this,Jn,e),(t=$(this,Fi))==null||t.call(this),ke(this,Fi,e(this.setOnline.bind(this)))}setOnline(e){$(this,Kn)!==e&&(ke(this,Kn,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return $(this,Kn)}},Kn=new WeakMap,Fi=new WeakMap,Jn=new WeakMap,kg),Ja=new Qv;function Hv(){let n,e;const t=new Promise((i,r)=>{n=i,e=r});t.status="pending",t.catch(()=>{});function s(i){Object.assign(t,i),delete t.resolve,delete t.reject}return t.resolve=i=>{s({status:"fulfilled",value:i}),n(i)},t.reject=i=>{s({status:"rejected",reason:i}),e(i)},t}function zv(n){return Math.min(1e3*2**n,3e4)}function rc(n){return(n??"online")==="online"?Ja.isOnline():!0}var ac=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Fl(n){return n instanceof ac}function oc(n){let e=!1,t=0,s=!1,i;const r=Hv(),a=y=>{var f;s||(g(new ac(y)),(f=n.abort)==null||f.call(n))},o=()=>{e=!0},l=()=>{e=!1},h=()=>nc.isFocused()&&(n.networkMode==="always"||Ja.isOnline())&&n.canRun(),d=()=>rc(n.networkMode)&&n.canRun(),c=y=>{var f;s||(s=!0,(f=n.onSuccess)==null||f.call(n,y),i==null||i(),r.resolve(y))},g=y=>{var f;s||(s=!0,(f=n.onError)==null||f.call(n,y),i==null||i(),r.reject(y))},x=()=>new Promise(y=>{var f;i=p=>{(s||h())&&y(p)},(f=n.onPause)==null||f.call(n)}).then(()=>{var y;i=void 0,s||(y=n.onContinue)==null||y.call(n)}),b=()=>{if(s)return;let y;const f=t===0?n.initialPromise:void 0;try{y=f??n.fn()}catch(p){y=Promise.reject(p)}Promise.resolve(y).then(c).catch(p=>{var I;if(s)return;const w=n.retry??(Za?0:3),V=n.retryDelay??zv,N=typeof V=="function"?V(t,p):V,O=w===!0||typeof w=="number"&&t<w||typeof w=="function"&&w(t,p);if(e||!O){g(p);return}t++,(I=n.onFail)==null||I.call(n,t,p),Mv(N).then(()=>h()?void 0:x()).then(()=>{e?g(p):b()})})};return{promise:r,cancel:a,continue:()=>(i==null||i(),r),cancelRetry:o,continueRetry:l,canStart:d,start:()=>(d()?b():x().then(b),r)}}function Uv(){let n=[],e=0,t=o=>{o()},s=o=>{o()},i=o=>setTimeout(o,0);const r=o=>{e?n.push(o):i(()=>{t(o)})},a=()=>{const o=n;n=[],o.length&&i(()=>{s(()=>{o.forEach(l=>{t(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{r(()=>{o(...l)})},schedule:r,setNotifyFunction:o=>{t=o},setBatchNotifyFunction:o=>{s=o},setScheduler:o=>{i=o}}}var Qt=Uv(),lc=(_g=class{constructor(){Ue(this,pn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dv(this.gcTime)&&ke(this,pn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Za?1/0:5*60*1e3))}clearGcTimeout(){$(this,pn)&&(clearTimeout($(this,pn)),ke(this,pn,void 0))}},pn=new WeakMap,_g),Wv=(Og=class extends lc{constructor(e){super();Ue(this,Hs);Ue(this,Yn);Ue(this,Xn);Ue(this,Ds);Ue(this,$t);Ue(this,Jr);Ue(this,gn);ke(this,gn,!1),ke(this,Jr,e.defaultOptions),this.setOptions(e.options),this.observers=[],ke(this,Ds,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ke(this,Yn,Gv(this.options)),this.state=e.state??$(this,Yn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=$(this,$t))==null?void 0:e.promise}setOptions(e){this.options={...$(this,Jr),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&$(this,Ds).remove(this)}setData(e,t){const s=Nv(this.state.data,e,this.options);return Pt(this,Hs,bi).call(this,{data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){Pt(this,Hs,bi).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var s,i;const t=(s=$(this,$t))==null?void 0:s.promise;return(i=$(this,$t))==null||i.cancel(e),t?t.then(qs).catch(qs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,Yn))}isActive(){return this.observers.some(e=>_v(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ka||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!kv(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=$(this,$t))==null||t.continue()}onOnline(){var t;const e=this.observers.find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=$(this,$t))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),$(this,Ds).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||($(this,$t)&&($(this,gn)?$(this,$t).cancel({revert:!0}):$(this,$t).cancelRetry()),this.scheduleGc()),$(this,Ds).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pt(this,Hs,bi).call(this,{type:"invalidate"})}fetch(e,t){var l,h,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if($(this,$t))return $(this,$t).continueRetry(),$(this,$t).promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(g=>g.options.queryFn);c&&this.setOptions(c.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const s=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(ke(this,gn,!0),s.signal)})},r=()=>{const c=ic(this.options,t),g={queryKey:this.queryKey,meta:this.meta};return i(g),ke(this,gn,!1),this.options.persister?this.options.persister(c,g,this):c(g)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:r};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),ke(this,Xn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=a.fetchOptions)==null?void 0:h.meta))&&Pt(this,Hs,bi).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const o=c=>{var g,x,b,y;Fl(c)&&c.silent||Pt(this,Hs,bi).call(this,{type:"error",error:c}),Fl(c)||((x=(g=$(this,Ds).config).onError)==null||x.call(g,c,this),(y=(b=$(this,Ds).config).onSettled)==null||y.call(b,this.state.data,c,this)),this.scheduleGc()};return ke(this,$t,oc({initialPromise:t==null?void 0:t.initialPromise,fn:a.fetchFn,abort:s.abort.bind(s),onSuccess:c=>{var g,x,b,y;if(c===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(f){o(f);return}(x=(g=$(this,Ds).config).onSuccess)==null||x.call(g,c,this),(y=(b=$(this,Ds).config).onSettled)==null||y.call(b,c,this.state.error,this),this.scheduleGc()},onError:o,onFail:(c,g)=>{Pt(this,Hs,bi).call(this,{type:"failed",failureCount:c,error:g})},onPause:()=>{Pt(this,Hs,bi).call(this,{type:"pause"})},onContinue:()=>{Pt(this,Hs,bi).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),$(this,$t).start()}},Yn=new WeakMap,Xn=new WeakMap,Ds=new WeakMap,$t=new WeakMap,Jr=new WeakMap,gn=new WeakMap,Hs=new WeakSet,bi=function(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...jv(s.data,this.options),fetchMeta:e.meta??null};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Fl(i)&&i.revert&&$(this,Xn)?{...$(this,Xn),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Qt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),$(this,Ds).notify({query:this,type:"updated",action:e})})},Og);function jv(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rc(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Gv(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=e!==void 0,s=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var $v=(Mg=class extends kr{constructor(e={}){super();Ue(this,si);this.config=e,ke(this,si,new Map)}build(e,t,s){const i=t.queryKey,r=t.queryHash??Ml(i,t);let a=this.get(r);return a||(a=new Wv({cache:this,queryKey:i,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){$(this,si).has(e.queryHash)||($(this,si).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=$(this,si).get(e.queryHash);t&&(e.destroy(),t===e&&$(this,si).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return $(this,si).get(e)}getAll(){return[...$(this,si).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>Xd(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>Xd(e,s)):t}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},si=new WeakMap,Mg),Zv=(Ng=class extends lc{constructor(e){super();Ue(this,ni);Ue(this,ii);Ue(this,ts);Ue(this,mn);this.mutationId=e.mutationId,ke(this,ts,e.mutationCache),ke(this,ii,[]),this.state=e.state||uc(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){$(this,ii).includes(e)||($(this,ii).push(e),this.clearGcTimeout(),$(this,ts).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ke(this,ii,$(this,ii).filter(t=>t!==e)),this.scheduleGc(),$(this,ts).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){$(this,ii).length||(this.state.status==="pending"?this.scheduleGc():$(this,ts).remove(this))}continue(){var e;return((e=$(this,mn))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,r,a,o,l,h,d,c,g,x,b,y,f,p,w,V,N,O,I,L;ke(this,mn,oc({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(P,k)=>{Pt(this,ni,Zi).call(this,{type:"failed",failureCount:P,error:k})},onPause:()=>{Pt(this,ni,Zi).call(this,{type:"pause"})},onContinue:()=>{Pt(this,ni,Zi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>$(this,ts).canRun(this)}));const t=this.state.status==="pending",s=!$(this,mn).canStart();try{if(!t){Pt(this,ni,Zi).call(this,{type:"pending",variables:e,isPaused:s}),await((r=(i=$(this,ts).config).onMutate)==null?void 0:r.call(i,e,this));const k=await((o=(a=this.options).onMutate)==null?void 0:o.call(a,e));k!==this.state.context&&Pt(this,ni,Zi).call(this,{type:"pending",context:k,variables:e,isPaused:s})}const P=await $(this,mn).start();return await((h=(l=$(this,ts).config).onSuccess)==null?void 0:h.call(l,P,e,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,P,e,this.state.context)),await((x=(g=$(this,ts).config).onSettled)==null?void 0:x.call(g,P,null,this.state.variables,this.state.context,this)),await((y=(b=this.options).onSettled)==null?void 0:y.call(b,P,null,e,this.state.context)),Pt(this,ni,Zi).call(this,{type:"success",data:P}),P}catch(P){try{throw await((p=(f=$(this,ts).config).onError)==null?void 0:p.call(f,P,e,this.state.context,this)),await((V=(w=this.options).onError)==null?void 0:V.call(w,P,e,this.state.context)),await((O=(N=$(this,ts).config).onSettled)==null?void 0:O.call(N,void 0,P,this.state.variables,this.state.context,this)),await((L=(I=this.options).onSettled)==null?void 0:L.call(I,void 0,P,e,this.state.context)),P}finally{Pt(this,ni,Zi).call(this,{type:"error",error:P})}}finally{$(this,ts).runNext(this)}}},ii=new WeakMap,ts=new WeakMap,mn=new WeakMap,ni=new WeakSet,Zi=function(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Qt.batch(()=>{$(this,ii).forEach(s=>{s.onMutationUpdate(e)}),$(this,ts).notify({mutation:this,type:"updated",action:e})})},Ng);function uc(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kv=(qg=class extends kr{constructor(e={}){super();Ue(this,Vs);Ue(this,Yr);this.config=e,ke(this,Vs,new Map),ke(this,Yr,Date.now())}build(e,t,s){const i=new Zv({mutationCache:this,mutationId:++Mo(this,Yr)._,options:e.defaultMutationOptions(t),state:s});return this.add(i),i}add(e){const t=Ya(e),s=$(this,Vs).get(t)??[];s.push(e),$(this,Vs).set(t,s),this.notify({type:"added",mutation:e})}remove(e){var s;const t=Ya(e);if($(this,Vs).has(t)){const i=(s=$(this,Vs).get(t))==null?void 0:s.filter(r=>r!==e);i&&(i.length===0?$(this,Vs).delete(t):$(this,Vs).set(t,i))}this.notify({type:"removed",mutation:e})}canRun(e){var s;const t=(s=$(this,Vs).get(Ya(e)))==null?void 0:s.find(i=>i.state.status==="pending");return!t||t===e}runNext(e){var s;const t=(s=$(this,Vs).get(Ya(e)))==null?void 0:s.find(i=>i!==e&&i.state.isPaused);return(t==null?void 0:t.continue())??Promise.resolve()}clear(){Qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...$(this,Vs).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find(s=>ec(t,s))}findAll(e={}){return this.getAll().filter(t=>ec(e,t))}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Qt.batch(()=>Promise.all(e.map(t=>t.continue().catch(qs))))}},Vs=new WeakMap,Yr=new WeakMap,qg);function Ya(n){var e;return((e=n.options.scope)==null?void 0:e.id)??String(n.mutationId)}function hc(n){return{onFetch:(e,t)=>{var d,c,g,x,b;const s=e.options,i=(g=(c=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:g.direction,r=((x=e.state.data)==null?void 0:x.pages)||[],a=((b=e.state.data)==null?void 0:b.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const h=async()=>{let y=!1;const f=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(e.signal.aborted?y=!0:e.signal.addEventListener("abort",()=>{y=!0}),e.signal)})},p=ic(e.options,e.fetchOptions),w=async(V,N,O)=>{if(y)return Promise.reject();if(N==null&&V.pages.length)return Promise.resolve(V);const I={queryKey:e.queryKey,pageParam:N,direction:O?"backward":"forward",meta:e.options.meta};f(I);const L=await p(I),{maxPages:P}=e.options,k=O?Fv:qv;return{pages:k(V.pages,L,P),pageParams:k(V.pageParams,N,P)}};if(i&&r.length){const V=i==="backward",N=V?Jv:dc,O={pages:r,pageParams:a},I=N(s,O);o=await w(O,I,V)}else{const V=n??r.length;do{const N=l===0?a[0]??s.initialPageParam:dc(s,o);if(l>0&&N==null)break;o=await w(o,N),l++}while(l<V)}return o};e.options.persister?e.fetchFn=()=>{var y,f;return(f=(y=e.options).persister)==null?void 0:f.call(y,h,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=h}}}function dc(n,{pages:e,pageParams:t}){const s=e.length-1;return e.length>0?n.getNextPageParam(e[s],e,t[s],t):void 0}function Jv(n,{pages:e,pageParams:t}){var s;return e.length>0?(s=n.getPreviousPageParam)==null?void 0:s.call(n,e[0],e,t[0],t):void 0}var Yv=(Fg=class{constructor(n={}){Ue(this,xt);Ue(this,Bi);Ue(this,Qi);Ue(this,er);Ue(this,tr);Ue(this,Hi);Ue(this,sr);Ue(this,ir);ke(this,xt,n.queryCache||new $v),ke(this,Bi,n.mutationCache||new Kv),ke(this,Qi,n.defaultOptions||{}),ke(this,er,new Map),ke(this,tr,new Map),ke(this,Hi,0)}mount(){Mo(this,Hi)._++,$(this,Hi)===1&&(ke(this,sr,nc.subscribe(async n=>{n&&(await this.resumePausedMutations(),$(this,xt).onFocus())})),ke(this,ir,Ja.subscribe(async n=>{n&&(await this.resumePausedMutations(),$(this,xt).onOnline())})))}unmount(){var n,e;Mo(this,Hi)._--,$(this,Hi)===0&&((n=$(this,sr))==null||n.call(this),ke(this,sr,void 0),(e=$(this,ir))==null||e.call(this),ke(this,ir,void 0))}isFetching(n){return $(this,xt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return $(this,Bi).findAll({...n,status:"pending"}).length}getQueryData(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=$(this,xt).get(e.queryHash))==null?void 0:t.state.data}ensureQueryData(n){const e=this.getQueryData(n.queryKey);if(e===void 0)return this.fetchQuery(n);{const t=this.defaultQueryOptions(n),s=$(this,xt).build(this,t);return n.revalidateIfStale&&s.isStaleByTime(Yd(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(e)}}getQueriesData(n){return $(this,xt).findAll(n).map(({queryKey:e,state:t})=>{const s=t.data;return[e,s]})}setQueryData(n,e,t){const s=this.defaultQueryOptions({queryKey:n}),i=$(this,xt).get(s.queryHash),r=i==null?void 0:i.state.data,a=Lv(e,r);if(a!==void 0)return $(this,xt).build(this,s).setData(a,{...t,manual:!0})}setQueriesData(n,e,t){return Qt.batch(()=>$(this,xt).findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,e,t)]))}getQueryState(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=$(this,xt).get(e.queryHash))==null?void 0:t.state}removeQueries(n){const e=$(this,xt);Qt.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=$(this,xt),s={type:"active",...n};return Qt.batch(()=>(t.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries(s,e)))}cancelQueries(n={},e={}){const t={revert:!0,...e},s=Qt.batch(()=>$(this,xt).findAll(n).map(i=>i.cancel(t)));return Promise.all(s).then(qs).catch(qs)}invalidateQueries(n={},e={}){return Qt.batch(()=>{if($(this,xt).findAll(n).forEach(s=>{s.invalidate()}),n.refetchType==="none")return Promise.resolve();const t={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(t,e)})}refetchQueries(n={},e){const t={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},s=Qt.batch(()=>$(this,xt).findAll(n).filter(i=>!i.isDisabled()).map(i=>{let r=i.fetch(void 0,t);return t.throwOnError||(r=r.catch(qs)),i.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(s).then(qs)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const t=$(this,xt).build(this,e);return t.isStaleByTime(Yd(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(qs).catch(qs)}fetchInfiniteQuery(n){return n.behavior=hc(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(qs).catch(qs)}ensureInfiniteQueryData(n){return n.behavior=hc(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ja.isOnline()?$(this,Bi).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,xt)}getMutationCache(){return $(this,Bi)}getDefaultOptions(){return $(this,Qi)}setDefaultOptions(n){ke(this,Qi,n)}setQueryDefaults(n,e){$(this,er).set(rn(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...$(this,er).values()];let t={};return e.forEach(s=>{_r(n,s.queryKey)&&(t={...t,...s.defaultOptions})}),t}setMutationDefaults(n,e){$(this,tr).set(rn(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...$(this,tr).values()];let t={};return e.forEach(s=>{_r(n,s.mutationKey)&&(t={...t,...s.defaultOptions})}),t}defaultQueryOptions(n){if(n._defaulted)return n;const e={...$(this,Qi).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=Ml(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Ka&&(e.enabled=!1),e}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...$(this,Qi).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){$(this,xt).clear(),$(this,Bi).clear()}},xt=new WeakMap,Bi=new WeakMap,Qi=new WeakMap,er=new WeakMap,tr=new WeakMap,Hi=new WeakMap,sr=new WeakMap,ir=new WeakMap,Fg),Xv=(Bg=class extends kr{constructor(e,t){super();Ue(this,Ci);Ue(this,zi);Ue(this,Ui);Ue(this,hs);Ue(this,yi);ke(this,zi,e),this.setOptions(t),this.bindMethods(),Pt(this,Ci,No).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var s;const t=this.options;this.options=$(this,zi).defaultMutationOptions(e),Ov(this.options,t)||$(this,zi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:$(this,hs),observer:this}),t!=null&&t.mutationKey&&this.options.mutationKey&&rn(t.mutationKey)!==rn(this.options.mutationKey)?this.reset():((s=$(this,hs))==null?void 0:s.state.status)==="pending"&&$(this,hs).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=$(this,hs))==null||e.removeObserver(this)}onMutationUpdate(e){Pt(this,Ci,No).call(this),Pt(this,Ci,Ou).call(this,e)}getCurrentResult(){return $(this,Ui)}reset(){var e;(e=$(this,hs))==null||e.removeObserver(this),ke(this,hs,void 0),Pt(this,Ci,No).call(this),Pt(this,Ci,Ou).call(this)}mutate(e,t){var s;return ke(this,yi,t),(s=$(this,hs))==null||s.removeObserver(this),ke(this,hs,$(this,zi).getMutationCache().build($(this,zi),this.options)),$(this,hs).addObserver(this),$(this,hs).execute(e)}},zi=new WeakMap,Ui=new WeakMap,hs=new WeakMap,yi=new WeakMap,Ci=new WeakSet,No=function(){var t;const e=((t=$(this,hs))==null?void 0:t.state)??uc();ke(this,Ui,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},Ou=function(e){Qt.batch(()=>{var t,s,i,r,a,o,l,h;if($(this,yi)&&this.hasListeners()){const d=$(this,Ui).variables,c=$(this,Ui).context;(e==null?void 0:e.type)==="success"?((s=(t=$(this,yi)).onSuccess)==null||s.call(t,e.data,d,c),(r=(i=$(this,yi)).onSettled)==null||r.call(i,e.data,null,d,c)):(e==null?void 0:e.type)==="error"&&((o=(a=$(this,yi)).onError)==null||o.call(a,e.error,d,c),(h=(l=$(this,yi)).onSettled)==null||h.call(l,void 0,e.error,d,c))}this.listeners.forEach(d=>{d($(this,Ui))})})},Bg),cc=u.createContext(void 0),e0=n=>{const e=u.useContext(cc);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},t0=({client:n,children:e})=>(u.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),T.jsx(cc.Provider,{value:n,children:e}));function s0(n,e){return typeof n=="function"?n(...e):!!n}function i0(){}function n0(n,e){const t=e0(),[s]=u.useState(()=>new Xv(t,n));u.useEffect(()=>{s.setOptions(n)},[s,n]);const i=u.useSyncExternalStore(u.useCallback(a=>s.subscribe(Qt.batchCalls(a)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),r=u.useCallback((a,o)=>{s.mutate(a,o).catch(i0)},[s]);if(i.error&&s0(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:r,mutateAsync:i.mutate}}const Ht=[];for(let n=0;n<256;++n)Ht.push((n+256).toString(16).slice(1));function r0(n,e=0){return(Ht[n[e+0]]+Ht[n[e+1]]+Ht[n[e+2]]+Ht[n[e+3]]+"-"+Ht[n[e+4]]+Ht[n[e+5]]+"-"+Ht[n[e+6]]+Ht[n[e+7]]+"-"+Ht[n[e+8]]+Ht[n[e+9]]+"-"+Ht[n[e+10]]+Ht[n[e+11]]+Ht[n[e+12]]+Ht[n[e+13]]+Ht[n[e+14]]+Ht[n[e+15]]).toLowerCase()}let Bl;const a0=new Uint8Array(16);function o0(){if(!Bl){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bl=crypto.getRandomValues.bind(crypto)}return Bl(a0)}const pc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function l0(n,e,t){if(pc.randomUUID&&!e&&!n)return pc.randomUUID();n=n||{};const s=n.random||(n.rng||o0)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,r0(s)}const gc="/backend";async function u0(n,e){return e instanceof FormData?await fetch(`${gc}${n}`,{method:"POST",body:e}):fetch(`${gc}${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}const Or=15,Ql=30,Hl=19,h0=29,Xa=256,zl=Xa+1+h0,mc=2*zl+1,Mr=256,d0=7,fc=16,yc=17,Cc=18,Ul=8*2,eo=-1,c0=1,to=2,p0=0,Un=0,vc=1,g0=3,rs=4,Fs=0,bc=1,so=2,Bs=-2,m0=-3,Wn=-5;function io(n){return no(n.map(([e,t])=>new Array(e).fill(t,0,e)))}function no(n){return n.reduce((e,t)=>e.concat(Array.isArray(t)?no(t):t),[])}const wc=[0,1,2,3].concat(...io([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function gt(){const n=this;function e(i){const r=n.dyn_tree,a=n.stat_desc.static_tree,o=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,h=n.stat_desc.max_length;let d,c,g,x,b,y,f=0;for(x=0;x<=Or;x++)i.bl_count[x]=0;for(r[i.heap[i.heap_max]*2+1]=0,d=i.heap_max+1;d<mc;d++)c=i.heap[d],x=r[r[c*2+1]*2+1]+1,x>h&&(x=h,f++),r[c*2+1]=x,!(c>n.max_code)&&(i.bl_count[x]++,b=0,c>=l&&(b=o[c-l]),y=r[c*2],i.opt_len+=y*(x+b),a&&(i.static_len+=y*(a[c*2+1]+b)));if(f!==0){do{for(x=h-1;i.bl_count[x]===0;)x--;i.bl_count[x]--,i.bl_count[x+1]+=2,i.bl_count[h]--,f-=2}while(f>0);for(x=h;x!==0;x--)for(c=i.bl_count[x];c!==0;)g=i.heap[--d],!(g>n.max_code)&&(r[g*2+1]!=x&&(i.opt_len+=(x-r[g*2+1])*r[g*2],r[g*2+1]=x),c--)}}function t(i,r){let a=0;do a|=i&1,i>>>=1,a<<=1;while(--r>0);return a>>>1}function s(i,r,a){const o=[];let l=0,h,d,c;for(h=1;h<=Or;h++)o[h]=l=l+a[h-1]<<1;for(d=0;d<=r;d++)c=i[d*2+1],c!==0&&(i[d*2]=t(o[c]++,c))}n.build_tree=function(i){const r=n.dyn_tree,a=n.stat_desc.static_tree,o=n.stat_desc.elems;let l,h,d=-1,c;for(i.heap_len=0,i.heap_max=mc,l=0;l<o;l++)r[l*2]!==0?(i.heap[++i.heap_len]=d=l,i.depth[l]=0):r[l*2+1]=0;for(;i.heap_len<2;)c=i.heap[++i.heap_len]=d<2?++d:0,r[c*2]=1,i.depth[c]=0,i.opt_len--,a&&(i.static_len-=a[c*2+1]);for(n.max_code=d,l=Math.floor(i.heap_len/2);l>=1;l--)i.pqdownheap(r,l);c=o;do l=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(r,1),h=i.heap[1],i.heap[--i.heap_max]=l,i.heap[--i.heap_max]=h,r[c*2]=r[l*2]+r[h*2],i.depth[c]=Math.max(i.depth[l],i.depth[h])+1,r[l*2+1]=r[h*2+1]=c,i.heap[1]=c++,i.pqdownheap(r,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],e(i),s(r,n.max_code,i.bl_count)}}gt._length_code=[0,1,2,3,4,5,6,7].concat(...io([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),gt.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],gt.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],gt.d_code=function(n){return n<256?wc[n]:wc[256+(n>>>7)]},gt.extra_lbits=[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],gt.extra_dbits=[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],gt.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],gt.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function zt(n,e,t,s,i){const r=this;r.static_tree=n,r.extra_bits=e,r.extra_base=t,r.elems=s,r.max_length=i}const f0=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],y0=io([[144,8],[112,9],[24,7],[8,8]]);zt.static_ltree=no(f0.map((n,e)=>[n,y0[e]]));const C0=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],v0=io([[30,5]]);zt.static_dtree=no(C0.map((n,e)=>[n,v0[e]])),zt.static_l_desc=new zt(zt.static_ltree,gt.extra_lbits,Xa+1,zl,Or),zt.static_d_desc=new zt(zt.static_dtree,gt.extra_dbits,0,Ql,Or),zt.static_bl_desc=new zt(null,gt.extra_blbits,0,Hl,d0);const b0=9,w0=8;function Ys(n,e,t,s,i){const r=this;r.good_length=n,r.max_lazy=e,r.nice_length=t,r.max_chain=s,r.func=i}const xc=0,ro=1,an=2,Qs=[new Ys(0,0,0,0,xc),new Ys(4,4,8,4,ro),new Ys(4,5,16,8,ro),new Ys(4,6,32,32,ro),new Ys(4,4,16,16,an),new Ys(8,16,32,32,an),new Ys(8,16,128,128,an),new Ys(8,32,128,256,an),new Ys(32,128,258,1024,an),new Ys(32,258,258,4096,an)],ao=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],As=0,oo=1,Nr=2,lo=3,x0=32,Wl=42,uo=113,qr=666,jl=8,V0=0,Gl=1,E0=2,yt=3,ho=258,bs=ho+yt+1;function Vc(n,e,t,s){const i=n[e*2],r=n[t*2];return i<r||i==r&&s[e]<=s[t]}function S0(){const n=this;let e,t,s,i,r,a,o,l,h,d,c,g,x,b,y,f,p,w,V,N,O,I,L,P,k,q,z,j,D,F,Q,H,Z;const ee=new gt,ve=new gt,se=new gt;n.depth=[];let fe,oe,pe,Le,be,ne;n.bl_count=[],n.heap=[],Q=[],H=[],Z=[];function Ve(){h=2*r,c[x-1]=0;for(let J=0;J<x-1;J++)c[J]=0;q=Qs[z].max_lazy,D=Qs[z].good_length,F=Qs[z].nice_length,k=Qs[z].max_chain,O=0,p=0,L=0,w=P=yt-1,N=0,g=0}function ht(){let J;for(J=0;J<zl;J++)Q[J*2]=0;for(J=0;J<Ql;J++)H[J*2]=0;for(J=0;J<Hl;J++)Z[J*2]=0;Q[Mr*2]=1,n.opt_len=n.static_len=0,oe=pe=0}function ss(){ee.dyn_tree=Q,ee.stat_desc=zt.static_l_desc,ve.dyn_tree=H,ve.stat_desc=zt.static_d_desc,se.dyn_tree=Z,se.stat_desc=zt.static_bl_desc,be=0,ne=0,Le=8,ht()}n.pqdownheap=function(J,ie){const Y=n.heap,re=Y[ie];let ce=ie<<1;for(;ce<=n.heap_len&&(ce<n.heap_len&&Vc(J,Y[ce+1],Y[ce],n.depth)&&ce++,!Vc(J,re,Y[ce],n.depth));)Y[ie]=Y[ce],ie=ce,ce<<=1;Y[ie]=re};function Ot(J,ie){let Y=-1,re,ce=J[0*2+1],Ie=0,Ne=7,Ct=4;ce===0&&(Ne=138,Ct=3),J[(ie+1)*2+1]=65535;for(let jt=0;jt<=ie;jt++)re=ce,ce=J[(jt+1)*2+1],!(++Ie<Ne&&re==ce)&&(Ie<Ct?Z[re*2]+=Ie:re!==0?(re!=Y&&Z[re*2]++,Z[fc*2]++):Ie<=10?Z[yc*2]++:Z[Cc*2]++,Ie=0,Y=re,ce===0?(Ne=138,Ct=3):re==ce?(Ne=6,Ct=3):(Ne=7,Ct=4))}function zs(){let J;for(Ot(Q,ee.max_code),Ot(H,ve.max_code),se.build_tree(n),J=Hl-1;J>=3&&Z[gt.bl_order[J]*2+1]===0;J--);return n.opt_len+=3*(J+1)+5+5+4,J}function Zt(J){n.pending_buf[n.pending++]=J}function is(J){Zt(J&255),Zt(J>>>8&255)}function Us(J){Zt(J>>8&255),Zt(J&255&255)}function Ze(J,ie){let Y;const re=ie;ne>Ul-re?(Y=J,be|=Y<<ne&65535,is(be),be=Y>>>Ul-ne,ne+=re-Ul):(be|=J<<ne&65535,ne+=re)}function nt(J,ie){const Y=J*2;Ze(ie[Y]&65535,ie[Y+1]&65535)}function ds(J,ie){let Y,re=-1,ce,Ie=J[0*2+1],Ne=0,Ct=7,jt=4;for(Ie===0&&(Ct=138,jt=3),Y=0;Y<=ie;Y++)if(ce=Ie,Ie=J[(Y+1)*2+1],!(++Ne<Ct&&ce==Ie)){if(Ne<jt)do nt(ce,Z);while(--Ne!==0);else ce!==0?(ce!=re&&(nt(ce,Z),Ne--),nt(fc,Z),Ze(Ne-3,2)):Ne<=10?(nt(yc,Z),Ze(Ne-3,3)):(nt(Cc,Z),Ze(Ne-11,7));Ne=0,re=ce,Ie===0?(Ct=138,jt=3):ce==Ie?(Ct=6,jt=3):(Ct=7,jt=4)}}function Wt(J,ie,Y){let re;for(Ze(J-257,5),Ze(ie-1,5),Ze(Y-4,4),re=0;re<Y;re++)Ze(Z[gt.bl_order[re]*2+1],3);ds(Q,J-1),ds(H,ie-1)}function Vt(){ne==16?(is(be),be=0,ne=0):ne>=8&&(Zt(be&255),be>>>=8,ne-=8)}function cs(){Ze(Gl<<1,3),nt(Mr,zt.static_ltree),Vt(),1+Le+10-ne<9&&(Ze(Gl<<1,3),nt(Mr,zt.static_ltree),Vt()),Le=7}function ps(J,ie){let Y,re,ce;if(n.dist_buf[oe]=J,n.lc_buf[oe]=ie&255,oe++,J===0?Q[ie*2]++:(pe++,J--,Q[(gt._length_code[ie]+Xa+1)*2]++,H[gt.d_code(J)*2]++),!(oe&8191)&&z>2){for(Y=oe*8,re=O-p,ce=0;ce<Ql;ce++)Y+=H[ce*2]*(5+gt.extra_dbits[ce]);if(Y>>>=3,pe<Math.floor(oe/2)&&Y<Math.floor(re/2))return!0}return oe==fe-1}function Mt(J,ie){let Y,re,ce=0,Ie,Ne;if(oe!==0)do Y=n.dist_buf[ce],re=n.lc_buf[ce],ce++,Y===0?nt(re,J):(Ie=gt._length_code[re],nt(Ie+Xa+1,J),Ne=gt.extra_lbits[Ie],Ne!==0&&(re-=gt.base_length[Ie],Ze(re,Ne)),Y--,Ie=gt.d_code(Y),nt(Ie,ie),Ne=gt.extra_dbits[Ie],Ne!==0&&(Y-=gt.base_dist[Ie],Ze(Y,Ne)));while(ce<oe);nt(Mr,J),Le=J[Mr*2+1]}function Wi(){ne>8?is(be):ne>0&&Zt(be&255),be=0,ne=0}function fn(J,ie,Y){Wi(),Le=8,is(ie),is(~ie),n.pending_buf.set(l.subarray(J,J+ie),n.pending),n.pending+=ie}function ks(J,ie,Y){Ze((V0<<1)+(Y?1:0),3),fn(J,ie)}function yn(J,ie,Y){let re,ce,Ie=0;z>0?(ee.build_tree(n),ve.build_tree(n),Ie=zs(),re=n.opt_len+3+7>>>3,ce=n.static_len+3+7>>>3,ce<=re&&(re=ce)):re=ce=ie+5,ie+4<=re&&J!=-1?ks(J,ie,Y):ce==re?(Ze((Gl<<1)+(Y?1:0),3),Mt(zt.static_ltree,zt.static_dtree)):(Ze((E0<<1)+(Y?1:0),3),Wt(ee.max_code+1,ve.max_code+1,Ie+1),Mt(Q,H)),ht(),Y&&Wi()}function Kt(J){yn(p>=0?p:-1,O-p,J),p=O,e.flush_pending()}function Cn(){let J,ie,Y,re;do{if(re=h-L-O,re===0&&O===0&&L===0)re=r;else if(re==-1)re--;else if(O>=r+r-bs){l.set(l.subarray(r,r+r),0),I-=r,O-=r,p-=r,J=x,Y=J;do ie=c[--Y]&65535,c[Y]=ie>=r?ie-r:0;while(--J!==0);J=r,Y=J;do ie=d[--Y]&65535,d[Y]=ie>=r?ie-r:0;while(--J!==0);re+=r}if(e.avail_in===0)return;J=e.read_buf(l,O+L,re),L+=J,L>=yt&&(g=l[O]&255,g=(g<<f^l[O+1]&255)&y)}while(L<bs&&e.avail_in!==0)}function nr(J){let ie=65535,Y;for(ie>s-5&&(ie=s-5);;){if(L<=1){if(Cn(),L===0&&J==Un)return As;if(L===0)break}if(O+=L,L=0,Y=p+ie,(O===0||O>=Y)&&(L=O-Y,O=Y,Kt(!1),e.avail_out===0)||O-p>=r-bs&&(Kt(!1),e.avail_out===0))return As}return Kt(J==rs),e.avail_out===0?J==rs?Nr:As:J==rs?lo:oo}function ji(J){let ie=k,Y=O,re,ce,Ie=P;const Ne=O>r-bs?O-(r-bs):0;let Ct=F;const jt=o,ri=O+ho;let vn=l[Y+Ie-1],or=l[Y+Ie];P>=D&&(ie>>=2),Ct>L&&(Ct=L);do if(re=J,!(l[re+Ie]!=or||l[re+Ie-1]!=vn||l[re]!=l[Y]||l[++re]!=l[Y+1])){Y+=2,re++;do;while(l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&l[++Y]==l[++re]&&Y<ri);if(ce=ho-(ri-Y),Y=ri-ho,ce>Ie){if(I=J,Ie=ce,ce>=Ct)break;vn=l[Y+Ie-1],or=l[Y+Ie]}}while((J=d[J&jt]&65535)>Ne&&--ie!==0);return Ie<=L?Ie:L}function Gi(J){let ie=0,Y;for(;;){if(L<bs){if(Cn(),L<bs&&J==Un)return As;if(L===0)break}if(L>=yt&&(g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O),ie!==0&&(O-ie&65535)<=r-bs&&j!=to&&(w=ji(ie)),w>=yt)if(Y=ps(O-I,w-yt),L-=w,w<=q&&L>=yt){w--;do O++,g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O;while(--w!==0);O++}else O+=w,w=0,g=l[O]&255,g=(g<<f^l[O+1]&255)&y;else Y=ps(0,l[O]&255),L--,O++;if(Y&&(Kt(!1),e.avail_out===0))return As}return Kt(J==rs),e.avail_out===0?J==rs?Nr:As:J==rs?lo:oo}function rr(J){let ie=0,Y,re;for(;;){if(L<bs){if(Cn(),L<bs&&J==Un)return As;if(L===0)break}if(L>=yt&&(g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O),P=w,V=I,w=yt-1,ie!==0&&P<q&&(O-ie&65535)<=r-bs&&(j!=to&&(w=ji(ie)),w<=5&&(j==c0||w==yt&&O-I>4096)&&(w=yt-1)),P>=yt&&w<=P){re=O+L-yt,Y=ps(O-1-V,P-yt),L-=P-1,P-=2;do++O<=re&&(g=(g<<f^l[O+(yt-1)]&255)&y,ie=c[g]&65535,d[O&o]=c[g],c[g]=O);while(--P!==0);if(N=0,w=yt-1,O++,Y&&(Kt(!1),e.avail_out===0))return As}else if(N!==0){if(Y=ps(0,l[O-1]&255),Y&&Kt(!1),O++,L--,e.avail_out===0)return As}else N=1,O++,L--}return N!==0&&(Y=ps(0,l[O-1]&255),N=0),Kt(J==rs),e.avail_out===0?J==rs?Nr:As:J==rs?lo:oo}function ar(J){return J.total_in=J.total_out=0,J.msg=null,n.pending=0,n.pending_out=0,t=uo,i=Un,ss(),Ve(),Fs}n.deflateInit=function(J,ie,Y,re,ce,Ie){return re||(re=jl),ce||(ce=w0),Ie||(Ie=p0),J.msg=null,ie==eo&&(ie=6),ce<1||ce>b0||re!=jl||Y<9||Y>15||ie<0||ie>9||Ie<0||Ie>to?Bs:(J.dstate=n,a=Y,r=1<<a,o=r-1,b=ce+7,x=1<<b,y=x-1,f=Math.floor((b+yt-1)/yt),l=new Uint8Array(r*2),d=[],c=[],fe=1<<ce+6,n.pending_buf=new Uint8Array(fe*4),s=fe*4,n.dist_buf=new Uint16Array(fe),n.lc_buf=new Uint8Array(fe),z=ie,j=Ie,ar(J))},n.deflateEnd=function(){return t!=Wl&&t!=uo&&t!=qr?Bs:(n.lc_buf=null,n.dist_buf=null,n.pending_buf=null,c=null,d=null,l=null,n.dstate=null,t==uo?m0:Fs)},n.deflateParams=function(J,ie,Y){let re=Fs;return ie==eo&&(ie=6),ie<0||ie>9||Y<0||Y>to?Bs:(Qs[z].func!=Qs[ie].func&&J.total_in!==0&&(re=J.deflate(vc)),z!=ie&&(z=ie,q=Qs[z].max_lazy,D=Qs[z].good_length,F=Qs[z].nice_length,k=Qs[z].max_chain),j=Y,re)},n.deflateSetDictionary=function(J,ie,Y){let re=Y,ce,Ie=0;if(!ie||t!=Wl)return Bs;if(re<yt)return Fs;for(re>r-bs&&(re=r-bs,Ie=Y-re),l.set(ie.subarray(Ie,Ie+re),0),O=re,p=re,g=l[0]&255,g=(g<<f^l[1]&255)&y,ce=0;ce<=re-yt;ce++)g=(g<<f^l[ce+(yt-1)]&255)&y,d[ce&o]=c[g],c[g]=ce;return Fs},n.deflate=function(J,ie){let Y,re,ce,Ie,Ne;if(ie>rs||ie<0)return Bs;if(!J.next_out||!J.next_in&&J.avail_in!==0||t==qr&&ie!=rs)return J.msg=ao[so-Bs],Bs;if(J.avail_out===0)return J.msg=ao[so-Wn],Wn;if(e=J,Ie=i,i=ie,t==Wl&&(re=jl+(a-8<<4)<<8,ce=(z-1&255)>>1,ce>3&&(ce=3),re|=ce<<6,O!==0&&(re|=x0),re+=31-re%31,t=uo,Us(re)),n.pending!==0){if(e.flush_pending(),e.avail_out===0)return i=-1,Fs}else if(e.avail_in===0&&ie<=Ie&&ie!=rs)return e.msg=ao[so-Wn],Wn;if(t==qr&&e.avail_in!==0)return J.msg=ao[so-Wn],Wn;if(e.avail_in!==0||L!==0||ie!=Un&&t!=qr){switch(Ne=-1,Qs[z].func){case xc:Ne=nr(ie);break;case ro:Ne=Gi(ie);break;case an:Ne=rr(ie);break}if((Ne==Nr||Ne==lo)&&(t=qr),Ne==As||Ne==Nr)return e.avail_out===0&&(i=-1),Fs;if(Ne==oo){if(ie==vc)cs();else if(ks(0,0,!1),ie==g0)for(Y=0;Y<x;Y++)c[Y]=0;if(e.flush_pending(),e.avail_out===0)return i=-1,Fs}}return ie!=rs?Fs:bc}}function Ec(){const n=this;n.next_in_index=0,n.next_out_index=0,n.avail_in=0,n.total_in=0,n.avail_out=0,n.total_out=0}Ec.prototype={deflateInit(n,e){const t=this;return t.dstate=new S0,e||(e=Or),t.dstate.deflateInit(t,n,e)},deflate(n){const e=this;return e.dstate?e.dstate.deflate(e,n):Bs},deflateEnd(){const n=this;if(!n.dstate)return Bs;const e=n.dstate.deflateEnd();return n.dstate=null,e},deflateParams(n,e){const t=this;return t.dstate?t.dstate.deflateParams(t,n,e):Bs},deflateSetDictionary(n,e){const t=this;return t.dstate?t.dstate.deflateSetDictionary(t,n,e):Bs},read_buf(n,e,t){const s=this;let i=s.avail_in;return i>t&&(i=t),i===0?0:(s.avail_in-=i,n.set(s.next_in.subarray(s.next_in_index,s.next_in_index+i),e),s.next_in_index+=i,s.total_in+=i,i)},flush_pending(){const n=this;let e=n.dstate.pending;e>n.avail_out&&(e=n.avail_out),e!==0&&(n.next_out.set(n.dstate.pending_buf.subarray(n.dstate.pending_out,n.dstate.pending_out+e),n.next_out_index),n.next_out_index+=e,n.dstate.pending_out+=e,n.total_out+=e,n.avail_out-=e,n.dstate.pending-=e,n.dstate.pending===0&&(n.dstate.pending_out=0))}};function I0(n){const e=this,t=new Ec,s=P0(n&&n.chunkSize?n.chunkSize:64*1024),i=Un,r=new Uint8Array(s);let a=n?n.level:eo;typeof a>"u"&&(a=eo),t.deflateInit(a),t.next_out=r,e.append=function(o,l){let h,d,c=0,g=0,x=0;const b=[];if(o.length){t.next_in_index=0,t.next_in=o,t.avail_in=o.length;do{if(t.next_out_index=0,t.avail_out=s,h=t.deflate(i),h!=Fs)throw new Error("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==s?b.push(new Uint8Array(r)):b.push(r.subarray(0,t.next_out_index))),x+=t.next_out_index,l&&t.next_in_index>0&&t.next_in_index!=c&&(l(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||t.avail_out===0);return b.length>1?(d=new Uint8Array(x),b.forEach(function(y){d.set(y,g),g+=y.length})):d=b[0]?new Uint8Array(b[0]):new Uint8Array,d}},e.flush=function(){let o,l,h=0,d=0;const c=[];do{if(t.next_out_index=0,t.avail_out=s,o=t.deflate(rs),o!=bc&&o!=Fs)throw new Error("deflating: "+t.msg);s-t.avail_out>0&&c.push(r.slice(0,t.next_out_index)),d+=t.next_out_index}while(t.avail_in>0||t.avail_out===0);return t.deflateEnd(),l=new Uint8Array(d),c.forEach(function(g){l.set(g,h),h+=g.length}),l}}function P0(n){return n+5*(Math.floor(n/16383)+1)}const T0=15,Ge=0,gi=1,R0=2,as=-2,mt=-3,Sc=-4,mi=-5,ws=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Ic=1440,A0=0,L0=4,D0=9,k0=5,_0=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],O0=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],M0=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],N0=[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,112,112],q0=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],F0=[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],Li=15;function $l(){const n=this;let e,t,s,i,r,a;function o(h,d,c,g,x,b,y,f,p,w,V){let N,O,I,L,P,k,q,z,j,D,F,Q,H,Z,ee;D=0,P=c;do s[h[d+D]]++,D++,P--;while(P!==0);if(s[0]==c)return y[0]=-1,f[0]=0,Ge;for(z=f[0],k=1;k<=Li&&s[k]===0;k++);for(q=k,z<k&&(z=k),P=Li;P!==0&&s[P]===0;P--);for(I=P,z>P&&(z=P),f[0]=z,Z=1<<k;k<P;k++,Z<<=1)if((Z-=s[k])<0)return mt;if((Z-=s[P])<0)return mt;for(s[P]+=Z,a[1]=k=0,D=1,H=2;--P!==0;)a[H]=k+=s[D],H++,D++;P=0,D=0;do(k=h[d+D])!==0&&(V[a[k]++]=P),D++;while(++P<c);for(c=a[I],a[0]=P=0,D=0,L=-1,Q=-z,r[0]=0,F=0,ee=0;q<=I;q++)for(N=s[q];N--!==0;){for(;q>Q+z;){if(L++,Q+=z,ee=I-Q,ee=ee>z?z:ee,(O=1<<(k=q-Q))>N+1&&(O-=N+1,H=q,k<ee))for(;++k<ee&&!((O<<=1)<=s[++H]);)O-=s[H];if(ee=1<<k,w[0]+ee>Ic)return mt;r[L]=F=w[0],w[0]+=ee,L!==0?(a[L]=P,i[0]=k,i[1]=z,k=P>>>Q-z,i[2]=F-r[L-1]-k,p.set(i,(r[L-1]+k)*3)):y[0]=F}for(i[1]=q-Q,D>=c?i[0]=192:V[D]<g?(i[0]=V[D]<256?0:96,i[2]=V[D++]):(i[0]=b[V[D]-g]+16+64,i[2]=x[V[D++]-g]),O=1<<q-Q,k=P>>>Q;k<ee;k+=O)p.set(i,(F+k)*3);for(k=1<<q-1;P&k;k>>>=1)P^=k;for(P^=k,j=(1<<Q)-1;(P&j)!=a[L];)L--,Q-=z,j=(1<<Q)-1}return Z!==0&&I!=1?mi:Ge}function l(h){let d;for(e||(e=[],t=[],s=new Int32Array(Li+1),i=[],r=new Int32Array(Li),a=new Int32Array(Li+1)),t.length<h&&(t=[]),d=0;d<h;d++)t[d]=0;for(d=0;d<Li+1;d++)s[d]=0;for(d=0;d<3;d++)i[d]=0;r.set(s.subarray(0,Li),0),a.set(s.subarray(0,Li+1),0)}n.inflate_trees_bits=function(h,d,c,g,x){let b;return l(19),e[0]=0,b=o(h,0,19,19,null,null,c,d,g,e,t),b==mt?x.msg="oversubscribed dynamic bit lengths tree":(b==mi||d[0]===0)&&(x.msg="incomplete dynamic bit lengths tree",b=mt),b},n.inflate_trees_dynamic=function(h,d,c,g,x,b,y,f,p){let w;return l(288),e[0]=0,w=o(c,0,h,257,M0,N0,b,g,f,e,t),w!=Ge||g[0]===0?(w==mt?p.msg="oversubscribed literal/length tree":w!=Sc&&(p.msg="incomplete literal/length tree",w=mt),w):(l(288),w=o(c,h,d,0,q0,F0,y,x,f,e,t),w!=Ge||x[0]===0&&h>257?(w==mt?p.msg="oversubscribed distance tree":w==mi?(p.msg="incomplete distance tree",w=mt):w!=Sc&&(p.msg="empty distance tree with lengths",w=mt),w):Ge)}}$l.inflate_trees_fixed=function(n,e,t,s){return n[0]=D0,e[0]=k0,t[0]=_0,s[0]=O0,Ge};const co=0,Pc=1,Tc=2,Rc=3,Ac=4,Lc=5,Dc=6,Zl=7,kc=8,po=9;function B0(){const n=this;let e,t=0,s,i=0,r=0,a=0,o=0,l=0,h=0,d=0,c,g=0,x,b=0;function y(f,p,w,V,N,O,I,L){let P,k,q,z,j,D,F,Q,H,Z,ee,ve,se,fe,oe,pe;F=L.next_in_index,Q=L.avail_in,j=I.bitb,D=I.bitk,H=I.write,Z=H<I.read?I.read-H-1:I.end-H,ee=ws[f],ve=ws[p];do{for(;D<20;)Q--,j|=(L.read_byte(F++)&255)<<D,D+=8;if(P=j&ee,k=w,q=V,pe=(q+P)*3,(z=k[pe])===0){j>>=k[pe+1],D-=k[pe+1],I.win[H++]=k[pe+2],Z--;continue}do{if(j>>=k[pe+1],D-=k[pe+1],z&16){for(z&=15,se=k[pe+2]+(j&ws[z]),j>>=z,D-=z;D<15;)Q--,j|=(L.read_byte(F++)&255)<<D,D+=8;P=j&ve,k=N,q=O,pe=(q+P)*3,z=k[pe];do if(j>>=k[pe+1],D-=k[pe+1],z&16){for(z&=15;D<z;)Q--,j|=(L.read_byte(F++)&255)<<D,D+=8;if(fe=k[pe+2]+(j&ws[z]),j>>=z,D-=z,Z-=se,H>=fe)oe=H-fe,H-oe>0&&2>H-oe?(I.win[H++]=I.win[oe++],I.win[H++]=I.win[oe++],se-=2):(I.win.set(I.win.subarray(oe,oe+2),H),H+=2,oe+=2,se-=2);else{oe=H-fe;do oe+=I.end;while(oe<0);if(z=I.end-oe,se>z){if(se-=z,H-oe>0&&z>H-oe)do I.win[H++]=I.win[oe++];while(--z!==0);else I.win.set(I.win.subarray(oe,oe+z),H),H+=z,oe+=z,z=0;oe=0}}if(H-oe>0&&se>H-oe)do I.win[H++]=I.win[oe++];while(--se!==0);else I.win.set(I.win.subarray(oe,oe+se),H),H+=se,oe+=se,se=0;break}else if(!(z&64))P+=k[pe+2],P+=j&ws[z],pe=(q+P)*3,z=k[pe];else return L.msg="invalid distance code",se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,mt;while(!0);break}if(z&64)return z&32?(se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,gi):(L.msg="invalid literal/length code",se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,mt);if(P+=k[pe+2],P+=j&ws[z],pe=(q+P)*3,(z=k[pe])===0){j>>=k[pe+1],D-=k[pe+1],I.win[H++]=k[pe+2],Z--;break}}while(!0)}while(Z>=258&&Q>=10);return se=L.avail_in-Q,se=D>>3<se?D>>3:se,Q+=se,F-=se,D-=se<<3,I.bitb=j,I.bitk=D,L.avail_in=Q,L.total_in+=F-L.next_in_index,L.next_in_index=F,I.write=H,Ge}n.init=function(f,p,w,V,N,O){e=co,h=f,d=p,c=w,g=V,x=N,b=O,s=null},n.proc=function(f,p,w){let V,N,O,I=0,L=0,P=0,k,q,z,j;for(P=p.next_in_index,k=p.avail_in,I=f.bitb,L=f.bitk,q=f.write,z=q<f.read?f.read-q-1:f.end-q;;)switch(e){case co:if(z>=258&&k>=10&&(f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,w=y(h,d,c,g,x,b,f,p),P=p.next_in_index,k=p.avail_in,I=f.bitb,L=f.bitk,q=f.write,z=q<f.read?f.read-q-1:f.end-q,w!=Ge)){e=w==gi?Zl:po;break}r=h,s=c,i=g,e=Pc;case Pc:for(V=r;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}if(N=(i+(I&ws[V]))*3,I>>>=s[N+1],L-=s[N+1],O=s[N],O===0){a=s[N+2],e=Dc;break}if(O&16){o=O&15,t=s[N+2],e=Tc;break}if(!(O&64)){r=O,i=N/3+s[N+2];break}if(O&32){e=Zl;break}return e=po,p.msg="invalid literal/length code",w=mt,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);case Tc:for(V=o;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}t+=I&ws[V],I>>=V,L-=V,r=d,s=x,i=b,e=Rc;case Rc:for(V=r;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}if(N=(i+(I&ws[V]))*3,I>>=s[N+1],L-=s[N+1],O=s[N],O&16){o=O&15,l=s[N+2],e=Ac;break}if(!(O&64)){r=O,i=N/3+s[N+2];break}return e=po,p.msg="invalid distance code",w=mt,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);case Ac:for(V=o;L<V;){if(k!==0)w=Ge;else return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);k--,I|=(p.read_byte(P++)&255)<<L,L+=8}l+=I&ws[V],I>>=V,L-=V,e=Lc;case Lc:for(j=q-l;j<0;)j+=f.end;for(;t!==0;){if(z===0&&(q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0&&(f.write=q,w=f.inflate_flush(p,w),q=f.write,z=q<f.read?f.read-q-1:f.end-q,q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0)))return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);f.win[q++]=f.win[j++],z--,j==f.end&&(j=0),t--}e=co;break;case Dc:if(z===0&&(q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0&&(f.write=q,w=f.inflate_flush(p,w),q=f.write,z=q<f.read?f.read-q-1:f.end-q,q==f.end&&f.read!==0&&(q=0,z=q<f.read?f.read-q-1:f.end-q),z===0)))return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);w=Ge,f.win[q++]=a,z--,e=co;break;case Zl:if(L>7&&(L-=8,k++,P--),f.write=q,w=f.inflate_flush(p,w),q=f.write,z=q<f.read?f.read-q-1:f.end-q,f.read!=f.write)return f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);e=kc;case kc:return w=gi,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);case po:return w=mt,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w);default:return w=as,f.bitb=I,f.bitk=L,p.avail_in=k,p.total_in+=P-p.next_in_index,p.next_in_index=P,f.write=q,f.inflate_flush(p,w)}},n.free=function(){}}const _c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jn=0,Kl=1,Oc=2,Mc=3,Nc=4,qc=5,go=6,mo=7,Fc=8,on=9;function Q0(n,e){const t=this;let s=jn,i=0,r=0,a=0,o;const l=[0],h=[0],d=new B0;let c=0,g=new Int32Array(Ic*3);const x=0,b=new $l;t.bitk=0,t.bitb=0,t.win=new Uint8Array(e),t.end=e,t.read=0,t.write=0,t.reset=function(y,f){f&&(f[0]=x),s==go&&d.free(y),s=jn,t.bitk=0,t.bitb=0,t.read=t.write=0},t.reset(n,null),t.inflate_flush=function(y,f){let p,w,V;return w=y.next_out_index,V=t.read,p=(V<=t.write?t.write:t.end)-V,p>y.avail_out&&(p=y.avail_out),p!==0&&f==mi&&(f=Ge),y.avail_out-=p,y.total_out+=p,y.next_out.set(t.win.subarray(V,V+p),w),w+=p,V+=p,V==t.end&&(V=0,t.write==t.end&&(t.write=0),p=t.write-V,p>y.avail_out&&(p=y.avail_out),p!==0&&f==mi&&(f=Ge),y.avail_out-=p,y.total_out+=p,y.next_out.set(t.win.subarray(V,V+p),w),w+=p,V+=p),y.next_out_index=w,t.read=V,f},t.proc=function(y,f){let p,w,V,N,O,I,L,P;for(N=y.next_in_index,O=y.avail_in,w=t.bitb,V=t.bitk,I=t.write,L=I<t.read?t.read-I-1:t.end-I;;){let k,q,z,j,D,F,Q,H;switch(s){case jn:for(;V<3;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}switch(p=w&7,c=p&1,p>>>1){case 0:w>>>=3,V-=3,p=V&7,w>>>=p,V-=p,s=Kl;break;case 1:k=[],q=[],z=[[]],j=[[]],$l.inflate_trees_fixed(k,q,z,j),d.init(k[0],q[0],z[0],0,j[0],0),w>>>=3,V-=3,s=go;break;case 2:w>>>=3,V-=3,s=Mc;break;case 3:return w>>>=3,V-=3,s=on,y.msg="invalid block type",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f)}break;case Kl:for(;V<32;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if((~w>>>16&65535)!=(w&65535))return s=on,y.msg="invalid stored block lengths",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);i=w&65535,w=V=0,s=i!==0?Oc:c!==0?mo:jn;break;case Oc:if(O===0||L===0&&(I==t.end&&t.read!==0&&(I=0,L=I<t.read?t.read-I-1:t.end-I),L===0&&(t.write=I,f=t.inflate_flush(y,f),I=t.write,L=I<t.read?t.read-I-1:t.end-I,I==t.end&&t.read!==0&&(I=0,L=I<t.read?t.read-I-1:t.end-I),L===0)))return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);if(f=Ge,p=i,p>O&&(p=O),p>L&&(p=L),t.win.set(y.read_buf(N,p),I),N+=p,O-=p,I+=p,L-=p,(i-=p)!==0)break;s=c!==0?mo:jn;break;case Mc:for(;V<14;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if(r=p=w&16383,(p&31)>29||(p>>5&31)>29)return s=on,y.msg="too many length or distance symbols",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);if(p=258+(p&31)+(p>>5&31),!o||o.length<p)o=[];else for(P=0;P<p;P++)o[P]=0;w>>>=14,V-=14,a=0,s=Nc;case Nc:for(;a<4+(r>>>10);){for(;V<3;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}o[_c[a++]]=w&7,w>>>=3,V-=3}for(;a<19;)o[_c[a++]]=0;if(l[0]=7,p=b.inflate_trees_bits(o,l,h,g,y),p!=Ge)return f=p,f==mt&&(o=null,s=on),t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);a=0,s=qc;case qc:for(;p=r,!(a>=258+(p&31)+(p>>5&31));){let Z,ee;for(p=l[0];V<p;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if(p=g[(h[0]+(w&ws[p]))*3+1],ee=g[(h[0]+(w&ws[p]))*3+2],ee<16)w>>>=p,V-=p,o[a++]=ee;else{for(P=ee==18?7:ee-14,Z=ee==18?11:3;V<p+P;){if(O!==0)f=Ge;else return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);O--,w|=(y.read_byte(N++)&255)<<V,V+=8}if(w>>>=p,V-=p,Z+=w&ws[P],w>>>=P,V-=P,P=a,p=r,P+Z>258+(p&31)+(p>>5&31)||ee==16&&P<1)return o=null,s=on,y.msg="invalid bit length repeat",f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);ee=ee==16?o[P-1]:0;do o[P++]=ee;while(--Z!==0);a=P}}if(h[0]=-1,D=[],F=[],Q=[],H=[],D[0]=9,F[0]=6,p=r,p=b.inflate_trees_dynamic(257+(p&31),1+(p>>5&31),o,D,F,Q,H,g,y),p!=Ge)return p==mt&&(o=null,s=on),f=p,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);d.init(D[0],F[0],g,Q[0],g,H[0]),s=go;case go:if(t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,(f=d.proc(t,y,f))!=gi)return t.inflate_flush(y,f);if(f=Ge,d.free(y),N=y.next_in_index,O=y.avail_in,w=t.bitb,V=t.bitk,I=t.write,L=I<t.read?t.read-I-1:t.end-I,c===0){s=jn;break}s=mo;case mo:if(t.write=I,f=t.inflate_flush(y,f),I=t.write,L=I<t.read?t.read-I-1:t.end-I,t.read!=t.write)return t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);s=Fc;case Fc:return f=gi,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);case on:return f=mt,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f);default:return f=as,t.bitb=w,t.bitk=V,y.avail_in=O,y.total_in+=N-y.next_in_index,y.next_in_index=N,t.write=I,t.inflate_flush(y,f)}}},t.free=function(y){t.reset(y,null),t.win=null,g=null},t.set_dictionary=function(y,f,p){t.win.set(y.subarray(f,f+p),0),t.read=t.write=p},t.sync_point=function(){return s==Kl?1:0}}const H0=32,z0=8,U0=0,Bc=1,Qc=2,Hc=3,zc=4,Uc=5,Jl=6,Fr=7,Wc=12,Di=13,W0=[0,0,255,255];function j0(){const n=this;n.mode=0,n.method=0,n.was=[0],n.need=0,n.marker=0,n.wbits=0;function e(t){return!t||!t.istate?as:(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=Fr,t.istate.blocks.reset(t,null),Ge)}n.inflateEnd=function(t){return n.blocks&&n.blocks.free(t),n.blocks=null,Ge},n.inflateInit=function(t,s){return t.msg=null,n.blocks=null,s<8||s>15?(n.inflateEnd(t),as):(n.wbits=s,t.istate.blocks=new Q0(t,1<<s),e(t),Ge)},n.inflate=function(t,s){let i,r;if(!t||!t.istate||!t.next_in)return as;const a=t.istate;for(s=s==L0?mi:Ge,i=mi;;)switch(a.mode){case U0:if(t.avail_in===0)return i;if(i=s,t.avail_in--,t.total_in++,((a.method=t.read_byte(t.next_in_index++))&15)!=z0){a.mode=Di,t.msg="unknown compression method",a.marker=5;break}if((a.method>>4)+8>a.wbits){a.mode=Di,t.msg="invalid win size",a.marker=5;break}a.mode=Bc;case Bc:if(t.avail_in===0)return i;if(i=s,t.avail_in--,t.total_in++,r=t.read_byte(t.next_in_index++)&255,((a.method<<8)+r)%31!==0){a.mode=Di,t.msg="incorrect header check",a.marker=5;break}if(!(r&H0)){a.mode=Fr;break}a.mode=Qc;case Qc:if(t.avail_in===0)return i;i=s,t.avail_in--,t.total_in++,a.need=(t.read_byte(t.next_in_index++)&255)<<24&4278190080,a.mode=Hc;case Hc:if(t.avail_in===0)return i;i=s,t.avail_in--,t.total_in++,a.need+=(t.read_byte(t.next_in_index++)&255)<<16&16711680,a.mode=zc;case zc:if(t.avail_in===0)return i;i=s,t.avail_in--,t.total_in++,a.need+=(t.read_byte(t.next_in_index++)&255)<<8&65280,a.mode=Uc;case Uc:return t.avail_in===0?i:(i=s,t.avail_in--,t.total_in++,a.need+=t.read_byte(t.next_in_index++)&255,a.mode=Jl,R0);case Jl:return a.mode=Di,t.msg="need dictionary",a.marker=0,as;case Fr:if(i=a.blocks.proc(t,i),i==mt){a.mode=Di,a.marker=0;break}if(i==Ge&&(i=s),i!=gi)return i;i=s,a.blocks.reset(t,a.was),a.mode=Wc;case Wc:return t.avail_in=0,gi;case Di:return mt;default:return as}},n.inflateSetDictionary=function(t,s,i){let r=0,a=i;if(!t||!t.istate||t.istate.mode!=Jl)return as;const o=t.istate;return a>=1<<o.wbits&&(a=(1<<o.wbits)-1,r=i-a),o.blocks.set_dictionary(s,r,a),o.mode=Fr,Ge},n.inflateSync=function(t){let s,i,r,a,o;if(!t||!t.istate)return as;const l=t.istate;if(l.mode!=Di&&(l.mode=Di,l.marker=0),(s=t.avail_in)===0)return mi;for(i=t.next_in_index,r=l.marker;s!==0&&r<4;)t.read_byte(i)==W0[r]?r++:t.read_byte(i)!==0?r=0:r=4-r,i++,s--;return t.total_in+=i-t.next_in_index,t.next_in_index=i,t.avail_in=s,l.marker=r,r!=4?mt:(a=t.total_in,o=t.total_out,e(t),t.total_in=a,t.total_out=o,l.mode=Fr,Ge)},n.inflateSyncPoint=function(t){return!t||!t.istate||!t.istate.blocks?as:t.istate.blocks.sync_point()}}function jc(){}jc.prototype={inflateInit(n){const e=this;return e.istate=new j0,n||(n=T0),e.istate.inflateInit(e,n)},inflate(n){const e=this;return e.istate?e.istate.inflate(e,n):as},inflateEnd(){const n=this;if(!n.istate)return as;const e=n.istate.inflateEnd(n);return n.istate=null,e},inflateSync(){const n=this;return n.istate?n.istate.inflateSync(n):as},inflateSetDictionary(n,e){const t=this;return t.istate?t.istate.inflateSetDictionary(t,n,e):as},read_byte(n){return this.next_in[n]},read_buf(n,e){return this.next_in.subarray(n,n+e)}};function G0(n){const e=this,t=new jc,s=n&&n.chunkSize?Math.floor(n.chunkSize*2):128*1024,i=A0,r=new Uint8Array(s);let a=!1;t.inflateInit(),t.next_out=r,e.append=function(o,l){const h=[];let d,c,g=0,x=0,b=0;if(o.length!==0){t.next_in_index=0,t.next_in=o,t.avail_in=o.length;do{if(t.next_out_index=0,t.avail_out=s,t.avail_in===0&&!a&&(t.next_in_index=0,a=!0),d=t.inflate(i),a&&d===mi){if(t.avail_in!==0)throw new Error("inflating: bad input")}else if(d!==Ge&&d!==gi)throw new Error("inflating: "+t.msg);if((a||d===gi)&&t.avail_in===o.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===s?h.push(new Uint8Array(r)):h.push(r.subarray(0,t.next_out_index))),b+=t.next_out_index,l&&t.next_in_index>0&&t.next_in_index!=g&&(l(t.next_in_index),g=t.next_in_index)}while(t.avail_in>0||t.avail_out===0);return h.length>1?(c=new Uint8Array(b),h.forEach(function(y){c.set(y,x),x+=y.length})):c=h[0]?new Uint8Array(h[0]):new Uint8Array,c}},e.flush=function(){t.inflateEnd()}}const os=4294967295,ls=65535,Gc=8,$0=0,Z0=99,K0=67324752,$c=134695760,J0=$c,Y0=33639248,X0=101010256,eb=101075792,tb=117853008,Yl=22,Zc=20,Kc=56,sb=Yl+Zc+Kc,ib=1,nb=39169,rb=10,ab=1,Jc=21589,ob=6534,lb=1,ub=8,hb=2048,db=16,cb=20,Yc=45,Xc=51,Xl="/",ep=new Date(2107,11,31),tp=new Date(1980,0,1),ft=void 0,ki="undefined",Br="function";class sp{constructor(e){return class extends TransformStream{constructor(t,s){const i=new e(s);super({transform(r,a){a.enqueue(i.append(r))},flush(r){const a=i.flush();a&&r.enqueue(a)}})}}}}const pb=64;let ip=2;try{typeof navigator!=ki&&navigator.hardwareConcurrency&&(ip=navigator.hardwareConcurrency)}catch{}const gb={chunkSize:512*1024,maxWorkers:ip,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:ft,CompressionStreamNative:typeof CompressionStream!=ki&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=ki&&DecompressionStream},_i=Object.assign({},gb);function mb(){return _i}function fb(n){return Math.max(n.chunkSize,pb)}function eu(n){const{baseURL:e,chunkSize:t,maxWorkers:s,terminateWorkerTimeout:i,useCompressionStream:r,useWebWorkers:a,Deflate:o,Inflate:l,CompressionStream:h,DecompressionStream:d,workerScripts:c}=n;if(Oi("baseURL",e),Oi("chunkSize",t),Oi("maxWorkers",s),Oi("terminateWorkerTimeout",i),Oi("useCompressionStream",r),Oi("useWebWorkers",a),o&&(_i.CompressionStream=new sp(o)),l&&(_i.DecompressionStream=new sp(l)),Oi("CompressionStream",h),Oi("DecompressionStream",d),c!==ft){const{deflate:g,inflate:x}=c;if((g||x)&&(_i.workerScripts||(_i.workerScripts={})),g){if(!Array.isArray(g))throw new Error("workerScripts.deflate must be an array");_i.workerScripts.deflate=g}if(x){if(!Array.isArray(x))throw new Error("workerScripts.inflate must be an array");_i.workerScripts.inflate=x}}}function Oi(n,e){e!==ft&&(_i[n]=e)}const tu={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const n={};for(const e of Object.keys(tu))for(const t of Object.keys(tu[e])){const s=tu[e][t];if(typeof s=="string")n[s]=e+"/"+t;else for(let i=0;i<s.length;i++)n[s[i]]=e+"/"+t}return n})();const np=[];for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)e&1?e=e>>>1^3988292384:e=e>>>1;np[n]=e}class su{constructor(e){this.crc=e||-1}append(e){let t=this.crc|0;for(let s=0,i=e.length|0;s<i;s++)t=t>>>8^np[(t^e[s])&255];this.crc=t}get(){return~this.crc}}class rp extends TransformStream{constructor(){let e;const t=new su;super({transform(s,i){t.append(s),i.enqueue(s)},flush(){const s=new Uint8Array(4);new DataView(s.buffer).setUint32(0,t.get()),e.value=s}}),e=this}}function fo(n){if(typeof TextEncoder==ki){n=unescape(encodeURIComponent(n));const e=new Uint8Array(n.length);for(let t=0;t<e.length;t++)e[t]=n.charCodeAt(t);return e}else return new TextEncoder().encode(n)}const Xt={concat(n,e){if(n.length===0||e.length===0)return n.concat(e);const t=n[n.length-1],s=Xt.getPartial(t);return s===32?n.concat(e):Xt._shiftRight(e,s,t|0,n.slice(0,n.length-1))},bitLength(n){const e=n.length;if(e===0)return 0;const t=n[e-1];return(e-1)*32+Xt.getPartial(t)},clamp(n,e){if(n.length*32<e)return n;n=n.slice(0,Math.ceil(e/32));const t=n.length;return e=e&31,t>0&&e&&(n[t-1]=Xt.partial(e,n[t-1]&2147483648>>e-1,1)),n},partial(n,e,t){return n===32?e:(t?e|0:e<<32-n)+n*1099511627776},getPartial(n){return Math.round(n/1099511627776)||32},_shiftRight(n,e,t,s){for(s===void 0&&(s=[]);e>=32;e-=32)s.push(t),t=0;if(e===0)return s.concat(n);for(let a=0;a<n.length;a++)s.push(t|n[a]>>>e),t=n[a]<<32-e;const i=n.length?n[n.length-1]:0,r=Xt.getPartial(i);return s.push(Xt.partial(e+r&31,e+r>32?t:s.pop(),1)),s}},yo={bytes:{fromBits(n){const t=Xt.bitLength(n)/8,s=new Uint8Array(t);let i;for(let r=0;r<t;r++)r&3||(i=n[r/4]),s[r]=i>>>24,i<<=8;return s},toBits(n){const e=[];let t,s=0;for(t=0;t<n.length;t++)s=s<<8|n[t],(t&3)===3&&(e.push(s),s=0);return t&3&&e.push(Xt.partial(8*(t&3),s)),e}}},ap={};ap.sha1=class{constructor(n){const e=this;e.blockSize=512,e._init=[1732584193,4023233417,2562383102,271733878,3285377520],e._key=[1518500249,1859775393,2400959708,3395469782],n?(e._h=n._h.slice(0),e._buffer=n._buffer.slice(0),e._length=n._length):e.reset()}reset(){const n=this;return n._h=n._init.slice(0),n._buffer=[],n._length=0,n}update(n){const e=this;typeof n=="string"&&(n=yo.utf8String.toBits(n));const t=e._buffer=Xt.concat(e._buffer,n),s=e._length,i=e._length=s+Xt.bitLength(n);if(i>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const r=new Uint32Array(t);let a=0;for(let o=e.blockSize+s-(e.blockSize+s&e.blockSize-1);o<=i;o+=e.blockSize)e._block(r.subarray(16*a,16*(a+1))),a+=1;return t.splice(0,16*a),e}finalize(){const n=this;let e=n._buffer;const t=n._h;e=Xt.concat(e,[Xt.partial(1,1)]);for(let s=e.length+2;s&15;s++)e.push(0);for(e.push(Math.floor(n._length/4294967296)),e.push(n._length|0);e.length;)n._block(e.splice(0,16));return n.reset(),t}_f(n,e,t,s){if(n<=19)return e&t|~e&s;if(n<=39)return e^t^s;if(n<=59)return e&t|e&s|t&s;if(n<=79)return e^t^s}_S(n,e){return e<<n|e>>>32-n}_block(n){const e=this,t=e._h,s=Array(80);for(let h=0;h<16;h++)s[h]=n[h];let i=t[0],r=t[1],a=t[2],o=t[3],l=t[4];for(let h=0;h<=79;h++){h>=16&&(s[h]=e._S(1,s[h-3]^s[h-8]^s[h-14]^s[h-16]));const d=e._S(5,i)+e._f(h,r,a,o)+l+s[h]+e._key[Math.floor(h/20)]|0;l=o,o=a,a=e._S(30,r),r=i,i=d}t[0]=t[0]+i|0,t[1]=t[1]+r|0,t[2]=t[2]+a|0,t[3]=t[3]+o|0,t[4]=t[4]+l|0}};const op={};op.aes=class{constructor(n){const e=this;e._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],e._tables[0][0][0]||e._precompute();const t=e._tables[0][4],s=e._tables[1],i=n.length;let r,a,o,l=1;if(i!==4&&i!==6&&i!==8)throw new Error("invalid aes key size");for(e._key=[a=n.slice(0),o=[]],r=i;r<4*i+28;r++){let h=a[r-1];(r%i===0||i===8&&r%i===4)&&(h=t[h>>>24]<<24^t[h>>16&255]<<16^t[h>>8&255]<<8^t[h&255],r%i===0&&(h=h<<8^h>>>24^l<<24,l=l<<1^(l>>7)*283)),a[r]=a[r-i]^h}for(let h=0;r;h++,r--){const d=a[h&3?r:r-4];r<=4||h<4?o[h]=d:o[h]=s[0][t[d>>>24]]^s[1][t[d>>16&255]]^s[2][t[d>>8&255]]^s[3][t[d&255]]}}encrypt(n){return this._crypt(n,0)}decrypt(n){return this._crypt(n,1)}_precompute(){const n=this._tables[0],e=this._tables[1],t=n[4],s=e[4],i=[],r=[];let a,o,l,h;for(let d=0;d<256;d++)r[(i[d]=d<<1^(d>>7)*283)^d]=d;for(let d=a=0;!t[d];d^=o||1,a=r[a]||1){let c=a^a<<1^a<<2^a<<3^a<<4;c=c>>8^c&255^99,t[d]=c,s[c]=d,h=i[l=i[o=i[d]]];let g=h*16843009^l*65537^o*257^d*16843008,x=i[c]*257^c*16843008;for(let b=0;b<4;b++)n[b][d]=x=x<<24^x>>>8,e[b][c]=g=g<<24^g>>>8}for(let d=0;d<5;d++)n[d]=n[d].slice(0),e[d]=e[d].slice(0)}_crypt(n,e){if(n.length!==4)throw new Error("invalid aes block size");const t=this._key[e],s=t.length/4-2,i=[0,0,0,0],r=this._tables[e],a=r[0],o=r[1],l=r[2],h=r[3],d=r[4];let c=n[0]^t[0],g=n[e?3:1]^t[1],x=n[2]^t[2],b=n[e?1:3]^t[3],y=4,f,p,w;for(let V=0;V<s;V++)f=a[c>>>24]^o[g>>16&255]^l[x>>8&255]^h[b&255]^t[y],p=a[g>>>24]^o[x>>16&255]^l[b>>8&255]^h[c&255]^t[y+1],w=a[x>>>24]^o[b>>16&255]^l[c>>8&255]^h[g&255]^t[y+2],b=a[b>>>24]^o[c>>16&255]^l[g>>8&255]^h[x&255]^t[y+3],y+=4,c=f,g=p,x=w;for(let V=0;V<4;V++)i[e?3&-V:V]=d[c>>>24]<<24^d[g>>16&255]<<16^d[x>>8&255]<<8^d[b&255]^t[y++],f=c,c=g,g=x,x=b,b=f;return i}};const yb={getRandomValues(n){const e=new Uint32Array(n.buffer),t=s=>{let i=987654321;const r=4294967295;return function(){return i=36969*(i&65535)+(i>>16)&r,s=18e3*(s&65535)+(s>>16)&r,(((i<<16)+s&r)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let s=0,i;s<n.length;s+=4){const r=t((i||Math.random())*4294967296);i=r()*987654071,e[s/4]=r()*4294967296|0}return n}},lp={};lp.ctrGladman=class{constructor(n,e){this._prf=n,this._initIv=e,this._iv=e}reset(){this._iv=this._initIv}update(n){return this.calculate(this._prf,n,this._iv)}incWord(n){if((n>>24&255)===255){let e=n>>16&255,t=n>>8&255,s=n&255;e===255?(e=0,t===255?(t=0,s===255?s=0:++s):++t):++e,n=0,n+=e<<16,n+=t<<8,n+=s}else n+=1<<24;return n}incCounter(n){(n[0]=this.incWord(n[0]))===0&&(n[1]=this.incWord(n[1]))}calculate(n,e,t){let s;if(!(s=e.length))return[];const i=Xt.bitLength(e);for(let r=0;r<s;r+=4){this.incCounter(t);const a=n.encrypt(t);e[r]^=a[0],e[r+1]^=a[1],e[r+2]^=a[2],e[r+3]^=a[3]}return Xt.clamp(e,i)}};const ln={importKey(n){return new ln.hmacSha1(yo.bytes.toBits(n))},pbkdf2(n,e,t,s){if(t=t||1e4,s<0||t<0)throw new Error("invalid params to pbkdf2");const i=(s>>5)+1<<2;let r,a,o,l,h;const d=new ArrayBuffer(i),c=new DataView(d);let g=0;const x=Xt;for(e=yo.bytes.toBits(e),h=1;g<(i||1);h++){for(r=a=n.encrypt(x.concat(e,[h])),o=1;o<t;o++)for(a=n.encrypt(a),l=0;l<a.length;l++)r[l]^=a[l];for(o=0;g<(i||1)&&o<r.length;o++)c.setInt32(g,r[o]),g+=4}return d.slice(0,s/8)}};ln.hmacSha1=class{constructor(n){const e=this,t=e._hash=ap.sha1,s=[[],[]];e._baseHash=[new t,new t];const i=e._baseHash[0].blockSize/32;n.length>i&&(n=new t().update(n).finalize());for(let r=0;r<i;r++)s[0][r]=n[r]^909522486,s[1][r]=n[r]^1549556828;e._baseHash[0].update(s[0]),e._baseHash[1].update(s[1]),e._resultHash=new t(e._baseHash[0])}reset(){const n=this;n._resultHash=new n._hash(n._baseHash[0]),n._updated=!1}update(n){const e=this;e._updated=!0,e._resultHash.update(n)}digest(){const n=this,e=n._resultHash.finalize(),t=new n._hash(n._baseHash[1]).update(e).finalize();return n.reset(),t}encrypt(n){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(n),this.digest(n)}};const Cb=typeof crypto!=ki&&typeof crypto.getRandomValues==Br,up="Invalid password",hp="Invalid signature",dp="zipjs-abort-check-password";function cp(n){return Cb?crypto.getRandomValues(n):yb.getRandomValues(n)}const Gn=16,vb="raw",pp={name:"PBKDF2"},bb={name:"HMAC"},wb="SHA-1",xb=Object.assign({hash:bb},pp),iu=Object.assign({iterations:1e3,hash:{name:wb}},pp),Vb=["deriveBits"],Qr=[8,12,16],Hr=[16,24,32],Mi=10,Eb=[0,0,0,0],Co=typeof crypto!=ki,zr=Co&&crypto.subtle,gp=Co&&typeof zr!=ki,Xs=yo.bytes,Sb=op.aes,Ib=lp.ctrGladman,Pb=ln.hmacSha1;let mp=Co&&gp&&typeof zr.importKey==Br,fp=Co&&gp&&typeof zr.deriveBits==Br;class Tb extends TransformStream{constructor({password:e,rawPassword:t,signed:s,encryptionStrength:i,checkPasswordOnly:r}){super({start(){Object.assign(this,{ready:new Promise(a=>this.resolveReady=a),password:vp(e,t),signed:s,strength:i-1,pending:new Uint8Array})},async transform(a,o){const l=this,{password:h,strength:d,resolveReady:c,ready:g}=l;h?(await Ab(l,d,h,Ls(a,0,Qr[d]+2)),a=Ls(a,Qr[d]+2),r?o.error(new Error(dp)):c()):await g;const x=new Uint8Array(a.length-Mi-(a.length-Mi)%Gn);o.enqueue(yp(l,a,x,0,Mi,!0))},async flush(a){const{signed:o,ctr:l,hmac:h,pending:d,ready:c}=this;if(h&&l){await c;const g=Ls(d,0,d.length-Mi),x=Ls(d,d.length-Mi);let b=new Uint8Array;if(g.length){const y=Wr(Xs,g);h.update(y);const f=l.update(y);b=Ur(Xs,f)}if(o){const y=Ls(Ur(Xs,h.digest()),0,Mi);for(let f=0;f<Mi;f++)if(y[f]!=x[f])throw new Error(hp)}a.enqueue(b)}}})}}class Rb extends TransformStream{constructor({password:e,rawPassword:t,encryptionStrength:s}){let i;super({start(){Object.assign(this,{ready:new Promise(r=>this.resolveReady=r),password:vp(e,t),strength:s-1,pending:new Uint8Array})},async transform(r,a){const o=this,{password:l,strength:h,resolveReady:d,ready:c}=o;let g=new Uint8Array;l?(g=await Lb(o,h,l),d()):await c;const x=new Uint8Array(g.length+r.length-r.length%Gn);x.set(g,0),a.enqueue(yp(o,r,x,g.length,0))},async flush(r){const{ctr:a,hmac:o,pending:l,ready:h}=this;if(o&&a){await h;let d=new Uint8Array;if(l.length){const c=a.update(Wr(Xs,l));o.update(c),d=Ur(Xs,c)}i.signature=Ur(Xs,o.digest()).slice(0,Mi),r.enqueue(nu(d,i.signature))}}}),i=this}}function yp(n,e,t,s,i,r){const{ctr:a,hmac:o,pending:l}=n,h=e.length-i;l.length&&(e=nu(l,e),t=_b(t,h-h%Gn));let d;for(d=0;d<=h-Gn;d+=Gn){const c=Wr(Xs,Ls(e,d,d+Gn));r&&o.update(c);const g=a.update(c);r||o.update(g),t.set(Ur(Xs,g),d+s)}return n.pending=Ls(e,d),t}async function Ab(n,e,t,s){const i=await Cp(n,e,t,Ls(s,0,Qr[e])),r=Ls(s,Qr[e]);if(i[0]!=r[0]||i[1]!=r[1])throw new Error(up)}async function Lb(n,e,t){const s=cp(new Uint8Array(Qr[e])),i=await Cp(n,e,t,s);return nu(s,i)}async function Cp(n,e,t,s){n.password=null;const i=await Db(vb,t,xb,!1,Vb),r=await kb(Object.assign({salt:s},iu),i,8*(Hr[e]*2+2)),a=new Uint8Array(r),o=Wr(Xs,Ls(a,0,Hr[e])),l=Wr(Xs,Ls(a,Hr[e],Hr[e]*2)),h=Ls(a,Hr[e]*2);return Object.assign(n,{keys:{key:o,authentication:l,passwordVerification:h},ctr:new Ib(new Sb(o),Array.from(Eb)),hmac:new Pb(l)}),h}async function Db(n,e,t,s,i){if(mp)try{return await zr.importKey(n,e,t,s,i)}catch{return mp=!1,ln.importKey(e)}else return ln.importKey(e)}async function kb(n,e,t){if(fp)try{return await zr.deriveBits(n,e,t)}catch{return fp=!1,ln.pbkdf2(e,n.salt,iu.iterations,t)}else return ln.pbkdf2(e,n.salt,iu.iterations,t)}function vp(n,e){return e===ft?fo(n):e}function nu(n,e){let t=n;return n.length+e.length&&(t=new Uint8Array(n.length+e.length),t.set(n,0),t.set(e,n.length)),t}function _b(n,e){if(e&&e>n.length){const t=n;n=new Uint8Array(e),n.set(t,0)}return n}function Ls(n,e,t){return n.subarray(e,t)}function Ur(n,e){return n.fromBits(e)}function Wr(n,e){return n.toBits(e)}const $n=12;class Ob extends TransformStream{constructor({password:e,passwordVerification:t,checkPasswordOnly:s}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),xp(this,e)},transform(i,r){const a=this;if(a.password){const o=bp(a,i.subarray(0,$n));if(a.password=null,o[$n-1]!=a.passwordVerification)throw new Error(up);i=i.subarray($n)}s?r.error(new Error(dp)):r.enqueue(bp(a,i))}})}}class Mb extends TransformStream{constructor({password:e,passwordVerification:t}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),xp(this,e)},transform(s,i){const r=this;let a,o;if(r.password){r.password=null;const l=cp(new Uint8Array($n));l[$n-1]=r.passwordVerification,a=new Uint8Array(s.length+l.length),a.set(wp(r,l),0),o=$n}else a=new Uint8Array(s.length),o=0;a.set(wp(r,s),o),i.enqueue(a)}})}}function bp(n,e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=Vp(n)^e[s],ru(n,t[s]);return t}function wp(n,e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=Vp(n)^e[s],ru(n,e[s]);return t}function xp(n,e){const t=[305419896,591751049,878082192];Object.assign(n,{keys:t,crcKey0:new su(t[0]),crcKey2:new su(t[2])});for(let s=0;s<e.length;s++)ru(n,e.charCodeAt(s))}function ru(n,e){let[t,s,i]=n.keys;n.crcKey0.append([e]),t=~n.crcKey0.get(),s=Sp(Math.imul(Sp(s+Ep(t)),134775813)+1),n.crcKey2.append([s>>>24]),i=~n.crcKey2.get(),n.keys=[t,s,i]}function Vp(n){const e=n.keys[2]|2;return Ep(Math.imul(e,e^1)>>>8)}function Ep(n){return n&255}function Sp(n){return n&4294967295}const Ip="deflate-raw";class Nb extends TransformStream{constructor(e,{chunkSize:t,CompressionStream:s,CompressionStreamNative:i}){super({});const{compressed:r,encrypted:a,useCompressionStream:o,zipCrypto:l,signed:h,level:d}=e,c=this;let g,x,b=Pp(super.readable);(!a||l)&&h&&(g=new rp,b=ei(b,g)),r&&(b=Rp(b,o,{level:d,chunkSize:t},i,s)),a&&(l?b=ei(b,new Mb(e)):(x=new Rb(e),b=ei(b,x))),Tp(c,b,()=>{let y;a&&!l&&(y=x.signature),(!a||l)&&h&&(y=new DataView(g.value.buffer).getUint32(0)),c.signature=y})}}class qb extends TransformStream{constructor(e,{chunkSize:t,DecompressionStream:s,DecompressionStreamNative:i}){super({});const{zipCrypto:r,encrypted:a,signed:o,signature:l,compressed:h,useCompressionStream:d}=e;let c,g,x=Pp(super.readable);a&&(r?x=ei(x,new Ob(e)):(g=new Tb(e),x=ei(x,g))),h&&(x=Rp(x,d,{chunkSize:t},i,s)),(!a||r)&&o&&(c=new rp,x=ei(x,c)),Tp(this,x,()=>{if((!a||r)&&o){const b=new DataView(c.value.buffer);if(l!=b.getUint32(0,!1))throw new Error(hp)}})}}function Pp(n){return ei(n,new TransformStream({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function Tp(n,e,t){e=ei(e,new TransformStream({flush:t})),Object.defineProperty(n,"readable",{get(){return e}})}function Rp(n,e,t,s,i){try{const r=e&&s?s:i;n=ei(n,new r(Ip,t))}catch{if(e)try{n=ei(n,new i(Ip,t))}catch{return n}else return n}return n}function ei(n,e){return n.pipeThrough(e)}const Fb="message",Bb="start",Qb="pull",Ap="data",Hb="ack",Lp="close",Dp="deflate",zb="inflate";class Ub extends TransformStream{constructor(e,t){super({});const s=this,{codecType:i}=e;let r;i.startsWith(Dp)?r=Nb:i.startsWith(zb)&&(r=qb);let a=0,o=0;const l=new r(e,t),h=super.readable,d=new TransformStream({transform(g,x){g&&g.length&&(o+=g.length,x.enqueue(g))},flush(){Object.assign(s,{inputSize:o})}}),c=new TransformStream({transform(g,x){g&&g.length&&(a+=g.length,x.enqueue(g))},flush(){const{signature:g}=l;Object.assign(s,{signature:g,outputSize:a,inputSize:o})}});Object.defineProperty(s,"readable",{get(){return h.pipeThrough(d).pipeThrough(l).pipeThrough(c)}})}}class Wb extends TransformStream{constructor(e){let t;super({transform:s,flush(i){t&&t.length&&i.enqueue(t)}});function s(i,r){if(t){const a=new Uint8Array(t.length+i.length);a.set(t),a.set(i,t.length),i=a,t=null}i.length>e?(r.enqueue(i.slice(0,e)),s(i.slice(e),r)):t=i}}}let kp=typeof Worker!=ki;class au{constructor(e,{readable:t,writable:s},{options:i,config:r,streamOptions:a,useWebWorkers:o,transferStreams:l,scripts:h},d){const{signal:c}=a;return Object.assign(e,{busy:!0,readable:t.pipeThrough(new Wb(r.chunkSize)).pipeThrough(new jb(t,a),{signal:c}),writable:s,options:Object.assign({},i),scripts:h,transferStreams:l,terminate(){return new Promise(g=>{const{worker:x,busy:b}=e;x?(b?e.resolveTerminated=g:(x.terminate(),g()),e.interface=null):g()})},onTaskFinished(){const{resolveTerminated:g}=e;g&&(e.resolveTerminated=null,e.terminated=!0,e.worker.terminate(),g()),e.busy=!1,d(e)}}),(o&&kp?Gb:_p)(e,r)}}class jb extends TransformStream{constructor(e,{onstart:t,onprogress:s,size:i,onend:r}){let a=0;super({async start(){t&&await ou(t,i)},async transform(o,l){a+=o.length,s&&await ou(s,a,i),l.enqueue(o)},async flush(){e.size=a,r&&await ou(r,a)}})}}async function ou(n,...e){try{await n(...e)}catch{}}function _p(n,e){return{run:()=>$b(n,e)}}function Gb(n,e){const{baseURL:t,chunkSize:s}=e;if(!n.interface){let i;try{i=Jb(n.scripts[0],t,n)}catch{return kp=!1,_p(n,e)}Object.assign(n,{worker:i,interface:{run:()=>Zb(n,{chunkSize:s})}})}return n.interface}async function $b({options:n,readable:e,writable:t,onTaskFinished:s},i){try{const r=new Ub(n,i);await e.pipeThrough(r).pipeTo(t,{preventClose:!0,preventAbort:!0});const{signature:a,inputSize:o,outputSize:l}=r;return{signature:a,inputSize:o,outputSize:l}}finally{s()}}async function Zb(n,e){let t,s;const i=new Promise((g,x)=>{t=g,s=x});Object.assign(n,{reader:null,writer:null,resolveResult:t,rejectResult:s,result:i});const{readable:r,options:a,scripts:o}=n,{writable:l,closed:h}=Kb(n.writable),d=vo({type:Bb,scripts:o.slice(1),options:a,config:e,readable:r,writable:l},n);d||Object.assign(n,{reader:r.getReader(),writer:l.getWriter()});const c=await i;return d||await l.getWriter().close(),await h,c}function Kb(n){let e;const t=new Promise(i=>e=i);return{writable:new WritableStream({async write(i){const r=n.getWriter();await r.ready,await r.write(i),r.releaseLock()},close(){e()},abort(i){return n.getWriter().abort(i)}}),closed:t}}let Op=!0,Mp=!0;function Jb(n,e,t){const s={type:"module"};let i,r;typeof n==Br&&(n=n());try{i=new URL(n,e)}catch{i=n}if(Op)try{r=new Worker(i)}catch{Op=!1,r=new Worker(i,s)}else r=new Worker(i,s);return r.addEventListener(Fb,a=>Yb(a,t)),r}function vo(n,{worker:e,writer:t,onTaskFinished:s,transferStreams:i}){try{let{value:r,readable:a,writable:o}=n;const l=[];if(r&&(r.byteLength<r.buffer.byteLength?n.value=r.buffer.slice(0,r.byteLength):n.value=r.buffer,l.push(n.value)),i&&Mp?(a&&l.push(a),o&&l.push(o)):n.readable=n.writable=null,l.length)try{return e.postMessage(n,l),!0}catch{Mp=!1,n.readable=n.writable=null,e.postMessage(n)}else e.postMessage(n)}catch(r){throw t&&t.releaseLock(),s(),r}}async function Yb({data:n},e){const{type:t,value:s,messageId:i,result:r,error:a}=n,{reader:o,writer:l,resolveResult:h,rejectResult:d,onTaskFinished:c}=e;try{if(a){const{message:x,stack:b,code:y,name:f}=a,p=new Error(x);Object.assign(p,{stack:b,code:y,name:f}),g(p)}else{if(t==Qb){const{value:x,done:b}=await o.read();vo({type:Ap,value:x,done:b,messageId:i},e)}t==Ap&&(await l.ready,await l.write(new Uint8Array(s)),vo({type:Hb,messageId:i},e)),t==Lp&&g(null,r)}}catch(x){vo({type:Lp,messageId:i},e),g(x)}function g(x,b){x?d(x):h(b),l&&l.releaseLock(),c()}}let un=[];const lu=[];let Np=0;async function Xb(n,e){const{options:t,config:s}=e,{transferStreams:i,useWebWorkers:r,useCompressionStream:a,codecType:o,compressed:l,signed:h,encrypted:d}=t,{workerScripts:c,maxWorkers:g}=s;e.transferStreams=i||i===ft;const x=!l&&!h&&!d&&!e.transferStreams;return e.useWebWorkers=!x&&(r||r===ft&&s.useWebWorkers),e.scripts=e.useWebWorkers&&c?c[o]:[],t.useCompressionStream=a||a===ft&&s.useCompressionStream,(await b()).run();async function b(){const f=un.find(p=>!p.busy);if(f)return qp(f),new au(f,n,e,y);if(un.length<g){const p={indexWorker:Np};return Np++,un.push(p),new au(p,n,e,y)}else return new Promise(p=>lu.push({resolve:p,stream:n,workerOptions:e}))}function y(f){if(lu.length){const[{resolve:p,stream:w,workerOptions:V}]=lu.splice(0,1);p(new au(f,w,V,y))}else f.worker?(qp(f),ew(f,e)):un=un.filter(p=>p!=f)}}function ew(n,e){const{config:t}=e,{terminateWorkerTimeout:s}=t;Number.isFinite(s)&&s>=0&&(n.terminated?n.terminated=!1:n.terminateTimeout=setTimeout(async()=>{un=un.filter(i=>i!=n);try{await n.terminate()}catch{}},s))}function qp(n){const{terminateTimeout:e}=n;e&&(clearTimeout(e),n.terminateTimeout=null)}function tw(n,e={}){const t=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.v=[1732584193,4023233417,2562383102,271733878,3285377520],t.S=[1518500249,1859775393,2400959708,3395469782],e?(t.C=e.C.slice(0),t.A=e.A.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.C=e.v.slice(0),e.A=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=I.I.k(e));const n=t.A=_.concat(t.A,e),r=t._,i=t._=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<<e|t>>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},B:class{constructor(e){const t=this,n=t.U=P,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.m(t)}function ae(e,t){return e.k(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,te:new x(r[0]),ne:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.te.append([t]),n=~e.te.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.ne.append([s>>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=573,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;573>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function Le(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}He.ke=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.ze=e=>256>e?je[e]:je[256+(e>>>7)],He.Ce=[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],He.xe=[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],He.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le.Ie=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}Le.Ee=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Me=new Le(Le.Ie,He.Ce,257,286,15),Le.Ue=new Le(Le.Ee,He.xe,0,30,15),Le.Ke=new Le(null,He.Ae,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ke[n]+256+1)]++,M[2*He.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.xe[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Oe[c],s=e.Te[c],c++,0===r?Y(s,t):(i=He.ke[s],Y(i+256+1,t),o=He.Ce[i],0!==o&&(s-=He.ve[i],X(s,o)),r--,i=He.ze(r),Y(i,n),o=He.xe[i],0!==o&&(r-=He.Se[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*He._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le.Ie,Le.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i<e.fe&&$e(t,r[i+1],r[i],e.ue)&&i++,!$e(t,s,r[i],e.ue));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.Le=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.qe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ne=new i(4*T),s=4*T,e.Oe=new o(T),e.Te=new i(T),D=S,V=G,(t=>(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Xe,c=0,K.se=E,K.oe=Le.Me,N.se=M,N.oe=Le.Ue,O.se=U,O.oe=Le.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Xe?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Be!=Je[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ze=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.et||!r.tt&&0!==r.je||n==Ye&&4!=i)return r.Fe=Qe[4],Oe;if(0===r.nt)return r.Fe=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Qe[7],-5;if(n==Ye&&0!==t.je)return r.Fe=Qe[7],-5;if(0!==t.je||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.nt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,Le.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={Le(e,t){const n=this;return n.qe=new et,t||(t=15),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):Oe},Xe(){const e=this;if(!e.qe)return Oe;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):Oe},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):Oe},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[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,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[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];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Fe="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=st),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Fe="oversubscribed literal/length tree":-4!=h&&(w.Fe="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Fe="oversubscribed distance tree":h==it?(w.Fe="incomplete distance tree",h=st):-4!=h&&(w.Fe="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ct,h=o.ft,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--u);else o.ut.set(o.ut.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.ut[y++]=o.ut[S++],o.ut[y++]=o.ut[S++],k-=2):(o.ut.set(o.ut.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--k);else o.ut.set(o.ut.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,1):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.wt=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Fe="invalid literal/length code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Fe="invalid distance code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);e.ut[S++]=e.ut[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,e.ut[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);t=8;case 8:return m=1,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 9:return m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);default:return m=rt,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m)}},e.dt=()=>{}}ht.yt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ft=0,n.ct=0,n.ut=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.dt(e),s=0,n.ft=0,n.ct=0,n.read=n.write=0},n.reset(e,null),n.ht=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.wt=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.yt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Fe="invalid block type",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Fe="invalid stored block lengths",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.ut.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Fe="too many length or distance symbols",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Fe="invalid bit length repeat",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,1!=(t=w.wt(n,e,t)))return n.ht(e,t);if(t=0,w.dt(e),m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);s=8;case 8:return t=1,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);case 9:return t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);default:return t=rt,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}}},n.dt=e=>{n.reset(e,null),n.ut=null,d=null},n.bt=(e,t,r)=>{n.ut.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),0):rt}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.dt(t),e.vt=null,0),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),rt):(e.Ct=r,n.kt.vt=new yt(n,1<<r),t(n),0)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return rt;const s=e.kt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.lt(e.rt++)))){s.mode=mt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=mt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.lt(e.rt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.lt(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.lt(e.rt++),s.mode=6,2);case 6:return s.mode=mt,e.Fe="need dictionary",s.marker=0,rt;case 7:if(n=s.vt.wt(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,1;case mt:return st;default:return rt}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return rt;const i=e.kt;return s<1<<i.Ct||(s=(1<<i.Ct)-1,r=n-s),i.vt.bt(t,r,s),i.mode=7,0},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return rt;const c=e.kt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.je))return it;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.lt(r)==bt[s]?s++:s=0!==e.lt(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?st:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,0)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===it){if(0!==t.je)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Fe);if((c||1===a)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}kt.prototype={At(e){const t=this;return t.kt=new gt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):rt},xt(){const e=this;if(!e.kt)return rt;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):rt},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):rt},lt(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
|
|
122
122
|
`,s=()=>e.useDataURI?"data:text/javascript,"+encodeURIComponent(t):URL.createObjectURL(new Blob([t],{type:"text/javascript"}));n({workerScripts:{inflate:[s],deflate:[s]}})}const sw="Writer iterator completed too soon",iw="text/plain",nw="Content-Type",rw=64*1024,Fp="writable";class uu{constructor(){this.size=0}init(){this.initialized=!0}}class Bp extends uu{get readable(){const e=this,{chunkSize:t=rw}=e,s=new ReadableStream({start(){this.chunkOffset=0},async pull(i){const{offset:r=0,size:a,diskNumberStart:o}=s,{chunkOffset:l}=this;i.enqueue(await hu(e,r+l,Math.min(t,a-l),o)),l+t>a?i.close():this.chunkOffset+=t}});return s}}class aw extends Bp{constructor(e){super(),Object.assign(this,{blob:e,size:e.size})}async readUint8Array(e,t){const s=this,i=e+t;let a=await(e||i<s.size?s.blob.slice(e,i):s.blob).arrayBuffer();return a.byteLength>t&&(a=a.slice(e,i)),new Uint8Array(a)}}class ow extends uu{constructor(e){super();const t=this,s=new TransformStream,i=[];e&&i.push([nw,e]),Object.defineProperty(t,Fp,{get(){return s.writable}}),t.blob=new Response(s.readable,{headers:i}).blob()}getData(){return this.blob}}class lw extends aw{constructor(e){super(new Blob([e],{type:iw}))}}class uw extends Bp{constructor(e){super(),this.readers=e}async init(){const e=this,{readers:t}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await Promise.all(t.map(async(s,i)=>{await s.init(),i!=t.length-1&&(e.lastDiskOffset+=s.size),e.size+=s.size})),super.init()}async readUint8Array(e,t,s=0){const i=this,{readers:r}=this;let a,o=s;o==-1&&(o=r.length-1);let l=e;for(;l>=r[o].size;)l-=r[o].size,o++;const h=r[o],d=h.size;if(l+t<=d)a=await hu(h,l,t);else{const c=d-l;a=new Uint8Array(t),a.set(await hu(h,l,c)),a.set(await i.readUint8Array(e+c,t-c,s),c)}return i.lastDiskNumber=Math.max(o,i.lastDiskNumber),a}}class Qp extends uu{constructor(e,t=4294967295){super();const s=this;Object.assign(s,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});let i,r,a;const o=new WritableStream({async write(d){const{availableSize:c}=s;if(a)d.length>=c?(await l(d.slice(0,c)),await h(),s.diskOffset+=i.size,s.diskNumber++,a=null,await this.write(d.slice(c))):await l(d);else{const{value:g,done:x}=await e.next();if(x&&!g)throw new Error(sw);i=g,i.size=0,i.maxSize&&(s.maxSize=i.maxSize),s.availableSize=s.maxSize,await jr(i),r=g.writable,a=r.getWriter(),await this.write(d)}},async close(){await a.ready,await h()}});Object.defineProperty(s,Fp,{get(){return o}});async function l(d){const c=d.length;c&&(await a.ready,await a.write(d),i.size+=c,s.size+=c,s.availableSize-=c)}async function h(){r.size=i.size,await a.close()}}}async function jr(n,e){if(n.init&&!n.initialized)await n.init(e);else return Promise.resolve()}function hw(n){return Array.isArray(n)&&(n=new uw(n)),n instanceof ReadableStream&&(n={readable:n}),n}function dw(n){n.writable===ft&&typeof n.next==Br&&(n=new Qp(n)),n instanceof WritableStream&&(n={writable:n});const{writable:e}=n;return e.size===ft&&(e.size=0),n instanceof Qp||Object.assign(n,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),n}function hu(n,e,t,s){return n.readUint8Array(e,t,s)}"\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("").length==256;const cw="filename",pw="rawFilename",gw="comment",mw="rawComment",fw="uncompressedSize",yw="compressedSize",Cw="offset",Hp="diskNumberStart",zp="lastModDate",vw="rawLastModDate",Up="lastAccessDate",Wp="creationDate",jp="internalFileAttribute",Gp="externalFileAttribute",$p="msDosCompatible",du="zip64",Zp="encrypted",Kp="version",Jp="versionMadeBy",Yp="zipCrypto",bw=[cw,pw,yw,fw,zp,vw,gw,mw,Up,Wp,Cw,Hp,Hp,jp,Gp,$p,du,Zp,Kp,Jp,Yp,"directory","bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Xp{constructor(e){bw.forEach(t=>this[t]=e[t])}}const ww="File already exists",xw="Zip file comment exceeds 64KB",Vw="File entry comment exceeds 64KB",Ew="File entry name exceeds 64KB",eg="Version exceeds 65535",Sw="The strength must equal 1, 2, or 3",Iw="Extra field type exceeds 65535",Pw="Extra field data exceeds 64KB",cu="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",Tw="Undefined uncompressed size",tg=new Uint8Array([7,0,2,0,65,69,3,0,0]);let pu=0;const sg=[];class Rw{constructor(e,t={}){e=dw(e);const s=e.availableSize!==ft&&e.availableSize>0&&e.availableSize!==1/0&&e.maxSize!==ft&&e.maxSize>0&&e.maxSize!==1/0;Object.assign(this,{writer:e,addSplitZipSignature:s,options:t,config:mb(),files:new Map,filenames:new Set,offset:t.offset===ft?e.writable.size:t.offset,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(e="",t,s={}){const i=this,{pendingAddFileCalls:r,config:a}=i;pu<a.maxWorkers?pu++:await new Promise(l=>sg.push(l));let o;try{if(e=e.trim(),i.filenames.has(e))throw new Error(ww);return i.filenames.add(e),o=Aw(i,e,t,s),r.add(o),await o}catch(l){throw i.filenames.delete(e),l}finally{r.delete(o);const l=sg.shift();l?l():pu--}}async close(e=new Uint8Array,t={}){const s=this,{pendingAddFileCalls:i,writer:r}=this,{writable:a}=r;for(;i.size;)await Promise.allSettled(Array.from(i));return await Fw(this,e,t),Je(s,t,"preventClose")||await a.getWriter().close(),r.getData?r.getData():a}}async function Aw(n,e,t,s){e=e.trim(),s.directory&&!e.endsWith(Xl)?e+=Xl:s.directory=e.endsWith(Xl);const i=Je(n,s,"encodeText",fo);let r=i(e);if(r===ft&&(r=fo(e)),ze(r)>ls)throw new Error(Ew);const a=s.comment||"";let o=i(a);if(o===ft&&(o=fo(a)),ze(o)>ls)throw new Error(Vw);const l=Je(n,s,Kp,cb);if(l>ls)throw new Error(eg);const h=Je(n,s,Jp,20);if(h>ls)throw new Error(eg);const d=Je(n,s,zp,new Date),c=Je(n,s,Up),g=Je(n,s,Wp),x=Je(n,s,$p,!0),b=Je(n,s,jp,0),y=Je(n,s,Gp,0),f=Je(n,s,"passThrough");let p,w;f||(p=Je(n,s,"password"),w=Je(n,s,"rawPassword"));const V=Je(n,s,"encryptionStrength",3),N=Je(n,s,Yp),O=Je(n,s,"extendedTimestamp",!0),I=Je(n,s,"keepOrder",!0),L=Je(n,s,"level"),P=Je(n,s,"useWebWorkers"),k=Je(n,s,"bufferedWrite"),q=Je(n,s,"dataDescriptorSignature",!1),z=Je(n,s,"signal"),j=Je(n,s,"useUnicodeFileNames",!0),D=Je(n,s,"useCompressionStream"),F=Je(n,s,"compressionMethod");let Q=Je(n,s,"dataDescriptor",!0),H=Je(n,s,du);if(!N&&(p!==ft||w!==ft)&&!(V>=1&&V<=3))throw new Error(Sw);let Z=new Uint8Array;const{extraField:ee}=s;if(ee){let ds=0,Wt=0;ee.forEach(Vt=>ds+=4+ze(Vt)),Z=new Uint8Array(ds),ee.forEach((Vt,cs)=>{if(cs>ls)throw new Error(Iw);if(ze(Vt)>ls)throw new Error(Pw);At(Z,new Uint16Array([cs]),Wt),At(Z,new Uint16Array([ze(Vt)]),Wt+2),At(Z,Vt,Wt+4),Wt+=4+ze(Vt)})}let ve=0,se=0,fe=0;if(f&&({uncompressedSize:fe}=s,fe===ft))throw new Error(Tw);const oe=H===!0;t&&(t=hw(t),await jr(t),f?ve=ig(fe):t.size===ft?(Q=!0,(H||H===ft)&&(H=!0,fe=ve=os+1)):(fe=t.size,ve=ig(fe)));const{diskOffset:pe,diskNumber:Le,maxSize:be}=n.writer,ne=oe||fe>os,Ve=oe||ve>os,ht=oe||n.offset+n.pendingEntriesSize-pe>os,Ot=Je(n,s,"supportZip64SplitFile",!0)&&oe||Le+Math.ceil(n.pendingEntriesSize/be)>ls;if(ht||ne||Ve||Ot){if(H===!1||!I)throw new Error(cu);H=!0}H=H||!1;const zs=Je(n,s,Zp),{signature:Zt}=s;s=Object.assign({},s,{rawFilename:r,rawComment:o,version:l,versionMadeBy:h,lastModDate:d,lastAccessDate:c,creationDate:g,rawExtraField:Z,zip64:H,zip64UncompressedSize:ne,zip64CompressedSize:Ve,zip64Offset:ht,zip64DiskNumberStart:Ot,password:p,rawPassword:w,level:!D&&n.config.CompressionStream===ft&&n.config.CompressionStreamNative===ft?0:L,useWebWorkers:P,encryptionStrength:V,extendedTimestamp:O,zipCrypto:N,bufferedWrite:k,keepOrder:I,useUnicodeFileNames:j,dataDescriptor:Q,dataDescriptorSignature:q,signal:z,msDosCompatible:x,internalFileAttribute:b,externalFileAttribute:y,useCompressionStream:D,passThrough:f,encrypted:!!(p&&ze(p)||w&&ze(w))||f&&zs,signature:Zt,compressionMethod:F});const is=kw(s),Us=Ow(s),Ze=ze(is.localHeaderArray,Us.dataDescriptorArray);se=Ze+ve,n.options.usdz&&(se+=se+64),n.pendingEntriesSize+=se;let nt;try{nt=await Lw(n,e,t,{headerInfo:is,dataDescriptorInfo:Us,metadataSize:Ze},s)}finally{n.pendingEntriesSize-=se}return Object.assign(nt,{name:e,comment:a,extraField:ee}),new Xp(nt)}async function Lw(n,e,t,s,i){const{files:r,writer:a}=n,{keepOrder:o,dataDescriptor:l,signal:h}=i,{headerInfo:d}=s,{usdz:c}=n.options,g=Array.from(r.values()).pop();let x={},b,y,f,p,w,V,N;r.set(e,x);try{let P;o&&(P=g&&g.lock,O()),(i.bufferedWrite||n.writerLocked||n.bufferedWrites&&o||!l)&&!c?(V=new TransformStream,N=new Response(V.readable).blob(),V.writable.size=0,b=!0,n.bufferedWrites++,await jr(a)):(V=a,await I()),await jr(V);const{writable:k}=a;let{diskOffset:q}=a;if(n.addSplitZipSignature){delete n.addSplitZipSignature;const j=new Uint8Array(4),D=Ut(j);He(D,0,$c),await ti(k,j),n.offset+=4}c&&_w(s,n.offset-q),b||(await P,await L(k));const{diskNumber:z}=a;if(w=!0,x.diskNumberStart=z,x=await Dw(t,V,x,s,n.config,i),w=!1,r.set(e,x),x.filename=e,b){await V.writable.getWriter().close();let j=await N;await P,await I(),p=!0,l||(j=await Nw(x,j,k,i)),await L(k),x.diskNumberStart=a.diskNumber,q=a.diskOffset,await j.stream().pipeTo(k,{preventClose:!0,preventAbort:!0,signal:h}),k.size+=j.size,p=!1}if(x.offset=n.offset-q,x.zip64)qw(x,i);else if(x.offset>os)throw new Error(cu);return n.offset+=x.size,x}catch(P){if(b&&p||!b&&w){if(n.hasCorruptedEntries=!0,P)try{P.corruptedEntry=!0}catch{}b?n.offset+=V.writable.size:n.offset=V.writable.size}throw r.delete(e),P}finally{b&&n.bufferedWrites--,f&&f(),y&&y()}function O(){x.lock=new Promise(P=>f=P)}async function I(){n.writerLocked=!0;const{lockWriter:P}=n;n.lockWriter=new Promise(k=>y=()=>{n.writerLocked=!1,k()}),await P}async function L(P){ze(d.localHeaderArray)>a.availableSize&&(a.availableSize=0,await ti(P,new Uint8Array))}}async function Dw(n,e,{diskNumberStart:t,lock:s},i,r,a){const{headerInfo:o,dataDescriptorInfo:l,metadataSize:h}=i,{localHeaderArray:d,headerArray:c,lastModDate:g,rawLastModDate:x,encrypted:b,compressed:y,version:f,compressionMethod:p,rawExtraFieldExtendedTimestamp:w,extraFieldExtendedTimestampFlag:V,rawExtraFieldNTFS:N,rawExtraFieldAES:O}=o,{dataDescriptorArray:I}=l,{rawFilename:L,lastAccessDate:P,creationDate:k,password:q,rawPassword:z,level:j,zip64:D,zip64UncompressedSize:F,zip64CompressedSize:Q,zip64Offset:H,zip64DiskNumberStart:Z,zipCrypto:ee,dataDescriptor:ve,directory:se,versionMadeBy:fe,rawComment:oe,rawExtraField:pe,useWebWorkers:Le,onstart:be,onprogress:ne,onend:Ve,signal:ht,encryptionStrength:ss,extendedTimestamp:Ot,msDosCompatible:zs,internalFileAttribute:Zt,externalFileAttribute:is,useCompressionStream:Us,passThrough:Ze}=a,nt={lock:s,versionMadeBy:fe,zip64:D,directory:!!se,filenameUTF8:!0,rawFilename:L,commentUTF8:!0,rawComment:oe,rawExtraFieldExtendedTimestamp:w,rawExtraFieldNTFS:N,rawExtraFieldAES:O,rawExtraField:pe,extendedTimestamp:Ot,msDosCompatible:zs,internalFileAttribute:Zt,externalFileAttribute:is,diskNumberStart:t};let{signature:ds,uncompressedSize:Wt}=a,Vt=0;Ze||(Wt=0);const{writable:cs}=e;if(n){n.chunkSize=fb(r),await ti(cs,d);const Mt=n.readable,Wi=Mt.size=n.size,fn={options:{codecType:Dp,level:j,rawPassword:z,password:q,encryptionStrength:ss,zipCrypto:b&&ee,passwordVerification:b&&ee&&x>>8&255,signed:!Ze,compressed:y&&!Ze,encrypted:b&&!Ze,useWebWorkers:Le,useCompressionStream:Us,transferStreams:!1},config:r,streamOptions:{signal:ht,size:Wi,onstart:be,onprogress:ne,onend:Ve}},ks=await Xb({readable:Mt,writable:cs},fn);Vt=ks.outputSize,Ze||(Wt=ks.inputSize,ds=ks.signature),cs.size+=Wt}else await ti(cs,d);let ps;if(D){let Mt=4;F&&(Mt+=8),Q&&(Mt+=8),H&&(Mt+=8),Z&&(Mt+=4),ps=new Uint8Array(Mt)}else ps=new Uint8Array;return Mw({signature:ds,rawExtraFieldZip64:ps,compressedSize:Vt,uncompressedSize:Wt,headerInfo:o,dataDescriptorInfo:l},a),ve&&await ti(cs,I),Object.assign(nt,{uncompressedSize:Wt,compressedSize:Vt,lastModDate:g,rawLastModDate:x,creationDate:k,lastAccessDate:P,encrypted:b,zipCrypto:ee,size:h+Vt,compressionMethod:p,version:f,headerArray:c,signature:ds,rawExtraFieldZip64:ps,extraFieldExtendedTimestampFlag:V,zip64UncompressedSize:F,zip64CompressedSize:Q,zip64Offset:H,zip64DiskNumberStart:Z}),nt}function kw(n){const{rawFilename:e,lastModDate:t,lastAccessDate:s,creationDate:i,level:r,zip64:a,zipCrypto:o,useUnicodeFileNames:l,dataDescriptor:h,directory:d,rawExtraField:c,encryptionStrength:g,extendedTimestamp:x,encrypted:b}=n,y=r!==0&&!d;let{version:f,compressionMethod:p}=n,w;if(b&&!o){w=new Uint8Array(ze(tg)+2);const H=Ut(w);$e(H,0,nb),At(w,tg,2),bo(H,8,g)}else w=new Uint8Array;let V,N,O;if(x){N=new Uint8Array(9+(s?4:0)+(i?4:0));const H=Ut(N);$e(H,0,Jc),$e(H,2,ze(N)-4),O=1+(s?2:0)+(i?4:0),bo(H,4,O);let Z=5;He(H,Z,Math.floor(t.getTime()/1e3)),Z+=4,s&&(He(H,Z,Math.floor(s.getTime()/1e3)),Z+=4),i&&He(H,Z,Math.floor(i.getTime()/1e3));try{V=new Uint8Array(36);const ee=Ut(V),ve=gu(t);$e(ee,0,rb),$e(ee,2,32),$e(ee,8,ab),$e(ee,10,24),us(ee,12,ve),us(ee,20,gu(s)||ve),us(ee,28,gu(i)||ve)}catch{V=new Uint8Array}}else V=N=new Uint8Array;let I=0;l&&(I=I|hb),h&&(I=I|ub),p===ft&&(p=y?Gc:$0),p==Gc&&(r>=1&&r<3&&(I=I|6),r>=3&&r<5&&(I=I|1),r===9&&(I=I|2)),a&&(f=f>Yc?f:Yc),b&&(I=I|lb,o||(f=f>Xc?f:Xc,w[9]=p,p=Z0));const L=new Uint8Array(26),P=Ut(L);$e(P,0,f),$e(P,2,I),$e(P,4,p);const k=new Uint32Array(1),q=Ut(k);let z;t<tp?z=tp:t>ep?z=ep:z=t,$e(q,0,(z.getHours()<<6|z.getMinutes())<<5|z.getSeconds()/2),$e(q,2,(z.getFullYear()-1980<<4|z.getMonth()+1)<<5|z.getDate());const j=k[0];He(P,6,j),$e(P,22,ze(e));const D=ze(w,N,V,c);$e(P,24,D);const F=new Uint8Array(30+ze(e)+D),Q=Ut(F);return He(Q,0,K0),At(F,L,4),At(F,e,30),At(F,w,30+ze(e)),At(F,N,30+ze(e,w)),At(F,V,30+ze(e,w,N)),At(F,c,30+ze(e,w,N,V)),{localHeaderArray:F,headerArray:L,headerView:P,lastModDate:t,rawLastModDate:j,encrypted:b,compressed:y,version:f,compressionMethod:p,extraFieldExtendedTimestampFlag:O,rawExtraFieldExtendedTimestamp:N,rawExtraFieldNTFS:V,rawExtraFieldAES:w,extraFieldLength:D}}function _w(n,e){const{headerInfo:t}=n;let{localHeaderArray:s,extraFieldLength:i}=t,r=Ut(s),a=64-(e+ze(s))%64;a<4&&(a+=64);const o=new Uint8Array(a),l=Ut(o);$e(l,0,ob),$e(l,2,a-2);const h=s;t.localHeaderArray=s=new Uint8Array(ze(h)+a),At(s,h),At(s,o,ze(h)),r=Ut(s),$e(r,28,i+a),n.metadataSize+=a}function Ow(n){const{zip64:e,dataDescriptor:t,dataDescriptorSignature:s}=n;let i=new Uint8Array,r,a=0;return t&&(i=new Uint8Array(e?s?24:20:s?16:12),r=Ut(i),s&&(a=4,He(r,0,J0))),{dataDescriptorArray:i,dataDescriptorView:r,dataDescriptorOffset:a}}function Mw(n,e){const{signature:t,rawExtraFieldZip64:s,compressedSize:i,uncompressedSize:r,headerInfo:a,dataDescriptorInfo:o}=n,{headerView:l,encrypted:h}=a,{dataDescriptorView:d,dataDescriptorOffset:c}=o,{zip64:g,zip64UncompressedSize:x,zip64CompressedSize:b,zipCrypto:y,dataDescriptor:f}=e;if((!h||y)&&t!==ft&&(He(l,10,t),f&&He(d,c,t)),g){const p=Ut(s);$e(p,0,ib),$e(p,2,ze(s)-4);let w=4;x&&(He(l,18,os),us(p,w,BigInt(r)),w+=8),b&&(He(l,14,os),us(p,w,BigInt(i))),f&&(us(d,c+4,BigInt(i)),us(d,c+12,BigInt(r)))}else He(l,14,i),He(l,18,r),f&&(He(d,c+4,i),He(d,c+8,r))}async function Nw(n,e,t,{zipCrypto:s}){let i;i=await e.slice(0,26).arrayBuffer(),i.byteLength!=26&&(i=i.slice(0,26));const r=new DataView(i);return(!n.encrypted||s)&&He(r,14,n.signature),n.zip64?(He(r,18,os),He(r,22,os)):(He(r,18,n.compressedSize),He(r,22,n.uncompressedSize)),await ti(t,new Uint8Array(i)),e.slice(i.byteLength)}function qw(n,e){const{rawExtraFieldZip64:t,offset:s,diskNumberStart:i}=n,{zip64UncompressedSize:r,zip64CompressedSize:a,zip64Offset:o,zip64DiskNumberStart:l}=e,h=Ut(t);let d=4;r&&(d+=8),a&&(d+=8),o&&(us(h,d,BigInt(s)),d+=8),l&&He(h,d,i)}async function Fw(n,e,t){const{files:s,writer:i}=n,{diskOffset:r,writable:a}=i;let{diskNumber:o}=i,l=0,h=0,d=n.offset-r,c=s.size;for(const[,O]of s){const{rawFilename:I,rawExtraFieldZip64:L,rawExtraFieldAES:P,rawComment:k,rawExtraFieldNTFS:q,rawExtraField:z,extendedTimestamp:j,extraFieldExtendedTimestampFlag:D,lastModDate:F}=O;let Q;if(j){Q=new Uint8Array(9);const H=Ut(Q);$e(H,0,Jc),$e(H,2,5),bo(H,4,D),He(H,5,Math.floor(F.getTime()/1e3))}else Q=new Uint8Array;O.rawExtraFieldCDExtendedTimestamp=Q,h+=46+ze(I,k,L,P,q,Q,z)}const g=new Uint8Array(h),x=Ut(g);await jr(i);let b=0;for(const[O,I]of Array.from(s.values()).entries()){const{offset:L,rawFilename:P,rawExtraFieldZip64:k,rawExtraFieldAES:q,rawExtraFieldCDExtendedTimestamp:z,rawExtraFieldNTFS:j,rawExtraField:D,rawComment:F,versionMadeBy:Q,headerArray:H,directory:Z,zip64:ee,zip64UncompressedSize:ve,zip64CompressedSize:se,zip64DiskNumberStart:fe,zip64Offset:oe,msDosCompatible:pe,internalFileAttribute:Le,externalFileAttribute:be,diskNumberStart:ne,uncompressedSize:Ve,compressedSize:ht}=I,ss=ze(k,q,z,j,D);He(x,l,Y0),$e(x,l+4,Q);const Ot=Ut(H);ve||He(Ot,18,Ve),se||He(Ot,14,ht),At(g,H,l+6),$e(x,l+30,ss),$e(x,l+32,ze(F)),$e(x,l+34,ee&&fe?ls:ne),$e(x,l+36,Le),be?He(x,l+38,be):Z&&pe&&bo(x,l+38,db),He(x,l+42,ee&&oe?os:L),At(g,P,l+46),At(g,k,l+46+ze(P)),At(g,q,l+46+ze(P,k)),At(g,z,l+46+ze(P,k,q)),At(g,j,l+46+ze(P,k,q,z)),At(g,D,l+46+ze(P,k,q,z,j)),At(g,F,l+46+ze(P)+ss);const zs=46+ze(P,F)+ss;if(l-b>i.availableSize&&(i.availableSize=0,await ti(a,g.slice(b,l)),b=l),l+=zs,t.onprogress)try{await t.onprogress(O+1,s.size,new Xp(I))}catch{}}await ti(a,b?g.slice(b):g);let y=i.diskNumber;const{availableSize:f}=i;f<Yl&&y++;let p=Je(n,t,du);if(d>os||h>os||c>ls||y>ls){if(p===!1)throw new Error(cu);p=!0}const w=new Uint8Array(p?sb:Yl),V=Ut(w);l=0,p&&(He(V,0,eb),us(V,4,BigInt(44)),$e(V,12,45),$e(V,14,45),He(V,16,y),He(V,20,o),us(V,24,BigInt(c)),us(V,32,BigInt(c)),us(V,40,BigInt(h)),us(V,48,BigInt(d)),He(V,56,tb),us(V,64,BigInt(d)+BigInt(h)),He(V,72,y+1),Je(n,t,"supportZip64SplitFile",!0)&&(y=ls,o=ls),c=ls,d=os,h=os,l+=Kc+Zc),He(V,l,X0),$e(V,l+4,y),$e(V,l+6,o),$e(V,l+8,c),$e(V,l+10,c),He(V,l+12,h),He(V,l+16,d);const N=ze(e);if(N)if(N<=ls)$e(V,l+20,N);else throw new Error(xw);await ti(a,w),N&&await ti(a,e)}async function ti(n,e){const t=n.getWriter();try{await t.ready,n.size+=ze(e),await t.write(e)}finally{t.releaseLock()}}function gu(n){if(n)return(BigInt(n.getTime())+BigInt(116444736e5))*BigInt(1e4)}function Je(n,e,t,s){const i=e[t]===ft?n.options[t]:e[t];return i===ft?s:i}function ig(n){return n+5*(Math.floor(n/16383)+1)}function bo(n,e,t){n.setUint8(e,t)}function $e(n,e,t){n.setUint16(e,t,!0)}function He(n,e,t){n.setUint32(e,t,!0)}function us(n,e,t){n.setBigUint64(e,t,!0)}function At(n,e,t){n.set(e,t)}function Ut(n){return new DataView(n.buffer)}function ze(...n){let e=0;return n.forEach(t=>t&&(e+=t.length)),e}let ng;try{ng=typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:wi&&wi.tagName.toUpperCase()==="SCRIPT"&&wi.src||new URL("reactive.umd.js",document.baseURI).href}catch{}eu({baseURL:ng}),tw(eu),eu({Deflate:I0,Inflate:G0});var fi;(function(n){n.Documents="DOCUMENTS",n.Data="DATA",n.Library="LIBRARY",n.Cache="CACHE",n.External="EXTERNAL",n.ExternalStorage="EXTERNAL_STORAGE"})(fi||(fi={}));var wo;(function(n){n.UTF8="utf8",n.ASCII="ascii",n.UTF16="utf16"})(wo||(wo={}));const hn=cr("Filesystem",{web:()=>Promise.resolve().then(()=>px).then(n=>new n.FilesystemWeb)});Bo("Upload",[{name:"upload",defaultValue:!0,type:"boolean",description:"Upload the data at the end of the experiment?"},{name:"download",defaultValue:!1,type:"boolean",description:"Locally download the data at the end of the experiment?"}]);function rg(n){if(n==null)return"";const e=String(n);return e.includes(",")||e.includes('"')||e.includes(`
|
|
123
123
|
`)?`"${e.replace(/"/g,'""')}"`:e}function mu(n){if(!n||n.length===0)return"";const e=new Set;n.forEach(r=>{Object.keys(r).forEach(a=>{e.add(a)})});const t=Array.from(e),s=t.map(r=>rg(r)).join(","),i=n.map(r=>t.map(a=>{const o=r[a];return rg(o)}).join(","));return[s,...i].join(`
|
|
124
124
|
`)}const Bw={CanvasBlock:n=>{const e=n.responseData;return Array.isArray(e)?e.map(t=>({block:n.name,...t})):[]}},Qw=({responseData:n,...e})=>({...e,...Object.entries(n||{}).reduce((t,[s,i])=>({...t,[`data_${s}`]:i}),{})});function Hw(n,e,t,s,i){const r=t.flatMap(h=>n.filter(c=>c.name===h).map(c=>{const g=c.type&&s[c.type],x=g?g(c):[Qw(c)];return Array.isArray(x)&&x.length===0||x&&typeof x=="object"&&!Array.isArray(x)&&!Object.values(x).some(y=>Array.isArray(y)&&y.length>0)?null:x})).filter(h=>h!==null);if(!r.some(h=>h&&typeof h=="object"&&!Array.isArray(h)&&Object.keys(h).some(d=>Array.isArray(h[d])))){const h=r.flatMap(d=>Array.isArray(d)?d:[]).map(d=>i?i(d):d);return h.length===0?[]:{filename:e,encoding:"utf8",content:mu(h)}}const o=new Set;r.forEach(h=>{h&&typeof h=="object"&&!Array.isArray(h)&&Object.keys(h).forEach(d=>{Array.isArray(h[d])&&o.add(d)})});const l=[];for(const h of o){const d=r.flatMap(g=>Array.isArray(g)?g:g&&typeof g=="object"&&g[h]?g[h]:[]).map(g=>i?i(g):g);if(d.length===0)continue;const c=e.replace(/\.csv$/,"");l.push({filename:`${c}_${h}.csv`,encoding:"utf8",content:mu(d)})}return l.length===0?[]:l.length===1?l[0]:l}const zw=()=>{const n=window.electronAPI;return{directoryExists:async e=>{const t=await n.directoryExists(e);return t.success&&t.exists},createDirectory:async e=>{await n.createDirectory(e)},saveFile:async(e,t,s)=>{await n.saveFile(e,t,s)}}},Uw=n=>{const e=t=>n?t?`${n}/${t}`:n:t;return{directoryExists:async t=>{try{if(n)try{await hn.readdir({path:n,directory:fi.Documents})}catch{return!1}const s=e(t);return(await hn.readdir({path:s,directory:fi.Documents})).files.length>=0}catch{return!1}},createDirectory:async t=>{try{if(n)try{await hn.mkdir({path:n,directory:fi.Documents,recursive:!1})}catch{}const s=e(t);await hn.mkdir({path:s,directory:fi.Documents,recursive:!0})}catch(s){throw console.error("Error creating directory:",s),s}},saveFile:async(t,s,i)=>{const r=e(i);await hn.writeFile({path:`${r}/${t}`,data:s,directory:fi.Documents,encoding:"utf8"})}}},Ww=n=>{const e=pr();switch(e){case"desktop":return{backend:zw(),type:e};case"mobile":return{backend:Uw(n),type:e};case"web":return{backend:null,type:e}}},jw=async(n,e)=>{let t=e;if(await n.directoryExists(t)){let s=1;for(t=`${e}_${s}`;await n.directoryExists(t);)s++,t=`${e}_${s}`}return t};function ag({data:n,next:e,store:t,sessionID:s,generateFiles:i,sessionCSVBuilder:r,trialCSVBuilder:a,uploadRaw:o=!0,autoUpload:l=!1,androidFolderName:h}){const[d,c]=B.useState("initial"),g=B.useRef(!1),x=En("upload",!0,"boolean"),b=En("download",!1,"boolean"),y=n0({mutationFn:async w=>await u0("/data",w),onSuccess:w=>{w.status===200?(c("success"),e({})):c("error")},onError:()=>{c("error")}}),f=B.useCallback(async w=>{const V=new Rw(new ow);for(const L of w)await V.add(L.filename,new lw(L.content));const N=await V.close(),O=URL.createObjectURL(N),I=document.createElement("a");I.href=O,I.download="study-data.zip",document.body.appendChild(I),I.click(),document.body.removeChild(I),URL.revokeObjectURL(O)},[]),p=B.useCallback(async()=>{var N,O;if(c("uploading"),g.current)return;g.current=!0;const w=s??l0(),V=i?i(w,n,t):[];if(o&&V.push({filename:`${w}.raw.json`,content:JSON.stringify(n),encoding:"utf8"}),r){let I={};const L=(O=(N=n==null?void 0:n[0])==null?void 0:N.responseData)==null?void 0:O.params;L&&typeof L=="object"&&L!==null&&(I=Object.entries(L).reduce((k,[q,z])=>{if(z&&typeof z=="object"&&"defaultValue"in z){const j=z.value??z.defaultValue;k[q]=j}return k},{}));let P={sessionID:w,userAgent:n[0].responseData.userAgent,...I};if(r.trials&&Array.isArray(r.trials)&&r.trials.length>0)for(const k of r.trials){const q=n.find(z=>z.name===k);q!=null&&q.responseData&&typeof q.responseData=="object"&&q.responseData!==null&&(P={...P,...q.responseData})}V.push({content:mu([r.fun?r.fun(P):P]),filename:`${w}${r.filename}.csv`,encoding:"utf8"})}if(a)for(const I of a.builders){const L=Hw(n,`${w}${I.filename}.csv`,I.trials??[],{...Bw,...a.flatteners},I.fun);Array.isArray(L)?L.length>0&&V.push(...L):V.push(L)}try{const I={sessionId:w,files:V.map(k=>({...k,encoding:k.encoding??"utf8"}))};if(b&&await f(V),!x){e({});return}const{backend:L,type:P}=Ww(h);if(P==="web")y.mutate(I);else if(L)try{const k=await jw(L,w);await L.createDirectory(k);for(const q of V)await L.saveFile(q.filename,q.content,k);c("success"),e({})}catch(k){console.error(`Error saving files with ${P}:`,k),c("error")}}catch(I){console.error("Error uploading:",I),c("error")}},[s,i,n,o,b,x,f,e,y]);return B.useEffect(()=>{l&&!g.current&&p&&p()},[l,p]),B.useEffect(()=>{d==="error"&&(g.current=!1)},[d]),T.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10",children:[d=="initial"&&!l&&T.jsxs(T.Fragment,{children:[T.jsx("p",{className:"",children:"Thank you for participating! Please click the button below to submit your data."}),T.jsx("button",{onClick:p,className:"mt-8 cursor-pointer bg-white px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"Submit Data"})]}),d=="uploading"&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"w-8 h-8 border-4 border-blue-500 border-t-transparent rounded-full animate-spin"}),T.jsx("p",{className:"",children:"Uploading your data..."})]}),d=="success"&&T.jsx(T.Fragment,{}),d=="error"&&T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"text-red-500 mb-4",children:[T.jsx("p",{className:"",children:"Sorry, there was an error uploading your data."}),T.jsx("p",{children:"Please try again or contact the researcher."})]}),T.jsx("button",{onClick:p,className:"px-4 py-2 cursor-pointer bg-blue-500 text-white rounded-sm hover:bg-blue-600 transition-colors",children:"Try Again"})]})]})}var og;(function(n){n.Dark="DARK",n.Light="LIGHT",n.Default="DEFAULT"})(og||(og={}));var lg;(function(n){n.None="NONE",n.Slide="SLIDE",n.Fade="FADE"})(lg||(lg={}));const ug=cr("StatusBar"),hg=cr("ImmersiveMode",{web:()=>Promise.resolve().then(()=>mx).then(n=>new n.ImmersiveModeWeb)});function dg({content:n,buttonText:e,next:t,data:s,updateStore:i,delayMs:r=0}){const a=T.jsxs("div",{className:"flex flex-col items-center",children:[!!n&&n,!n&&T.jsx("p",{className:"",children:"Please click the Button below to enter Fullscreen mode."})]}),[o,l]=B.useState(!1),h=B.useRef(!1),d=B.useRef(null),c=B.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),g=B.useCallback(()=>{document.removeEventListener("fullscreenchange",b),document.removeEventListener("webkitfullscreenchange",b),document.removeEventListener("mozfullscreenchange",b),document.removeEventListener("MSFullscreenChange",b),c(),h.current=!1},[c]),x=B.useCallback(()=>{c(),l(!0),d.current=setTimeout(()=>{d.current=null,t({})},r)},[t,r,c]),b=B.useCallback(()=>{if(!h.current)return;const p=Vn();g(),p?x():l(!1)},[x,g]),y=B.useCallback(()=>{g(),h.current=!0,document.addEventListener("fullscreenchange",b),document.addEventListener("webkitfullscreenchange",b),document.addEventListener("mozfullscreenchange",b),document.addEventListener("MSFullscreenChange",b)},[b,g]),f=B.useCallback(async()=>{l(!0),g();const p=document.documentElement;if(pr()==="mobile"&&Ki.getPlatform()==="android"&&(ug.hide(),hg.enable()),p.requestFullscreen)try{await p.requestFullscreen(),x();return}catch(w){console.error("Fullscreen request failed:",w);return}p.mozRequestFullScreen?(p.mozRequestFullScreen(),y()):p.webkitRequestFullscreen?(p.webkitRequestFullscreen(),y()):p.msRequestFullscreen?(p.msRequestFullscreen(),y()):console.warn("Fullscreen API is not supported by this browser.")},[x,y,g]);return B.useEffect(()=>()=>{g()},[g]),o?null:T.jsx(aa,{data:s,updateStore:i,content:a,buttonText:e??"Enter Fullscreen Mode",next:f})}function cg({next:n,delayMs:e=0}){const t=B.useRef(!1),s=B.useRef(null),i=B.useCallback(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]),r=B.useCallback(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("MSFullscreenChange",o),i(),t.current=!1},[i]),a=B.useCallback(()=>{i(),s.current=setTimeout(()=>{s.current=null,n({})},e)},[n,e,i]),o=B.useCallback(()=>{if(!t.current)return;const h=Vn();r(),h||a()},[a,r]),l=B.useCallback(()=>{r(),t.current=!0,document.addEventListener("fullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("MSFullscreenChange",o)},[o,r]);return B.useEffect(()=>((async()=>{if(!Vn()){n({});return}if(pr()==="mobile"&&Ki.getPlatform()==="android"&&(ug.show(),hg.disable()),document.exitFullscreen)try{await document.exitFullscreen(),a();return}catch(d){console.error("Exiting fullscreen failed:",d),n({});return}document.mozCancelFullScreen?(document.mozCancelFullScreen(),l()):document.webkitExitFullscreen?(document.webkitExitFullscreen(),l()):document.msExitFullscreen?(document.msExitFullscreen(),l()):(console.warn("Fullscreen API is not supported by this browser."),n({}))})(),()=>{r()}),[a,l,r]),null}function pg(n){var e,t,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(e=0;e<i;e++)n[e]&&(t=pg(n[e]))&&(s&&(s+=" "),s+=t)}else for(t in n)n[t]&&(s&&(s+=" "),s+=t);return s}function Ni(){for(var n,e,t=0,s="",i=arguments.length;t<i;t++)(n=arguments[t])&&(e=pg(n))&&(s&&(s+=" "),s+=e);return s}const Gr=n=>typeof n=="number"&&!isNaN(n),dn=n=>typeof n=="string",xs=n=>typeof n=="function",xo=n=>dn(n)||xs(n)?n:null,fu=n=>B.isValidElement(n)||dn(n)||xs(n)||Gr(n);function gg(n,e,t){t===void 0&&(t=300);const{scrollHeight:s,style:i}=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=s+"px",i.transition=`all ${t}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,t)})})}function $r(n){let{enter:e,exit:t,appendPosition:s=!1,collapse:i=!0,collapseDuration:r=300}=n;return function(a){let{children:o,position:l,preventExitTransition:h,done:d,nodeRef:c,isIn:g,playToast:x}=a;const b=s?`${e}--${l}`:e,y=s?`${t}--${l}`:t,f=B.useRef(0);return B.useLayoutEffect(()=>{const p=c.current,w=b.split(" "),V=N=>{N.target===c.current&&(x(),p.removeEventListener("animationend",V),p.removeEventListener("animationcancel",V),f.current===0&&N.type!=="animationcancel"&&p.classList.remove(...w))};p.classList.add(...w),p.addEventListener("animationend",V),p.addEventListener("animationcancel",V)},[]),B.useEffect(()=>{const p=c.current,w=()=>{p.removeEventListener("animationend",w),i?gg(p,d,r):d()};g||(h?w():(f.current=1,p.className+=` ${y}`,p.addEventListener("animationend",w)))},[g]),B.createElement(B.Fragment,null,o)}}function mg(n,e){return n!=null?{content:n.content,containerId:n.props.containerId,id:n.props.toastId,theme:n.props.theme,type:n.props.type,data:n.props.data||{},isLoading:n.props.isLoading,icon:n.props.icon,status:e}:{}}const es=new Map;let Zr=[];const yu=new Set,Gw=n=>yu.forEach(e=>e(n)),fg=()=>es.size>0;function yg(n,e){var t;if(e)return!((t=es.get(e))==null||!t.isToastActive(n));let s=!1;return es.forEach(i=>{i.isToastActive(n)&&(s=!0)}),s}function Cg(n,e){fu(n)&&(fg()||Zr.push({content:n,options:e}),es.forEach(t=>{t.buildToast(n,e)}))}function vg(n,e){es.forEach(t=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===t.id&&t.toggle(n,e==null?void 0:e.id):t.toggle(n,e==null?void 0:e.id)})}function bg(n){const{subscribe:e,getSnapshot:t,setProps:s}=B.useRef(function(r){const a=r.containerId||1;return{subscribe(o){const l=function(d,c,g){let x=1,b=0,y=[],f=[],p=[],w=c;const V=new Map,N=new Set,O=()=>{p=Array.from(V.values()),N.forEach(P=>P())},I=P=>{f=P==null?[]:f.filter(k=>k!==P),O()},L=P=>{const{toastId:k,onOpen:q,updateId:z,children:j}=P.props,D=z==null;P.staleId&&V.delete(P.staleId),V.set(k,P),f=[...f,P.props.toastId].filter(F=>F!==P.staleId),O(),g(mg(P,D?"added":"updated")),D&&xs(q)&&q(B.isValidElement(j)&&j.props)};return{id:d,props:w,observe:P=>(N.add(P),()=>N.delete(P)),toggle:(P,k)=>{V.forEach(q=>{k!=null&&k!==q.props.toastId||xs(q.toggle)&&q.toggle(P)})},removeToast:I,toasts:V,clearQueue:()=>{b-=y.length,y=[]},buildToast:(P,k)=>{if((oe=>{let{containerId:pe,toastId:Le,updateId:be}=oe;const ne=pe?pe!==d:d!==1,Ve=V.has(Le)&&be==null;return ne||Ve})(k))return;const{toastId:q,updateId:z,data:j,staleId:D,delay:F}=k,Q=()=>{I(q)},H=z==null;H&&b++;const Z={...w,style:w.toastStyle,key:x++,...Object.fromEntries(Object.entries(k).filter(oe=>{let[pe,Le]=oe;return Le!=null})),toastId:q,updateId:z,data:j,closeToast:Q,isIn:!1,className:xo(k.className||w.toastClassName),bodyClassName:xo(k.bodyClassName||w.bodyClassName),progressClassName:xo(k.progressClassName||w.progressClassName),autoClose:!k.isLoading&&(ee=k.autoClose,ve=w.autoClose,ee===!1||Gr(ee)&&ee>0?ee:ve),deleteToast(){const oe=V.get(q),{onClose:pe,children:Le}=oe.props;xs(pe)&&pe(B.isValidElement(Le)&&Le.props),g(mg(oe,"removed")),V.delete(q),b--,b<0&&(b=0),y.length>0?L(y.shift()):O()}};var ee,ve;Z.closeButton=w.closeButton,k.closeButton===!1||fu(k.closeButton)?Z.closeButton=k.closeButton:k.closeButton===!0&&(Z.closeButton=!fu(w.closeButton)||w.closeButton);let se=P;B.isValidElement(P)&&!dn(P.type)?se=B.cloneElement(P,{closeToast:Q,toastProps:Z,data:j}):xs(P)&&(se=P({closeToast:Q,toastProps:Z,data:j}));const fe={content:se,props:Z,staleId:D};w.limit&&w.limit>0&&b>w.limit&&H?y.push(fe):Gr(F)?setTimeout(()=>{L(fe)},F):L(fe)},setProps(P){w=P},setToggle:(P,k)=>{V.get(P).toggle=k},isToastActive:P=>f.some(k=>k===P),getSnapshot:()=>p}}(a,r,Gw);es.set(a,l);const h=l.observe(o);return Zr.forEach(d=>Cg(d.content,d.options)),Zr=[],()=>{h(),es.delete(a)}},setProps(o){var l;(l=es.get(a))==null||l.setProps(o)},getSnapshot(){var o;return(o=es.get(a))==null?void 0:o.getSnapshot()}}}(n)).current;s(n);const i=B.useSyncExternalStore(e,t,t);return{getToastToRender:function(r){if(!i)return[];const a=new Map;return n.newestOnTop&&i.reverse(),i.forEach(o=>{const{position:l}=o.props;a.has(l)||a.set(l,[]),a.get(l).push(o)}),Array.from(a,o=>r(o[0],o[1]))},isToastActive:yg,count:i==null?void 0:i.length}}function wg(n){const[e,t]=B.useState(!1),[s,i]=B.useState(!1),r=B.useRef(null),a=B.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:o,pauseOnHover:l,closeToast:h,onClick:d,closeOnClick:c}=n;var g,x;function b(){t(!0)}function y(){t(!1)}function f(V){const N=r.current;a.canDrag&&N&&(a.didMove=!0,e&&y(),a.delta=n.draggableDirection==="x"?V.clientX-a.start:V.clientY-a.start,a.start!==V.clientX&&(a.canCloseOnClick=!1),N.style.transform=`translate3d(${n.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,N.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function p(){document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p);const V=r.current;if(a.canDrag&&a.didMove&&V){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),n.closeToast(),void n.collapseAll();V.style.transition="transform 0.2s, opacity 0.2s",V.style.removeProperty("transform"),V.style.removeProperty("opacity")}}(x=es.get((g={id:n.toastId,containerId:n.containerId,fn:t}).containerId||1))==null||x.setToggle(g.id,g.fn),B.useEffect(()=>{if(n.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",b),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[n.pauseOnFocusLoss]);const w={onPointerDown:function(V){if(n.draggable===!0||n.draggable===V.pointerType){a.didMove=!1,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p);const N=r.current;a.canCloseOnClick=!0,a.canDrag=!0,N.style.transition="none",n.draggableDirection==="x"?(a.start=V.clientX,a.removalDistance=N.offsetWidth*(n.draggablePercent/100)):(a.start=V.clientY,a.removalDistance=N.offsetHeight*(n.draggablePercent===80?1.5*n.draggablePercent:n.draggablePercent)/100)}},onPointerUp:function(V){const{top:N,bottom:O,left:I,right:L}=r.current.getBoundingClientRect();V.nativeEvent.type!=="touchend"&&n.pauseOnHover&&V.clientX>=I&&V.clientX<=L&&V.clientY>=N&&V.clientY<=O?y():b()}};return o&&l&&(w.onMouseEnter=y,n.stacked||(w.onMouseLeave=b)),c&&(w.onClick=V=>{d&&d(V),a.canCloseOnClick&&h()}),{playToast:b,pauseToast:y,isRunning:e,preventExitTransition:s,toastRef:r,eventHandlers:w}}function $w(n){let{delay:e,isRunning:t,closeToast:s,type:i="default",hide:r,className:a,style:o,controlledProgress:l,progress:h,rtl:d,isIn:c,theme:g}=n;const x=r||l&&h===0,b={...o,animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(b.transform=`scaleX(${h})`);const y=Ni("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),f=xs(a)?a({rtl:d,type:i,defaultClassName:y}):Ni(y,a),p={[l&&h>=1?"onTransitionEnd":"onAnimationEnd"]:l&&h<1?null:()=>{c&&s()}};return B.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},B.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${i}`}),B.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:f,style:b,...p}))}let Zw=1;const xg=()=>""+Zw++;function Kw(n){return n&&(dn(n.toastId)||Gr(n.toastId))?n.toastId:xg()}function Kr(n,e){return Cg(n,e),e.toastId}function Vo(n,e){return{...e,type:e&&e.type||n,toastId:Kw(e)}}function Eo(n){return(e,t)=>Kr(e,Vo(n,t))}function ut(n,e){return Kr(n,Vo("default",e))}ut.loading=(n,e)=>Kr(n,Vo("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),ut.promise=function(n,e,t){let s,{pending:i,error:r,success:a}=e;i&&(s=dn(i)?ut.loading(i,t):ut.loading(i.render,{...t,...i}));const o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(d,c,g)=>{if(c==null)return void ut.dismiss(s);const x={type:d,...o,...t,data:g},b=dn(c)?{render:c}:c;return s?ut.update(s,{...x,...b}):ut(b.render,{...x,...b}),g},h=xs(n)?n():n;return h.then(d=>l("success",a,d)).catch(d=>l("error",r,d)),h},ut.success=Eo("success"),ut.info=Eo("info"),ut.error=Eo("error"),ut.warning=Eo("warning"),ut.warn=ut.warning,ut.dark=(n,e)=>Kr(n,Vo("default",{theme:"dark",...e})),ut.dismiss=function(n){(function(e){var t;if(fg()){if(e==null||dn(t=e)||Gr(t))es.forEach(s=>{s.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const s=es.get(e.containerId);s?s.removeToast(e.id):es.forEach(i=>{i.removeToast(e.id)})}}else Zr=Zr.filter(s=>e!=null&&s.options.toastId!==e)})(n)},ut.clearWaitingQueue=function(n){n===void 0&&(n={}),es.forEach(e=>{!e.props.limit||n.containerId&&e.id!==n.containerId||e.clearQueue()})},ut.isActive=yg,ut.update=function(n,e){e===void 0&&(e={});const t=((s,i)=>{var r;let{containerId:a}=i;return(r=es.get(a||1))==null?void 0:r.toasts.get(s)})(n,e);if(t){const{props:s,content:i}=t,r={delay:100,...s,...e,toastId:e.toastId||n,updateId:xg()};r.toastId!==n&&(r.staleId=n);const a=r.render||i;delete r.render,Kr(a,r)}},ut.done=n=>{ut.update(n,{progress:1})},ut.onChange=function(n){return yu.add(n),()=>{yu.delete(n)}},ut.play=n=>vg(!0,n),ut.pause=n=>vg(!1,n);const Jw=typeof window<"u"?B.useLayoutEffect:B.useEffect,So=n=>{let{theme:e,type:t,isLoading:s,...i}=n;return B.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`,...i})},Io={info:function(n){return B.createElement(So,{...n},B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(n){return B.createElement(So,{...n},B.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(n){return B.createElement(So,{...n},B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(n){return B.createElement(So,{...n},B.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return B.createElement("div",{className:"Toastify__spinner"})}},Yw=n=>{const{isRunning:e,preventExitTransition:t,toastRef:s,eventHandlers:i,playToast:r}=wg(n),{closeButton:a,children:o,autoClose:l,onClick:h,type:d,hideProgressBar:c,closeToast:g,transition:x,position:b,className:y,style:f,bodyClassName:p,bodyStyle:w,progressClassName:V,progressStyle:N,updateId:O,role:I,progress:L,rtl:P,toastId:k,deleteToast:q,isIn:z,isLoading:j,closeOnClick:D,theme:F}=n,Q=Ni("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":D}),H=xs(y)?y({rtl:P,position:b,type:d,defaultClassName:Q}):Ni(Q,y),Z=function(fe){let{theme:oe,type:pe,isLoading:Le,icon:be}=fe,ne=null;const Ve={theme:oe,type:pe};return be===!1||(xs(be)?ne=be({...Ve,isLoading:Le}):B.isValidElement(be)?ne=B.cloneElement(be,Ve):Le?ne=Io.spinner():(ht=>ht in Io)(pe)&&(ne=Io[pe](Ve))),ne}(n),ee=!!L||!l,ve={closeToast:g,type:d,theme:F};let se=null;return a===!1||(se=xs(a)?a(ve):B.isValidElement(a)?B.cloneElement(a,ve):function(fe){let{closeToast:oe,theme:pe,ariaLabel:Le="close"}=fe;return B.createElement("button",{className:`Toastify__close-button Toastify__close-button--${pe}`,type:"button",onClick:be=>{be.stopPropagation(),oe(be)},"aria-label":Le},B.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},B.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(ve)),B.createElement(x,{isIn:z,done:q,position:b,preventExitTransition:t,nodeRef:s,playToast:r},B.createElement("div",{id:k,onClick:h,"data-in":z,className:H,...i,style:f,ref:s},B.createElement("div",{...z&&{role:I},className:xs(p)?p({type:d}):Ni("Toastify__toast-body",p),style:w},Z!=null&&B.createElement("div",{className:Ni("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},Z),B.createElement("div",null,o)),se,B.createElement($w,{...O&&!ee?{key:`pb-${O}`}:{},rtl:P,theme:F,delay:l,isRunning:e,isIn:z,closeToast:g,hide:c,type:d,style:N,className:V,controlledProgress:ee,progress:L||0})))},Po=function(n,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${n}-enter`,exit:`Toastify--animate Toastify__${n}-exit`,appendPosition:e}},Vg=$r(Po("bounce",!0)),Xw=$r(Po("slide",!0)),ex=$r(Po("zoom")),tx=$r(Po("flip")),sx={position:"top-right",transition:Vg,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Eg(n){let e={...sx,...n};const t=n.stacked,[s,i]=B.useState(!0),r=B.useRef(null),{getToastToRender:a,isToastActive:o,count:l}=bg(e),{className:h,style:d,rtl:c,containerId:g}=e;function x(y){const f=Ni("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":c});return xs(h)?h({position:y,rtl:c,defaultClassName:f}):Ni(f,xo(h))}function b(){t&&(i(!0),ut.play())}return Jw(()=>{if(t){var y;const f=r.current.querySelectorAll('[data-in="true"]'),p=12,w=(y=e.position)==null?void 0:y.includes("top");let V=0,N=0;Array.from(f).reverse().forEach((O,I)=>{const L=O;L.classList.add("Toastify__toast--stacked"),I>0&&(L.dataset.collapsed=`${s}`),L.dataset.pos||(L.dataset.pos=w?"top":"bot");const P=V*(s?.2:1)+(s?0:p*I);L.style.setProperty("--y",`${w?P:-1*P}px`),L.style.setProperty("--g",`${p}`),L.style.setProperty("--s",""+(1-(s?N:0))),V+=L.offsetHeight,N+=.025})}},[s,l,t]),B.createElement("div",{ref:r,className:"Toastify",id:g,onMouseEnter:()=>{t&&(i(!1),ut.pause())},onMouseLeave:b},a((y,f)=>{const p=f.length?{...d}:{...d,pointerEvents:"none"};return B.createElement("div",{className:x(y),style:p,key:`container-${y}`},f.map(w=>{let{content:V,props:N}=w;return B.createElement(Yw,{...N,stacked:t,collapseAll:b,isIn:o(N.toastId,N.containerId),style:N.style,key:`toast-${N.key}`},V)}))}))}const ix=({paramRegistry:n,timelineRepresentation:e})=>{const[t,s]=B.useState({}),[i,r]=B.useState([]),[a,o]=B.useState(""),[l,h]=B.useState("Copy URL"),[d,c]=B.useState(!1),[g,x]=B.useState(!1),[b,y]=B.useState([]),f=B.useRef(null),p=[...n].filter(D=>D.name!=="includeSubset"&&D.name!=="excludeSubset").sort((D,F)=>D.name.localeCompare(F.name));B.useEffect(()=>{const D=new URLSearchParams(window.location.search),F={},Q=[];let H=[],Z=!1;const ee=D.get("includeSubset"),ve=D.get("excludeSubset"),se=D.get("_b");if(se)try{const pe=atob(se),Le=JSON.parse(pe);Le.excludeSubset?(Z=!0,H=Le.excludeSubset.split(",")):Le.includeSubset&&(Z=!1,H=Le.includeSubset.split(","))}catch{ve?(Z=!0,H=ve.split(",")):ee&&(Z=!1,H=ee.split(","))}else ve?(Z=!0,H=ve.split(",")):ee&&(Z=!1,H=ee.split(","));x(Z),ve||ee?y(H):e.length>0&&y(Z?[]:Array.from({length:e.length},(pe,Le)=>(Le+1).toString()));const fe=D.get("_b");if(fe)try{const pe=atob(fe),Le=JSON.parse(pe),be=n.map(ne=>ne.name);Object.entries(Le).forEach(([ne,Ve])=>{be.includes(ne)?F[ne]=String(Ve):ne!=="_b"&&Q.push({name:ne,value:typeof Ve=="object"?JSON.stringify(Ve):String(Ve),type:typeof Ve=="boolean"?"boolean":typeof Ve=="number"?"number":Array.isArray(Ve)?"array":typeof Ve=="object"?"json":"string"})}),n.forEach(ne=>{ne.name in F||(ne.type==="boolean"&&ne.defaultValue!==void 0?F[ne.name]=String(ne.defaultValue):F[ne.name]="")}),c(!0)}catch{oe(D)}else oe(D);function oe(pe){n.forEach(be=>{const ne=pe.get(be.name);ne!==null?F[be.name]=ne:be.type==="boolean"&&be.defaultValue!==void 0&&(F[be.name]=String(be.defaultValue))});const Le=n.map(be=>be.name);pe.forEach((be,ne)=>{if(!Le.includes(ne)&&ne!=="_b"){let Ve="string";if(be==="true"||be==="false")Ve="boolean";else if(!isNaN(Number(be)))Ve="number";else try{const ht=JSON.parse(be);Ve=Array.isArray(ht)?"array":"json"}catch{}Q.push({name:ne,value:be,type:Ve})}})}s(F),r(Q)},[n]),B.useEffect(()=>{const D=window.location.pathname.replace(/\/settings$/,"");let F="";const Q={...t};if(b.length>0?g?(Q.excludeSubset=b.sort().join(","),delete Q.includeSubset):b.length!=e.length&&(Q.includeSubset=b.sort().join(","),delete Q.excludeSubset):(delete Q.includeSubset,delete Q.excludeSubset),i.forEach(Z=>{Z.name&&Z.value!==""&&Z.name!=="includeSubset"&&Z.name!=="excludeSubset"&&(Q[Z.name]=Z.value)}),d){const Z={};Object.entries(Q).forEach(([se,fe])=>{if(fe!==""){const oe=n.find(be=>be.name===se),pe=i.find(be=>be.name===se),Le=(oe==null?void 0:oe.type)||(pe==null?void 0:pe.type)||"string";if(Le==="boolean"&&(oe==null?void 0:oe.defaultValue)!==void 0&&String(oe.defaultValue)===fe)return;switch(Le){case"number":Z[se]=Number(fe);break;case"boolean":Z[se]=fe==="true";break;case"array":case"json":try{Z[se]=JSON.parse(fe)}catch{Z[se]=fe}break;default:Z[se]=fe}}});const ee=JSON.stringify(Z);F=`?_b=${btoa(ee)}`}else{const Z=new URLSearchParams;Object.entries(Q).forEach(([ee,ve])=>{if(ve!==""){const se=n.find(fe=>fe.name===ee);if((se==null?void 0:se.type)==="boolean"&&se.defaultValue!==void 0&&String(se.defaultValue)===ve)return;Z.set(ee,String(ve))}}),F=Z.toString()?`?${Z.toString()}`:""}const H=`${window.location.origin}${D}${F}`;o(H)},[t,i,d,n,b,g]);const w=(D,F)=>{s(Q=>({...Q,[D]:F}))},V=(D,F,Q)=>{r(H=>{const Z=[...H];return Z[D]={...Z[D],[F]:Q},Z})},N=D=>{const F=`${D+1}`;y(Q=>Q.includes(F)?Q.filter(Z=>Z!==F):[...Q,F])},O=()=>{x(D=>!D)},I=()=>{r(D=>[...D,{name:"",value:"",type:"string"}])},L=i.filter(D=>D.name!=="includeSubset"&&D.name!=="excludeSubset"),P=D=>{r(F=>F.filter((Q,H)=>H!==D))},k=()=>{f.current&&(f.current.select(),document.execCommand("copy"),h("Copied!"),setTimeout(()=>h("Copy URL"),2e3))},q=()=>{c(!d)},z=D=>{const{name:F,type:Q,defaultValue:H}=D;if(F==="includeSubset"||F==="excludeSubset")return null;const Z=t[F]||"";switch(Q){case"boolean":return T.jsxs(T.Fragment,{children:[T.jsx("button",{onClick:()=>w(F,Z==="true"?"false":"true"),className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${Z==="true"?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":Z==="true",children:T.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${Z==="true"?"translate-x-5":"translate-x-0"}`})}),T.jsx("span",{className:"ml-4 text-gray-500",children:Z==="true"?"True":"False"})]});case"number":return T.jsx("input",{type:"number",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:Z,onChange:ee=>w(F,ee.target.value),placeholder:H!==void 0?`Default: ${H}`:"Enter number..."});case"array":case"json":return T.jsx("textarea",{className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:Z,onChange:ee=>w(F,ee.target.value),placeholder:Q==="array"?"Enter comma-separated values or JSON array":"Enter JSON object",rows:3});case"string":default:return T.jsx("input",{type:"text",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:Z,onChange:ee=>w(F,ee.target.value),placeholder:H!==void 0&&H!==""?`Default: ${H}`:"Enter value..."})}},j=(D,F)=>D.name==="includeSubset"||D.name==="excludeSubset"?null:T.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center mb-2",children:[T.jsx("div",{className:"col-span-3",children:T.jsx("input",{type:"text",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:D.name,onChange:Q=>V(F,"name",Q.target.value),placeholder:"Parameter name"})}),T.jsx("div",{className:"col-span-2",children:T.jsxs("select",{className:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md",value:D.type,onChange:Q=>V(F,"type",Q.target.value),children:[T.jsx("option",{value:"string",children:"String"}),T.jsx("option",{value:"number",children:"Number"}),T.jsx("option",{value:"boolean",children:"Boolean"}),T.jsx("option",{value:"array",children:"Array"}),T.jsx("option",{value:"json",children:"JSON"})]})}),T.jsx("div",{className:"col-span-6",children:D.type==="boolean"?T.jsx(T.Fragment,{children:T.jsx("button",{onClick:()=>V(F,"value",D.value==="true"?"false":"true"),className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${D.value==="true"?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":D.value==="true",children:T.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${D.value==="true"?"translate-x-5":"translate-x-0"}`})})}):D.type==="array"||D.type==="json"?T.jsx("textarea",{className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:D.value,onChange:Q=>V(F,"value",Q.target.value),placeholder:D.type==="array"?"Enter JSON array [1,2,3]":'Enter JSON object {"key":"value"}',rows:1}):D.type==="number"?T.jsx("input",{type:"number",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:D.value,onChange:Q=>V(F,"value",Q.target.value),placeholder:"Enter number..."}):T.jsx("input",{type:"text",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:D.value,onChange:Q=>V(F,"value",Q.target.value),placeholder:"Enter value..."})}),T.jsx("div",{className:"col-span-1",children:T.jsx("button",{onClick:()=>P(F),className:"inline-flex cursor-pointer items-center justify-center p-2 border border-transparent rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500","aria-label":"Remove parameter",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:T.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})})]});return T.jsxs("div",{className:"max-w-4xl mx-auto p-6",children:[T.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Experiment Parameters"}),T.jsx("p",{className:"text-gray-700 mb-6",children:"Configure the experiment by setting parameter values below. Fields left empty will be assigned their default value. Once configured, you can copy the URL to run the experiment with these settings."}),T.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[T.jsxs("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:[T.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Registered Parameters"}),T.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Parameters defined in the experiment configuration."})]}),T.jsx("ul",{className:"divide-y divide-gray-200",children:p.map(D=>T.jsx("li",{className:"px-4 py-4 sm:px-6",children:T.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[T.jsx("div",{className:"col-span-2",children:T.jsxs("div",{className:"flex flex-col h-full",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx("label",{className:"text-base font-medium text-gray-900",children:D.name}),T.jsx("span",{className:"ml-2 inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-gray-100 text-gray-600",children:D.type})]}),D.description&&T.jsx("p",{className:"mt-1 text-sm text-gray-500 flex-grow",children:D.description}),D.defaultValue!==void 0&&T.jsxs("p",{className:"mt-auto pt-2 text-xs text-gray-500",children:["Default: ",T.jsxs("code",{children:[" ",JSON.stringify(D.defaultValue)]})]})]})}),T.jsx("div",{className:"col-span-1 flex items-center",children:z(D)})]})},D.name))})]}),T.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[T.jsx("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:T.jsxs("div",{className:"flex justify-between items-center",children:[T.jsxs("div",{children:[T.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Custom Parameters"}),T.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Add any additional parameters to be stored in the data for this run."})]}),T.jsxs("button",{onClick:I,className:"inline-flex cursor-pointer items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:[T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"-ml-1 mr-2 h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:T.jsx("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})}),"Add Parameter"]})]})}),T.jsx("div",{className:"px-4 py-5 sm:px-6",children:L.length===0?T.jsx("p",{className:"text-sm text-gray-500 italic",children:'No custom parameters added. Click "Add Parameter" to create one.'}):T.jsxs("div",{children:[T.jsxs("div",{className:"grid grid-cols-12 gap-2 mb-2",children:[T.jsx("div",{className:"col-span-3",children:T.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"PARAMETER NAME"})}),T.jsx("div",{className:"col-span-2",children:T.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"TYPE"})}),T.jsx("div",{className:"col-span-6",children:T.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"VALUE"})}),T.jsx("div",{className:"col-span-1"})]}),L.map((D,F)=>T.jsx("div",{children:j(D,F)},F))]})})]}),e.length>0&&T.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[T.jsx("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:T.jsxs("div",{className:"flex justify-between items-center",children:[T.jsxs("div",{children:[T.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Trial Selection"}),T.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Select which trials to include or exclude from the experiment."})]}),T.jsxs("div",{className:"flex items-center",children:[T.jsx("button",{onClick:O,className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${g?"bg-red-600":"bg-green-600"}`,role:"switch","aria-checked":g,children:T.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${g?"translate-x-5":"translate-x-0"}`})}),T.jsx("span",{className:"ml-2 text-sm text-gray-600",children:g?"Exclude mode":"Include mode"})]})]})}),T.jsxs("div",{className:"px-4 py-5 sm:px-6",children:[T.jsx("p",{className:"mb-4 text-sm font-medium text-gray-500",children:g?"Check trials you want to EXCLUDE from the experiment":"Check trials you want to INCLUDE in the experiment"}),T.jsx("div",{className:"border border-gray-200 rounded-md overflow-hidden",children:T.jsx("ul",{className:"divide-y divide-gray-200",children:e.map((D,F)=>T.jsx("li",{className:"cursor-pointer px-4 py-3 hover:bg-gray-50",onClick:Q=>{Q.target.type!=="checkbox"&&!Q.target.closest("label")&&N(F)},children:T.jsx("div",{className:"flex items-center",children:T.jsxs("div",{className:"flex items-center flex-grow",children:[T.jsx("input",{id:`trial-${F}`,type:"checkbox",className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded cursor-pointer",checked:b.includes(`${F+1}`),onChange:()=>N(F)}),T.jsxs("label",{htmlFor:`trial-${F}`,className:"ml-3 flex-grow flex items-center cursor-pointer",children:[T.jsxs("div",{className:"w-8 text-center text-xs text-gray-500 font-medium",children:["#",F+1]}),T.jsx("div",{className:"flex-grow",children:D.name?T.jsx("span",{className:"font-medium text-gray-900",children:D.name}):T.jsx("span",{className:"font-medium text-gray-500",children:D.type})}),T.jsx("div",{className:"ml-2",children:T.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800",children:D.type})})]})]})})},F))})})]})]}),T.jsxs("div",{className:"bg-white shadow sm:rounded-md p-6 mb-8",children:[T.jsxs("div",{className:"flex justify-between items-center mb-4",children:[T.jsx("h2",{className:"text-lg font-medium",children:"Generated URL"}),T.jsxs("div",{className:"flex items-center",children:[T.jsx("button",{onClick:q,className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${d?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":d,children:T.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${d?"translate-x-5":"translate-x-0"}`})}),T.jsx("span",{className:"ml-2 text-sm text-gray-600",children:d?"Base64 Encoded":"Plain Parameters"})]})]}),T.jsxs("div",{className:"flex flex-col md:flex-row gap-3",children:[T.jsx("input",{ref:f,type:"text",className:"flex-grow px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:a,readOnly:!0}),T.jsx("button",{onClick:k,className:"inline-flex cursor-pointer justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:l})]}),d&&T.jsxs("p",{className:"mt-4 text-sm text-gray-600",children:[T.jsx("span",{className:"font-medium",children:"Note:"}),' Base64 encoding combines all parameters into a single "_b" parameter, creating shorter URLs that hide parameter details.']})]}),T.jsx("div",{className:"flex justify-center",children:T.jsx("a",{href:a,className:"inline-flex justify-center py-4 px-5 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",children:"Launch Experiment with these Settings"})})]})},nx=new Yv;function rx({children:n,disableSettings:e}){return window.location.pathname.endsWith("/settings")&&!e?T.jsx(ix,{paramRegistry:ra.getRegistry(),timelineRepresentation:ra.getTimelineRepresentation()}):T.jsxs(t0,{client:nx,children:[n,T.jsx(Eg,{position:"top-center",autoClose:3e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!1,pauseOnHover:!0,theme:"light",toastClassName:()=>"relative flex p-4 min-h-10 rounded-none justify-between overflow-hidden cursor-pointer border-2 border-black shadow-[2px_2px_0px_rgba(0,0,0,1)] bg-white",bodyClassName:"text-black font-sans"})]})}function Sg(n){return`user_${n}`}function Ig(n){const e=[],t={};let s=0;function i(l){return`${l}_auto_${s++}`}function r(l){return(h,d)=>l(d,h)}function a(l){return(h,d)=>{const c=l(d,h);return typeof c=="object"&&c!==null?{...h,...c}:(console.warn("Store update function did not return an object. Store remains unchanged.",{data:d,store:h}),h)}}function o(l){for(const h of l){let d=!1;if(typeof h=="object"&&h!==null&&"type"in h)switch(h.type){case"MARKER":{const g=h;t[Sg(g.id)]=e.length,d=!0;break}case"IF_GOTO":{const g=h,x=r(g.cond);e.push({type:"IfGoto",cond:x,marker:Sg(g.marker)}),d=!0;break}case"UPDATE_STORE":{const x=a(h.fun);e.push({type:"UpdateStore",fun:x}),d=!0;break}case"IF_BLOCK":{const g=h,x=i("if_end"),b=r(g.cond);e.push({type:"IfGoto",cond:(y,f)=>!b(y,f),marker:x}),o(g.timeline),t[x]=e.length,d=!0;break}case"WHILE_BLOCK":{const g=h,x=i("while_start"),b=i("while_end"),y=r(g.cond);t[x]=e.length,e.push({type:"IfGoto",cond:(f,p)=>!y(f,p),marker:b}),o(g.timeline),e.push({type:"IfGoto",cond:()=>!0,marker:x}),t[b]=e.length,d=!0;break}}d||e.push({type:"ExecuteContent",content:h})}}return o(n),{instructions:e,markers:t}}function Pg({next:n}){const[e,t]=B.useState("checking");return B.useEffect(()=>{if(e!=="checking")return;(async()=>{if(pr()!=="mobile"||Ki.getPlatform()!=="android"){n({});return}try{await hn.writeFile({path:"permission_check.txt",data:"Testing permissions",directory:fi.Documents,encoding:wo.UTF8});try{await hn.deleteFile({path:"permission_check.txt",directory:fi.Documents})}catch(i){console.log("Cleanup error:",i)}t("granted"),n({})}catch(i){console.error("Permission denied or error:",i),t("denied")}})()},[n,e]),e==="checking"?null:T.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10",children:[T.jsx("p",{children:"Storage permission is required to save your data."}),T.jsx("p",{children:"Please grant permission when prompted."}),T.jsxs("p",{children:['If there is no popup, go to "Settings" ',">",' "Apps" ',">",' "Name of the App" ',">",' "Permissions" ',">",' "Storage" ',">",' "Allow"']}),T.jsx("button",{onClick:()=>t("checking"),className:"mt-8 bg-white px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"Try Again"})]})}function ax(n){return typeof n=="function"}function ox(n){return typeof n=="object"&&n!==null&&typeof n.draw=="function"}function Tg({next:n,updateStore:e,timeline:t,width:s,height:i,store:r,styleCanvas:a,initCanvas:o}){const{instructions:l,markers:h}=B.useMemo(()=>Ig(t),[t]),d=B.useRef(0),c=B.useRef(0),g=B.useRef(!0),x=B.useRef(null),b=B.useRef(null),y=B.useRef([]),f=B.useRef(r??{}),p=B.useRef(null),w=B.useRef(0),V=B.useRef(null);B.useEffect(()=>{const j=f.current._reactiveScreenRefreshRate,D=typeof j=="number"&&j>=20&&j<=300;V.current=D?1e3/j:null},[r]);const N=B.useCallback(j=>{if(j.type!=="ExecuteContent")return null;const D=j.content;if(ax(D))try{return D(y.current,f.current)}catch(F){return console.error("Error executing dynamic canvas slide generator:",F),null}else if(ox(D))return D;return console.warn("ExecuteContent instruction content is not a valid CanvasSlide or Generator:",D),null},[]),O=B.useCallback(()=>{const j=b.current;if(!j)return{};const D=j.getContext("2d");if(!D)return{};const F=window.devicePixelRatio||1,Q=j.width/F,H=j.height/F;return{ctx:D,canvasWidth:Q,canvasHeight:H}},[]),I=B.useCallback(()=>{const{ctx:j,canvasWidth:D,canvasHeight:F}=O();j&&(j.fillStyle="white",j.fillRect(0,0,D,F),g.current=!1)},[O]),L=B.useCallback(j=>{const{ctx:D,canvasWidth:F,canvasHeight:Q}=O();if(D){if(D.fillStyle="white",D.fillRect(0,0,F,Q),a)try{a(D,F,Q)}catch(H){console.error("Error during styleCanvas function:",H)}else D.fillStyle="black";try{j.draw(D,F,Q)}catch(H){console.error("Error during slide draw function:",H)}c.current=Ft(),g.current=!0,x.current=null,w.current+=1}},[O]);let P;const k=B.useCallback(()=>{const j=Ft(),D=d.current;if(D<0||D>=l.length){p.current&&cancelAnimationFrame(p.current),p.current=null;return}const F=l[D],Q=N(F);if(!Q){p.current&&cancelAnimationFrame(p.current),p.current=null;return}const H=Q.displayDuration??1/0,Z=Q.responseTimeLimit??1/0,ee=Q.allowedKeys??!1,ve=ee===!1||Array.isArray(ee)&&ee.length===0;let se=!1;const fe=j-c.current+(V.current!==null?V.current*.5:0);g.current&&H!==1/0&&fe>=H&&(I(),(ve||Z===1/0)&&(se=!0)),!se&&Z!==1/0&&fe>=Z&&(se=!0,g.current&&H!==1/0&&fe<H&&I()),se?P():g.current&&H!==1/0&&fe<H||Z!==1/0&&fe<Z?p.current=requestAnimationFrame(k):(p.current&&cancelAnimationFrame(p.current),p.current=null)},[l,N,I]),q=B.useCallback(()=>{let j=!1;for(p.current&&cancelAnimationFrame(p.current),p.current=null;!j&&d.current<l.length;){const D=l[d.current];switch(D.type){case"IfGoto":if(D.cond(f.current,y.current)){const F=h[D.marker];F!==void 0?d.current=F:(console.error(`Marker ${D.marker} not found`),d.current++)}else d.current++;continue;case"UpdateStore":{f.current={...f.current,...D.fun(f.current,y.current)},d.current++;continue}case"ExecuteContent":{if(j=!0,b.current){const F=N(D);if(F){L(F);const Q=F.displayDuration??1/0,H=F.responseTimeLimit??1/0;(Q!==1/0||H!==1/0)&&(p.current=requestAnimationFrame(k))}else{console.error("Failed to resolve slide content during control flow:",D),d.current++,j=!1;continue}}else{console.error("Canvas element not found during control flow.");return}break}default:console.warn("Unknown instruction type during control flow:",D),d.current++;continue}}!j&&d.current>=l.length&&(p.current&&cancelAnimationFrame(p.current),p.current=null,e(f.current),n(y.current))},[l,h,N,L,k,n]);P=B.useCallback(()=>{const j=x.current,D=Ft();p.current&&cancelAnimationFrame(p.current),p.current=null;const F=d.current;if(F>=l.length||l[F].type!=="ExecuteContent"){d.current++,q();return}const Q=l[F],H=N(Q);if(H&&!H.ignoreData){let Z={index:d.current,trialNumber:w.current-1,start:c.current,end:D,duration:D-c.current,key:j?j.key:null,reactionTime:j?j.reactionTime:null};const ee=typeof H.metadata=="function"?H.metadata(y.current,f.current):H.metadata;H.nestMetadata?Z={...Z,metadata:ee}:Z={...ee,...Z},y.current.push(Z)}d.current++,x.current=null,q()},[l,N,q]);const z=B.useCallback(j=>{const D=Ft(),F=d.current;if(F>=l.length||!g.current)return;const Q=l[F];if(Q.type!=="ExecuteContent")return;const H=N(Q);if(!H)return;const Z=H.responseTimeLimit??1/0,ee=D-c.current<Z,ve=H.allowedKeys??!1;if((ve===!0||Array.isArray(ve)&&ve.includes(j.key))&&ee){const fe=H.endSlideOnResponse??!0,oe=H.hideOnResponse??!1,pe=H.ignoreData??!1;(!x.current||!fe)&&(!x.current&&!pe&&(x.current={key:j.key,time:D,reactionTime:D-c.current}),oe&&I(),fe&&P())}},[l,N,P,I]);return B.useEffect(()=>{const j=b.current;if(!j)return;const D=Vn()?window.screen.width:window.innerWidth,F=Vn()?window.screen.height:window.innerHeight;let Q,H;const Z=(ne,Ve)=>{if(typeof ne=="number")return ne;if(typeof ne=="string"&&ne.includes("%")){const ht=parseFloat(ne);if(!isNaN(ht))return Ve*ht/100}return null};let ee=Z(s,D),ve=Z(i,F);const se=typeof s=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(s),fe=typeof i=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(i);if(ee!==null&&ve!==null)Q=ee,H=ve;else if(ee!==null&&ve===null&&!fe)Q=ee,H=ee;else if(ve!==null&&ee===null&&!se)H=ve,Q=ve;else if(ee===null&&ve===null&&!se&&!fe){const ne=Math.min(D,F);Q=ne,H=ne}else{let ne=ee,Ve=ve;if(fe&&ne===null&&(ne=Ve??F),se&&Ve===null&&(Ve=ne??D),ne===null&&Ve===null){const ht=Math.min(D,F);ne=ht,Ve=ht}else ne===null?ne=Ve:Ve===null&&(Ve=ne);Q=ne,H=Ve??0}if(se&&!fe)try{const ne=s.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);ne&&(Q=H/parseFloat(ne[2])*parseFloat(ne[1]))}catch{console.error("Invalid width ratio string:",s)}else if(fe&&!se)try{const ne=i.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);ne&&(H=Q/parseFloat(ne[1])*parseFloat(ne[2]))}catch{console.error("Invalid height ratio string:",i)}else if(se&&fe){console.warn(`Both width (${s}) and height (${i}) are ratios. Prioritizing width.`);try{const ne=s.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);if(ne){Q=F/parseFloat(ne[2])*parseFloat(ne[1]);const Ve=i.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);Ve?H=Q/parseFloat(Ve[1])*parseFloat(Ve[2]):H=Q}else{const Ve=Math.min(D,F);Q=Ve,H=Ve}}catch(ne){console.error("Error parsing ratios:",ne);const Ve=Math.min(D,F);Q=Ve,H=Ve}}const oe=window.devicePixelRatio||1,pe=Math.round(Q),Le=Math.round(H);j.width=Math.round(pe*oe),j.height=Math.round(Le*oe),j.style.width=pe+"px",j.style.height=Le+"px";const be=j.getContext("2d");if(be&&be.scale(oe,oe),o&&be)try{o(be,pe,Le)}catch(ne){console.error("Error during canvas initialization:",ne)}return window.addEventListener("keydown",z),q(),()=>{window.removeEventListener("keydown",z),p.current&&cancelAnimationFrame(p.current)}},[t,s,i,z,q]),T.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:T.jsx("canvas",{ref:b})})}function Rg({check:n,content:e=T.jsx("div",{children:"Your device doesn't meet the requirements for this experiment."}),data:t,store:s,updateStore:i,next:r}){const[a,o]=B.useState(!1),l=B.useRef(!1);return B.useEffect(()=>{if(l.current)return;(async()=>{const d=window.innerWidth,c=window.innerHeight,g=window.screen.width,x=window.screen.height,b=navigator.userAgent;let y="Unknown",f="Unknown";if(b.indexOf("Chrome")>-1){y="Chrome";const k=b.match(/Chrome\/(\d+\.\d+)/);f=k?k[1]:"Unknown"}else if(b.indexOf("Firefox")>-1){y="Firefox";const k=b.match(/Firefox\/(\d+\.\d+)/);f=k?k[1]:"Unknown"}else if(b.indexOf("Safari")>-1){y="Safari";const k=b.match(/Version\/(\d+\.\d+)/);f=k?k[1]:"Unknown"}else if(b.indexOf("Edge")>-1){y="Edge";const k=b.match(/Edge\/(\d+\.\d+)/);f=k?k[1]:"Unknown"}else if(b.indexOf("MSIE")>-1||b.indexOf("Trident/")>-1){y="Internet Explorer";const k=b.match(/(?:MSIE |rv:)(\d+\.\d+)/);f=k?k[1]:"Unknown"}const p=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(b);let w="Unknown";/Windows/.test(b)?w="Windows":/Macintosh|Mac OS X/.test(b)?w="MacOS":/Linux/.test(b)?w="Linux":/Android/.test(b)?w="Android":/iOS|iPhone|iPad|iPod/.test(b)&&(w="iOS");const V=!!(window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext),N=!!(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen||document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled);let O=!1,I=!1;try{const k=await navigator.mediaDevices.enumerateDevices();O=k.some(q=>q.kind==="videoinput"),I=k.some(q=>q.kind==="audioinput")}catch(k){console.error("Error checking media devices:",k)}const L={windowWidth:d,windowHeight:c,screenWidth:g,screenHeight:x,browser:y,browserVersion:f,isMobile:p,operatingSystem:w,hasWebAudio:V,hasFullscreen:N,hasWebcam:O,hasMicrophone:I};i({_reactiveDeviceInfo:L}),(n?n(L,t,s):!0)&&!l.current?(l.current=!0,r(L)):o(!0)})()},[n,t,i,r]),a?T.jsx("div",{className:"max-w-prose mx-auto mt-20 mb-20 px-4",children:T.jsx("article",{className:"prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed",children:e})}):null}function lx({next:n,updateStore:e,store:t,title:s="Settings",description:i,fields:r,saveButtonText:a="Save Configuration"}){const[o,l]=B.useState({}),[h,d]=B.useState({}),[c,g]=B.useState({});B.useEffect(()=>{const p={};r.forEach(V=>{p[V.storeKey]=(t==null?void 0:t[V.storeKey])!==void 0?t[V.storeKey]:V.defaultValue}),l(p);const w={};r.forEach(V=>{w[V.storeKey]=!1}),g(w)},[t,r]);const x=(p,w)=>{if(p.type==="integer"||p.type==="float"){if(w==null||w==="")return"This field is required";if(p.min!==void 0&&w<p.min)return`Value must be at least ${p.min}`;if(p.max!==void 0&&w>p.max)return`Value must be at most ${p.max}`}else if(p.type==="string"){if(p.minLength!==void 0&&w.length<p.minLength)return`Must be at least ${p.minLength} characters`;if(p.maxLength!==void 0&&w.length>p.maxLength)return`Must be at most ${p.maxLength} characters`}if(p.validate){const V=p.validate(w);if(V!==!0&&V!=="")return typeof V=="string"?V:"Invalid value"}return null};B.useEffect(()=>{const p={};r.forEach(w=>{const V=o[w.storeKey];if(!c[w.storeKey])return;const N=x(w,V);N&&(p[w.storeKey]=N)}),d(p)},[o,r,c]);const b=(p,w)=>{l(V=>({...V,[p]:w})),g(V=>({...V,[p]:!0}))},y=()=>{const p={};r.forEach(V=>{p[V.storeKey]=!0}),g(p);const w={};r.forEach(V=>{const N=o[V.storeKey];if(V.type==="integer"||V.type==="float"?N==null||N===""?w[V.storeKey]="This field is required":V.min!==void 0&&N<V.min?w[V.storeKey]=`Value must be at least ${V.min}`:V.max!==void 0&&N>V.max&&(w[V.storeKey]=`Value must be at most ${V.max}`):V.type==="string"&&(V.minLength!==void 0&&N.length<V.minLength?w[V.storeKey]=`Must be at least ${V.minLength} characters`:V.maxLength!==void 0&&N.length>V.maxLength&&(w[V.storeKey]=`Must be at most ${V.maxLength} characters`)),V.validate&&!w[V.storeKey]){const O=V.validate(N);O!==!0&&O!==""&&(w[V.storeKey]=typeof O=="string"?O:"Invalid value")}}),d(w),Object.keys(w).length===0&&(e(o),n(o))},f=Object.keys(h).length>0;return T.jsxs("div",{className:"max-w-prose mx-auto mt-20 mb-20 px-4",children:[T.jsx("h1",{className:"text-4xl font-bold mb-6",children:s}),i&&T.jsx("article",{className:"prose prose-lg mb-10",children:i}),T.jsx("div",{className:"mt-12 space-y-12",children:r.map(p=>T.jsxs("div",{className:"space-y-2",children:[T.jsxs("label",{className:"block text-xl font-medium text-gray-900",children:[p.label,p.type==="integer"&&p.min!==void 0&&p.max!==void 0&&` (${p.min}-${p.max})`,p.type==="float"&&p.min!==void 0&&p.max!==void 0&&` (${p.min}-${p.max})`]}),p.prompt&&T.jsx("p",{className:"mb-4 text-base text-gray-700 mb-2",children:p.prompt}),p.type==="boolean"&&T.jsxs("div",{className:"flex items-center",children:[T.jsxs("div",{className:`relative cursor-pointer w-10 h-10 flex items-center justify-center border-2 border-black rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${o[p.storeKey]?"bg-blue-600 text-white":"bg-white"}`,onClick:()=>b(p.storeKey,!o[p.storeKey]),children:[T.jsx("input",{type:"checkbox",checked:!!o[p.storeKey],onChange:w=>b(p.storeKey,w.target.checked),className:"absolute opacity-0 h-0 w-0"}),o[p.storeKey]&&T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})]}),T.jsx("span",{className:"ml-3 text-lg",children:"Enabled"})]}),(p.type==="integer"||p.type==="float")&&T.jsxs("div",{className:"flex items-center space-x-4",children:[p.min!==void 0&&p.max!==void 0&&T.jsx("button",{onClick:()=>b(p.storeKey,Math.max(p.min||0,(o[p.storeKey]||0)-(p.step||1))),className:"cursor-pointer bg-white h-10 w-10 flex items-center justify-center border-2 border-black font-bold text-black text-lg rounded-full shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"-"}),T.jsx("input",{type:"text",value:o[p.storeKey]||"",onChange:w=>{const V=w.target.value;let N;p.type==="integer"?N=V===""?"":parseInt(V,10):p.type==="float"&&(N=V===""?"":parseFloat(V)),(V===""||!isNaN(N))&&b(p.storeKey,N)},step:p.step||(p.type==="integer"?1:.1),min:p.min,max:p.max,className:"w-24 px-4 py-2 text-center border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),p.min!==void 0&&p.max!==void 0&&T.jsx("button",{onClick:()=>b(p.storeKey,Math.min(p.max||1/0,(o[p.storeKey]||0)+(p.step||1))),className:"cursor-pointer bg-white h-10 w-10 flex items-center justify-center border-2 border-black font-bold text-black text-lg rounded-full shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"+"})]}),p.type==="string"&&T.jsx("input",{type:"text",value:o[p.storeKey]||"",onChange:w=>b(p.storeKey,w.target.value),className:"w-full px-4 py-2 border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),h[p.storeKey]&&c[p.storeKey]&&T.jsx("div",{className:"text-red-500 text-sm mt-1",children:h[p.storeKey]}),p.component&&T.jsx("div",{className:"mt-4",children:B.createElement(p.component,{value:o[p.storeKey]})})]},p.storeKey))}),T.jsx("div",{className:"mt-12 flex justify-center",children:T.jsx("button",{onClick:y,disabled:f,className:`bg-white cursor-pointer px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${f?"opacity-50 cursor-not-allowed":""}`,children:a})})]})}const ux={Text:aa,ProlificEnding:Zu,EnterFullscreen:dg,ExitFullscreen:cg,Quest:Jd,Upload:ag,MicrophoneCheck:th,PlainInput:$u,RequestFilePermission:Pg,CanvasBlock:Tg,CheckDevice:Rg,StoreUI:lx},hx={voicerecorder:Om};function Ag(n){return typeof n=="object"&&n!==null&&typeof n.type=="string"}function dx({timeline:n,config:e={showProgressBar:!1},components:t={},questions:s={}}){const i=B.useMemo(()=>Ig(n),[n]),[r,a]=B.useState(0),o=B.useRef((()=>{const O={},I=new URLSearchParams(window.location.search);for(const[q,z]of I.entries())O[q]=z;const L=ra.getRegistry()||[],P={};for(const[q,z]of Object.entries(O))P[q]={value:z,registered:!1,defaultValue:void 0,type:void 0,description:void 0};for(const q of L)P[q.name]={value:q.value!==void 0?q.value:O[q.name],registered:!0,defaultValue:q.defaultValue,type:q.type,description:q.description};return[{index:-1,trialNumber:-1,start:Ft(),end:Ft(),duration:0,type:"",name:"",responseData:{userAgent:navigator.userAgent,params:P}}]})()),[l,h]=B.useState(0),d=B.useRef(Ft()),c=B.useRef({}),g={...ux,...t},x={...hx,...s},b=B.useMemo(()=>{const O=i.instructions.length;return O>0?r/O:0},[r,i.instructions]);B.useEffect(()=>{window.scrollTo(0,0)},[r]);function y(O){c.current={...c.current,...O}}function f(O,I,L){const P=Ft(),k=i.instructions[r],q=I!==void 0?I:d.current,z=L!==void 0?L:P;if((k==null?void 0:k.type)==="ExecuteContent"){const F=k.content;if(Ag(F)){let Q={index:r,trialNumber:l+1,start:q,end:z,duration:z-q,type:F.type,name:F.name??"",responseData:O};const H=typeof F.metadata=="function"?F.metadata(o.current,c.current):F.metadata;F.nestMetadata?Q={...Q,metadata:H}:Q={...H,...Q},o.current=[...o.current,Q],h(Z=>Z+1)}else console.log("ExecuteContent finished, but content wasn't standard component format:",F)}let j=r+1,D=!1;for(;j<i.instructions.length;){const F=i.instructions[j];switch(F.type){case"IfGoto":if(F.cond(c.current,o.current)){const Q=i.markers[F.marker];if(Q!==void 0){j=Q;continue}else console.error(`Marker ${F.marker} not found`),j++}else j++;break;case"UpdateStore":y(F.fun(c.current,o.current)),j++;break;case"ExecuteContent":D=!0,d.current=Ft(),a(j);return;default:console.error("Unknown instruction type encountered:",F),j++;break}}D||a(j)}const p=B.useCallback(O=>{let I=0;const L=Ft(),P=2e4;let k,q=L;const z=1e3,j=()=>{const H=Ft()-L;return H>0?Math.round(I*1e3/H):null},D=()=>{k&&cancelAnimationFrame(k)},F=Q=>{I++;const H=Q-L;Q-q>=z&&(O(j()),q=Q),H<P?k=requestAnimationFrame(F):(D(),O(j()))};return k=requestAnimationFrame(F),D},[]),w=({children:O,collectRefreshRate:I})=>{const L=B.useRef(null),P=B.useRef(null);B.useEffect(()=>{if(L.current=Ft(),I)return p(z=>{P.current=z,y({_reactiveScreenRefreshRate:z})})},[]);const k=B.Children.map(O,q=>{if(B.isValidElement(q)){const z=(j,D,F)=>{const Q=Ft(),H=D!==void 0?D:L.current;f(j,H??void 0,(F!==void 0?F:Q)??void 0)};return B.cloneElement(q,{...q.props,next:z})}return q});return T.jsx(T.Fragment,{children:k})},V=i.instructions[r];let N=null;if((V==null?void 0:V.type)==="ExecuteContent"){const O=V.content;if(Ag(O)){const I=g[O.type];if(I){const L=typeof O.props=="function"?O.props(o.current,c.current):O.props||{};N=T.jsx(w,{collectRefreshRate:O.collectRefreshRate,children:T.jsx(I,{next:f,updateStore:y,store:c.current,data:o.current,...O.type==="Quest"?{customQuestions:x}:{},...L})},r)}else console.error(`No component found for type: ${O.type}`),N=T.jsxs("div",{children:['Error: Component type "',O.type,'" not found.']})}else console.warn("ExecuteContent instruction does not contain standard component data:",O),N=T.jsx("div",{children:"Non-component content encountered."})}else r>=i.instructions.length&&(N=T.jsx(T.Fragment,{}));return T.jsxs("div",{className:"w-full h-full",children:[T.jsx("div",{className:` ${e.showProgressBar?"":"hidden "} px-4 mt-4 sm:mt-12 max-w-2xl mx-auto flex-1 h-6 bg-gray-200 rounded-full overflow-hidden`,children:T.jsx("div",{className:`h-full bg-gray-200 rounded-full duration-300 ${b>0?" border-black border-2":""}`,style:{width:`${b*100}%`,backgroundImage:`repeating-linear-gradient(
|