@wp-playground/client 3.1.1 → 3.1.2
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/index.cjs +534 -403
- package/index.js +4159 -3967
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
2
|
-
`):JSON.stringify(e,null,2),
|
|
1
|
+
"use strict";var Jo=e=>{throw TypeError(e)};var Qo=(e,t,r)=>t.has(e)||Jo("Cannot "+r);var Ri=(e,t,r)=>(Qo(e,t,"read from private field"),r?r.call(e):t.get(e)),el=(e,t,r)=>t.has(e)?Jo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tl=(e,t,r,i)=>(Qo(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var nn=typeof document<"u"?document.currentScript:null;const jp=function(){var e;return typeof process<"u"&&((e=process.release)==null?void 0:e.name)==="node"?"NODE":typeof window<"u"?"WEB":typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"WORKER":"NODE"}();if(jp==="NODE"){let e=function(r){return new Promise(function(i,a){r.onload=r.onerror=function(s){r.onload=r.onerror=null,s.type==="load"?i(r.result):a(new Error("Failed to read the blob/file"))}})},t=function(){const r=new Uint8Array([1,2,3,4]),a=new File([r],"test").stream();try{return a.getReader({mode:"byob"}),!0}catch{return!1}};if(typeof File>"u"){class r extends Blob{constructor(a,s,n){super(a);let o;n!=null&&n.lastModified&&(o=new Date),(!o||isNaN(o.getFullYear()))&&(o=new Date),this.lastModifiedDate=o,this.lastModified=o.getMilliseconds(),this.name=s||""}}global.File=r}typeof Blob.prototype.arrayBuffer>"u"&&(Blob.prototype.arrayBuffer=function(){const i=new FileReader;return i.readAsArrayBuffer(this),e(i)}),typeof Blob.prototype.text>"u"&&(Blob.prototype.text=function(){const i=new FileReader;return i.readAsText(this),e(i)}),(typeof Blob.prototype.stream>"u"||!t())&&(Blob.prototype.stream=function(){let r=0;const i=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:512*1024,async pull(a){const s=a.byobRequest.view,o=await i.slice(r,r+s.byteLength).arrayBuffer(),l=new Uint8Array(o);new Uint8Array(s.buffer).set(l);const p=l.byteLength;a.byobRequest.respond(p),r+=p,r>=i.size&&a.close()}})})}if(jp==="NODE"&&typeof CustomEvent>"u"){class e extends Event{constructor(r,i={}){super(r,i),this.detail=i.detail}initCustomEvent(){}}globalThis.CustomEvent=e}function Up(e){return e&&"read"in e&&typeof e.read=="function"}async function Kd(e){if(!Up(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}class dn{static async create(t){const r=await Kd(t),i=Up(t)?t:void 0;return dn.createFromDeclaration(r,i)}static createFromDeclaration(t,r=void 0){return new dn(t,r,t.version||1)}constructor(t,r,i){this.declaration=t,this.bundle=r,this.version=i}getVersion(){return this.version}getDeclaration(){return this.declaration}isBundle(){return this.bundle!==void 0}getBundle(){return this.bundle}getBlueprint(){return this.getBundle()||this.getDeclaration()}}const Xd="playground-log",rl=(e,...t)=>{Oe.dispatchEvent(new CustomEvent(Xd,{detail:{log:e,args:t}}))},Jd=(e,...t)=>{switch(typeof e.message=="string"?Reflect.set(e,"message",Wa(e.message)):e.message.message&&typeof e.message.message=="string"&&Reflect.set(e.message,"message",Wa(e.message.message)),e.severity){case ht.Debug:console.debug(e.message,...t);break;case ht.Info:console.info(e.message,...t);break;case ht.Warn:console.warn(e.message,...t);break;case ht.Error:console.error(e.message,...t);break;case ht.Fatal:console.error(e.message,...t);break;default:console.log(e.message,...t)}},Qd=e=>e instanceof Error?[e.message,e.stack].join(`
|
|
2
|
+
`):JSON.stringify(e,null,2),Bp=[],nl=e=>{Bp.push(e)},Ma=e=>{if(e.raw===!0)nl(e.message);else{const t=nh(typeof e.message=="object"?Qd(e.message):e.message,e.severity,e.prefix??gr.JS);nl(t)}};let Fi=0;const sl="/wordpress/wp-content/debug.log",eh=async e=>await e.fileExists(sl)?await e.readFileAsText(sl):"",qp=(e,t)=>{t.addEventListener("request.end",async()=>{const r=await eh(t);if(r.length>Fi){const i=r.substring(Fi);e.logMessage({message:i,severity:ht.Log,raw:!0}),Fi=r.length}}),t.addEventListener("request.error",r=>{r=r,r.error&&(e.logMessage({message:`${r.error.message} ${r.error.stack}`,severity:ht.Fatal,prefix:r.source==="request"?gr.PHP:gr.WASM}),e.dispatchEvent(new CustomEvent(e.fatalErrorEvent,{detail:{logs:e.getLogs(),source:r.source}})))})},ht={Fatal:{name:"fatal",level:0},Error:{name:"error",level:1},Warn:{name:"warn",level:2},Log:{name:"log",level:3},Info:{name:"info",level:4},Debug:{name:"debug",level:5}},gr={WASM:"Wasm Crash",PHP:"PHP",JS:"JavaScript"};class th extends EventTarget{constructor(t=[]){super(),this.fatalErrorEvent="playground-fatal-error",this.severity=ht.Info,this.handlers=t}getLogs(){return this.handlers.includes(Ma)?[...Bp]:(this.error(`Logs aren't stored because the logToMemory handler isn't registered.
|
|
3
3
|
If you're using a custom logger instance, make sure to register logToMemory handler.
|
|
4
|
-
`),[])}logMessage(t,...r){const i={...t,severity:t.severity??ht.Log};for(const a of this.handlers)i.severity.level<=this.severity.level&&a(i,...r)}setSeverityFilterLevel(t){this.severity=t}log(t,...r){this.logMessage({message:t,severity:ht.Log,prefix:gr.JS,raw:!1},...r)}debug(t,...r){this.logMessage({message:t,severity:ht.Debug,prefix:gr.JS,raw:!1},...r)}info(t,...r){this.logMessage({message:t,severity:ht.Info,prefix:gr.JS,raw:!1},...r)}warn(t,...r){this.logMessage({message:t,severity:ht.Warn,prefix:gr.JS,raw:!1},...r)}error(t,...r){this.logMessage({message:t,severity:ht.Error,prefix:gr.JS,raw:!1},...r)}}const Yd=()=>{try{if(process.env.NODE_ENV==="test")return[Ba,Yo]}catch{}return[Ba,Hd,Yo]},Ae=new Zd(Yd()),ja=e=>e.replace(/\t/g,""),Kd=(e,t,r)=>{const i=new Date,a=new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"short",day:"2-digit",timeZone:"UTC"}).format(i).replace(/ /g,"-"),s=new Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:"UTC",timeZoneName:"short"}).format(i),n=a+" "+s;return e=ja(e),`[${n}] ${r} ${t.name}: ${e}`},Xd=5*1024*1024;function Jd(e,t){const r=e.headers.get("content-length")||"",i=parseInt(r,10)||Xd;return new Response(Cp(e.body,i,t),{status:e.status,statusText:e.statusText,headers:e.headers})}function Cp(e,t,r){let i=0;function a(s,n,o){const l=performance.now();!o&&l-i<500||(i=l,r(new CustomEvent("progress",{detail:{loaded:s,total:n}})))}return new ReadableStream({async start(s){if(!e){s.close();return}const n=e.getReader();let o=0;for(;;)try{const{done:l,value:p}=await n.read();if(p&&(o+=p.byteLength),l){a(o,o,l),s.close();break}else a(o,t,l),s.enqueue(p)}catch(l){Ae.error({e:l}),s.error(l);break}}})}const Ti=1e-5;class li extends EventTarget{constructor({weight:t=1,caption:r="",fillTime:i=4}={}){super(),this._selfWeight=1,this._selfDone=!1,this._selfProgress=0,this._selfCaption="",this._isFilling=!1,this._subTrackers=[],this._weight=t,this._selfCaption=r,this._fillTime=i}stage(t,r=""){if(t||(t=this._selfWeight),this._selfWeight-t<-Ti)throw new Error(`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`);this._selfWeight-=t;const i=new li({caption:r,weight:t,fillTime:this._fillTime});return this._subTrackers.push(i),i.addEventListener("progress",()=>this.notifyProgress()),i.addEventListener("done",()=>{this.done&&this.notifyDone()}),i}fillSlowly({stopBeforeFinishing:t=!0}={}){if(this._isFilling)return;this._isFilling=!0;const i=this._fillTime/100;this._fillInterval=setInterval(()=>{this.set(this._selfProgress+1),t&&this._selfProgress>=99&&clearInterval(this._fillInterval)},i)}set(t){this._selfProgress=Math.min(t,100),this.notifyProgress(),this._selfProgress+Ti>=100&&this.finish()}finish(){this._fillInterval&&clearInterval(this._fillInterval),this._selfDone=!0,this._selfProgress=100,this._isFilling=!1,this._fillInterval=void 0,this.notifyProgress(),this.notifyDone()}get caption(){for(let t=this._subTrackers.length-1;t>=0;t--)if(!this._subTrackers[t].done){const r=this._subTrackers[t].caption;if(r)return r}return this._selfCaption}setCaption(t){this._selfCaption=t,this.notifyProgress()}get done(){return this.progress+Ti>=100}get progress(){if(this._selfDone)return 100;const t=this._subTrackers.reduce((r,i)=>r+i.progress*i.weight,this._selfProgress*this._selfWeight);return Math.round(t*1e4)/1e4}get weight(){return this._weight}get observer(){return this._progressObserver||(this._progressObserver=t=>{this.set(t)}),this._progressObserver}get loadingListener(){return this._loadingListener||(this._loadingListener=t=>{this.set(t.detail.loaded/t.detail.total*100)}),this._loadingListener}pipe(t){t.setProgress({progress:this.progress,caption:this.caption}),this.addEventListener("progress",r=>{t.setProgress({progress:r.detail.progress,caption:r.detail.caption})}),this.addEventListener("done",()=>{t.setLoaded()})}addEventListener(t,r){super.addEventListener(t,r)}removeEventListener(t,r){super.removeEventListener(t,r)}notifyProgress(){const t=this;this.dispatchEvent(new CustomEvent("progress",{detail:{get progress(){return t.progress},get caption(){return t.caption}}}))}notifyDone(){this.dispatchEvent(new CustomEvent("done"))}}const Dp=Symbol("SleepFinished");function Qd(e){return new Promise(t=>{setTimeout(()=>t(Dp),e)})}class eh extends Error{constructor(){super("Acquiring lock timed out")}}class Yn{constructor({concurrency:t,timeout:r}){this._running=0,this.concurrency=t,this.timeout=r,this.queue=[]}get remaining(){return this.concurrency-this.running}get running(){return this._running}async acquire(){if(this._running>=this.concurrency){const r=new Promise(i=>{this.queue.push(i)});if(this.timeout!==void 0){const i=this.queue.at(-1);if(await Promise.race([r,Qd(this.timeout)])===Dp)throw this.queue.splice(this.queue.indexOf(i),1),new eh}else await r}this._running++;let t=!1;return()=>{t||(t=!0,this._running--,this.queue.length>0&&this.queue.shift()())}}async run(t){const r=await this.acquire();try{return await t()}finally{r()}}}function Oe(...e){function t(s){return s.substring(s.length-1)==="/"}let r=e.join("/");const i=r[0]==="/",a=t(r);return r=fi(r),!r&&!i&&(r="."),r&&a&&!t(r)&&(r+="/"),r}function qa(e){if(e==="/")return"/";e=fi(e);const t=e.lastIndexOf("/");return t===-1?"":t===0?"/":e.substr(0,t)}function fi(e){const t=e[0]==="/";return e=th(e.split("/").filter(r=>!!r),!t).join("/"),(t?"/":"")+e.replace(/\/$/,"")}function th(e,t){let r=0;for(let i=e.length-1;i>=0;i--){const a=e[i];a==="."?e.splice(i,1):a===".."?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e}function rh(e=36,t="!@#$%^&*()_+=-[]/.,<>?"){const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"+t;let i="";for(let a=e;a>0;--a)i+=r[Math.floor(Math.random()*r.length)];return i}function Ws(){return rh(36,"-_")}function lt(e){return`json_decode(base64_decode('${nh(JSON.stringify(e))}'), true)`}function dn(e){const t={};for(const r in e)t[r]=lt(e[r]);return t}function nh(e){return sh(new TextEncoder().encode(e))}function sh(e){const t=String.fromCodePoint(...e);return btoa(t)}(function(){var e;return typeof process<"u"&&((e=process.release)==null?void 0:e.name)==="node"?"NODE":typeof window<"u"?"WEB":typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"WORKER":"NODE"})();const ih={500:"Internal Server Error",502:"Bad Gateway",404:"Not Found",403:"Forbidden",401:"Unauthorized",400:"Bad Request",301:"Moved Permanently",302:"Found",307:"Temporary Redirect",308:"Permanent Redirect",204:"No Content",201:"Created",200:"OK"};class $i{constructor(t,r,i,a){this.parsedHeaders=null,this.cachedStdoutBytes=null,this.cachedStderrText=null,this.headersStream=t,this.stdout=r,this.stderr=i,this.exitCode=a}async ok(){try{const t=await this.httpStatusCode;return t>=200&&t<400}catch{return!1}}get finished(){return Promise.allSettled([this.exitCode.finally(()=>{})]).then(()=>{})}get headers(){return this.getParsedHeaders().then(t=>t.headers)}get httpStatusCode(){return this.getParsedHeaders().then(t=>t.httpStatusCode).then(t=>t!==void 0?t:this.getParsedHeaders().then(r=>r.httpStatusCode,()=>200)).catch(()=>500)}get stdoutText(){return this.stdoutBytes.then(t=>new TextDecoder().decode(t))}get stdoutBytes(){return this.cachedStdoutBytes||(this.cachedStdoutBytes=oh(this.stdout)),this.cachedStdoutBytes}get stderrText(){return this.cachedStderrText||(this.cachedStderrText=Up(this.stderr)),this.cachedStderrText}async getParsedHeaders(){return this.parsedHeaders||(this.parsedHeaders=ah(this.headersStream)),await this.parsedHeaders}}async function ah(e){const t=await Up(e);let r;try{r=JSON.parse(t)}catch{return{headers:{},httpStatusCode:200}}const i={};for(const a of r.headers){if(!a.includes(": "))continue;const s=a.indexOf(": "),n=a.substring(0,s).toLowerCase(),o=a.substring(s+2);n in i||(i[n]=[]),i[n].push(o)}return{headers:i,httpStatusCode:r.status}}async function Up(e){const t=e.pipeThrough(new TextDecoderStream).getReader(),r=[];for(;;){const{done:i,value:a}=await t.read();if(i)return r.join("");a&&r.push(a)}}async function oh(e){const t=e.getReader(),r=[];for(;;){const{done:i,value:a}=await t.read();if(i){const s=r.reduce((l,p)=>l+p.byteLength,0),n=new Uint8Array(s);let o=0;for(const l of r)n.set(l,o),o+=l.byteLength;return n}a&&r.push(a)}}class On{constructor(t,r,i,a="",s=0){this.httpStatusCode=t,this.headers=r,this.bytes=i,this.exitCode=s,this.errors=a}static forHttpCode(t,r=""){return new On(t,{},new TextEncoder().encode(r||ih[t]||""))}static fromRawData(t){return new On(t.httpStatusCode,t.headers,t.bytes,t.errors,t.exitCode)}static async fromStreamedResponse(t){return await t.finished,new On(await t.httpStatusCode,await t.headers,await t.stdoutBytes,await t.stderrText,await t.exitCode)}ok(){return this.httpStatusCode>=200&&this.httpStatusCode<400}toRawData(){return{headers:this.headers,bytes:this.bytes,errors:this.errors,exitCode:this.exitCode,httpStatusCode:this.httpStatusCode}}get json(){return JSON.parse(this.text)}get text(){return new TextDecoder().decode(this.bytes)}}const Jo="/internal/shared/php.ini";var Np=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const{hasOwnProperty:Ri}=Object.prototype,Bp=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;const r=t.platform==="win32"?`\r
|
|
4
|
+
`),[])}logMessage(t,...r){const i={...t,severity:t.severity??ht.Log};for(const a of this.handlers)i.severity.level<=this.severity.level&&a(i,...r)}setSeverityFilterLevel(t){this.severity=t}log(t,...r){this.logMessage({message:t,severity:ht.Log,prefix:gr.JS,raw:!1},...r)}debug(t,...r){this.logMessage({message:t,severity:ht.Debug,prefix:gr.JS,raw:!1},...r)}info(t,...r){this.logMessage({message:t,severity:ht.Info,prefix:gr.JS,raw:!1},...r)}warn(t,...r){this.logMessage({message:t,severity:ht.Warn,prefix:gr.JS,raw:!1},...r)}error(t,...r){this.logMessage({message:t,severity:ht.Error,prefix:gr.JS,raw:!1},...r)}}const rh=()=>{try{if(process.env.NODE_ENV==="test")return[Ma,rl]}catch{}return[Ma,Jd,rl]},Oe=new th(rh()),Wa=e=>e.replace(/\t/g,""),nh=(e,t,r)=>{const i=new Date,a=new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"short",day:"2-digit",timeZone:"UTC"}).format(i).replace(/ /g,"-"),s=new Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:"UTC",timeZoneName:"short"}).format(i),n=a+" "+s;return e=Wa(e),`[${n}] ${r} ${t.name}: ${e}`},sh=5*1024*1024;function ih(e,t){const r=e.headers.get("content-length")||"",i=parseInt(r,10)||sh;return new Response(Mp(e.body,i,t),{status:e.status,statusText:e.statusText,headers:e.headers})}function Mp(e,t,r){let i=0;function a(s,n,o){const l=performance.now();!o&&l-i<500||(i=l,r(new CustomEvent("progress",{detail:{loaded:s,total:n}})))}return new ReadableStream({async start(s){if(!e){s.close();return}const n=e.getReader();let o=0;for(;;)try{const{done:l,value:p}=await n.read();if(p&&(o+=p.byteLength),l){a(o,o,l),s.close();break}else a(o,t,l),s.enqueue(p)}catch(l){Oe.error({e:l}),s.error(l);break}}})}const Ii=1e-5;class ci extends EventTarget{constructor({weight:t=1,caption:r="",fillTime:i=4}={}){super(),this._selfWeight=1,this._selfDone=!1,this._selfProgress=0,this._selfCaption="",this._isFilling=!1,this._subTrackers=[],this._weight=t,this._selfCaption=r,this._fillTime=i}stage(t,r=""){if(t||(t=this._selfWeight),this._selfWeight-t<-Ii)throw new Error(`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`);this._selfWeight-=t;const i=new ci({caption:r,weight:t,fillTime:this._fillTime});return this._subTrackers.push(i),i.addEventListener("progress",()=>this.notifyProgress()),i.addEventListener("done",()=>{this.done&&this.notifyDone()}),i}fillSlowly({stopBeforeFinishing:t=!0}={}){if(this._isFilling)return;this._isFilling=!0;const i=this._fillTime/100;this._fillInterval=setInterval(()=>{this.set(this._selfProgress+1),t&&this._selfProgress>=99&&clearInterval(this._fillInterval)},i)}set(t){this._selfProgress=Math.min(t,100),this.notifyProgress(),this._selfProgress+Ii>=100&&this.finish()}finish(){this._fillInterval&&clearInterval(this._fillInterval),this._selfDone=!0,this._selfProgress=100,this._isFilling=!1,this._fillInterval=void 0,this.notifyProgress(),this.notifyDone()}get caption(){for(let t=this._subTrackers.length-1;t>=0;t--)if(!this._subTrackers[t].done){const r=this._subTrackers[t].caption;if(r)return r}return this._selfCaption}setCaption(t){this._selfCaption=t,this.notifyProgress()}get done(){return this.progress+Ii>=100}get progress(){if(this._selfDone)return 100;const t=this._subTrackers.reduce((r,i)=>r+i.progress*i.weight,this._selfProgress*this._selfWeight);return Math.round(t*1e4)/1e4}get weight(){return this._weight}get observer(){return this._progressObserver||(this._progressObserver=t=>{this.set(t)}),this._progressObserver}get loadingListener(){return this._loadingListener||(this._loadingListener=t=>{this.set(t.detail.loaded/t.detail.total*100)}),this._loadingListener}pipe(t){t.setProgress({progress:this.progress,caption:this.caption}),this.addEventListener("progress",r=>{t.setProgress({progress:r.detail.progress,caption:r.detail.caption})}),this.addEventListener("done",()=>{t.setLoaded()})}addEventListener(t,r){super.addEventListener(t,r)}removeEventListener(t,r){super.removeEventListener(t,r)}notifyProgress(){const t=this;this.dispatchEvent(new CustomEvent("progress",{detail:{get progress(){return t.progress},get caption(){return t.caption}}}))}notifyDone(){this.dispatchEvent(new CustomEvent("done"))}}const Wp=Symbol("SleepFinished");function ah(e){return new Promise(t=>{setTimeout(()=>t(Wp),e)})}class oh extends Error{constructor(){super("Acquiring lock timed out")}}class Xn{constructor({concurrency:t,timeout:r}){this._running=0,this.concurrency=t,this.timeout=r,this.queue=[]}get remaining(){return this.concurrency-this.running}get running(){return this._running}async acquire(){if(this._running>=this.concurrency){const r=new Promise(i=>{this.queue.push(i)});if(this.timeout!==void 0){const i=this.queue.at(-1);if(await Promise.race([r,ah(this.timeout)])===Wp)throw this.queue.splice(this.queue.indexOf(i),1),new oh}else await r}this._running++;let t=!1;return()=>{t||(t=!0,this._running--,this.queue.length>0&&this.queue.shift()())}}async run(t){const r=await this.acquire();try{return await t()}finally{r()}}}function Te(...e){function t(s){return s.substring(s.length-1)==="/"}let r=e.join("/");const i=r[0]==="/",a=t(r);return r=ui(r),!r&&!i&&(r="."),r&&a&&!t(r)&&(r+="/"),r}function za(e){if(e==="/")return"/";e=ui(e);const t=e.lastIndexOf("/");return t===-1?"":t===0?"/":e.substr(0,t)}function ui(e){const t=e[0]==="/";return e=lh(e.split("/").filter(r=>!!r),!t).join("/"),(t?"/":"")+e.replace(/\/$/,"")}function lh(e,t){let r=0;for(let i=e.length-1;i>=0;i--){const a=e[i];a==="."?e.splice(i,1):a===".."?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e}function fh(e=36,t="!@#$%^&*()_+=-[]/.,<>?"){const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"+t;let i="";for(let a=e;a>0;--a)i+=r[Math.floor(Math.random()*r.length)];return i}function Hs(){return fh(36,"-_")}function lt(e){return`json_decode(base64_decode('${ph(JSON.stringify(e))}'), true)`}function qr(e){const t={};for(const r in e)t[r]=lt(e[r]);return t}function ph(e){return ch(new TextEncoder().encode(e))}function ch(e){const t=String.fromCodePoint(...e);return btoa(t)}(function(){var e;return typeof process<"u"&&((e=process.release)==null?void 0:e.name)==="node"?"NODE":typeof window<"u"?"WEB":typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"WORKER":"NODE"})();const uh={500:"Internal Server Error",502:"Bad Gateway",404:"Not Found",403:"Forbidden",401:"Unauthorized",400:"Bad Request",301:"Moved Permanently",302:"Found",307:"Temporary Redirect",308:"Permanent Redirect",204:"No Content",201:"Created",200:"OK"};var un;const pi=class pi{constructor(t,r,i,a){el(this,un);this.parsedHeaders=null,this.cachedStdoutBytes=null,this.cachedStderrText=null,tl(this,un,t),this.stdout=r,this.stderr=i,this.exitCode=a}static fromPHPResponse(t){const r=new ReadableStream({start(s){s.enqueue(t.bytes),s.close()}}),i=()=>new ReadableStream({start(s){s.close()}}),a=new pi(i(),r,i(),Promise.resolve(t.exitCode));return a.parsedHeaders=Promise.resolve({headers:t.headers,httpStatusCode:t.httpStatusCode}),a}static forHttpCode(t,r=""){return pi.fromPHPResponse(sn.forHttpCode(t,r))}getHeadersStream(){return Ri(this,un)}async ok(){try{const t=await this.httpStatusCode;return t>=200&&t<400}catch{return!1}}get finished(){return Promise.allSettled([this.exitCode.finally(()=>{})]).then(()=>{})}get headers(){return this.getParsedHeaders().then(t=>t.headers)}get httpStatusCode(){return this.getParsedHeaders().then(t=>t.httpStatusCode).then(t=>t!==void 0?t:this.getParsedHeaders().then(r=>r.httpStatusCode,()=>200)).catch(()=>500)}get stdoutText(){return this.stdoutBytes.then(t=>new TextDecoder().decode(t))}get stdoutBytes(){return this.cachedStdoutBytes||(this.cachedStdoutBytes=hh(this.stdout)),this.cachedStdoutBytes}get stderrText(){return this.cachedStderrText||(this.cachedStderrText=zp(this.stderr)),this.cachedStderrText}async getParsedHeaders(){return this.parsedHeaders||(this.parsedHeaders=dh(Ri(this,un))),await this.parsedHeaders}};un=new WeakMap;let An=pi;async function dh(e){const t=await zp(e);let r;try{r=JSON.parse(t)}catch{return{headers:{},httpStatusCode:200}}const i={};for(const a of r.headers){if(!a.includes(": "))continue;const s=a.indexOf(": "),n=a.substring(0,s).toLowerCase(),o=a.substring(s+2);n in i||(i[n]=[]),i[n].push(o)}return{headers:i,httpStatusCode:r.status}}async function zp(e){const t=e.pipeThrough(new TextDecoderStream).getReader(),r=[];for(;;){const{done:i,value:a}=await t.read();if(i)return r.join("");a&&r.push(a)}}async function hh(e){const t=e.getReader(),r=[];for(;;){const{done:i,value:a}=await t.read();if(i){const s=r.reduce((l,p)=>l+p.byteLength,0),n=new Uint8Array(s);let o=0;for(const l of r)n.set(l,o),o+=l.byteLength;return n}a&&r.push(a)}}class sn{constructor(t,r,i,a="",s=0){this.httpStatusCode=t,this.headers=r,this.bytes=i,this.exitCode=s,this.errors=a}static forHttpCode(t,r=""){return new sn(t,{},new TextEncoder().encode(r||uh[t]||""))}static fromRawData(t){return new sn(t.httpStatusCode,t.headers,t.bytes,t.errors,t.exitCode)}static async fromStreamedResponse(t){return await t.finished,new sn(await t.httpStatusCode,await t.headers,await t.stdoutBytes,await t.stderrText,await t.exitCode)}ok(){return this.httpStatusCode>=200&&this.httpStatusCode<400}toRawData(){return{headers:this.headers,bytes:this.bytes,errors:this.errors,exitCode:this.exitCode,httpStatusCode:this.httpStatusCode}}get json(){return JSON.parse(this.text)}get text(){return new TextDecoder().decode(this.bytes)}}const il="/internal/shared/php.ini";var Hp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const{hasOwnProperty:Li}=Object.prototype,Vp=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;const r=t.platform==="win32"?`\r
|
|
5
5
|
`:`
|
|
6
|
-
`,i=t.whitespace?" = ":"=",a=[],s=t.sort?Object.keys(e).sort():Object.keys(e);let n=0;t.align&&(n=or(s.filter(p=>e[p]===null||Array.isArray(e[p])||typeof e[p]!="object").map(p=>Array.isArray(e[p])?`${p}[]`:p).concat([""]).reduce((p,c)=>or(p).length>=or(c).length?p:c)).length);let o="";const l=t.bracketedArray?"[]":"";for(const p of s){const c=e[p];if(c&&Array.isArray(c))for(const h of c)o+=or(`${p}${l}`).padEnd(n," ")+i+or(h)+r;else c&&typeof c=="object"?a.push(p):o+=or(p).padEnd(n," ")+i+or(c)+r}t.section&&o.length&&(o="["+or(t.section)+"]"+(t.newline?r+r:r)+o);for(const p of a){const c=
|
|
6
|
+
`,i=t.whitespace?" = ":"=",a=[],s=t.sort?Object.keys(e).sort():Object.keys(e);let n=0;t.align&&(n=or(s.filter(p=>e[p]===null||Array.isArray(e[p])||typeof e[p]!="object").map(p=>Array.isArray(e[p])?`${p}[]`:p).concat([""]).reduce((p,c)=>or(p).length>=or(c).length?p:c)).length);let o="";const l=t.bracketedArray?"[]":"";for(const p of s){const c=e[p];if(c&&Array.isArray(c))for(const h of c)o+=or(`${p}${l}`).padEnd(n," ")+i+or(h)+r;else c&&typeof c=="object"?a.push(p):o+=or(p).padEnd(n," ")+i+or(c)+r}t.section&&o.length&&(o="["+or(t.section)+"]"+(t.newline?r+r:r)+o);for(const p of a){const c=Zp(p,".").join("\\."),h=(t.section?t.section+".":"")+c,m=Vp(e[p],{...t,section:h});o.length&&m.length&&(o+=r),o+=m}return o};function Zp(e,t){var r=0,i=0,a=0,s=[];do if(a=e.indexOf(t,r),a!==-1){if(r=a+t.length,a>0&&e[a-1]==="\\")continue;s.push(e.slice(i,a)),i=a+t.length}while(a!==-1);return s.push(e.slice(i)),s}const mh=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;const r=Object.create(null);let i=r,a=null;const s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,n=e.split(/[\r\n]+/g),o={};for(const p of n){if(!p||p.match(/^\s*[;#]/)||p.match(/^\s*$/))continue;const c=p.match(s);if(!c)continue;if(c[1]!==void 0){if(a=Ci(c[1]),a==="__proto__"){i=Object.create(null);continue}i=r[a]=r[a]||Object.create(null);continue}const h=Ci(c[2]);let m;t.bracketedArray?m=h.length>2&&h.slice(-2)==="[]":(o[h]=((o==null?void 0:o[h])||0)+1,m=o[h]>1);const g=m?h.slice(0,-2):h;if(g==="__proto__")continue;const A=c[3]?Ci(c[4]):!0,y=A==="true"||A==="false"||A==="null"?JSON.parse(A):A;m&&(Li.call(i,g)?Array.isArray(i[g])||(i[g]=[i[g]]):i[g]=[]),Array.isArray(i[g])?i[g].push(y):i[g]=y}const l=[];for(const p of Object.keys(r)){if(!Li.call(r,p)||typeof r[p]!="object"||Array.isArray(r[p]))continue;const c=Zp(p,".");i=r;const h=c.pop(),m=h.replace(/\\\./g,".");for(const g of c)g!=="__proto__"&&((!Li.call(i,g)||typeof i[g]!="object")&&(i[g]=Object.create(null)),i=i[g]);i===r&&m===h||(i[m]=r[p],l.push(p))}for(const p of l)delete r[p];return r},Gp=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),or=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Gp(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Ci=e=>{if(e=(e||"").trim(),Gp(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let i=0,a=e.length;i<a;i++){const s=e.charAt(i);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};var al={parse:mh,stringify:Vp};async function yh(e,t){const r=al.parse(await e.readFileAsText(il));for(const[i,a]of Object.entries(t))a==null?delete r[i]:r[i]=a;await e.writeFile(il,al.stringify(r))}function gh(...e){const t=new Uint8Array(e.reduce((i,a)=>i+a.length,0));let r=0;for(const i of e)t.set(i,r),r+=i.length;return t}function wh(e){{let t=new Uint8Array;return new TransformStream({transform(r){t=gh(t,r)},flush(r){r.enqueue(t)}})}}async function mo(e,t){return await e.pipeThrough(wh()).getReader().read().then(({value:r})=>r)}async function bh(e,t){return new File([await mo(t)],e)}function _h(e){if(e instanceof ReadableStream)return e;let t;return Symbol.asyncIterator in e?t=e[Symbol.asyncIterator]():Symbol.iterator in e?t=e[Symbol.iterator]():t=e,new ReadableStream({async pull(r){const{done:i,value:a}=await t.next();if(i){r.close();return}r.enqueue(a)}})}class Lr extends File{static fromArrayBuffer(t,r,i){return new Lr(new ReadableStream({start(a){a.enqueue(new Uint8Array(t)),a.close()}}),r,i)}constructor(t,r,i){super([],r,{type:i==null?void 0:i.type}),this.readableStream=t,this.filesize=i==null?void 0:i.filesize}slice(){throw new Error("slice() is not possible on a StreamedFile")}stream(){return this.readableStream}async text(){return new TextDecoder().decode(await this.arrayBuffer())}async arrayBuffer(){return await mo(this.stream())}}ReadableStream.prototype[Symbol.asyncIterator]||(ReadableStream.prototype[Symbol.asyncIterator]=async function*(){const e=this.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}},ReadableStream.prototype.iterate=ReadableStream.prototype[Symbol.asyncIterator]);const vh=67324752,xh=33639248,kh=101010256,Ph=0,Eh=8;new Xn({concurrency:10});function Sh(e){return _h(e).pipeThrough(Th())}function Th(){const e=new Map;let t=0;return new TransformStream({async transform(r,i){const a=new Uint8Array(await r.arrayBuffer());let s=await mo(new Blob([a]).stream().pipeThrough(new CompressionStream("gzip")));const n=new DataView(s.buffer).getUint32(s.byteLength-8,!0);s=s.slice(10,s.byteLength-8);const o=new TextEncoder().encode(r.name),l={signature:vh,version:2,generalPurpose:0,compressionMethod:r.type==="directory"||s.byteLength===0?Ph:Eh,lastModifiedTime:0,lastModifiedDate:0,crc:n,compressedSize:s.byteLength,uncompressedSize:a.byteLength,path:o,extra:new Uint8Array(0)};e.set(t,l);const p=Oh(l);i.enqueue(p),t+=p.byteLength,i.enqueue(s),t+=s.byteLength},flush(r){const i=t;let a=0;for(const[o,l]of e.entries()){const p={...l,signature:xh,fileComment:new Uint8Array(0),diskNumber:0,internalAttributes:0,externalAttributes:0},c=Ah(p,o);r.enqueue(c),a+=c.byteLength}const s={signature:kh,numberOfDisks:0,centralDirectoryOffset:i,centralDirectorySize:a,centralDirectoryStartDisk:0,numberCentralDirectoryRecordsOnThisDisk:e.size,numberCentralDirectoryRecords:e.size,comment:new Uint8Array(0)},n=$h(s);r.enqueue(n),e.clear()}})}function Oh(e){const t=new ArrayBuffer(30+e.path.byteLength+e.extra.byteLength),r=new DataView(t);r.setUint32(0,e.signature,!0),r.setUint16(4,e.version,!0),r.setUint16(6,e.generalPurpose,!0),r.setUint16(8,e.compressionMethod,!0),r.setUint16(10,e.lastModifiedDate,!0),r.setUint16(12,e.lastModifiedTime,!0),r.setUint32(14,e.crc,!0),r.setUint32(18,e.compressedSize,!0),r.setUint32(22,e.uncompressedSize,!0),r.setUint16(26,e.path.byteLength,!0),r.setUint16(28,e.extra.byteLength,!0);const i=new Uint8Array(t);return i.set(e.path,30),i.set(e.extra,30+e.path.byteLength),i}function Ah(e,t){const r=new ArrayBuffer(46+e.path.byteLength+e.extra.byteLength),i=new DataView(r);i.setUint32(0,e.signature,!0),i.setUint16(4,e.versionCreated,!0),i.setUint16(6,e.versionNeeded,!0),i.setUint16(8,e.generalPurpose,!0),i.setUint16(10,e.compressionMethod,!0),i.setUint16(12,e.lastModifiedDate,!0),i.setUint16(14,e.lastModifiedTime,!0),i.setUint32(16,e.crc,!0),i.setUint32(20,e.compressedSize,!0),i.setUint32(24,e.uncompressedSize,!0),i.setUint16(28,e.path.byteLength,!0),i.setUint16(30,e.extra.byteLength,!0),i.setUint16(32,e.fileComment.byteLength,!0),i.setUint16(34,e.diskNumber,!0),i.setUint16(36,e.internalAttributes,!0),i.setUint32(38,e.externalAttributes,!0),i.setUint32(42,t,!0);const a=new Uint8Array(r);return a.set(e.path,46),a.set(e.extra,46+e.path.byteLength),a}function $h(e){const t=new ArrayBuffer(22+e.comment.byteLength),r=new DataView(t);r.setUint32(0,e.signature,!0),r.setUint16(4,e.numberOfDisks,!0),r.setUint16(6,e.centralDirectoryStartDisk,!0),r.setUint16(8,e.numberCentralDirectoryRecordsOnThisDisk,!0),r.setUint16(10,e.numberCentralDirectoryRecords,!0),r.setUint32(12,e.centralDirectorySize,!0),r.setUint32(16,e.centralDirectoryOffset,!0),r.setUint16(20,e.comment.byteLength,!0);const i=new Uint8Array(t);return i.set(e.comment,22),i}const di=["8.5","8.4","8.3","8.2","8.1","8.0","7.4"],Yp=di[0],Rh=di;async function hi(e,t,r,{rmRoot:i=!1}={}){i&&await e.isDir(t)&&await e.rmdir(t,{recursive:!0});for(const[a,s]of Object.entries(r)){const n=Te(t,a);await e.fileExists(za(n))||await e.mkdir(za(n)),s instanceof Uint8Array||typeof s=="string"?await e.writeFile(n,s):await hi(e,n,s)}}/**
|
|
7
7
|
* Original, unmodified Comlink library from Google:
|
|
8
8
|
*
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
*/const
|
|
12
|
+
*/const Kp=Symbol("Comlink.proxy"),Fh=Symbol("Comlink.endpoint"),Ih=Symbol("Comlink.releaseProxy"),Di=Symbol("Comlink.finalizer"),$s=Symbol("Comlink.thrown");/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2019 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: Apache-2.0
|
|
16
|
-
*/const zs={RAW:"RAW",HANDLER:"HANDLER"},xt={GET:"GET",SET:"SET",APPLY:"APPLY",CONSTRUCT:"CONSTRUCT",ENDPOINT:"ENDPOINT",RELEASE:"RELEASE"},zp=e=>typeof e=="object"&&e!==null||typeof e=="function",Oh={canHandle:e=>zp(e)&&e[Wp],serialize(e){const{port1:t,port2:r}=new MessageChannel;return uo(e,t),[r,[r]]},deserialize(e){return e.start(),ho(e)}},Ah={canHandle:e=>zp(e)&&As in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Vt=new Map([["proxy",Oh],["throw",Ah]]);function Th(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function uo(e,t=globalThis,r=["*"],i){t.addEventListener("message",function a(s){if(!s||!s.data)return;if(!Th(r,s.origin)){console.warn(`Invalid origin '${s.origin}' for comlink proxy`);return}const{id:n,type:o,path:l}={path:[],...s.data},p=(s.data.argumentList||[]).map(Er);let c;try{const h=l.slice(0,-1).reduce((g,T)=>g[T],e),m=l.reduce((g,T)=>g[T],e);switch(o){case xt.GET:c=m;break;case xt.SET:h[l.slice(-1)[0]]=Er(s.data.value),c=!0;break;case xt.APPLY:c=m.apply(h,p);break;case xt.CONSTRUCT:{const g=new m(...p);c=Zp(g)}break;case xt.ENDPOINT:{const{port1:g,port2:T}=new MessageChannel;uo(e,T),c=Ih(g,[g])}break;case xt.RELEASE:c=void 0;break;default:return}}catch(h){c={value:h,[As]:0}}Promise.resolve(c).catch(h=>({value:h,[As]:0})).then(h=>{const[m,g]=Gs(h);t.postMessage({...m,id:n},g),o===xt.RELEASE&&(t.removeEventListener("message",a),Hp(t),Fi in e&&typeof e[Fi]=="function"&&e[Fi]())}).catch(()=>{const[h,m]=Gs({value:new TypeError("Unserializable return value"),[As]:0});t.postMessage({...h,id:n},m)}).finally(()=>{})}),t.start&&t.start()}function $h(e){return e.constructor.name==="MessagePort"}function Hp(e){$h(e)&&e.close()}function ho(e,t){const r=new Map;return e.addEventListener("message",function(a){const{data:s}=a;if(!s||!s.id)return;const n=r.get(s.id);if(n)try{n(s)}finally{r.delete(s.id)}}),Ma(e,r,[],t)}function cs(e){if(e)throw new Error("Proxy has been released and is not useable")}function Vp(e){return Xr(e,new Map,{type:xt.RELEASE}).then(()=>{Hp(e)})}const Hs=new WeakMap,Vs="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Hs.get(e)||0)-1;Hs.set(e,t),t===0&&Vp(e)});function Rh(e,t){const r=(Hs.get(t)||0)+1;Hs.set(t,r),Vs&&Vs.register(e,t,e)}function Lh(e){Vs&&Vs.unregister(e)}function Ma(e,t,r=[],i=function(){}){let a=!1;const s=new Proxy(i,{get(n,o){if(cs(a),o===Sh)return()=>{Lh(s),Vp(e),t.clear(),a=!0};if(o==="then"){if(r.length===0)return{then:()=>s};const l=Xr(e,t,{type:xt.GET,path:r.map(p=>p.toString())}).then(Er);return l.then.bind(l)}return Ma(e,t,[...r,o])},set(n,o,l){cs(a);const[p,c]=Gs(l);return Xr(e,t,{type:xt.SET,path:[...r,o].map(h=>h.toString()),value:p},c).then(Er)},apply(n,o,l){cs(a);const p=r[r.length-1];if(p===Eh)return Xr(e,t,{type:xt.ENDPOINT}).then(Er);if(p==="bind")return Ma(e,t,r.slice(0,-1));const[c,h]=el(l);return Xr(e,t,{type:xt.APPLY,path:r.map(m=>m.toString()),argumentList:c},h).then(Er)},construct(n,o){cs(a);const[l,p]=el(o);return Xr(e,t,{type:xt.CONSTRUCT,path:r.map(c=>c.toString()),argumentList:l},p).then(Er)}});return Rh(s,e),s}function Fh(e){return Array.prototype.concat.apply([],e)}function el(e){const t=e.map(Gs);return[t.map(r=>r[0]),Fh(t.map(r=>r[1]))]}const Gp=new WeakMap;function Ih(e,t){return Gp.set(e,t),e}function Zp(e){return Object.assign(e,{[Wp]:!0})}function Ch(e,t=globalThis,r="*"){return{postMessage:(i,a)=>e.postMessage(i,r,a),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function Gs(e){for(const[t,r]of Vt)if(r.canHandle(e)){const[i,a]=r.serialize(e);return[{type:zs.HANDLER,name:t,value:i},a]}return[{type:zs.RAW,value:e},Gp.get(e)||[]]}function Er(e){switch(e.type){case zs.HANDLER:return Vt.get(e.name).deserialize(e.value);case zs.RAW:return e.value}}function Xr(e,t,r,i){return new Promise(a=>{const s=Dh();t.set(s,a),e.start&&e.start(),e.postMessage({id:s,...r},i)})}function Dh(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function Uh(e){const t=new WeakMap;return{postMessage:e.postMessage.bind(e),addEventListener:(r,i)=>{const a=s=>{"handleEvent"in i?i.handleEvent({data:s}):i({data:s})};e.on("message",a),t.set(i,a)},removeEventListener:(r,i)=>{const a=t.get(i);a&&(e.off("message",a),t.delete(i))},start:e.start&&e.start.bind(e)}}const Ii=new WeakMap;function Nh(e){const t=e||process;if(typeof t.send!="function")throw new Error("IPC channel is not available. Did you forget to fork the process?");const r=t;return{postMessage(i,a){var s;if(a&&a.length>0)throw new Error("Transferable objects are not supported for nodeProcessEndpoint");(s=r.send)==null||s.call(r,i)},addEventListener(i,a){const s=typeof a=="function"?n=>a({data:n}):n=>a.handleEvent({data:n});Ii.set(a,s),r.addListener(i,s)},removeEventListener(i,a){const s=Ii.get(a);s&&(Ii.delete(a),r.removeListener(i,s))},start(){}}}const Bh=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),jh=new Map(Bh);class mo extends Error{constructor(t){super(mo._prepareSuperMessage(t)),this.name="NonError"}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const qh=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],Wa=new WeakSet,Mh=e=>{Wa.add(e);const t=e.toJSON();return Wa.delete(e),t},Yp=e=>{const t=jh.get(e)??Error;return t===AggregateError?new t([]):new t},yo=({from:e,seen:t,to:r,forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,serialize:o})=>{if(r||(Array.isArray(e)?r=[]:!o&&tl(e)?r=Yp(e.name):r={}),t.push(e),s>=a)return r;if(n&&typeof e.toJSON=="function"&&!Wa.has(e))return Mh(e);const l=p=>yo({from:p,seen:[...t],forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,serialize:o});for(const[p,c]of Object.entries(e)){if(c&&c instanceof Uint8Array&&c.constructor.name==="Buffer"){r[p]="[object Buffer]";continue}if(c!==null&&typeof c=="object"&&typeof c.pipe=="function"){r[p]="[object Stream]";continue}if(typeof c!="function"){if(!c||typeof c!="object"){try{r[p]=c}catch{}continue}if(!t.includes(e[p])){s++,r[p]=l(e[p]);continue}r[p]="[Circular]"}}if(o||r instanceof Error)for(const{property:p,enumerable:c}of qh)e[p]!==void 0&&e[p]!==null&&Object.defineProperty(r,p,{value:tl(e[p])||Array.isArray(e[p])?l(e[p]):e[p],enumerable:i?!0:c,configurable:!0,writable:!0});return r};function Wh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:i=!0}=t;return typeof e=="object"&&e!==null?yo({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:i,serialize:!0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e}function zh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return e instanceof Error?e:Hh(e)?yo({from:e,seen:[],to:Yp(e.name),maxDepth:r,depth:0,serialize:!1}):new mo(e)}function tl(e){return!!e&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&typeof e.stack=="string"}function Hh(e){return!!e&&typeof e=="object"&&typeof e.message=="string"&&!Array.isArray(e)}function Kp(e,t=void 0){Gh();let r;if(typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u")if("postMessage"in e)r=Uh(e);else if("send"in e&&"addListener"in e)r=Nh(e);else throw new Error("consumeAPI: remote does not look like a Worker, MessagePort, or Process");else r=e instanceof Worker?e:Ch(e,t);const a=ho(r),s=Xp(a);return new Proxy(s,{get:(n,o)=>o==="isConnected"?async()=>{for(;;)try{await Vh(a.isConnected(),200);break}catch{}}:a[o]})}async function Vh(e,t){return new Promise((r,i)=>{setTimeout(i,t),e.then(r)})}let rl=!1;function Gh(){if(rl)return;rl=!0,Vt.set("EVENT",{canHandle:r=>r instanceof CustomEvent,serialize:r=>[{detail:r.detail},[]],deserialize:r=>r}),Vt.set("FUNCTION",{canHandle:r=>typeof r=="function",serialize(r){const{port1:i,port2:a}=new MessageChannel;return uo(r,i),[a,[a]]},deserialize(r){return r.start(),ho(r)}}),Vt.set("MESSAGE_PORT",{canHandle:r=>r instanceof MessagePort,serialize(r){return[r,[r]]},deserialize(r){return r}}),Vt.set("PHPResponse",{canHandle:r=>typeof r=="object"&&r!==null&&"headers"in r&&"bytes"in r&&"errors"in r&&"exitCode"in r&&"httpStatusCode"in r,serialize(r){const i=r.toRawData(),a=[];return i.bytes.buffer.byteLength>0&&a.push(i.bytes.buffer),[i,a]},deserialize(r){return On.fromRawData(r)}});const e=Vt.get("throw"),t=e==null?void 0:e.serialize;e.serialize=({value:r})=>{const i=t({value:r});return r.response&&(i[0].value.response=r.response),r.source&&(i[0].value.source=r.source),i},Vt.set("StreamedPHPResponse",{canHandle:r=>r instanceof $i,serialize(r){const i=Zh(),a=Yh(r.exitCode);if(i)return[{__type:"StreamedPHPResponse",headers:r.headersStream,stdout:r.stdout,stderr:r.stderr,exitCodePort:a},[a]];const s=Ci(r.headersStream),n=Ci(r.stdout),o=Ci(r.stderr);return[{__type:"StreamedPHPResponse",headersPort:s,stdoutPort:n,stderrPort:o,exitCodePort:a},[s,n,o,a]]},deserialize(r){if(r.headers&&r.stdout&&r.stderr){const o=nl(r.exitCodePort);return new $i(r.headers,r.stdout,r.stderr,o)}const i=Di(r.headersPort),a=Di(r.stdoutPort),s=Di(r.stderrPort),n=nl(r.exitCodePort);return new $i(i,a,s,n)}})}function Zh(){try{if(typeof ReadableStream>"u")return!1;const{port1:e}=new MessageChannel,t=new ReadableStream;e.postMessage(t);try{e.close()}catch{}return!0}catch{return!1}}function Ci(e){const{port1:t,port2:r}=new MessageChannel;return(async()=>{const i=e.getReader();try{for(;;){const{done:a,value:s}=await i.read();if(a){try{t.postMessage({t:"close"})}catch{}try{t.close()}catch{}break}if(s){const n=s.byteOffset===0&&s.byteLength===s.buffer.byteLength?s:s.slice(),o=n.buffer;try{t.postMessage({t:"chunk",b:o},[o])}catch{t.postMessage({t:"chunk",b:n.buffer.slice(0)})}}}}catch(a){try{t.postMessage({t:"error",m:(a==null?void 0:a.message)||String(a)})}catch{}}finally{try{t.close()}catch{}}})(),r}function Di(e){return new ReadableStream({start(t){const r=a=>{const s=a.data;if(s)switch(s.t){case"chunk":t.enqueue(new Uint8Array(s.b));break;case"close":t.close(),i();break;case"error":t.error(new Error(s.m||"Stream error")),i();break}},i=()=>{var a;try{(a=e.removeEventListener)==null||a.call(e,"message",r)}catch{}try{e.onmessage=null}catch{}try{e.close()}catch{}};e.addEventListener?e.addEventListener("message",r):e.on?e.on("message",a=>r({data:a})):e.onmessage=r,typeof e.start=="function"&&e.start()},cancel(){try{e.close()}catch{}}})}function Yh(e){const{port1:t,port2:r}=new MessageChannel;return e.then(i=>{try{t.postMessage({t:"resolve",v:i})}catch{}}).catch(i=>{try{t.postMessage({t:"reject",m:(i==null?void 0:i.message)||String(i)})}catch{}}).finally(()=>{try{t.close()}catch{}}),r}function nl(e){return new Promise((t,r)=>{const i=s=>{const n=s.data;n&&(n.t==="resolve"?(a(),t(n.v)):n.t==="reject"&&(a(),r(new Error(n.m||""))))},a=()=>{var s;try{(s=e.removeEventListener)==null||s.call(e,"message",i)}catch{}try{e.onmessage=null}catch{}try{e.close()}catch{}};e.addEventListener?e.addEventListener("message",i):e.on?e.on("message",s=>i({data:s})):e.onmessage=i,typeof e.start=="function"&&e.start()})}const Kh=Vt.get("throw"),Xh={canHandle:Kh.canHandle,serialize:({value:e})=>{let t;return e instanceof Error?(t={isError:!0,value:Wh(e)},t.value.originalErrorClassName=e.constructor.name):t={isError:!1,value:e},[t,[]]},deserialize:e=>{if(e.isError){const t=zh(e.value),r=new Error("Comlink method call failed");let i=t;for(;i.cause;)i=i.cause;throw i.cause=r,t}throw e.value}};Vt.set("throw",Xh);function Xp(e){return new Proxy(e,{get(t,r){switch(typeof t[r]){case"function":return(...i)=>t[r](...i);case"object":return t[r]===null?t[r]:Xp(t[r]);case"undefined":case"number":case"string":return t[r];default:return Zp(t[r])}}})}BigInt(Number.MAX_SAFE_INTEGER);new Yn({concurrency:15});new Yn({concurrency:10});function Jh(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function Jp(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:Jh(e)}class Qp{constructor(t){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=Jp(t),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(t){if(!this.eof())return this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t),this.buffer.slice(this.undoCursor,this.cursor)}async skip(t){this.eof()||(this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:t,value:r}=await this.stream.next();return t&&(this._ended=!0,!r)?Buffer.alloc(0):(r&&(r=Buffer.from(r)),r)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(t){if(this._ended)return;const r=[this.buffer];for(;this.cursor+t>Qh(r);){const i=await this._next();if(this._ended)break;r.push(i)}this.buffer=Buffer.concat(r)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}}function Qh(e){return e.reduce((t,r)=>t+r.length,0)}function em(e,t){const r=t.toString(16);return"0".repeat(e-r.length)+r}class Ke{static flush(){return Buffer.from("0000","utf8")}static delim(){return Buffer.from("0001","utf8")}static encode(t){typeof t=="string"&&(t=Buffer.from(t));const r=t.length+4,i=em(4,r);return Buffer.concat([Buffer.from(i,"utf8"),t])}static streamReader(t){const r=new Qp(t);return async function(){try{let a=await r.read(4);if(a==null)return!0;if(a=parseInt(a.toString("utf8"),16),a===0||a===1)return null;const s=await r.read(a-4);return s??!0}catch(a){return t.error=a,!0}}}}class hn extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const r=new hn(t.message);return r.code=t.code,r.data=t.data,r.caller=t.caller,r.stack=t.stack,r}get isIsomorphicGitError(){return!0}}class Ee extends hn{constructor(t){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=Ee.code,this.data={message:t}}}Ee.code="InternalError";class Kn extends hn{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=Kn.code,this.data={filepath:t}}}Kn.code="UnsafeFilepathError";function ec(e,t){return-(e<t)||+(e>t)}function tc(e,t){return ec(e.path,t.path)}function tm(e,t){return ec(sl(e),sl(t))}function sl(e){return e.mode==="040000"?e.path+"/":e.path}function rc(e){switch(e){case"040000":return"tree";case"100644":return"blob";case"100755":return"blob";case"120000":return"blob";case"160000":return"commit"}throw new Ee(`Unexpected GitTree entry mode: ${e}`)}function rm(e){const t=[];let r=0;for(;r<e.length;){const i=e.indexOf(32,r);if(i===-1)throw new Ee(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`);const a=e.indexOf(0,r);if(a===-1)throw new Ee(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let s=e.slice(r,i).toString("utf8");s==="40000"&&(s="040000");const n=rc(s),o=e.slice(i+1,a).toString("utf8");if(o.includes("\\")||o.includes("/"))throw new Kn(o);const l=e.slice(a+1,a+21).toString("hex");r=a+21,t.push({mode:s,path:o,oid:l,type:n})}return t}function nm(e){if(typeof e=="number"&&(e=e.toString(8)),e.match(/^0?4.*/))return"040000";if(e.match(/^1006.*/))return"100644";if(e.match(/^1007.*/))return"100755";if(e.match(/^120.*/))return"120000";if(e.match(/^160.*/))return"160000";throw new Ee(`Could not understand file mode: ${e}`)}function sm(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=nm(e.mode),e.type||(e.type=rc(e.mode)),e}class go{constructor(t){if(Buffer.isBuffer(t))this._entries=rm(t);else if(Array.isArray(t))this._entries=t.map(sm);else throw new Ee("invalid type passed to GitTree constructor");this._entries.sort(tc)}static from(t){return new go(t)}render(){return this._entries.map(t=>`${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
|
|
17
|
-
`)}toObject(){const t=[...this._entries];return t.sort(
|
|
18
|
-
`,e}function
|
|
16
|
+
*/const Vs={RAW:"RAW",HANDLER:"HANDLER"},xt={GET:"GET",SET:"SET",APPLY:"APPLY",CONSTRUCT:"CONSTRUCT",ENDPOINT:"ENDPOINT",RELEASE:"RELEASE"},Xp=e=>typeof e=="object"&&e!==null||typeof e=="function",Lh={canHandle:e=>Xp(e)&&e[Kp],serialize(e){const{port1:t,port2:r}=new MessageChannel;return yo(e,t),[r,[r]]},deserialize(e){return e.start(),go(e)}},Ch={canHandle:e=>Xp(e)&&$s in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Vt=new Map([["proxy",Lh],["throw",Ch]]);function Dh(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function yo(e,t=globalThis,r=["*"],i){t.addEventListener("message",function a(s){if(!s||!s.data)return;if(!Dh(r,s.origin)){console.warn(`Invalid origin '${s.origin}' for comlink proxy`);return}const{id:n,type:o,path:l}={path:[],...s.data},p=(s.data.argumentList||[]).map(Er);let c;try{const h=l.slice(0,-1).reduce((g,A)=>g[A],e),m=l.reduce((g,A)=>g[A],e);switch(o){case xt.GET:c=m;break;case xt.SET:h[l.slice(-1)[0]]=Er(s.data.value),c=!0;break;case xt.APPLY:c=m.apply(h,p);break;case xt.CONSTRUCT:{const g=new m(...p);c=tc(g)}break;case xt.ENDPOINT:{const{port1:g,port2:A}=new MessageChannel;yo(e,A),c=qh(g,[g])}break;case xt.RELEASE:c=void 0;break;default:return}}catch(h){c={value:h,[$s]:0}}Promise.resolve(c).catch(h=>({value:h,[$s]:0})).then(h=>{const[m,g]=Ys(h);t.postMessage({...m,id:n},g),o===xt.RELEASE&&(t.removeEventListener("message",a),Jp(t),Di in e&&typeof e[Di]=="function"&&e[Di]())}).catch(()=>{const[h,m]=Ys({value:new TypeError("Unserializable return value"),[$s]:0});t.postMessage({...h,id:n},m)}).finally(()=>{})}),t.start&&t.start()}function Nh(e){return e.constructor.name==="MessagePort"}function Jp(e){Nh(e)&&e.close()}function go(e,t){const r=new Map;return e.addEventListener("message",function(a){const{data:s}=a;if(!s||!s.id)return;const n=r.get(s.id);if(n)try{n(s)}finally{r.delete(s.id)}}),Ha(e,r,[],t)}function ds(e){if(e)throw new Error("Proxy has been released and is not useable")}function Qp(e){return Jr(e,new Map,{type:xt.RELEASE}).then(()=>{Jp(e)})}const Zs=new WeakMap,Gs="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Zs.get(e)||0)-1;Zs.set(e,t),t===0&&Qp(e)});function jh(e,t){const r=(Zs.get(t)||0)+1;Zs.set(t,r),Gs&&Gs.register(e,t,e)}function Uh(e){Gs&&Gs.unregister(e)}function Ha(e,t,r=[],i=function(){}){let a=!1;const s=new Proxy(i,{get(n,o){if(ds(a),o===Ih)return()=>{Uh(s),Qp(e),t.clear(),a=!0};if(o==="then"){if(r.length===0)return{then:()=>s};const l=Jr(e,t,{type:xt.GET,path:r.map(p=>p.toString())}).then(Er);return l.then.bind(l)}return Ha(e,t,[...r,o])},set(n,o,l){ds(a);const[p,c]=Ys(l);return Jr(e,t,{type:xt.SET,path:[...r,o].map(h=>h.toString()),value:p},c).then(Er)},apply(n,o,l){ds(a);const p=r[r.length-1];if(p===Fh)return Jr(e,t,{type:xt.ENDPOINT}).then(Er);if(p==="bind")return Ha(e,t,r.slice(0,-1));const[c,h]=ol(l);return Jr(e,t,{type:xt.APPLY,path:r.map(m=>m.toString()),argumentList:c},h).then(Er)},construct(n,o){ds(a);const[l,p]=ol(o);return Jr(e,t,{type:xt.CONSTRUCT,path:r.map(c=>c.toString()),argumentList:l},p).then(Er)}});return jh(s,e),s}function Bh(e){return Array.prototype.concat.apply([],e)}function ol(e){const t=e.map(Ys);return[t.map(r=>r[0]),Bh(t.map(r=>r[1]))]}const ec=new WeakMap;function qh(e,t){return ec.set(e,t),e}function tc(e){return Object.assign(e,{[Kp]:!0})}function Mh(e,t=globalThis,r="*"){return{postMessage:(i,a)=>e.postMessage(i,r,a),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function Ys(e){for(const[t,r]of Vt)if(r.canHandle(e)){const[i,a]=r.serialize(e);return[{type:Vs.HANDLER,name:t,value:i},a]}return[{type:Vs.RAW,value:e},ec.get(e)||[]]}function Er(e){switch(e.type){case Vs.HANDLER:return Vt.get(e.name).deserialize(e.value);case Vs.RAW:return e.value}}function Jr(e,t,r,i){return new Promise(a=>{const s=Wh();t.set(s,a),e.start&&e.start(),e.postMessage({id:s,...r},i)})}function Wh(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function zh(e){const t=new WeakMap;return{postMessage:e.postMessage.bind(e),addEventListener:(r,i)=>{const a=s=>{"handleEvent"in i?i.handleEvent({data:s}):i({data:s})};e.on("message",a),t.set(i,a)},removeEventListener:(r,i)=>{const a=t.get(i);a&&(e.off("message",a),t.delete(i))},start:e.start&&e.start.bind(e)}}const Ni=new WeakMap;function Hh(e){const t=e||process;if(typeof t.send!="function")throw new Error("IPC channel is not available. Did you forget to fork the process?");const r=t;return{postMessage(i,a){var s;if(a&&a.length>0)throw new Error("Transferable objects are not supported for nodeProcessEndpoint");(s=r.send)==null||s.call(r,i)},addEventListener(i,a){const s=typeof a=="function"?n=>a({data:n}):n=>a.handleEvent({data:n});Ni.set(a,s),r.addListener(i,s)},removeEventListener(i,a){const s=Ni.get(a);s&&(Ni.delete(a),r.removeListener(i,s))},start(){}}}const Vh=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),Zh=new Map(Vh);class wo extends Error{constructor(t){super(wo._prepareSuperMessage(t)),this.name="NonError"}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const Gh=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],Va=new WeakSet,Yh=e=>{Va.add(e);const t=e.toJSON();return Va.delete(e),t},rc=e=>{const t=Zh.get(e)??Error;return t===AggregateError?new t([]):new t},bo=({from:e,seen:t,to:r,forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,serialize:o})=>{if(r||(Array.isArray(e)?r=[]:!o&&ll(e)?r=rc(e.name):r={}),t.push(e),s>=a)return r;if(n&&typeof e.toJSON=="function"&&!Va.has(e))return Yh(e);const l=p=>bo({from:p,seen:[...t],forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,serialize:o});for(const[p,c]of Object.entries(e)){if(c&&c instanceof Uint8Array&&c.constructor.name==="Buffer"){r[p]="[object Buffer]";continue}if(c!==null&&typeof c=="object"&&typeof c.pipe=="function"){r[p]="[object Stream]";continue}if(typeof c!="function"){if(!c||typeof c!="object"){try{r[p]=c}catch{}continue}if(!t.includes(e[p])){s++,r[p]=l(e[p]);continue}r[p]="[Circular]"}}if(o||r instanceof Error)for(const{property:p,enumerable:c}of Gh)e[p]!==void 0&&e[p]!==null&&Object.defineProperty(r,p,{value:ll(e[p])||Array.isArray(e[p])?l(e[p]):e[p],enumerable:i?!0:c,configurable:!0,writable:!0});return r};function Kh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:i=!0}=t;return typeof e=="object"&&e!==null?bo({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:i,serialize:!0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e}function Xh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return e instanceof Error?e:Jh(e)?bo({from:e,seen:[],to:rc(e.name),maxDepth:r,depth:0,serialize:!1}):new wo(e)}function ll(e){return!!e&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&typeof e.stack=="string"}function Jh(e){return!!e&&typeof e=="object"&&typeof e.message=="string"&&!Array.isArray(e)}function nc(e,t=void 0){em();let r;if(typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u")if("postMessage"in e)r=zh(e);else if("send"in e&&"addListener"in e)r=Hh(e);else throw new Error("consumeAPI: remote does not look like a Worker, MessagePort, or Process");else r=e instanceof Worker?e:Mh(e,t);const a=go(r),s=sc(a);return new Proxy(s,{get:(n,o)=>o==="isConnected"?async()=>{for(;;)try{await Qh(a.isConnected(),200);break}catch{}}:a[o]})}async function Qh(e,t){return new Promise((r,i)=>{setTimeout(i,t),e.then(r)})}let fl=!1;function em(){if(fl)return;fl=!0,Vt.set("EVENT",{canHandle:r=>r instanceof CustomEvent,serialize:r=>[{detail:r.detail},[]],deserialize:r=>r}),Vt.set("FUNCTION",{canHandle:r=>typeof r=="function",serialize(r){const{port1:i,port2:a}=new MessageChannel;return yo(r,i),[a,[a]]},deserialize(r){return r.start(),go(r)}}),Vt.set("MESSAGE_PORT",{canHandle:r=>r instanceof MessagePort,serialize(r){return[r,[r]]},deserialize(r){return r}}),Vt.set("PHPResponse",{canHandle:r=>typeof r=="object"&&r!==null&&"headers"in r&&"bytes"in r&&"errors"in r&&"exitCode"in r&&"httpStatusCode"in r,serialize(r){const i=r.toRawData(),a=[];return i.bytes.buffer.byteLength>0&&a.push(i.bytes.buffer),[i,a]},deserialize(r){return sn.fromRawData(r)}});const e=Vt.get("throw"),t=e==null?void 0:e.serialize;e.serialize=({value:r})=>{const i=t({value:r});return r.response&&(i[0].value.response=r.response),r.source&&(i[0].value.source=r.source),i},Vt.set("StreamedPHPResponse",{canHandle:r=>r instanceof An,serialize(r){const i=tm(),a=rm(r.exitCode),s=r.getHeadersStream();if(i)return[{__type:"StreamedPHPResponse",headers:s,stdout:r.stdout,stderr:r.stderr,exitCodePort:a},[s,r.stdout,r.stderr,a]];const n=ji(s),o=ji(r.stdout),l=ji(r.stderr);return[{__type:"StreamedPHPResponse",headersPort:n,stdoutPort:o,stderrPort:l,exitCodePort:a},[n,o,l,a]]},deserialize(r){if(r.headers&&r.stdout&&r.stderr){const o=pl(r.exitCodePort);return new An(r.headers,r.stdout,r.stderr,o)}const i=Ui(r.headersPort),a=Ui(r.stdoutPort),s=Ui(r.stderrPort),n=pl(r.exitCodePort);return new An(i,a,s,n)}})}function tm(){try{if(typeof ReadableStream>"u")return!1;const{port1:e}=new MessageChannel,t=new ReadableStream;e.postMessage(t);try{e.close()}catch{}return!0}catch{return!1}}function ji(e){const{port1:t,port2:r}=new MessageChannel;return(async()=>{const i=e.getReader();try{for(;;){const{done:a,value:s}=await i.read();if(a){try{t.postMessage({t:"close"})}catch{}try{t.close()}catch{}break}if(s){const n=s.byteOffset===0&&s.byteLength===s.buffer.byteLength?s:s.slice(),o=n.buffer;try{t.postMessage({t:"chunk",b:o},[o])}catch{t.postMessage({t:"chunk",b:n.buffer.slice(0)})}}}}catch(a){try{t.postMessage({t:"error",m:(a==null?void 0:a.message)||String(a)})}catch{}}finally{try{t.close()}catch{}}})(),r}function Ui(e){return new ReadableStream({start(t){const r=a=>{const s=a.data;if(s)switch(s.t){case"chunk":t.enqueue(new Uint8Array(s.b));break;case"close":t.close(),i();break;case"error":t.error(new Error(s.m||"Stream error")),i();break}},i=()=>{var a;try{(a=e.removeEventListener)==null||a.call(e,"message",r)}catch{}try{e.onmessage=null}catch{}try{e.close()}catch{}};e.addEventListener?e.addEventListener("message",r):e.on?e.on("message",a=>r({data:a})):e.onmessage=r,typeof e.start=="function"&&e.start()},cancel(){try{e.close()}catch{}}})}function rm(e){const{port1:t,port2:r}=new MessageChannel;return e.then(i=>{try{t.postMessage({t:"resolve",v:i})}catch{}}).catch(i=>{try{t.postMessage({t:"reject",m:(i==null?void 0:i.message)||String(i)})}catch{}}).finally(()=>{try{t.close()}catch{}}),r}function pl(e){return new Promise((t,r)=>{const i=s=>{const n=s.data;n&&(n.t==="resolve"?(a(),t(n.v)):n.t==="reject"&&(a(),r(new Error(n.m||""))))},a=()=>{var s;try{(s=e.removeEventListener)==null||s.call(e,"message",i)}catch{}try{e.onmessage=null}catch{}try{e.close()}catch{}};e.addEventListener?e.addEventListener("message",i):e.on?e.on("message",s=>i({data:s})):e.onmessage=i,typeof e.start=="function"&&e.start()})}const nm=Vt.get("throw"),sm={canHandle:nm.canHandle,serialize:({value:e})=>{let t;return e instanceof Error?(t={isError:!0,value:Kh(e)},t.value.originalErrorClassName=e.constructor.name):t={isError:!1,value:e},[t,[]]},deserialize:e=>{if(e.isError){const t=Xh(e.value),r=new Error("Comlink method call failed");let i=t;for(;i.cause;)i=i.cause;throw i.cause=r,t}throw e.value}};Vt.set("throw",sm);function sc(e){return new Proxy(e,{get(t,r){switch(typeof t[r]){case"function":return(...i)=>t[r](...i);case"object":return t[r]===null?t[r]:sc(t[r]);case"undefined":case"number":case"string":return t[r];default:return tc(t[r])}}})}BigInt(Number.MAX_SAFE_INTEGER);new Xn({concurrency:15});new Xn({concurrency:10});function im(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function ic(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:im(e)}class ac{constructor(t){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=ic(t),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(t){if(!this.eof())return this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t),this.buffer.slice(this.undoCursor,this.cursor)}async skip(t){this.eof()||(this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:t,value:r}=await this.stream.next();return t&&(this._ended=!0,!r)?Buffer.alloc(0):(r&&(r=Buffer.from(r)),r)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(t){if(this._ended)return;const r=[this.buffer];for(;this.cursor+t>am(r);){const i=await this._next();if(this._ended)break;r.push(i)}this.buffer=Buffer.concat(r)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}}function am(e){return e.reduce((t,r)=>t+r.length,0)}function om(e,t){const r=t.toString(16);return"0".repeat(e-r.length)+r}class Ke{static flush(){return Buffer.from("0000","utf8")}static delim(){return Buffer.from("0001","utf8")}static encode(t){typeof t=="string"&&(t=Buffer.from(t));const r=t.length+4,i=om(4,r);return Buffer.concat([Buffer.from(i,"utf8"),t])}static streamReader(t){const r=new ac(t);return async function(){try{let a=await r.read(4);if(a==null)return!0;if(a=parseInt(a.toString("utf8"),16),a===0||a===1)return null;const s=await r.read(a-4);return s??!0}catch(a){return t.error=a,!0}}}}class yn extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const r=new yn(t.message);return r.code=t.code,r.data=t.data,r.caller=t.caller,r.stack=t.stack,r}get isIsomorphicGitError(){return!0}}class Ee extends yn{constructor(t){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=Ee.code,this.data={message:t}}}Ee.code="InternalError";class Jn extends yn{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=Jn.code,this.data={filepath:t}}}Jn.code="UnsafeFilepathError";function oc(e,t){return-(e<t)||+(e>t)}function lc(e,t){return oc(e.path,t.path)}function lm(e,t){return oc(cl(e),cl(t))}function cl(e){return e.mode==="040000"?e.path+"/":e.path}function fc(e){switch(e){case"040000":return"tree";case"100644":return"blob";case"100755":return"blob";case"120000":return"blob";case"160000":return"commit"}throw new Ee(`Unexpected GitTree entry mode: ${e}`)}function fm(e){const t=[];let r=0;for(;r<e.length;){const i=e.indexOf(32,r);if(i===-1)throw new Ee(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`);const a=e.indexOf(0,r);if(a===-1)throw new Ee(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let s=e.slice(r,i).toString("utf8");s==="40000"&&(s="040000");const n=fc(s),o=e.slice(i+1,a).toString("utf8");if(o.includes("\\")||o.includes("/"))throw new Jn(o);const l=e.slice(a+1,a+21).toString("hex");r=a+21,t.push({mode:s,path:o,oid:l,type:n})}return t}function pm(e){if(typeof e=="number"&&(e=e.toString(8)),e.match(/^0?4.*/))return"040000";if(e.match(/^1006.*/))return"100644";if(e.match(/^1007.*/))return"100755";if(e.match(/^120.*/))return"120000";if(e.match(/^160.*/))return"160000";throw new Ee(`Could not understand file mode: ${e}`)}function cm(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=pm(e.mode),e.type||(e.type=fc(e.mode)),e}class _o{constructor(t){if(Buffer.isBuffer(t))this._entries=fm(t);else if(Array.isArray(t))this._entries=t.map(cm);else throw new Ee("invalid type passed to GitTree constructor");this._entries.sort(lc)}static from(t){return new _o(t)}render(){return this._entries.map(t=>`${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
|
|
17
|
+
`)}toObject(){const t=[...this._entries];return t.sort(lm),Buffer.concat(t.map(r=>{const i=Buffer.from(r.mode.replace(/^0/,"")),a=Buffer.from(" "),s=Buffer.from(r.path,"utf8"),n=Buffer.from([0]),o=Buffer.from(r.oid,"hex");return Buffer.concat([i,a,s,n,o])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}function Za({name:e,email:t,timestamp:r,timezoneOffset:i}){return i=um(i),`${e} <${t}> ${r} ${i}`}function um(e){const t=dm(hm(e));e=Math.abs(e);const r=Math.floor(e/60);e-=r*60;let i=String(r),a=String(e);return i.length<2&&(i="0"+i),a.length<2&&(a="0"+a),(t===-1?"-":"+")+i+a}function dm(e){return Math.sign(e)||(Object.is(e,-0)?-1:1)}function hm(e){return e===0?e:-e}function rr(e){return e=e.replace(/\r/g,""),e=e.replace(/^\n+/,""),e=e.replace(/\n+$/,"")+`
|
|
18
|
+
`,e}function Ks(e){const[,t,r,i,a]=e.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:t,email:r,timestamp:Number(i),timezoneOffset:mm(a)}}function mm(e){let[,t,r,i]=e.match(/(\+|-)(\d\d)(\d\d)/);return i=(t==="+"?1:-1)*(Number(r)*60+Number(i)),ym(i)}function ym(e){return e===0?e:-e}class $n{constructor(t){if(typeof t=="string")this._tag=t;else if(Buffer.isBuffer(t))this._tag=t.toString("utf8");else if(typeof t=="object")this._tag=$n.render(t);else throw new Ee("invalid type passed to GitAnnotatedTag constructor")}static from(t){return new $n(t)}static render(t){return`object ${t.object}
|
|
19
19
|
type ${t.type}
|
|
20
20
|
tag ${t.tag}
|
|
21
|
-
tagger ${
|
|
21
|
+
tagger ${Za(t.tagger)}
|
|
22
22
|
|
|
23
23
|
${t.message}
|
|
24
24
|
${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf(`
|
|
@@ -27,67 +27,67 @@ ${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexO
|
|
|
27
27
|
|
|
28
28
|
`)+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const t=this.justHeaders().split(`
|
|
29
29
|
`),r=[];for(const a of t)a[0]===" "?r[r.length-1]+=`
|
|
30
|
-
`+a.slice(1):r.push(a);const i={};for(const a of r){const s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.tagger&&(i.tagger=
|
|
30
|
+
`+a.slice(1):r.push(a);const i={};for(const a of r){const s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.tagger&&(i.tagger=Ks(i.tagger)),i.committer&&(i.committer=Ks(i.committer)),i}withoutSignature(){const t=rr(this._tag);return t.indexOf(`
|
|
31
31
|
-----BEGIN PGP SIGNATURE-----`)===-1?t:t.slice(0,t.lastIndexOf(`
|
|
32
32
|
-----BEGIN PGP SIGNATURE-----`))}gpgsig(){if(this._tag.indexOf(`
|
|
33
33
|
-----BEGIN PGP SIGNATURE-----`)===-1)return;const t=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27);return rr(t)}payload(){return this.withoutSignature()+`
|
|
34
|
-
`}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(t,r,i){const a=t.payload();let{signature:s}=await r({payload:a,secretKey:i});s=rr(s);const n=a+s;return
|
|
34
|
+
`}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(t,r,i){const a=t.payload();let{signature:s}=await r({payload:a,secretKey:i});s=rr(s);const n=a+s;return $n.from(n)}}function Bi(e){return e.trim().split(`
|
|
35
35
|
`).map(t=>" "+t).join(`
|
|
36
36
|
`)+`
|
|
37
|
-
`}function
|
|
37
|
+
`}function gm(e){return e.split(`
|
|
38
38
|
`).map(t=>t.replace(/^ /,"")).join(`
|
|
39
39
|
`)}class bt{constructor(t){if(typeof t=="string")this._commit=t;else if(Buffer.isBuffer(t))this._commit=t.toString("utf8");else if(typeof t=="object")this._commit=bt.render(t);else throw new Ee("invalid type passed to GitCommit constructor")}static fromPayloadSignature({payload:t,signature:r}){const i=bt.justHeaders(t),a=bt.justMessage(t),s=rr(i+`
|
|
40
|
-
gpgsig`+
|
|
40
|
+
gpgsig`+Bi(r)+`
|
|
41
41
|
`+a);return new bt(s)}static from(t){return new bt(t)}toObject(){return Buffer.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return bt.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return rr(t.slice(t.indexOf(`
|
|
42
42
|
|
|
43
43
|
`)+2))}static justHeaders(t){return t.slice(0,t.indexOf(`
|
|
44
44
|
|
|
45
45
|
`))}parseHeaders(){const t=bt.justHeaders(this._commit).split(`
|
|
46
46
|
`),r=[];for(const a of t)a[0]===" "?r[r.length-1]+=`
|
|
47
|
-
`+a.slice(1):r.push(a);const i={parent:[]};for(const a of r){const s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.author&&(i.author=
|
|
47
|
+
`+a.slice(1):r.push(a);const i={parent:[]};for(const a of r){const s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.author&&(i.author=Ks(i.author)),i.committer&&(i.committer=Ks(i.committer)),i}static renderHeaders(t){let r="";if(t.tree?r+=`tree ${t.tree}
|
|
48
48
|
`:r+=`tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
|
49
49
|
`,t.parent){if(t.parent.length===void 0)throw new Ee("commit 'parent' property should be an array");for(const s of t.parent)r+=`parent ${s}
|
|
50
|
-
`}const i=t.author;r+=`author ${
|
|
51
|
-
`;const a=t.committer||t.author;return r+=`committer ${
|
|
52
|
-
`,t.gpgsig&&(r+="gpgsig"+
|
|
50
|
+
`}const i=t.author;r+=`author ${Za(i)}
|
|
51
|
+
`;const a=t.committer||t.author;return r+=`committer ${Za(a)}
|
|
52
|
+
`,t.gpgsig&&(r+="gpgsig"+Bi(t.gpgsig)),r}static render(t){return bt.renderHeaders(t)+`
|
|
53
53
|
`+rr(t.message)}render(){return this._commit}withoutSignature(){const t=rr(this._commit);if(t.indexOf(`
|
|
54
54
|
gpgsig`)===-1)return t;const r=t.slice(0,t.indexOf(`
|
|
55
55
|
gpgsig`)),i=t.slice(t.indexOf(`-----END PGP SIGNATURE-----
|
|
56
56
|
`)+28);return rr(r+`
|
|
57
|
-
`+i)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return
|
|
58
|
-
gpgsig`+
|
|
59
|
-
`+s;return bt.from(l)}}var nc={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function r(){for(var O=0,L=new Array(256),P=0;P!=256;++P)O=P,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,L[P]=O;return typeof Int32Array<"u"?new Int32Array(L):L}var i=r();function a(O){var L=0,P=0,S=0,D=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(S=0;S!=256;++S)D[S]=O[S];for(S=0;S!=256;++S)for(P=O[S],L=256+S;L<4096;L+=256)P=D[L]=P>>>8^O[P&255];var F=[];for(S=1;S!=16;++S)F[S-1]=typeof Int32Array<"u"?D.subarray(S*256,S*256+256):D.slice(S*256,S*256+256);return F}var s=a(i),n=s[0],o=s[1],l=s[2],p=s[3],c=s[4],h=s[5],m=s[6],g=s[7],T=s[8],y=s[9],w=s[10],b=s[11],A=s[12],k=s[13],I=s[14];function $(O,L){for(var P=L^-1,S=0,D=O.length;S<D;)P=P>>>8^i[(P^O.charCodeAt(S++))&255];return~P}function C(O,L){for(var P=L^-1,S=O.length-15,D=0;D<S;)P=I[O[D++]^P&255]^k[O[D++]^P>>8&255]^A[O[D++]^P>>16&255]^b[O[D++]^P>>>24]^w[O[D++]]^y[O[D++]]^T[O[D++]]^g[O[D++]]^m[O[D++]]^h[O[D++]]^c[O[D++]]^p[O[D++]]^l[O[D++]]^o[O[D++]]^n[O[D++]]^i[O[D++]];for(S+=15;D<S;)P=P>>>8^i[(P^O[D++])&255];return~P}function E(O,L){for(var P=L^-1,S=0,D=O.length,F=0,B=0;S<D;)F=O.charCodeAt(S++),F<128?P=P>>>8^i[(P^F)&255]:F<2048?(P=P>>>8^i[(P^(192|F>>6&31))&255],P=P>>>8^i[(P^(128|F&63))&255]):F>=55296&&F<57344?(F=(F&1023)+64,B=O.charCodeAt(S++)&1023,P=P>>>8^i[(P^(240|F>>8&7))&255],P=P>>>8^i[(P^(128|F>>2&63))&255],P=P>>>8^i[(P^(128|B>>6&15|(F&3)<<4))&255],P=P>>>8^i[(P^(128|B&63))&255]):(P=P>>>8^i[(P^(224|F>>12&15))&255],P=P>>>8^i[(P^(128|F>>6&63))&255],P=P>>>8^i[(P^(128|F&63))&255]);return~P}t.table=i,t.bstr=$,t.buf=C,t.str=E})})(nc);const cm=po(nc);class um{static wrap({type:t,object:r}){return Buffer.concat([Buffer.from(`${t} ${r.byteLength.toString()}\0`),Buffer.from(r)])}static unwrap(t){const r=t.indexOf(32),i=t.indexOf(0),a=t.slice(0,r).toString("utf8"),s=t.slice(r+1,i).toString("utf8"),n=t.length-(i+1);if(parseInt(s)!==n)throw new Ee(`Length mismatch: expected ${s} bytes but got ${n} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class Gt{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const r=this.buffer.slice(this._start,this._start+t);return this._start+=t,r}toString(t,r){const i=this.buffer.toString(t,this._start,this._start+r);return this._start+=r,i}write(t,r,i){const a=this.buffer.write(t,this._start,r,i);return this._start+=r,a}copy(t,r,i){const a=t.copy(this.buffer,this._start,r,i);return this._start+=a,a}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const r=this.buffer.writeUInt8(t,this._start);return this._start+=1,r}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const r=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,r}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const r=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,r}}function dm(e,t){const r=new Gt(e),i=il(r);if(i!==t.byteLength)throw new Ee(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=il(r);let s;const n=ol(r,t);if(n.byteLength===a)s=n;else{s=Buffer.alloc(a);const o=new Gt(s);for(o.copy(n);!r.eof();)o.copy(ol(r,t));const l=o.tell();if(a!==l)throw new Ee(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${l} bytes`)}return s}function il(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function al(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function ol(e,t){const r=e.readUInt8(),i=128,a=15,s=112;if(r&i){const n=al(e,r&a,4);let o=al(e,(r&s)>>4,3);return o===0&&(o=65536),t.slice(n,n+o)}else return e.slice(r)}var ar={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,n){return Object.prototype.hasOwnProperty.call(s,n)}e.assign=function(s){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var o=n.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var l in o)r(o,l)&&(s[l]=o[l])}}return s},e.shrinkBuf=function(s,n){return s.length===n?s:s.subarray?s.subarray(0,n):(s.length=n,s)};var i={arraySet:function(s,n,o,l,p){if(n.subarray&&s.subarray){s.set(n.subarray(o,o+l),p);return}for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){var n,o,l,p,c,h;for(l=0,n=0,o=s.length;n<o;n++)l+=s[n].length;for(h=new Uint8Array(l),p=0,n=0,o=s.length;n<o;n++)c=s[n],h.set(c,p),p+=c.length;return h}},a={arraySet:function(s,n,o,l,p){for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(ar);var Xn={},Qt={},mn={},hm=ar,mm=4,ll=0,fl=1,ym=2;function yn(e){for(var t=e.length;--t>=0;)e[t]=0}var gm=0,sc=1,wm=2,bm=3,_m=258,wo=29,Jn=256,Cn=Jn+1+wo,nn=30,bo=19,ic=2*Cn+1,Ar=15,Ni=16,vm=7,_o=256,ac=16,oc=17,lc=18,Ha=[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],Ts=[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],xm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],km=512,nr=new Array((Cn+2)*2);yn(nr);var Tn=new Array(nn*2);yn(Tn);var Dn=new Array(km);yn(Dn);var Un=new Array(_m-bm+1);yn(Un);var vo=new Array(wo);yn(vo);var Ys=new Array(nn);yn(Ys);function Bi(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var pc,cc,uc;function ji(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function dc(e){return e<256?Dn[e]:Dn[256+(e>>>7)]}function Nn(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function mt(e,t,r){e.bi_valid>Ni-r?(e.bi_buf|=t<<e.bi_valid&65535,Nn(e,e.bi_buf),e.bi_buf=t>>Ni-e.bi_valid,e.bi_valid+=r-Ni):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Zt(e,t,r){mt(e,r[t*2],r[t*2+1])}function hc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Pm(e){e.bi_valid===16?(Nn(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function Em(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,n=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,l=t.stat_desc.max_length,p,c,h,m,g,T,y=0;for(m=0;m<=Ar;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<ic;p++)c=e.heap[p],m=r[r[c*2+1]*2+1]+1,m>l&&(m=l,y++),r[c*2+1]=m,!(c>i)&&(e.bl_count[m]++,g=0,c>=o&&(g=n[c-o]),T=r[c*2],e.opt_len+=T*(m+g),s&&(e.static_len+=T*(a[c*2+1]+g)));if(y!==0){do{for(m=l-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[l]--,y-=2}while(y>0);for(m=l;m!==0;m--)for(c=e.bl_count[m];c!==0;)h=e.heap[--p],!(h>i)&&(r[h*2+1]!==m&&(e.opt_len+=(m-r[h*2+1])*r[h*2],r[h*2+1]=m),c--)}}function mc(e,t,r){var i=new Array(Ar+1),a=0,s,n;for(s=1;s<=Ar;s++)i[s]=a=a+r[s-1]<<1;for(n=0;n<=t;n++){var o=e[n*2+1];o!==0&&(e[n*2]=hc(i[o]++,o))}}function Sm(){var e,t,r,i,a,s=new Array(Ar+1);for(r=0,i=0;i<wo-1;i++)for(vo[i]=r,e=0;e<1<<Ha[i];e++)Un[r++]=i;for(Un[r-1]=i,a=0,i=0;i<16;i++)for(Ys[i]=a,e=0;e<1<<Ts[i];e++)Dn[a++]=i;for(a>>=7;i<nn;i++)for(Ys[i]=a<<7,e=0;e<1<<Ts[i]-7;e++)Dn[256+a++]=i;for(t=0;t<=Ar;t++)s[t]=0;for(e=0;e<=143;)nr[e*2+1]=8,e++,s[8]++;for(;e<=255;)nr[e*2+1]=9,e++,s[9]++;for(;e<=279;)nr[e*2+1]=7,e++,s[7]++;for(;e<=287;)nr[e*2+1]=8,e++,s[8]++;for(mc(nr,Cn+1,s),e=0;e<nn;e++)Tn[e*2+1]=5,Tn[e*2]=hc(e,5);pc=new Bi(nr,Ha,Jn+1,Cn,Ar),cc=new Bi(Tn,Ts,0,nn,Ar),uc=new Bi(new Array(0),xm,0,bo,vm)}function yc(e){var t;for(t=0;t<Cn;t++)e.dyn_ltree[t*2]=0;for(t=0;t<nn;t++)e.dyn_dtree[t*2]=0;for(t=0;t<bo;t++)e.bl_tree[t*2]=0;e.dyn_ltree[_o*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function gc(e){e.bi_valid>8?Nn(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Om(e,t,r,i){gc(e),Nn(e,r),Nn(e,~r),hm.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function pl(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}function qi(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&pl(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!pl(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function cl(e,t,r){var i,a,s=0,n,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Zt(e,a,t):(n=Un[a],Zt(e,n+Jn+1,t),o=Ha[n],o!==0&&(a-=vo[n],mt(e,a,o)),i--,n=dc(i),Zt(e,n,r),o=Ts[n],o!==0&&(i-=Ys[n],mt(e,i,o)));while(s<e.last_lit);Zt(e,_o,t)}function Va(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,n,o,l=-1,p;for(e.heap_len=0,e.heap_max=ic,n=0;n<s;n++)r[n*2]!==0?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):r[n*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=l<2?++l:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,a&&(e.static_len-=i[p*2+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)qi(e,r,n);p=s;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],qi(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,r[p*2]=r[n*2]+r[o*2],e.depth[p]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,r[n*2+1]=r[o*2+1]=p,e.heap[1]=p++,qi(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Em(e,t),mc(r,l,e.bl_count)}function ul(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)&&(o<p?e.bl_tree[s*2]+=o:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[ac*2]++):o<=10?e.bl_tree[oc*2]++:e.bl_tree[lc*2]++,o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4))}function dl(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),i=0;i<=r;i++)if(s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)){if(o<p)do Zt(e,s,e.bl_tree);while(--o!==0);else s!==0?(s!==a&&(Zt(e,s,e.bl_tree),o--),Zt(e,ac,e.bl_tree),mt(e,o-3,2)):o<=10?(Zt(e,oc,e.bl_tree),mt(e,o-3,3)):(Zt(e,lc,e.bl_tree),mt(e,o-11,7));o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4)}}function Am(e){var t;for(ul(e,e.dyn_ltree,e.l_desc.max_code),ul(e,e.dyn_dtree,e.d_desc.max_code),Va(e,e.bl_desc),t=bo-1;t>=3&&e.bl_tree[fc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Tm(e,t,r,i){var a;for(mt(e,t-257,5),mt(e,r-1,5),mt(e,i-4,4),a=0;a<i;a++)mt(e,e.bl_tree[fc[a]*2+1],3);dl(e,e.dyn_ltree,t-1),dl(e,e.dyn_dtree,r-1)}function $m(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return ll;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return fl;for(r=32;r<Jn;r++)if(e.dyn_ltree[r*2]!==0)return fl;return ll}var hl=!1;function Rm(e){hl||(Sm(),hl=!0),e.l_desc=new ji(e.dyn_ltree,pc),e.d_desc=new ji(e.dyn_dtree,cc),e.bl_desc=new ji(e.bl_tree,uc),e.bi_buf=0,e.bi_valid=0,yc(e)}function wc(e,t,r,i){mt(e,(gm<<1)+(i?1:0),3),Om(e,t,r)}function Lm(e){mt(e,sc<<1,3),Zt(e,_o,nr),Pm(e)}function Fm(e,t,r,i){var a,s,n=0;e.level>0?(e.strm.data_type===ym&&(e.strm.data_type=$m(e)),Va(e,e.l_desc),Va(e,e.d_desc),n=Am(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?wc(e,t,r,i):e.strategy===mm||s===a?(mt(e,(sc<<1)+(i?1:0),3),cl(e,nr,Tn)):(mt(e,(wm<<1)+(i?1:0),3),Tm(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),cl(e,e.dyn_ltree,e.dyn_dtree)),yc(e),i&&gc(e)}function Im(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Un[r]+Jn+1)*2]++,e.dyn_dtree[dc(t)*2]++),e.last_lit===e.lit_bufsize-1}mn._tr_init=Rm;mn._tr_stored_block=wc;mn._tr_flush_block=Fm;mn._tr_tally=Im;mn._tr_align=Lm;function Cm(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,n=0;r!==0;){n=r>2e3?2e3:r,r-=n;do a=a+t[i++]|0,s=s+a|0;while(--n);a%=65521,s%=65521}return a|s<<16|0}var bc=Cm;function Dm(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var Um=Dm();function Nm(e,t,r,i){var a=Um,s=i+r;e^=-1;for(var n=i;n<s;n++)e=e>>>8^a[(e^t[n])&255];return e^-1}var _c=Nm,xo={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},at=ar,Tt=mn,vc=bc,ur=_c,Bm=xo,qr=0,jm=1,qm=3,vr=4,ml=5,Yt=0,yl=1,$t=-2,Mm=-3,Mi=-5,Wm=-1,zm=1,us=2,Hm=3,Vm=4,Gm=0,Zm=2,ui=8,Ym=9,Km=15,Xm=8,Jm=29,Qm=256,Ga=Qm+1+Jm,ey=30,ty=19,ry=2*Ga+1,ny=15,ge=3,br=258,Nt=br+ge+1,sy=32,di=42,Za=69,$s=73,Rs=91,Ls=103,Tr=113,Sn=666,ze=1,Qn=2,Cr=3,gn=4,iy=3;function _r(e,t){return e.msg=Bm[t],t}function gl(e){return(e<<1)-(e>4?9:0)}function wr(e){for(var t=e.length;--t>=0;)e[t]=0}function dr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(at.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Qe(e,t){Tt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,dr(e.strm)}function Pe(e,t){e.pending_buf[e.pending++]=t}function _n(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function ay(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,at.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=vc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=ur(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function xc(e,t){var r=e.max_chain_length,i=e.strstart,a,s,n=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-Nt?e.strstart-(e.w_size-Nt):0,p=e.window,c=e.w_mask,h=e.prev,m=e.strstart+br,g=p[i+n-1],T=p[i+n];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+n]!==T||p[a+n-1]!==g||p[a]!==p[i]||p[++a]!==p[i+1])){i+=2,a++;do;while(p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&i<m);if(s=br-(m-i),i=m-br,s>n){if(e.match_start=t,n=s,s>=o)break;g=p[i+n-1],T=p[i+n]}}while((t=h[t&c])>l&&--r!==0);return n<=e.lookahead?n:e.lookahead}function Dr(e){var t=e.w_size,r,i,a,s,n;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Nt)){at.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=ay(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=ge)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+ge-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<ge)););}while(e.lookahead<Nt&&e.strm.avail_in!==0)}function oy(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Dr(e),e.lookahead===0&&t===qr)return ze;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Qe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Nt&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=0,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:gn):(e.strstart>e.block_start&&(Qe(e,!1),e.strm.avail_out===0),ze)}function Wi(e,t){for(var r,i;;){if(e.lookahead<Nt){if(Dr(e),e.lookahead<Nt&&t===qr)return ze;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Nt&&(e.match_length=xc(e,r)),e.match_length>=ge)if(i=Tt._tr_tally(e,e.strstart-e.match_start,e.match_length-ge),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ge){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=Tt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=e.strstart<ge-1?e.strstart:ge-1,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:gn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:Qn}function zr(e,t){for(var r,i,a;;){if(e.lookahead<Nt){if(Dr(e),e.lookahead<Nt&&t===qr)return ze;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ge-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Nt&&(e.match_length=xc(e,r),e.match_length<=5&&(e.strategy===zm||e.match_length===ge&&e.strstart-e.match_start>4096)&&(e.match_length=ge-1)),e.prev_length>=ge&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ge,i=Tt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ge),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ge-1,e.strstart++,i&&(Qe(e,!1),e.strm.avail_out===0))return ze}else if(e.match_available){if(i=Tt._tr_tally(e,0,e.window[e.strstart-1]),i&&Qe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ze}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=Tt._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ge-1?e.strstart:ge-1,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:gn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:Qn}function ly(e,t){for(var r,i,a,s,n=e.window;;){if(e.lookahead<=br){if(Dr(e),e.lookahead<=br&&t===qr)return ze;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ge&&e.strstart>0&&(a=e.strstart-1,i=n[a],i===n[++a]&&i===n[++a]&&i===n[++a])){s=e.strstart+br;do;while(i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&a<s);e.match_length=br-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ge?(r=Tt._tr_tally(e,1,e.match_length-ge),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Tt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=0,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:gn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:Qn}function fy(e,t){for(var r;;){if(e.lookahead===0&&(Dr(e),e.lookahead===0)){if(t===qr)return ze;break}if(e.match_length=0,r=Tt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=0,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:gn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:Qn}function qt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var en;en=[new qt(0,0,0,0,oy),new qt(4,4,8,4,Wi),new qt(4,5,16,8,Wi),new qt(4,6,32,32,Wi),new qt(4,4,16,16,zr),new qt(8,16,32,32,zr),new qt(8,16,128,128,zr),new qt(8,32,128,256,zr),new qt(32,128,258,1024,zr),new qt(32,258,258,4096,zr)];function py(e){e.window_size=2*e.w_size,wr(e.head),e.max_lazy_match=en[e.level].max_lazy,e.good_match=en[e.level].good_length,e.nice_match=en[e.level].nice_length,e.max_chain_length=en[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ge-1,e.match_available=0,e.ins_h=0}function cy(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ui,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new at.Buf16(ry*2),this.dyn_dtree=new at.Buf16((2*ey+1)*2),this.bl_tree=new at.Buf16((2*ty+1)*2),wr(this.dyn_ltree),wr(this.dyn_dtree),wr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new at.Buf16(ny+1),this.heap=new at.Buf16(2*Ga+1),wr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new at.Buf16(2*Ga+1),wr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function kc(e){var t;return!e||!e.state?_r(e,$t):(e.total_in=e.total_out=0,e.data_type=Zm,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?di:Tr,e.adler=t.wrap===2?0:1,t.last_flush=qr,Tt._tr_init(t),Yt)}function Pc(e){var t=kc(e);return t===Yt&&py(e.state),t}function uy(e,t){return!e||!e.state||e.state.wrap!==2?$t:(e.state.gzhead=t,Yt)}function Ec(e,t,r,i,a,s){if(!e)return $t;var n=1;if(t===Wm&&(t=6),i<0?(n=0,i=-i):i>15&&(n=2,i-=16),a<1||a>Ym||r!==ui||i<8||i>15||t<0||t>9||s<0||s>Vm)return _r(e,$t);i===8&&(i=9);var o=new cy;return e.state=o,o.strm=e,o.wrap=n,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+ge-1)/ge),o.window=new at.Buf8(o.w_size*2),o.head=new at.Buf16(o.hash_size),o.prev=new at.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new at.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=s,o.method=r,Pc(e)}function dy(e,t){return Ec(e,t,ui,Km,Xm,Gm)}function hy(e,t){var r,i,a,s;if(!e||!e.state||t>ml||t<0)return e?_r(e,$t):$t;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Sn&&t!==vr)return _r(e,e.avail_out===0?Mi:$t);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===di)if(i.wrap===2)e.adler=0,Pe(i,31),Pe(i,139),Pe(i,8),i.gzhead?(Pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Pe(i,i.gzhead.time&255),Pe(i,i.gzhead.time>>8&255),Pe(i,i.gzhead.time>>16&255),Pe(i,i.gzhead.time>>24&255),Pe(i,i.level===9?2:i.strategy>=us||i.level<2?4:0),Pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Pe(i,i.gzhead.extra.length&255),Pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ur(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Za):(Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,i.level===9?2:i.strategy>=us||i.level<2?4:0),Pe(i,iy),i.status=Tr);else{var n=ui+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=us||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,n|=o<<6,i.strstart!==0&&(n|=sy),n+=31-n%31,i.status=Tr,_n(i,n),i.strstart!==0&&(_n(i,e.adler>>>16),_n(i,e.adler&65535)),e.adler=1}if(i.status===Za)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),dr(e),a=i.pending,i.pending===i.pending_buf_size));)Pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=$s)}else i.status=$s;if(i.status===$s)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),dr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=Rs)}else i.status=Rs;if(i.status===Rs)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),dr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Ls)}else i.status=Ls;if(i.status===Ls&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&dr(e),i.pending+2<=i.pending_buf_size&&(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),e.adler=0,i.status=Tr)):i.status=Tr),i.pending!==0){if(dr(e),e.avail_out===0)return i.last_flush=-1,Yt}else if(e.avail_in===0&&gl(t)<=gl(r)&&t!==vr)return _r(e,Mi);if(i.status===Sn&&e.avail_in!==0)return _r(e,Mi);if(e.avail_in!==0||i.lookahead!==0||t!==qr&&i.status!==Sn){var l=i.strategy===us?fy(i,t):i.strategy===Hm?ly(i,t):en[i.level].func(i,t);if((l===Cr||l===gn)&&(i.status=Sn),l===ze||l===Cr)return e.avail_out===0&&(i.last_flush=-1),Yt;if(l===Qn&&(t===jm?Tt._tr_align(i):t!==ml&&(Tt._tr_stored_block(i,0,0,!1),t===qm&&(wr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),dr(e),e.avail_out===0))return i.last_flush=-1,Yt}return t!==vr?Yt:i.wrap<=0?yl:(i.wrap===2?(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),Pe(i,e.adler>>16&255),Pe(i,e.adler>>24&255),Pe(i,e.total_in&255),Pe(i,e.total_in>>8&255),Pe(i,e.total_in>>16&255),Pe(i,e.total_in>>24&255)):(_n(i,e.adler>>>16),_n(i,e.adler&65535)),dr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Yt:yl)}function my(e){var t;return!e||!e.state?$t:(t=e.state.status,t!==di&&t!==Za&&t!==$s&&t!==Rs&&t!==Ls&&t!==Tr&&t!==Sn?_r(e,$t):(e.state=null,t===Tr?_r(e,Mm):Yt))}function yy(e,t){var r=t.length,i,a,s,n,o,l,p,c;if(!e||!e.state||(i=e.state,n=i.wrap,n===2||n===1&&i.status!==di||i.lookahead))return $t;for(n===1&&(e.adler=vc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(n===0&&(wr(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new at.Buf8(i.w_size),at.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),o=e.avail_in,l=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,Dr(i);i.lookahead>=ge;){a=i.strstart,s=i.lookahead-(ge-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ge-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=ge-1,Dr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ge-1,i.match_available=0,e.next_in=l,e.input=p,e.avail_in=o,i.wrap=n,Yt}Qt.deflateInit=dy;Qt.deflateInit2=Ec;Qt.deflateReset=Pc;Qt.deflateResetKeep=kc;Qt.deflateSetHeader=uy;Qt.deflate=hy;Qt.deflateEnd=my;Qt.deflateSetDictionary=yy;Qt.deflateInfo="pako deflate (from Nodeca project)";var Mr={},hi=ar,Sc=!0,Oc=!0;try{String.fromCharCode.apply(null,[0])}catch{Sc=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Oc=!1}var Bn=new hi.Buf8(256);for(var lr=0;lr<256;lr++)Bn[lr]=lr>=252?6:lr>=248?5:lr>=240?4:lr>=224?3:lr>=192?2:1;Bn[254]=Bn[254]=1;Mr.string2buf=function(e){var t,r,i,a,s,n=e.length,o=0;for(a=0;a<n;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new hi.Buf8(o),s=0,a=0;s<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function Ac(e,t){if(t<65534&&(e.subarray&&Oc||!e.subarray&&Sc))return String.fromCharCode.apply(null,hi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Mr.buf2binstring=function(e){return Ac(e,e.length)};Mr.binstring2buf=function(e){for(var t=new hi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Mr.buf2string=function(e,t){var r,i,a,s,n=t||e.length,o=new Array(n*2);for(i=0,r=0;r<n;){if(a=e[r++],a<128){o[i++]=a;continue}if(s=Bn[a],s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return Ac(o,i)};Mr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Bn[e[r]]>t?r:t};function gy(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Tc=gy,$n=Qt,Rn=ar,Ya=Mr,Ka=xo,wy=Tc,$c=Object.prototype.toString,by=0,zi=4,sn=0,wl=1,bl=2,_y=-1,vy=0,xy=8;function Ur(e){if(!(this instanceof Ur))return new Ur(e);this.options=Rn.assign({level:_y,method:xy,chunkSize:16384,windowBits:15,memLevel:8,strategy:vy,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wy,this.strm.avail_out=0;var r=$n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==sn)throw new Error(Ka[r]);if(t.header&&$n.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Ya.string2buf(t.dictionary):$c.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=$n.deflateSetDictionary(this.strm,i),r!==sn)throw new Error(Ka[r]);this._dict_set=!0}}Ur.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?zi:by,typeof e=="string"?r.input=Ya.string2buf(e):$c.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Rn.Buf8(i),r.next_out=0,r.avail_out=i),a=$n.deflate(r,s),a!==wl&&a!==sn)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===zi||s===bl))&&(this.options.to==="string"?this.onData(Ya.buf2binstring(Rn.shrinkBuf(r.output,r.next_out))):this.onData(Rn.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==wl);return s===zi?(a=$n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===sn):(s===bl&&(this.onEnd(sn),r.avail_out=0),!0)};Ur.prototype.onData=function(e){this.chunks.push(e)};Ur.prototype.onEnd=function(e){e===sn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Rn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ko(e,t){var r=new Ur(t);if(r.push(e,!0),r.err)throw r.msg||Ka[r.err];return r.result}function ky(e,t){return t=t||{},t.raw=!0,ko(e,t)}function Py(e,t){return t=t||{},t.gzip=!0,ko(e,t)}Xn.Deflate=Ur;Xn.deflate=ko;Xn.deflateRaw=ky;Xn.gzip=Py;var es={},Bt={},ds=30,Ey=12,Sy=function(t,r){var i,a,s,n,o,l,p,c,h,m,g,T,y,w,b,A,k,I,$,C,E,O,L,P,S;i=t.state,a=t.next_in,P=t.input,s=a+(t.avail_in-5),n=t.next_out,S=t.output,o=n-(r-t.avail_out),l=n+(t.avail_out-257),p=i.dmax,c=i.wsize,h=i.whave,m=i.wnext,g=i.window,T=i.hold,y=i.bits,w=i.lencode,b=i.distcode,A=(1<<i.lenbits)-1,k=(1<<i.distbits)-1;e:do{y<15&&(T+=P[a++]<<y,y+=8,T+=P[a++]<<y,y+=8),I=w[T&A];t:for(;;){if($=I>>>24,T>>>=$,y-=$,$=I>>>16&255,$===0)S[n++]=I&65535;else if($&16){C=I&65535,$&=15,$&&(y<$&&(T+=P[a++]<<y,y+=8),C+=T&(1<<$)-1,T>>>=$,y-=$),y<15&&(T+=P[a++]<<y,y+=8,T+=P[a++]<<y,y+=8),I=b[T&k];r:for(;;){if($=I>>>24,T>>>=$,y-=$,$=I>>>16&255,$&16){if(E=I&65535,$&=15,y<$&&(T+=P[a++]<<y,y+=8,y<$&&(T+=P[a++]<<y,y+=8)),E+=T&(1<<$)-1,E>p){t.msg="invalid distance too far back",i.mode=ds;break e}if(T>>>=$,y-=$,$=n-o,E>$){if($=E-$,$>h&&i.sane){t.msg="invalid distance too far back",i.mode=ds;break e}if(O=0,L=g,m===0){if(O+=c-$,$<C){C-=$;do S[n++]=g[O++];while(--$);O=n-E,L=S}}else if(m<$){if(O+=c+m-$,$-=m,$<C){C-=$;do S[n++]=g[O++];while(--$);if(O=0,m<C){$=m,C-=$;do S[n++]=g[O++];while(--$);O=n-E,L=S}}}else if(O+=m-$,$<C){C-=$;do S[n++]=g[O++];while(--$);O=n-E,L=S}for(;C>2;)S[n++]=L[O++],S[n++]=L[O++],S[n++]=L[O++],C-=3;C&&(S[n++]=L[O++],C>1&&(S[n++]=L[O++]))}else{O=n-E;do S[n++]=S[O++],S[n++]=S[O++],S[n++]=S[O++],C-=3;while(C>2);C&&(S[n++]=S[O++],C>1&&(S[n++]=S[O++]))}}else if($&64){t.msg="invalid distance code",i.mode=ds;break e}else{I=b[(I&65535)+(T&(1<<$)-1)];continue r}break}}else if($&64)if($&32){i.mode=Ey;break e}else{t.msg="invalid literal/length code",i.mode=ds;break e}else{I=w[(I&65535)+(T&(1<<$)-1)];continue t}break}}while(a<s&&n<l);C=y>>3,a-=C,y-=C<<3,T&=(1<<y)-1,t.next_in=a,t.next_out=n,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=n<l?257+(l-n):257-(n-l),i.hold=T,i.bits=y},_l=ar,Hr=15,vl=852,xl=592,kl=0,Hi=1,Pl=2,Oy=[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],Ay=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Ty=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],$y=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Ry=function(t,r,i,a,s,n,o,l){var p=l.bits,c=0,h=0,m=0,g=0,T=0,y=0,w=0,b=0,A=0,k=0,I,$,C,E,O,L=null,P=0,S,D=new _l.Buf16(Hr+1),F=new _l.Buf16(Hr+1),B=null,q=0,W,X,V;for(c=0;c<=Hr;c++)D[c]=0;for(h=0;h<a;h++)D[r[i+h]]++;for(T=p,g=Hr;g>=1&&D[g]===0;g--);if(T>g&&(T=g),g===0)return s[n++]=1<<24|64<<16|0,s[n++]=1<<24|64<<16|0,l.bits=1,0;for(m=1;m<g&&D[m]===0;m++);for(T<m&&(T=m),b=1,c=1;c<=Hr;c++)if(b<<=1,b-=D[c],b<0)return-1;if(b>0&&(t===kl||g!==1))return-1;for(F[1]=0,c=1;c<Hr;c++)F[c+1]=F[c]+D[c];for(h=0;h<a;h++)r[i+h]!==0&&(o[F[r[i+h]]++]=h);if(t===kl?(L=B=o,S=19):t===Hi?(L=Oy,P-=257,B=Ay,q-=257,S=256):(L=Ty,B=$y,S=-1),k=0,h=0,c=m,O=n,y=T,w=0,C=-1,A=1<<T,E=A-1,t===Hi&&A>vl||t===Pl&&A>xl)return 1;for(;;){W=c-w,o[h]<S?(X=0,V=o[h]):o[h]>S?(X=B[q+o[h]],V=L[P+o[h]]):(X=96,V=0),I=1<<c-w,$=1<<y,m=$;do $-=I,s[O+(k>>w)+$]=W<<24|X<<16|V|0;while($!==0);for(I=1<<c-1;k&I;)I>>=1;if(I!==0?(k&=I-1,k+=I):k=0,h++,--D[c]===0){if(c===g)break;c=r[i+o[h]]}if(c>T&&(k&E)!==C){for(w===0&&(w=T),O+=m,y=c-w,b=1<<y;y+w<g&&(b-=D[y+w],!(b<=0));)y++,b<<=1;if(A+=1<<y,t===Hi&&A>vl||t===Pl&&A>xl)return 1;C=k&E,s[C]=T<<24|y<<16|O-n|0}}return k!==0&&(s[O+k]=c-w<<24|64<<16|0),l.bits=T,0},kt=ar,Xa=bc,Mt=_c,Ly=Sy,Ln=Ry,Fy=0,Rc=1,Lc=2,El=4,Iy=5,hs=6,Nr=0,Cy=1,Dy=2,Rt=-2,Fc=-3,Ic=-4,Uy=-5,Sl=8,Cc=1,Ol=2,Al=3,Tl=4,$l=5,Rl=6,Ll=7,Fl=8,Il=9,Cl=10,Ks=11,tr=12,Vi=13,Dl=14,Gi=15,Ul=16,Nl=17,Bl=18,jl=19,ms=20,ys=21,ql=22,Ml=23,Wl=24,zl=25,Hl=26,Zi=27,Vl=28,Gl=29,De=30,Dc=31,Ny=32,By=852,jy=592,qy=15,My=qy;function Zl(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Wy(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new kt.Buf16(320),this.work=new kt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Uc(e){var t;return!e||!e.state?Rt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Cc,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new kt.Buf32(By),t.distcode=t.distdyn=new kt.Buf32(jy),t.sane=1,t.back=-1,Nr)}function Nc(e){var t;return!e||!e.state?Rt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Uc(e))}function Bc(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Rt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Nc(e))}function jc(e,t){var r,i;return e?(i=new Wy,e.state=i,i.window=null,r=Bc(e,t),r!==Nr&&(e.state=null),r):Rt}function zy(e){return jc(e,My)}var Yl=!0,Yi,Ki;function Hy(e){if(Yl){var t;for(Yi=new kt.Buf32(512),Ki=new kt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ln(Rc,e.lens,0,288,Yi,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ln(Lc,e.lens,0,32,Ki,0,e.work,{bits:5}),Yl=!1}e.lencode=Yi,e.lenbits=9,e.distcode=Ki,e.distbits=5}function qc(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new kt.Buf8(s.wsize)),i>=s.wsize?(kt.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),kt.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(kt.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function Vy(e,t){var r,i,a,s,n,o,l,p,c,h,m,g,T,y,w=0,b,A,k,I,$,C,E,O,L=new kt.Buf8(4),P,S,D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Rt;r=e.state,r.mode===tr&&(r.mode=Vi),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,h=o,m=l,O=Nr;e:for(;;)switch(r.mode){case Cc:if(r.wrap===0){r.mode=Vi;break}for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,L[0]=p&255,L[1]=p>>>8&255,r.check=Mt(r.check,L,2,0),p=0,c=0,r.mode=Ol;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=De;break}if((p&15)!==Sl){e.msg="unknown compression method",r.mode=De;break}if(p>>>=4,c-=4,E=(p&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=De;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=p&512?Cl:tr,p=0,c=0;break;case Ol:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==Sl){e.msg="unknown compression method",r.mode=De;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=De;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,r.check=Mt(r.check,L,2,0)),p=0,c=0,r.mode=Al;case Al:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,L[2]=p>>>16&255,L[3]=p>>>24&255,r.check=Mt(r.check,L,4,0)),p=0,c=0,r.mode=Tl;case Tl:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,r.check=Mt(r.check,L,2,0)),p=0,c=0,r.mode=$l;case $l:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,r.check=Mt(r.check,L,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=Rl;case Rl:if(r.flags&1024&&(g=r.length,g>o&&(g=o),g&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),kt.arraySet(r.head.extra,i,s,g,E)),r.flags&512&&(r.check=Mt(r.check,i,g,s)),o-=g,s+=g,r.length-=g),r.length))break e;r.length=0,r.mode=Ll;case Ll:if(r.flags&2048){if(o===0)break e;g=0;do E=i[s+g++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&g<o);if(r.flags&512&&(r.check=Mt(r.check,i,g,s)),o-=g,s+=g,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Fl;case Fl:if(r.flags&4096){if(o===0)break e;g=0;do E=i[s+g++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&g<o);if(r.flags&512&&(r.check=Mt(r.check,i,g,s)),o-=g,s+=g,E)break e}else r.head&&(r.head.comment=null);r.mode=Il;case Il:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=De;break}p=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=tr;break;case Cl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}e.adler=r.check=Zl(p),p=0,c=0,r.mode=Ks;case Ks:if(r.havedict===0)return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Dy;e.adler=r.check=1,r.mode=tr;case tr:if(t===Iy||t===hs)break e;case Vi:if(r.last){p>>>=c&7,c-=c&7,r.mode=Zi;break}for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Dl;break;case 1:if(Hy(r),r.mode=ms,t===hs){p>>>=2,c-=2;break e}break;case 2:r.mode=Nl;break;case 3:e.msg="invalid block type",r.mode=De}p>>>=2,c-=2;break;case Dl:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=De;break}if(r.length=p&65535,p=0,c=0,r.mode=Gi,t===hs)break e;case Gi:r.mode=Ul;case Ul:if(g=r.length,g){if(g>o&&(g=o),g>l&&(g=l),g===0)break e;kt.arraySet(a,i,s,g,n),o-=g,s+=g,l-=g,n+=g,r.length-=g;break}r.mode=tr;break;case Nl:for(;c<14;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.nlen=(p&31)+257,p>>>=5,c-=5,r.ndist=(p&31)+1,p>>>=5,c-=5,r.ncode=(p&15)+4,p>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=De;break}r.have=0,r.mode=Bl;case Bl:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.lens[D[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},O=Ln(Fy,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,O){e.msg="invalid code lengths set",r.mode=De;break}r.have=0,r.mode=jl;case jl:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[p&(1<<r.lenbits)-1],b=w>>>24,A=w>>>16&255,k=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(k<16)p>>>=b,c-=b,r.lens[r.have++]=k;else{if(k===16){for(S=b+2;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p>>>=b,c-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=De;break}E=r.lens[r.have-1],g=3+(p&3),p>>>=2,c-=2}else if(k===17){for(S=b+3;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,E=0,g=3+(p&7),p>>>=3,c-=3}else{for(S=b+7;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,E=0,g=11+(p&127),p>>>=7,c-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=De;break}for(;g--;)r.lens[r.have++]=E}}if(r.mode===De)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=De;break}if(r.lenbits=9,P={bits:r.lenbits},O=Ln(Rc,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,O){e.msg="invalid literal/lengths set",r.mode=De;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},O=Ln(Lc,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,O){e.msg="invalid distances set",r.mode=De;break}if(r.mode=ms,t===hs)break e;case ms:r.mode=ys;case ys:if(o>=6&&l>=258){e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Ly(e,m),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===tr&&(r.back=-1);break}for(r.back=0;w=r.lencode[p&(1<<r.lenbits)-1],b=w>>>24,A=w>>>16&255,k=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(A&&!(A&240)){for(I=b,$=A,C=k;w=r.lencode[C+((p&(1<<I+$)-1)>>I)],b=w>>>24,A=w>>>16&255,k=w&65535,!(I+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=I,c-=I,r.back+=I}if(p>>>=b,c-=b,r.back+=b,r.length=k,A===0){r.mode=Hl;break}if(A&32){r.back=-1,r.mode=tr;break}if(A&64){e.msg="invalid literal/length code",r.mode=De;break}r.extra=A&15,r.mode=ql;case ql:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Ml;case Ml:for(;w=r.distcode[p&(1<<r.distbits)-1],b=w>>>24,A=w>>>16&255,k=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(!(A&240)){for(I=b,$=A,C=k;w=r.distcode[C+((p&(1<<I+$)-1)>>I)],b=w>>>24,A=w>>>16&255,k=w&65535,!(I+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=I,c-=I,r.back+=I}if(p>>>=b,c-=b,r.back+=b,A&64){e.msg="invalid distance code",r.mode=De;break}r.offset=k,r.extra=A&15,r.mode=Wl;case Wl:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=De;break}r.mode=zl;case zl:if(l===0)break e;if(g=m-l,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=De;break}g>r.wnext?(g-=r.wnext,T=r.wsize-g):T=r.wnext-g,g>r.length&&(g=r.length),y=r.window}else y=a,T=n-r.offset,g=r.length;g>l&&(g=l),l-=g,r.length-=g;do a[n++]=y[T++];while(--g);r.length===0&&(r.mode=ys);break;case Hl:if(l===0)break e;a[n++]=r.length,l--,r.mode=ys;break;case Zi:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[s++]<<c,c+=8}if(m-=l,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,n-m):Xa(r.check,a,m,n-m)),m=l,(r.flags?p:Zl(p))!==r.check){e.msg="incorrect data check",r.mode=De;break}p=0,c=0}r.mode=Vl;case Vl:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=De;break}p=0,c=0}r.mode=Gl;case Gl:O=Cy;break e;case De:O=Fc;break e;case Dc:return Ic;case Ny:default:return Rt}return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||m!==e.avail_out&&r.mode<De&&(r.mode<Zi||t!==El))&&qc(e,e.output,e.next_out,m-e.avail_out),h-=e.avail_in,m-=e.avail_out,e.total_in+=h,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,e.next_out-m):Xa(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===tr?128:0)+(r.mode===ms||r.mode===Gi?256:0),(h===0&&m===0||t===El)&&O===Nr&&(O=Uy),O}function Gy(e){if(!e||!e.state)return Rt;var t=e.state;return t.window&&(t.window=null),e.state=null,Nr}function Zy(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Rt:(r.head=t,t.done=!1,Nr)}function Yy(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Ks)?Rt:i.mode===Ks&&(a=1,a=Xa(a,t,r,0),a!==i.check)?Fc:(s=qc(e,t,r,r),s?(i.mode=Dc,Ic):(i.havedict=1,Nr))}Bt.inflateReset=Nc;Bt.inflateReset2=Bc;Bt.inflateResetKeep=Uc;Bt.inflateInit=zy;Bt.inflateInit2=jc;Bt.inflate=Vy;Bt.inflateEnd=Gy;Bt.inflateGetHeader=Zy;Bt.inflateSetDictionary=Yy;Bt.inflateInfo="pako inflate (from Nodeca project)";var Mc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function Ky(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Xy=Ky,an=Bt,Fn=ar,Fs=Mr,Be=Mc,Ja=xo,Jy=Tc,Qy=Xy,Wc=Object.prototype.toString;function Br(e){if(!(this instanceof Br))return new Br(e);this.options=Fn.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Jy,this.strm.avail_out=0;var r=an.inflateInit2(this.strm,t.windowBits);if(r!==Be.Z_OK)throw new Error(Ja[r]);if(this.header=new Qy,an.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Fs.string2buf(t.dictionary):Wc.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=an.inflateSetDictionary(this.strm,t.dictionary),r!==Be.Z_OK)))throw new Error(Ja[r])}Br.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,n,o,l,p,c=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?Be.Z_FINISH:Be.Z_NO_FLUSH,typeof e=="string"?r.input=Fs.binstring2buf(e):Wc.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Fn.Buf8(i),r.next_out=0,r.avail_out=i),s=an.inflate(r,Be.Z_NO_FLUSH),s===Be.Z_NEED_DICT&&a&&(s=an.inflateSetDictionary(this.strm,a)),s===Be.Z_BUF_ERROR&&c===!0&&(s=Be.Z_OK,c=!1),s!==Be.Z_STREAM_END&&s!==Be.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===Be.Z_STREAM_END||r.avail_in===0&&(n===Be.Z_FINISH||n===Be.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=Fs.utf8border(r.output,r.next_out),l=r.next_out-o,p=Fs.buf2string(r.output,o),r.next_out=l,r.avail_out=i-l,l&&Fn.arraySet(r.output,r.output,o,l,0),this.onData(p)):this.onData(Fn.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==Be.Z_STREAM_END);return s===Be.Z_STREAM_END&&(n=Be.Z_FINISH),n===Be.Z_FINISH?(s=an.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===Be.Z_OK):(n===Be.Z_SYNC_FLUSH&&(this.onEnd(Be.Z_OK),r.avail_out=0),!0)};Br.prototype.onData=function(e){this.chunks.push(e)};Br.prototype.onEnd=function(e){e===Be.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Fn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Po(e,t){var r=new Br(t);if(r.push(e,!0),r.err)throw r.msg||Ja[r.err];return r.result}function e0(e,t){return t=t||{},t.raw=!0,Po(e,t)}es.Inflate=Br;es.inflate=Po;es.inflateRaw=e0;es.ungzip=Po;var t0=ar.assign,r0=Xn,n0=es,s0=Mc,zc={};t0(zc,r0,n0,s0);var i0=zc;const Eo=po(i0);async function a0(e,t){const r=new Qp(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new Ee(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new Ee(`Invalid packfile version: ${a}`);let s=await r.read(4);if(s=s.readUInt32BE(0),!(s<1))for(;!r.eof()&&s--;){const n=r.tell(),{type:o,length:l,ofs:p,reference:c}=await o0(r),h=new Eo.Inflate;for(;!h.result;){const m=await r.chunk();if(!m)break;if(h.push(m,!1),h.err)throw new Ee(`Pako error: ${h.msg}`);if(h.result){if(h.result.length!==l)throw new Ee("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(m.length-h.strm.avail_in);const g=r.tell();await t({data:h.result,type:o,num:s,offset:n,end:g,reference:c,ofs:p})}}}}async function o0(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let n=4;do t=await e.byte(),i|=(t&127)<<n,n+=7;while(t&128)}let a,s;if(r===6){let n=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<n,n+=7,o.push(t);while(t&128);s=Buffer.from(o)}return r===7&&(s=await e.read(20)),{type:r,length:i,ofs:a,reference:s}}async function l0(e){return Eo.inflate(e)}var Qa={exports:{}};typeof Object.create=="function"?Qa.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Qa.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var f0=Qa.exports,eo={exports:{}},So={},mi={};mi.byteLength=u0;mi.toByteArray=h0;mi.fromByteArray=g0;var Kt=[],Ot=[],p0=typeof Uint8Array<"u"?Uint8Array:Array,Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Vr=0,c0=Xi.length;Vr<c0;++Vr)Kt[Vr]=Xi[Vr],Ot[Xi.charCodeAt(Vr)]=Vr;Ot[45]=62;Ot[95]=63;function Hc(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function u0(e){var t=Hc(e),r=t[0],i=t[1];return(r+i)*3/4-i}function d0(e,t,r){return(t+r)*3/4-r}function h0(e){var t,r=Hc(e),i=r[0],a=r[1],s=new p0(d0(e,i,a)),n=0,o=a>0?i-4:i,l;for(l=0;l<o;l+=4)t=Ot[e.charCodeAt(l)]<<18|Ot[e.charCodeAt(l+1)]<<12|Ot[e.charCodeAt(l+2)]<<6|Ot[e.charCodeAt(l+3)],s[n++]=t>>16&255,s[n++]=t>>8&255,s[n++]=t&255;return a===2&&(t=Ot[e.charCodeAt(l)]<<2|Ot[e.charCodeAt(l+1)]>>4,s[n++]=t&255),a===1&&(t=Ot[e.charCodeAt(l)]<<10|Ot[e.charCodeAt(l+1)]<<4|Ot[e.charCodeAt(l+2)]>>2,s[n++]=t>>8&255,s[n++]=t&255),s}function m0(e){return Kt[e>>18&63]+Kt[e>>12&63]+Kt[e>>6&63]+Kt[e&63]}function y0(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(m0(i));return a.join("")}function g0(e){for(var t,r=e.length,i=r%3,a=[],s=16383,n=0,o=r-i;n<o;n+=s)a.push(y0(e,n,n+s>o?o:n+s));return i===1?(t=e[r-1],a.push(Kt[t>>2]+Kt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Kt[t>>10]+Kt[t>>4&63]+Kt[t<<2&63]+"=")),a.join("")}var Oo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Oo.read=function(e,t,r,i,a){var s,n,o=a*8-i-1,l=(1<<o)-1,p=l>>1,c=-7,h=r?a-1:0,m=r?-1:1,g=e[t+h];for(h+=m,s=g&(1<<-c)-1,g>>=-c,c+=o;c>0;s=s*256+e[t+h],h+=m,c-=8);for(n=s&(1<<-c)-1,s>>=-c,c+=i;c>0;n=n*256+e[t+h],h+=m,c-=8);if(s===0)s=1-p;else{if(s===l)return n?NaN:(g?-1:1)*(1/0);n=n+Math.pow(2,i),s=s-p}return(g?-1:1)*n*Math.pow(2,s-i)};Oo.write=function(e,t,r,i,a,s){var n,o,l,p=s*8-a-1,c=(1<<p)-1,h=c>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:s-1,T=i?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,n=c):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+h>=1?t+=m/l:t+=m*Math.pow(2,1-h),t*l>=2&&(n++,l/=2),n+h>=c?(o=0,n=c):n+h>=1?(o=(t*l-1)*Math.pow(2,a),n=n+h):(o=t*Math.pow(2,h-1)*Math.pow(2,a),n=0));a>=8;e[r+g]=o&255,g+=T,o/=256,a-=8);for(n=n<<a|o,p+=a;p>0;e[r+g]=n&255,g+=T,n/=256,p-=8);e[r+g-T]|=y*128};/*!
|
|
57
|
+
`+i)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return gm(t)}static async sign(t,r,i){const a=t.withoutSignature(),s=bt.justMessage(t._commit);let{signature:n}=await r({payload:a,secretKey:i});n=rr(n);const l=bt.justHeaders(t._commit)+`
|
|
58
|
+
gpgsig`+Bi(n)+`
|
|
59
|
+
`+s;return bt.from(l)}}var pc={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function r(){for(var T=0,F=new Array(256),P=0;P!=256;++P)T=P,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,F[P]=T;return typeof Int32Array<"u"?new Int32Array(F):F}var i=r();function a(T){var F=0,P=0,S=0,D=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(S=0;S!=256;++S)D[S]=T[S];for(S=0;S!=256;++S)for(P=T[S],F=256+S;F<4096;F+=256)P=D[F]=P>>>8^T[P&255];var I=[];for(S=1;S!=16;++S)I[S-1]=typeof Int32Array<"u"?D.subarray(S*256,S*256+256):D.slice(S*256,S*256+256);return I}var s=a(i),n=s[0],o=s[1],l=s[2],p=s[3],c=s[4],h=s[5],m=s[6],g=s[7],A=s[8],y=s[9],w=s[10],b=s[11],O=s[12],k=s[13],L=s[14];function $(T,F){for(var P=F^-1,S=0,D=T.length;S<D;)P=P>>>8^i[(P^T.charCodeAt(S++))&255];return~P}function C(T,F){for(var P=F^-1,S=T.length-15,D=0;D<S;)P=L[T[D++]^P&255]^k[T[D++]^P>>8&255]^O[T[D++]^P>>16&255]^b[T[D++]^P>>>24]^w[T[D++]]^y[T[D++]]^A[T[D++]]^g[T[D++]]^m[T[D++]]^h[T[D++]]^c[T[D++]]^p[T[D++]]^l[T[D++]]^o[T[D++]]^n[T[D++]]^i[T[D++]];for(S+=15;D<S;)P=P>>>8^i[(P^T[D++])&255];return~P}function E(T,F){for(var P=F^-1,S=0,D=T.length,I=0,U=0;S<D;)I=T.charCodeAt(S++),I<128?P=P>>>8^i[(P^I)&255]:I<2048?(P=P>>>8^i[(P^(192|I>>6&31))&255],P=P>>>8^i[(P^(128|I&63))&255]):I>=55296&&I<57344?(I=(I&1023)+64,U=T.charCodeAt(S++)&1023,P=P>>>8^i[(P^(240|I>>8&7))&255],P=P>>>8^i[(P^(128|I>>2&63))&255],P=P>>>8^i[(P^(128|U>>6&15|(I&3)<<4))&255],P=P>>>8^i[(P^(128|U&63))&255]):(P=P>>>8^i[(P^(224|I>>12&15))&255],P=P>>>8^i[(P^(128|I>>6&63))&255],P=P>>>8^i[(P^(128|I&63))&255]);return~P}t.table=i,t.bstr=$,t.buf=C,t.str=E})})(pc);const wm=ho(pc);class bm{static wrap({type:t,object:r}){return Buffer.concat([Buffer.from(`${t} ${r.byteLength.toString()}\0`),Buffer.from(r)])}static unwrap(t){const r=t.indexOf(32),i=t.indexOf(0),a=t.slice(0,r).toString("utf8"),s=t.slice(r+1,i).toString("utf8"),n=t.length-(i+1);if(parseInt(s)!==n)throw new Ee(`Length mismatch: expected ${s} bytes but got ${n} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class Zt{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const r=this.buffer.slice(this._start,this._start+t);return this._start+=t,r}toString(t,r){const i=this.buffer.toString(t,this._start,this._start+r);return this._start+=r,i}write(t,r,i){const a=this.buffer.write(t,this._start,r,i);return this._start+=r,a}copy(t,r,i){const a=t.copy(this.buffer,this._start,r,i);return this._start+=a,a}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const r=this.buffer.writeUInt8(t,this._start);return this._start+=1,r}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const r=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,r}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const r=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,r}}function _m(e,t){const r=new Zt(e),i=ul(r);if(i!==t.byteLength)throw new Ee(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=ul(r);let s;const n=hl(r,t);if(n.byteLength===a)s=n;else{s=Buffer.alloc(a);const o=new Zt(s);for(o.copy(n);!r.eof();)o.copy(hl(r,t));const l=o.tell();if(a!==l)throw new Ee(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${l} bytes`)}return s}function ul(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function dl(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function hl(e,t){const r=e.readUInt8(),i=128,a=15,s=112;if(r&i){const n=dl(e,r&a,4);let o=dl(e,(r&s)>>4,3);return o===0&&(o=65536),t.slice(n,n+o)}else return e.slice(r)}var ar={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,n){return Object.prototype.hasOwnProperty.call(s,n)}e.assign=function(s){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var o=n.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var l in o)r(o,l)&&(s[l]=o[l])}}return s},e.shrinkBuf=function(s,n){return s.length===n?s:s.subarray?s.subarray(0,n):(s.length=n,s)};var i={arraySet:function(s,n,o,l,p){if(n.subarray&&s.subarray){s.set(n.subarray(o,o+l),p);return}for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){var n,o,l,p,c,h;for(l=0,n=0,o=s.length;n<o;n++)l+=s[n].length;for(h=new Uint8Array(l),p=0,n=0,o=s.length;n<o;n++)c=s[n],h.set(c,p),p+=c.length;return h}},a={arraySet:function(s,n,o,l,p){for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(ar);var Qn={},Qt={},gn={},vm=ar,xm=4,ml=0,yl=1,km=2;function wn(e){for(var t=e.length;--t>=0;)e[t]=0}var Pm=0,cc=1,Em=2,Sm=3,Tm=258,vo=29,es=256,Nn=es+1+vo,an=30,xo=19,uc=2*Nn+1,Or=15,qi=16,Om=7,ko=256,dc=16,hc=17,mc=18,Ga=[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],Rs=[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],Am=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$m=512,nr=new Array((Nn+2)*2);wn(nr);var Rn=new Array(an*2);wn(Rn);var jn=new Array($m);wn(jn);var Un=new Array(Tm-Sm+1);wn(Un);var Po=new Array(vo);wn(Po);var Xs=new Array(an);wn(Xs);function Mi(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var gc,wc,bc;function Wi(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function _c(e){return e<256?jn[e]:jn[256+(e>>>7)]}function Bn(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function mt(e,t,r){e.bi_valid>qi-r?(e.bi_buf|=t<<e.bi_valid&65535,Bn(e,e.bi_buf),e.bi_buf=t>>qi-e.bi_valid,e.bi_valid+=r-qi):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Gt(e,t,r){mt(e,r[t*2],r[t*2+1])}function vc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Rm(e){e.bi_valid===16?(Bn(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function Fm(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,n=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,l=t.stat_desc.max_length,p,c,h,m,g,A,y=0;for(m=0;m<=Or;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<uc;p++)c=e.heap[p],m=r[r[c*2+1]*2+1]+1,m>l&&(m=l,y++),r[c*2+1]=m,!(c>i)&&(e.bl_count[m]++,g=0,c>=o&&(g=n[c-o]),A=r[c*2],e.opt_len+=A*(m+g),s&&(e.static_len+=A*(a[c*2+1]+g)));if(y!==0){do{for(m=l-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[l]--,y-=2}while(y>0);for(m=l;m!==0;m--)for(c=e.bl_count[m];c!==0;)h=e.heap[--p],!(h>i)&&(r[h*2+1]!==m&&(e.opt_len+=(m-r[h*2+1])*r[h*2],r[h*2+1]=m),c--)}}function xc(e,t,r){var i=new Array(Or+1),a=0,s,n;for(s=1;s<=Or;s++)i[s]=a=a+r[s-1]<<1;for(n=0;n<=t;n++){var o=e[n*2+1];o!==0&&(e[n*2]=vc(i[o]++,o))}}function Im(){var e,t,r,i,a,s=new Array(Or+1);for(r=0,i=0;i<vo-1;i++)for(Po[i]=r,e=0;e<1<<Ga[i];e++)Un[r++]=i;for(Un[r-1]=i,a=0,i=0;i<16;i++)for(Xs[i]=a,e=0;e<1<<Rs[i];e++)jn[a++]=i;for(a>>=7;i<an;i++)for(Xs[i]=a<<7,e=0;e<1<<Rs[i]-7;e++)jn[256+a++]=i;for(t=0;t<=Or;t++)s[t]=0;for(e=0;e<=143;)nr[e*2+1]=8,e++,s[8]++;for(;e<=255;)nr[e*2+1]=9,e++,s[9]++;for(;e<=279;)nr[e*2+1]=7,e++,s[7]++;for(;e<=287;)nr[e*2+1]=8,e++,s[8]++;for(xc(nr,Nn+1,s),e=0;e<an;e++)Rn[e*2+1]=5,Rn[e*2]=vc(e,5);gc=new Mi(nr,Ga,es+1,Nn,Or),wc=new Mi(Rn,Rs,0,an,Or),bc=new Mi(new Array(0),Am,0,xo,Om)}function kc(e){var t;for(t=0;t<Nn;t++)e.dyn_ltree[t*2]=0;for(t=0;t<an;t++)e.dyn_dtree[t*2]=0;for(t=0;t<xo;t++)e.bl_tree[t*2]=0;e.dyn_ltree[ko*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Pc(e){e.bi_valid>8?Bn(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Lm(e,t,r,i){Pc(e),Bn(e,r),Bn(e,~r),vm.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function gl(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}function zi(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&gl(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!gl(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function wl(e,t,r){var i,a,s=0,n,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Gt(e,a,t):(n=Un[a],Gt(e,n+es+1,t),o=Ga[n],o!==0&&(a-=Po[n],mt(e,a,o)),i--,n=_c(i),Gt(e,n,r),o=Rs[n],o!==0&&(i-=Xs[n],mt(e,i,o)));while(s<e.last_lit);Gt(e,ko,t)}function Ya(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,n,o,l=-1,p;for(e.heap_len=0,e.heap_max=uc,n=0;n<s;n++)r[n*2]!==0?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):r[n*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=l<2?++l:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,a&&(e.static_len-=i[p*2+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)zi(e,r,n);p=s;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],zi(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,r[p*2]=r[n*2]+r[o*2],e.depth[p]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,r[n*2+1]=r[o*2+1]=p,e.heap[1]=p++,zi(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Fm(e,t),xc(r,l,e.bl_count)}function bl(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)&&(o<p?e.bl_tree[s*2]+=o:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[dc*2]++):o<=10?e.bl_tree[hc*2]++:e.bl_tree[mc*2]++,o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4))}function _l(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),i=0;i<=r;i++)if(s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)){if(o<p)do Gt(e,s,e.bl_tree);while(--o!==0);else s!==0?(s!==a&&(Gt(e,s,e.bl_tree),o--),Gt(e,dc,e.bl_tree),mt(e,o-3,2)):o<=10?(Gt(e,hc,e.bl_tree),mt(e,o-3,3)):(Gt(e,mc,e.bl_tree),mt(e,o-11,7));o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4)}}function Cm(e){var t;for(bl(e,e.dyn_ltree,e.l_desc.max_code),bl(e,e.dyn_dtree,e.d_desc.max_code),Ya(e,e.bl_desc),t=xo-1;t>=3&&e.bl_tree[yc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Dm(e,t,r,i){var a;for(mt(e,t-257,5),mt(e,r-1,5),mt(e,i-4,4),a=0;a<i;a++)mt(e,e.bl_tree[yc[a]*2+1],3);_l(e,e.dyn_ltree,t-1),_l(e,e.dyn_dtree,r-1)}function Nm(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return ml;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return yl;for(r=32;r<es;r++)if(e.dyn_ltree[r*2]!==0)return yl;return ml}var vl=!1;function jm(e){vl||(Im(),vl=!0),e.l_desc=new Wi(e.dyn_ltree,gc),e.d_desc=new Wi(e.dyn_dtree,wc),e.bl_desc=new Wi(e.bl_tree,bc),e.bi_buf=0,e.bi_valid=0,kc(e)}function Ec(e,t,r,i){mt(e,(Pm<<1)+(i?1:0),3),Lm(e,t,r)}function Um(e){mt(e,cc<<1,3),Gt(e,ko,nr),Rm(e)}function Bm(e,t,r,i){var a,s,n=0;e.level>0?(e.strm.data_type===km&&(e.strm.data_type=Nm(e)),Ya(e,e.l_desc),Ya(e,e.d_desc),n=Cm(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?Ec(e,t,r,i):e.strategy===xm||s===a?(mt(e,(cc<<1)+(i?1:0),3),wl(e,nr,Rn)):(mt(e,(Em<<1)+(i?1:0),3),Dm(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),wl(e,e.dyn_ltree,e.dyn_dtree)),kc(e),i&&Pc(e)}function qm(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Un[r]+es+1)*2]++,e.dyn_dtree[_c(t)*2]++),e.last_lit===e.lit_bufsize-1}gn._tr_init=jm;gn._tr_stored_block=Ec;gn._tr_flush_block=Bm;gn._tr_tally=qm;gn._tr_align=Um;function Mm(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,n=0;r!==0;){n=r>2e3?2e3:r,r-=n;do a=a+t[i++]|0,s=s+a|0;while(--n);a%=65521,s%=65521}return a|s<<16|0}var Sc=Mm;function Wm(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var zm=Wm();function Hm(e,t,r,i){var a=zm,s=i+r;e^=-1;for(var n=i;n<s;n++)e=e>>>8^a[(e^t[n])&255];return e^-1}var Tc=Hm,Eo={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},at=ar,At=gn,Oc=Sc,ur=Tc,Vm=Eo,Mr=0,Zm=1,Gm=3,vr=4,xl=5,Yt=0,kl=1,$t=-2,Ym=-3,Hi=-5,Km=-1,Xm=1,hs=2,Jm=3,Qm=4,ey=0,ty=2,mi=8,ry=9,ny=15,sy=8,iy=29,ay=256,Ka=ay+1+iy,oy=30,ly=19,fy=2*Ka+1,py=15,ge=3,br=258,jt=br+ge+1,cy=32,yi=42,Xa=69,Fs=73,Is=91,Ls=103,Ar=113,On=666,ze=1,ts=2,Cr=3,bn=4,uy=3;function _r(e,t){return e.msg=Vm[t],t}function Pl(e){return(e<<1)-(e>4?9:0)}function wr(e){for(var t=e.length;--t>=0;)e[t]=0}function dr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(at.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Qe(e,t){At._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,dr(e.strm)}function Pe(e,t){e.pending_buf[e.pending++]=t}function xn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function dy(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,at.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Oc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=ur(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function Ac(e,t){var r=e.max_chain_length,i=e.strstart,a,s,n=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-jt?e.strstart-(e.w_size-jt):0,p=e.window,c=e.w_mask,h=e.prev,m=e.strstart+br,g=p[i+n-1],A=p[i+n];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+n]!==A||p[a+n-1]!==g||p[a]!==p[i]||p[++a]!==p[i+1])){i+=2,a++;do;while(p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&i<m);if(s=br-(m-i),i=m-br,s>n){if(e.match_start=t,n=s,s>=o)break;g=p[i+n-1],A=p[i+n]}}while((t=h[t&c])>l&&--r!==0);return n<=e.lookahead?n:e.lookahead}function Dr(e){var t=e.w_size,r,i,a,s,n;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-jt)){at.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=dy(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=ge)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+ge-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<ge)););}while(e.lookahead<jt&&e.strm.avail_in!==0)}function hy(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Dr(e),e.lookahead===0&&t===Mr)return ze;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Qe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-jt&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=0,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:bn):(e.strstart>e.block_start&&(Qe(e,!1),e.strm.avail_out===0),ze)}function Vi(e,t){for(var r,i;;){if(e.lookahead<jt){if(Dr(e),e.lookahead<jt&&t===Mr)return ze;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-jt&&(e.match_length=Ac(e,r)),e.match_length>=ge)if(i=At._tr_tally(e,e.strstart-e.match_start,e.match_length-ge),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ge){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=e.strstart<ge-1?e.strstart:ge-1,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:ts}function Hr(e,t){for(var r,i,a;;){if(e.lookahead<jt){if(Dr(e),e.lookahead<jt&&t===Mr)return ze;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ge-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-jt&&(e.match_length=Ac(e,r),e.match_length<=5&&(e.strategy===Xm||e.match_length===ge&&e.strstart-e.match_start>4096)&&(e.match_length=ge-1)),e.prev_length>=ge&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ge,i=At._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ge),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ge-1,e.strstart++,i&&(Qe(e,!1),e.strm.avail_out===0))return ze}else if(e.match_available){if(i=At._tr_tally(e,0,e.window[e.strstart-1]),i&&Qe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ze}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=At._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ge-1?e.strstart:ge-1,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:ts}function my(e,t){for(var r,i,a,s,n=e.window;;){if(e.lookahead<=br){if(Dr(e),e.lookahead<=br&&t===Mr)return ze;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ge&&e.strstart>0&&(a=e.strstart-1,i=n[a],i===n[++a]&&i===n[++a]&&i===n[++a])){s=e.strstart+br;do;while(i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&a<s);e.match_length=br-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ge?(r=At._tr_tally(e,1,e.match_length-ge),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=0,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:ts}function yy(e,t){for(var r;;){if(e.lookahead===0&&(Dr(e),e.lookahead===0)){if(t===Mr)return ze;break}if(e.match_length=0,r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Qe(e,!1),e.strm.avail_out===0))return ze}return e.insert=0,t===vr?(Qe(e,!0),e.strm.avail_out===0?Cr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?ze:ts}function qt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var tn;tn=[new qt(0,0,0,0,hy),new qt(4,4,8,4,Vi),new qt(4,5,16,8,Vi),new qt(4,6,32,32,Vi),new qt(4,4,16,16,Hr),new qt(8,16,32,32,Hr),new qt(8,16,128,128,Hr),new qt(8,32,128,256,Hr),new qt(32,128,258,1024,Hr),new qt(32,258,258,4096,Hr)];function gy(e){e.window_size=2*e.w_size,wr(e.head),e.max_lazy_match=tn[e.level].max_lazy,e.good_match=tn[e.level].good_length,e.nice_match=tn[e.level].nice_length,e.max_chain_length=tn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ge-1,e.match_available=0,e.ins_h=0}function wy(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mi,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new at.Buf16(fy*2),this.dyn_dtree=new at.Buf16((2*oy+1)*2),this.bl_tree=new at.Buf16((2*ly+1)*2),wr(this.dyn_ltree),wr(this.dyn_dtree),wr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new at.Buf16(py+1),this.heap=new at.Buf16(2*Ka+1),wr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new at.Buf16(2*Ka+1),wr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function $c(e){var t;return!e||!e.state?_r(e,$t):(e.total_in=e.total_out=0,e.data_type=ty,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?yi:Ar,e.adler=t.wrap===2?0:1,t.last_flush=Mr,At._tr_init(t),Yt)}function Rc(e){var t=$c(e);return t===Yt&&gy(e.state),t}function by(e,t){return!e||!e.state||e.state.wrap!==2?$t:(e.state.gzhead=t,Yt)}function Fc(e,t,r,i,a,s){if(!e)return $t;var n=1;if(t===Km&&(t=6),i<0?(n=0,i=-i):i>15&&(n=2,i-=16),a<1||a>ry||r!==mi||i<8||i>15||t<0||t>9||s<0||s>Qm)return _r(e,$t);i===8&&(i=9);var o=new wy;return e.state=o,o.strm=e,o.wrap=n,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+ge-1)/ge),o.window=new at.Buf8(o.w_size*2),o.head=new at.Buf16(o.hash_size),o.prev=new at.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new at.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=s,o.method=r,Rc(e)}function _y(e,t){return Fc(e,t,mi,ny,sy,ey)}function vy(e,t){var r,i,a,s;if(!e||!e.state||t>xl||t<0)return e?_r(e,$t):$t;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===On&&t!==vr)return _r(e,e.avail_out===0?Hi:$t);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===yi)if(i.wrap===2)e.adler=0,Pe(i,31),Pe(i,139),Pe(i,8),i.gzhead?(Pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Pe(i,i.gzhead.time&255),Pe(i,i.gzhead.time>>8&255),Pe(i,i.gzhead.time>>16&255),Pe(i,i.gzhead.time>>24&255),Pe(i,i.level===9?2:i.strategy>=hs||i.level<2?4:0),Pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Pe(i,i.gzhead.extra.length&255),Pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ur(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Xa):(Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,i.level===9?2:i.strategy>=hs||i.level<2?4:0),Pe(i,uy),i.status=Ar);else{var n=mi+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=hs||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,n|=o<<6,i.strstart!==0&&(n|=cy),n+=31-n%31,i.status=Ar,xn(i,n),i.strstart!==0&&(xn(i,e.adler>>>16),xn(i,e.adler&65535)),e.adler=1}if(i.status===Xa)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),dr(e),a=i.pending,i.pending===i.pending_buf_size));)Pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Fs)}else i.status=Fs;if(i.status===Fs)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),dr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=Is)}else i.status=Is;if(i.status===Is)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),dr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ur(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Ls)}else i.status=Ls;if(i.status===Ls&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&dr(e),i.pending+2<=i.pending_buf_size&&(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),e.adler=0,i.status=Ar)):i.status=Ar),i.pending!==0){if(dr(e),e.avail_out===0)return i.last_flush=-1,Yt}else if(e.avail_in===0&&Pl(t)<=Pl(r)&&t!==vr)return _r(e,Hi);if(i.status===On&&e.avail_in!==0)return _r(e,Hi);if(e.avail_in!==0||i.lookahead!==0||t!==Mr&&i.status!==On){var l=i.strategy===hs?yy(i,t):i.strategy===Jm?my(i,t):tn[i.level].func(i,t);if((l===Cr||l===bn)&&(i.status=On),l===ze||l===Cr)return e.avail_out===0&&(i.last_flush=-1),Yt;if(l===ts&&(t===Zm?At._tr_align(i):t!==xl&&(At._tr_stored_block(i,0,0,!1),t===Gm&&(wr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),dr(e),e.avail_out===0))return i.last_flush=-1,Yt}return t!==vr?Yt:i.wrap<=0?kl:(i.wrap===2?(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),Pe(i,e.adler>>16&255),Pe(i,e.adler>>24&255),Pe(i,e.total_in&255),Pe(i,e.total_in>>8&255),Pe(i,e.total_in>>16&255),Pe(i,e.total_in>>24&255)):(xn(i,e.adler>>>16),xn(i,e.adler&65535)),dr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Yt:kl)}function xy(e){var t;return!e||!e.state?$t:(t=e.state.status,t!==yi&&t!==Xa&&t!==Fs&&t!==Is&&t!==Ls&&t!==Ar&&t!==On?_r(e,$t):(e.state=null,t===Ar?_r(e,Ym):Yt))}function ky(e,t){var r=t.length,i,a,s,n,o,l,p,c;if(!e||!e.state||(i=e.state,n=i.wrap,n===2||n===1&&i.status!==yi||i.lookahead))return $t;for(n===1&&(e.adler=Oc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(n===0&&(wr(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new at.Buf8(i.w_size),at.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),o=e.avail_in,l=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,Dr(i);i.lookahead>=ge;){a=i.strstart,s=i.lookahead-(ge-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ge-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=ge-1,Dr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ge-1,i.match_available=0,e.next_in=l,e.input=p,e.avail_in=o,i.wrap=n,Yt}Qt.deflateInit=_y;Qt.deflateInit2=Fc;Qt.deflateReset=Rc;Qt.deflateResetKeep=$c;Qt.deflateSetHeader=by;Qt.deflate=vy;Qt.deflateEnd=xy;Qt.deflateSetDictionary=ky;Qt.deflateInfo="pako deflate (from Nodeca project)";var Wr={},gi=ar,Ic=!0,Lc=!0;try{String.fromCharCode.apply(null,[0])}catch{Ic=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Lc=!1}var qn=new gi.Buf8(256);for(var lr=0;lr<256;lr++)qn[lr]=lr>=252?6:lr>=248?5:lr>=240?4:lr>=224?3:lr>=192?2:1;qn[254]=qn[254]=1;Wr.string2buf=function(e){var t,r,i,a,s,n=e.length,o=0;for(a=0;a<n;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new gi.Buf8(o),s=0,a=0;s<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function Cc(e,t){if(t<65534&&(e.subarray&&Lc||!e.subarray&&Ic))return String.fromCharCode.apply(null,gi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Wr.buf2binstring=function(e){return Cc(e,e.length)};Wr.binstring2buf=function(e){for(var t=new gi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Wr.buf2string=function(e,t){var r,i,a,s,n=t||e.length,o=new Array(n*2);for(i=0,r=0;r<n;){if(a=e[r++],a<128){o[i++]=a;continue}if(s=qn[a],s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return Cc(o,i)};Wr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+qn[e[r]]>t?r:t};function Py(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Dc=Py,Fn=Qt,In=ar,Ja=Wr,Qa=Eo,Ey=Dc,Nc=Object.prototype.toString,Sy=0,Zi=4,on=0,El=1,Sl=2,Ty=-1,Oy=0,Ay=8;function Nr(e){if(!(this instanceof Nr))return new Nr(e);this.options=In.assign({level:Ty,method:Ay,chunkSize:16384,windowBits:15,memLevel:8,strategy:Oy,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ey,this.strm.avail_out=0;var r=Fn.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==on)throw new Error(Qa[r]);if(t.header&&Fn.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Ja.string2buf(t.dictionary):Nc.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Fn.deflateSetDictionary(this.strm,i),r!==on)throw new Error(Qa[r]);this._dict_set=!0}}Nr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?Zi:Sy,typeof e=="string"?r.input=Ja.string2buf(e):Nc.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new In.Buf8(i),r.next_out=0,r.avail_out=i),a=Fn.deflate(r,s),a!==El&&a!==on)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===Zi||s===Sl))&&(this.options.to==="string"?this.onData(Ja.buf2binstring(In.shrinkBuf(r.output,r.next_out))):this.onData(In.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==El);return s===Zi?(a=Fn.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===on):(s===Sl&&(this.onEnd(on),r.avail_out=0),!0)};Nr.prototype.onData=function(e){this.chunks.push(e)};Nr.prototype.onEnd=function(e){e===on&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=In.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function So(e,t){var r=new Nr(t);if(r.push(e,!0),r.err)throw r.msg||Qa[r.err];return r.result}function $y(e,t){return t=t||{},t.raw=!0,So(e,t)}function Ry(e,t){return t=t||{},t.gzip=!0,So(e,t)}Qn.Deflate=Nr;Qn.deflate=So;Qn.deflateRaw=$y;Qn.gzip=Ry;var rs={},Ut={},ms=30,Fy=12,Iy=function(t,r){var i,a,s,n,o,l,p,c,h,m,g,A,y,w,b,O,k,L,$,C,E,T,F,P,S;i=t.state,a=t.next_in,P=t.input,s=a+(t.avail_in-5),n=t.next_out,S=t.output,o=n-(r-t.avail_out),l=n+(t.avail_out-257),p=i.dmax,c=i.wsize,h=i.whave,m=i.wnext,g=i.window,A=i.hold,y=i.bits,w=i.lencode,b=i.distcode,O=(1<<i.lenbits)-1,k=(1<<i.distbits)-1;e:do{y<15&&(A+=P[a++]<<y,y+=8,A+=P[a++]<<y,y+=8),L=w[A&O];t:for(;;){if($=L>>>24,A>>>=$,y-=$,$=L>>>16&255,$===0)S[n++]=L&65535;else if($&16){C=L&65535,$&=15,$&&(y<$&&(A+=P[a++]<<y,y+=8),C+=A&(1<<$)-1,A>>>=$,y-=$),y<15&&(A+=P[a++]<<y,y+=8,A+=P[a++]<<y,y+=8),L=b[A&k];r:for(;;){if($=L>>>24,A>>>=$,y-=$,$=L>>>16&255,$&16){if(E=L&65535,$&=15,y<$&&(A+=P[a++]<<y,y+=8,y<$&&(A+=P[a++]<<y,y+=8)),E+=A&(1<<$)-1,E>p){t.msg="invalid distance too far back",i.mode=ms;break e}if(A>>>=$,y-=$,$=n-o,E>$){if($=E-$,$>h&&i.sane){t.msg="invalid distance too far back",i.mode=ms;break e}if(T=0,F=g,m===0){if(T+=c-$,$<C){C-=$;do S[n++]=g[T++];while(--$);T=n-E,F=S}}else if(m<$){if(T+=c+m-$,$-=m,$<C){C-=$;do S[n++]=g[T++];while(--$);if(T=0,m<C){$=m,C-=$;do S[n++]=g[T++];while(--$);T=n-E,F=S}}}else if(T+=m-$,$<C){C-=$;do S[n++]=g[T++];while(--$);T=n-E,F=S}for(;C>2;)S[n++]=F[T++],S[n++]=F[T++],S[n++]=F[T++],C-=3;C&&(S[n++]=F[T++],C>1&&(S[n++]=F[T++]))}else{T=n-E;do S[n++]=S[T++],S[n++]=S[T++],S[n++]=S[T++],C-=3;while(C>2);C&&(S[n++]=S[T++],C>1&&(S[n++]=S[T++]))}}else if($&64){t.msg="invalid distance code",i.mode=ms;break e}else{L=b[(L&65535)+(A&(1<<$)-1)];continue r}break}}else if($&64)if($&32){i.mode=Fy;break e}else{t.msg="invalid literal/length code",i.mode=ms;break e}else{L=w[(L&65535)+(A&(1<<$)-1)];continue t}break}}while(a<s&&n<l);C=y>>3,a-=C,y-=C<<3,A&=(1<<y)-1,t.next_in=a,t.next_out=n,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=n<l?257+(l-n):257-(n-l),i.hold=A,i.bits=y},Tl=ar,Vr=15,Ol=852,Al=592,$l=0,Gi=1,Rl=2,Ly=[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],Cy=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Dy=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Ny=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],jy=function(t,r,i,a,s,n,o,l){var p=l.bits,c=0,h=0,m=0,g=0,A=0,y=0,w=0,b=0,O=0,k=0,L,$,C,E,T,F=null,P=0,S,D=new Tl.Buf16(Vr+1),I=new Tl.Buf16(Vr+1),U=null,q=0,W,X,V;for(c=0;c<=Vr;c++)D[c]=0;for(h=0;h<a;h++)D[r[i+h]]++;for(A=p,g=Vr;g>=1&&D[g]===0;g--);if(A>g&&(A=g),g===0)return s[n++]=1<<24|64<<16|0,s[n++]=1<<24|64<<16|0,l.bits=1,0;for(m=1;m<g&&D[m]===0;m++);for(A<m&&(A=m),b=1,c=1;c<=Vr;c++)if(b<<=1,b-=D[c],b<0)return-1;if(b>0&&(t===$l||g!==1))return-1;for(I[1]=0,c=1;c<Vr;c++)I[c+1]=I[c]+D[c];for(h=0;h<a;h++)r[i+h]!==0&&(o[I[r[i+h]]++]=h);if(t===$l?(F=U=o,S=19):t===Gi?(F=Ly,P-=257,U=Cy,q-=257,S=256):(F=Dy,U=Ny,S=-1),k=0,h=0,c=m,T=n,y=A,w=0,C=-1,O=1<<A,E=O-1,t===Gi&&O>Ol||t===Rl&&O>Al)return 1;for(;;){W=c-w,o[h]<S?(X=0,V=o[h]):o[h]>S?(X=U[q+o[h]],V=F[P+o[h]]):(X=96,V=0),L=1<<c-w,$=1<<y,m=$;do $-=L,s[T+(k>>w)+$]=W<<24|X<<16|V|0;while($!==0);for(L=1<<c-1;k&L;)L>>=1;if(L!==0?(k&=L-1,k+=L):k=0,h++,--D[c]===0){if(c===g)break;c=r[i+o[h]]}if(c>A&&(k&E)!==C){for(w===0&&(w=A),T+=m,y=c-w,b=1<<y;y+w<g&&(b-=D[y+w],!(b<=0));)y++,b<<=1;if(O+=1<<y,t===Gi&&O>Ol||t===Rl&&O>Al)return 1;C=k&E,s[C]=A<<24|y<<16|T-n|0}}return k!==0&&(s[T+k]=c-w<<24|64<<16|0),l.bits=A,0},kt=ar,eo=Sc,Mt=Tc,Uy=Iy,Ln=jy,By=0,jc=1,Uc=2,Fl=4,qy=5,ys=6,jr=0,My=1,Wy=2,Rt=-2,Bc=-3,qc=-4,zy=-5,Il=8,Mc=1,Ll=2,Cl=3,Dl=4,Nl=5,jl=6,Ul=7,Bl=8,ql=9,Ml=10,Js=11,tr=12,Yi=13,Wl=14,Ki=15,zl=16,Hl=17,Vl=18,Zl=19,gs=20,ws=21,Gl=22,Yl=23,Kl=24,Xl=25,Jl=26,Xi=27,Ql=28,ef=29,De=30,Wc=31,Hy=32,Vy=852,Zy=592,Gy=15,Yy=Gy;function tf(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Ky(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new kt.Buf16(320),this.work=new kt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function zc(e){var t;return!e||!e.state?Rt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Mc,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new kt.Buf32(Vy),t.distcode=t.distdyn=new kt.Buf32(Zy),t.sane=1,t.back=-1,jr)}function Hc(e){var t;return!e||!e.state?Rt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,zc(e))}function Vc(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Rt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Hc(e))}function Zc(e,t){var r,i;return e?(i=new Ky,e.state=i,i.window=null,r=Vc(e,t),r!==jr&&(e.state=null),r):Rt}function Xy(e){return Zc(e,Yy)}var rf=!0,Ji,Qi;function Jy(e){if(rf){var t;for(Ji=new kt.Buf32(512),Qi=new kt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ln(jc,e.lens,0,288,Ji,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ln(Uc,e.lens,0,32,Qi,0,e.work,{bits:5}),rf=!1}e.lencode=Ji,e.lenbits=9,e.distcode=Qi,e.distbits=5}function Gc(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new kt.Buf8(s.wsize)),i>=s.wsize?(kt.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),kt.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(kt.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function Qy(e,t){var r,i,a,s,n,o,l,p,c,h,m,g,A,y,w=0,b,O,k,L,$,C,E,T,F=new kt.Buf8(4),P,S,D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Rt;r=e.state,r.mode===tr&&(r.mode=Yi),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,h=o,m=l,T=jr;e:for(;;)switch(r.mode){case Mc:if(r.wrap===0){r.mode=Yi;break}for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0),p=0,c=0,r.mode=Ll;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=De;break}if((p&15)!==Il){e.msg="unknown compression method",r.mode=De;break}if(p>>>=4,c-=4,E=(p&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=De;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=p&512?Ml:tr,p=0,c=0;break;case Ll:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==Il){e.msg="unknown compression method",r.mode=De;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=De;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0,r.mode=Cl;case Cl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,F[2]=p>>>16&255,F[3]=p>>>24&255,r.check=Mt(r.check,F,4,0)),p=0,c=0,r.mode=Dl;case Dl:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0,r.mode=Nl;case Nl:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=jl;case jl:if(r.flags&1024&&(g=r.length,g>o&&(g=o),g&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),kt.arraySet(r.head.extra,i,s,g,E)),r.flags&512&&(r.check=Mt(r.check,i,g,s)),o-=g,s+=g,r.length-=g),r.length))break e;r.length=0,r.mode=Ul;case Ul:if(r.flags&2048){if(o===0)break e;g=0;do E=i[s+g++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&g<o);if(r.flags&512&&(r.check=Mt(r.check,i,g,s)),o-=g,s+=g,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Bl;case Bl:if(r.flags&4096){if(o===0)break e;g=0;do E=i[s+g++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&g<o);if(r.flags&512&&(r.check=Mt(r.check,i,g,s)),o-=g,s+=g,E)break e}else r.head&&(r.head.comment=null);r.mode=ql;case ql:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=De;break}p=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=tr;break;case Ml:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}e.adler=r.check=tf(p),p=0,c=0,r.mode=Js;case Js:if(r.havedict===0)return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Wy;e.adler=r.check=1,r.mode=tr;case tr:if(t===qy||t===ys)break e;case Yi:if(r.last){p>>>=c&7,c-=c&7,r.mode=Xi;break}for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Wl;break;case 1:if(Jy(r),r.mode=gs,t===ys){p>>>=2,c-=2;break e}break;case 2:r.mode=Hl;break;case 3:e.msg="invalid block type",r.mode=De}p>>>=2,c-=2;break;case Wl:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=De;break}if(r.length=p&65535,p=0,c=0,r.mode=Ki,t===ys)break e;case Ki:r.mode=zl;case zl:if(g=r.length,g){if(g>o&&(g=o),g>l&&(g=l),g===0)break e;kt.arraySet(a,i,s,g,n),o-=g,s+=g,l-=g,n+=g,r.length-=g;break}r.mode=tr;break;case Hl:for(;c<14;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.nlen=(p&31)+257,p>>>=5,c-=5,r.ndist=(p&31)+1,p>>>=5,c-=5,r.ncode=(p&15)+4,p>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=De;break}r.have=0,r.mode=Vl;case Vl:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.lens[D[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},T=Ln(By,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,T){e.msg="invalid code lengths set",r.mode=De;break}r.have=0,r.mode=Zl;case Zl:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[p&(1<<r.lenbits)-1],b=w>>>24,O=w>>>16&255,k=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(k<16)p>>>=b,c-=b,r.lens[r.have++]=k;else{if(k===16){for(S=b+2;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p>>>=b,c-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=De;break}E=r.lens[r.have-1],g=3+(p&3),p>>>=2,c-=2}else if(k===17){for(S=b+3;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,E=0,g=3+(p&7),p>>>=3,c-=3}else{for(S=b+7;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,E=0,g=11+(p&127),p>>>=7,c-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=De;break}for(;g--;)r.lens[r.have++]=E}}if(r.mode===De)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=De;break}if(r.lenbits=9,P={bits:r.lenbits},T=Ln(jc,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,T){e.msg="invalid literal/lengths set",r.mode=De;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},T=Ln(Uc,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,T){e.msg="invalid distances set",r.mode=De;break}if(r.mode=gs,t===ys)break e;case gs:r.mode=ws;case ws:if(o>=6&&l>=258){e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Uy(e,m),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===tr&&(r.back=-1);break}for(r.back=0;w=r.lencode[p&(1<<r.lenbits)-1],b=w>>>24,O=w>>>16&255,k=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(O&&!(O&240)){for(L=b,$=O,C=k;w=r.lencode[C+((p&(1<<L+$)-1)>>L)],b=w>>>24,O=w>>>16&255,k=w&65535,!(L+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=L,c-=L,r.back+=L}if(p>>>=b,c-=b,r.back+=b,r.length=k,O===0){r.mode=Jl;break}if(O&32){r.back=-1,r.mode=tr;break}if(O&64){e.msg="invalid literal/length code",r.mode=De;break}r.extra=O&15,r.mode=Gl;case Gl:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Yl;case Yl:for(;w=r.distcode[p&(1<<r.distbits)-1],b=w>>>24,O=w>>>16&255,k=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(!(O&240)){for(L=b,$=O,C=k;w=r.distcode[C+((p&(1<<L+$)-1)>>L)],b=w>>>24,O=w>>>16&255,k=w&65535,!(L+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=L,c-=L,r.back+=L}if(p>>>=b,c-=b,r.back+=b,O&64){e.msg="invalid distance code",r.mode=De;break}r.offset=k,r.extra=O&15,r.mode=Kl;case Kl:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=De;break}r.mode=Xl;case Xl:if(l===0)break e;if(g=m-l,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=De;break}g>r.wnext?(g-=r.wnext,A=r.wsize-g):A=r.wnext-g,g>r.length&&(g=r.length),y=r.window}else y=a,A=n-r.offset,g=r.length;g>l&&(g=l),l-=g,r.length-=g;do a[n++]=y[A++];while(--g);r.length===0&&(r.mode=ws);break;case Jl:if(l===0)break e;a[n++]=r.length,l--,r.mode=ws;break;case Xi:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[s++]<<c,c+=8}if(m-=l,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,n-m):eo(r.check,a,m,n-m)),m=l,(r.flags?p:tf(p))!==r.check){e.msg="incorrect data check",r.mode=De;break}p=0,c=0}r.mode=Ql;case Ql:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=De;break}p=0,c=0}r.mode=ef;case ef:T=My;break e;case De:T=Bc;break e;case Wc:return qc;case Hy:default:return Rt}return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||m!==e.avail_out&&r.mode<De&&(r.mode<Xi||t!==Fl))&&Gc(e,e.output,e.next_out,m-e.avail_out),h-=e.avail_in,m-=e.avail_out,e.total_in+=h,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,e.next_out-m):eo(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===tr?128:0)+(r.mode===gs||r.mode===Ki?256:0),(h===0&&m===0||t===Fl)&&T===jr&&(T=zy),T}function e0(e){if(!e||!e.state)return Rt;var t=e.state;return t.window&&(t.window=null),e.state=null,jr}function t0(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Rt:(r.head=t,t.done=!1,jr)}function r0(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Js)?Rt:i.mode===Js&&(a=1,a=eo(a,t,r,0),a!==i.check)?Bc:(s=Gc(e,t,r,r),s?(i.mode=Wc,qc):(i.havedict=1,jr))}Ut.inflateReset=Hc;Ut.inflateReset2=Vc;Ut.inflateResetKeep=zc;Ut.inflateInit=Xy;Ut.inflateInit2=Zc;Ut.inflate=Qy;Ut.inflateEnd=e0;Ut.inflateGetHeader=t0;Ut.inflateSetDictionary=r0;Ut.inflateInfo="pako inflate (from Nodeca project)";var Yc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function n0(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var s0=n0,ln=Ut,Cn=ar,Cs=Wr,Ue=Yc,to=Eo,i0=Dc,a0=s0,Kc=Object.prototype.toString;function Ur(e){if(!(this instanceof Ur))return new Ur(e);this.options=Cn.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i0,this.strm.avail_out=0;var r=ln.inflateInit2(this.strm,t.windowBits);if(r!==Ue.Z_OK)throw new Error(to[r]);if(this.header=new a0,ln.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Cs.string2buf(t.dictionary):Kc.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ln.inflateSetDictionary(this.strm,t.dictionary),r!==Ue.Z_OK)))throw new Error(to[r])}Ur.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,n,o,l,p,c=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?Ue.Z_FINISH:Ue.Z_NO_FLUSH,typeof e=="string"?r.input=Cs.binstring2buf(e):Kc.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Cn.Buf8(i),r.next_out=0,r.avail_out=i),s=ln.inflate(r,Ue.Z_NO_FLUSH),s===Ue.Z_NEED_DICT&&a&&(s=ln.inflateSetDictionary(this.strm,a)),s===Ue.Z_BUF_ERROR&&c===!0&&(s=Ue.Z_OK,c=!1),s!==Ue.Z_STREAM_END&&s!==Ue.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===Ue.Z_STREAM_END||r.avail_in===0&&(n===Ue.Z_FINISH||n===Ue.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=Cs.utf8border(r.output,r.next_out),l=r.next_out-o,p=Cs.buf2string(r.output,o),r.next_out=l,r.avail_out=i-l,l&&Cn.arraySet(r.output,r.output,o,l,0),this.onData(p)):this.onData(Cn.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==Ue.Z_STREAM_END);return s===Ue.Z_STREAM_END&&(n=Ue.Z_FINISH),n===Ue.Z_FINISH?(s=ln.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===Ue.Z_OK):(n===Ue.Z_SYNC_FLUSH&&(this.onEnd(Ue.Z_OK),r.avail_out=0),!0)};Ur.prototype.onData=function(e){this.chunks.push(e)};Ur.prototype.onEnd=function(e){e===Ue.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function To(e,t){var r=new Ur(t);if(r.push(e,!0),r.err)throw r.msg||to[r.err];return r.result}function o0(e,t){return t=t||{},t.raw=!0,To(e,t)}rs.Inflate=Ur;rs.inflate=To;rs.inflateRaw=o0;rs.ungzip=To;var l0=ar.assign,f0=Qn,p0=rs,c0=Yc,Xc={};l0(Xc,f0,p0,c0);var u0=Xc;const Oo=ho(u0);async function d0(e,t){const r=new ac(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new Ee(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new Ee(`Invalid packfile version: ${a}`);let s=await r.read(4);if(s=s.readUInt32BE(0),!(s<1))for(;!r.eof()&&s--;){const n=r.tell(),{type:o,length:l,ofs:p,reference:c}=await h0(r),h=new Oo.Inflate;for(;!h.result;){const m=await r.chunk();if(!m)break;if(h.push(m,!1),h.err)throw new Ee(`Pako error: ${h.msg}`);if(h.result){if(h.result.length!==l)throw new Ee("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(m.length-h.strm.avail_in);const g=r.tell();await t({data:h.result,type:o,num:s,offset:n,end:g,reference:c,ofs:p})}}}}async function h0(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let n=4;do t=await e.byte(),i|=(t&127)<<n,n+=7;while(t&128)}let a,s;if(r===6){let n=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<n,n+=7,o.push(t);while(t&128);s=Buffer.from(o)}return r===7&&(s=await e.read(20)),{type:r,length:i,ofs:a,reference:s}}async function m0(e){return Oo.inflate(e)}var ro={exports:{}};typeof Object.create=="function"?ro.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ro.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var y0=ro.exports,no={exports:{}},Ao={},wi={};wi.byteLength=b0;wi.toByteArray=v0;wi.fromByteArray=P0;var Kt=[],Tt=[],g0=typeof Uint8Array<"u"?Uint8Array:Array,ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Zr=0,w0=ea.length;Zr<w0;++Zr)Kt[Zr]=ea[Zr],Tt[ea.charCodeAt(Zr)]=Zr;Tt[45]=62;Tt[95]=63;function Jc(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function b0(e){var t=Jc(e),r=t[0],i=t[1];return(r+i)*3/4-i}function _0(e,t,r){return(t+r)*3/4-r}function v0(e){var t,r=Jc(e),i=r[0],a=r[1],s=new g0(_0(e,i,a)),n=0,o=a>0?i-4:i,l;for(l=0;l<o;l+=4)t=Tt[e.charCodeAt(l)]<<18|Tt[e.charCodeAt(l+1)]<<12|Tt[e.charCodeAt(l+2)]<<6|Tt[e.charCodeAt(l+3)],s[n++]=t>>16&255,s[n++]=t>>8&255,s[n++]=t&255;return a===2&&(t=Tt[e.charCodeAt(l)]<<2|Tt[e.charCodeAt(l+1)]>>4,s[n++]=t&255),a===1&&(t=Tt[e.charCodeAt(l)]<<10|Tt[e.charCodeAt(l+1)]<<4|Tt[e.charCodeAt(l+2)]>>2,s[n++]=t>>8&255,s[n++]=t&255),s}function x0(e){return Kt[e>>18&63]+Kt[e>>12&63]+Kt[e>>6&63]+Kt[e&63]}function k0(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(x0(i));return a.join("")}function P0(e){for(var t,r=e.length,i=r%3,a=[],s=16383,n=0,o=r-i;n<o;n+=s)a.push(k0(e,n,n+s>o?o:n+s));return i===1?(t=e[r-1],a.push(Kt[t>>2]+Kt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Kt[t>>10]+Kt[t>>4&63]+Kt[t<<2&63]+"=")),a.join("")}var $o={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */$o.read=function(e,t,r,i,a){var s,n,o=a*8-i-1,l=(1<<o)-1,p=l>>1,c=-7,h=r?a-1:0,m=r?-1:1,g=e[t+h];for(h+=m,s=g&(1<<-c)-1,g>>=-c,c+=o;c>0;s=s*256+e[t+h],h+=m,c-=8);for(n=s&(1<<-c)-1,s>>=-c,c+=i;c>0;n=n*256+e[t+h],h+=m,c-=8);if(s===0)s=1-p;else{if(s===l)return n?NaN:(g?-1:1)*(1/0);n=n+Math.pow(2,i),s=s-p}return(g?-1:1)*n*Math.pow(2,s-i)};$o.write=function(e,t,r,i,a,s){var n,o,l,p=s*8-a-1,c=(1<<p)-1,h=c>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:s-1,A=i?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,n=c):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+h>=1?t+=m/l:t+=m*Math.pow(2,1-h),t*l>=2&&(n++,l/=2),n+h>=c?(o=0,n=c):n+h>=1?(o=(t*l-1)*Math.pow(2,a),n=n+h):(o=t*Math.pow(2,h-1)*Math.pow(2,a),n=0));a>=8;e[r+g]=o&255,g+=A,o/=256,a-=8);for(n=n<<a|o,p+=a;p>0;e[r+g]=n&255,g+=A,n/=256,p-=8);e[r+g-A]|=y*128};/*!
|
|
60
60
|
* The buffer module from node.js, for the browser.
|
|
61
61
|
*
|
|
62
62
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
63
63
|
* @license MIT
|
|
64
|
-
*/(function(e){var t=mi,r=Oo,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=A,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{var v=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(v,u),v.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function n(v){if(v>a)throw new RangeError('The value "'+v+'" is invalid for option "size"');var u=new Uint8Array(v);return Object.setPrototypeOf(u,o.prototype),u}function o(v,u,d){if(typeof v=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(v)}return l(v,u,d)}o.poolSize=8192;function l(v,u,d){if(typeof v=="string")return m(v,u);if(ArrayBuffer.isView(v))return T(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(Ce(v,ArrayBuffer)||v&&Ce(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(v,SharedArrayBuffer)||v&&Ce(v.buffer,SharedArrayBuffer)))return y(v,u,d);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var R=v.valueOf&&v.valueOf();if(R!=null&&R!==v)return o.from(R,u,d);var N=w(v);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return o.from(v[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}o.from=function(v,u,d){return l(v,u,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function p(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function c(v,u,d){return p(v),v<=0?n(v):u!==void 0?typeof d=="string"?n(v).fill(u,d):n(v).fill(u):n(v)}o.alloc=function(v,u,d){return c(v,u,d)};function h(v){return p(v),n(v<0?0:b(v)|0)}o.allocUnsafe=function(v){return h(v)},o.allocUnsafeSlow=function(v){return h(v)};function m(v,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=k(v,u)|0,R=n(d),N=R.write(v,u);return N!==d&&(R=R.slice(0,N)),R}function g(v){for(var u=v.length<0?0:b(v.length)|0,d=n(u),R=0;R<u;R+=1)d[R]=v[R]&255;return d}function T(v){if(Ce(v,Uint8Array)){var u=new Uint8Array(v);return y(u.buffer,u.byteOffset,u.byteLength)}return g(v)}function y(v,u,d){if(u<0||v.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');var R;return u===void 0&&d===void 0?R=new Uint8Array(v):d===void 0?R=new Uint8Array(v,u):R=new Uint8Array(v,u,d),Object.setPrototypeOf(R,o.prototype),R}function w(v){if(o.isBuffer(v)){var u=b(v.length)|0,d=n(u);return d.length===0||v.copy(d,0,0,u),d}if(v.length!==void 0)return typeof v.length!="number"||pt(v.length)?n(0):g(v);if(v.type==="Buffer"&&Array.isArray(v.data))return g(v.data)}function b(v){if(v>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return v|0}function A(v){return+v!=v&&(v=0),o.alloc(+v)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,d){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),Ce(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(u)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var R=u.length,N=d.length,H=0,K=Math.min(R,N);H<K;++H)if(u[H]!==d[H]){R=u[H],N=d[H];break}return R<N?-1:N<R?1:0},o.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return o.alloc(0);var R;if(d===void 0)for(d=0,R=0;R<u.length;++R)d+=u[R].length;var N=o.allocUnsafe(d),H=0;for(R=0;R<u.length;++R){var K=u[R];if(Ce(K,Uint8Array))H+K.length>N.length?o.from(K).copy(N,H):Uint8Array.prototype.set.call(N,K,H);else if(o.isBuffer(K))K.copy(N,H);else throw new TypeError('"list" argument must be an Array of Buffers');H+=K.length}return N};function k(v,u){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||Ce(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);var d=v.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&d===0)return 0;for(var N=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Te(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return Et(v).length;default:if(N)return R?-1:Te(v).length;u=(""+u).toLowerCase(),N=!0}}o.byteLength=k;function I(v,u,d){var R=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(v||(v="utf8");;)switch(v){case"hex":return se(this,u,d);case"utf8":case"utf-8":return B(this,u,d);case"ascii":return X(this,u,d);case"latin1":case"binary":return V(this,u,d);case"base64":return F(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,u,d);default:if(R)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),R=!0}}o.prototype._isBuffer=!0;function $(v,u,d){var R=v[u];v[u]=v[d],v[d]=R}o.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)$(this,d,d+1);return this},o.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)$(this,d,d+3),$(this,d+1,d+2);return this},o.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)$(this,d,d+7),$(this,d+1,d+6),$(this,d+2,d+5),$(this,d+3,d+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?B(this,0,u):I.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(u){if(!o.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:o.compare(this,u)===0},o.prototype.inspect=function(){var u="",d=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(u,d,R,N,H){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(d===void 0&&(d=0),R===void 0&&(R=u?u.length:0),N===void 0&&(N=0),H===void 0&&(H=this.length),d<0||R>u.length||N<0||H>this.length)throw new RangeError("out of range index");if(N>=H&&d>=R)return 0;if(N>=H)return-1;if(d>=R)return 1;if(d>>>=0,R>>>=0,N>>>=0,H>>>=0,this===u)return 0;for(var K=H-N,pe=R-d,we=Math.min(K,pe),he=this.slice(N,H),Ne=u.slice(d,R),ue=0;ue<we;++ue)if(he[ue]!==Ne[ue]){K=he[ue],pe=Ne[ue];break}return K<pe?-1:pe<K?1:0};function C(v,u,d,R,N){if(v.length===0)return-1;if(typeof d=="string"?(R=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,pt(d)&&(d=N?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(N)return-1;d=v.length-1}else if(d<0)if(N)d=0;else return-1;if(typeof u=="string"&&(u=o.from(u,R)),o.isBuffer(u))return u.length===0?-1:E(v,u,d,R,N);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(v,u,d):Uint8Array.prototype.lastIndexOf.call(v,u,d):E(v,[u],d,R,N);throw new TypeError("val must be string, number or Buffer")}function E(v,u,d,R,N){var H=1,K=v.length,pe=u.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(v.length<2||u.length<2)return-1;H=2,K/=2,pe/=2,d/=2}function we(rt,Lt){return H===1?rt[Lt]:rt.readUInt16BE(Lt*H)}var he;if(N){var Ne=-1;for(he=d;he<K;he++)if(we(v,he)===we(u,Ne===-1?0:he-Ne)){if(Ne===-1&&(Ne=he),he-Ne+1===pe)return Ne*H}else Ne!==-1&&(he-=he-Ne),Ne=-1}else for(d+pe>K&&(d=K-pe),he=d;he>=0;he--){for(var ue=!0,yt=0;yt<pe;yt++)if(we(v,he+yt)!==we(u,yt)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,d,R){return this.indexOf(u,d,R)!==-1},o.prototype.indexOf=function(u,d,R){return C(this,u,d,R,!0)},o.prototype.lastIndexOf=function(u,d,R){return C(this,u,d,R,!1)};function O(v,u,d,R){d=Number(d)||0;var N=v.length-d;R?(R=Number(R),R>N&&(R=N)):R=N;var H=u.length;R>H/2&&(R=H/2);for(var K=0;K<R;++K){var pe=parseInt(u.substr(K*2,2),16);if(pt(pe))return K;v[d+K]=pe}return K}function L(v,u,d,R){return Ie(Te(u,v.length-d),v,d,R)}function P(v,u,d,R){return Ie(Xe(u),v,d,R)}function S(v,u,d,R){return Ie(Et(u),v,d,R)}function D(v,u,d,R){return Ie(tt(u,v.length-d),v,d,R)}o.prototype.write=function(u,d,R,N){if(d===void 0)N="utf8",R=this.length,d=0;else if(R===void 0&&typeof d=="string")N=d,R=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(R)?(R=R>>>0,N===void 0&&(N="utf8")):(N=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var H=this.length-d;if((R===void 0||R>H)&&(R=H),u.length>0&&(R<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var K=!1;;)switch(N){case"hex":return O(this,u,d,R);case"utf8":case"utf-8":return L(this,u,d,R);case"ascii":case"latin1":case"binary":return P(this,u,d,R);case"base64":return S(this,u,d,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,u,d,R);default:if(K)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),K=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(v,u,d){return u===0&&d===v.length?t.fromByteArray(v):t.fromByteArray(v.slice(u,d))}function B(v,u,d){d=Math.min(v.length,d);for(var R=[],N=u;N<d;){var H=v[N],K=null,pe=H>239?4:H>223?3:H>191?2:1;if(N+pe<=d){var we,he,Ne,ue;switch(pe){case 1:H<128&&(K=H);break;case 2:we=v[N+1],(we&192)===128&&(ue=(H&31)<<6|we&63,ue>127&&(K=ue));break;case 3:we=v[N+1],he=v[N+2],(we&192)===128&&(he&192)===128&&(ue=(H&15)<<12|(we&63)<<6|he&63,ue>2047&&(ue<55296||ue>57343)&&(K=ue));break;case 4:we=v[N+1],he=v[N+2],Ne=v[N+3],(we&192)===128&&(he&192)===128&&(Ne&192)===128&&(ue=(H&15)<<18|(we&63)<<12|(he&63)<<6|Ne&63,ue>65535&&ue<1114112&&(K=ue))}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,R.push(K>>>10&1023|55296),K=56320|K&1023),R.push(K),N+=pe}return W(R)}var q=4096;function W(v){var u=v.length;if(u<=q)return String.fromCharCode.apply(String,v);for(var d="",R=0;R<u;)d+=String.fromCharCode.apply(String,v.slice(R,R+=q));return d}function X(v,u,d){var R="";d=Math.min(v.length,d);for(var N=u;N<d;++N)R+=String.fromCharCode(v[N]&127);return R}function V(v,u,d){var R="";d=Math.min(v.length,d);for(var N=u;N<d;++N)R+=String.fromCharCode(v[N]);return R}function se(v,u,d){var R=v.length;(!u||u<0)&&(u=0),(!d||d<0||d>R)&&(d=R);for(var N="",H=u;H<d;++H)N+=Re[v[H]];return N}function G(v,u,d){for(var R=v.slice(u,d),N="",H=0;H<R.length-1;H+=2)N+=String.fromCharCode(R[H]+R[H+1]*256);return N}o.prototype.slice=function(u,d){var R=this.length;u=~~u,d=d===void 0?R:~~d,u<0?(u+=R,u<0&&(u=0)):u>R&&(u=R),d<0?(d+=R,d<0&&(d=0)):d>R&&(d=R),d<u&&(d=u);var N=this.subarray(u,d);return Object.setPrototypeOf(N,o.prototype),N};function Q(v,u,d){if(v%1!==0||v<0)throw new RangeError("offset is not uint");if(v+u>d)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var N=this[u],H=1,K=0;++K<d&&(H*=256);)N+=this[u+K]*H;return N},o.prototype.readUintBE=o.prototype.readUIntBE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var N=this[u+--d],H=1;d>0&&(H*=256);)N+=this[u+--d]*H;return N},o.prototype.readUint8=o.prototype.readUInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readIntLE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var N=this[u],H=1,K=0;++K<d&&(H*=256);)N+=this[u+K]*H;return H*=128,N>=H&&(N-=Math.pow(2,8*d)),N},o.prototype.readIntBE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var N=d,H=1,K=this[u+--N];N>0&&(H*=256);)K+=this[u+--N]*H;return H*=128,K>=H&&(K-=Math.pow(2,8*d)),K},o.prototype.readInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var R=this[u]|this[u+1]<<8;return R&32768?R|4294901760:R},o.prototype.readInt16BE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var R=this[u+1]|this[u]<<8;return R&32768?R|4294901760:R},o.prototype.readInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readFloatLE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!1,52,8)};function ee(v,u,d,R,N,H){if(!o.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>N||u<H)throw new RangeError('"value" argument is out of bounds');if(d+R>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,d,R,N){if(u=+u,d=d>>>0,R=R>>>0,!N){var H=Math.pow(2,8*R)-1;ee(this,u,d,R,H,0)}var K=1,pe=0;for(this[d]=u&255;++pe<R&&(K*=256);)this[d+pe]=u/K&255;return d+R},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,d,R,N){if(u=+u,d=d>>>0,R=R>>>0,!N){var H=Math.pow(2,8*R)-1;ee(this,u,d,R,H,0)}var K=R-1,pe=1;for(this[d+K]=u&255;--K>=0&&(pe*=256);)this[d+K]=u/pe&255;return d+R},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,1,255,0),this[d]=u&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,65535,0),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,4294967295,0),this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,4294967295,0),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4},o.prototype.writeIntLE=function(u,d,R,N){if(u=+u,d=d>>>0,!N){var H=Math.pow(2,8*R-1);ee(this,u,d,R,H-1,-H)}var K=0,pe=1,we=0;for(this[d]=u&255;++K<R&&(pe*=256);)u<0&&we===0&&this[d+K-1]!==0&&(we=1),this[d+K]=(u/pe>>0)-we&255;return d+R},o.prototype.writeIntBE=function(u,d,R,N){if(u=+u,d=d>>>0,!N){var H=Math.pow(2,8*R-1);ee(this,u,d,R,H-1,-H)}var K=R-1,pe=1,we=0;for(this[d+K]=u&255;--K>=0&&(pe*=256);)u<0&&we===0&&this[d+K+1]!==0&&(we=1),this[d+K]=(u/pe>>0)-we&255;return d+R},o.prototype.writeInt8=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=u&255,d+1},o.prototype.writeInt16LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,32767,-32768),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeInt16BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeInt32LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,2147483647,-2147483648),this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24,d+4},o.prototype.writeInt32BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4};function Z(v,u,d,R,N,H){if(d+R>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function fe(v,u,d,R,N){return u=+u,d=d>>>0,N||Z(v,u,d,4),r.write(v,u,d,R,23,4),d+4}o.prototype.writeFloatLE=function(u,d,R){return fe(this,u,d,!0,R)},o.prototype.writeFloatBE=function(u,d,R){return fe(this,u,d,!1,R)};function ie(v,u,d,R,N){return u=+u,d=d>>>0,N||Z(v,u,d,8),r.write(v,u,d,R,52,8),d+8}o.prototype.writeDoubleLE=function(u,d,R){return ie(this,u,d,!0,R)},o.prototype.writeDoubleBE=function(u,d,R){return ie(this,u,d,!1,R)},o.prototype.copy=function(u,d,R,N){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(R||(R=0),!N&&N!==0&&(N=this.length),d>=u.length&&(d=u.length),d||(d=0),N>0&&N<R&&(N=R),N===R||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),u.length-d<N-R&&(N=u.length-d+R);var H=N-R;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,R,N):Uint8Array.prototype.set.call(u,this.subarray(R,N),d),H},o.prototype.fill=function(u,d,R,N){if(typeof u=="string"){if(typeof d=="string"?(N=d,d=0,R=this.length):typeof R=="string"&&(N=R,R=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!o.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(u.length===1){var H=u.charCodeAt(0);(N==="utf8"&&H<128||N==="latin1")&&(u=H)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(d<0||this.length<d||this.length<R)throw new RangeError("Out of range index");if(R<=d)return this;d=d>>>0,R=R===void 0?this.length:R>>>0,u||(u=0);var K;if(typeof u=="number")for(K=d;K<R;++K)this[K]=u;else{var pe=o.isBuffer(u)?u:o.from(u,N),we=pe.length;if(we===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(K=0;K<R-d;++K)this[K+d]=pe[K%we]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function Se(v){if(v=v.split("=")[0],v=v.trim().replace(ae,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function Te(v,u){u=u||1/0;for(var d,R=v.length,N=null,H=[],K=0;K<R;++K){if(d=v.charCodeAt(K),d>55295&&d<57344){if(!N){if(d>56319){(u-=3)>-1&&H.push(239,191,189);continue}else if(K+1===R){(u-=3)>-1&&H.push(239,191,189);continue}N=d;continue}if(d<56320){(u-=3)>-1&&H.push(239,191,189),N=d;continue}d=(N-55296<<10|d-56320)+65536}else N&&(u-=3)>-1&&H.push(239,191,189);if(N=null,d<128){if((u-=1)<0)break;H.push(d)}else if(d<2048){if((u-=2)<0)break;H.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;H.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;H.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return H}function Xe(v){for(var u=[],d=0;d<v.length;++d)u.push(v.charCodeAt(d)&255);return u}function tt(v,u){for(var d,R,N,H=[],K=0;K<v.length&&!((u-=2)<0);++K)d=v.charCodeAt(K),R=d>>8,N=d%256,H.push(N),H.push(R);return H}function Et(v){return t.toByteArray(Se(v))}function Ie(v,u,d,R){for(var N=0;N<R&&!(N+d>=u.length||N>=v.length);++N)u[N+d]=v[N];return N}function Ce(v,u){return v instanceof u||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===u.name}function pt(v){return v!==v}var Re=function(){for(var v="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var R=d*16,N=0;N<16;++N)u[R+N]=v[d]+v[N];return u}()})(So);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=So,i=r.Buffer;function a(n,o){for(var l in n)o[l]=n[l]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s);function s(n,o,l){return i(n,o,l)}s.prototype=Object.create(i.prototype),a(i,s),s.from=function(n,o,l){if(typeof n=="number")throw new TypeError("Argument must not be a number");return i(n,o,l)},s.alloc=function(n,o,l){if(typeof n!="number")throw new TypeError("Argument must be a number");var p=i(n);return o!==void 0?typeof l=="string"?p.fill(o,l):p.fill(o):p.fill(0),p},s.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i(n)},s.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}})(eo,eo.exports);var Ao=eo.exports,w0={}.toString,b0=Array.isArray||function(e){return w0.call(e)=="[object Array]"},ts=TypeError,Vc=Object,_0=Error,v0=EvalError,x0=RangeError,k0=ReferenceError,Gc=SyntaxError,P0=URIError,E0=Math.abs,S0=Math.floor,O0=Math.max,A0=Math.min,T0=Math.pow,$0=Math.round,R0=Number.isNaN||function(t){return t!==t},L0=R0,F0=function(t){return L0(t)||t===0?t:t<0?-1:1},I0=Object.getOwnPropertyDescriptor,Is=I0;if(Is)try{Is([],"length")}catch{Is=null}var rs=Is,Cs=Object.defineProperty||!1;if(Cs)try{Cs({},"a",{value:1})}catch{Cs=!1}var yi=Cs,Ji,Kl;function Zc(){return Kl||(Kl=1,Ji=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==a||o.enumerable!==!0)return!1}return!0}),Ji}var Qi,Xl;function C0(){if(Xl)return Qi;Xl=1;var e=typeof Symbol<"u"&&Symbol,t=Zc();return Qi=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Qi}var ea,Jl;function Yc(){return Jl||(Jl=1,ea=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ea}var ta,Ql;function Kc(){if(Ql)return ta;Ql=1;var e=Vc;return ta=e.getPrototypeOf||null,ta}var D0="Function.prototype.bind called on incompatible ",U0=Object.prototype.toString,N0=Math.max,B0="[object Function]",ef=function(t,r){for(var i=[],a=0;a<t.length;a+=1)i[a]=t[a];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},j0=function(t,r){for(var i=[],a=r,s=0;a<t.length;a+=1,s+=1)i[s]=t[a];return i},q0=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r},M0=function(t){var r=this;if(typeof r!="function"||U0.apply(r)!==B0)throw new TypeError(D0+r);for(var i=j0(arguments,1),a,s=function(){if(this instanceof a){var c=r.apply(this,ef(i,arguments));return Object(c)===c?c:this}return r.apply(t,ef(i,arguments))},n=N0(0,r.length-i.length),o=[],l=0;l<n;l++)o[l]="$"+l;if(a=Function("binder","return function ("+q0(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,a.prototype=new p,p.prototype=null}return a},W0=M0,ns=Function.prototype.bind||W0,To=Function.prototype.call,ra,tf;function $o(){return tf||(tf=1,ra=Function.prototype.apply),ra}var z0=typeof Reflect<"u"&&Reflect&&Reflect.apply,H0=ns,V0=$o(),G0=To,Z0=z0,Xc=Z0||H0.call(G0,V0),Y0=ns,K0=ts,X0=To,J0=Xc,Ro=function(t){if(t.length<1||typeof t[0]!="function")throw new K0("a function is required");return J0(Y0,X0,t)},na,rf;function Q0(){if(rf)return na;rf=1;var e=Ro,t=rs,r;try{r=[].__proto__===Array.prototype}catch(n){if(!n||typeof n!="object"||!("code"in n)||n.code!=="ERR_PROTO_ACCESS")throw n}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return na=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(o){return s(o==null?o:a(o))}:!1,na}var sa,nf;function Jc(){if(nf)return sa;nf=1;var e=Yc(),t=Kc(),r=Q0();return sa=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,sa}var ia,sf;function eg(){if(sf)return ia;sf=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ns;return ia=r.call(e,t),ia}var ye,tg=Vc,rg=_0,ng=v0,sg=x0,ig=k0,cn=Gc,on=ts,ag=P0,og=E0,lg=S0,fg=O0,pg=A0,cg=T0,ug=$0,dg=F0,Qc=Function,aa=function(e){try{return Qc('"use strict"; return ('+e+").constructor;")()}catch{}},jn=rs,hg=yi,oa=function(){throw new on},mg=jn?function(){try{return arguments.callee,oa}catch{try{return jn(arguments,"callee").get}catch{return oa}}}():oa,Gr=C0()(),Ge=Jc(),yg=Kc(),gg=Yc(),eu=$o(),ss=To,Jr={},wg=typeof Uint8Array>"u"||!Ge?ye:Ge(Uint8Array),$r={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ye:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ye:ArrayBuffer,"%ArrayIteratorPrototype%":Gr&&Ge?Ge([][Symbol.iterator]()):ye,"%AsyncFromSyncIteratorPrototype%":ye,"%AsyncFunction%":Jr,"%AsyncGenerator%":Jr,"%AsyncGeneratorFunction%":Jr,"%AsyncIteratorPrototype%":Jr,"%Atomics%":typeof Atomics>"u"?ye:Atomics,"%BigInt%":typeof BigInt>"u"?ye:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ye:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ye:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ye:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":rg,"%eval%":eval,"%EvalError%":ng,"%Float16Array%":typeof Float16Array>"u"?ye:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ye:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ye:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ye:FinalizationRegistry,"%Function%":Qc,"%GeneratorFunction%":Jr,"%Int8Array%":typeof Int8Array>"u"?ye:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ye:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ye:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gr&&Ge?Ge(Ge([][Symbol.iterator]())):ye,"%JSON%":typeof JSON=="object"?JSON:ye,"%Map%":typeof Map>"u"?ye:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gr||!Ge?ye:Ge(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":tg,"%Object.getOwnPropertyDescriptor%":jn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ye:Promise,"%Proxy%":typeof Proxy>"u"?ye:Proxy,"%RangeError%":sg,"%ReferenceError%":ig,"%Reflect%":typeof Reflect>"u"?ye:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ye:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gr||!Ge?ye:Ge(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ye:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gr&&Ge?Ge(""[Symbol.iterator]()):ye,"%Symbol%":Gr?Symbol:ye,"%SyntaxError%":cn,"%ThrowTypeError%":mg,"%TypedArray%":wg,"%TypeError%":on,"%Uint8Array%":typeof Uint8Array>"u"?ye:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ye:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ye:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ye:Uint32Array,"%URIError%":ag,"%WeakMap%":typeof WeakMap>"u"?ye:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ye:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ye:WeakSet,"%Function.prototype.call%":ss,"%Function.prototype.apply%":eu,"%Object.defineProperty%":hg,"%Object.getPrototypeOf%":yg,"%Math.abs%":og,"%Math.floor%":lg,"%Math.max%":fg,"%Math.min%":pg,"%Math.pow%":cg,"%Math.round%":ug,"%Math.sign%":dg,"%Reflect.getPrototypeOf%":gg};if(Ge)try{null.error}catch(e){var bg=Ge(Ge(e));$r["%Error.prototype%"]=bg}var _g=function e(t){var r;if(t==="%AsyncFunction%")r=aa("async function () {}");else if(t==="%GeneratorFunction%")r=aa("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=aa("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ge&&(r=Ge(a.prototype))}return $r[t]=r,r},af={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},is=ns,Xs=eg(),vg=is.call(ss,Array.prototype.concat),xg=is.call(eu,Array.prototype.splice),of=is.call(ss,String.prototype.replace),Js=is.call(ss,String.prototype.slice),kg=is.call(ss,RegExp.prototype.exec),Pg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Eg=/\\(\\)?/g,Sg=function(t){var r=Js(t,0,1),i=Js(t,-1);if(r==="%"&&i!=="%")throw new cn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new cn("invalid intrinsic syntax, expected opening `%`");var a=[];return of(t,Pg,function(s,n,o,l){a[a.length]=o?of(l,Eg,"$1"):n||s}),a},Og=function(t,r){var i=t,a;if(Xs(af,i)&&(a=af[i],i="%"+a[0]+"%"),Xs($r,i)){var s=$r[i];if(s===Jr&&(s=_g(i)),typeof s>"u"&&!r)throw new on("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:s}}throw new cn("intrinsic "+t+" does not exist!")},tu=function(t,r){if(typeof t!="string"||t.length===0)throw new on("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new on('"allowMissing" argument must be a boolean');if(kg(/^%?[^%]*%?$/,t)===null)throw new cn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Sg(t),a=i.length>0?i[0]:"",s=Og("%"+a+"%",r),n=s.name,o=s.value,l=!1,p=s.alias;p&&(a=p[0],xg(i,vg([0,1],p)));for(var c=1,h=!0;c<i.length;c+=1){var m=i[c],g=Js(m,0,1),T=Js(m,-1);if((g==='"'||g==="'"||g==="`"||T==='"'||T==="'"||T==="`")&&g!==T)throw new cn("property names with quotes must have matching quotes");if((m==="constructor"||!h)&&(l=!0),a+="."+m,n="%"+a+"%",Xs($r,n))o=$r[n];else if(o!=null){if(!(m in o)){if(!r)throw new on("base intrinsic for "+t+" exists, but the property is not available.");return}if(jn&&c+1>=i.length){var y=jn(o,m);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[m]}else h=Xs(o,m),o=o[m];h&&!l&&($r[n]=o)}}return o},ru=tu,nu=Ro,Ag=nu([ru("%String.prototype.indexOf%")]),su=function(t,r){var i=ru(t,!!r);return typeof i=="function"&&Ag(t,".prototype.")>-1?nu([i]):i},la,lf;function Tg(){if(lf)return la;lf=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(A){A!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(k){try{var I=e.call(k);return a.test(I)}catch{return!1}},n=function(k){try{return s(k)?!1:(e.call(k),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",p="[object Function]",c="[object GeneratorFunction]",h="[object HTMLAllCollection]",m="[object HTML document.all class]",g="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var b=document.all;o.call(b)===o.call(document.all)&&(w=function(k){if((y||!k)&&(typeof k>"u"||typeof k=="object"))try{var I=o.call(k);return(I===h||I===m||I===g||I===l)&&k("")==null}catch{}return!1})}return la=t?function(k){if(w(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;try{t(k,null,r)}catch(I){if(I!==i)return!1}return!s(k)&&n(k)}:function(k){if(w(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;if(T)return n(k);if(s(k))return!1;var I=o.call(k);return I!==p&&I!==c&&!/^\[object HTML/.test(I)?!1:n(k)},la}var fa,ff;function $g(){if(ff)return fa;ff=1;var e=Tg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(l,p,c){for(var h=0,m=l.length;h<m;h++)r.call(l,h)&&(c==null?p(l[h],h,l):p.call(c,l[h],h,l))},a=function(l,p,c){for(var h=0,m=l.length;h<m;h++)c==null?p(l.charAt(h),h,l):p.call(c,l.charAt(h),h,l)},s=function(l,p,c){for(var h in l)r.call(l,h)&&(c==null?p(l[h],h,l):p.call(c,l[h],h,l))};function n(o){return t.call(o)==="[object Array]"}return fa=function(l,p,c){if(!e(p))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=c),n(l)?i(l,p,h):typeof l=="string"?a(l,p,h):s(l,p,h)},fa}var pa,pf;function Rg(){return pf||(pf=1,pa=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),pa}var ca,cf;function Lg(){if(cf)return ca;cf=1;var e=Rg(),t=typeof globalThis>"u"?Np:globalThis;return ca=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},ca}var ua={exports:{}},da,uf;function Fg(){if(uf)return da;uf=1;var e=yi,t=Gc,r=ts,i=rs;return da=function(s,n,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,m=!!i&&i(s,n);if(e)e(s,n,{configurable:c===null&&m?m.configurable:!c,enumerable:l===null&&m?m.enumerable:!l,value:o,writable:p===null&&m?m.writable:!p});else if(h||!l&&!p&&!c)s[n]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},da}var ha,df;function Ig(){if(df)return ha;df=1;var e=yi,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},ha=t,ha}var ma,hf;function Cg(){if(hf)return ma;hf=1;var e=tu,t=Fg(),r=Ig()(),i=rs,a=ts,s=e("%Math.floor%");return ma=function(o,l){if(typeof o!="function")throw new a("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,h=!0;if("length"in o&&i){var m=i(o,"length");m&&!m.configurable&&(c=!1),m&&!m.writable&&(h=!1)}return(c||h||!p)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},ma}var ya,mf;function Dg(){if(mf)return ya;mf=1;var e=ns,t=$o(),r=Xc;return ya=function(){return r(e,t,arguments)},ya}var yf;function Ug(){return yf||(yf=1,function(e){var t=Cg(),r=yi,i=Ro,a=Dg();e.exports=function(n){var o=i(arguments),l=n.length-(arguments.length-1);return t(o,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a}(ua)),ua.exports}var ga,gf;function Ng(){if(gf)return ga;gf=1;var e=Zc();return ga=function(){return e()&&!!Symbol.toStringTag},ga}var wa,wf;function Bg(){if(wf)return wa;wf=1;var e=$g(),t=Lg(),r=Ug(),i=su,a=rs,s=Jc(),n=i("Object.prototype.toString"),o=Ng()(),l=typeof globalThis>"u"?Np:globalThis,p=t(),c=i("String.prototype.slice"),h=i("Array.prototype.indexOf",!0)||function(w,b){for(var A=0;A<w.length;A+=1)if(w[A]===b)return A;return-1},m={__proto__:null};o&&a&&s?e(p,function(y){var w=new l[y];if(Symbol.toStringTag in w&&s){var b=s(w),A=a(b,Symbol.toStringTag);if(!A&&b){var k=s(b);A=a(k,Symbol.toStringTag)}if(A&&A.get){var I=r(A.get);m["$"+y]=I}}}):e(p,function(y){var w=new l[y],b=w.slice||w.set;if(b){var A=r(b);m["$"+y]=A}});var g=function(w){var b=!1;return e(m,function(A,k){if(!b)try{"$"+A(w)===k&&(b=c(k,1))}catch{}}),b},T=function(w){var b=!1;return e(m,function(A,k){if(!b)try{A(w),b=c(k,1)}catch{}}),b};return wa=function(w){if(!w||typeof w!="object")return!1;if(!o){var b=c(n(w),8,-1);return h(p,b)>-1?b:b!=="Object"?!1:T(w)}return a?g(w):null},wa}var ba,bf;function jg(){if(bf)return ba;bf=1;var e=Bg();return ba=function(r){return!!e(r)},ba}var qg=ts,Mg=su,Wg=Mg("TypedArray.prototype.buffer",!0),zg=jg(),Hg=Wg||function(t){if(!zg(t))throw new qg("Not a Typed Array");return t.buffer},It=Ao.Buffer,Vg=b0,Gg=Hg,Zg=ArrayBuffer.isView||function(t){try{return Gg(t),!0}catch{return!1}},Yg=typeof Uint8Array<"u",iu=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Kg=iu&&(It.prototype instanceof Uint8Array||It.TYPED_ARRAY_SUPPORT),Xg=function(t,r){if(It.isBuffer(t))return t.constructor&&!("isBuffer"in t)?It.from(t):t;if(typeof t=="string")return It.from(t,r);if(iu&&Zg(t)){if(t.byteLength===0)return It.alloc(0);if(Kg){var i=It.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var a=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=It.from(a);if(s.length===t.byteLength)return s}if(Yg&&t instanceof Uint8Array)return It.from(t);var n=Vg(t);if(n)for(var o=0;o<t.length;o+=1){var l=t[o];if(typeof l!="number"||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(n||It.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return It.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Jg=Ao.Buffer,Qg=Xg;function gi(e,t){this._block=Jg.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}gi.prototype.update=function(e,t){e=Qg(e,t||"utf8");for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,n=0;n<a;){for(var o=s%i,l=Math.min(a-n,i-o),p=0;p<l;p++)r[o+p]=e[n+p];s+=l,n+=l,s%i===0&&this._update(r)}return this._len+=a,this};gi.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};gi.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var e1=gi,t1=f0,au=e1,r1=Ao.Buffer,n1=[1518500249,1859775393,-1894007588,-899497514],s1=new Array(80);function as(){this.init(),this._w=s1,au.call(this,64,56)}t1(as,au);as.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function i1(e){return e<<1|e>>>31}function a1(e){return e<<5|e>>>27}function o1(e){return e<<30|e>>>2}function l1(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}as.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,s=this._d|0,n=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=i1(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var l=0;l<80;++l){var p=~~(l/20),c=a1(r)+l1(p,i,a,s)+n+t[l]+n1[p]|0;n=s,s=a,a=o1(i),i=r,r=c}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=n+this._e|0};as.prototype._hash=function(){var e=r1.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var f1=as;const p1=po(f1);function c1(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let _a=null;async function Qs(e){return _a===null&&(_a=await d1()),_a?ou(e):u1(e)}function u1(e){return new p1().update(e).digest("hex")}async function ou(e){const t=await crypto.subtle.digest("SHA-1",e);return c1(t)}async function d1(){try{if(await ou(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function h1(e){const t=[];let r=0,i=0;do{r=e.readUInt8();const a=r&127;t.push(a),i=r&128}while(i);return t.reduce((a,s)=>a+1<<7|s,-1)}function m1(e,t){let r=t,i=4,a=null;do a=e.readUInt8(),r|=(a&127)<<i,i+=7;while(a&128);return r}class un{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new Gt(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const s=i.readUInt32BE();if(s!==2)throw new Ee(`Unable to read version ${s} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new Ee("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");i.seek(i.tell()+4*255);const n=i.readUInt32BE(),o=[];for(let c=0;c<n;c++){const h=i.slice(20).toString("hex");o[c]=h}i.seek(i.tell()+4*n);const l=new Map;for(let c=0;c<n;c++)l.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new un({hashes:o,crcs:{},offsets:l,packfileSha:p,getExternalRefDelta:r})}static async fromPack({pack:t,getExternalRefDelta:r,onProgress:i}){const a={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},s={},n=t.slice(-20).toString("hex"),o=[],l={},p=new Map;let c=null,h=null;await a0([t],async({data:w,type:b,reference:A,offset:k,num:I})=>{c===null&&(c=I);const $=Math.floor((c-I)*100/c);$!==h&&i&&await i({phase:"Receiving objects",loaded:c-I,total:c}),h=$,b=a[b],["commit","tree","blob","tag"].includes(b)?s[k]={type:b,offset:k}:b==="ofs-delta"?s[k]={type:b,offset:k}:b==="ref-delta"&&(s[k]={type:b,offset:k})});const m=Object.keys(s).map(Number);for(const[w,b]of m.entries()){const A=w+1===m.length?t.byteLength-20:m[w+1],k=s[b],I=cm.buf(t.slice(b,A))>>>0;k.end=A,k.crc=I}const g=new un({pack:Promise.resolve(t),packfileSha:n,crcs:l,hashes:o,offsets:p,getExternalRefDelta:r});h=null;let T=0;const y=[0,0,0,0,0,0,0,0,0,0,0,0];for(let w in s){w=Number(w);const b=Math.floor(T*100/c);b!==h&&i&&await i({phase:"Resolving deltas",loaded:T,total:c}),T++,h=b;const A=s[w];if(!A.oid)try{g.readDepth=0,g.externalReadDepth=0;const{type:k,object:I}=await g.readSlice({start:w});y[g.readDepth]+=1;const $=await Qs(um.wrap({type:k,object:I}));A.oid=$,o.push($),p.set($,w),l[$]=A.crc}catch{continue}}return o.sort(),g}async toBuffer(){const t=[],r=(p,c)=>{t.push(Buffer.from(p,c))};r("ff744f63","hex"),r("00000002","hex");const i=new Gt(Buffer.alloc(256*4));for(let p=0;p<256;p++){let c=0;for(const h of this.hashes)parseInt(h.slice(0,2),16)<=p&&c++;i.writeUInt32BE(c)}t.push(i.buffer);for(const p of this.hashes)r(p,"hex");const a=new Gt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const s=new Gt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)s.writeUInt32BE(this.offsets.get(p));t.push(s.buffer),r(this.packfileSha,"hex");const n=Buffer.concat(t),o=await Qs(n),l=Buffer.alloc(20);return l.write(o,"hex"),Buffer.concat([n,l])}async load({pack:t}){this.pack=t}async unload(){this.pack=null}async read({oid:t}){if(!this.offsets.get(t)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(t);throw new Ee(`Could not read object ${t} from packfile`)}const r=this.offsets.get(t);return this.readSlice({start:r})}async readSlice({start:t}){if(this.offsetCache[t])return Object.assign({},this.offsetCache[t]);this.readDepth++;const r={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new Ee("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new Gt(i),s=a.readUInt8(),n=s&112;let o=r[n];if(o===void 0)throw new Ee("Unrecognized type: 0b"+n.toString(2));const l=s&15;let p=l;s&128&&(p=m1(a,l));let h=null,m=null;if(o==="ofs_delta"){const T=h1(a),y=t-T;({object:h,type:o}=await this.readSlice({start:y}))}if(o==="ref_delta"){const T=a.slice(20).toString("hex");({object:h,type:o}=await this.read({oid:T}))}const g=i.slice(a.tell());if(m=Buffer.from(await l0(g)),m.byteLength!==p)throw new Ee(`Packfile told us object would have length ${p} but it had length ${m.byteLength}`);return h&&(m=Buffer.from(dm(m,h))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:m}),{type:o,format:"content",object:m}}}class qn extends hn{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=qn.code,this.data={value:t}}}qn.code="InvalidOidError";class wi extends hn{constructor(t,r,i,a){super(`Object ${t} ${a?`at ${a}`:""}was anticipated to be a ${i} but it is a ${r}.`),this.code=this.name=wi.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}wi.code="ObjectTypeError";function y1(e){let t=e>0?e>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let r=e&511;return r&73?r=493:r=420,t!==8&&(r=0),(t<<12)+r}const Wt=2**32;function _f(e,t,r,i){if(e!==void 0&&t!==void 0)return[e,t];r===void 0&&(r=i.valueOf());const a=Math.floor(r/1e3),s=(r-a*1e3)*1e6;return[a,s]}function vf(e){const[t,r]=_f(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[i,a]=_f(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Wt,ctimeNanoseconds:r%Wt,mtimeSeconds:i%Wt,mtimeNanoseconds:a%Wt,dev:e.dev%Wt,ino:e.ino%Wt,mode:y1(e.mode%Wt),uid:e.uid%Wt,gid:e.gid%Wt,size:e.size>-1?e.size%Wt:0}}function g1(e){return{assumeValid:!!(e&32768),extended:!!(e&16384),stage:(e&12288)>>12,nameLength:e&4095}}function w1(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Sr{constructor(t,r){this._dirty=!1,this._unmergedPaths=r||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let r=this._entries.get(t.path);r||(this._entries.set(t.path,t),r=t),r.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static async from(t){if(Buffer.isBuffer(t))return Sr.fromBuffer(t);if(t===null)return new Sr(null);throw new Ee("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new Ee("Index file is empty (.git/index)");const r=new Sr,i=new Gt(t),a=i.toString("utf8",4);if(a!=="DIRC")throw new Ee(`Invalid dircache magic file number: ${a}`);const s=await Qs(t.slice(0,-20)),n=t.slice(-20).toString("hex");if(n!==s)throw new Ee(`Invalid checksum in GitIndex buffer: expected ${n} but saw ${s}`);const o=i.readUInt32BE();if(o!==2)throw new Ee(`Unsupported dircache version: ${o}`);const l=i.readUInt32BE();let p=0;for(;!i.eof()&&p<l;){const c={};c.ctimeSeconds=i.readUInt32BE(),c.ctimeNanoseconds=i.readUInt32BE(),c.mtimeSeconds=i.readUInt32BE(),c.mtimeNanoseconds=i.readUInt32BE(),c.dev=i.readUInt32BE(),c.ino=i.readUInt32BE(),c.mode=i.readUInt32BE(),c.uid=i.readUInt32BE(),c.gid=i.readUInt32BE(),c.size=i.readUInt32BE(),c.oid=i.slice(20).toString("hex");const h=i.readUInt16BE();c.flags=g1(h);const m=t.indexOf(0,i.tell()+1)-i.tell();if(m<1)throw new Ee(`Got a path length of: ${m}`);if(c.path=i.toString("utf8",m),c.path.includes("..\\")||c.path.includes("../"))throw new Kn(c.path);let g=8-(i.tell()-12)%8;for(g===0&&(g=8);g--;){const T=i.readUInt8();if(T!==0)throw new Ee(`Expected 1-8 null characters but got '${T}' after ${c.path}`);if(i.eof())throw new Ee("Unexpected end of file")}c.stages=[],r._addEntry(c),p++}return r}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(tc)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(r=>r):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:r,oid:i,stage:a=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=vf(r);const s=Buffer.from(t),n={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:t,oid:i,flags:{assumeValid:!1,extended:!1,stage:a,nameLength:s.length<4095?s.length:4095},stages:[]};this._addEntry(n),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const r of this._entries.keys())r.startsWith(t+"/")&&this._entries.delete(r);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join(`
|
|
65
|
-
`)}static async _entryToBuffer(t){const r=Buffer.from(t.path),i=Math.ceil((62+r.length+1)/8)*8,a=Buffer.alloc(i),s=new
|
|
64
|
+
*/(function(e){var t=wi,r=$o,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{var v=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(v,u),v.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function n(v){if(v>a)throw new RangeError('The value "'+v+'" is invalid for option "size"');var u=new Uint8Array(v);return Object.setPrototypeOf(u,o.prototype),u}function o(v,u,d){if(typeof v=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(v)}return l(v,u,d)}o.poolSize=8192;function l(v,u,d){if(typeof v=="string")return m(v,u);if(ArrayBuffer.isView(v))return A(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(Ce(v,ArrayBuffer)||v&&Ce(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(v,SharedArrayBuffer)||v&&Ce(v.buffer,SharedArrayBuffer)))return y(v,u,d);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var R=v.valueOf&&v.valueOf();if(R!=null&&R!==v)return o.from(R,u,d);var j=w(v);if(j)return j;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return o.from(v[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}o.from=function(v,u,d){return l(v,u,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function p(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function c(v,u,d){return p(v),v<=0?n(v):u!==void 0?typeof d=="string"?n(v).fill(u,d):n(v).fill(u):n(v)}o.alloc=function(v,u,d){return c(v,u,d)};function h(v){return p(v),n(v<0?0:b(v)|0)}o.allocUnsafe=function(v){return h(v)},o.allocUnsafeSlow=function(v){return h(v)};function m(v,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=k(v,u)|0,R=n(d),j=R.write(v,u);return j!==d&&(R=R.slice(0,j)),R}function g(v){for(var u=v.length<0?0:b(v.length)|0,d=n(u),R=0;R<u;R+=1)d[R]=v[R]&255;return d}function A(v){if(Ce(v,Uint8Array)){var u=new Uint8Array(v);return y(u.buffer,u.byteOffset,u.byteLength)}return g(v)}function y(v,u,d){if(u<0||v.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');var R;return u===void 0&&d===void 0?R=new Uint8Array(v):d===void 0?R=new Uint8Array(v,u):R=new Uint8Array(v,u,d),Object.setPrototypeOf(R,o.prototype),R}function w(v){if(o.isBuffer(v)){var u=b(v.length)|0,d=n(u);return d.length===0||v.copy(d,0,0,u),d}if(v.length!==void 0)return typeof v.length!="number"||pt(v.length)?n(0):g(v);if(v.type==="Buffer"&&Array.isArray(v.data))return g(v.data)}function b(v){if(v>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return v|0}function O(v){return+v!=v&&(v=0),o.alloc(+v)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,d){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),Ce(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(u)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var R=u.length,j=d.length,H=0,K=Math.min(R,j);H<K;++H)if(u[H]!==d[H]){R=u[H],j=d[H];break}return R<j?-1:j<R?1:0},o.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return o.alloc(0);var R;if(d===void 0)for(d=0,R=0;R<u.length;++R)d+=u[R].length;var j=o.allocUnsafe(d),H=0;for(R=0;R<u.length;++R){var K=u[R];if(Ce(K,Uint8Array))H+K.length>j.length?o.from(K).copy(j,H):Uint8Array.prototype.set.call(j,K,H);else if(o.isBuffer(K))K.copy(j,H);else throw new TypeError('"list" argument must be an Array of Buffers');H+=K.length}return j};function k(v,u){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||Ce(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);var d=v.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&d===0)return 0;for(var j=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ae(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return Et(v).length;default:if(j)return R?-1:Ae(v).length;u=(""+u).toLowerCase(),j=!0}}o.byteLength=k;function L(v,u,d){var R=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(v||(v="utf8");;)switch(v){case"hex":return se(this,u,d);case"utf8":case"utf-8":return U(this,u,d);case"ascii":return X(this,u,d);case"latin1":case"binary":return V(this,u,d);case"base64":return I(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,u,d);default:if(R)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),R=!0}}o.prototype._isBuffer=!0;function $(v,u,d){var R=v[u];v[u]=v[d],v[d]=R}o.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)$(this,d,d+1);return this},o.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)$(this,d,d+3),$(this,d+1,d+2);return this},o.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)$(this,d,d+7),$(this,d+1,d+6),$(this,d+2,d+5),$(this,d+3,d+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?U(this,0,u):L.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(u){if(!o.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:o.compare(this,u)===0},o.prototype.inspect=function(){var u="",d=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(u,d,R,j,H){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(d===void 0&&(d=0),R===void 0&&(R=u?u.length:0),j===void 0&&(j=0),H===void 0&&(H=this.length),d<0||R>u.length||j<0||H>this.length)throw new RangeError("out of range index");if(j>=H&&d>=R)return 0;if(j>=H)return-1;if(d>=R)return 1;if(d>>>=0,R>>>=0,j>>>=0,H>>>=0,this===u)return 0;for(var K=H-j,pe=R-d,we=Math.min(K,pe),he=this.slice(j,H),je=u.slice(d,R),ue=0;ue<we;++ue)if(he[ue]!==je[ue]){K=he[ue],pe=je[ue];break}return K<pe?-1:pe<K?1:0};function C(v,u,d,R,j){if(v.length===0)return-1;if(typeof d=="string"?(R=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,pt(d)&&(d=j?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(j)return-1;d=v.length-1}else if(d<0)if(j)d=0;else return-1;if(typeof u=="string"&&(u=o.from(u,R)),o.isBuffer(u))return u.length===0?-1:E(v,u,d,R,j);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?j?Uint8Array.prototype.indexOf.call(v,u,d):Uint8Array.prototype.lastIndexOf.call(v,u,d):E(v,[u],d,R,j);throw new TypeError("val must be string, number or Buffer")}function E(v,u,d,R,j){var H=1,K=v.length,pe=u.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(v.length<2||u.length<2)return-1;H=2,K/=2,pe/=2,d/=2}function we(rt,Ft){return H===1?rt[Ft]:rt.readUInt16BE(Ft*H)}var he;if(j){var je=-1;for(he=d;he<K;he++)if(we(v,he)===we(u,je===-1?0:he-je)){if(je===-1&&(je=he),he-je+1===pe)return je*H}else je!==-1&&(he-=he-je),je=-1}else for(d+pe>K&&(d=K-pe),he=d;he>=0;he--){for(var ue=!0,yt=0;yt<pe;yt++)if(we(v,he+yt)!==we(u,yt)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,d,R){return this.indexOf(u,d,R)!==-1},o.prototype.indexOf=function(u,d,R){return C(this,u,d,R,!0)},o.prototype.lastIndexOf=function(u,d,R){return C(this,u,d,R,!1)};function T(v,u,d,R){d=Number(d)||0;var j=v.length-d;R?(R=Number(R),R>j&&(R=j)):R=j;var H=u.length;R>H/2&&(R=H/2);for(var K=0;K<R;++K){var pe=parseInt(u.substr(K*2,2),16);if(pt(pe))return K;v[d+K]=pe}return K}function F(v,u,d,R){return Le(Ae(u,v.length-d),v,d,R)}function P(v,u,d,R){return Le(Xe(u),v,d,R)}function S(v,u,d,R){return Le(Et(u),v,d,R)}function D(v,u,d,R){return Le(tt(u,v.length-d),v,d,R)}o.prototype.write=function(u,d,R,j){if(d===void 0)j="utf8",R=this.length,d=0;else if(R===void 0&&typeof d=="string")j=d,R=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(R)?(R=R>>>0,j===void 0&&(j="utf8")):(j=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var H=this.length-d;if((R===void 0||R>H)&&(R=H),u.length>0&&(R<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");for(var K=!1;;)switch(j){case"hex":return T(this,u,d,R);case"utf8":case"utf-8":return F(this,u,d,R);case"ascii":case"latin1":case"binary":return P(this,u,d,R);case"base64":return S(this,u,d,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,u,d,R);default:if(K)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),K=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(v,u,d){return u===0&&d===v.length?t.fromByteArray(v):t.fromByteArray(v.slice(u,d))}function U(v,u,d){d=Math.min(v.length,d);for(var R=[],j=u;j<d;){var H=v[j],K=null,pe=H>239?4:H>223?3:H>191?2:1;if(j+pe<=d){var we,he,je,ue;switch(pe){case 1:H<128&&(K=H);break;case 2:we=v[j+1],(we&192)===128&&(ue=(H&31)<<6|we&63,ue>127&&(K=ue));break;case 3:we=v[j+1],he=v[j+2],(we&192)===128&&(he&192)===128&&(ue=(H&15)<<12|(we&63)<<6|he&63,ue>2047&&(ue<55296||ue>57343)&&(K=ue));break;case 4:we=v[j+1],he=v[j+2],je=v[j+3],(we&192)===128&&(he&192)===128&&(je&192)===128&&(ue=(H&15)<<18|(we&63)<<12|(he&63)<<6|je&63,ue>65535&&ue<1114112&&(K=ue))}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,R.push(K>>>10&1023|55296),K=56320|K&1023),R.push(K),j+=pe}return W(R)}var q=4096;function W(v){var u=v.length;if(u<=q)return String.fromCharCode.apply(String,v);for(var d="",R=0;R<u;)d+=String.fromCharCode.apply(String,v.slice(R,R+=q));return d}function X(v,u,d){var R="";d=Math.min(v.length,d);for(var j=u;j<d;++j)R+=String.fromCharCode(v[j]&127);return R}function V(v,u,d){var R="";d=Math.min(v.length,d);for(var j=u;j<d;++j)R+=String.fromCharCode(v[j]);return R}function se(v,u,d){var R=v.length;(!u||u<0)&&(u=0),(!d||d<0||d>R)&&(d=R);for(var j="",H=u;H<d;++H)j+=Re[v[H]];return j}function Z(v,u,d){for(var R=v.slice(u,d),j="",H=0;H<R.length-1;H+=2)j+=String.fromCharCode(R[H]+R[H+1]*256);return j}o.prototype.slice=function(u,d){var R=this.length;u=~~u,d=d===void 0?R:~~d,u<0?(u+=R,u<0&&(u=0)):u>R&&(u=R),d<0?(d+=R,d<0&&(d=0)):d>R&&(d=R),d<u&&(d=u);var j=this.subarray(u,d);return Object.setPrototypeOf(j,o.prototype),j};function Q(v,u,d){if(v%1!==0||v<0)throw new RangeError("offset is not uint");if(v+u>d)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var j=this[u],H=1,K=0;++K<d&&(H*=256);)j+=this[u+K]*H;return j},o.prototype.readUintBE=o.prototype.readUIntBE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var j=this[u+--d],H=1;d>0&&(H*=256);)j+=this[u+--d]*H;return j},o.prototype.readUint8=o.prototype.readUInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readIntLE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var j=this[u],H=1,K=0;++K<d&&(H*=256);)j+=this[u+K]*H;return H*=128,j>=H&&(j-=Math.pow(2,8*d)),j},o.prototype.readIntBE=function(u,d,R){u=u>>>0,d=d>>>0,R||Q(u,d,this.length);for(var j=d,H=1,K=this[u+--j];j>0&&(H*=256);)K+=this[u+--j]*H;return H*=128,K>=H&&(K-=Math.pow(2,8*d)),K},o.prototype.readInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var R=this[u]|this[u+1]<<8;return R&32768?R|4294901760:R},o.prototype.readInt16BE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var R=this[u+1]|this[u]<<8;return R&32768?R|4294901760:R},o.prototype.readInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readFloatLE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!1,52,8)};function ee(v,u,d,R,j,H){if(!o.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>j||u<H)throw new RangeError('"value" argument is out of bounds');if(d+R>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,d,R,j){if(u=+u,d=d>>>0,R=R>>>0,!j){var H=Math.pow(2,8*R)-1;ee(this,u,d,R,H,0)}var K=1,pe=0;for(this[d]=u&255;++pe<R&&(K*=256);)this[d+pe]=u/K&255;return d+R},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,d,R,j){if(u=+u,d=d>>>0,R=R>>>0,!j){var H=Math.pow(2,8*R)-1;ee(this,u,d,R,H,0)}var K=R-1,pe=1;for(this[d+K]=u&255;--K>=0&&(pe*=256);)this[d+K]=u/pe&255;return d+R},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,1,255,0),this[d]=u&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,65535,0),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,4294967295,0),this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,4294967295,0),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4},o.prototype.writeIntLE=function(u,d,R,j){if(u=+u,d=d>>>0,!j){var H=Math.pow(2,8*R-1);ee(this,u,d,R,H-1,-H)}var K=0,pe=1,we=0;for(this[d]=u&255;++K<R&&(pe*=256);)u<0&&we===0&&this[d+K-1]!==0&&(we=1),this[d+K]=(u/pe>>0)-we&255;return d+R},o.prototype.writeIntBE=function(u,d,R,j){if(u=+u,d=d>>>0,!j){var H=Math.pow(2,8*R-1);ee(this,u,d,R,H-1,-H)}var K=R-1,pe=1,we=0;for(this[d+K]=u&255;--K>=0&&(pe*=256);)u<0&&we===0&&this[d+K+1]!==0&&(we=1),this[d+K]=(u/pe>>0)-we&255;return d+R},o.prototype.writeInt8=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=u&255,d+1},o.prototype.writeInt16LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,32767,-32768),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeInt16BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeInt32LE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,2147483647,-2147483648),this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24,d+4},o.prototype.writeInt32BE=function(u,d,R){return u=+u,d=d>>>0,R||ee(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4};function G(v,u,d,R,j,H){if(d+R>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function fe(v,u,d,R,j){return u=+u,d=d>>>0,j||G(v,u,d,4),r.write(v,u,d,R,23,4),d+4}o.prototype.writeFloatLE=function(u,d,R){return fe(this,u,d,!0,R)},o.prototype.writeFloatBE=function(u,d,R){return fe(this,u,d,!1,R)};function ie(v,u,d,R,j){return u=+u,d=d>>>0,j||G(v,u,d,8),r.write(v,u,d,R,52,8),d+8}o.prototype.writeDoubleLE=function(u,d,R){return ie(this,u,d,!0,R)},o.prototype.writeDoubleBE=function(u,d,R){return ie(this,u,d,!1,R)},o.prototype.copy=function(u,d,R,j){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(R||(R=0),!j&&j!==0&&(j=this.length),d>=u.length&&(d=u.length),d||(d=0),j>0&&j<R&&(j=R),j===R||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),u.length-d<j-R&&(j=u.length-d+R);var H=j-R;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,R,j):Uint8Array.prototype.set.call(u,this.subarray(R,j),d),H},o.prototype.fill=function(u,d,R,j){if(typeof u=="string"){if(typeof d=="string"?(j=d,d=0,R=this.length):typeof R=="string"&&(j=R,R=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!o.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(u.length===1){var H=u.charCodeAt(0);(j==="utf8"&&H<128||j==="latin1")&&(u=H)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(d<0||this.length<d||this.length<R)throw new RangeError("Out of range index");if(R<=d)return this;d=d>>>0,R=R===void 0?this.length:R>>>0,u||(u=0);var K;if(typeof u=="number")for(K=d;K<R;++K)this[K]=u;else{var pe=o.isBuffer(u)?u:o.from(u,j),we=pe.length;if(we===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(K=0;K<R-d;++K)this[K+d]=pe[K%we]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function Se(v){if(v=v.split("=")[0],v=v.trim().replace(ae,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function Ae(v,u){u=u||1/0;for(var d,R=v.length,j=null,H=[],K=0;K<R;++K){if(d=v.charCodeAt(K),d>55295&&d<57344){if(!j){if(d>56319){(u-=3)>-1&&H.push(239,191,189);continue}else if(K+1===R){(u-=3)>-1&&H.push(239,191,189);continue}j=d;continue}if(d<56320){(u-=3)>-1&&H.push(239,191,189),j=d;continue}d=(j-55296<<10|d-56320)+65536}else j&&(u-=3)>-1&&H.push(239,191,189);if(j=null,d<128){if((u-=1)<0)break;H.push(d)}else if(d<2048){if((u-=2)<0)break;H.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;H.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;H.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return H}function Xe(v){for(var u=[],d=0;d<v.length;++d)u.push(v.charCodeAt(d)&255);return u}function tt(v,u){for(var d,R,j,H=[],K=0;K<v.length&&!((u-=2)<0);++K)d=v.charCodeAt(K),R=d>>8,j=d%256,H.push(j),H.push(R);return H}function Et(v){return t.toByteArray(Se(v))}function Le(v,u,d,R){for(var j=0;j<R&&!(j+d>=u.length||j>=v.length);++j)u[j+d]=v[j];return j}function Ce(v,u){return v instanceof u||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===u.name}function pt(v){return v!==v}var Re=function(){for(var v="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var R=d*16,j=0;j<16;++j)u[R+j]=v[d]+v[j];return u}()})(Ao);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=Ao,i=r.Buffer;function a(n,o){for(var l in n)o[l]=n[l]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s);function s(n,o,l){return i(n,o,l)}s.prototype=Object.create(i.prototype),a(i,s),s.from=function(n,o,l){if(typeof n=="number")throw new TypeError("Argument must not be a number");return i(n,o,l)},s.alloc=function(n,o,l){if(typeof n!="number")throw new TypeError("Argument must be a number");var p=i(n);return o!==void 0?typeof l=="string"?p.fill(o,l):p.fill(o):p.fill(0),p},s.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i(n)},s.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}})(no,no.exports);var Ro=no.exports,E0={}.toString,S0=Array.isArray||function(e){return E0.call(e)=="[object Array]"},ns=TypeError,Qc=Object,T0=Error,O0=EvalError,A0=RangeError,$0=ReferenceError,eu=SyntaxError,R0=URIError,F0=Math.abs,I0=Math.floor,L0=Math.max,C0=Math.min,D0=Math.pow,N0=Math.round,j0=Number.isNaN||function(t){return t!==t},U0=j0,B0=function(t){return U0(t)||t===0?t:t<0?-1:1},q0=Object.getOwnPropertyDescriptor,Ds=q0;if(Ds)try{Ds([],"length")}catch{Ds=null}var ss=Ds,Ns=Object.defineProperty||!1;if(Ns)try{Ns({},"a",{value:1})}catch{Ns=!1}var bi=Ns,ta,nf;function tu(){return nf||(nf=1,ta=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==a||o.enumerable!==!0)return!1}return!0}),ta}var ra,sf;function M0(){if(sf)return ra;sf=1;var e=typeof Symbol<"u"&&Symbol,t=tu();return ra=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},ra}var na,af;function ru(){return af||(af=1,na=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),na}var sa,of;function nu(){if(of)return sa;of=1;var e=Qc;return sa=e.getPrototypeOf||null,sa}var W0="Function.prototype.bind called on incompatible ",z0=Object.prototype.toString,H0=Math.max,V0="[object Function]",lf=function(t,r){for(var i=[],a=0;a<t.length;a+=1)i[a]=t[a];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},Z0=function(t,r){for(var i=[],a=r,s=0;a<t.length;a+=1,s+=1)i[s]=t[a];return i},G0=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r},Y0=function(t){var r=this;if(typeof r!="function"||z0.apply(r)!==V0)throw new TypeError(W0+r);for(var i=Z0(arguments,1),a,s=function(){if(this instanceof a){var c=r.apply(this,lf(i,arguments));return Object(c)===c?c:this}return r.apply(t,lf(i,arguments))},n=H0(0,r.length-i.length),o=[],l=0;l<n;l++)o[l]="$"+l;if(a=Function("binder","return function ("+G0(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,a.prototype=new p,p.prototype=null}return a},K0=Y0,is=Function.prototype.bind||K0,Fo=Function.prototype.call,ia,ff;function Io(){return ff||(ff=1,ia=Function.prototype.apply),ia}var X0=typeof Reflect<"u"&&Reflect&&Reflect.apply,J0=is,Q0=Io(),eg=Fo,tg=X0,su=tg||J0.call(eg,Q0),rg=is,ng=ns,sg=Fo,ig=su,Lo=function(t){if(t.length<1||typeof t[0]!="function")throw new ng("a function is required");return ig(rg,sg,t)},aa,pf;function ag(){if(pf)return aa;pf=1;var e=Lo,t=ss,r;try{r=[].__proto__===Array.prototype}catch(n){if(!n||typeof n!="object"||!("code"in n)||n.code!=="ERR_PROTO_ACCESS")throw n}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return aa=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(o){return s(o==null?o:a(o))}:!1,aa}var oa,cf;function iu(){if(cf)return oa;cf=1;var e=ru(),t=nu(),r=ag();return oa=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,oa}var la,uf;function og(){if(uf)return la;uf=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=is;return la=r.call(e,t),la}var ye,lg=Qc,fg=T0,pg=O0,cg=A0,ug=$0,hn=eu,fn=ns,dg=R0,hg=F0,mg=I0,yg=L0,gg=C0,wg=D0,bg=N0,_g=B0,au=Function,fa=function(e){try{return au('"use strict"; return ('+e+").constructor;")()}catch{}},Mn=ss,vg=bi,pa=function(){throw new fn},xg=Mn?function(){try{return arguments.callee,pa}catch{try{return Mn(arguments,"callee").get}catch{return pa}}}():pa,Gr=M0()(),Ze=iu(),kg=nu(),Pg=ru(),ou=Io(),as=Fo,Qr={},Eg=typeof Uint8Array>"u"||!Ze?ye:Ze(Uint8Array),$r={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ye:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ye:ArrayBuffer,"%ArrayIteratorPrototype%":Gr&&Ze?Ze([][Symbol.iterator]()):ye,"%AsyncFromSyncIteratorPrototype%":ye,"%AsyncFunction%":Qr,"%AsyncGenerator%":Qr,"%AsyncGeneratorFunction%":Qr,"%AsyncIteratorPrototype%":Qr,"%Atomics%":typeof Atomics>"u"?ye:Atomics,"%BigInt%":typeof BigInt>"u"?ye:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ye:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ye:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ye:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fg,"%eval%":eval,"%EvalError%":pg,"%Float16Array%":typeof Float16Array>"u"?ye:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ye:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ye:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ye:FinalizationRegistry,"%Function%":au,"%GeneratorFunction%":Qr,"%Int8Array%":typeof Int8Array>"u"?ye:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ye:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ye:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gr&&Ze?Ze(Ze([][Symbol.iterator]())):ye,"%JSON%":typeof JSON=="object"?JSON:ye,"%Map%":typeof Map>"u"?ye:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gr||!Ze?ye:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":lg,"%Object.getOwnPropertyDescriptor%":Mn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ye:Promise,"%Proxy%":typeof Proxy>"u"?ye:Proxy,"%RangeError%":cg,"%ReferenceError%":ug,"%Reflect%":typeof Reflect>"u"?ye:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ye:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gr||!Ze?ye:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ye:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gr&&Ze?Ze(""[Symbol.iterator]()):ye,"%Symbol%":Gr?Symbol:ye,"%SyntaxError%":hn,"%ThrowTypeError%":xg,"%TypedArray%":Eg,"%TypeError%":fn,"%Uint8Array%":typeof Uint8Array>"u"?ye:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ye:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ye:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ye:Uint32Array,"%URIError%":dg,"%WeakMap%":typeof WeakMap>"u"?ye:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ye:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ye:WeakSet,"%Function.prototype.call%":as,"%Function.prototype.apply%":ou,"%Object.defineProperty%":vg,"%Object.getPrototypeOf%":kg,"%Math.abs%":hg,"%Math.floor%":mg,"%Math.max%":yg,"%Math.min%":gg,"%Math.pow%":wg,"%Math.round%":bg,"%Math.sign%":_g,"%Reflect.getPrototypeOf%":Pg};if(Ze)try{null.error}catch(e){var Sg=Ze(Ze(e));$r["%Error.prototype%"]=Sg}var Tg=function e(t){var r;if(t==="%AsyncFunction%")r=fa("async function () {}");else if(t==="%GeneratorFunction%")r=fa("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=fa("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ze&&(r=Ze(a.prototype))}return $r[t]=r,r},df={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},os=is,Qs=og(),Og=os.call(as,Array.prototype.concat),Ag=os.call(ou,Array.prototype.splice),hf=os.call(as,String.prototype.replace),ei=os.call(as,String.prototype.slice),$g=os.call(as,RegExp.prototype.exec),Rg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fg=/\\(\\)?/g,Ig=function(t){var r=ei(t,0,1),i=ei(t,-1);if(r==="%"&&i!=="%")throw new hn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new hn("invalid intrinsic syntax, expected opening `%`");var a=[];return hf(t,Rg,function(s,n,o,l){a[a.length]=o?hf(l,Fg,"$1"):n||s}),a},Lg=function(t,r){var i=t,a;if(Qs(df,i)&&(a=df[i],i="%"+a[0]+"%"),Qs($r,i)){var s=$r[i];if(s===Qr&&(s=Tg(i)),typeof s>"u"&&!r)throw new fn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:s}}throw new hn("intrinsic "+t+" does not exist!")},lu=function(t,r){if(typeof t!="string"||t.length===0)throw new fn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new fn('"allowMissing" argument must be a boolean');if($g(/^%?[^%]*%?$/,t)===null)throw new hn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Ig(t),a=i.length>0?i[0]:"",s=Lg("%"+a+"%",r),n=s.name,o=s.value,l=!1,p=s.alias;p&&(a=p[0],Ag(i,Og([0,1],p)));for(var c=1,h=!0;c<i.length;c+=1){var m=i[c],g=ei(m,0,1),A=ei(m,-1);if((g==='"'||g==="'"||g==="`"||A==='"'||A==="'"||A==="`")&&g!==A)throw new hn("property names with quotes must have matching quotes");if((m==="constructor"||!h)&&(l=!0),a+="."+m,n="%"+a+"%",Qs($r,n))o=$r[n];else if(o!=null){if(!(m in o)){if(!r)throw new fn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Mn&&c+1>=i.length){var y=Mn(o,m);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[m]}else h=Qs(o,m),o=o[m];h&&!l&&($r[n]=o)}}return o},fu=lu,pu=Lo,Cg=pu([fu("%String.prototype.indexOf%")]),cu=function(t,r){var i=fu(t,!!r);return typeof i=="function"&&Cg(t,".prototype.")>-1?pu([i]):i},ca,mf;function Dg(){if(mf)return ca;mf=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(O){O!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(k){try{var L=e.call(k);return a.test(L)}catch{return!1}},n=function(k){try{return s(k)?!1:(e.call(k),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",p="[object Function]",c="[object GeneratorFunction]",h="[object HTMLAllCollection]",m="[object HTML document.all class]",g="[object HTMLCollection]",A=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var b=document.all;o.call(b)===o.call(document.all)&&(w=function(k){if((y||!k)&&(typeof k>"u"||typeof k=="object"))try{var L=o.call(k);return(L===h||L===m||L===g||L===l)&&k("")==null}catch{}return!1})}return ca=t?function(k){if(w(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;try{t(k,null,r)}catch(L){if(L!==i)return!1}return!s(k)&&n(k)}:function(k){if(w(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;if(A)return n(k);if(s(k))return!1;var L=o.call(k);return L!==p&&L!==c&&!/^\[object HTML/.test(L)?!1:n(k)},ca}var ua,yf;function Ng(){if(yf)return ua;yf=1;var e=Dg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(l,p,c){for(var h=0,m=l.length;h<m;h++)r.call(l,h)&&(c==null?p(l[h],h,l):p.call(c,l[h],h,l))},a=function(l,p,c){for(var h=0,m=l.length;h<m;h++)c==null?p(l.charAt(h),h,l):p.call(c,l.charAt(h),h,l)},s=function(l,p,c){for(var h in l)r.call(l,h)&&(c==null?p(l[h],h,l):p.call(c,l[h],h,l))};function n(o){return t.call(o)==="[object Array]"}return ua=function(l,p,c){if(!e(p))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=c),n(l)?i(l,p,h):typeof l=="string"?a(l,p,h):s(l,p,h)},ua}var da,gf;function jg(){return gf||(gf=1,da=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),da}var ha,wf;function Ug(){if(wf)return ha;wf=1;var e=jg(),t=typeof globalThis>"u"?Hp:globalThis;return ha=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},ha}var ma={exports:{}},ya,bf;function Bg(){if(bf)return ya;bf=1;var e=bi,t=eu,r=ns,i=ss;return ya=function(s,n,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,m=!!i&&i(s,n);if(e)e(s,n,{configurable:c===null&&m?m.configurable:!c,enumerable:l===null&&m?m.enumerable:!l,value:o,writable:p===null&&m?m.writable:!p});else if(h||!l&&!p&&!c)s[n]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ya}var ga,_f;function qg(){if(_f)return ga;_f=1;var e=bi,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},ga=t,ga}var wa,vf;function Mg(){if(vf)return wa;vf=1;var e=lu,t=Bg(),r=qg()(),i=ss,a=ns,s=e("%Math.floor%");return wa=function(o,l){if(typeof o!="function")throw new a("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,h=!0;if("length"in o&&i){var m=i(o,"length");m&&!m.configurable&&(c=!1),m&&!m.writable&&(h=!1)}return(c||h||!p)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},wa}var ba,xf;function Wg(){if(xf)return ba;xf=1;var e=is,t=Io(),r=su;return ba=function(){return r(e,t,arguments)},ba}var kf;function zg(){return kf||(kf=1,function(e){var t=Mg(),r=bi,i=Lo,a=Wg();e.exports=function(n){var o=i(arguments),l=n.length-(arguments.length-1);return t(o,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a}(ma)),ma.exports}var _a,Pf;function Hg(){if(Pf)return _a;Pf=1;var e=tu();return _a=function(){return e()&&!!Symbol.toStringTag},_a}var va,Ef;function Vg(){if(Ef)return va;Ef=1;var e=Ng(),t=Ug(),r=zg(),i=cu,a=ss,s=iu(),n=i("Object.prototype.toString"),o=Hg()(),l=typeof globalThis>"u"?Hp:globalThis,p=t(),c=i("String.prototype.slice"),h=i("Array.prototype.indexOf",!0)||function(w,b){for(var O=0;O<w.length;O+=1)if(w[O]===b)return O;return-1},m={__proto__:null};o&&a&&s?e(p,function(y){var w=new l[y];if(Symbol.toStringTag in w&&s){var b=s(w),O=a(b,Symbol.toStringTag);if(!O&&b){var k=s(b);O=a(k,Symbol.toStringTag)}if(O&&O.get){var L=r(O.get);m["$"+y]=L}}}):e(p,function(y){var w=new l[y],b=w.slice||w.set;if(b){var O=r(b);m["$"+y]=O}});var g=function(w){var b=!1;return e(m,function(O,k){if(!b)try{"$"+O(w)===k&&(b=c(k,1))}catch{}}),b},A=function(w){var b=!1;return e(m,function(O,k){if(!b)try{O(w),b=c(k,1)}catch{}}),b};return va=function(w){if(!w||typeof w!="object")return!1;if(!o){var b=c(n(w),8,-1);return h(p,b)>-1?b:b!=="Object"?!1:A(w)}return a?g(w):null},va}var xa,Sf;function Zg(){if(Sf)return xa;Sf=1;var e=Vg();return xa=function(r){return!!e(r)},xa}var Gg=ns,Yg=cu,Kg=Yg("TypedArray.prototype.buffer",!0),Xg=Zg(),Jg=Kg||function(t){if(!Xg(t))throw new Gg("Not a Typed Array");return t.buffer},Lt=Ro.Buffer,Qg=S0,e1=Jg,t1=ArrayBuffer.isView||function(t){try{return e1(t),!0}catch{return!1}},r1=typeof Uint8Array<"u",uu=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",n1=uu&&(Lt.prototype instanceof Uint8Array||Lt.TYPED_ARRAY_SUPPORT),s1=function(t,r){if(Lt.isBuffer(t))return t.constructor&&!("isBuffer"in t)?Lt.from(t):t;if(typeof t=="string")return Lt.from(t,r);if(uu&&t1(t)){if(t.byteLength===0)return Lt.alloc(0);if(n1){var i=Lt.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var a=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=Lt.from(a);if(s.length===t.byteLength)return s}if(r1&&t instanceof Uint8Array)return Lt.from(t);var n=Qg(t);if(n)for(var o=0;o<t.length;o+=1){var l=t[o];if(typeof l!="number"||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(n||Lt.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Lt.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},i1=Ro.Buffer,a1=s1;function _i(e,t){this._block=i1.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}_i.prototype.update=function(e,t){e=a1(e,t||"utf8");for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,n=0;n<a;){for(var o=s%i,l=Math.min(a-n,i-o),p=0;p<l;p++)r[o+p]=e[n+p];s+=l,n+=l,s%i===0&&this._update(r)}return this._len+=a,this};_i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};_i.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var o1=_i,l1=y0,du=o1,f1=Ro.Buffer,p1=[1518500249,1859775393,-1894007588,-899497514],c1=new Array(80);function ls(){this.init(),this._w=c1,du.call(this,64,56)}l1(ls,du);ls.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function u1(e){return e<<1|e>>>31}function d1(e){return e<<5|e>>>27}function h1(e){return e<<30|e>>>2}function m1(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}ls.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,s=this._d|0,n=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=u1(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var l=0;l<80;++l){var p=~~(l/20),c=d1(r)+m1(p,i,a,s)+n+t[l]+p1[p]|0;n=s,s=a,a=h1(i),i=r,r=c}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=n+this._e|0};ls.prototype._hash=function(){var e=f1.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var y1=ls;const g1=ho(y1);function w1(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let ka=null;async function ti(e){return ka===null&&(ka=await _1()),ka?hu(e):b1(e)}function b1(e){return new g1().update(e).digest("hex")}async function hu(e){const t=await crypto.subtle.digest("SHA-1",e);return w1(t)}async function _1(){try{if(await hu(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function v1(e){const t=[];let r=0,i=0;do{r=e.readUInt8();const a=r&127;t.push(a),i=r&128}while(i);return t.reduce((a,s)=>a+1<<7|s,-1)}function x1(e,t){let r=t,i=4,a=null;do a=e.readUInt8(),r|=(a&127)<<i,i+=7;while(a&128);return r}class mn{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new Zt(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const s=i.readUInt32BE();if(s!==2)throw new Ee(`Unable to read version ${s} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new Ee("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");i.seek(i.tell()+4*255);const n=i.readUInt32BE(),o=[];for(let c=0;c<n;c++){const h=i.slice(20).toString("hex");o[c]=h}i.seek(i.tell()+4*n);const l=new Map;for(let c=0;c<n;c++)l.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new mn({hashes:o,crcs:{},offsets:l,packfileSha:p,getExternalRefDelta:r})}static async fromPack({pack:t,getExternalRefDelta:r,onProgress:i}){const a={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},s={},n=t.slice(-20).toString("hex"),o=[],l={},p=new Map;let c=null,h=null;await d0([t],async({data:w,type:b,reference:O,offset:k,num:L})=>{c===null&&(c=L);const $=Math.floor((c-L)*100/c);$!==h&&i&&await i({phase:"Receiving objects",loaded:c-L,total:c}),h=$,b=a[b],["commit","tree","blob","tag"].includes(b)?s[k]={type:b,offset:k}:b==="ofs-delta"?s[k]={type:b,offset:k}:b==="ref-delta"&&(s[k]={type:b,offset:k})});const m=Object.keys(s).map(Number);for(const[w,b]of m.entries()){const O=w+1===m.length?t.byteLength-20:m[w+1],k=s[b],L=wm.buf(t.slice(b,O))>>>0;k.end=O,k.crc=L}const g=new mn({pack:Promise.resolve(t),packfileSha:n,crcs:l,hashes:o,offsets:p,getExternalRefDelta:r});h=null;let A=0;const y=[0,0,0,0,0,0,0,0,0,0,0,0];for(let w in s){w=Number(w);const b=Math.floor(A*100/c);b!==h&&i&&await i({phase:"Resolving deltas",loaded:A,total:c}),A++,h=b;const O=s[w];if(!O.oid)try{g.readDepth=0,g.externalReadDepth=0;const{type:k,object:L}=await g.readSlice({start:w});y[g.readDepth]+=1;const $=await ti(bm.wrap({type:k,object:L}));O.oid=$,o.push($),p.set($,w),l[$]=O.crc}catch{continue}}return o.sort(),g}async toBuffer(){const t=[],r=(p,c)=>{t.push(Buffer.from(p,c))};r("ff744f63","hex"),r("00000002","hex");const i=new Zt(Buffer.alloc(256*4));for(let p=0;p<256;p++){let c=0;for(const h of this.hashes)parseInt(h.slice(0,2),16)<=p&&c++;i.writeUInt32BE(c)}t.push(i.buffer);for(const p of this.hashes)r(p,"hex");const a=new Zt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const s=new Zt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)s.writeUInt32BE(this.offsets.get(p));t.push(s.buffer),r(this.packfileSha,"hex");const n=Buffer.concat(t),o=await ti(n),l=Buffer.alloc(20);return l.write(o,"hex"),Buffer.concat([n,l])}async load({pack:t}){this.pack=t}async unload(){this.pack=null}async read({oid:t}){if(!this.offsets.get(t)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(t);throw new Ee(`Could not read object ${t} from packfile`)}const r=this.offsets.get(t);return this.readSlice({start:r})}async readSlice({start:t}){if(this.offsetCache[t])return Object.assign({},this.offsetCache[t]);this.readDepth++;const r={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new Ee("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new Zt(i),s=a.readUInt8(),n=s&112;let o=r[n];if(o===void 0)throw new Ee("Unrecognized type: 0b"+n.toString(2));const l=s&15;let p=l;s&128&&(p=x1(a,l));let h=null,m=null;if(o==="ofs_delta"){const A=v1(a),y=t-A;({object:h,type:o}=await this.readSlice({start:y}))}if(o==="ref_delta"){const A=a.slice(20).toString("hex");({object:h,type:o}=await this.read({oid:A}))}const g=i.slice(a.tell());if(m=Buffer.from(await m0(g)),m.byteLength!==p)throw new Ee(`Packfile told us object would have length ${p} but it had length ${m.byteLength}`);return h&&(m=Buffer.from(_m(m,h))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:m}),{type:o,format:"content",object:m}}}class Wn extends yn{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=Wn.code,this.data={value:t}}}Wn.code="InvalidOidError";class vi extends yn{constructor(t,r,i,a){super(`Object ${t} ${a?`at ${a}`:""}was anticipated to be a ${i} but it is a ${r}.`),this.code=this.name=vi.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}vi.code="ObjectTypeError";function k1(e){let t=e>0?e>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let r=e&511;return r&73?r=493:r=420,t!==8&&(r=0),(t<<12)+r}const Wt=2**32;function Tf(e,t,r,i){if(e!==void 0&&t!==void 0)return[e,t];r===void 0&&(r=i.valueOf());const a=Math.floor(r/1e3),s=(r-a*1e3)*1e6;return[a,s]}function Of(e){const[t,r]=Tf(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[i,a]=Tf(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Wt,ctimeNanoseconds:r%Wt,mtimeSeconds:i%Wt,mtimeNanoseconds:a%Wt,dev:e.dev%Wt,ino:e.ino%Wt,mode:k1(e.mode%Wt),uid:e.uid%Wt,gid:e.gid%Wt,size:e.size>-1?e.size%Wt:0}}function P1(e){return{assumeValid:!!(e&32768),extended:!!(e&16384),stage:(e&12288)>>12,nameLength:e&4095}}function E1(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Sr{constructor(t,r){this._dirty=!1,this._unmergedPaths=r||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let r=this._entries.get(t.path);r||(this._entries.set(t.path,t),r=t),r.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static async from(t){if(Buffer.isBuffer(t))return Sr.fromBuffer(t);if(t===null)return new Sr(null);throw new Ee("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new Ee("Index file is empty (.git/index)");const r=new Sr,i=new Zt(t),a=i.toString("utf8",4);if(a!=="DIRC")throw new Ee(`Invalid dircache magic file number: ${a}`);const s=await ti(t.slice(0,-20)),n=t.slice(-20).toString("hex");if(n!==s)throw new Ee(`Invalid checksum in GitIndex buffer: expected ${n} but saw ${s}`);const o=i.readUInt32BE();if(o!==2)throw new Ee(`Unsupported dircache version: ${o}`);const l=i.readUInt32BE();let p=0;for(;!i.eof()&&p<l;){const c={};c.ctimeSeconds=i.readUInt32BE(),c.ctimeNanoseconds=i.readUInt32BE(),c.mtimeSeconds=i.readUInt32BE(),c.mtimeNanoseconds=i.readUInt32BE(),c.dev=i.readUInt32BE(),c.ino=i.readUInt32BE(),c.mode=i.readUInt32BE(),c.uid=i.readUInt32BE(),c.gid=i.readUInt32BE(),c.size=i.readUInt32BE(),c.oid=i.slice(20).toString("hex");const h=i.readUInt16BE();c.flags=P1(h);const m=t.indexOf(0,i.tell()+1)-i.tell();if(m<1)throw new Ee(`Got a path length of: ${m}`);if(c.path=i.toString("utf8",m),c.path.includes("..\\")||c.path.includes("../"))throw new Jn(c.path);let g=8-(i.tell()-12)%8;for(g===0&&(g=8);g--;){const A=i.readUInt8();if(A!==0)throw new Ee(`Expected 1-8 null characters but got '${A}' after ${c.path}`);if(i.eof())throw new Ee("Unexpected end of file")}c.stages=[],r._addEntry(c),p++}return r}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(lc)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(r=>r):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:r,oid:i,stage:a=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=Of(r);const s=Buffer.from(t),n={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:t,oid:i,flags:{assumeValid:!1,extended:!1,stage:a,nameLength:s.length<4095?s.length:4095},stages:[]};this._addEntry(n),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const r of this._entries.keys())r.startsWith(t+"/")&&this._entries.delete(r);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join(`
|
|
65
|
+
`)}static async _entryToBuffer(t){const r=Buffer.from(t.path),i=Math.ceil((62+r.length+1)/8)*8,a=Buffer.alloc(i),s=new Zt(a),n=Of(t);return s.writeUInt32BE(n.ctimeSeconds),s.writeUInt32BE(n.ctimeNanoseconds),s.writeUInt32BE(n.mtimeSeconds),s.writeUInt32BE(n.mtimeNanoseconds),s.writeUInt32BE(n.dev),s.writeUInt32BE(n.ino),s.writeUInt32BE(n.mode),s.writeUInt32BE(n.uid),s.writeUInt32BE(n.gid),s.writeUInt32BE(n.size),s.write(t.oid,20,"hex"),s.writeUInt16BE(E1(t)),s.write(t.path,r.length,"utf8"),a}async toObject(){const t=Buffer.alloc(12),r=new Zt(t);r.write("DIRC",4,"utf8"),r.writeUInt32BE(2),r.writeUInt32BE(this.entriesFlat.length);let i=[];for(const o of this.entries)if(i.push(Sr._entryToBuffer(o)),o.stages.length>1)for(const l of o.stages)l&&l!==o&&i.push(Sr._entryToBuffer(l));i=await Promise.all(i);const a=Buffer.concat(i),s=Buffer.concat([t,a]),n=await ti(s);return Buffer.concat([s,Buffer.from(n,"hex")])}}async function mu(e,t){const r=ic(e);for(;;){const{value:i,done:a}=await r.next();if(i&&await t(i),a)break}r.return&&r.return()}async function zn(e){let t=0;const r=[];await mu(e,s=>{r.push(s),t+=s.byteLength});const i=new Uint8Array(t);let a=0;for(const s of r)i.set(s,a),a+=s.byteLength;return i}class Pa{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const r=this._waiting;this._waiting=null,r({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this.error=t,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{this._waiting=t})}}class S1{static demux(t){const r=Ke.streamReader(t),i=new Pa,a=new Pa,s=new Pa,n=async function(){const o=await r();if(o===null)return n();if(o===!0){i.end(),s.end(),t.error?a.destroy(t.error):a.end();return}switch(o[0]){case 1:{a.write(o.slice(1));break}case 2:{s.write(o.slice(1));break}case 3:{const l=o.slice(1);s.write(l),i.end(),s.end(),a.destroy(new Error(l.toString("utf8")));return}default:i.write(o)}n()};return n(),{packetlines:i,packfile:a,progress:s}}}async function yu(e){const{packetlines:t,packfile:r,progress:i}=S1.demux(e),a=[],s=[],n=[];let o=!1,l=!1;return new Promise((p,c)=>{mu(t,h=>{const m=h.toString("utf8").trim();if(m.startsWith("shallow")){const g=m.slice(-41).trim();g.length!==40&&c(new Wn(g)),a.push(g)}else if(m.startsWith("unshallow")){const g=m.slice(-41).trim();g.length!==40&&c(new Wn(g)),s.push(g)}else if(m.startsWith("ACK")){const[,g,A]=m.split(" ");n.push({oid:g,status:A}),A||(l=!0)}else m.startsWith("NAK")?(o=!0,l=!0):(l=!0,o=!0);l&&(e.error?c(e.error):p({shallows:a,unshallows:s,acks:n,nak:o,packfile:r,progress:i}))}).finally(()=>{l||(e.error?c(e.error):p({shallows:a,unshallows:s,acks:n,nak:o,packfile:r,progress:i}))})})}typeof globalThis.Buffer>"u"&&(globalThis.Buffer=Ao.Buffer);class Hn extends Error{constructor(t,r){super(`Authentication required to access private repository: ${t}`),this.name="GitAuthenticationError",this.repoUrl=t,this.status=r}}async function T1(e,t,r,i){const a=(i==null?void 0:i.additionalHeaders)||{},s=await wu(e,t,a),n=await L1(s.idx,t,r),o=r.map(g=>n[g].oid),l=o.length>0?await C1(e,o,a):null,p={};if(await Promise.all(r.map(async g=>{l&&(p[g]=await bu(l.idx,n[g].oid))})),!(i!=null&&i.withObjects))return{files:p};const c=[],h=await s.idx.toBuffer();if(c.push({name:`pack-${s.idx.packfileSha}`,pack:s.packfile,index:Vn(h),promisor:s.promisor}),l){const g=await l.idx.toBuffer();c.push({name:`pack-${l.idx.packfileSha}`,pack:l.packfile,index:Vn(g),promisor:l.promisor})}const m={};for(const g of r)m[g]=n[g].oid;return{files:p,packfiles:c,objects:[...await Af(s),...await Af(l)],fileOids:m}}const O1=/^[0-9a-f]{40}$/i;async function A1(e,t,r={}){const i=await wu(e,t,r),a=await I1(i.idx,t);return a!=null&&a.object?gu(a):[]}async function $1(e,t,r={}){const i=await F1(e,t);if(i.resolvedOid)return i.resolvedOid;const a=await so(e,i.refname,r);if(!a)throw new Error(`Git ref "${i.refname}" not found at ${e}`);return a}function gu(e){return e.object.map(t=>{if(t.type==="blob")return{name:t.path,type:"file"};if(t.type==="tree"&&t.object)return{name:t.path,type:"folder",children:gu(t)}}).filter(t=>!!(t!=null&&t.name))}async function R1(e,t,r={}){const i=Buffer.from(await zn([Ke.encode(`command=ls-refs
|
|
66
66
|
`),Ke.encode(`agent=git/2.37.3
|
|
67
67
|
`),Ke.encode(`object-format=sha1
|
|
68
68
|
`),Ke.delim(),Ke.encode(`peel
|
|
69
69
|
`),Ke.encode(`ref-prefix ${t}
|
|
70
|
-
`),Ke.flush()])),a=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${i.length}`,"Git-Protocol":"version=2",...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new
|
|
70
|
+
`),Ke.flush()])),a=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${i.length}`,"Git-Protocol":"version=2",...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new Hn(e,a.status):new Error(`Failed to fetch git refs from ${e}: ${a.status} ${a.statusText}`);const s={};for await(const n of D1(a)){const o=n.indexOf(" "),l=n.slice(0,o),c=n.slice(o+1,n.length-1).split(" ")[0];s[c]=l}return s}async function F1(e,t){switch(t.type??"infer"){case"commit":return{kind:"commit",refname:t.value,resolvedOid:t.value};case"branch":return{kind:"refname",refname:`refs/heads/${t.value.trim()}`};case"tag":return{kind:"refname",refname:`refs/tags/${t.value.trim()}`};case"refname":return{kind:"refname",refname:t.value.trim()};case"infer":{const i=t.value.trim();if(i===""||i==="HEAD")return{kind:"refname",refname:"HEAD"};if(i.startsWith("refs/"))return{kind:"refname",refname:i};if(O1.test(i))return{kind:"commit",refname:i,resolvedOid:i};const a=`refs/heads/${i}`,s=await so(e,a);if(s)return{kind:"refname",refname:a,resolvedOid:s};const n=`refs/tags/${i}`,o=await so(e,n);if(o)return{kind:"refname",refname:n,resolvedOid:o};throw new Error(`Git ref "${t.value}" not found at ${e}`)}default:throw new Error(`Invalid ref type: ${t.type}`)}}async function so(e,t,r){const i=await R1(e,t,r),a=[t,`${t}^{}`];for(const s of a){const n=s.trim();if(n in i)return i[n]}return null}async function wu(e,t,r){const i=Buffer.from(await zn([Ke.encode(`want ${t} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3 filter
|
|
71
71
|
`),Ke.encode(`filter blob:none
|
|
72
72
|
`),Ke.encode(`shallow ${t}
|
|
73
73
|
`),Ke.encode(`deepen 1
|
|
74
74
|
`),Ke.flush(),Ke.encode(`done
|
|
75
75
|
`),Ke.encode(`done
|
|
76
|
-
`)])),a=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${i.length}`,...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new
|
|
76
|
+
`)])),a=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${i.length}`,...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new Hn(e,a.status):new Error(`Failed to fetch git objects from ${e}: ${a.status} ${a.statusText}`);const s=_u(a.body),n=await yu(s),o=Buffer.from(await zn(n.packfile)),l=await mn.fromPack({pack:o}),p=l.read;return l.read=async function({oid:c,...h}){const m=await p.call(this,{oid:c,...h});return m.oid=c,m},{idx:l,packfile:Vn(o),promisor:!0}}async function I1(e,t){const r=await e.read({oid:t});Rr(r);const i=await e.read({oid:r.object.tree}),a=[i];for(;a.length>0;){const s=a.pop(),n=await e.read({oid:s.oid});if(Rr(n),s.object=n.object,n.type==="tree")for(const o of n.object)o.type==="tree"&&a.push(o)}return i}async function Af(e){if(!e)return[];const t=[],r=new Set;for(const i of e.idx.hashes??[]){if(r.has(i))continue;const a=e.idx.offsets.get(i);if(a===void 0)continue;const{type:s,object:n}=await e.idx.readSlice({start:a});s==="ofs_delta"||s==="ref_delta"||n&&(r.add(i),t.push({oid:i,type:s,body:Vn(n)}))}return t}async function L1(e,t,r){const i=await e.read({oid:t});Rr(i);const a=await e.read({oid:i.object.tree});Rr(a);const s={};for(const n of r){let o=a;const l=n.split("/");for(const p of l){if(o.type!=="tree")throw new Error(`Path not found in the repo: ${n}`);let c=!1;for(const h of o.object)if(h.path===p){try{o=await e.read({oid:h.oid}),Rr(o)}catch{o=h}c=!0;break}if(!c)throw new Error(`Path not found in the repo: ${n}`)}s[n]=o}return s}async function C1(e,t,r){const i=Buffer.from(await zn([...t.map(p=>Ke.encode(`want ${p} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3
|
|
77
77
|
`)),Ke.flush(),Ke.encode(`done
|
|
78
|
-
`)])),a=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${i.length}`,...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new
|
|
78
|
+
`)])),a=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${i.length}`,...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new Hn(e,a.status):new Error(`Failed to fetch git objects from ${e}: ${a.status} ${a.statusText}`);const s=_u(a.body),n=await yu(s),o=Buffer.from(await zn(n.packfile));return o.byteLength===0?{idx:await mn.fromPack({pack:o}),packfile:new Uint8Array,promisor:!1}:{idx:await mn.fromPack({pack:o}),packfile:Vn(o),promisor:!1}}async function bu(e,t){const r=await e.read({oid:t});if(Rr(r),r.type==="blob")return r.object;const i={};for(const{path:a,oid:s,type:n}of r.object)if(n==="blob"){const o=await e.read({oid:s});Rr(o),i[a]=o.object}else n==="tree"&&(i[a]=await bu(e,s));return i}function Rr(e){if(e.object instanceof Buffer)switch(e.type){case"commit":e.object=bt.from(e.object).parse();break;case"tree":e.object=_o.from(e.object).entries();break;case"blob":e.object=new Uint8Array(e.object),e.format="content";break;case"tag":e.object=$n.from(e.object).parse();break;default:throw new vi(e.oid,e.type,"blob|commit|tag|tree")}}async function*D1(e){const t=await e.text();let r=0;for(;r<=t.length;){const i=parseInt(t.substring(r,r+4),16);if(i===0)break;yield t.substring(r+4,r+i),r+=i}}function _u(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}}function Vn(e){return e instanceof Uint8Array,Uint8Array.from(e)}const N1=Oo.deflate,j1=/^[0-9a-f]{40}$/i;async function U1(e){const t={},r=new TextEncoder;return await Promise.all(e.map(async({oid:i,type:a,body:s})=>{if(!i||s.length===0)return;const n=r.encode(`${a} ${s.length}\0`),o=new Uint8Array(n.length+s.length);o.set(n,0),o.set(s,n.length);const l=await N1(o),p=i.slice(0,2),c=i.slice(2);t[`.git/objects/${p}/${c}`]=l})),t}function B1(e,t,r){const i=(e==null?void 0:e.trim())??"";let a=null;switch(t){case"branch":i&&(a=`refs/heads/${i}`);break;case"refname":a=i||null;break;case"tag":i.startsWith("refs/")?a=i:i&&(a=`refs/tags/${i}`);break;case"commit":a=null;break;default:i.startsWith("refs/")?a=i:j1.test(i)?a=null:i&&i!=="HEAD"&&(a=`refs/heads/${i}`);break}const s=a?`ref: ${a}
|
|
79
79
|
`:`${r}
|
|
80
|
-
`,n=a&&a.startsWith("refs/heads/")?a:void 0,o=n==null?void 0:n.slice(11),l=a&&a.startsWith("refs/tags/")?a:void 0,p=l==null?void 0:l.slice(10);return{headContent:s,branchName:o,branchRef:n,tagName:p}}function
|
|
80
|
+
`,n=a&&a.startsWith("refs/heads/")?a:void 0,o=n==null?void 0:n.slice(11),l=a&&a.startsWith("refs/tags/")?a:void 0,p=l==null?void 0:l.slice(10);return{headContent:s,branchName:o,branchRef:n,tagName:p}}function q1(e,{branchName:t,partialCloneFilter:r}){const a=["[core]",` repositoryformatversion = ${r?1:0}`," filemode = true"," bare = false"," logallrefupdates = true"," ignorecase = true"," precomposeunicode = true",'[remote "origin"]',` url = ${e}`," fetch = +refs/heads/*:refs/remotes/origin/*"," fetch = +refs/tags/*:refs/tags/*"];return r&&(a.push(" promisor = true"),a.push(` partialclonefilter = ${r}`),a.push("[extensions]"),a.push(" partialclone = origin")),t&&a.push(`[branch "${t}"]`," remote = origin",` merge = refs/heads/${t}`),a.join(`
|
|
81
81
|
`)+`
|
|
82
|
-
`}async function
|
|
82
|
+
`}async function M1({repoUrl:e,commitHash:t,ref:r,refType:i,objects:a,fileOids:s,pathPrefix:n}){const o={},l=B1(r,i,t);o[".git/HEAD"]=l.headContent,o[".git/config"]=q1(e,{branchName:l.branchName}),o[".git/description"]=`WordPress Playground clone
|
|
83
83
|
`,o[".git/shallow"]=`${t}
|
|
84
84
|
`,o[".git/refs/heads/.gitkeep"]="",o[".git/refs/tags/.gitkeep"]="",o[".git/refs/remotes/.gitkeep"]="",l.branchRef&&l.branchName&&(o[".git/logs/HEAD"]=`ref: ${l.branchRef}
|
|
85
85
|
`,o[`.git/${l.branchRef}`]=`${t}
|
|
86
86
|
`,o[`.git/refs/remotes/origin/${l.branchName}`]=`${t}
|
|
87
87
|
`,o[".git/refs/remotes/origin/HEAD"]=`ref: refs/remotes/origin/${l.branchName}
|
|
88
88
|
`),l.tagName&&(o[`.git/refs/tags/${l.tagName}`]=`${t}
|
|
89
|
-
`),Object.assign(o,await L1(a));const p=new Sr;for(const[h,m]of Object.entries(s)){const g=h.substring(n.length).replace(/^\/+/,"");p.insert({filepath:g,oid:m,stats:{ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:33188,uid:0,gid:0,size:0}})}const c=await p.toObject();return o[".git/index"]=Uint8Array.from(c),o}function D1(e,t){t=fi(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const n=t.split("/");for(const o of n){const l=i==null?void 0:i.find(p=>p.name===o);if((l==null?void 0:l.type)==="folder")i=l.children;else return l?[l.name]:[]}}const a=[],s=[{tree:i,path:t}];for(;s.length>0;){const{tree:n,path:o}=s.pop();for(const l of n){const p=`${o}${o?"/":""}${l.name}`;l.type==="folder"?s.push({tree:l.children,path:p}):a.push(p)}}return a}const Hn=15,ro=30,no=19,U1=29,ei=256,Lo=ei+1+U1,kf=2*Lo+1,vn=256,N1=7,Pf=16,Ef=17,Sf=18,xa=8*2,ti=-1,B1=1,gs=2,j1=0,Qr=0,Of=1,q1=3,ct=4,Ct=0,hu=1,ws=2,Ut=-2,M1=-3,Zr=-5;function bi(e){return _i(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function _i(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?_i(r):r),[])}const Af=[0,1,2,3].concat(...bi([[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 Le(){const e=this;function t(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,p=e.stat_desc.max_length;let c,h,m,g,T,y,w=0;for(g=0;g<=Hn;g++)a.bl_count[g]=0;for(s[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<kf;c++)h=a.heap[c],g=s[s[h*2+1]*2+1]+1,g>p&&(g=p,w++),s[h*2+1]=g,!(h>e.max_code)&&(a.bl_count[g]++,T=0,h>=l&&(T=o[h-l]),y=s[h*2],a.opt_len+=y*(g+T),n&&(a.static_len+=y*(n[h*2+1]+T)));if(w!==0){do{for(g=p-1;a.bl_count[g]===0;)g--;a.bl_count[g]--,a.bl_count[g+1]+=2,a.bl_count[p]--,w-=2}while(w>0);for(g=p;g!==0;g--)for(h=a.bl_count[g];h!==0;)m=a.heap[--c],!(m>e.max_code)&&(s[m*2+1]!=g&&(a.opt_len+=(g-s[m*2+1])*s[m*2],s[m*2+1]=g),h--)}}function r(a,s){let n=0;do n|=a&1,a>>>=1,n<<=1;while(--s>0);return n>>>1}function i(a,s,n){const o=[];let l=0,p,c,h;for(p=1;p<=Hn;p++)o[p]=l=l+n[p-1]<<1;for(c=0;c<=s;c++)h=a[c*2+1],h!==0&&(a[c*2]=r(o[h]++,h))}e.build_tree=function(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.elems;let l,p,c=-1,h;for(a.heap_len=0,a.heap_max=kf,l=0;l<o;l++)s[l*2]!==0?(a.heap[++a.heap_len]=c=l,a.depth[l]=0):s[l*2+1]=0;for(;a.heap_len<2;)h=a.heap[++a.heap_len]=c<2?++c:0,s[h*2]=1,a.depth[h]=0,a.opt_len--,n&&(a.static_len-=n[h*2+1]);for(e.max_code=c,l=Math.floor(a.heap_len/2);l>=1;l--)a.pqdownheap(s,l);h=o;do l=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(s,1),p=a.heap[1],a.heap[--a.heap_max]=l,a.heap[--a.heap_max]=p,s[h*2]=s[l*2]+s[p*2],a.depth[h]=Math.max(a.depth[l],a.depth[p])+1,s[l*2+1]=s[p*2+1]=h,a.heap[1]=h++,a.pqdownheap(s,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(s,e.max_code,a.bl_count)}}Le._length_code=[0,1,2,3,4,5,6,7].concat(...bi([[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]]));Le.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];Le.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];Le.d_code=function(e){return e<256?Af[e]:Af[256+(e>>>7)]};Le.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];Le.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];Le.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Le.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Je(e,t,r,i,a){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=r,s.elems=i,s.max_length=a}const W1=[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],z1=bi([[144,8],[112,9],[24,7],[8,8]]);Je.static_ltree=_i(W1.map((e,t)=>[e,z1[t]]));const H1=[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],V1=bi([[30,5]]);Je.static_dtree=_i(H1.map((e,t)=>[e,V1[t]]));Je.static_l_desc=new Je(Je.static_ltree,Le.extra_lbits,ei+1,Lo,Hn);Je.static_d_desc=new Je(Je.static_dtree,Le.extra_dbits,0,ro,Hn);Je.static_bl_desc=new Je(null,Le.extra_blbits,0,no,N1);const G1=9,Z1=8;function zt(e,t,r,i,a){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=r,s.max_chain=i,s.func=a}const mu=0,Ds=1,Pr=2,Ft=[new zt(0,0,0,0,mu),new zt(4,4,8,4,Ds),new zt(4,5,16,8,Ds),new zt(4,6,32,32,Ds),new zt(4,4,16,16,Pr),new zt(8,16,32,32,Pr),new zt(8,16,128,128,Pr),new zt(8,32,128,256,Pr),new zt(32,128,258,1024,Pr),new zt(32,258,258,4096,Pr)],bs=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],St=0,_s=1,xn=2,vs=3,Y1=32,ka=42,xs=113,kn=666,Pa=8,K1=0,Ea=1,X1=2,Ue=3,Us=258,wt=Us+Ue+1;function Tf(e,t,r,i){const a=e[t*2],s=e[r*2];return a<s||a==s&&i[t]<=i[r]}function J1(){const e=this;let t,r,i,a,s,n,o,l,p,c,h,m,g,T,y,w,b,A,k,I,$,C,E,O,L,P,S,D,F,B,q,W,X;const V=new Le,se=new Le,G=new Le;e.depth=[];let Q,ee,Z,fe,ie,ae;e.bl_count=[],e.heap=[],q=[],W=[],X=[];function Se(){p=2*s,h[g-1]=0;for(let M=0;M<g-1;M++)h[M]=0;P=Ft[S].max_lazy,F=Ft[S].good_length,B=Ft[S].nice_length,L=Ft[S].max_chain,$=0,b=0,E=0,A=O=Ue-1,I=0,m=0}function Te(){let M;for(M=0;M<Lo;M++)q[M*2]=0;for(M=0;M<ro;M++)W[M*2]=0;for(M=0;M<no;M++)X[M*2]=0;q[vn*2]=1,e.opt_len=e.static_len=0,ee=Z=0}function Xe(){V.dyn_tree=q,V.stat_desc=Je.static_l_desc,se.dyn_tree=W,se.stat_desc=Je.static_d_desc,G.dyn_tree=X,G.stat_desc=Je.static_bl_desc,ie=0,ae=0,fe=8,Te()}e.pqdownheap=function(M,Y){const z=e.heap,J=z[Y];let ne=Y<<1;for(;ne<=e.heap_len&&(ne<e.heap_len&&Tf(M,z[ne+1],z[ne],e.depth)&&ne++,!Tf(M,J,z[ne],e.depth));)z[Y]=z[ne],Y=ne,ne<<=1;z[Y]=J};function tt(M,Y){let z=-1,J,ne=M[0*2+1],le=0,de=7,Me=4;ne===0&&(de=138,Me=3),M[(Y+1)*2+1]=65535;for(let ce=0;ce<=Y;ce++)J=ne,ne=M[(ce+1)*2+1],!(++le<de&&J==ne)&&(le<Me?X[J*2]+=le:J!==0?(J!=z&&X[J*2]++,X[Pf*2]++):le<=10?X[Ef*2]++:X[Sf*2]++,le=0,z=J,ne===0?(de=138,Me=3):J==ne?(de=6,Me=3):(de=7,Me=4))}function Et(){let M;for(tt(q,V.max_code),tt(W,se.max_code),G.build_tree(e),M=no-1;M>=3&&X[Le.bl_order[M]*2+1]===0;M--);return e.opt_len+=3*(M+1)+5+5+4,M}function Ie(M){e.pending_buf[e.pending++]=M}function Ce(M){Ie(M&255),Ie(M>>>8&255)}function pt(M){Ie(M>>8&255),Ie(M&255&255)}function Re(M,Y){let z;const J=Y;ae>xa-J?(z=M,ie|=z<<ae&65535,Ce(ie),ie=z>>>xa-ae,ae+=J-xa):(ie|=M<<ae&65535,ae+=J)}function v(M,Y){const z=M*2;Re(Y[z]&65535,Y[z+1]&65535)}function u(M,Y){let z,J=-1,ne,le=M[0*2+1],de=0,Me=7,ce=4;for(le===0&&(Me=138,ce=3),z=0;z<=Y;z++)if(ne=le,le=M[(z+1)*2+1],!(++de<Me&&ne==le)){if(de<ce)do v(ne,X);while(--de!==0);else ne!==0?(ne!=J&&(v(ne,X),de--),v(Pf,X),Re(de-3,2)):de<=10?(v(Ef,X),Re(de-3,3)):(v(Sf,X),Re(de-11,7));de=0,J=ne,le===0?(Me=138,ce=3):ne==le?(Me=6,ce=3):(Me=7,ce=4)}}function d(M,Y,z){let J;for(Re(M-257,5),Re(Y-1,5),Re(z-4,4),J=0;J<z;J++)Re(X[Le.bl_order[J]*2+1],3);u(q,M-1),u(W,Y-1)}function R(){ae==16?(Ce(ie),ie=0,ae=0):ae>=8&&(Ie(ie&255),ie>>>=8,ae-=8)}function N(){Re(Ea<<1,3),v(vn,Je.static_ltree),R(),1+fe+10-ae<9&&(Re(Ea<<1,3),v(vn,Je.static_ltree),R()),fe=7}function H(M,Y){let z,J,ne;if(e.dist_buf[ee]=M,e.lc_buf[ee]=Y&255,ee++,M===0?q[Y*2]++:(Z++,M--,q[(Le._length_code[Y]+ei+1)*2]++,W[Le.d_code(M)*2]++),!(ee&8191)&&S>2){for(z=ee*8,J=$-b,ne=0;ne<ro;ne++)z+=W[ne*2]*(5+Le.extra_dbits[ne]);if(z>>>=3,Z<Math.floor(ee/2)&&z<Math.floor(J/2))return!0}return ee==Q-1}function K(M,Y){let z,J,ne=0,le,de;if(ee!==0)do z=e.dist_buf[ne],J=e.lc_buf[ne],ne++,z===0?v(J,M):(le=Le._length_code[J],v(le+ei+1,M),de=Le.extra_lbits[le],de!==0&&(J-=Le.base_length[le],Re(J,de)),z--,le=Le.d_code(z),v(le,Y),de=Le.extra_dbits[le],de!==0&&(z-=Le.base_dist[le],Re(z,de)));while(ne<ee);v(vn,M),fe=M[vn*2+1]}function pe(){ae>8?Ce(ie):ae>0&&Ie(ie&255),ie=0,ae=0}function we(M,Y,z){pe(),fe=8,Ce(Y),Ce(~Y),e.pending_buf.set(l.subarray(M,M+Y),e.pending),e.pending+=Y}function he(M,Y,z){Re((K1<<1)+(z?1:0),3),we(M,Y)}function Ne(M,Y,z){let J,ne,le=0;S>0?(V.build_tree(e),se.build_tree(e),le=Et(),J=e.opt_len+3+7>>>3,ne=e.static_len+3+7>>>3,ne<=J&&(J=ne)):J=ne=Y+5,Y+4<=J&&M!=-1?he(M,Y,z):ne==J?(Re((Ea<<1)+(z?1:0),3),K(Je.static_ltree,Je.static_dtree)):(Re((X1<<1)+(z?1:0),3),d(V.max_code+1,se.max_code+1,le+1),K(q,W)),Te(),z&&pe()}function ue(M){Ne(b>=0?b:-1,$-b,M),b=$,t.flush_pending()}function yt(){let M,Y,z,J;do{if(J=p-E-$,J===0&&$===0&&E===0)J=s;else if(J==-1)J--;else if($>=s+s-wt){l.set(l.subarray(s,s+s),0),C-=s,$-=s,b-=s,M=g,z=M;do Y=h[--z]&65535,h[z]=Y>=s?Y-s:0;while(--M!==0);M=s,z=M;do Y=c[--z]&65535,c[z]=Y>=s?Y-s:0;while(--M!==0);J+=s}if(t.avail_in===0)return;M=t.read_buf(l,$+E,J),E+=M,E>=Ue&&(m=l[$]&255,m=(m<<w^l[$+1]&255)&y)}while(E<wt&&t.avail_in!==0)}function rt(M){let Y=65535,z;for(Y>i-5&&(Y=i-5);;){if(E<=1){if(yt(),E===0&&M==Qr)return St;if(E===0)break}if($+=E,E=0,z=b+Y,($===0||$>=z)&&(E=$-z,$=z,ue(!1),t.avail_out===0)||$-b>=s-wt&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?xn:St:M==ct?vs:_s}function Lt(M){let Y=L,z=$,J,ne,le=O;const de=$>s-wt?$-(s-wt):0;let Me=B;const ce=o,xe=$+Us;let j=l[z+le-1],oe=l[z+le];O>=F&&(Y>>=2),Me>E&&(Me=E);do if(J=M,!(l[J+le]!=oe||l[J+le-1]!=j||l[J]!=l[z]||l[++J]!=l[z+1])){z+=2,J++;do;while(l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&z<xe);if(ne=Us-(xe-z),z=xe-Us,ne>le){if(C=M,le=ne,ne>=Me)break;j=l[z+le-1],oe=l[z+le]}}while((M=c[M&ce]&65535)>de&&--Y!==0);return le<=E?le:E}function Oi(M){let Y=0,z;for(;;){if(E<wt){if(yt(),E<wt&&M==Qr)return St;if(E===0)break}if(E>=Ue&&(m=(m<<w^l[$+(Ue-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$),Y!==0&&($-Y&65535)<=s-wt&&D!=gs&&(A=Lt(Y)),A>=Ue)if(z=H($-C,A-Ue),E-=A,A<=P&&E>=Ue){A--;do $++,m=(m<<w^l[$+(Ue-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$;while(--A!==0);$++}else $+=A,A=0,m=l[$]&255,m=(m<<w^l[$+1]&255)&y;else z=H(0,l[$]&255),E--,$++;if(z&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?xn:St:M==ct?vs:_s}function nt(M){let Y=0,z,J;for(;;){if(E<wt){if(yt(),E<wt&&M==Qr)return St;if(E===0)break}if(E>=Ue&&(m=(m<<w^l[$+(Ue-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$),O=A,k=C,A=Ue-1,Y!==0&&O<P&&($-Y&65535)<=s-wt&&(D!=gs&&(A=Lt(Y)),A<=5&&(D==B1||A==Ue&&$-C>4096)&&(A=Ue-1)),O>=Ue&&A<=O){J=$+E-Ue,z=H($-1-k,O-Ue),E-=O-1,O-=2;do++$<=J&&(m=(m<<w^l[$+(Ue-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$);while(--O!==0);if(I=0,A=Ue-1,$++,z&&(ue(!1),t.avail_out===0))return St}else if(I!==0){if(z=H(0,l[$-1]&255),z&&ue(!1),$++,E--,t.avail_out===0)return St}else I=1,$++,E--}return I!==0&&(z=H(0,l[$-1]&255),I=0),ue(M==ct),t.avail_out===0?M==ct?xn:St:M==ct?vs:_s}function Wr(M){return M.total_in=M.total_out=0,M.msg=null,e.pending=0,e.pending_out=0,r=xs,a=Qr,Xe(),Se(),Ct}e.deflateInit=function(M,Y,z,J,ne,le){return J||(J=Pa),ne||(ne=Z1),le||(le=j1),M.msg=null,Y==ti&&(Y=6),ne<1||ne>G1||J!=Pa||z<9||z>15||Y<0||Y>9||le<0||le>gs?Ut:(M.dstate=e,n=z,s=1<<n,o=s-1,T=ne+7,g=1<<T,y=g-1,w=Math.floor((T+Ue-1)/Ue),l=new Uint8Array(s*2),c=[],h=[],Q=1<<ne+6,e.pending_buf=new Uint8Array(Q*4),i=Q*4,e.dist_buf=new Uint16Array(Q),e.lc_buf=new Uint8Array(Q),S=Y,D=le,Wr(M))},e.deflateEnd=function(){return r!=ka&&r!=xs&&r!=kn?Ut:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,h=null,c=null,l=null,e.dstate=null,r==xs?M1:Ct)},e.deflateParams=function(M,Y,z){let J=Ct;return Y==ti&&(Y=6),Y<0||Y>9||z<0||z>gs?Ut:(Ft[S].func!=Ft[Y].func&&M.total_in!==0&&(J=M.deflate(Of)),S!=Y&&(S=Y,P=Ft[S].max_lazy,F=Ft[S].good_length,B=Ft[S].nice_length,L=Ft[S].max_chain),D=z,J)},e.deflateSetDictionary=function(M,Y,z){let J=z,ne,le=0;if(!Y||r!=ka)return Ut;if(J<Ue)return Ct;for(J>s-wt&&(J=s-wt,le=z-J),l.set(Y.subarray(le,le+J),0),$=J,b=J,m=l[0]&255,m=(m<<w^l[1]&255)&y,ne=0;ne<=J-Ue;ne++)m=(m<<w^l[ne+(Ue-1)]&255)&y,c[ne&o]=h[m],h[m]=ne;return Ct},e.deflate=function(M,Y){let z,J,ne,le,de;if(Y>ct||Y<0)return Ut;if(!M.next_out||!M.next_in&&M.avail_in!==0||r==kn&&Y!=ct)return M.msg=bs[ws-Ut],Ut;if(M.avail_out===0)return M.msg=bs[ws-Zr],Zr;if(t=M,le=a,a=Y,r==ka&&(J=Pa+(n-8<<4)<<8,ne=(S-1&255)>>1,ne>3&&(ne=3),J|=ne<<6,$!==0&&(J|=Y1),J+=31-J%31,r=xs,pt(J)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}else if(t.avail_in===0&&Y<=le&&Y!=ct)return t.msg=bs[ws-Zr],Zr;if(r==kn&&t.avail_in!==0)return M.msg=bs[ws-Zr],Zr;if(t.avail_in!==0||E!==0||Y!=Qr&&r!=kn){switch(de=-1,Ft[S].func){case mu:de=rt(Y);break;case Ds:de=Oi(Y);break;case Pr:de=nt(Y);break}if((de==xn||de==vs)&&(r=kn),de==St||de==xn)return t.avail_out===0&&(a=-1),Ct;if(de==_s){if(Y==Of)N();else if(he(0,0,!1),Y==q1)for(z=0;z<g;z++)h[z]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}}return Y!=ct?Ct:hu}}function yu(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}yu.prototype={deflateInit(e,t){const r=this;return r.dstate=new J1,t||(t=Hn),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Ut},deflateEnd(){const e=this;if(!e.dstate)return Ut;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const r=this;return r.dstate?r.dstate.deflateParams(r,e,t):Ut},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Ut},read_buf(e,t,r){const i=this;let a=i.avail_in;return a>r&&(a=r),a===0?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function Q1(e){const t=this,r=new yu,i=ew(e&&e.chunkSize?e.chunkSize:64*1024),a=Qr,s=new Uint8Array(i);let n=e?e.level:ti;typeof n>"u"&&(n=ti),r.deflateInit(n),r.next_out=s,t.append=function(o,l){let p,c,h=0,m=0,g=0;const T=[];if(o.length){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,p=r.deflate(a),p!=Ct)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?T.push(new Uint8Array(s)):T.push(s.subarray(0,r.next_out_index))),g+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=h&&(l(r.next_in_index),h=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return T.length>1?(c=new Uint8Array(g),T.forEach(function(y){c.set(y,m),m+=y.length})):c=T[0]?new Uint8Array(T[0]):new Uint8Array,c}},t.flush=function(){let o,l,p=0,c=0;const h=[];do{if(r.next_out_index=0,r.avail_out=i,o=r.deflate(ct),o!=hu&&o!=Ct)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&h.push(s.slice(0,r.next_out_index)),c+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),l=new Uint8Array(c),h.forEach(function(m){l.set(m,p),p+=m.length}),l}}function ew(e){return e+5*(Math.floor(e/16383)+1)}const tw=15,ve=0,sr=1,rw=2,dt=-2,Fe=-3,$f=-4,ir=-5,_t=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],gu=1440,nw=0,sw=4,iw=9,aw=5,ow=[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],lw=[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],fw=[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],pw=[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],cw=[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],uw=[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],fr=15;function so(){const e=this;let t,r,i,a,s,n;function o(p,c,h,m,g,T,y,w,b,A,k){let I,$,C,E,O,L,P,S,D,F,B,q,W,X,V;F=0,O=h;do i[p[c+F]]++,F++,O--;while(O!==0);if(i[0]==h)return y[0]=-1,w[0]=0,ve;for(S=w[0],L=1;L<=fr&&i[L]===0;L++);for(P=L,S<L&&(S=L),O=fr;O!==0&&i[O]===0;O--);for(C=O,S>O&&(S=O),w[0]=S,X=1<<L;L<O;L++,X<<=1)if((X-=i[L])<0)return Fe;if((X-=i[O])<0)return Fe;for(i[O]+=X,n[1]=L=0,F=1,W=2;--O!==0;)n[W]=L+=i[F],W++,F++;O=0,F=0;do(L=p[c+F])!==0&&(k[n[L]++]=O),F++;while(++O<h);for(h=n[C],n[0]=O=0,F=0,E=-1,q=-S,s[0]=0,B=0,V=0;P<=C;P++)for(I=i[P];I--!==0;){for(;P>q+S;){if(E++,q+=S,V=C-q,V=V>S?S:V,($=1<<(L=P-q))>I+1&&($-=I+1,W=P,L<V))for(;++L<V&&!(($<<=1)<=i[++W]);)$-=i[W];if(V=1<<L,A[0]+V>gu)return Fe;s[E]=B=A[0],A[0]+=V,E!==0?(n[E]=O,a[0]=L,a[1]=S,L=O>>>q-S,a[2]=B-s[E-1]-L,b.set(a,(s[E-1]+L)*3)):y[0]=B}for(a[1]=P-q,F>=h?a[0]=192:k[F]<m?(a[0]=k[F]<256?0:96,a[2]=k[F++]):(a[0]=T[k[F]-m]+16+64,a[2]=g[k[F++]-m]),$=1<<P-q,L=O>>>q;L<V;L+=$)b.set(a,(B+L)*3);for(L=1<<P-1;O&L;L>>>=1)O^=L;for(O^=L,D=(1<<q)-1;(O&D)!=n[E];)E--,q-=S,D=(1<<q)-1}return X!==0&&C!=1?ir:ve}function l(p){let c;for(t||(t=[],r=[],i=new Int32Array(fr+1),a=[],s=new Int32Array(fr),n=new Int32Array(fr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<fr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;s.set(i.subarray(0,fr),0),n.set(i.subarray(0,fr+1),0)}e.inflate_trees_bits=function(p,c,h,m,g){let T;return l(19),t[0]=0,T=o(p,0,19,19,null,null,h,c,m,t,r),T==Fe?g.msg="oversubscribed dynamic bit lengths tree":(T==ir||c[0]===0)&&(g.msg="incomplete dynamic bit lengths tree",T=Fe),T},e.inflate_trees_dynamic=function(p,c,h,m,g,T,y,w,b){let A;return l(288),t[0]=0,A=o(h,0,p,257,fw,pw,T,m,w,t,r),A!=ve||m[0]===0?(A==Fe?b.msg="oversubscribed literal/length tree":A!=$f&&(b.msg="incomplete literal/length tree",A=Fe),A):(l(288),A=o(h,p,c,0,cw,uw,y,g,w,t,r),A!=ve||g[0]===0&&p>257?(A==Fe?b.msg="oversubscribed distance tree":A==ir?(b.msg="incomplete distance tree",A=Fe):A!=$f&&(b.msg="empty distance tree with lengths",A=Fe),A):ve)}}so.inflate_trees_fixed=function(e,t,r,i){return e[0]=iw,t[0]=aw,r[0]=ow,i[0]=lw,ve};const ks=0,Rf=1,Lf=2,Ff=3,If=4,Cf=5,Df=6,Sa=7,Uf=8,Ps=9;function dw(){const e=this;let t,r=0,i,a=0,s=0,n=0,o=0,l=0,p=0,c=0,h,m=0,g,T=0;function y(w,b,A,k,I,$,C,E){let O,L,P,S,D,F,B,q,W,X,V,se,G,Q,ee,Z;B=E.next_in_index,q=E.avail_in,D=C.bitb,F=C.bitk,W=C.write,X=W<C.read?C.read-W-1:C.end-W,V=_t[w],se=_t[b];do{for(;F<20;)q--,D|=(E.read_byte(B++)&255)<<F,F+=8;if(O=D&V,L=A,P=k,Z=(P+O)*3,(S=L[Z])===0){D>>=L[Z+1],F-=L[Z+1],C.win[W++]=L[Z+2],X--;continue}do{if(D>>=L[Z+1],F-=L[Z+1],S&16){for(S&=15,G=L[Z+2]+(D&_t[S]),D>>=S,F-=S;F<15;)q--,D|=(E.read_byte(B++)&255)<<F,F+=8;O=D&se,L=I,P=$,Z=(P+O)*3,S=L[Z];do if(D>>=L[Z+1],F-=L[Z+1],S&16){for(S&=15;F<S;)q--,D|=(E.read_byte(B++)&255)<<F,F+=8;if(Q=L[Z+2]+(D&_t[S]),D>>=S,F-=S,X-=G,W>=Q)ee=W-Q,W-ee>0&&2>W-ee?(C.win[W++]=C.win[ee++],C.win[W++]=C.win[ee++],G-=2):(C.win.set(C.win.subarray(ee,ee+2),W),W+=2,ee+=2,G-=2);else{ee=W-Q;do ee+=C.end;while(ee<0);if(S=C.end-ee,G>S){if(G-=S,W-ee>0&&S>W-ee)do C.win[W++]=C.win[ee++];while(--S!==0);else C.win.set(C.win.subarray(ee,ee+S),W),W+=S,ee+=S,S=0;ee=0}}if(W-ee>0&&G>W-ee)do C.win[W++]=C.win[ee++];while(--G!==0);else C.win.set(C.win.subarray(ee,ee+G),W),W+=G,ee+=G,G=0;break}else if(!(S&64))O+=L[Z+2],O+=D&_t[S],Z=(P+O)*3,S=L[Z];else return E.msg="invalid distance code",G=E.avail_in-q,G=F>>3<G?F>>3:G,q+=G,B-=G,F-=G<<3,C.bitb=D,C.bitk=F,E.avail_in=q,E.total_in+=B-E.next_in_index,E.next_in_index=B,C.write=W,Fe;while(!0);break}if(S&64)return S&32?(G=E.avail_in-q,G=F>>3<G?F>>3:G,q+=G,B-=G,F-=G<<3,C.bitb=D,C.bitk=F,E.avail_in=q,E.total_in+=B-E.next_in_index,E.next_in_index=B,C.write=W,sr):(E.msg="invalid literal/length code",G=E.avail_in-q,G=F>>3<G?F>>3:G,q+=G,B-=G,F-=G<<3,C.bitb=D,C.bitk=F,E.avail_in=q,E.total_in+=B-E.next_in_index,E.next_in_index=B,C.write=W,Fe);if(O+=L[Z+2],O+=D&_t[S],Z=(P+O)*3,(S=L[Z])===0){D>>=L[Z+1],F-=L[Z+1],C.win[W++]=L[Z+2],X--;break}}while(!0)}while(X>=258&&q>=10);return G=E.avail_in-q,G=F>>3<G?F>>3:G,q+=G,B-=G,F-=G<<3,C.bitb=D,C.bitk=F,E.avail_in=q,E.total_in+=B-E.next_in_index,E.next_in_index=B,C.write=W,ve}e.init=function(w,b,A,k,I,$){t=ks,p=w,c=b,h=A,m=k,g=I,T=$,i=null},e.proc=function(w,b,A){let k,I,$,C=0,E=0,O=0,L,P,S,D;for(O=b.next_in_index,L=b.avail_in,C=w.bitb,E=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P;;)switch(t){case ks:if(S>=258&&L>=10&&(w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,A=y(p,c,h,m,g,T,w,b),O=b.next_in_index,L=b.avail_in,C=w.bitb,E=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P,A!=ve)){t=A==sr?Sa:Ps;break}s=p,i=h,a=m,t=Rf;case Rf:for(k=s;E<k;){if(L!==0)A=ve;else return w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);L--,C|=(b.read_byte(O++)&255)<<E,E+=8}if(I=(a+(C&_t[k]))*3,C>>>=i[I+1],E-=i[I+1],$=i[I],$===0){n=i[I+2],t=Df;break}if($&16){o=$&15,r=i[I+2],t=Lf;break}if(!($&64)){s=$,a=I/3+i[I+2];break}if($&32){t=Sa;break}return t=Ps,b.msg="invalid literal/length code",A=Fe,w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);case Lf:for(k=o;E<k;){if(L!==0)A=ve;else return w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);L--,C|=(b.read_byte(O++)&255)<<E,E+=8}r+=C&_t[k],C>>=k,E-=k,s=c,i=g,a=T,t=Ff;case Ff:for(k=s;E<k;){if(L!==0)A=ve;else return w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);L--,C|=(b.read_byte(O++)&255)<<E,E+=8}if(I=(a+(C&_t[k]))*3,C>>=i[I+1],E-=i[I+1],$=i[I],$&16){o=$&15,l=i[I+2],t=If;break}if(!($&64)){s=$,a=I/3+i[I+2];break}return t=Ps,b.msg="invalid distance code",A=Fe,w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);case If:for(k=o;E<k;){if(L!==0)A=ve;else return w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);L--,C|=(b.read_byte(O++)&255)<<E,E+=8}l+=C&_t[k],C>>=k,E-=k,t=Cf;case Cf:for(D=P-l;D<0;)D+=w.end;for(;r!==0;){if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,A=w.inflate_flush(b,A),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);w.win[P++]=w.win[D++],S--,D==w.end&&(D=0),r--}t=ks;break;case Df:if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,A=w.inflate_flush(b,A),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);A=ve,w.win[P++]=n,S--,t=ks;break;case Sa:if(E>7&&(E-=8,L++,O--),w.write=P,A=w.inflate_flush(b,A),P=w.write,S=P<w.read?w.read-P-1:w.end-P,w.read!=w.write)return w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);t=Uf;case Uf:return A=sr,w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);case Ps:return A=Fe,w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A);default:return A=dt,w.bitb=C,w.bitk=E,b.avail_in=L,b.total_in+=O-b.next_in_index,b.next_in_index=O,w.write=P,w.inflate_flush(b,A)}},e.free=function(){}}const Nf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Yr=0,Oa=1,Bf=2,jf=3,qf=4,Mf=5,Es=6,Ss=7,Wf=8,kr=9;function hw(e,t){const r=this;let i=Yr,a=0,s=0,n=0,o;const l=[0],p=[0],c=new dw;let h=0,m=new Int32Array(gu*3);const g=0,T=new so;r.bitk=0,r.bitb=0,r.win=new Uint8Array(t),r.end=t,r.read=0,r.write=0,r.reset=function(y,w){w&&(w[0]=g),i==Es&&c.free(y),i=Yr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(y,w){let b,A,k;return A=y.next_out_index,k=r.read,b=(k<=r.write?r.write:r.end)-k,b>y.avail_out&&(b=y.avail_out),b!==0&&w==ir&&(w=ve),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(k,k+b),A),A+=b,k+=b,k==r.end&&(k=0,r.write==r.end&&(r.write=0),b=r.write-k,b>y.avail_out&&(b=y.avail_out),b!==0&&w==ir&&(w=ve),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(k,k+b),A),A+=b,k+=b),y.next_out_index=A,r.read=k,w},r.proc=function(y,w){let b,A,k,I,$,C,E,O;for(I=y.next_in_index,$=y.avail_in,A=r.bitb,k=r.bitk,C=r.write,E=C<r.read?r.read-C-1:r.end-C;;){let L,P,S,D,F,B,q,W;switch(i){case Yr:for(;k<3;){if($!==0)w=ve;else return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);$--,A|=(y.read_byte(I++)&255)<<k,k+=8}switch(b=A&7,h=b&1,b>>>1){case 0:A>>>=3,k-=3,b=k&7,A>>>=b,k-=b,i=Oa;break;case 1:L=[],P=[],S=[[]],D=[[]],so.inflate_trees_fixed(L,P,S,D),c.init(L[0],P[0],S[0],0,D[0],0),A>>>=3,k-=3,i=Es;break;case 2:A>>>=3,k-=3,i=jf;break;case 3:return A>>>=3,k-=3,i=kr,y.msg="invalid block type",w=Fe,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w)}break;case Oa:for(;k<32;){if($!==0)w=ve;else return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);$--,A|=(y.read_byte(I++)&255)<<k,k+=8}if((~A>>>16&65535)!=(A&65535))return i=kr,y.msg="invalid stored block lengths",w=Fe,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);a=A&65535,A=k=0,i=a!==0?Bf:h!==0?Ss:Yr;break;case Bf:if($===0||E===0&&(C==r.end&&r.read!==0&&(C=0,E=C<r.read?r.read-C-1:r.end-C),E===0&&(r.write=C,w=r.inflate_flush(y,w),C=r.write,E=C<r.read?r.read-C-1:r.end-C,C==r.end&&r.read!==0&&(C=0,E=C<r.read?r.read-C-1:r.end-C),E===0)))return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);if(w=ve,b=a,b>$&&(b=$),b>E&&(b=E),r.win.set(y.read_buf(I,b),C),I+=b,$-=b,C+=b,E-=b,(a-=b)!==0)break;i=h!==0?Ss:Yr;break;case jf:for(;k<14;){if($!==0)w=ve;else return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);$--,A|=(y.read_byte(I++)&255)<<k,k+=8}if(s=b=A&16383,(b&31)>29||(b>>5&31)>29)return i=kr,y.msg="too many length or distance symbols",w=Fe,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);if(b=258+(b&31)+(b>>5&31),!o||o.length<b)o=[];else for(O=0;O<b;O++)o[O]=0;A>>>=14,k-=14,n=0,i=qf;case qf:for(;n<4+(s>>>10);){for(;k<3;){if($!==0)w=ve;else return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);$--,A|=(y.read_byte(I++)&255)<<k,k+=8}o[Nf[n++]]=A&7,A>>>=3,k-=3}for(;n<19;)o[Nf[n++]]=0;if(l[0]=7,b=T.inflate_trees_bits(o,l,p,m,y),b!=ve)return w=b,w==Fe&&(o=null,i=kr),r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);n=0,i=Mf;case Mf:for(;b=s,!(n>=258+(b&31)+(b>>5&31));){let X,V;for(b=l[0];k<b;){if($!==0)w=ve;else return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);$--,A|=(y.read_byte(I++)&255)<<k,k+=8}if(b=m[(p[0]+(A&_t[b]))*3+1],V=m[(p[0]+(A&_t[b]))*3+2],V<16)A>>>=b,k-=b,o[n++]=V;else{for(O=V==18?7:V-14,X=V==18?11:3;k<b+O;){if($!==0)w=ve;else return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);$--,A|=(y.read_byte(I++)&255)<<k,k+=8}if(A>>>=b,k-=b,X+=A&_t[O],A>>>=O,k-=O,O=n,b=s,O+X>258+(b&31)+(b>>5&31)||V==16&&O<1)return o=null,i=kr,y.msg="invalid bit length repeat",w=Fe,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);V=V==16?o[O-1]:0;do o[O++]=V;while(--X!==0);n=O}}if(p[0]=-1,F=[],B=[],q=[],W=[],F[0]=9,B[0]=6,b=s,b=T.inflate_trees_dynamic(257+(b&31),1+(b>>5&31),o,F,B,q,W,m,y),b!=ve)return b==Fe&&(o=null,i=kr),w=b,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);c.init(F[0],B[0],m,q[0],m,W[0]),i=Es;case Es:if(r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,(w=c.proc(r,y,w))!=sr)return r.inflate_flush(y,w);if(w=ve,c.free(y),I=y.next_in_index,$=y.avail_in,A=r.bitb,k=r.bitk,C=r.write,E=C<r.read?r.read-C-1:r.end-C,h===0){i=Yr;break}i=Ss;case Ss:if(r.write=C,w=r.inflate_flush(y,w),C=r.write,E=C<r.read?r.read-C-1:r.end-C,r.read!=r.write)return r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);i=Wf;case Wf:return w=sr,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);case kr:return w=Fe,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w);default:return w=dt,r.bitb=A,r.bitk=k,y.avail_in=$,y.total_in+=I-y.next_in_index,y.next_in_index=I,r.write=C,r.inflate_flush(y,w)}}},r.free=function(y){r.reset(y,null),r.win=null,m=null},r.set_dictionary=function(y,w,b){r.win.set(y.subarray(w,w+b),0),r.read=r.write=b},r.sync_point=function(){return i==Oa?1:0}}const mw=32,yw=8,gw=0,zf=1,Hf=2,Vf=3,Gf=4,Zf=5,Aa=6,Pn=7,Yf=12,pr=13,ww=[0,0,255,255];function bw(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(r){return!r||!r.istate?dt:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=Pn,r.istate.blocks.reset(r,null),ve)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,ve},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),dt):(e.wbits=i,r.istate.blocks=new hw(r,1<<i),t(r),ve)},e.inflate=function(r,i){let a,s;if(!r||!r.istate||!r.next_in)return dt;const n=r.istate;for(i=i==sw?ir:ve,a=ir;;)switch(n.mode){case gw:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((n.method=r.read_byte(r.next_in_index++))&15)!=yw){n.mode=pr,r.msg="unknown compression method",n.marker=5;break}if((n.method>>4)+8>n.wbits){n.mode=pr,r.msg="invalid win size",n.marker=5;break}n.mode=zf;case zf:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,s=r.read_byte(r.next_in_index++)&255,((n.method<<8)+s)%31!==0){n.mode=pr,r.msg="incorrect header check",n.marker=5;break}if(!(s&mw)){n.mode=Pn;break}n.mode=Hf;case Hf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,n.mode=Vf;case Vf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,n.mode=Gf;case Gf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,n.mode=Zf;case Zf:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,n.need+=r.read_byte(r.next_in_index++)&255,n.mode=Aa,rw);case Aa:return n.mode=pr,r.msg="need dictionary",n.marker=0,dt;case Pn:if(a=n.blocks.proc(r,a),a==Fe){n.mode=pr,n.marker=0;break}if(a==ve&&(a=i),a!=sr)return a;a=i,n.blocks.reset(r,n.was),n.mode=Yf;case Yf:return r.avail_in=0,sr;case pr:return Fe;default:return dt}},e.inflateSetDictionary=function(r,i,a){let s=0,n=a;if(!r||!r.istate||r.istate.mode!=Aa)return dt;const o=r.istate;return n>=1<<o.wbits&&(n=(1<<o.wbits)-1,s=a-n),o.blocks.set_dictionary(i,s,n),o.mode=Pn,ve},e.inflateSync=function(r){let i,a,s,n,o;if(!r||!r.istate)return dt;const l=r.istate;if(l.mode!=pr&&(l.mode=pr,l.marker=0),(i=r.avail_in)===0)return ir;for(a=r.next_in_index,s=l.marker;i!==0&&s<4;)r.read_byte(a)==ww[s]?s++:r.read_byte(a)!==0?s=0:s=4-s,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,l.marker=s,s!=4?Fe:(n=r.total_in,o=r.total_out,t(r),r.total_in=n,r.total_out=o,l.mode=Pn,ve)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?dt:r.istate.blocks.sync_point()}}function wu(){}wu.prototype={inflateInit(e){const t=this;return t.istate=new bw,e||(e=tw),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):dt},inflateEnd(){const e=this;if(!e.istate)return dt;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):dt},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):dt},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function _w(e){const t=this,r=new wu,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=nw,s=new Uint8Array(i);let n=!1;r.inflateInit(),r.next_out=s,t.append=function(o,l){const p=[];let c,h,m=0,g=0,T=0;if(o.length!==0){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,r.avail_in===0&&!n&&(r.next_in_index=0,n=!0),c=r.inflate(a),n&&c===ir){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==ve&&c!==sr)throw new Error("inflating: "+r.msg);if((n||c===sr)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(s)):p.push(s.subarray(0,r.next_out_index))),T+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=m&&(l(r.next_in_index),m=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return p.length>1?(h=new Uint8Array(T),p.forEach(function(y){h.set(y,g),g+=y.length})):h=p[0]?new Uint8Array(p[0]):new Uint8Array,h}},t.flush=function(){r.inflateEnd()}}const Lr=4294967295,mr=65535,vw=8,xw=0,kw=99,Pw=67324752,Ew=134695760,Kf=33639248,Sw=101010256,Xf=101075792,Ow=117853008,Kr=22,Ta=20,$a=56,Aw=1,Tw=39169,$w=10,Rw=1,Lw=21589,Fw=28789,Iw=25461,Cw=6534,Jf=1,Dw=6,Qf=8,ep=2048,tp=16,rp=16384,np=73,sp="/",ft=void 0,xr="undefined",os="function";class ip{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(s,n){n.enqueue(a.append(s))},flush(s){const n=a.flush();n&&s.enqueue(n)}})}}}}const Uw=64;let bu=2;try{typeof navigator!=xr&&navigator.hardwareConcurrency&&(bu=navigator.hardwareConcurrency)}catch{}const Nw={chunkSize:512*1024,maxWorkers:bu,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:ft,CompressionStreamNative:typeof CompressionStream!=xr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=xr&&DecompressionStream},yr=Object.assign({},Nw);function Bw(){return yr}function jw(e){return Math.max(e.chunkSize,Uw)}function Fo(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:s,useWebWorkers:n,Deflate:o,Inflate:l,CompressionStream:p,DecompressionStream:c,workerScripts:h}=e;if(cr("baseURL",t),cr("chunkSize",r),cr("maxWorkers",i),cr("terminateWorkerTimeout",a),cr("useCompressionStream",s),cr("useWebWorkers",n),o&&(yr.CompressionStream=new ip(o)),l&&(yr.DecompressionStream=new ip(l)),cr("CompressionStream",p),cr("DecompressionStream",c),h!==ft){const{deflate:m,inflate:g}=h;if((m||g)&&(yr.workerScripts||(yr.workerScripts={})),m){if(!Array.isArray(m))throw new Error("workerScripts.deflate must be an array");yr.workerScripts.deflate=m}if(g){if(!Array.isArray(g))throw new Error("workerScripts.inflate must be an array");yr.workerScripts.inflate=g}}}function cr(e,t){t!==ft&&(yr[e]=t)}const Ra={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 e={};for(const t of Object.keys(Ra))for(const r of Object.keys(Ra[t])){const i=Ra[t][r];if(typeof i=="string")e[i]=t+"/"+r;else for(let a=0;a<i.length;a++)e[i[a]]=t+"/"+r}return e})();const _u=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t=t>>>1;_u[e]=t}class ri{constructor(t){this.crc=t||-1}append(t){let r=this.crc|0;for(let i=0,a=t.length|0;i<a;i++)r=r>>>8^_u[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class vu extends TransformStream{constructor(){let t;const r=new ri;super({transform(i,a){r.append(i),a.enqueue(i)},flush(){const i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r.get()),t.value=i}}),t=this}}function qw(e){if(typeof TextEncoder==xr){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<t.length;r++)t[r]=e.charCodeAt(r);return t}else return new TextEncoder().encode(e)}const ot={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=ot.getPartial(r);return i===32?e.concat(t):ot._shiftRight(t,i,r|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const r=e[t-1];return(t-1)*32+ot.getPartial(r)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const r=e.length;return t=t&31,r>0&&t&&(e[r-1]=ot.partial(t,e[r-1]&2147483648>>t-1,1)),e},partial(e,t,r){return e===32?t:(r?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,r,i){for(i===void 0&&(i=[]);t>=32;t-=32)i.push(r),r=0;if(t===0)return i.concat(e);for(let n=0;n<e.length;n++)i.push(r|e[n]>>>t),r=e[n]<<32-t;const a=e.length?e[e.length-1]:0,s=ot.getPartial(a);return i.push(ot.partial(t+s&31,t+s>32?r:i.pop(),1)),i}},ni={bytes:{fromBits(e){const r=ot.bitLength(e)/8,i=new Uint8Array(r);let a;for(let s=0;s<r;s++)s&3||(a=e[s/4]),i[s]=a>>>24,a<<=8;return i},toBits(e){const t=[];let r,i=0;for(r=0;r<e.length;r++)i=i<<8|e[r],(r&3)===3&&(t.push(i),i=0);return r&3&&t.push(ot.partial(8*(r&3),i)),t}}},xu={};xu.sha1=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;typeof e=="string"&&(e=ni.utf8String.toBits(e));const r=t._buffer=ot.concat(t._buffer,e),i=t._length,a=t._length=i+ot.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let n=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(s.subarray(16*n,16*(n+1))),n+=1;return r.splice(0,16*n),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=ot.concat(t,[ot.partial(1,1)]);for(let i=t.length+2;i&15;i++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),r}_f(e,t,r,i){if(e<=19)return t&r|~t&i;if(e<=39)return t^r^i;if(e<=59)return t&r|t&i|r&i;if(e<=79)return t^r^i}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,r=t._h,i=Array(80);for(let p=0;p<16;p++)i[p]=e[p];let a=r[0],s=r[1],n=r[2],o=r[3],l=r[4];for(let p=0;p<=79;p++){p>=16&&(i[p]=t._S(1,i[p-3]^i[p-8]^i[p-14]^i[p-16]));const c=t._S(5,a)+t._f(p,s,n,o)+l+i[p]+t._key[Math.floor(p/20)]|0;l=o,o=n,n=t._S(30,s),s=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+l|0}};const ku={};ku.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const r=t._tables[0][4],i=t._tables[1],a=e.length;let s,n,o,l=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[n=e.slice(0),o=[]],s=a;s<4*a+28;s++){let p=n[s-1];(s%a===0||a===8&&s%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],s%a===0&&(p=p<<8^p>>>24^l<<24,l=l<<1^(l>>7)*283)),n[s]=n[s-a]^p}for(let p=0;s;p++,s--){const c=n[p&3?s:s-4];s<=4||p<4?o[p]=c:o[p]=i[0][r[c>>>24]]^i[1][r[c>>16&255]]^i[2][r[c>>8&255]]^i[3][r[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],r=e[4],i=t[4],a=[],s=[];let n,o,l,p;for(let c=0;c<256;c++)s[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=n=0;!r[c];c^=o||1,n=s[n]||1){let h=n^n<<1^n<<2^n<<3^n<<4;h=h>>8^h&255^99,r[c]=h,i[h]=c,p=a[l=a[o=a[c]]];let m=p*16843009^l*65537^o*257^c*16843008,g=a[h]*257^h*16843008;for(let T=0;T<4;T++)e[T][c]=g=g<<24^g>>>8,t[T][h]=m=m<<24^m>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),t[c]=t[c].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const r=this._key[t],i=r.length/4-2,a=[0,0,0,0],s=this._tables[t],n=s[0],o=s[1],l=s[2],p=s[3],c=s[4];let h=e[0]^r[0],m=e[t?3:1]^r[1],g=e[2]^r[2],T=e[t?1:3]^r[3],y=4,w,b,A;for(let k=0;k<i;k++)w=n[h>>>24]^o[m>>16&255]^l[g>>8&255]^p[T&255]^r[y],b=n[m>>>24]^o[g>>16&255]^l[T>>8&255]^p[h&255]^r[y+1],A=n[g>>>24]^o[T>>16&255]^l[h>>8&255]^p[m&255]^r[y+2],T=n[T>>>24]^o[h>>16&255]^l[m>>8&255]^p[g&255]^r[y+3],y+=4,h=w,m=b,g=A;for(let k=0;k<4;k++)a[t?3&-k:k]=c[h>>>24]<<24^c[m>>16&255]<<16^c[g>>8&255]<<8^c[T&255]^r[y++],w=h,h=m,m=g,g=T,T=w;return a}};const Mw={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const s=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&s,i=18e3*(i&65535)+(i>>16)&s,(((a<<16)+i&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const s=r((a||Math.random())*4294967296);a=s()*987654071,t[i/4]=s()*4294967296|0}return e}},Pu={};Pu.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,r=e>>8&255,i=e&255;t===255?(t=0,r===255?(r=0,i===255?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,r){let i;if(!(i=t.length))return[];const a=ot.bitLength(t);for(let s=0;s<i;s+=4){this.incCounter(r);const n=e.encrypt(r);t[s]^=n[0],t[s+1]^=n[1],t[s+2]^=n[2],t[s+3]^=n[3]}return ot.clamp(t,a)}};const jr={importKey(e){return new jr.hmacSha1(ni.bytes.toBits(e))},pbkdf2(e,t,r,i){if(r=r||1e4,i<0||r<0)throw new Error("invalid params to pbkdf2");const a=(i>>5)+1<<2;let s,n,o,l,p;const c=new ArrayBuffer(a),h=new DataView(c);let m=0;const g=ot;for(t=ni.bytes.toBits(t),p=1;m<(a||1);p++){for(s=n=e.encrypt(g.concat(t,[p])),o=1;o<r;o++)for(n=e.encrypt(n),l=0;l<n.length;l++)s[l]^=n[l];for(o=0;m<(a||1)&&o<s.length;o++)h.setInt32(m,s[o]),m+=4}return c.slice(0,i/8)}};jr.hmacSha1=class{constructor(e){const t=this,r=t._hash=xu.sha1,i=[[],[]];t._baseHash=[new r,new r];const a=t._baseHash[0].blockSize/32;e.length>a&&(e=new r().update(e).finalize());for(let s=0;s<a;s++)i[0][s]=e[s]^909522486,i[1][s]=e[s]^1549556828;t._baseHash[0].update(i[0]),t._baseHash[1].update(i[1]),t._resultHash=new r(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),r=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),r}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const Ww=typeof crypto!=xr&&typeof crypto.getRandomValues==os,Eu="Invalid password",Su="Invalid signature",Io="zipjs-abort-check-password";function Ou(e){return Ww?crypto.getRandomValues(e):Mw.getRandomValues(e)}const tn=16,zw="raw",Au={name:"PBKDF2"},Hw={name:"HMAC"},Vw="SHA-1",Gw=Object.assign({hash:Hw},Au),io=Object.assign({iterations:1e3,hash:{name:Vw}},Au),Zw=["deriveBits"],Vn=[8,12,16],En=[16,24,32],hr=10,Yw=[0,0,0,0],vi=typeof crypto!=xr,ls=vi&&crypto.subtle,Tu=vi&&typeof ls!=xr,Xt=ni.bytes,Kw=ku.aes,Xw=Pu.ctrGladman,Jw=jr.hmacSha1;let ap=vi&&Tu&&typeof ls.importKey==os,op=vi&&Tu&&typeof ls.deriveBits==os;class Qw extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:s}){super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:Lu(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(n,o){const l=this,{password:p,strength:c,resolveReady:h,ready:m}=l;p?(await tb(l,c,p,At(n,0,Vn[c]+2)),n=At(n,Vn[c]+2),s?o.error(new Error(Io)):h()):await m;const g=new Uint8Array(n.length-hr-(n.length-hr)%tn);o.enqueue($u(l,n,g,0,hr,!0))},async flush(n){const{signed:o,ctr:l,hmac:p,pending:c,ready:h}=this;if(p&&l){await h;const m=At(c,0,c.length-hr),g=At(c,c.length-hr);let T=new Uint8Array;if(m.length){const y=Zn(Xt,m);p.update(y);const w=l.update(y);T=Gn(Xt,w)}if(o){const y=At(Gn(Xt,p.digest()),0,hr);for(let w=0;w<hr;w++)if(y[w]!=g[w])throw new Error(Su)}n.enqueue(T)}}})}}class eb extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:Lu(t,r),strength:i-1,pending:new Uint8Array})},async transform(s,n){const o=this,{password:l,strength:p,resolveReady:c,ready:h}=o;let m=new Uint8Array;l?(m=await rb(o,p,l),c()):await h;const g=new Uint8Array(m.length+s.length-s.length%tn);g.set(m,0),n.enqueue($u(o,s,g,m.length,0))},async flush(s){const{ctr:n,hmac:o,pending:l,ready:p}=this;if(o&&n){await p;let c=new Uint8Array;if(l.length){const h=n.update(Zn(Xt,l));o.update(h),c=Gn(Xt,h)}a.signature=Gn(Xt,o.digest()).slice(0,hr),s.enqueue(Co(c,a.signature))}}}),a=this}}function $u(e,t,r,i,a,s){const{ctr:n,hmac:o,pending:l}=e,p=t.length-a;l.length&&(t=Co(l,t),r=ib(r,p-p%tn));let c;for(c=0;c<=p-tn;c+=tn){const h=Zn(Xt,At(t,c,c+tn));s&&o.update(h);const m=n.update(h);s||o.update(m),r.set(Gn(Xt,m),c+i)}return e.pending=At(t,c),r}async function tb(e,t,r,i){const a=await Ru(e,t,r,At(i,0,Vn[t])),s=At(i,Vn[t]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Eu)}async function rb(e,t,r){const i=Ou(new Uint8Array(Vn[t])),a=await Ru(e,t,r,i);return Co(i,a)}async function Ru(e,t,r,i){e.password=null;const a=await nb(zw,r,Gw,!1,Zw),s=await sb(Object.assign({salt:i},io),a,8*(En[t]*2+2)),n=new Uint8Array(s),o=Zn(Xt,At(n,0,En[t])),l=Zn(Xt,At(n,En[t],En[t]*2)),p=At(n,En[t]*2);return Object.assign(e,{keys:{key:o,authentication:l,passwordVerification:p},ctr:new Xw(new Kw(o),Array.from(Yw)),hmac:new Jw(l)}),p}async function nb(e,t,r,i,a){if(ap)try{return await ls.importKey(e,t,r,i,a)}catch{return ap=!1,jr.importKey(t)}else return jr.importKey(t)}async function sb(e,t,r){if(op)try{return await ls.deriveBits(e,t,r)}catch{return op=!1,jr.pbkdf2(t,e.salt,io.iterations,r)}else return jr.pbkdf2(t,e.salt,io.iterations,r)}function Lu(e,t){return t===ft?qw(e):t}function Co(e,t){let r=e;return e.length+t.length&&(r=new Uint8Array(e.length+t.length),r.set(e,0),r.set(t,e.length)),r}function ib(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function At(e,t,r){return e.subarray(t,r)}function Gn(e,t){return e.fromBits(t)}function Zn(e,t){return e.toBits(t)}const ln=12;class ab extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Fu(this,t)},transform(a,s){const n=this;if(n.password){const o=lp(n,a.subarray(0,ln));if(n.password=null,o[ln-1]!=n.passwordVerification)throw new Error(Eu);a=a.subarray(ln)}i?s.error(new Error(Io)):s.enqueue(lp(n,a))}})}}class ob extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Fu(this,t)},transform(i,a){const s=this;let n,o;if(s.password){s.password=null;const l=Ou(new Uint8Array(ln));l[ln-1]=s.passwordVerification,n=new Uint8Array(i.length+l.length),n.set(fp(s,l),0),o=ln}else n=new Uint8Array(i.length),o=0;n.set(fp(s,i),o),a.enqueue(n)}})}}function lp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Iu(e)^t[i],Do(e,r[i]);return r}function fp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Iu(e)^t[i],Do(e,t[i]);return r}function Fu(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new ri(r[0]),crcKey2:new ri(r[2])});for(let i=0;i<t.length;i++)Do(e,t.charCodeAt(i))}function Do(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=pp(Math.imul(pp(i+Cu(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function Iu(e){const t=e.keys[2]|2;return Cu(Math.imul(t,t^1)>>>8)}function Cu(e){return e&255}function pp(e){return e&4294967295}const cp="deflate-raw";class lb extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:s,encrypted:n,useCompressionStream:o,zipCrypto:l,signed:p,level:c}=t,h=this;let m,g,T=Du(super.readable);(!n||l)&&p&&(m=new vu,T=Jt(T,m)),s&&(T=Nu(T,o,{level:c,chunkSize:r},a,i)),n&&(l?T=Jt(T,new ob(t)):(g=new eb(t),T=Jt(T,g))),Uu(h,T,()=>{let y;n&&!l&&(y=g.signature),(!n||l)&&p&&(y=new DataView(m.value.buffer).getUint32(0)),h.signature=y})}}class fb extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:s,encrypted:n,signed:o,signature:l,compressed:p,useCompressionStream:c}=t;let h,m,g=Du(super.readable);n&&(s?g=Jt(g,new ab(t)):(m=new Qw(t),g=Jt(g,m))),p&&(g=Nu(g,c,{chunkSize:r},a,i)),(!n||s)&&o&&(h=new vu,g=Jt(g,h)),Uu(this,g,()=>{if((!n||s)&&o){const T=new DataView(h.value.buffer);if(l!=T.getUint32(0,!1))throw new Error(Su)}})}}function Du(e){return Jt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function Uu(e,t,r){t=Jt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Nu(e,t,r,i,a){try{const s=t&&i?i:a;e=Jt(e,new s(cp,r))}catch{if(t)try{e=Jt(e,new a(cp,r))}catch{return e}else return e}return e}function Jt(e,t){return e.pipeThrough(t)}const pb="message",cb="start",ub="pull",up="data",db="ack",dp="close",hb="deflate",Bu="inflate";class mb extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let s;a.startsWith(hb)?s=lb:a.startsWith(Bu)&&(s=fb);let n=0,o=0;const l=new s(t,r),p=super.readable,c=new TransformStream({transform(m,g){m&&m.length&&(o+=m.length,g.enqueue(m))},flush(){Object.assign(i,{inputSize:o})}}),h=new TransformStream({transform(m,g){m&&m.length&&(n+=m.length,g.enqueue(m))},flush(){const{signature:m}=l;Object.assign(i,{signature:m,outputSize:n,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(l).pipeThrough(h)}})}}class yb extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,s){if(r){const n=new Uint8Array(r.length+a.length);n.set(r),n.set(a,r.length),a=n,r=null}a.length>t?(s.enqueue(a.slice(0,t)),i(a.slice(t),s)):r=a}}}let ju=typeof Worker!=xr;class La{constructor(t,{readable:r,writable:i},{options:a,config:s,streamOptions:n,useWebWorkers:o,transferStreams:l,scripts:p},c){const{signal:h}=n;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new yb(s.chunkSize)).pipeThrough(new gb(r,n),{signal:h}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:l,terminate(){return new Promise(m=>{const{worker:g,busy:T}=t;g?(T?t.resolveTerminated=m:(g.terminate(),m()),t.interface=null):m()})},onTaskFinished(){const{resolveTerminated:m}=t;m&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),m()),t.busy=!1,c(t)}}),(o&&ju?wb:qu)(t,s)}}class gb extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:s}){let n=0;super({async start(){r&&await Fa(r,a)},async transform(o,l){n+=o.length,i&&await Fa(i,n,a),l.enqueue(o)},async flush(){t.size=n,s&&await Fa(s,n)}})}}async function Fa(e,...t){try{await e(...t)}catch{}}function qu(e,t){return{run:()=>bb(e,t)}}function wb(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=xb(e.scripts[0],r,e)}catch{return ju=!1,qu(e,t)}Object.assign(e,{worker:a,interface:{run:()=>_b(e,{chunkSize:i})}})}return e.interface}async function bb({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const s=new mb(e,a);await t.pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:n,inputSize:o,outputSize:l}=s;return{signature:n,inputSize:o,outputSize:l}}finally{i()}}async function _b(e,t){let r,i;const a=new Promise((m,g)=>{r=m,i=g});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:s,options:n,scripts:o}=e,{writable:l,closed:p}=vb(e.writable),c=Ns({type:cb,scripts:o.slice(1),options:n,config:t,readable:s,writable:l},e);c||Object.assign(e,{reader:s.getReader(),writer:l.getWriter()});const h=await a;return c||await l.getWriter().close(),await p,h}function vb(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const s=e.getWriter();await s.ready,await s.write(a),s.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let hp=!0,mp=!0;function xb(e,t,r){const i={type:"module"};let a,s;typeof e==os&&(e=e());try{a=new URL(e,t)}catch{a=e}if(hp)try{s=new Worker(a)}catch{hp=!1,s=new Worker(a,i)}else s=new Worker(a,i);return s.addEventListener(pb,n=>kb(n,r)),s}function Ns(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:s,readable:n,writable:o}=e,l=[];if(s&&(s.byteLength<s.buffer.byteLength?e.value=s.buffer.slice(0,s.byteLength):e.value=s.buffer,l.push(e.value)),a&&mp?(n&&l.push(n),o&&l.push(o)):e.readable=e.writable=null,l.length)try{return t.postMessage(e,l),!0}catch{mp=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(s){throw r&&r.releaseLock(),i(),s}}async function kb({data:e},t){const{type:r,value:i,messageId:a,result:s,error:n}=e,{reader:o,writer:l,resolveResult:p,rejectResult:c,onTaskFinished:h}=t;try{if(n){const{message:g,stack:T,code:y,name:w}=n,b=new Error(g);Object.assign(b,{stack:T,code:y,name:w}),m(b)}else{if(r==ub){const{value:g,done:T}=await o.read();Ns({type:up,value:g,done:T,messageId:a},t)}r==up&&(await l.ready,await l.write(new Uint8Array(i)),Ns({type:db,messageId:a},t)),r==dp&&m(null,s)}}catch(g){Ns({type:dp,messageId:a},t),m(g)}function m(g,T){g?c(g):p(T),l&&l.releaseLock(),h()}}let Or=[];const Ia=[];let yp=0;async function Pb(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:s,useCompressionStream:n,codecType:o,compressed:l,signed:p,encrypted:c}=r,{workerScripts:h,maxWorkers:m}=i;t.transferStreams=a||a===ft;const g=!l&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!g&&(s||s===ft&&i.useWebWorkers),t.scripts=t.useWebWorkers&&h?h[o]:[],r.useCompressionStream=n||n===ft&&i.useCompressionStream,(await T()).run();async function T(){const w=Or.find(b=>!b.busy);if(w)return gp(w),new La(w,e,t,y);if(Or.length<m){const b={indexWorker:yp};return yp++,Or.push(b),new La(b,e,t,y)}else return new Promise(b=>Ia.push({resolve:b,stream:e,workerOptions:t}))}function y(w){if(Ia.length){const[{resolve:b,stream:A,workerOptions:k}]=Ia.splice(0,1);b(new La(w,A,k,y))}else w.worker?(gp(w),Eb(w,t)):Or=Or.filter(b=>b!=w)}}function Eb(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Or=Or.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function gp(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function Sb(e,t={}){const r=`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={bytes:{p(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},m(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.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=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.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(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}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,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.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(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.R(I.bytes.m(e)),B(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.bytes.m(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)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)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.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[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.v=[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.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[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)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[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.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(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}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(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.R;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.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J: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,Y:n,Z: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.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J: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{Y:t,Z: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{Y:c,Z: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.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(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,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z: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.p(t)}function ae(e,t){return e.m(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,ee:new x(r[0]),te: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.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.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.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(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.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[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.ke=[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.ve=[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.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[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.Ce=[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.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[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._e=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.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=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.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,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.ue=e.we=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.Ke[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.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[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.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[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.Ke.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.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+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._e,Le.Be)):(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.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}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.We)return;e=t.je(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.We)}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.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=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.Fe=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.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,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].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(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.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=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.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){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.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?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.tt))return 0}return se(4==e),0===t.tt?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.tt)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.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=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.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);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.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=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.st=(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.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(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.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="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.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="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.nt,p=c.We,w=o.ot,h=o.ct,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.ft(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.ft(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.ft(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.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=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.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=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.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=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.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.wt(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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[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.wt(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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(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.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.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.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.dt(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.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.wt(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.it(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,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.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():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.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);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.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
|
|
90
|
-
`,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const Ob="Writer iterator completed too soon",Ab="Content-Type",Tb=64*1024,Mu="writable";class Uo{constructor(){this.size=0}init(){this.initialized=!0}}class Wu extends Uo{get readable(){const t=this,{chunkSize:r=Tb}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:s=0,size:n,diskNumberStart:o}=i,{chunkOffset:l}=this;a.enqueue(await et(t,s+l,Math.min(r,n-l),o)),l+r>n?a.close():this.chunkOffset+=r}});return i}}class ao extends Wu{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let n=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return n.byteLength>r&&(n=n.slice(t,a)),new Uint8Array(n)}}class $b extends Uo{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([Ab,t]),Object.defineProperty(r,Mu,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class Rb extends Wu{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:r}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(r.map(async(i,a)=>{await i.init(),a!=r.length-1&&(t.lastDiskOffset+=i.size),t.size+=i.size})),super.init()}async readUint8Array(t,r,i=0){const a=this,{readers:s}=this;let n,o=i;o==-1&&(o=s.length-1);let l=t;for(;l>=s[o].size;)l-=s[o].size,o++;const p=s[o],c=p.size;if(l+r<=c)n=await et(p,l,r);else{const h=c-l;n=new Uint8Array(r),n.set(await et(p,l,h)),n.set(await a.readUint8Array(t+h,r-h,i),h)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),n}}class wp extends Uo{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,s,n;const o=new WritableStream({async write(c){const{availableSize:h}=i;if(n)c.length>=h?(await l(c.slice(0,h)),await p(),i.diskOffset+=a.size,i.diskNumber++,n=null,await this.write(c.slice(h))):await l(c);else{const{value:m,done:g}=await t.next();if(g&&!m)throw new Error(Ob);a=m,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await si(a),s=m.writable,n=s.getWriter(),await this.write(c)}},async close(){await n.ready,await p()}});Object.defineProperty(i,Mu,{get(){return o}});async function l(c){const h=c.length;h&&(await n.ready,await n.write(c),a.size+=h,i.size+=h,i.availableSize-=h)}async function p(){s.size=a.size,await n.close()}}}async function si(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Lb(e){return Array.isArray(e)&&(e=new Rb(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Fb(e){e.writable===ft&&typeof e.next==os&&(e=new wp(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===ft&&(t.size=0),e instanceof wp||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function et(e,t,r,i){return e.readUint8Array(t,r,i)}const zu="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Ib=zu.length==256;function Cb(e){if(Ib){let t="";for(let r=0;r<e.length;r++)t+=zu[e[r]];return t}else return new TextDecoder().decode(e)}function Bs(e,t){return t&&t.trim().toLowerCase()=="cp437"?Cb(e):new TextDecoder(t).decode(e)}const Hu="filename",Vu="rawFilename",Gu="comment",Zu="rawComment",Yu="uncompressedSize",Ku="compressedSize",Xu="offset",oo="diskNumberStart",lo="lastModDate",fo="rawLastModDate",Ju="lastAccessDate",Db="rawLastAccessDate",Qu="creationDate",Ub="rawCreationDate",Nb="internalFileAttribute",Bb="internalFileAttributes",jb="externalFileAttribute",qb="externalFileAttributes",Mb="msDosCompatible",Wb="zip64",zb="encrypted",Hb="version",Vb="versionMadeBy",Gb="zipCrypto",Zb="directory",Yb="executable",Kb=[Hu,Vu,Ku,Yu,lo,fo,Gu,Zu,Ju,Qu,Xu,oo,oo,Nb,Bb,jb,qb,Mb,Wb,zb,Hb,Vb,Gb,Zb,Yb,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class bp{constructor(t){Kb.forEach(r=>this[r]=t[r])}}const Ca="File format is not recognized",Xb="End of central directory not found",Jb="End of Zip64 central directory locator not found",Qb="Central directory header not found",e_="Local file header not found",t_="Zip64 extra field not found",r_="File contains encrypted entry",n_="Encryption method not supported",_p="Compression method not supported",vp="Split zip file",xp="utf-8",kp="cp437",s_=[[Yu,Lr],[Ku,Lr],[Xu,Lr],[oo,mr]],i_={[mr]:{getValue:je,bytes:4},[Lr]:{getValue:js,bytes:8}};class Pp{constructor(t,r={}){Object.assign(this,{reader:Lb(t),options:r,config:Bw()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await si(i),(i.size===ft||!i.readUint8Array)&&(i=new ao(await new Response(i.readable).blob()),await si(i)),i.size<Kr)throw new Error(Ca);i.chunkSize=jw(a);const s=await c_(i,Sw,i.size,Kr,mr*16);if(!s){const P=await et(i,0,4),S=Ye(P);throw je(S)==Ew?new Error(vp):new Error(Xb)}const n=Ye(s);let o=je(n,12),l=je(n,16);const p=s.offset,c=Ze(n,20),h=p+Kr+c;let m=Ze(n,4);const g=i.lastDiskNumber||0;let T=Ze(n,6),y=Ze(n,8),w=0,b=0;if(l==Lr||o==Lr||y==mr||T==mr){const P=await et(i,s.offset-Ta,Ta),S=Ye(P);if(je(S,0)==Ow){l=js(S,8);let D=await et(i,l,$a,-1),F=Ye(D);const B=s.offset-Ta-$a;if(je(F,0)!=Xf&&l!=B){const q=l;l=B,w=l-q,D=await et(i,l,$a,-1),F=Ye(D)}if(je(F,0)!=Xf)throw new Error(Jb);m==mr&&(m=je(F,16)),T==mr&&(T=je(F,20)),y==mr&&(y=js(F,32)),o==Lr&&(o=js(F,40)),l-=o}}if(l>=i.size&&(w=i.size-l-o-Kr,l=i.size-o-Kr),g!=m)throw new Error(vp);if(l<0)throw new Error(Ca);let A=0,k=await et(i,l,o,T),I=Ye(k);if(o){const P=s.offset-o;if(je(I,A)!=Kf&&l!=P){const S=l;l=P,w+=l-S,k=await et(i,l,o,T),I=Ye(k)}}const $=s.offset-l-(i.lastDiskOffset||0);if(o!=$&&$>=0&&(o=$,k=await et(i,l,o,T),I=Ye(k)),l<0||l>=i.size)throw new Error(Ca);const C=it(r,t,"filenameEncoding"),E=it(r,t,"commentEncoding");for(let P=0;P<y;P++){const S=new a_(i,a,r.options);if(je(I,A)!=Kf)throw new Error(Qb);ed(S,I,A+6);const D=!!S.bitFlag.languageEncodingFlag,F=A+46,B=F+S.filenameLength,q=B+S.extraFieldLength,W=Ze(I,A+4),X=W>>8==0,V=W>>8==3,se=k.subarray(F,B),G=Ze(I,A+32),Q=q+G,ee=k.subarray(q,Q),Z=D,fe=D,ie=je(I,A+38),ae=X&&(fn(I,A+38)&tp)==tp||V&&(ie>>16&rp)==rp||se.length&&se[se.length-1]==sp.charCodeAt(0),Se=V&&(ie>>16&np)==np,Te=je(I,A+42)+w;Object.assign(S,{versionMadeBy:W,msDosCompatible:X,compressedSize:0,uncompressedSize:0,commentLength:G,directory:ae,offset:Te,diskNumberStart:Ze(I,A+34),internalFileAttributes:Ze(I,A+36),externalFileAttributes:ie,rawFilename:se,filenameUTF8:Z,commentUTF8:fe,rawExtraField:k.subarray(B,q),executable:Se}),S.internalFileAttribute=S.internalFileAttributes,S.externalFileAttribute=S.externalFileAttributes;const Xe=it(r,t,"decodeText")||Bs,tt=Z?xp:C||kp,Et=fe?xp:E||kp;let Ie=Xe(se,tt);Ie===ft&&(Ie=Bs(se,tt));let Ce=Xe(ee,Et);Ce===ft&&(Ce=Bs(ee,Et)),Object.assign(S,{rawComment:ee,filename:Ie,comment:Ce,directory:ae||Ie.endsWith(sp)}),b=Math.max(Te,b),td(S,S,I,A+6),S.zipCrypto=S.encrypted&&!S.extraFieldAES;const pt=new bp(S);pt.getData=(v,u)=>S.getData(v,pt,u),A=Q;const{onprogress:Re}=t;if(Re)try{await Re(P+1,y,new bp(S))}catch{}yield pt}const O=it(r,t,"extractPrependedData"),L=it(r,t,"extractAppendedData");return O&&(r.prependedData=b>0?await et(i,0,b):new Uint8Array),r.comment=c?await et(i,p+Kr,c):new Uint8Array,L&&(r.appendedData=h<i.size?await et(i,h,i.size-h):new Uint8Array),!0}async getEntries(t={}){const r=[];for await(const i of this.getEntriesGenerator(t))r.push(i);return r}async close(){}}class a_{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:s,offset:n,diskNumberStart:o,extraFieldAES:l,compressionMethod:p,config:c,bitFlag:h,signature:m,rawLastModDate:g,uncompressedSize:T,compressedSize:y}=a,w=r.localDirectory={},b=await et(s,n,30,o),A=Ye(b);let k=it(a,i,"password"),I=it(a,i,"rawPassword");const $=it(a,i,"passThrough");if(k=k&&k.length&&k,I=I&&I.length&&I,l&&l.originalCompressionMethod!=kw)throw new Error(_p);if(p!=xw&&p!=vw&&!$)throw new Error(_p);if(je(A,0)!=Pw)throw new Error(e_);ed(w,A,4),w.rawExtraField=w.extraFieldLength?await et(s,n+30+w.filenameLength,w.extraFieldLength,o):new Uint8Array,td(a,w,A,4,!0),Object.assign(r,{lastAccessDate:w.lastAccessDate,creationDate:w.creationDate});const C=a.encrypted&&w.encrypted&&!$,E=C&&!l;if($||(r.zipCrypto=E),C){if(!E&&l.strength===ft)throw new Error(n_);if(!k&&!I)throw new Error(r_)}const O=n+30+w.filenameLength+w.extraFieldLength,L=y,P=s.readable;Object.assign(P,{diskNumberStart:o,offset:O,size:L});const S=it(a,i,"signal"),D=it(a,i,"checkPasswordOnly");D&&(t=new WritableStream),t=Fb(t),await si(t,$?y:T);const{writable:F}=t,{onstart:B,onprogress:q,onend:W}=i,X={options:{codecType:Bu,password:k,rawPassword:I,zipCrypto:E,encryptionStrength:l&&l.strength,signed:it(a,i,"checkSignature")&&!$,passwordVerification:E&&(h.dataDescriptor?g>>>8&255:m>>>24&255),signature:m,compressed:p!=0&&!$,encrypted:a.encrypted&&!$,useWebWorkers:it(a,i,"useWebWorkers"),useCompressionStream:it(a,i,"useCompressionStream"),transferStreams:it(a,i,"transferStreams"),checkPasswordOnly:D},config:c,streamOptions:{signal:S,size:L,onstart:B,onprogress:q,onend:W}};let V=0;try{({outputSize:V}=await Pb({readable:P,writable:F},X))}catch(se){if(!D||se.message!=Io)throw se}finally{const se=it(a,i,"preventClose");F.size+=V,!se&&!F.locked&&await F.getWriter().close()}return D?ft:t.getData?t.getData():F}}function ed(e,t,r){const i=e.rawBitFlag=Ze(t,r+2),a=(i&Jf)==Jf,s=je(t,r+6);Object.assign(e,{encrypted:a,version:Ze(t,r),bitFlag:{level:(i&Dw)>>1,dataDescriptor:(i&Qf)==Qf,languageEncodingFlag:(i&ep)==ep},rawLastModDate:s,lastModDate:u_(s),filenameLength:Ze(t,r+22),extraFieldLength:Ze(t,r+24)})}function td(e,t,r,i,a){const{rawExtraField:s}=t,n=t.extraField=new Map,o=Ye(new Uint8Array(s));let l=0;try{for(;l<s.length;){const b=Ze(o,l),A=Ze(o,l+2);n.set(b,{type:b,data:s.slice(l+4,l+4+A)}),l+=4+A}}catch{}const p=Ze(r,i+4);Object.assign(t,{signature:je(r,i+10),uncompressedSize:je(r,i+18),compressedSize:je(r,i+14)});const c=n.get(Aw);c&&(o_(c,t),t.extraFieldZip64=c);const h=n.get(Fw);h&&(Ep(h,Hu,Vu,t,e),t.extraFieldUnicodePath=h);const m=n.get(Iw);m&&(Ep(m,Gu,Zu,t,e),t.extraFieldUnicodeComment=m);const g=n.get(Tw);g?(l_(g,t,p),t.extraFieldAES=g):t.compressionMethod=p;const T=n.get($w);T&&(f_(T,t),t.extraFieldNTFS=T);const y=n.get(Lw);y&&(p_(y,t,a),t.extraFieldExtendedTimestamp=y);const w=n.get(Cw);w&&(t.extraFieldUSDZ=w)}function o_(e,t){t.zip64=!0;const r=Ye(e.data),i=s_.filter(([a,s])=>t[a]==s);for(let a=0,s=0;a<i.length;a++){const[n,o]=i[a];if(t[n]==o){const l=i_[o];t[n]=e[n]=l.getValue(r,s),s+=l.bytes}else if(e[n])throw new Error(t_)}}function Ep(e,t,r,i,a){const s=Ye(e.data),n=new ri;n.append(a[r]);const o=Ye(new Uint8Array(4));o.setUint32(0,n.get(),!0);const l=je(s,1);Object.assign(e,{version:fn(s,0),[t]:Bs(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&l==je(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function l_(e,t,r){const i=Ye(e.data),a=fn(i,4);Object.assign(e,{vendorVersion:fn(i,0),vendorId:fn(i,2),strength:a,originalCompressionMethod:r,compressionMethod:Ze(i,5)}),t.compressionMethod=e.compressionMethod}function f_(e,t){const r=Ye(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const s=Ze(r,i),n=Ze(r,i+2);s==Rw&&(a=e.data.slice(i+4,i+4+n)),i+=4+n}}catch{}try{if(a&&a.length==24){const s=Ye(a),n=s.getBigUint64(0,!0),o=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:n,rawLastAccessDate:o,rawCreationDate:l});const p=Da(n),c=Da(o),h=Da(l),m={lastModDate:p,lastAccessDate:c,creationDate:h};Object.assign(e,m),Object.assign(t,m)}}catch{}}function p_(e,t,r){const i=Ye(e.data),a=fn(i,0),s=[],n=[];r?((a&1)==1&&(s.push(lo),n.push(fo)),(a&2)==2&&(s.push(Ju),n.push(Db)),(a&4)==4&&(s.push(Qu),n.push(Ub))):e.data.length>=5&&(s.push(lo),n.push(fo));let o=1;s.forEach((l,p)=>{if(e.data.length>=o+4){const c=je(i,o);t[l]=e[l]=new Date(c*1e3);const h=n[p];e[h]=c}o+=4})}async function c_(e,t,r,i,a){const s=new Uint8Array(4),n=Ye(s);d_(n,0,t);const o=i+a;return await l(i)||await l(Math.min(o,r));async function l(p){const c=r-p,h=await et(e,c,p);for(let m=h.length-i;m>=0;m--)if(h[m]==s[0]&&h[m+1]==s[1]&&h[m+2]==s[2]&&h[m+3]==s[3])return{offset:c+m,buffer:h.slice(m,m+i).buffer}}}function it(e,t,r){return t[r]===ft?e.options[r]:t[r]}function u_(e){const t=(e&4294901760)>>16,r=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(r&63488)>>11,(r&2016)>>5,(r&31)*2,0)}catch{}}function Da(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function fn(e,t){return e.getUint8(t)}function Ze(e,t){return e.getUint16(t,!0)}function je(e,t){return e.getUint32(t,!0)}function js(e,t){return Number(e.getBigUint64(t,!0))}function d_(e,t,r){e.setUint32(t,r,!0)}function Ye(e){return new DataView(e.buffer)}let rd;try{rd=typeof document>"u"?require("url").pathToFileURL(__filename).href:rn&&rn.tagName.toUpperCase()==="SCRIPT"&&rn.src||new URL("index.cjs",document.baseURI).href}catch{}Fo({baseURL:rd});Sb(Fo);Fo({Deflate:Q1,Inflate:_w});class h_{constructor(t){this.fileTree=t}async read(t){let r=this.getEntryAtPath(t);if(typeof r=="string")r=new TextEncoder().encode(r);else if(!(r instanceof Uint8Array))throw new Error(`Unsupported content type: ${typeof r}`);const i=new ReadableStream({start(a){a.enqueue(r),a.close()}});return new Ir(i,t,{filesize:r.byteLength})}getEntryAtPath(t){let r=t.replace(/^\//,""),i=this.fileTree;for(;r;){if(i[r])return i[r];const a=r.split("/"),s=a.shift();if(!s||!i[s])break;i=i[s],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class ii{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new Pp(new ao(new Ir(t,"archive.zip")));return new ii(r)}static fromArrayBuffer(t){const r=new Pp(new ao(new Blob([t])));return new ii(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new $b);return new Ir(i.stream(),t,{filesize:r.uncompressedSize})}async getEntry(t){const i=(await this.getEntries()).get(t.replace(/^\//,""));if(!i)throw new Error(`File ${t} not found in the zip.`);return i}async getEntries(){if(this.entries.size===0){const t=await this.zipReader.getEntries();for(const r of t)this.entries.set(r.filename,r)}return this.entries}}class m_{constructor(t){if(!t.length)throw new Error("OverlayFilesystem requires at least one filesystem");this.filesystems=t}async read(t){const r=[];for(const a of this.filesystems)try{return await a.read(t)}catch(s){r.push(s instanceof Error?s:new Error(String(s)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class y_{constructor(t){if(this.baseUrl="",this.options=t,this.isDataUrl=t.baseUrl.startsWith("data:"),this.isDataUrl)return;const r=new URL("./",t.baseUrl);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Unsupported protocol: "+r.protocol+". Only HTTP and HTTPS are supported.");this.baseUrl=r.origin+r.pathname}async read(t){if(this.isDataUrl)throw new Error("FetchFilesystem cannot fetch files from data URLs");t=fi(t);const r=t.replace(/^\//,""),i=new URL(r,this.baseUrl).toString();if(!i.startsWith(this.baseUrl))throw new Error(`Refused to read a file outside of the base URL: ${i}`);const a=this.options.corsProxy?`${this.options.corsProxy}${encodeURIComponent(i)}`:i,s=await fetch(a);if(!s.ok)throw new Error(`Failed to fetch file at ${t}: ${s.statusText}`);const n=s.headers.get("content-length")?parseInt(s.headers.get("content-length"),10):void 0;return new Ir(s.body,t,{filesize:n})}}function xi(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}async function ai(e,t){let r;return["GET","HEAD"].includes(e.method)||"body"in t?r=void 0:!e.bodyUsed&&e.body?r=e.body:r=await e.arrayBuffer(),new Request(t.url||e.url,{body:r,method:e.method,headers:e.headers,referrer:e.referrer,referrerPolicy:e.referrerPolicy,mode:e.mode==="navigate"?"same-origin":e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,integrity:e.integrity,...r&&{duplex:"half"},...t})}async function g_(e){if(!e.body)return[e,e];const[t,r]=e.body.tee();return[await ai(e,{body:t,duplex:"half"}),await ai(e,{body:r,duplex:"half"})]}class w_ extends Error{constructor(t,r,i){super(`Could not fetch ${t} – your network appears to be blocking this request (HTTP ${r}). This often happens on school, university, or corporate networks. Try switching to a different network or using a VPN.`),this.name="FirewallInterferenceError",this.url=t,this.status=r,this.statusText=i}}const b_="X-Playground-Cors-Proxy";async function __(e,t,r,i){var c;let a=typeof e=="string"?new Request(e,t):e;const s=i?new URL(i):null;let n=s?new URL(a.url,s):new URL(a.url);if(n.hostname==="localhost"||n.hostname==="127.0.0.1"||n.hostname==="[::1]"||n.hostname==="::1")return await fetch(a);if(n.protocol==="http:"){n.protocol="https:";const h=n.toString();a=await ai(a,{url:h}),n=new URL(h)}if(!r)return await fetch(a);if(s&&n.protocol===s.protocol&&n.hostname===s.hostname&&n.port===s.port&&n.pathname.startsWith(s.pathname))return await fetch(a);const[l,p]=await g_(a);try{return await fetch(l)}catch{const m=((c=new Headers(p.headers).get("x-cors-proxy-allowed-request-headers"))==null?void 0:c.split(","))||[],g=m.includes("authorization")||m.includes("cookie"),T=await ai(p,{url:`${r}${a.url}`,...g&&{credentials:"include"}}),y=await fetch(T,t);if(!y.headers.has(b_))throw new w_(a.url,y.status,y.statusText);return y}}const v_=`Blueprint resource of type "bundled" requires a filesystem.
|
|
89
|
+
`),Object.assign(o,await U1(a));const p=new Sr;for(const[h,m]of Object.entries(s)){const g=h.substring(n.length).replace(/^\/+/,"");p.insert({filepath:g,oid:m,stats:{ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:33188,uid:0,gid:0,size:0}})}const c=await p.toObject();return o[".git/index"]=Uint8Array.from(c),o}function W1(e,t){t=ui(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const n=t.split("/");for(const o of n){const l=i==null?void 0:i.find(p=>p.name===o);if((l==null?void 0:l.type)==="folder")i=l.children;else return l?[l.name]:[]}}const a=[],s=[{tree:i,path:t}];for(;s.length>0;){const{tree:n,path:o}=s.pop();for(const l of n){const p=`${o}${o?"/":""}${l.name}`;l.type==="folder"?s.push({tree:l.children,path:p}):a.push(p)}}return a}const Zn=15,io=30,ao=19,z1=29,ri=256,Co=ri+1+z1,$f=2*Co+1,kn=256,H1=7,Rf=16,Ff=17,If=18,Ea=8*2,ni=-1,V1=1,bs=2,Z1=0,en=0,Lf=1,G1=3,ct=4,Ct=0,vu=1,_s=2,Nt=-2,Y1=-3,Yr=-5;function xi(e){return ki(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function ki(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?ki(r):r),[])}const Cf=[0,1,2,3].concat(...xi([[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 Fe(){const e=this;function t(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,p=e.stat_desc.max_length;let c,h,m,g,A,y,w=0;for(g=0;g<=Zn;g++)a.bl_count[g]=0;for(s[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<$f;c++)h=a.heap[c],g=s[s[h*2+1]*2+1]+1,g>p&&(g=p,w++),s[h*2+1]=g,!(h>e.max_code)&&(a.bl_count[g]++,A=0,h>=l&&(A=o[h-l]),y=s[h*2],a.opt_len+=y*(g+A),n&&(a.static_len+=y*(n[h*2+1]+A)));if(w!==0){do{for(g=p-1;a.bl_count[g]===0;)g--;a.bl_count[g]--,a.bl_count[g+1]+=2,a.bl_count[p]--,w-=2}while(w>0);for(g=p;g!==0;g--)for(h=a.bl_count[g];h!==0;)m=a.heap[--c],!(m>e.max_code)&&(s[m*2+1]!=g&&(a.opt_len+=(g-s[m*2+1])*s[m*2],s[m*2+1]=g),h--)}}function r(a,s){let n=0;do n|=a&1,a>>>=1,n<<=1;while(--s>0);return n>>>1}function i(a,s,n){const o=[];let l=0,p,c,h;for(p=1;p<=Zn;p++)o[p]=l=l+n[p-1]<<1;for(c=0;c<=s;c++)h=a[c*2+1],h!==0&&(a[c*2]=r(o[h]++,h))}e.build_tree=function(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.elems;let l,p,c=-1,h;for(a.heap_len=0,a.heap_max=$f,l=0;l<o;l++)s[l*2]!==0?(a.heap[++a.heap_len]=c=l,a.depth[l]=0):s[l*2+1]=0;for(;a.heap_len<2;)h=a.heap[++a.heap_len]=c<2?++c:0,s[h*2]=1,a.depth[h]=0,a.opt_len--,n&&(a.static_len-=n[h*2+1]);for(e.max_code=c,l=Math.floor(a.heap_len/2);l>=1;l--)a.pqdownheap(s,l);h=o;do l=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(s,1),p=a.heap[1],a.heap[--a.heap_max]=l,a.heap[--a.heap_max]=p,s[h*2]=s[l*2]+s[p*2],a.depth[h]=Math.max(a.depth[l],a.depth[p])+1,s[l*2+1]=s[p*2+1]=h,a.heap[1]=h++,a.pqdownheap(s,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(s,e.max_code,a.bl_count)}}Fe._length_code=[0,1,2,3,4,5,6,7].concat(...xi([[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]]));Fe.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];Fe.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];Fe.d_code=function(e){return e<256?Cf[e]:Cf[256+(e>>>7)]};Fe.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];Fe.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];Fe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Fe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Je(e,t,r,i,a){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=r,s.elems=i,s.max_length=a}const K1=[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],X1=xi([[144,8],[112,9],[24,7],[8,8]]);Je.static_ltree=ki(K1.map((e,t)=>[e,X1[t]]));const J1=[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],Q1=xi([[30,5]]);Je.static_dtree=ki(J1.map((e,t)=>[e,Q1[t]]));Je.static_l_desc=new Je(Je.static_ltree,Fe.extra_lbits,ri+1,Co,Zn);Je.static_d_desc=new Je(Je.static_dtree,Fe.extra_dbits,0,io,Zn);Je.static_bl_desc=new Je(null,Fe.extra_blbits,0,ao,H1);const ew=9,tw=8;function zt(e,t,r,i,a){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=r,s.max_chain=i,s.func=a}const xu=0,js=1,Pr=2,It=[new zt(0,0,0,0,xu),new zt(4,4,8,4,js),new zt(4,5,16,8,js),new zt(4,6,32,32,js),new zt(4,4,16,16,Pr),new zt(8,16,32,32,Pr),new zt(8,16,128,128,Pr),new zt(8,32,128,256,Pr),new zt(32,128,258,1024,Pr),new zt(32,258,258,4096,Pr)],vs=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],St=0,xs=1,Pn=2,ks=3,rw=32,Sa=42,Ps=113,En=666,Ta=8,nw=0,Oa=1,sw=2,Ne=3,Us=258,wt=Us+Ne+1;function Df(e,t,r,i){const a=e[t*2],s=e[r*2];return a<s||a==s&&i[t]<=i[r]}function iw(){const e=this;let t,r,i,a,s,n,o,l,p,c,h,m,g,A,y,w,b,O,k,L,$,C,E,T,F,P,S,D,I,U,q,W,X;const V=new Fe,se=new Fe,Z=new Fe;e.depth=[];let Q,ee,G,fe,ie,ae;e.bl_count=[],e.heap=[],q=[],W=[],X=[];function Se(){p=2*s,h[g-1]=0;for(let M=0;M<g-1;M++)h[M]=0;P=It[S].max_lazy,I=It[S].good_length,U=It[S].nice_length,F=It[S].max_chain,$=0,b=0,E=0,O=T=Ne-1,L=0,m=0}function Ae(){let M;for(M=0;M<Co;M++)q[M*2]=0;for(M=0;M<io;M++)W[M*2]=0;for(M=0;M<ao;M++)X[M*2]=0;q[kn*2]=1,e.opt_len=e.static_len=0,ee=G=0}function Xe(){V.dyn_tree=q,V.stat_desc=Je.static_l_desc,se.dyn_tree=W,se.stat_desc=Je.static_d_desc,Z.dyn_tree=X,Z.stat_desc=Je.static_bl_desc,ie=0,ae=0,fe=8,Ae()}e.pqdownheap=function(M,Y){const z=e.heap,J=z[Y];let ne=Y<<1;for(;ne<=e.heap_len&&(ne<e.heap_len&&Df(M,z[ne+1],z[ne],e.depth)&&ne++,!Df(M,J,z[ne],e.depth));)z[Y]=z[ne],Y=ne,ne<<=1;z[Y]=J};function tt(M,Y){let z=-1,J,ne=M[0*2+1],le=0,de=7,Me=4;ne===0&&(de=138,Me=3),M[(Y+1)*2+1]=65535;for(let ce=0;ce<=Y;ce++)J=ne,ne=M[(ce+1)*2+1],!(++le<de&&J==ne)&&(le<Me?X[J*2]+=le:J!==0?(J!=z&&X[J*2]++,X[Rf*2]++):le<=10?X[Ff*2]++:X[If*2]++,le=0,z=J,ne===0?(de=138,Me=3):J==ne?(de=6,Me=3):(de=7,Me=4))}function Et(){let M;for(tt(q,V.max_code),tt(W,se.max_code),Z.build_tree(e),M=ao-1;M>=3&&X[Fe.bl_order[M]*2+1]===0;M--);return e.opt_len+=3*(M+1)+5+5+4,M}function Le(M){e.pending_buf[e.pending++]=M}function Ce(M){Le(M&255),Le(M>>>8&255)}function pt(M){Le(M>>8&255),Le(M&255&255)}function Re(M,Y){let z;const J=Y;ae>Ea-J?(z=M,ie|=z<<ae&65535,Ce(ie),ie=z>>>Ea-ae,ae+=J-Ea):(ie|=M<<ae&65535,ae+=J)}function v(M,Y){const z=M*2;Re(Y[z]&65535,Y[z+1]&65535)}function u(M,Y){let z,J=-1,ne,le=M[0*2+1],de=0,Me=7,ce=4;for(le===0&&(Me=138,ce=3),z=0;z<=Y;z++)if(ne=le,le=M[(z+1)*2+1],!(++de<Me&&ne==le)){if(de<ce)do v(ne,X);while(--de!==0);else ne!==0?(ne!=J&&(v(ne,X),de--),v(Rf,X),Re(de-3,2)):de<=10?(v(Ff,X),Re(de-3,3)):(v(If,X),Re(de-11,7));de=0,J=ne,le===0?(Me=138,ce=3):ne==le?(Me=6,ce=3):(Me=7,ce=4)}}function d(M,Y,z){let J;for(Re(M-257,5),Re(Y-1,5),Re(z-4,4),J=0;J<z;J++)Re(X[Fe.bl_order[J]*2+1],3);u(q,M-1),u(W,Y-1)}function R(){ae==16?(Ce(ie),ie=0,ae=0):ae>=8&&(Le(ie&255),ie>>>=8,ae-=8)}function j(){Re(Oa<<1,3),v(kn,Je.static_ltree),R(),1+fe+10-ae<9&&(Re(Oa<<1,3),v(kn,Je.static_ltree),R()),fe=7}function H(M,Y){let z,J,ne;if(e.dist_buf[ee]=M,e.lc_buf[ee]=Y&255,ee++,M===0?q[Y*2]++:(G++,M--,q[(Fe._length_code[Y]+ri+1)*2]++,W[Fe.d_code(M)*2]++),!(ee&8191)&&S>2){for(z=ee*8,J=$-b,ne=0;ne<io;ne++)z+=W[ne*2]*(5+Fe.extra_dbits[ne]);if(z>>>=3,G<Math.floor(ee/2)&&z<Math.floor(J/2))return!0}return ee==Q-1}function K(M,Y){let z,J,ne=0,le,de;if(ee!==0)do z=e.dist_buf[ne],J=e.lc_buf[ne],ne++,z===0?v(J,M):(le=Fe._length_code[J],v(le+ri+1,M),de=Fe.extra_lbits[le],de!==0&&(J-=Fe.base_length[le],Re(J,de)),z--,le=Fe.d_code(z),v(le,Y),de=Fe.extra_dbits[le],de!==0&&(z-=Fe.base_dist[le],Re(z,de)));while(ne<ee);v(kn,M),fe=M[kn*2+1]}function pe(){ae>8?Ce(ie):ae>0&&Le(ie&255),ie=0,ae=0}function we(M,Y,z){pe(),fe=8,Ce(Y),Ce(~Y),e.pending_buf.set(l.subarray(M,M+Y),e.pending),e.pending+=Y}function he(M,Y,z){Re((nw<<1)+(z?1:0),3),we(M,Y)}function je(M,Y,z){let J,ne,le=0;S>0?(V.build_tree(e),se.build_tree(e),le=Et(),J=e.opt_len+3+7>>>3,ne=e.static_len+3+7>>>3,ne<=J&&(J=ne)):J=ne=Y+5,Y+4<=J&&M!=-1?he(M,Y,z):ne==J?(Re((Oa<<1)+(z?1:0),3),K(Je.static_ltree,Je.static_dtree)):(Re((sw<<1)+(z?1:0),3),d(V.max_code+1,se.max_code+1,le+1),K(q,W)),Ae(),z&&pe()}function ue(M){je(b>=0?b:-1,$-b,M),b=$,t.flush_pending()}function yt(){let M,Y,z,J;do{if(J=p-E-$,J===0&&$===0&&E===0)J=s;else if(J==-1)J--;else if($>=s+s-wt){l.set(l.subarray(s,s+s),0),C-=s,$-=s,b-=s,M=g,z=M;do Y=h[--z]&65535,h[z]=Y>=s?Y-s:0;while(--M!==0);M=s,z=M;do Y=c[--z]&65535,c[z]=Y>=s?Y-s:0;while(--M!==0);J+=s}if(t.avail_in===0)return;M=t.read_buf(l,$+E,J),E+=M,E>=Ne&&(m=l[$]&255,m=(m<<w^l[$+1]&255)&y)}while(E<wt&&t.avail_in!==0)}function rt(M){let Y=65535,z;for(Y>i-5&&(Y=i-5);;){if(E<=1){if(yt(),E===0&&M==en)return St;if(E===0)break}if($+=E,E=0,z=b+Y,($===0||$>=z)&&(E=$-z,$=z,ue(!1),t.avail_out===0)||$-b>=s-wt&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?Pn:St:M==ct?ks:xs}function Ft(M){let Y=F,z=$,J,ne,le=T;const de=$>s-wt?$-(s-wt):0;let Me=U;const ce=o,xe=$+Us;let B=l[z+le-1],oe=l[z+le];T>=I&&(Y>>=2),Me>E&&(Me=E);do if(J=M,!(l[J+le]!=oe||l[J+le-1]!=B||l[J]!=l[z]||l[++J]!=l[z+1])){z+=2,J++;do;while(l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&l[++z]==l[++J]&&z<xe);if(ne=Us-(xe-z),z=xe-Us,ne>le){if(C=M,le=ne,ne>=Me)break;B=l[z+le-1],oe=l[z+le]}}while((M=c[M&ce]&65535)>de&&--Y!==0);return le<=E?le:E}function $i(M){let Y=0,z;for(;;){if(E<wt){if(yt(),E<wt&&M==en)return St;if(E===0)break}if(E>=Ne&&(m=(m<<w^l[$+(Ne-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$),Y!==0&&($-Y&65535)<=s-wt&&D!=bs&&(O=Ft(Y)),O>=Ne)if(z=H($-C,O-Ne),E-=O,O<=P&&E>=Ne){O--;do $++,m=(m<<w^l[$+(Ne-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$;while(--O!==0);$++}else $+=O,O=0,m=l[$]&255,m=(m<<w^l[$+1]&255)&y;else z=H(0,l[$]&255),E--,$++;if(z&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?Pn:St:M==ct?ks:xs}function nt(M){let Y=0,z,J;for(;;){if(E<wt){if(yt(),E<wt&&M==en)return St;if(E===0)break}if(E>=Ne&&(m=(m<<w^l[$+(Ne-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$),T=O,k=C,O=Ne-1,Y!==0&&T<P&&($-Y&65535)<=s-wt&&(D!=bs&&(O=Ft(Y)),O<=5&&(D==V1||O==Ne&&$-C>4096)&&(O=Ne-1)),T>=Ne&&O<=T){J=$+E-Ne,z=H($-1-k,T-Ne),E-=T-1,T-=2;do++$<=J&&(m=(m<<w^l[$+(Ne-1)]&255)&y,Y=h[m]&65535,c[$&o]=h[m],h[m]=$);while(--T!==0);if(L=0,O=Ne-1,$++,z&&(ue(!1),t.avail_out===0))return St}else if(L!==0){if(z=H(0,l[$-1]&255),z&&ue(!1),$++,E--,t.avail_out===0)return St}else L=1,$++,E--}return L!==0&&(z=H(0,l[$-1]&255),L=0),ue(M==ct),t.avail_out===0?M==ct?Pn:St:M==ct?ks:xs}function zr(M){return M.total_in=M.total_out=0,M.msg=null,e.pending=0,e.pending_out=0,r=Ps,a=en,Xe(),Se(),Ct}e.deflateInit=function(M,Y,z,J,ne,le){return J||(J=Ta),ne||(ne=tw),le||(le=Z1),M.msg=null,Y==ni&&(Y=6),ne<1||ne>ew||J!=Ta||z<9||z>15||Y<0||Y>9||le<0||le>bs?Nt:(M.dstate=e,n=z,s=1<<n,o=s-1,A=ne+7,g=1<<A,y=g-1,w=Math.floor((A+Ne-1)/Ne),l=new Uint8Array(s*2),c=[],h=[],Q=1<<ne+6,e.pending_buf=new Uint8Array(Q*4),i=Q*4,e.dist_buf=new Uint16Array(Q),e.lc_buf=new Uint8Array(Q),S=Y,D=le,zr(M))},e.deflateEnd=function(){return r!=Sa&&r!=Ps&&r!=En?Nt:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,h=null,c=null,l=null,e.dstate=null,r==Ps?Y1:Ct)},e.deflateParams=function(M,Y,z){let J=Ct;return Y==ni&&(Y=6),Y<0||Y>9||z<0||z>bs?Nt:(It[S].func!=It[Y].func&&M.total_in!==0&&(J=M.deflate(Lf)),S!=Y&&(S=Y,P=It[S].max_lazy,I=It[S].good_length,U=It[S].nice_length,F=It[S].max_chain),D=z,J)},e.deflateSetDictionary=function(M,Y,z){let J=z,ne,le=0;if(!Y||r!=Sa)return Nt;if(J<Ne)return Ct;for(J>s-wt&&(J=s-wt,le=z-J),l.set(Y.subarray(le,le+J),0),$=J,b=J,m=l[0]&255,m=(m<<w^l[1]&255)&y,ne=0;ne<=J-Ne;ne++)m=(m<<w^l[ne+(Ne-1)]&255)&y,c[ne&o]=h[m],h[m]=ne;return Ct},e.deflate=function(M,Y){let z,J,ne,le,de;if(Y>ct||Y<0)return Nt;if(!M.next_out||!M.next_in&&M.avail_in!==0||r==En&&Y!=ct)return M.msg=vs[_s-Nt],Nt;if(M.avail_out===0)return M.msg=vs[_s-Yr],Yr;if(t=M,le=a,a=Y,r==Sa&&(J=Ta+(n-8<<4)<<8,ne=(S-1&255)>>1,ne>3&&(ne=3),J|=ne<<6,$!==0&&(J|=rw),J+=31-J%31,r=Ps,pt(J)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}else if(t.avail_in===0&&Y<=le&&Y!=ct)return t.msg=vs[_s-Yr],Yr;if(r==En&&t.avail_in!==0)return M.msg=vs[_s-Yr],Yr;if(t.avail_in!==0||E!==0||Y!=en&&r!=En){switch(de=-1,It[S].func){case xu:de=rt(Y);break;case js:de=$i(Y);break;case Pr:de=nt(Y);break}if((de==Pn||de==ks)&&(r=En),de==St||de==Pn)return t.avail_out===0&&(a=-1),Ct;if(de==xs){if(Y==Lf)j();else if(he(0,0,!1),Y==G1)for(z=0;z<g;z++)h[z]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}}return Y!=ct?Ct:vu}}function ku(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}ku.prototype={deflateInit(e,t){const r=this;return r.dstate=new iw,t||(t=Zn),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Nt},deflateEnd(){const e=this;if(!e.dstate)return Nt;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const r=this;return r.dstate?r.dstate.deflateParams(r,e,t):Nt},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Nt},read_buf(e,t,r){const i=this;let a=i.avail_in;return a>r&&(a=r),a===0?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function aw(e){const t=this,r=new ku,i=ow(e&&e.chunkSize?e.chunkSize:64*1024),a=en,s=new Uint8Array(i);let n=e?e.level:ni;typeof n>"u"&&(n=ni),r.deflateInit(n),r.next_out=s,t.append=function(o,l){let p,c,h=0,m=0,g=0;const A=[];if(o.length){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,p=r.deflate(a),p!=Ct)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?A.push(new Uint8Array(s)):A.push(s.subarray(0,r.next_out_index))),g+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=h&&(l(r.next_in_index),h=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return A.length>1?(c=new Uint8Array(g),A.forEach(function(y){c.set(y,m),m+=y.length})):c=A[0]?new Uint8Array(A[0]):new Uint8Array,c}},t.flush=function(){let o,l,p=0,c=0;const h=[];do{if(r.next_out_index=0,r.avail_out=i,o=r.deflate(ct),o!=vu&&o!=Ct)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&h.push(s.slice(0,r.next_out_index)),c+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),l=new Uint8Array(c),h.forEach(function(m){l.set(m,p),p+=m.length}),l}}function ow(e){return e+5*(Math.floor(e/16383)+1)}const lw=15,ve=0,sr=1,fw=2,dt=-2,Ie=-3,Nf=-4,ir=-5,_t=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Pu=1440,pw=0,cw=4,uw=9,dw=5,hw=[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],mw=[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],yw=[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],gw=[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],ww=[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],bw=[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],fr=15;function oo(){const e=this;let t,r,i,a,s,n;function o(p,c,h,m,g,A,y,w,b,O,k){let L,$,C,E,T,F,P,S,D,I,U,q,W,X,V;I=0,T=h;do i[p[c+I]]++,I++,T--;while(T!==0);if(i[0]==h)return y[0]=-1,w[0]=0,ve;for(S=w[0],F=1;F<=fr&&i[F]===0;F++);for(P=F,S<F&&(S=F),T=fr;T!==0&&i[T]===0;T--);for(C=T,S>T&&(S=T),w[0]=S,X=1<<F;F<T;F++,X<<=1)if((X-=i[F])<0)return Ie;if((X-=i[T])<0)return Ie;for(i[T]+=X,n[1]=F=0,I=1,W=2;--T!==0;)n[W]=F+=i[I],W++,I++;T=0,I=0;do(F=p[c+I])!==0&&(k[n[F]++]=T),I++;while(++T<h);for(h=n[C],n[0]=T=0,I=0,E=-1,q=-S,s[0]=0,U=0,V=0;P<=C;P++)for(L=i[P];L--!==0;){for(;P>q+S;){if(E++,q+=S,V=C-q,V=V>S?S:V,($=1<<(F=P-q))>L+1&&($-=L+1,W=P,F<V))for(;++F<V&&!(($<<=1)<=i[++W]);)$-=i[W];if(V=1<<F,O[0]+V>Pu)return Ie;s[E]=U=O[0],O[0]+=V,E!==0?(n[E]=T,a[0]=F,a[1]=S,F=T>>>q-S,a[2]=U-s[E-1]-F,b.set(a,(s[E-1]+F)*3)):y[0]=U}for(a[1]=P-q,I>=h?a[0]=192:k[I]<m?(a[0]=k[I]<256?0:96,a[2]=k[I++]):(a[0]=A[k[I]-m]+16+64,a[2]=g[k[I++]-m]),$=1<<P-q,F=T>>>q;F<V;F+=$)b.set(a,(U+F)*3);for(F=1<<P-1;T&F;F>>>=1)T^=F;for(T^=F,D=(1<<q)-1;(T&D)!=n[E];)E--,q-=S,D=(1<<q)-1}return X!==0&&C!=1?ir:ve}function l(p){let c;for(t||(t=[],r=[],i=new Int32Array(fr+1),a=[],s=new Int32Array(fr),n=new Int32Array(fr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<fr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;s.set(i.subarray(0,fr),0),n.set(i.subarray(0,fr+1),0)}e.inflate_trees_bits=function(p,c,h,m,g){let A;return l(19),t[0]=0,A=o(p,0,19,19,null,null,h,c,m,t,r),A==Ie?g.msg="oversubscribed dynamic bit lengths tree":(A==ir||c[0]===0)&&(g.msg="incomplete dynamic bit lengths tree",A=Ie),A},e.inflate_trees_dynamic=function(p,c,h,m,g,A,y,w,b){let O;return l(288),t[0]=0,O=o(h,0,p,257,yw,gw,A,m,w,t,r),O!=ve||m[0]===0?(O==Ie?b.msg="oversubscribed literal/length tree":O!=Nf&&(b.msg="incomplete literal/length tree",O=Ie),O):(l(288),O=o(h,p,c,0,ww,bw,y,g,w,t,r),O!=ve||g[0]===0&&p>257?(O==Ie?b.msg="oversubscribed distance tree":O==ir?(b.msg="incomplete distance tree",O=Ie):O!=Nf&&(b.msg="empty distance tree with lengths",O=Ie),O):ve)}}oo.inflate_trees_fixed=function(e,t,r,i){return e[0]=uw,t[0]=dw,r[0]=hw,i[0]=mw,ve};const Es=0,jf=1,Uf=2,Bf=3,qf=4,Mf=5,Wf=6,Aa=7,zf=8,Ss=9;function _w(){const e=this;let t,r=0,i,a=0,s=0,n=0,o=0,l=0,p=0,c=0,h,m=0,g,A=0;function y(w,b,O,k,L,$,C,E){let T,F,P,S,D,I,U,q,W,X,V,se,Z,Q,ee,G;U=E.next_in_index,q=E.avail_in,D=C.bitb,I=C.bitk,W=C.write,X=W<C.read?C.read-W-1:C.end-W,V=_t[w],se=_t[b];do{for(;I<20;)q--,D|=(E.read_byte(U++)&255)<<I,I+=8;if(T=D&V,F=O,P=k,G=(P+T)*3,(S=F[G])===0){D>>=F[G+1],I-=F[G+1],C.win[W++]=F[G+2],X--;continue}do{if(D>>=F[G+1],I-=F[G+1],S&16){for(S&=15,Z=F[G+2]+(D&_t[S]),D>>=S,I-=S;I<15;)q--,D|=(E.read_byte(U++)&255)<<I,I+=8;T=D&se,F=L,P=$,G=(P+T)*3,S=F[G];do if(D>>=F[G+1],I-=F[G+1],S&16){for(S&=15;I<S;)q--,D|=(E.read_byte(U++)&255)<<I,I+=8;if(Q=F[G+2]+(D&_t[S]),D>>=S,I-=S,X-=Z,W>=Q)ee=W-Q,W-ee>0&&2>W-ee?(C.win[W++]=C.win[ee++],C.win[W++]=C.win[ee++],Z-=2):(C.win.set(C.win.subarray(ee,ee+2),W),W+=2,ee+=2,Z-=2);else{ee=W-Q;do ee+=C.end;while(ee<0);if(S=C.end-ee,Z>S){if(Z-=S,W-ee>0&&S>W-ee)do C.win[W++]=C.win[ee++];while(--S!==0);else C.win.set(C.win.subarray(ee,ee+S),W),W+=S,ee+=S,S=0;ee=0}}if(W-ee>0&&Z>W-ee)do C.win[W++]=C.win[ee++];while(--Z!==0);else C.win.set(C.win.subarray(ee,ee+Z),W),W+=Z,ee+=Z,Z=0;break}else if(!(S&64))T+=F[G+2],T+=D&_t[S],G=(P+T)*3,S=F[G];else return E.msg="invalid distance code",Z=E.avail_in-q,Z=I>>3<Z?I>>3:Z,q+=Z,U-=Z,I-=Z<<3,C.bitb=D,C.bitk=I,E.avail_in=q,E.total_in+=U-E.next_in_index,E.next_in_index=U,C.write=W,Ie;while(!0);break}if(S&64)return S&32?(Z=E.avail_in-q,Z=I>>3<Z?I>>3:Z,q+=Z,U-=Z,I-=Z<<3,C.bitb=D,C.bitk=I,E.avail_in=q,E.total_in+=U-E.next_in_index,E.next_in_index=U,C.write=W,sr):(E.msg="invalid literal/length code",Z=E.avail_in-q,Z=I>>3<Z?I>>3:Z,q+=Z,U-=Z,I-=Z<<3,C.bitb=D,C.bitk=I,E.avail_in=q,E.total_in+=U-E.next_in_index,E.next_in_index=U,C.write=W,Ie);if(T+=F[G+2],T+=D&_t[S],G=(P+T)*3,(S=F[G])===0){D>>=F[G+1],I-=F[G+1],C.win[W++]=F[G+2],X--;break}}while(!0)}while(X>=258&&q>=10);return Z=E.avail_in-q,Z=I>>3<Z?I>>3:Z,q+=Z,U-=Z,I-=Z<<3,C.bitb=D,C.bitk=I,E.avail_in=q,E.total_in+=U-E.next_in_index,E.next_in_index=U,C.write=W,ve}e.init=function(w,b,O,k,L,$){t=Es,p=w,c=b,h=O,m=k,g=L,A=$,i=null},e.proc=function(w,b,O){let k,L,$,C=0,E=0,T=0,F,P,S,D;for(T=b.next_in_index,F=b.avail_in,C=w.bitb,E=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P;;)switch(t){case Es:if(S>=258&&F>=10&&(w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,O=y(p,c,h,m,g,A,w,b),T=b.next_in_index,F=b.avail_in,C=w.bitb,E=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P,O!=ve)){t=O==sr?Aa:Ss;break}s=p,i=h,a=m,t=jf;case jf:for(k=s;E<k;){if(F!==0)O=ve;else return w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);F--,C|=(b.read_byte(T++)&255)<<E,E+=8}if(L=(a+(C&_t[k]))*3,C>>>=i[L+1],E-=i[L+1],$=i[L],$===0){n=i[L+2],t=Wf;break}if($&16){o=$&15,r=i[L+2],t=Uf;break}if(!($&64)){s=$,a=L/3+i[L+2];break}if($&32){t=Aa;break}return t=Ss,b.msg="invalid literal/length code",O=Ie,w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);case Uf:for(k=o;E<k;){if(F!==0)O=ve;else return w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);F--,C|=(b.read_byte(T++)&255)<<E,E+=8}r+=C&_t[k],C>>=k,E-=k,s=c,i=g,a=A,t=Bf;case Bf:for(k=s;E<k;){if(F!==0)O=ve;else return w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);F--,C|=(b.read_byte(T++)&255)<<E,E+=8}if(L=(a+(C&_t[k]))*3,C>>=i[L+1],E-=i[L+1],$=i[L],$&16){o=$&15,l=i[L+2],t=qf;break}if(!($&64)){s=$,a=L/3+i[L+2];break}return t=Ss,b.msg="invalid distance code",O=Ie,w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);case qf:for(k=o;E<k;){if(F!==0)O=ve;else return w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);F--,C|=(b.read_byte(T++)&255)<<E,E+=8}l+=C&_t[k],C>>=k,E-=k,t=Mf;case Mf:for(D=P-l;D<0;)D+=w.end;for(;r!==0;){if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,O=w.inflate_flush(b,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);w.win[P++]=w.win[D++],S--,D==w.end&&(D=0),r--}t=Es;break;case Wf:if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,O=w.inflate_flush(b,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);O=ve,w.win[P++]=n,S--,t=Es;break;case Aa:if(E>7&&(E-=8,F++,T--),w.write=P,O=w.inflate_flush(b,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,w.read!=w.write)return w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);t=zf;case zf:return O=sr,w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);case Ss:return O=Ie,w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O);default:return O=dt,w.bitb=C,w.bitk=E,b.avail_in=F,b.total_in+=T-b.next_in_index,b.next_in_index=T,w.write=P,w.inflate_flush(b,O)}},e.free=function(){}}const Hf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Kr=0,$a=1,Vf=2,Zf=3,Gf=4,Yf=5,Ts=6,Os=7,Kf=8,kr=9;function vw(e,t){const r=this;let i=Kr,a=0,s=0,n=0,o;const l=[0],p=[0],c=new _w;let h=0,m=new Int32Array(Pu*3);const g=0,A=new oo;r.bitk=0,r.bitb=0,r.win=new Uint8Array(t),r.end=t,r.read=0,r.write=0,r.reset=function(y,w){w&&(w[0]=g),i==Ts&&c.free(y),i=Kr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(y,w){let b,O,k;return O=y.next_out_index,k=r.read,b=(k<=r.write?r.write:r.end)-k,b>y.avail_out&&(b=y.avail_out),b!==0&&w==ir&&(w=ve),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(k,k+b),O),O+=b,k+=b,k==r.end&&(k=0,r.write==r.end&&(r.write=0),b=r.write-k,b>y.avail_out&&(b=y.avail_out),b!==0&&w==ir&&(w=ve),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(k,k+b),O),O+=b,k+=b),y.next_out_index=O,r.read=k,w},r.proc=function(y,w){let b,O,k,L,$,C,E,T;for(L=y.next_in_index,$=y.avail_in,O=r.bitb,k=r.bitk,C=r.write,E=C<r.read?r.read-C-1:r.end-C;;){let F,P,S,D,I,U,q,W;switch(i){case Kr:for(;k<3;){if($!==0)w=ve;else return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);$--,O|=(y.read_byte(L++)&255)<<k,k+=8}switch(b=O&7,h=b&1,b>>>1){case 0:O>>>=3,k-=3,b=k&7,O>>>=b,k-=b,i=$a;break;case 1:F=[],P=[],S=[[]],D=[[]],oo.inflate_trees_fixed(F,P,S,D),c.init(F[0],P[0],S[0],0,D[0],0),O>>>=3,k-=3,i=Ts;break;case 2:O>>>=3,k-=3,i=Zf;break;case 3:return O>>>=3,k-=3,i=kr,y.msg="invalid block type",w=Ie,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w)}break;case $a:for(;k<32;){if($!==0)w=ve;else return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);$--,O|=(y.read_byte(L++)&255)<<k,k+=8}if((~O>>>16&65535)!=(O&65535))return i=kr,y.msg="invalid stored block lengths",w=Ie,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);a=O&65535,O=k=0,i=a!==0?Vf:h!==0?Os:Kr;break;case Vf:if($===0||E===0&&(C==r.end&&r.read!==0&&(C=0,E=C<r.read?r.read-C-1:r.end-C),E===0&&(r.write=C,w=r.inflate_flush(y,w),C=r.write,E=C<r.read?r.read-C-1:r.end-C,C==r.end&&r.read!==0&&(C=0,E=C<r.read?r.read-C-1:r.end-C),E===0)))return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);if(w=ve,b=a,b>$&&(b=$),b>E&&(b=E),r.win.set(y.read_buf(L,b),C),L+=b,$-=b,C+=b,E-=b,(a-=b)!==0)break;i=h!==0?Os:Kr;break;case Zf:for(;k<14;){if($!==0)w=ve;else return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);$--,O|=(y.read_byte(L++)&255)<<k,k+=8}if(s=b=O&16383,(b&31)>29||(b>>5&31)>29)return i=kr,y.msg="too many length or distance symbols",w=Ie,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);if(b=258+(b&31)+(b>>5&31),!o||o.length<b)o=[];else for(T=0;T<b;T++)o[T]=0;O>>>=14,k-=14,n=0,i=Gf;case Gf:for(;n<4+(s>>>10);){for(;k<3;){if($!==0)w=ve;else return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);$--,O|=(y.read_byte(L++)&255)<<k,k+=8}o[Hf[n++]]=O&7,O>>>=3,k-=3}for(;n<19;)o[Hf[n++]]=0;if(l[0]=7,b=A.inflate_trees_bits(o,l,p,m,y),b!=ve)return w=b,w==Ie&&(o=null,i=kr),r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);n=0,i=Yf;case Yf:for(;b=s,!(n>=258+(b&31)+(b>>5&31));){let X,V;for(b=l[0];k<b;){if($!==0)w=ve;else return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);$--,O|=(y.read_byte(L++)&255)<<k,k+=8}if(b=m[(p[0]+(O&_t[b]))*3+1],V=m[(p[0]+(O&_t[b]))*3+2],V<16)O>>>=b,k-=b,o[n++]=V;else{for(T=V==18?7:V-14,X=V==18?11:3;k<b+T;){if($!==0)w=ve;else return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);$--,O|=(y.read_byte(L++)&255)<<k,k+=8}if(O>>>=b,k-=b,X+=O&_t[T],O>>>=T,k-=T,T=n,b=s,T+X>258+(b&31)+(b>>5&31)||V==16&&T<1)return o=null,i=kr,y.msg="invalid bit length repeat",w=Ie,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);V=V==16?o[T-1]:0;do o[T++]=V;while(--X!==0);n=T}}if(p[0]=-1,I=[],U=[],q=[],W=[],I[0]=9,U[0]=6,b=s,b=A.inflate_trees_dynamic(257+(b&31),1+(b>>5&31),o,I,U,q,W,m,y),b!=ve)return b==Ie&&(o=null,i=kr),w=b,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);c.init(I[0],U[0],m,q[0],m,W[0]),i=Ts;case Ts:if(r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,(w=c.proc(r,y,w))!=sr)return r.inflate_flush(y,w);if(w=ve,c.free(y),L=y.next_in_index,$=y.avail_in,O=r.bitb,k=r.bitk,C=r.write,E=C<r.read?r.read-C-1:r.end-C,h===0){i=Kr;break}i=Os;case Os:if(r.write=C,w=r.inflate_flush(y,w),C=r.write,E=C<r.read?r.read-C-1:r.end-C,r.read!=r.write)return r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);i=Kf;case Kf:return w=sr,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);case kr:return w=Ie,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w);default:return w=dt,r.bitb=O,r.bitk=k,y.avail_in=$,y.total_in+=L-y.next_in_index,y.next_in_index=L,r.write=C,r.inflate_flush(y,w)}}},r.free=function(y){r.reset(y,null),r.win=null,m=null},r.set_dictionary=function(y,w,b){r.win.set(y.subarray(w,w+b),0),r.read=r.write=b},r.sync_point=function(){return i==$a?1:0}}const xw=32,kw=8,Pw=0,Xf=1,Jf=2,Qf=3,ep=4,tp=5,Ra=6,Sn=7,rp=12,pr=13,Ew=[0,0,255,255];function Sw(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(r){return!r||!r.istate?dt:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=Sn,r.istate.blocks.reset(r,null),ve)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,ve},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),dt):(e.wbits=i,r.istate.blocks=new vw(r,1<<i),t(r),ve)},e.inflate=function(r,i){let a,s;if(!r||!r.istate||!r.next_in)return dt;const n=r.istate;for(i=i==cw?ir:ve,a=ir;;)switch(n.mode){case Pw:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((n.method=r.read_byte(r.next_in_index++))&15)!=kw){n.mode=pr,r.msg="unknown compression method",n.marker=5;break}if((n.method>>4)+8>n.wbits){n.mode=pr,r.msg="invalid win size",n.marker=5;break}n.mode=Xf;case Xf:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,s=r.read_byte(r.next_in_index++)&255,((n.method<<8)+s)%31!==0){n.mode=pr,r.msg="incorrect header check",n.marker=5;break}if(!(s&xw)){n.mode=Sn;break}n.mode=Jf;case Jf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,n.mode=Qf;case Qf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,n.mode=ep;case ep:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,n.mode=tp;case tp:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,n.need+=r.read_byte(r.next_in_index++)&255,n.mode=Ra,fw);case Ra:return n.mode=pr,r.msg="need dictionary",n.marker=0,dt;case Sn:if(a=n.blocks.proc(r,a),a==Ie){n.mode=pr,n.marker=0;break}if(a==ve&&(a=i),a!=sr)return a;a=i,n.blocks.reset(r,n.was),n.mode=rp;case rp:return r.avail_in=0,sr;case pr:return Ie;default:return dt}},e.inflateSetDictionary=function(r,i,a){let s=0,n=a;if(!r||!r.istate||r.istate.mode!=Ra)return dt;const o=r.istate;return n>=1<<o.wbits&&(n=(1<<o.wbits)-1,s=a-n),o.blocks.set_dictionary(i,s,n),o.mode=Sn,ve},e.inflateSync=function(r){let i,a,s,n,o;if(!r||!r.istate)return dt;const l=r.istate;if(l.mode!=pr&&(l.mode=pr,l.marker=0),(i=r.avail_in)===0)return ir;for(a=r.next_in_index,s=l.marker;i!==0&&s<4;)r.read_byte(a)==Ew[s]?s++:r.read_byte(a)!==0?s=0:s=4-s,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,l.marker=s,s!=4?Ie:(n=r.total_in,o=r.total_out,t(r),r.total_in=n,r.total_out=o,l.mode=Sn,ve)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?dt:r.istate.blocks.sync_point()}}function Eu(){}Eu.prototype={inflateInit(e){const t=this;return t.istate=new Sw,e||(e=lw),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):dt},inflateEnd(){const e=this;if(!e.istate)return dt;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):dt},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):dt},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function Tw(e){const t=this,r=new Eu,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=pw,s=new Uint8Array(i);let n=!1;r.inflateInit(),r.next_out=s,t.append=function(o,l){const p=[];let c,h,m=0,g=0,A=0;if(o.length!==0){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,r.avail_in===0&&!n&&(r.next_in_index=0,n=!0),c=r.inflate(a),n&&c===ir){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==ve&&c!==sr)throw new Error("inflating: "+r.msg);if((n||c===sr)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(s)):p.push(s.subarray(0,r.next_out_index))),A+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=m&&(l(r.next_in_index),m=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return p.length>1?(h=new Uint8Array(A),p.forEach(function(y){h.set(y,g),g+=y.length})):h=p[0]?new Uint8Array(p[0]):new Uint8Array,h}},t.flush=function(){r.inflateEnd()}}const Fr=4294967295,mr=65535,Ow=8,Aw=0,$w=99,Rw=67324752,Fw=134695760,np=33639248,Iw=101010256,sp=101075792,Lw=117853008,Xr=22,Fa=20,Ia=56,Cw=1,Dw=39169,Nw=10,jw=1,Uw=21589,Bw=28789,qw=25461,Mw=6534,ip=1,Ww=6,ap=8,op=2048,lp=16,fp=16384,pp=73,cp="/",ft=void 0,xr="undefined",fs="function";class up{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(s,n){n.enqueue(a.append(s))},flush(s){const n=a.flush();n&&s.enqueue(n)}})}}}}const zw=64;let Su=2;try{typeof navigator!=xr&&navigator.hardwareConcurrency&&(Su=navigator.hardwareConcurrency)}catch{}const Hw={chunkSize:512*1024,maxWorkers:Su,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:ft,CompressionStreamNative:typeof CompressionStream!=xr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=xr&&DecompressionStream},yr=Object.assign({},Hw);function Vw(){return yr}function Zw(e){return Math.max(e.chunkSize,zw)}function Do(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:s,useWebWorkers:n,Deflate:o,Inflate:l,CompressionStream:p,DecompressionStream:c,workerScripts:h}=e;if(cr("baseURL",t),cr("chunkSize",r),cr("maxWorkers",i),cr("terminateWorkerTimeout",a),cr("useCompressionStream",s),cr("useWebWorkers",n),o&&(yr.CompressionStream=new up(o)),l&&(yr.DecompressionStream=new up(l)),cr("CompressionStream",p),cr("DecompressionStream",c),h!==ft){const{deflate:m,inflate:g}=h;if((m||g)&&(yr.workerScripts||(yr.workerScripts={})),m){if(!Array.isArray(m))throw new Error("workerScripts.deflate must be an array");yr.workerScripts.deflate=m}if(g){if(!Array.isArray(g))throw new Error("workerScripts.inflate must be an array");yr.workerScripts.inflate=g}}}function cr(e,t){t!==ft&&(yr[e]=t)}const La={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 e={};for(const t of Object.keys(La))for(const r of Object.keys(La[t])){const i=La[t][r];if(typeof i=="string")e[i]=t+"/"+r;else for(let a=0;a<i.length;a++)e[i[a]]=t+"/"+r}return e})();const Tu=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t=t>>>1;Tu[e]=t}class si{constructor(t){this.crc=t||-1}append(t){let r=this.crc|0;for(let i=0,a=t.length|0;i<a;i++)r=r>>>8^Tu[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class Ou extends TransformStream{constructor(){let t;const r=new si;super({transform(i,a){r.append(i),a.enqueue(i)},flush(){const i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r.get()),t.value=i}}),t=this}}function Gw(e){if(typeof TextEncoder==xr){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<t.length;r++)t[r]=e.charCodeAt(r);return t}else return new TextEncoder().encode(e)}const ot={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=ot.getPartial(r);return i===32?e.concat(t):ot._shiftRight(t,i,r|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const r=e[t-1];return(t-1)*32+ot.getPartial(r)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const r=e.length;return t=t&31,r>0&&t&&(e[r-1]=ot.partial(t,e[r-1]&2147483648>>t-1,1)),e},partial(e,t,r){return e===32?t:(r?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,r,i){for(i===void 0&&(i=[]);t>=32;t-=32)i.push(r),r=0;if(t===0)return i.concat(e);for(let n=0;n<e.length;n++)i.push(r|e[n]>>>t),r=e[n]<<32-t;const a=e.length?e[e.length-1]:0,s=ot.getPartial(a);return i.push(ot.partial(t+s&31,t+s>32?r:i.pop(),1)),i}},ii={bytes:{fromBits(e){const r=ot.bitLength(e)/8,i=new Uint8Array(r);let a;for(let s=0;s<r;s++)s&3||(a=e[s/4]),i[s]=a>>>24,a<<=8;return i},toBits(e){const t=[];let r,i=0;for(r=0;r<e.length;r++)i=i<<8|e[r],(r&3)===3&&(t.push(i),i=0);return r&3&&t.push(ot.partial(8*(r&3),i)),t}}},Au={};Au.sha1=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;typeof e=="string"&&(e=ii.utf8String.toBits(e));const r=t._buffer=ot.concat(t._buffer,e),i=t._length,a=t._length=i+ot.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let n=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(s.subarray(16*n,16*(n+1))),n+=1;return r.splice(0,16*n),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=ot.concat(t,[ot.partial(1,1)]);for(let i=t.length+2;i&15;i++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),r}_f(e,t,r,i){if(e<=19)return t&r|~t&i;if(e<=39)return t^r^i;if(e<=59)return t&r|t&i|r&i;if(e<=79)return t^r^i}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,r=t._h,i=Array(80);for(let p=0;p<16;p++)i[p]=e[p];let a=r[0],s=r[1],n=r[2],o=r[3],l=r[4];for(let p=0;p<=79;p++){p>=16&&(i[p]=t._S(1,i[p-3]^i[p-8]^i[p-14]^i[p-16]));const c=t._S(5,a)+t._f(p,s,n,o)+l+i[p]+t._key[Math.floor(p/20)]|0;l=o,o=n,n=t._S(30,s),s=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+l|0}};const $u={};$u.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const r=t._tables[0][4],i=t._tables[1],a=e.length;let s,n,o,l=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[n=e.slice(0),o=[]],s=a;s<4*a+28;s++){let p=n[s-1];(s%a===0||a===8&&s%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],s%a===0&&(p=p<<8^p>>>24^l<<24,l=l<<1^(l>>7)*283)),n[s]=n[s-a]^p}for(let p=0;s;p++,s--){const c=n[p&3?s:s-4];s<=4||p<4?o[p]=c:o[p]=i[0][r[c>>>24]]^i[1][r[c>>16&255]]^i[2][r[c>>8&255]]^i[3][r[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],r=e[4],i=t[4],a=[],s=[];let n,o,l,p;for(let c=0;c<256;c++)s[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=n=0;!r[c];c^=o||1,n=s[n]||1){let h=n^n<<1^n<<2^n<<3^n<<4;h=h>>8^h&255^99,r[c]=h,i[h]=c,p=a[l=a[o=a[c]]];let m=p*16843009^l*65537^o*257^c*16843008,g=a[h]*257^h*16843008;for(let A=0;A<4;A++)e[A][c]=g=g<<24^g>>>8,t[A][h]=m=m<<24^m>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),t[c]=t[c].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const r=this._key[t],i=r.length/4-2,a=[0,0,0,0],s=this._tables[t],n=s[0],o=s[1],l=s[2],p=s[3],c=s[4];let h=e[0]^r[0],m=e[t?3:1]^r[1],g=e[2]^r[2],A=e[t?1:3]^r[3],y=4,w,b,O;for(let k=0;k<i;k++)w=n[h>>>24]^o[m>>16&255]^l[g>>8&255]^p[A&255]^r[y],b=n[m>>>24]^o[g>>16&255]^l[A>>8&255]^p[h&255]^r[y+1],O=n[g>>>24]^o[A>>16&255]^l[h>>8&255]^p[m&255]^r[y+2],A=n[A>>>24]^o[h>>16&255]^l[m>>8&255]^p[g&255]^r[y+3],y+=4,h=w,m=b,g=O;for(let k=0;k<4;k++)a[t?3&-k:k]=c[h>>>24]<<24^c[m>>16&255]<<16^c[g>>8&255]<<8^c[A&255]^r[y++],w=h,h=m,m=g,g=A,A=w;return a}};const Yw={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const s=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&s,i=18e3*(i&65535)+(i>>16)&s,(((a<<16)+i&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const s=r((a||Math.random())*4294967296);a=s()*987654071,t[i/4]=s()*4294967296|0}return e}},Ru={};Ru.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,r=e>>8&255,i=e&255;t===255?(t=0,r===255?(r=0,i===255?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,r){let i;if(!(i=t.length))return[];const a=ot.bitLength(t);for(let s=0;s<i;s+=4){this.incCounter(r);const n=e.encrypt(r);t[s]^=n[0],t[s+1]^=n[1],t[s+2]^=n[2],t[s+3]^=n[3]}return ot.clamp(t,a)}};const Br={importKey(e){return new Br.hmacSha1(ii.bytes.toBits(e))},pbkdf2(e,t,r,i){if(r=r||1e4,i<0||r<0)throw new Error("invalid params to pbkdf2");const a=(i>>5)+1<<2;let s,n,o,l,p;const c=new ArrayBuffer(a),h=new DataView(c);let m=0;const g=ot;for(t=ii.bytes.toBits(t),p=1;m<(a||1);p++){for(s=n=e.encrypt(g.concat(t,[p])),o=1;o<r;o++)for(n=e.encrypt(n),l=0;l<n.length;l++)s[l]^=n[l];for(o=0;m<(a||1)&&o<s.length;o++)h.setInt32(m,s[o]),m+=4}return c.slice(0,i/8)}};Br.hmacSha1=class{constructor(e){const t=this,r=t._hash=Au.sha1,i=[[],[]];t._baseHash=[new r,new r];const a=t._baseHash[0].blockSize/32;e.length>a&&(e=new r().update(e).finalize());for(let s=0;s<a;s++)i[0][s]=e[s]^909522486,i[1][s]=e[s]^1549556828;t._baseHash[0].update(i[0]),t._baseHash[1].update(i[1]),t._resultHash=new r(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),r=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),r}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const Kw=typeof crypto!=xr&&typeof crypto.getRandomValues==fs,Fu="Invalid password",Iu="Invalid signature",No="zipjs-abort-check-password";function Lu(e){return Kw?crypto.getRandomValues(e):Yw.getRandomValues(e)}const rn=16,Xw="raw",Cu={name:"PBKDF2"},Jw={name:"HMAC"},Qw="SHA-1",eb=Object.assign({hash:Jw},Cu),lo=Object.assign({iterations:1e3,hash:{name:Qw}},Cu),tb=["deriveBits"],Gn=[8,12,16],Tn=[16,24,32],hr=10,rb=[0,0,0,0],Pi=typeof crypto!=xr,ps=Pi&&crypto.subtle,Du=Pi&&typeof ps!=xr,Xt=ii.bytes,nb=$u.aes,sb=Ru.ctrGladman,ib=Br.hmacSha1;let dp=Pi&&Du&&typeof ps.importKey==fs,hp=Pi&&Du&&typeof ps.deriveBits==fs;class ab extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:s}){super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:Uu(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(n,o){const l=this,{password:p,strength:c,resolveReady:h,ready:m}=l;p?(await lb(l,c,p,Ot(n,0,Gn[c]+2)),n=Ot(n,Gn[c]+2),s?o.error(new Error(No)):h()):await m;const g=new Uint8Array(n.length-hr-(n.length-hr)%rn);o.enqueue(Nu(l,n,g,0,hr,!0))},async flush(n){const{signed:o,ctr:l,hmac:p,pending:c,ready:h}=this;if(p&&l){await h;const m=Ot(c,0,c.length-hr),g=Ot(c,c.length-hr);let A=new Uint8Array;if(m.length){const y=Kn(Xt,m);p.update(y);const w=l.update(y);A=Yn(Xt,w)}if(o){const y=Ot(Yn(Xt,p.digest()),0,hr);for(let w=0;w<hr;w++)if(y[w]!=g[w])throw new Error(Iu)}n.enqueue(A)}}})}}class ob extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:Uu(t,r),strength:i-1,pending:new Uint8Array})},async transform(s,n){const o=this,{password:l,strength:p,resolveReady:c,ready:h}=o;let m=new Uint8Array;l?(m=await fb(o,p,l),c()):await h;const g=new Uint8Array(m.length+s.length-s.length%rn);g.set(m,0),n.enqueue(Nu(o,s,g,m.length,0))},async flush(s){const{ctr:n,hmac:o,pending:l,ready:p}=this;if(o&&n){await p;let c=new Uint8Array;if(l.length){const h=n.update(Kn(Xt,l));o.update(h),c=Yn(Xt,h)}a.signature=Yn(Xt,o.digest()).slice(0,hr),s.enqueue(jo(c,a.signature))}}}),a=this}}function Nu(e,t,r,i,a,s){const{ctr:n,hmac:o,pending:l}=e,p=t.length-a;l.length&&(t=jo(l,t),r=ub(r,p-p%rn));let c;for(c=0;c<=p-rn;c+=rn){const h=Kn(Xt,Ot(t,c,c+rn));s&&o.update(h);const m=n.update(h);s||o.update(m),r.set(Yn(Xt,m),c+i)}return e.pending=Ot(t,c),r}async function lb(e,t,r,i){const a=await ju(e,t,r,Ot(i,0,Gn[t])),s=Ot(i,Gn[t]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Fu)}async function fb(e,t,r){const i=Lu(new Uint8Array(Gn[t])),a=await ju(e,t,r,i);return jo(i,a)}async function ju(e,t,r,i){e.password=null;const a=await pb(Xw,r,eb,!1,tb),s=await cb(Object.assign({salt:i},lo),a,8*(Tn[t]*2+2)),n=new Uint8Array(s),o=Kn(Xt,Ot(n,0,Tn[t])),l=Kn(Xt,Ot(n,Tn[t],Tn[t]*2)),p=Ot(n,Tn[t]*2);return Object.assign(e,{keys:{key:o,authentication:l,passwordVerification:p},ctr:new sb(new nb(o),Array.from(rb)),hmac:new ib(l)}),p}async function pb(e,t,r,i,a){if(dp)try{return await ps.importKey(e,t,r,i,a)}catch{return dp=!1,Br.importKey(t)}else return Br.importKey(t)}async function cb(e,t,r){if(hp)try{return await ps.deriveBits(e,t,r)}catch{return hp=!1,Br.pbkdf2(t,e.salt,lo.iterations,r)}else return Br.pbkdf2(t,e.salt,lo.iterations,r)}function Uu(e,t){return t===ft?Gw(e):t}function jo(e,t){let r=e;return e.length+t.length&&(r=new Uint8Array(e.length+t.length),r.set(e,0),r.set(t,e.length)),r}function ub(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function Ot(e,t,r){return e.subarray(t,r)}function Yn(e,t){return e.fromBits(t)}function Kn(e,t){return e.toBits(t)}const pn=12;class db extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Bu(this,t)},transform(a,s){const n=this;if(n.password){const o=mp(n,a.subarray(0,pn));if(n.password=null,o[pn-1]!=n.passwordVerification)throw new Error(Fu);a=a.subarray(pn)}i?s.error(new Error(No)):s.enqueue(mp(n,a))}})}}class hb extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Bu(this,t)},transform(i,a){const s=this;let n,o;if(s.password){s.password=null;const l=Lu(new Uint8Array(pn));l[pn-1]=s.passwordVerification,n=new Uint8Array(i.length+l.length),n.set(yp(s,l),0),o=pn}else n=new Uint8Array(i.length),o=0;n.set(yp(s,i),o),a.enqueue(n)}})}}function mp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=qu(e)^t[i],Uo(e,r[i]);return r}function yp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=qu(e)^t[i],Uo(e,t[i]);return r}function Bu(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new si(r[0]),crcKey2:new si(r[2])});for(let i=0;i<t.length;i++)Uo(e,t.charCodeAt(i))}function Uo(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=gp(Math.imul(gp(i+Mu(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function qu(e){const t=e.keys[2]|2;return Mu(Math.imul(t,t^1)>>>8)}function Mu(e){return e&255}function gp(e){return e&4294967295}const wp="deflate-raw";class mb extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:s,encrypted:n,useCompressionStream:o,zipCrypto:l,signed:p,level:c}=t,h=this;let m,g,A=Wu(super.readable);(!n||l)&&p&&(m=new Ou,A=Jt(A,m)),s&&(A=Hu(A,o,{level:c,chunkSize:r},a,i)),n&&(l?A=Jt(A,new hb(t)):(g=new ob(t),A=Jt(A,g))),zu(h,A,()=>{let y;n&&!l&&(y=g.signature),(!n||l)&&p&&(y=new DataView(m.value.buffer).getUint32(0)),h.signature=y})}}class yb extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:s,encrypted:n,signed:o,signature:l,compressed:p,useCompressionStream:c}=t;let h,m,g=Wu(super.readable);n&&(s?g=Jt(g,new db(t)):(m=new ab(t),g=Jt(g,m))),p&&(g=Hu(g,c,{chunkSize:r},a,i)),(!n||s)&&o&&(h=new Ou,g=Jt(g,h)),zu(this,g,()=>{if((!n||s)&&o){const A=new DataView(h.value.buffer);if(l!=A.getUint32(0,!1))throw new Error(Iu)}})}}function Wu(e){return Jt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function zu(e,t,r){t=Jt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Hu(e,t,r,i,a){try{const s=t&&i?i:a;e=Jt(e,new s(wp,r))}catch{if(t)try{e=Jt(e,new a(wp,r))}catch{return e}else return e}return e}function Jt(e,t){return e.pipeThrough(t)}const gb="message",wb="start",bb="pull",bp="data",_b="ack",_p="close",vb="deflate",Vu="inflate";class xb extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let s;a.startsWith(vb)?s=mb:a.startsWith(Vu)&&(s=yb);let n=0,o=0;const l=new s(t,r),p=super.readable,c=new TransformStream({transform(m,g){m&&m.length&&(o+=m.length,g.enqueue(m))},flush(){Object.assign(i,{inputSize:o})}}),h=new TransformStream({transform(m,g){m&&m.length&&(n+=m.length,g.enqueue(m))},flush(){const{signature:m}=l;Object.assign(i,{signature:m,outputSize:n,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(l).pipeThrough(h)}})}}class kb extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,s){if(r){const n=new Uint8Array(r.length+a.length);n.set(r),n.set(a,r.length),a=n,r=null}a.length>t?(s.enqueue(a.slice(0,t)),i(a.slice(t),s)):r=a}}}let Zu=typeof Worker!=xr;class Ca{constructor(t,{readable:r,writable:i},{options:a,config:s,streamOptions:n,useWebWorkers:o,transferStreams:l,scripts:p},c){const{signal:h}=n;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new kb(s.chunkSize)).pipeThrough(new Pb(r,n),{signal:h}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:l,terminate(){return new Promise(m=>{const{worker:g,busy:A}=t;g?(A?t.resolveTerminated=m:(g.terminate(),m()),t.interface=null):m()})},onTaskFinished(){const{resolveTerminated:m}=t;m&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),m()),t.busy=!1,c(t)}}),(o&&Zu?Eb:Gu)(t,s)}}class Pb extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:s}){let n=0;super({async start(){r&&await Da(r,a)},async transform(o,l){n+=o.length,i&&await Da(i,n,a),l.enqueue(o)},async flush(){t.size=n,s&&await Da(s,n)}})}}async function Da(e,...t){try{await e(...t)}catch{}}function Gu(e,t){return{run:()=>Sb(e,t)}}function Eb(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=Ab(e.scripts[0],r,e)}catch{return Zu=!1,Gu(e,t)}Object.assign(e,{worker:a,interface:{run:()=>Tb(e,{chunkSize:i})}})}return e.interface}async function Sb({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const s=new xb(e,a);await t.pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:n,inputSize:o,outputSize:l}=s;return{signature:n,inputSize:o,outputSize:l}}finally{i()}}async function Tb(e,t){let r,i;const a=new Promise((m,g)=>{r=m,i=g});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:s,options:n,scripts:o}=e,{writable:l,closed:p}=Ob(e.writable),c=Bs({type:wb,scripts:o.slice(1),options:n,config:t,readable:s,writable:l},e);c||Object.assign(e,{reader:s.getReader(),writer:l.getWriter()});const h=await a;return c||await l.getWriter().close(),await p,h}function Ob(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const s=e.getWriter();await s.ready,await s.write(a),s.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let vp=!0,xp=!0;function Ab(e,t,r){const i={type:"module"};let a,s;typeof e==fs&&(e=e());try{a=new URL(e,t)}catch{a=e}if(vp)try{s=new Worker(a)}catch{vp=!1,s=new Worker(a,i)}else s=new Worker(a,i);return s.addEventListener(gb,n=>$b(n,r)),s}function Bs(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:s,readable:n,writable:o}=e,l=[];if(s&&(s.byteLength<s.buffer.byteLength?e.value=s.buffer.slice(0,s.byteLength):e.value=s.buffer,l.push(e.value)),a&&xp?(n&&l.push(n),o&&l.push(o)):e.readable=e.writable=null,l.length)try{return t.postMessage(e,l),!0}catch{xp=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(s){throw r&&r.releaseLock(),i(),s}}async function $b({data:e},t){const{type:r,value:i,messageId:a,result:s,error:n}=e,{reader:o,writer:l,resolveResult:p,rejectResult:c,onTaskFinished:h}=t;try{if(n){const{message:g,stack:A,code:y,name:w}=n,b=new Error(g);Object.assign(b,{stack:A,code:y,name:w}),m(b)}else{if(r==bb){const{value:g,done:A}=await o.read();Bs({type:bp,value:g,done:A,messageId:a},t)}r==bp&&(await l.ready,await l.write(new Uint8Array(i)),Bs({type:_b,messageId:a},t)),r==_p&&m(null,s)}}catch(g){Bs({type:_p,messageId:a},t),m(g)}function m(g,A){g?c(g):p(A),l&&l.releaseLock(),h()}}let Tr=[];const Na=[];let kp=0;async function Rb(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:s,useCompressionStream:n,codecType:o,compressed:l,signed:p,encrypted:c}=r,{workerScripts:h,maxWorkers:m}=i;t.transferStreams=a||a===ft;const g=!l&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!g&&(s||s===ft&&i.useWebWorkers),t.scripts=t.useWebWorkers&&h?h[o]:[],r.useCompressionStream=n||n===ft&&i.useCompressionStream,(await A()).run();async function A(){const w=Tr.find(b=>!b.busy);if(w)return Pp(w),new Ca(w,e,t,y);if(Tr.length<m){const b={indexWorker:kp};return kp++,Tr.push(b),new Ca(b,e,t,y)}else return new Promise(b=>Na.push({resolve:b,stream:e,workerOptions:t}))}function y(w){if(Na.length){const[{resolve:b,stream:O,workerOptions:k}]=Na.splice(0,1);b(new Ca(w,O,k,y))}else w.worker?(Pp(w),Fb(w,t)):Tr=Tr.filter(b=>b!=w)}}function Fb(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Tr=Tr.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function Pp(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function Ib(e,t={}){const r=`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={bytes:{p(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},m(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.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=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.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(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}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,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.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(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.R(I.bytes.m(e)),B(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.bytes.m(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)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)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.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[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.v=[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.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[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)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[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.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(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}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(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.R;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.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J: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,Y:n,Z: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.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J: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{Y:t,Z: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{Y:c,Z: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.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(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,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z: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.p(t)}function ae(e,t){return e.m(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,ee:new x(r[0]),te: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.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.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.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(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.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[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.ke=[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.ve=[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.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[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.Ce=[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.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[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._e=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.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=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.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,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.ue=e.we=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.Ke[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.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[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.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[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.Ke.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.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+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._e,Le.Be)):(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.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}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.We)return;e=t.je(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.We)}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.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=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.Fe=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.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,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].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(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.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=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.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){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.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?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.tt))return 0}return se(4==e),0===t.tt?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.tt)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.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=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.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);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.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=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.st=(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.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(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.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="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.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="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.nt,p=c.We,w=o.ot,h=o.ct,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.ft(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.ft(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.ft(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.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=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.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=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.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=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.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<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.wt(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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[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.wt(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.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(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.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.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.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.dt(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.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.wt(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(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.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(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.it(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.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,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.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():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.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);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.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
|
|
90
|
+
`,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const Lb="Writer iterator completed too soon",Cb="Content-Type",Db=64*1024,Yu="writable";class Bo{constructor(){this.size=0}init(){this.initialized=!0}}class Ku extends Bo{get readable(){const t=this,{chunkSize:r=Db}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:s=0,size:n,diskNumberStart:o}=i,{chunkOffset:l}=this;a.enqueue(await et(t,s+l,Math.min(r,n-l),o)),l+r>n?a.close():this.chunkOffset+=r}});return i}}class fo extends Ku{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let n=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return n.byteLength>r&&(n=n.slice(t,a)),new Uint8Array(n)}}class Nb extends Bo{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([Cb,t]),Object.defineProperty(r,Yu,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class jb extends Ku{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:r}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(r.map(async(i,a)=>{await i.init(),a!=r.length-1&&(t.lastDiskOffset+=i.size),t.size+=i.size})),super.init()}async readUint8Array(t,r,i=0){const a=this,{readers:s}=this;let n,o=i;o==-1&&(o=s.length-1);let l=t;for(;l>=s[o].size;)l-=s[o].size,o++;const p=s[o],c=p.size;if(l+r<=c)n=await et(p,l,r);else{const h=c-l;n=new Uint8Array(r),n.set(await et(p,l,h)),n.set(await a.readUint8Array(t+h,r-h,i),h)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),n}}class Ep extends Bo{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,s,n;const o=new WritableStream({async write(c){const{availableSize:h}=i;if(n)c.length>=h?(await l(c.slice(0,h)),await p(),i.diskOffset+=a.size,i.diskNumber++,n=null,await this.write(c.slice(h))):await l(c);else{const{value:m,done:g}=await t.next();if(g&&!m)throw new Error(Lb);a=m,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await ai(a),s=m.writable,n=s.getWriter(),await this.write(c)}},async close(){await n.ready,await p()}});Object.defineProperty(i,Yu,{get(){return o}});async function l(c){const h=c.length;h&&(await n.ready,await n.write(c),a.size+=h,i.size+=h,i.availableSize-=h)}async function p(){s.size=a.size,await n.close()}}}async function ai(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Ub(e){return Array.isArray(e)&&(e=new jb(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Bb(e){e.writable===ft&&typeof e.next==fs&&(e=new Ep(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===ft&&(t.size=0),e instanceof Ep||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function et(e,t,r,i){return e.readUint8Array(t,r,i)}const Xu="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),qb=Xu.length==256;function Mb(e){if(qb){let t="";for(let r=0;r<e.length;r++)t+=Xu[e[r]];return t}else return new TextDecoder().decode(e)}function qs(e,t){return t&&t.trim().toLowerCase()=="cp437"?Mb(e):new TextDecoder(t).decode(e)}const Ju="filename",Qu="rawFilename",ed="comment",td="rawComment",rd="uncompressedSize",nd="compressedSize",sd="offset",po="diskNumberStart",co="lastModDate",uo="rawLastModDate",id="lastAccessDate",Wb="rawLastAccessDate",ad="creationDate",zb="rawCreationDate",Hb="internalFileAttribute",Vb="internalFileAttributes",Zb="externalFileAttribute",Gb="externalFileAttributes",Yb="msDosCompatible",Kb="zip64",Xb="encrypted",Jb="version",Qb="versionMadeBy",e_="zipCrypto",t_="directory",r_="executable",n_=[Ju,Qu,nd,rd,co,uo,ed,td,id,ad,sd,po,po,Hb,Vb,Zb,Gb,Yb,Kb,Xb,Jb,Qb,e_,t_,r_,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Sp{constructor(t){n_.forEach(r=>this[r]=t[r])}}const ja="File format is not recognized",s_="End of central directory not found",i_="End of Zip64 central directory locator not found",a_="Central directory header not found",o_="Local file header not found",l_="Zip64 extra field not found",f_="File contains encrypted entry",p_="Encryption method not supported",Tp="Compression method not supported",Op="Split zip file",Ap="utf-8",$p="cp437",c_=[[rd,Fr],[nd,Fr],[sd,Fr],[po,mr]],u_={[mr]:{getValue:Be,bytes:4},[Fr]:{getValue:Ms,bytes:8}};class Rp{constructor(t,r={}){Object.assign(this,{reader:Ub(t),options:r,config:Vw()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await ai(i),(i.size===ft||!i.readUint8Array)&&(i=new fo(await new Response(i.readable).blob()),await ai(i)),i.size<Xr)throw new Error(ja);i.chunkSize=Zw(a);const s=await w_(i,Iw,i.size,Xr,mr*16);if(!s){const P=await et(i,0,4),S=Ye(P);throw Be(S)==Fw?new Error(Op):new Error(s_)}const n=Ye(s);let o=Be(n,12),l=Be(n,16);const p=s.offset,c=Ge(n,20),h=p+Xr+c;let m=Ge(n,4);const g=i.lastDiskNumber||0;let A=Ge(n,6),y=Ge(n,8),w=0,b=0;if(l==Fr||o==Fr||y==mr||A==mr){const P=await et(i,s.offset-Fa,Fa),S=Ye(P);if(Be(S,0)==Lw){l=Ms(S,8);let D=await et(i,l,Ia,-1),I=Ye(D);const U=s.offset-Fa-Ia;if(Be(I,0)!=sp&&l!=U){const q=l;l=U,w=l-q,D=await et(i,l,Ia,-1),I=Ye(D)}if(Be(I,0)!=sp)throw new Error(i_);m==mr&&(m=Be(I,16)),A==mr&&(A=Be(I,20)),y==mr&&(y=Ms(I,32)),o==Fr&&(o=Ms(I,40)),l-=o}}if(l>=i.size&&(w=i.size-l-o-Xr,l=i.size-o-Xr),g!=m)throw new Error(Op);if(l<0)throw new Error(ja);let O=0,k=await et(i,l,o,A),L=Ye(k);if(o){const P=s.offset-o;if(Be(L,O)!=np&&l!=P){const S=l;l=P,w+=l-S,k=await et(i,l,o,A),L=Ye(k)}}const $=s.offset-l-(i.lastDiskOffset||0);if(o!=$&&$>=0&&(o=$,k=await et(i,l,o,A),L=Ye(k)),l<0||l>=i.size)throw new Error(ja);const C=it(r,t,"filenameEncoding"),E=it(r,t,"commentEncoding");for(let P=0;P<y;P++){const S=new d_(i,a,r.options);if(Be(L,O)!=np)throw new Error(a_);od(S,L,O+6);const D=!!S.bitFlag.languageEncodingFlag,I=O+46,U=I+S.filenameLength,q=U+S.extraFieldLength,W=Ge(L,O+4),X=W>>8==0,V=W>>8==3,se=k.subarray(I,U),Z=Ge(L,O+32),Q=q+Z,ee=k.subarray(q,Q),G=D,fe=D,ie=Be(L,O+38),ae=X&&(cn(L,O+38)&lp)==lp||V&&(ie>>16&fp)==fp||se.length&&se[se.length-1]==cp.charCodeAt(0),Se=V&&(ie>>16&pp)==pp,Ae=Be(L,O+42)+w;Object.assign(S,{versionMadeBy:W,msDosCompatible:X,compressedSize:0,uncompressedSize:0,commentLength:Z,directory:ae,offset:Ae,diskNumberStart:Ge(L,O+34),internalFileAttributes:Ge(L,O+36),externalFileAttributes:ie,rawFilename:se,filenameUTF8:G,commentUTF8:fe,rawExtraField:k.subarray(U,q),executable:Se}),S.internalFileAttribute=S.internalFileAttributes,S.externalFileAttribute=S.externalFileAttributes;const Xe=it(r,t,"decodeText")||qs,tt=G?Ap:C||$p,Et=fe?Ap:E||$p;let Le=Xe(se,tt);Le===ft&&(Le=qs(se,tt));let Ce=Xe(ee,Et);Ce===ft&&(Ce=qs(ee,Et)),Object.assign(S,{rawComment:ee,filename:Le,comment:Ce,directory:ae||Le.endsWith(cp)}),b=Math.max(Ae,b),ld(S,S,L,O+6),S.zipCrypto=S.encrypted&&!S.extraFieldAES;const pt=new Sp(S);pt.getData=(v,u)=>S.getData(v,pt,u),O=Q;const{onprogress:Re}=t;if(Re)try{await Re(P+1,y,new Sp(S))}catch{}yield pt}const T=it(r,t,"extractPrependedData"),F=it(r,t,"extractAppendedData");return T&&(r.prependedData=b>0?await et(i,0,b):new Uint8Array),r.comment=c?await et(i,p+Xr,c):new Uint8Array,F&&(r.appendedData=h<i.size?await et(i,h,i.size-h):new Uint8Array),!0}async getEntries(t={}){const r=[];for await(const i of this.getEntriesGenerator(t))r.push(i);return r}async close(){}}class d_{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:s,offset:n,diskNumberStart:o,extraFieldAES:l,compressionMethod:p,config:c,bitFlag:h,signature:m,rawLastModDate:g,uncompressedSize:A,compressedSize:y}=a,w=r.localDirectory={},b=await et(s,n,30,o),O=Ye(b);let k=it(a,i,"password"),L=it(a,i,"rawPassword");const $=it(a,i,"passThrough");if(k=k&&k.length&&k,L=L&&L.length&&L,l&&l.originalCompressionMethod!=$w)throw new Error(Tp);if(p!=Aw&&p!=Ow&&!$)throw new Error(Tp);if(Be(O,0)!=Rw)throw new Error(o_);od(w,O,4),w.rawExtraField=w.extraFieldLength?await et(s,n+30+w.filenameLength,w.extraFieldLength,o):new Uint8Array,ld(a,w,O,4,!0),Object.assign(r,{lastAccessDate:w.lastAccessDate,creationDate:w.creationDate});const C=a.encrypted&&w.encrypted&&!$,E=C&&!l;if($||(r.zipCrypto=E),C){if(!E&&l.strength===ft)throw new Error(p_);if(!k&&!L)throw new Error(f_)}const T=n+30+w.filenameLength+w.extraFieldLength,F=y,P=s.readable;Object.assign(P,{diskNumberStart:o,offset:T,size:F});const S=it(a,i,"signal"),D=it(a,i,"checkPasswordOnly");D&&(t=new WritableStream),t=Bb(t),await ai(t,$?y:A);const{writable:I}=t,{onstart:U,onprogress:q,onend:W}=i,X={options:{codecType:Vu,password:k,rawPassword:L,zipCrypto:E,encryptionStrength:l&&l.strength,signed:it(a,i,"checkSignature")&&!$,passwordVerification:E&&(h.dataDescriptor?g>>>8&255:m>>>24&255),signature:m,compressed:p!=0&&!$,encrypted:a.encrypted&&!$,useWebWorkers:it(a,i,"useWebWorkers"),useCompressionStream:it(a,i,"useCompressionStream"),transferStreams:it(a,i,"transferStreams"),checkPasswordOnly:D},config:c,streamOptions:{signal:S,size:F,onstart:U,onprogress:q,onend:W}};let V=0;try{({outputSize:V}=await Rb({readable:P,writable:I},X))}catch(se){if(!D||se.message!=No)throw se}finally{const se=it(a,i,"preventClose");I.size+=V,!se&&!I.locked&&await I.getWriter().close()}return D?ft:t.getData?t.getData():I}}function od(e,t,r){const i=e.rawBitFlag=Ge(t,r+2),a=(i&ip)==ip,s=Be(t,r+6);Object.assign(e,{encrypted:a,version:Ge(t,r),bitFlag:{level:(i&Ww)>>1,dataDescriptor:(i&ap)==ap,languageEncodingFlag:(i&op)==op},rawLastModDate:s,lastModDate:b_(s),filenameLength:Ge(t,r+22),extraFieldLength:Ge(t,r+24)})}function ld(e,t,r,i,a){const{rawExtraField:s}=t,n=t.extraField=new Map,o=Ye(new Uint8Array(s));let l=0;try{for(;l<s.length;){const b=Ge(o,l),O=Ge(o,l+2);n.set(b,{type:b,data:s.slice(l+4,l+4+O)}),l+=4+O}}catch{}const p=Ge(r,i+4);Object.assign(t,{signature:Be(r,i+10),uncompressedSize:Be(r,i+18),compressedSize:Be(r,i+14)});const c=n.get(Cw);c&&(h_(c,t),t.extraFieldZip64=c);const h=n.get(Bw);h&&(Fp(h,Ju,Qu,t,e),t.extraFieldUnicodePath=h);const m=n.get(qw);m&&(Fp(m,ed,td,t,e),t.extraFieldUnicodeComment=m);const g=n.get(Dw);g?(m_(g,t,p),t.extraFieldAES=g):t.compressionMethod=p;const A=n.get(Nw);A&&(y_(A,t),t.extraFieldNTFS=A);const y=n.get(Uw);y&&(g_(y,t,a),t.extraFieldExtendedTimestamp=y);const w=n.get(Mw);w&&(t.extraFieldUSDZ=w)}function h_(e,t){t.zip64=!0;const r=Ye(e.data),i=c_.filter(([a,s])=>t[a]==s);for(let a=0,s=0;a<i.length;a++){const[n,o]=i[a];if(t[n]==o){const l=u_[o];t[n]=e[n]=l.getValue(r,s),s+=l.bytes}else if(e[n])throw new Error(l_)}}function Fp(e,t,r,i,a){const s=Ye(e.data),n=new si;n.append(a[r]);const o=Ye(new Uint8Array(4));o.setUint32(0,n.get(),!0);const l=Be(s,1);Object.assign(e,{version:cn(s,0),[t]:qs(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&l==Be(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function m_(e,t,r){const i=Ye(e.data),a=cn(i,4);Object.assign(e,{vendorVersion:cn(i,0),vendorId:cn(i,2),strength:a,originalCompressionMethod:r,compressionMethod:Ge(i,5)}),t.compressionMethod=e.compressionMethod}function y_(e,t){const r=Ye(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const s=Ge(r,i),n=Ge(r,i+2);s==jw&&(a=e.data.slice(i+4,i+4+n)),i+=4+n}}catch{}try{if(a&&a.length==24){const s=Ye(a),n=s.getBigUint64(0,!0),o=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:n,rawLastAccessDate:o,rawCreationDate:l});const p=Ua(n),c=Ua(o),h=Ua(l),m={lastModDate:p,lastAccessDate:c,creationDate:h};Object.assign(e,m),Object.assign(t,m)}}catch{}}function g_(e,t,r){const i=Ye(e.data),a=cn(i,0),s=[],n=[];r?((a&1)==1&&(s.push(co),n.push(uo)),(a&2)==2&&(s.push(id),n.push(Wb)),(a&4)==4&&(s.push(ad),n.push(zb))):e.data.length>=5&&(s.push(co),n.push(uo));let o=1;s.forEach((l,p)=>{if(e.data.length>=o+4){const c=Be(i,o);t[l]=e[l]=new Date(c*1e3);const h=n[p];e[h]=c}o+=4})}async function w_(e,t,r,i,a){const s=new Uint8Array(4),n=Ye(s);__(n,0,t);const o=i+a;return await l(i)||await l(Math.min(o,r));async function l(p){const c=r-p,h=await et(e,c,p);for(let m=h.length-i;m>=0;m--)if(h[m]==s[0]&&h[m+1]==s[1]&&h[m+2]==s[2]&&h[m+3]==s[3])return{offset:c+m,buffer:h.slice(m,m+i).buffer}}}function it(e,t,r){return t[r]===ft?e.options[r]:t[r]}function b_(e){const t=(e&4294901760)>>16,r=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(r&63488)>>11,(r&2016)>>5,(r&31)*2,0)}catch{}}function Ua(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function cn(e,t){return e.getUint8(t)}function Ge(e,t){return e.getUint16(t,!0)}function Be(e,t){return e.getUint32(t,!0)}function Ms(e,t){return Number(e.getBigUint64(t,!0))}function __(e,t,r){e.setUint32(t,r,!0)}function Ye(e){return new DataView(e.buffer)}let fd;try{fd=typeof document>"u"?require("url").pathToFileURL(__filename).href:nn&&nn.tagName.toUpperCase()==="SCRIPT"&&nn.src||new URL("index.cjs",document.baseURI).href}catch{}Do({baseURL:fd});Ib(Do);Do({Deflate:aw,Inflate:Tw});class v_{constructor(t){this.fileTree=t}async read(t){let r=this.getEntryAtPath(t);if(typeof r=="string")r=new TextEncoder().encode(r);else if(!(r instanceof Uint8Array))throw new Error(`Unsupported content type: ${typeof r}`);const i=new ReadableStream({start(a){a.enqueue(r),a.close()}});return new Lr(i,t,{filesize:r.byteLength})}getEntryAtPath(t){let r=t.replace(/^\//,""),i=this.fileTree;for(;r;){if(i[r])return i[r];const a=r.split("/"),s=a.shift();if(!s||!i[s])break;i=i[s],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class oi{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new Rp(new fo(new Lr(t,"archive.zip")));return new oi(r)}static fromArrayBuffer(t){const r=new Rp(new fo(new Blob([t])));return new oi(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new Nb);return new Lr(i.stream(),t,{filesize:r.uncompressedSize})}async getEntry(t){const i=(await this.getEntries()).get(t.replace(/^\//,""));if(!i)throw new Error(`File ${t} not found in the zip.`);return i}async getEntries(){if(this.entries.size===0){const t=await this.zipReader.getEntries();for(const r of t)this.entries.set(r.filename,r)}return this.entries}}class x_{constructor(t){if(!t.length)throw new Error("OverlayFilesystem requires at least one filesystem");this.filesystems=t}async read(t){const r=[];for(const a of this.filesystems)try{return await a.read(t)}catch(s){r.push(s instanceof Error?s:new Error(String(s)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class k_{constructor(t){if(this.baseUrl="",this.options=t,this.isDataUrl=t.baseUrl.startsWith("data:"),this.isDataUrl)return;const r=new URL("./",t.baseUrl);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Unsupported protocol: "+r.protocol+". Only HTTP and HTTPS are supported.");this.baseUrl=r.origin+r.pathname}async read(t){if(this.isDataUrl)throw new Error("FetchFilesystem cannot fetch files from data URLs");t=ui(t);const r=t.replace(/^\//,""),i=new URL(r,this.baseUrl).toString();if(!i.startsWith(this.baseUrl))throw new Error(`Refused to read a file outside of the base URL: ${i}`);const a=this.options.corsProxy?`${this.options.corsProxy}${encodeURIComponent(i)}`:i,s=await fetch(a);if(!s.ok)throw new Error(`Failed to fetch file at ${t}: ${s.statusText}`);const n=s.headers.get("content-length")?parseInt(s.headers.get("content-length"),10):void 0;return new Lr(s.body,t,{filesize:n})}}function Ei(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}async function li(e,t){let r;return["GET","HEAD"].includes(e.method)||"body"in t?r=void 0:!e.bodyUsed&&e.body?r=e.body:r=await e.arrayBuffer(),new Request(t.url||e.url,{body:r,method:e.method,headers:e.headers,referrer:e.referrer,referrerPolicy:e.referrerPolicy,mode:e.mode==="navigate"?"same-origin":e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,integrity:e.integrity,...r&&{duplex:"half"},...t})}async function P_(e){if(!e.body)return[e,e];const[t,r]=e.body.tee();return[await li(e,{body:t,duplex:"half"}),await li(e,{body:r,duplex:"half"})]}class E_ extends Error{constructor(t,r,i){super(`Could not fetch ${t} – your network appears to be blocking this request (HTTP ${r}). This often happens on school, university, or corporate networks. Try switching to a different network or using a VPN.`),this.name="FirewallInterferenceError",this.url=t,this.status=r,this.statusText=i}}const S_="X-Playground-Cors-Proxy";async function T_(e,t,r,i){var c;let a=typeof e=="string"?new Request(e,t):e;const s=i?new URL(i):null;let n=s?new URL(a.url,s):new URL(a.url);if(n.hostname==="localhost"||n.hostname==="127.0.0.1"||n.hostname==="[::1]"||n.hostname==="::1")return await fetch(a);if(n.protocol==="http:"){n.protocol="https:";const h=n.toString();a=await li(a,{url:h}),n=new URL(h)}if(!r)return await fetch(a);if(s&&n.protocol===s.protocol&&n.hostname===s.hostname&&n.port===s.port&&n.pathname.startsWith(s.pathname))return await fetch(a);const[l,p]=await P_(a);try{return await fetch(l)}catch{const m=((c=new Headers(p.headers).get("x-cors-proxy-allowed-request-headers"))==null?void 0:c.split(","))||[],g=m.includes("authorization")||m.includes("cookie"),A=await li(p,{url:`${r}${a.url}`,...g&&{credentials:"include"}}),y=await fetch(A,t);if(!y.headers.has(S_))throw new E_(a.url,y.status,y.statusText);return y}}const O_=`Blueprint resource of type "bundled" requires a filesystem.
|
|
91
91
|
|
|
92
92
|
This Blueprint refers to files that should be bundled with it (like images, plugins, or themes), but the filesystem needed to access these files is not available. This usually happens when:
|
|
93
93
|
|
|
@@ -99,12 +99,12 @@ To fix this:
|
|
|
99
99
|
• If you're using a blueprint.zip file, ensure it contains all the files referenced in the Blueprint
|
|
100
100
|
• Check that the "resource": "bundled" references in your Blueprint match actual files in your bundle
|
|
101
101
|
|
|
102
|
-
Learn more about Blueprint resources: https://wordpress.github.io/wordpress-playground/blueprints/data-format#resources`;class
|
|
102
|
+
Learn more about Blueprint resources: https://wordpress.github.io/wordpress-playground/blueprints/data-format#resources`;class pd extends Error{constructor(t=O_){super(t),this.name="BlueprintFilesystemRequiredError"}}class Ws extends Error{constructor(t,r,i){super(t,i),this.name="ResourceDownloadError",this.url=r}}const A_=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled","zip"];function $_(e){return e&&typeof e=="object"&&typeof e.resource=="string"&&A_.includes(e.resource)}function R_(e){try{return new URL(e).hostname==="github-proxy.com"}catch{return!1}}function F_(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!=="github-proxy.com")return null;const r=t.pathname.slice(1);if(r.startsWith("https://github.com/")||r.startsWith("http://github.com/"))return{resource:"url",url:r};const i=t.searchParams,a=i.get("repo");if(!a)return null;const s=i.get("release"),n=i.get("asset");if(s&&n){const A=s==="latest"?"releases/latest/download":`releases/download/${s}`;return{resource:"url",url:`https://github.com/${a}/${A}/${n}`}}let o,l;const p=i.get("pr"),c=i.get("commit"),h=i.get("branch");p?o=`refs/pull/${p}/head`:c?(o=c,l="commit"):s?(o=s,l="tag"):o=h||"HEAD";const m=i.get("directory");return{resource:"zip",inner:{resource:"git:directory",url:`https://github.com/${a}`,ref:o,...l&&{refType:l},...m&&{path:m}}}}class Pt{get progress(){return this._progress}set progress(t){this._progress=t}setPlayground(t){this.playground=t}get isAsync(){return!1}static create(t,{semaphore:r,progress:i,corsProxy:a,streamBundledFile:s,gitAdditionalHeadersCallback:n}){if(t.resource==="url"&&R_(t.url)){const l=F_(t.url);l&&(console.warn(`[Blueprints] github-proxy.com is deprecated and will stop working soon. The URL "${t.url}" has been automatically converted to a ${l.resource} resource. Please update your Blueprint to use native resource types. See: https://wordpress.github.io/wordpress-playground/blueprints/steps/resources`),t=l)}let o;switch(t.resource){case"vfs":o=new I_(t,i);break;case"literal":o=new L_(t,i);break;case"wordpress.org/themes":o=new q_(t,i);break;case"wordpress.org/plugins":o=new M_(t,i);break;case"url":o=new N_(t,i,{corsProxy:a});break;case"git:directory":o=new j_(t,i,{corsProxy:a,additionalHeaders:n});break;case"literal:directory":o=new B_(t,i);break;case"bundled":if(!s)throw new pd;o=new H_(t,s,i);break;case"zip":{const l=Pt.create(t.inner,{semaphore:r,progress:i,corsProxy:a,streamBundledFile:s,gitAdditionalHeadersCallback:n});o=new V_(t,l,i);break}default:throw new Error(`Unknown resource type: ${t.resource}`)}return r&&(o=new z_(o,r)),new W_(o)}}class cd extends Pt{constructor(t){super(),this.resource=t}get progress(){return this.resource.progress}set progress(t){this.resource.progress=t}get name(){return this.resource.name}get isAsync(){return this.resource.isAsync}setPlayground(t){this.resource.setPlayground(t)}}class I_ extends Pt{constructor(t,r){super(),this.resource=t,this._progress=r}async resolve(){var r;const t=await this.playground.readFileAsBuffer(this.resource.path);return(r=this.progress)==null||r.set(100),new File([t],this.name)}get name(){return this.resource.path.split("/").pop()||""}}class L_ extends Pt{constructor(t,r){super(),this.resource=t,this._progress=r}async resolve(){var t;return(t=this.progress)==null||t.set(100),new File([this.resource.contents],this.resource.name)}get name(){return this.resource.name}}class qo extends Pt{constructor(t,r){super(),this._progress=t,this.corsProxy=r}async resolve(){var r,i,a;(r=this.progress)==null||r.setCaption(this.caption);const t=this.getURL();try{let s=await T_(t,void 0,this.corsProxy,await((i=this.playground)==null?void 0:i.absoluteUrl));if(!s.ok)throw new Ws(`Could not download "${t}"`,t);if(s=await ih(s,((a=this.progress)==null?void 0:a.loadingListener)??D_),s.status!==200)throw new Ws(`Could not download "${t}"`,t);const n=this.name||C_(s.headers.get("content-disposition")||"")||encodeURIComponent(t);return new File([await s.arrayBuffer()],n)}catch(s){throw new Ws(`Could not download "${t}".
|
|
103
103
|
|
|
104
104
|
Confirm that the URL is correct, the server is reachable, and the file isactually served at that URL. Original error:
|
|
105
|
-
${s}`,t,{cause:s})}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}function
|
|
105
|
+
${s}`,t,{cause:s})}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}function C_(e){if(!e)return null;const t=e.match(/filename\*?=([^;]+)/i);if(!t)return null;let r=t[1].trim();if((r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'"))&&(r=r.slice(1,-1)),t[0].includes("filename*")){const i=r.match(/^[^']*'[^']*'(.+)$/);if(i)try{r=decodeURIComponent(i[1])}catch{}}return r}const D_=()=>{};class N_ extends qo{constructor(t,r,i){if(super(r,i==null?void 0:i.corsProxy),this.resource=t,this.options=i,this.resource.url.startsWith("https://github.com/")){const a=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/(?:blob|raw)\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);a!=null&&a.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${a.groups.owner}/${a.groups.repo}/${a.groups.branch}/${a.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class j_ extends Pt{constructor(t,r,i){super(),this.reference=t,this._progress=r,this.options=i}async resolve(){var i,a,s;const t=((a=(i=this.options)==null?void 0:i.additionalHeaders)==null?void 0:a.call(i,this.reference.url))??{},r=(s=this.options)!=null&&s.corsProxy?`${this.options.corsProxy}${this.reference.url}`:this.reference.url;try{const n=await $1(r,{value:this.reference.ref,type:this.reference.refType??"infer"},t),o=await A1(r,n,t),l=(this.reference.path??"").replace(/^\/+/,""),p=W1(o,l),c=await T1(r,n,p,{withObjects:this.reference[".git"],additionalHeaders:t});let h=c.files;return h=U_(h,m=>m.substring(l.length).replace(/^\/+/,"")),this.reference[".git"]&&(h={...await M1({repoUrl:this.reference.url,commitHash:n,ref:this.reference.ref,refType:this.reference.refType,objects:c.objects??[],fileOids:c.fileOids??{},pathPrefix:l}),...h}),{name:this.filename,files:h}}catch(n){throw n instanceof Hn?new Hn(this.reference.url,n.status):n}}get filename(){return this.name.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-").replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g,"")||Hs()}get name(){var t;return[this.reference.url,this.reference.ref?`(${this.reference.ref})`:"",(t=this.reference.path)!=null&&t.replace(/^\/+/,"")?`at ${this.reference.path}`:""].filter(r=>r.length>0).join(" ")}}function U_(e,t){return Object.fromEntries(Object.entries(e).map(([r,i])=>[t(r),i]))}class B_ extends Pt{constructor(t,r){super(),this.reference=t,this._progress=r}async resolve(){return this.reference}get name(){return this.reference.name}}class q_ extends qo{constructor(t,r){super(r),this.resource=t}get name(){return Ei(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${ud(this.resource.slug)}`}}class M_ extends qo{constructor(t,r){super(r),this.resource=t}get name(){return Ei(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${ud(this.resource.slug)}`}}function ud(e){return!e||e.endsWith(".zip")?e:e+".latest-stable.zip"}class W_ extends cd{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class z_ extends cd{constructor(t,r){super(t),this.semaphore=r}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}class H_ extends Pt{constructor(t,r,i){if(!r)throw new Error(`You are trying to run a Blueprint that refers to a bundled file ("blueprint" resource type), but you did not provide the rest of the bundle. This Blueprint won't work as a standalone JSON file. You'll need to load the entire bundle, e.g. a blueprint.zip file. Alternatively, you may try loading it directly from a URL or a local directory and Playground will try (with your permission) to source the missing files from paths relative to the blueprint file.`);super(),this.resource=t,this.streamBundledFile=r,this._progress=i}async resolve(){var t,r,i;(t=this.progress)==null||t.set(0);try{const a=await this.streamBundledFile(this.resource.path),s=a.filesize;if(!s)return(r=this.progress)==null||r.set(100),a;const n=Mp(a.stream(),s,o=>{var l;(l=this.progress)==null||l.set(o.detail.loaded/o.detail.total*100)});return new Lr(n,this.name,{filesize:s})}catch(a){throw(i=this.progress)==null||i.set(100),new Error(`Failed to read file from blueprint. This Blueprint refers to a resource of type "bundled" with path "${this.resource.path}" that was not available. Please ensure that the entire bundle, such as a blueprint.zip file, is loaded. If you are trying to load the Blueprint directly from a URL or a local directory, make sure that all the necessary files are accessible and located relative to the blueprint file.
|
|
106
106
|
|
|
107
|
-
Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}class
|
|
107
|
+
Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}class V_ extends Pt{constructor(t,r,i){super(),this.reference=t,this.innerResource=r,this._progress=i}async resolve(){var s,n;(s=this.progress)==null||s.setCaption(`Creating ZIP: ${this.name}`);const t=await this.innerResource.resolve();let r;t instanceof File?r=[t]:r=Z_(t.files,t.name);const i=Sh(r),a=await bh(this.name,i);return(n=this.progress)==null||n.set(100),a}get name(){if(this.reference.name)return this.reference.name;const t=this.innerResource.name;return t.endsWith(".zip")?t:`${t}.zip`}get isAsync(){return!0}}function Z_(e,t){const r=[];function i(a,s){for(const[n,o]of Object.entries(a)){const l=s?`${s}/${n}`:n;o instanceof Uint8Array?r.push(new File([o],`${t}/${l}`)):typeof o=="string"?r.push(new File([new TextEncoder().encode(o)],`${t}/${l}`)):i(o,l)}}return i(e,""),r}const Mo=async(e,{pluginPath:t,pluginName:r},i)=>{i==null||i.tracker.setCaption(`Activating ${r||t}`);const a=await e.documentRoot,s=await e.run({code:`<?php
|
|
108
108
|
define( 'WP_ADMIN', true );
|
|
109
109
|
require_once( getenv('DOCROOT') . "/wp-load.php" );
|
|
110
110
|
require_once( getenv('DOCROOT') . "/wp-admin/includes/plugin.php" );
|
|
@@ -134,7 +134,7 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
|
|
|
134
134
|
} else if ( false === $response ) {
|
|
135
135
|
die( "The activatePlugin step wasn't able to find the plugin $plugin_path." );
|
|
136
136
|
}
|
|
137
|
-
`,env:{PLUGIN_PATH:t,DOCROOT:a}});s.text&&
|
|
137
|
+
`,env:{PLUGIN_PATH:t,DOCROOT:a}});s.text&&Oe.warn(`Plugin ${t} activation printed the following bytes: ${s.text}`);const o=((await e.run({code:`<?php
|
|
138
138
|
ob_start();
|
|
139
139
|
require_once( getenv( 'DOCROOT' ) . "/wp-load.php" );
|
|
140
140
|
|
|
@@ -167,7 +167,7 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
|
|
|
167
167
|
}
|
|
168
168
|
die('{"success": false}');
|
|
169
169
|
});
|
|
170
|
-
`,env:{DOCROOT:a,PLUGIN_PATH:t}})).text??"").trim();if(!o.endsWith('{"success": true}'))throw o!=='{"success": false}'&&
|
|
170
|
+
`,env:{DOCROOT:a,PLUGIN_PATH:t}})).text??"").trim();if(!o.endsWith('{"success": true}'))throw o!=='{"success": false}'&&Oe.debug(o),new Error(`Plugin ${t} could not be activated - WordPress exited with exit code ${s.exitCode}. Inspect the "debug" logs in the console for more details. Output headers: ${JSON.stringify(s.headers,null,2)}`)},Wo=async(e,{themeFolderName:t},r)=>{r==null||r.tracker.setCaption(`Activating ${t}`);const i=await e.documentRoot,a=`${i}/wp-content/themes/${t}`;if(!await e.fileExists(a))throw new Error(`
|
|
171
171
|
Couldn't activate theme ${t}.
|
|
172
172
|
Theme not found at the provided theme path: ${a}.
|
|
173
173
|
Check the theme path to ensure it's correct.
|
|
@@ -186,7 +186,7 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
|
|
|
186
186
|
throw new Exception( 'Theme ' . getenv('themeFolderName') . ' could not be activated.' );
|
|
187
187
|
}
|
|
188
188
|
die('Theme activated successfully');
|
|
189
|
-
`,env:{docroot:i,themeFolderName:t}});if(s.text!=="Theme activated successfully")throw
|
|
189
|
+
`,env:{docroot:i,themeFolderName:t}});if(s.text!=="Theme activated successfully")throw Oe.debug(s),new Error(`Theme ${t} could not be activated - WordPress exited with exit code ${s.exitCode}. Inspect the "debug" logs in the console for more details. Output headers: ${JSON.stringify(s.headers,null,2)}`)},dd=async(e,{code:t})=>{let r=typeof t=="string"?t:t.content;return(r.includes('"wordpress/wp-load.php"')||r.includes("'wordpress/wp-load.php'"))&&(Oe.error(`
|
|
190
190
|
It looks like you're trying to load WordPress using a relative path 'wordpress/wp-load.php'.
|
|
191
191
|
|
|
192
192
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -200,7 +200,7 @@ Instead of: require_once 'wordpress/wp-load.php';
|
|
|
200
200
|
Use: require_once '/wordpress/wp-load.php';
|
|
201
201
|
|
|
202
202
|
This will ensure your code works reliably regardless of the current working directory.
|
|
203
|
-
`.trim()),r=r.replace("'wordpress/wp-load.php'","'/wordpress/wp-load.php'"),r=r.replace('"wordpress/wp-load.php"','"/wordpress/wp-load.php"')),await e.run({code:r})},
|
|
203
|
+
`.trim()),r=r.replace("'wordpress/wp-load.php'","'/wordpress/wp-load.php'"),r=r.replace('"wordpress/wp-load.php"','"/wordpress/wp-load.php"')),await e.run({code:r})},hd=async(e,{options:t})=>await e.run(t),fi=async(e,{path:t})=>{t.startsWith("/")||(Oe.error(`
|
|
204
204
|
The rm() step in your Blueprint refers to a relative path.
|
|
205
205
|
|
|
206
206
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -214,7 +214,7 @@ Instead of: rm({ path: 'wordpress/wp-load.php' });
|
|
|
214
214
|
Use: rm({ path: '/wordpress/wp-load.php' });
|
|
215
215
|
|
|
216
216
|
This will ensure your code works reliably regardless of the current working directory.
|
|
217
|
-
`.trim()),t=`/${t}`),await e.unlink(t)},
|
|
217
|
+
`.trim()),t=`/${t}`),await e.unlink(t)},G_=`<?php
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* Naively splits an SQL string into a sequence of queries. It
|
|
@@ -377,7 +377,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
377
377
|
return $this->state;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
-
}`,
|
|
380
|
+
}`,md=async(e,{sql:t},r)=>{r==null||r.tracker.setCaption("Executing SQL Queries");const i=`/tmp/${Hs()}.sql`,a=`/tmp/${Hs()}.php`;await e.writeFile(i,new Uint8Array(await t.arrayBuffer())),await e.writeFile(a,new TextEncoder().encode(G_));const s=await e.documentRoot,n=qr({docroot:s,sqlFilename:i,streamClassFilename:a}),o=await e.run({code:`<?php
|
|
381
381
|
define('WP_SQLITE_AST_DRIVER', true);
|
|
382
382
|
require_once ${n.docroot} . '/wp-load.php';
|
|
383
383
|
|
|
@@ -421,7 +421,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
421
421
|
$query = $stream->get_query();
|
|
422
422
|
$wpdb->query($query);
|
|
423
423
|
}
|
|
424
|
-
`});return await
|
|
424
|
+
`});return await fi(e,{path:i}),await fi(e,{path:a}),o},yd=async(e,{request:t})=>{Oe.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const r=await e.request(t);if(r.httpStatusCode>399||r.httpStatusCode<200)throw Oe.warn("WordPress response was",{response:r}),new Error(`Request failed with status ${r.httpStatusCode}`);return r},Y_="8.3",gd=async(e,t,r,i=!0)=>{const a=`/tmp/file-${Math.random()}.zip`;if(t instanceof File){const n=t;t=a,await e.writeFile(t,new Uint8Array(await n.arrayBuffer()))}const s=qr({zipPath:t,extractToPath:r,overwriteFiles:i});await e.run({code:`<?php
|
|
425
425
|
function unzip($zipPath, $extractTo, $overwriteFiles = true)
|
|
426
426
|
{
|
|
427
427
|
if (!is_dir($extractTo)) {
|
|
@@ -448,380 +448,511 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
unzip(${s.zipPath}, ${s.extractToPath}, ${s.overwriteFiles});
|
|
451
|
-
`}),await e.fileExists(a)&&await e.unlink(a)},
|
|
451
|
+
`}),await e.fileExists(a)&&await e.unlink(a)},wd=`<?php
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
|
-
*
|
|
455
|
-
* with specific values.
|
|
456
|
-
*
|
|
457
|
-
* Example:
|
|
458
|
-
*
|
|
459
|
-
* \`\`\`php
|
|
460
|
-
* <?php
|
|
461
|
-
* define('WP_DEBUG', true);
|
|
462
|
-
* // The third define() argument is also supported:
|
|
463
|
-
* define('SAVEQUERIES', false, true);
|
|
464
|
-
*
|
|
465
|
-
* // Expression
|
|
466
|
-
* define(true ? 'WP_DEBUG_LOG' : 'WP_DEBUG_LOG', 123);
|
|
467
|
-
*
|
|
468
|
-
* // Guarded expressions shouldn't be wrapped twice
|
|
469
|
-
* if(!defined(1 ? 'A' : 'B')) {
|
|
470
|
-
* define(1 ? 'A' : 'B', 0);
|
|
471
|
-
* }
|
|
472
|
-
*
|
|
473
|
-
* // More advanced expression
|
|
474
|
-
* define((function() use($x) {
|
|
475
|
-
* return [$x, 'a'];
|
|
476
|
-
* })(), 123);
|
|
477
|
-
* \`\`\`
|
|
478
|
-
*
|
|
479
|
-
* Rewritten with
|
|
480
|
-
*
|
|
481
|
-
* $constants = [
|
|
482
|
-
* 'WP_DEBUG' => false,
|
|
483
|
-
* 'WP_DEBUG_LOG' => true,
|
|
484
|
-
* 'SAVEQUERIES' => true,
|
|
485
|
-
* 'NEW_CONSTANT' => "new constant",
|
|
486
|
-
* ];
|
|
487
|
-
*
|
|
488
|
-
* \`\`\`php
|
|
489
|
-
* <?php
|
|
490
|
-
* define('WP_DEBUG_LOG',true);
|
|
491
|
-
* define('NEW_CONSTANT','new constant');
|
|
492
|
-
* ?><?php
|
|
493
|
-
* define('WP_DEBUG',false);
|
|
494
|
-
* // The third define() argument is also supported:
|
|
495
|
-
* define('SAVEQUERIES',true, true);
|
|
496
|
-
*
|
|
497
|
-
* // Expression
|
|
498
|
-
* if(!defined($const ? 'WP_DEBUG_LOG' : 'WP_DEBUG_LOG')) {
|
|
499
|
-
* define($const ? 'WP_DEBUG_LOG' : 'WP_DEBUG_LOG', 123);
|
|
500
|
-
* }
|
|
501
|
-
*
|
|
502
|
-
* // Guarded expressions shouldn't be wrapped twice
|
|
503
|
-
* if(!defined(1 ? 'A' : 'B')) {
|
|
504
|
-
* define(1 ? 'A' : 'B', 0);
|
|
505
|
-
* }
|
|
506
|
-
*
|
|
507
|
-
* // More advanced expression
|
|
508
|
-
* if(!defined((function() use($x) {
|
|
509
|
-
* return [$x, 'a'];
|
|
510
|
-
* })())) {
|
|
511
|
-
* define((function() use($x) {
|
|
512
|
-
* return [$x, 'a'];
|
|
513
|
-
* })(), 123);
|
|
514
|
-
* }
|
|
515
|
-
* \`\`\`
|
|
454
|
+
* Transforms the "wp-config.php" file.
|
|
516
455
|
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
* @param bool $when_already_defined Optional. What to do if the constant is already defined.
|
|
520
|
-
* Possible values are:
|
|
521
|
-
* 'rewrite' - Rewrite the constant, using the new value.
|
|
522
|
-
* 'skip' - Skip the definition, keeping the existing value.
|
|
523
|
-
* Default: 'rewrite'
|
|
524
|
-
* @return string
|
|
456
|
+
* This parses the "wp-config.php" file contents into a token array and provides
|
|
457
|
+
* methods to modify it and serialize it back to a string with the modifications.
|
|
525
458
|
*/
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
do {
|
|
534
|
-
$buffer = [];
|
|
535
|
-
$name_buffer = [];
|
|
536
|
-
$value_buffer = [];
|
|
537
|
-
$third_arg_buffer = [];
|
|
538
|
-
|
|
539
|
-
// Capture everything until the define call into output.
|
|
540
|
-
// Capturing the define call into a buffer.
|
|
541
|
-
// Example:
|
|
542
|
-
// <?php echo 'a'; define (
|
|
543
|
-
// ^^^^^^^^^^^^^^^^^^^^^^
|
|
544
|
-
// output |buffer
|
|
545
|
-
while ($token = array_pop($tokens)) {
|
|
546
|
-
if (is_array($token) && $token[0] === T_STRING && (strtolower($token[1]) === 'define' || strtolower($token[1]) === 'defined')) {
|
|
547
|
-
$buffer[] = $token;
|
|
548
|
-
break;
|
|
549
|
-
}
|
|
550
|
-
$output[] = $token;
|
|
551
|
-
}
|
|
459
|
+
class WP_Config_Transformer {
|
|
460
|
+
/**
|
|
461
|
+
* The tokens of the wp-config.php file.
|
|
462
|
+
*
|
|
463
|
+
* @var array<array|string>
|
|
464
|
+
*/
|
|
465
|
+
private $tokens;
|
|
552
466
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
467
|
+
/**
|
|
468
|
+
* Constructor.
|
|
469
|
+
*
|
|
470
|
+
* @param string $content The contents of the wp-config.php file.
|
|
471
|
+
*/
|
|
472
|
+
public function __construct( string $content ) {
|
|
473
|
+
$this->tokens = token_get_all( $content );
|
|
474
|
+
|
|
475
|
+
// Check if the file is a valid PHP file.
|
|
476
|
+
$is_valid_php_file = false;
|
|
477
|
+
foreach ( $this->tokens as $token ) {
|
|
478
|
+
if ( is_array( $token ) && T_OPEN_TAG === $token[0] ) {
|
|
479
|
+
$is_valid_php_file = true;
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
if ( ! $is_valid_php_file ) {
|
|
484
|
+
throw new Exception( "The 'wp-config.php' file is not a valid PHP file." );
|
|
485
|
+
}
|
|
486
|
+
}
|
|
557
487
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
488
|
+
/**
|
|
489
|
+
* Create a new config transformer instance from a file.
|
|
490
|
+
*
|
|
491
|
+
* @param string $path The path to the wp-config.php file.
|
|
492
|
+
* @return self The new config transformer instance.
|
|
493
|
+
*/
|
|
494
|
+
public static function from_file( string $path ): self {
|
|
495
|
+
if ( ! is_file( $path ) ) {
|
|
496
|
+
throw new Exception( sprintf( "The '%s' file does not exist.", $path ) );
|
|
497
|
+
}
|
|
498
|
+
return new self( file_get_contents( $path ) );
|
|
499
|
+
}
|
|
573
500
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}
|
|
501
|
+
/**
|
|
502
|
+
* Get the transformed wp-config.php file contents.
|
|
503
|
+
*
|
|
504
|
+
* @return string The transformed wp-config.php file contents.
|
|
505
|
+
*/
|
|
506
|
+
public function to_string(): string {
|
|
507
|
+
$output = '';
|
|
508
|
+
foreach ( $this->tokens as $token ) {
|
|
509
|
+
$output .= is_array( $token ) ? $token[1] : $token;
|
|
510
|
+
}
|
|
511
|
+
return $output;
|
|
512
|
+
}
|
|
587
513
|
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
514
|
+
/**
|
|
515
|
+
* Save the transformed wp-config.php file contents to a file.
|
|
516
|
+
*
|
|
517
|
+
* @param string $path The path to the wp-config.php file.
|
|
518
|
+
*/
|
|
519
|
+
public function to_file( string $path ): void {
|
|
520
|
+
$result = file_put_contents( $path, $this->to_string() );
|
|
521
|
+
if ( false === $result ) {
|
|
522
|
+
throw new Exception( sprintf( "Failed to write to the '%s' file.", $path ) );
|
|
523
|
+
}
|
|
524
|
+
}
|
|
591
525
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
526
|
+
/**
|
|
527
|
+
* Check if a constant is defined in the wp-config.php file.
|
|
528
|
+
*
|
|
529
|
+
* @param string $name The name of the constant.
|
|
530
|
+
* @return bool True if the constant is defined, false otherwise.
|
|
531
|
+
*/
|
|
532
|
+
public function constant_exists( string $name ): bool {
|
|
533
|
+
foreach ( $this->tokens as $i => $token ) {
|
|
534
|
+
$is_string_token = is_array( $token ) && T_STRING === $token[0];
|
|
535
|
+
if ( $is_string_token && 'define' === strtolower( $token[1] ) ) {
|
|
536
|
+
$args = $this->collect_function_call_argument_locations( $i );
|
|
537
|
+
$const_name = $this->evaluate_constant_name(
|
|
538
|
+
array_slice( $this->tokens, $args[0][0], $args[0][1] )
|
|
539
|
+
);
|
|
540
|
+
if ( $name === $const_name ) {
|
|
541
|
+
return true;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
601
547
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
} elseif ($token === "," && $open_parenthesis === 0) {
|
|
618
|
-
break;
|
|
619
|
-
}
|
|
548
|
+
/**
|
|
549
|
+
* Define a constant in the wp-config.php file.
|
|
550
|
+
*
|
|
551
|
+
* @param string $name The name of the constant.
|
|
552
|
+
* @param mixed $value The value of the constant.
|
|
553
|
+
*/
|
|
554
|
+
public function define_constant( string $name, $value ): void {
|
|
555
|
+
// Tokenize the new constant value for insertion in the tokens array.
|
|
556
|
+
$definition_tokens = token_get_all(
|
|
557
|
+
sprintf(
|
|
558
|
+
"<?php define( %s, %s );\\n",
|
|
559
|
+
var_export( $name, true ),
|
|
560
|
+
var_export( $value, true )
|
|
561
|
+
)
|
|
562
|
+
);
|
|
620
563
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}
|
|
564
|
+
// Full constant definition statement, e.g.: define( 'WP_DEBUG', true );\\n
|
|
565
|
+
$define_tokens = array_slice( $definition_tokens, 1 );
|
|
624
566
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
// ^^^^^^
|
|
628
|
-
$open_parenthesis = 0;
|
|
629
|
-
$is_second_argument = true;
|
|
630
|
-
while ($token = array_pop($tokens)) {
|
|
631
|
-
$buffer[] = $token;
|
|
632
|
-
if ($token === ")" && $open_parenthesis === 0) {
|
|
633
|
-
// Final parenthesis of the define call.
|
|
634
|
-
break;
|
|
635
|
-
} else if ($token === "(" || $token === "[" || $token === "{") {
|
|
636
|
-
++$open_parenthesis;
|
|
637
|
-
} elseif ($token === ")" || $token === "]" || $token === "}") {
|
|
638
|
-
--$open_parenthesis;
|
|
639
|
-
} elseif ($token === "," && $open_parenthesis === 0) {
|
|
640
|
-
// This define call has more than 2 arguments! The third one is the
|
|
641
|
-
// boolean value indicating $is_case_insensitive. Let's continue capturing
|
|
642
|
-
// to $third_arg_buffer.
|
|
643
|
-
$is_second_argument = false;
|
|
644
|
-
}
|
|
645
|
-
if ($is_second_argument) {
|
|
646
|
-
$value_buffer[] = $token;
|
|
647
|
-
} else {
|
|
648
|
-
$third_arg_buffer[] = $token;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
567
|
+
// The value of the constant, e.g.: "my-database-name"
|
|
568
|
+
$value_tokens = array_slice( $definition_tokens, 7, -4 );
|
|
651
569
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
570
|
+
// Collect all locations where the constant value needs to be updated.
|
|
571
|
+
$updates = array();
|
|
572
|
+
foreach ( $this->tokens as $i => $token ) {
|
|
573
|
+
$is_string_token = is_array( $token ) && T_STRING === $token[0];
|
|
574
|
+
if ( $is_string_token && 'define' === strtolower( $token[1] ) ) {
|
|
575
|
+
$args = $this->collect_function_call_argument_locations( $i );
|
|
576
|
+
$const_name = $this->evaluate_constant_name(
|
|
577
|
+
array_slice( $this->tokens, $args[0][0], $args[0][1] )
|
|
578
|
+
);
|
|
661
579
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
if (is_array($token)) {
|
|
668
|
-
if ($token[0] === T_WHITESPACE || $token[0] === T_COMMENT || $token[0] === T_DOC_COMMENT) {
|
|
669
|
-
continue;
|
|
670
|
-
} else if ($token[0] === T_STRING || $token[0] === T_CONSTANT_ENCAPSED_STRING) {
|
|
671
|
-
$name_token = $token;
|
|
672
|
-
$name_token_index = $k;
|
|
673
|
-
} else {
|
|
674
|
-
$name_is_literal = false;
|
|
675
|
-
break;
|
|
676
|
-
}
|
|
677
|
-
} else if ($token !== "(" && $token !== ")") {
|
|
678
|
-
$name_is_literal = false;
|
|
679
|
-
break;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
580
|
+
if ( $name === $const_name ) {
|
|
581
|
+
$updates[] = $args[1];
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
682
585
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
if ($defined_expression === stringify_tokens(skip_whitespace($name_buffer))) {
|
|
690
|
-
$output = array_merge($output, $buffer);
|
|
691
|
-
continue 2;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
$output = array_merge(
|
|
695
|
-
$output,
|
|
696
|
-
["if(!defined("],
|
|
697
|
-
$name_buffer,
|
|
698
|
-
[")) {\\n "],
|
|
699
|
-
['define('],
|
|
700
|
-
$name_buffer,
|
|
701
|
-
[','],
|
|
702
|
-
$value_buffer,
|
|
703
|
-
$third_arg_buffer,
|
|
704
|
-
[");"],
|
|
705
|
-
["\\n}\\n"]
|
|
706
|
-
);
|
|
707
|
-
continue;
|
|
708
|
-
}
|
|
586
|
+
// Modify the token array to define the constant. Apply updates in reverse
|
|
587
|
+
// order, so splices at earlier positions don't shift indices after them.
|
|
588
|
+
for ( $i = count( $updates ) - 1; $i >= 0; $i -= 1 ) {
|
|
589
|
+
list ( $value_start, $value_length ) = $updates[ $i ];
|
|
590
|
+
array_splice( $this->tokens, $value_start, $value_length, $value_tokens );
|
|
591
|
+
}
|
|
709
592
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
593
|
+
// If it's a new constant, inject it at the anchor location.
|
|
594
|
+
if ( 0 === count( $updates ) ) {
|
|
595
|
+
$anchor = $this->get_new_constant_location();
|
|
596
|
+
array_splice( $this->tokens, $anchor, 0, $define_tokens );
|
|
713
597
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
598
|
+
/*
|
|
599
|
+
* Ensure at least one newline (one "\\n") before the new constant.
|
|
600
|
+
* This must be done after inserting the constant definition in order
|
|
601
|
+
* to avoid shifting the anchor location when a new token is inserted.
|
|
602
|
+
*/
|
|
603
|
+
$this->ensure_newlines( $anchor - 1, 1 );
|
|
604
|
+
}
|
|
605
|
+
}
|
|
720
606
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
607
|
+
/**
|
|
608
|
+
* Define multiple constants in the wp-config.php file.
|
|
609
|
+
*
|
|
610
|
+
* @param array<string, mixed> $constants An array of name-value pairs of constants to define.
|
|
611
|
+
*/
|
|
612
|
+
public function define_constants( array $constants ): void {
|
|
613
|
+
foreach ( $constants as $name => $value ) {
|
|
614
|
+
$this->define_constant( $name, $value );
|
|
615
|
+
}
|
|
616
|
+
}
|
|
728
617
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
618
|
+
/**
|
|
619
|
+
* Inject code block into the wp-config.php file.
|
|
620
|
+
*
|
|
621
|
+
* @param string $code The code to inject.
|
|
622
|
+
*/
|
|
623
|
+
public function inject_code_block( string $code ): void {
|
|
624
|
+
// Tokenize the injected code for insertion in the token array.
|
|
625
|
+
$tokens = token_get_all( sprintf( '<?php %s', trim( $code ) ) );
|
|
626
|
+
$code_tokens = array_slice( $tokens, 1 );
|
|
627
|
+
|
|
628
|
+
// Inject the code at the anchor location.
|
|
629
|
+
$anchor = $this->get_injected_code_location();
|
|
630
|
+
array_splice( $this->tokens, $anchor, 0, $code_tokens );
|
|
631
|
+
|
|
632
|
+
/*
|
|
633
|
+
* Ensure empty line before and after the code block (at least two "\\n").
|
|
634
|
+
* This must be done after inserting the injected code, and the location
|
|
635
|
+
* AFTER must be updated prior to the location BEFORE, in order to avoid
|
|
636
|
+
* shifting the anchor location when a new token is inserted.
|
|
637
|
+
*/
|
|
638
|
+
$this->ensure_newlines( $anchor + count( $code_tokens ), 2 );
|
|
639
|
+
$this->ensure_newlines( $anchor - 1, 2 );
|
|
640
|
+
}
|
|
740
641
|
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
$prepend,
|
|
754
|
-
[
|
|
755
|
-
"define(",
|
|
756
|
-
var_export($name, true),
|
|
757
|
-
',',
|
|
758
|
-
var_export($value, true),
|
|
759
|
-
");\\n"
|
|
760
|
-
]
|
|
761
|
-
);
|
|
762
|
-
}
|
|
763
|
-
$prepend[] = "?>";
|
|
764
|
-
$output = array_merge(
|
|
765
|
-
$prepend,
|
|
766
|
-
$output
|
|
767
|
-
);
|
|
768
|
-
}
|
|
642
|
+
/**
|
|
643
|
+
* Remove code block defined by two comment fragments from the wp-config.php file.
|
|
644
|
+
*
|
|
645
|
+
* @param string $from_comment_fragment A comment fragment from which to remove the code.
|
|
646
|
+
* @param string $to_comment_fragment A comment fragment to which to remove the code.
|
|
647
|
+
*/
|
|
648
|
+
public function remove_code_block( string $from_comment_fragment, string $to_comment_fragment ): void {
|
|
649
|
+
$start = $this->find_first_token_location( T_COMMENT, $from_comment_fragment );
|
|
650
|
+
$end = $this->find_first_token_location( T_COMMENT, $to_comment_fragment );
|
|
651
|
+
if ( null === $start || null === $end ) {
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
769
654
|
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}
|
|
655
|
+
// Remove the code, including the comment fragments.
|
|
656
|
+
array_splice( $this->tokens, $start, $end - $start + 1 );
|
|
773
657
|
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
}
|
|
658
|
+
// If previous and next tokens are whitespace, merge them.
|
|
659
|
+
$prev = $this->tokens[ $start - 1 ];
|
|
660
|
+
$next = $this->tokens[ $start ] ?? null;
|
|
661
|
+
if (
|
|
662
|
+
is_array( $prev ) && T_WHITESPACE === $prev[0]
|
|
663
|
+
&& is_array( $next ) && T_WHITESPACE === $next[0]
|
|
664
|
+
) {
|
|
665
|
+
$this->tokens[ $start - 1 ][1] = $prev[1] . $next[1];
|
|
666
|
+
array_splice( $this->tokens, $start, 1 );
|
|
667
|
+
}
|
|
785
668
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
669
|
+
// Remove up to two empty lines (before & after), keeping at least one.
|
|
670
|
+
$token = $this->tokens[ $start - 1 ];
|
|
671
|
+
if ( is_array( $token ) && T_WHITESPACE === $token[0] ) {
|
|
672
|
+
$newlines = substr_count( $token[1], "\\n" );
|
|
673
|
+
if ( $newlines > 2 ) {
|
|
674
|
+
$limit = min( $newlines - 2, 4 );
|
|
675
|
+
$value = $token[1];
|
|
676
|
+
for ( $i = 0; $limit > 0; $i += 1 ) {
|
|
677
|
+
if ( "\\n" === $value[ $i ] ) {
|
|
678
|
+
$value = substr_replace( $value, '', $i, 1 );
|
|
679
|
+
$limit -= 1;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
$this->tokens[ $start - 1 ][1] = $value;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Parse arguments of a function call and collect their locations.
|
|
689
|
+
*
|
|
690
|
+
* @param int $start The location of the first token of the function call.
|
|
691
|
+
* @return array<array<int, int>> The arguments of the function call.
|
|
692
|
+
*/
|
|
693
|
+
private function collect_function_call_argument_locations( int $start ): array {
|
|
694
|
+
// Find location of the opening parenthesis after the function name.
|
|
695
|
+
$i = $start;
|
|
696
|
+
while ( '(' !== $this->tokens[ $i ] ) {
|
|
697
|
+
$i += 1;
|
|
698
|
+
}
|
|
699
|
+
$i += 1;
|
|
700
|
+
|
|
701
|
+
// Collect all function call argument locations.
|
|
702
|
+
$args = array();
|
|
703
|
+
$arg_start = $this->skip_whitespace_and_comments( $i );
|
|
704
|
+
$parens_level = 0;
|
|
705
|
+
for ( $i = $arg_start; $i < count( $this->tokens ); $i += 1 ) {
|
|
706
|
+
// Skip whitespace and comments, but preserve the index of the last
|
|
707
|
+
// non-whitespace token to calculate the exact argument boundaries.
|
|
708
|
+
$prev_i = $i;
|
|
709
|
+
$i = $this->skip_whitespace_and_comments( $i );
|
|
710
|
+
$token = $this->tokens[ $i ];
|
|
711
|
+
|
|
712
|
+
if ( 0 === $parens_level && ( ',' === $token || ')' === $token ) ) {
|
|
713
|
+
$args[] = array( $arg_start, $prev_i - $arg_start );
|
|
714
|
+
if ( ',' === $token ) {
|
|
715
|
+
// Start of the next argument.
|
|
716
|
+
$arg_start = $this->skip_whitespace_and_comments( $i + 1 );
|
|
717
|
+
$i = $arg_start;
|
|
718
|
+
} else {
|
|
719
|
+
// End of the argument list.
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
} elseif ( '(' === $token || '[' === $token || '{' === $token ) {
|
|
723
|
+
$parens_level += 1;
|
|
724
|
+
} elseif ( ')' === $token || ']' === $token || '}' === $token ) {
|
|
725
|
+
$parens_level -= 1;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
return $args;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Evaluate the constant name value from its tokens.
|
|
733
|
+
*
|
|
734
|
+
* @param array $name_tokens The tokens containing the constant name.
|
|
735
|
+
* @return string|null The evaluated constant name.
|
|
736
|
+
*/
|
|
737
|
+
private function evaluate_constant_name( array $name_tokens ): ?string {
|
|
738
|
+
// Decide whether the array represents a constant name or an expression.
|
|
739
|
+
$name_token = null;
|
|
740
|
+
foreach ( $name_tokens as $token ) {
|
|
741
|
+
if ( $this->is_whitespace( $token ) ) {
|
|
742
|
+
continue;
|
|
743
|
+
}
|
|
744
|
+
if ( is_array( $token ) ) {
|
|
745
|
+
if ( T_STRING === $token[0] || T_CONSTANT_ENCAPSED_STRING === $token[0] ) {
|
|
746
|
+
$name_token = $token;
|
|
747
|
+
} else {
|
|
748
|
+
return null;
|
|
749
|
+
}
|
|
750
|
+
} elseif ( '(' !== $token && ')' !== $token ) {
|
|
751
|
+
return null;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if ( null === $name_token ) {
|
|
756
|
+
return null;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
// Get the constant name value.
|
|
760
|
+
return eval( 'return ' . $name_token[1] . ';' );
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Skip whitespace and comment tokens and return the location of the first
|
|
765
|
+
* non-whitespace and non-comment token after the specified start location.
|
|
766
|
+
*
|
|
767
|
+
* @param int $start The start location in the token array.
|
|
768
|
+
* @return int The location of the first non-whitespace and non-comment token.
|
|
769
|
+
*/
|
|
770
|
+
private function skip_whitespace_and_comments( int $start ): int {
|
|
771
|
+
for ( $i = $start; $i < count( $this->tokens ); $i += 1 ) {
|
|
772
|
+
if ( $this->is_whitespace( $this->tokens[ $i ] ) ) {
|
|
773
|
+
continue;
|
|
774
|
+
}
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
777
|
+
return $i;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Ensure minimum number of newlines are present at the given index.
|
|
782
|
+
*
|
|
783
|
+
* @param int $index The index of the token to ensure newlines.
|
|
784
|
+
* @param int $count The number of newlines that should be present.
|
|
785
|
+
*/
|
|
786
|
+
private function ensure_newlines( int $index, int $count ): void {
|
|
787
|
+
$token = $this->tokens[ $index ] ?? null;
|
|
788
|
+
if ( is_array( $token ) && ( T_WHITESPACE === $token[0] || T_OPEN_TAG === $token[0] ) ) {
|
|
789
|
+
$newlines = substr_count( $token[1], "\\n" );
|
|
790
|
+
if ( $newlines < $count ) {
|
|
791
|
+
$this->tokens[ $index ][1] .= str_repeat( "\\n", $count - $newlines );
|
|
792
|
+
}
|
|
793
|
+
} else {
|
|
794
|
+
$new_token = array( T_WHITESPACE, str_repeat( "\\n", $count ) );
|
|
795
|
+
array_splice( $this->tokens, $index, 0, array( $new_token ) );
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Get the location to inject new constant definitions in the token array.
|
|
801
|
+
*
|
|
802
|
+
* @return int The location for new constant definitions in the token array.
|
|
803
|
+
*/
|
|
804
|
+
private function get_new_constant_location(): int {
|
|
805
|
+
// First try to find the "That's all, stop editing!" comment.
|
|
806
|
+
$anchor = $this->find_first_token_location( T_COMMENT, "That's all, stop editing!" );
|
|
807
|
+
if ( null !== $anchor ) {
|
|
808
|
+
return $anchor;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
// If not found, try the "Absolute path to the WordPress directory." doc comment.
|
|
812
|
+
$anchor = $this->find_first_token_location( T_DOC_COMMENT, 'Absolute path to the WordPress directory.' );
|
|
813
|
+
if ( null !== $anchor ) {
|
|
814
|
+
return $anchor;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
// If not found, try the "Sets up WordPress vars and included files." doc comment.
|
|
818
|
+
$anchor = $this->find_first_token_location( T_DOC_COMMENT, 'Sets up WordPress vars and included files.' );
|
|
819
|
+
if ( null !== $anchor ) {
|
|
820
|
+
return $anchor;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
// If not found, try "require_once ABSPATH . 'wp-settings.php';".
|
|
824
|
+
$anchor = $this->find_first_token_location( T_REQUIRE_ONCE );
|
|
825
|
+
if ( null !== $anchor ) {
|
|
826
|
+
return $anchor;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
// If not found, fall back to the PHP opening tag.
|
|
830
|
+
$open_tag_anchor = $this->find_first_token_location( T_OPEN_TAG );
|
|
831
|
+
if ( null !== $open_tag_anchor ) {
|
|
832
|
+
return $open_tag_anchor + 1;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
// If we still don't have an anchor, the file is not a valid PHP file.
|
|
836
|
+
throw new Exception( "The 'wp-config.php' file is not a valid PHP file." );
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Get the location to inject new code in the token array.
|
|
841
|
+
*
|
|
842
|
+
* @return int The location for injected code in the token array.
|
|
843
|
+
*/
|
|
844
|
+
private function get_injected_code_location(): int {
|
|
845
|
+
// First try to find the "/** Sets up WordPress vars and included files. */" comment.
|
|
846
|
+
$anchor = $this->find_first_token_location( T_DOC_COMMENT, 'Sets up WordPress vars and included files.' );
|
|
847
|
+
if ( null !== $anchor ) {
|
|
848
|
+
return $anchor;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// If not found, try "require_once ABSPATH . 'wp-settings.php';".
|
|
852
|
+
$anchor = $this->find_require_wp_settings_location();
|
|
853
|
+
if ( null !== $anchor ) {
|
|
854
|
+
return $anchor;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
// If not found, fall back to the PHP opening tag.
|
|
858
|
+
$open_tag_anchor = $this->find_first_token_location( T_OPEN_TAG );
|
|
859
|
+
if ( null !== $open_tag_anchor ) {
|
|
860
|
+
return $open_tag_anchor + 1;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
// If we still don't have an anchor, the file is not a valid PHP file.
|
|
864
|
+
throw new Exception( "The 'wp-config.php' file is not a valid PHP file." );
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Find location of the "wp-settings.php" require statement in the token array.
|
|
869
|
+
*
|
|
870
|
+
* This method searches for the following statement:
|
|
871
|
+
*
|
|
872
|
+
* require_once ABSPATH . 'wp-settings.php';
|
|
873
|
+
*
|
|
874
|
+
* @return int|null The location of the require statement.
|
|
875
|
+
*/
|
|
876
|
+
private function find_require_wp_settings_location(): ?int {
|
|
877
|
+
$require_anchor = $this->find_first_token_location( T_REQUIRE_ONCE );
|
|
878
|
+
if ( null === $require_anchor ) {
|
|
879
|
+
return null;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
$abspath = $this->tokens[ $require_anchor + 2 ] ?? null;
|
|
883
|
+
$path = $this->tokens[ $require_anchor + 6 ] ?? null;
|
|
884
|
+
if (
|
|
885
|
+
( is_array( $abspath ) && 'ABSPATH' === $abspath[1] )
|
|
886
|
+
&& ( is_array( $path ) && "'wp-settings.php'" === $path[1] )
|
|
887
|
+
) {
|
|
888
|
+
return $require_anchor;
|
|
889
|
+
}
|
|
890
|
+
return null;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Find location of the first token of a given type in the token array.
|
|
895
|
+
*
|
|
896
|
+
* @param int $type The type of the token.
|
|
897
|
+
* @param string $search Optional. A search string to match against the token content.
|
|
898
|
+
* @return int|null The location of the first token.
|
|
899
|
+
*/
|
|
900
|
+
private function find_first_token_location( int $type, ?string $search = null ): ?int {
|
|
901
|
+
foreach ( $this->tokens as $i => $token ) {
|
|
902
|
+
if ( is_array( $token ) && $type === $token[0] ) {
|
|
903
|
+
if ( null === $search || false !== strpos( $token[1], $search ) ) {
|
|
904
|
+
return $i;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
return null;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Check if a token is whitespace or a comment.
|
|
913
|
+
*
|
|
914
|
+
* @param array|string $token The token to check.
|
|
915
|
+
* @return bool True if the token is whitespace or a comment.
|
|
916
|
+
*/
|
|
917
|
+
private function is_whitespace( $token ): bool {
|
|
918
|
+
return is_array( $token )
|
|
919
|
+
&& ( T_WHITESPACE === $token[0] || T_COMMENT === $token[0] || T_DOC_COMMENT === $token[0] );
|
|
920
|
+
}
|
|
795
921
|
}
|
|
796
|
-
`;async function
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
`})).
|
|
922
|
+
`;async function K_(e,t){const r=Te(t,"wp-config.php"),i={DB_NAME:"wordpress"};if(!e.fileExists(r)&&e.fileExists(Te(t,"wp-config-sample.php"))&&await e.writeFile(r,await e.readFileAsBuffer(Te(t,"wp-config-sample.php"))),!e.fileExists(r))return;const a=qr({wpConfigPath:r,constants:i});if((await e.run({code:`${wd}
|
|
923
|
+
$wp_config_path = ${a.wpConfigPath};
|
|
924
|
+
$transformer = WP_Config_Transformer::from_file($wp_config_path);
|
|
925
|
+
foreach ( ${a.constants} as $name => $value ) {
|
|
926
|
+
if ( ! $transformer->constant_exists( $name ) ) {
|
|
927
|
+
$transformer->define_constant($name, $value);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
$transformer->to_file($wp_config_path);
|
|
931
|
+
`})).errors.length>0)throw new Error("Failed to auto-configure wp-config.php.")}async function X_(e,t,r){const i=qr({wpConfigPath:t,constants:r});if((await e.run({code:`${wd}
|
|
932
|
+
$wp_config_path = ${i.wpConfigPath};
|
|
933
|
+
$transformer = WP_Config_Transformer::from_file($wp_config_path);
|
|
934
|
+
$transformer->define_constants(${i.constants});
|
|
935
|
+
$transformer->to_file($wp_config_path);
|
|
936
|
+
`})).errors.length>0)throw new Error("Failed to rewrite constants in wp-config.php.")}const Si=async(e,{consts:t,method:r="define-before-run"})=>{switch(r){case"define-before-run":await J_(e,t);break;case"rewrite-wp-config":{const i=await e.documentRoot,a=Te(i,"/wp-config.php");await X_(e,a,t);break}default:throw new Error(`Invalid method: ${r}`)}};async function J_(e,t){for(const r in t)await e.defineConstant(r,t[r])}const zo=async(e,{options:t})=>{const r=await e.documentRoot;await e.run({code:`<?php
|
|
806
937
|
include ${lt(r)} . '/wp-load.php';
|
|
807
938
|
$site_options = ${lt(t)};
|
|
808
939
|
foreach($site_options as $name => $value) {
|
|
809
940
|
update_option($name, $value);
|
|
810
941
|
}
|
|
811
942
|
echo "Success";
|
|
812
|
-
`})},
|
|
943
|
+
`})},bd=async(e,{meta:t,userId:r})=>{const i=await e.documentRoot;await e.run({code:`<?php
|
|
813
944
|
include ${lt(i)} . '/wp-load.php';
|
|
814
945
|
$meta = ${lt(t)};
|
|
815
946
|
foreach($meta as $name => $value) {
|
|
816
947
|
update_user_meta(${lt(r)}, $name, $value);
|
|
817
948
|
}
|
|
818
|
-
`})},
|
|
949
|
+
`})},Ho="/tmp/wp-cli.phar",Q_={resource:"url",url:"https://playground.wordpress.net/wp-cli.phar"},_d=async(e,t=Ho)=>{if(!await e.fileExists(t))throw new Error(`wp-cli.phar not found at ${t}.
|
|
819
950
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
820
951
|
{
|
|
821
952
|
"extraLibraries": [ "wp-cli" ]
|
|
822
953
|
}
|
|
823
954
|
Read more about it in the documentation.
|
|
824
|
-
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},
|
|
955
|
+
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},Vo=async(e,{command:t,wpCliPath:r=Ho})=>{await _d(e,r);let i;if(typeof t=="string"?(t=t.trim(),i=ev(t)):i=t,i.shift()!=="wp")throw new Error('The first argument must be "wp".');let s=!1;const n=i.map(p=>p.startsWith("wordpress/")?(s=!0,`/${p}`):p);s&&Oe.error(`
|
|
825
956
|
The wp-cli step in your Blueprint refers to a relative path.
|
|
826
957
|
|
|
827
958
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -846,7 +977,7 @@ Use:
|
|
|
846
977
|
}
|
|
847
978
|
|
|
848
979
|
This will ensure your code works reliably regardless of the current working directory.
|
|
849
|
-
`.trim());const o=await e.documentRoot;await e.writeFile("/tmp/stdout",""),await e.writeFile("/tmp/stderr",""),await e.writeFile(
|
|
980
|
+
`.trim());const o=await e.documentRoot;await e.writeFile("/tmp/stdout",""),await e.writeFile("/tmp/stderr",""),await e.writeFile(Te(o,"run-cli.php"),`<?php
|
|
850
981
|
// Set up the environment to emulate a shell script
|
|
851
982
|
// call.
|
|
852
983
|
|
|
@@ -868,9 +999,9 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
868
999
|
define('STDERR', fopen('php://stderr', 'wb'));
|
|
869
1000
|
|
|
870
1001
|
require( ${lt(r)} );
|
|
871
|
-
`);const l=await e.run({scriptPath:
|
|
1002
|
+
`);const l=await e.run({scriptPath:Te(o,"run-cli.php")});if(l.exitCode!==0)throw new Error(l.errors);return l};function ev(e){let i=0,a="";const s=[];let n="";for(let o=0;o<e.length;o++){const l=e[o];i===0?l==='"'||l==="'"?(i=1,a=l):l.match(/\s/)?(n&&s.push(n),n=""):n+=l:i===1&&(l==="\\"?(o++,n+=e[o]):l===a?(i=0,a=""):n+=l)}return n&&s.push(n),s}const vd=async(e,{wpCliPath:t})=>{await _d(e,t),await Si(e,{consts:{WP_ALLOW_MULTISITE:1}});const r=new URL(await e.absoluteUrl);if(r.port!==""){let p=`The current host is ${r.host}, but WordPress multisites do not support custom ports.`;throw r.hostname==="localhost"&&(p+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(p)}const i=r.pathname.replace(/\/$/,"")+"/",a=`${r.protocol}//${r.hostname}${i}`;await zo(e,{options:{siteurl:a,home:a}}),await Vo(e,{command:`wp core multisite-convert --base="${i}"`});const n=`${await e.documentRoot}/wp-config.php`,o=await e.readFileAsText(n);let l=o;o.includes("$_SERVER['HTTP_HOST']")||(l=o.replace(/^<\?php\s*/i,`<?php
|
|
872
1003
|
$_SERVER['HTTP_HOST'] = ${lt(r.hostname)};
|
|
873
|
-
`)),await e.writeFile(n,l)},
|
|
1004
|
+
`)),await e.writeFile(n,l)},xd=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Oe.error(`
|
|
874
1005
|
The cp() step in your Blueprint refers to a relative path.
|
|
875
1006
|
|
|
876
1007
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -884,7 +1015,7 @@ Instead of: cp({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.
|
|
|
884
1015
|
Use: cp({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
|
|
885
1016
|
|
|
886
1017
|
This will ensure your code works reliably regardless of the current working directory.
|
|
887
|
-
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.writeFile(r,await e.readFileAsBuffer(t))},
|
|
1018
|
+
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.writeFile(r,await e.readFileAsBuffer(t))},kd=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Oe.error(`
|
|
888
1019
|
The mv() step in your Blueprint refers to a relative path.
|
|
889
1020
|
|
|
890
1021
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -898,7 +1029,7 @@ Instead of: mv({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.
|
|
|
898
1029
|
Use: mv({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
|
|
899
1030
|
|
|
900
1031
|
This will ensure your code works reliably regardless of the current working directory.
|
|
901
|
-
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.mv(t,r)},
|
|
1032
|
+
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.mv(t,r)},Pd=async(e,{path:t})=>{t.startsWith("/")||Oe.error(`
|
|
902
1033
|
The mkdir() step in your Blueprint refers to a relative path.
|
|
903
1034
|
|
|
904
1035
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -912,7 +1043,7 @@ Instead of: mkdir({ path: 'wordpress/my-new-folder' });
|
|
|
912
1043
|
Use: mkdir({ path: '/wordpress/my-new-folder' });
|
|
913
1044
|
|
|
914
1045
|
This will ensure your code works reliably regardless of the current working directory.
|
|
915
|
-
`.trim()),await e.mkdir(t)},
|
|
1046
|
+
`.trim()),await e.mkdir(t)},Ed=async(e,{path:t})=>{t.startsWith("/")||(Oe.error(`
|
|
916
1047
|
The rmdir() step in your Blueprint refers to a relative path.
|
|
917
1048
|
|
|
918
1049
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -926,7 +1057,7 @@ Instead of: rmdir({ path: 'wordpress/wp-load.php' });
|
|
|
926
1057
|
Use: rmdir({ path: '/wordpress/wp-load.php' });
|
|
927
1058
|
|
|
928
1059
|
This will ensure your code works reliably regardless of the current working directory.
|
|
929
|
-
`.trim()),t=`/${t}`),await e.rmdir(t)},
|
|
1060
|
+
`.trim()),t=`/${t}`),await e.rmdir(t)},Ti=async(e,{path:t,data:r})=>{r instanceof File&&(r=new Uint8Array(await r.arrayBuffer())),t.startsWith("/")||(Oe.error(`
|
|
930
1061
|
The writeFile() step in your Blueprint refers to a relative path.
|
|
931
1062
|
|
|
932
1063
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -940,7 +1071,7 @@ Instead of: writeFile({ path: 'wordpress/wp-load.php', data: '<?php echo "Hello
|
|
|
940
1071
|
Use: writeFile({ path: '/wordpress/wp-load.php', data: '<?php echo "Hello World!"; ?>' });
|
|
941
1072
|
|
|
942
1073
|
This will ensure your code works reliably regardless of the current working directory.
|
|
943
|
-
`.trim()),t=`/${t}`),t.startsWith("/wordpress/wp-content/mu-plugins")&&!await e.fileExists("/wordpress/wp-content/mu-plugins")&&await e.mkdir("/wordpress/wp-content/mu-plugins"),await e.writeFile(t,r)},
|
|
1074
|
+
`.trim()),t=`/${t}`),t.startsWith("/wordpress/wp-content/mu-plugins")&&!await e.fileExists("/wordpress/wp-content/mu-plugins")&&await e.mkdir("/wordpress/wp-content/mu-plugins"),await e.writeFile(t,r)},Sd=async(e,{writeToPath:t,filesTree:r})=>{t.startsWith("/")||(Oe.error(`
|
|
944
1075
|
The writeFiles() step in your Blueprint refers to a relative path.
|
|
945
1076
|
|
|
946
1077
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -954,7 +1085,7 @@ Instead of: writeFiles({ writeToPath: 'wordpress/wp-content/plugins/my-plugin',
|
|
|
954
1085
|
Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin', filesTree: { name: 'style.css': 'a { color: red; }' });
|
|
955
1086
|
|
|
956
1087
|
This will ensure your code works reliably regardless of the current working directory.
|
|
957
|
-
`.trim()),t=`/${t}`),await
|
|
1088
|
+
`.trim()),t=`/${t}`),await hi(e,t,r.files)},Zo=async(e,{siteUrl:t})=>{await Si(e,{consts:{WP_HOME:t,WP_SITEURL:t}})},Td=async(e,{file:t},r)=>{await tv(e,t,r)};async function tv(e,t,r){var i;(i=r==null?void 0:r.tracker)==null||i.setCaption("Importing content"),await Ti(e,{path:"/tmp/import.wxr",data:t}),await e.run({$_SERVER:{HTTPS:(await e.absoluteUrl).startsWith("https://")?"on":""},code:`<?php
|
|
958
1089
|
define('WP_LOAD_IMPORTERS', true);
|
|
959
1090
|
require 'wp-load.php';
|
|
960
1091
|
require 'wp-admin/includes/admin.php';
|
|
@@ -1003,7 +1134,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
1003
1134
|
$wp_import->import( getenv('IMPORT_FILE'), [
|
|
1004
1135
|
'rewrite_urls' => true,
|
|
1005
1136
|
] );
|
|
1006
|
-
`,env:{IMPORT_FILE:"/tmp/import.wxr",FETCH_ATTACHMENTS:"true"}})}const
|
|
1137
|
+
`,env:{IMPORT_FILE:"/tmp/import.wxr",FETCH_ATTACHMENTS:"true"}})}const Go=async(e,{themeSlug:t=""},r)=>{var a;(a=r==null?void 0:r.tracker)==null||a.setCaption("Importing theme starter content");const i=await e.documentRoot;await e.run({code:`<?php
|
|
1007
1138
|
|
|
1008
1139
|
/**
|
|
1009
1140
|
* Ensure that the customizer loads as an admin user.
|
|
@@ -1050,10 +1181,10 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
1050
1181
|
|
|
1051
1182
|
// Publish the changeset, which publishes the starter content.
|
|
1052
1183
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
1053
|
-
`})},
|
|
1184
|
+
`})},Oi=async(e,{zipFile:t,zipPath:r,extractToPath:i})=>{if(r)Oe.warn('The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.');else if(!t)throw new Error("Either zipPath or zipFile must be provided");await gd(e,t||r,i)},Yo=["db.php","plugins/akismet","plugins/hello.php","plugins/wordpress-importer","mu-plugins/sqlite-database-integration","mu-plugins/playground-includes","mu-plugins/0-playground.php","mu-plugins/0-sqlite.php","themes/twentytwenty","themes/twentytwentyone","themes/twentytwentytwo","themes/twentytwentythree","themes/twentytwentyfour","themes/twentytwentyfive","themes/twentytwentysix"],Od=async(e,{wordPressFilesZip:t,pathInZip:r=""})=>{const i=await e.documentRoot;let a=Te("/tmp","import");await e.mkdir(a),await Oi(e,{zipFile:t,extractToPath:a}),a=Te(a,r);const s=Te(a,"playground-export.json");let n=null;if(await e.fileExists(s))try{const g=await e.readFileAsText(s);n=JSON.parse(g).siteUrl,await e.unlink(s)}catch{}const o=Te(a,"wp-content"),l=Te(i,"wp-content");for(const g of Yo){const A=Te(o,g);await Lp(e,A);const y=Te(l,g);await e.fileExists(y)&&(await e.mkdir(za(A)),await e.mv(y,A))}const p=Te(a,"wp-content","database");await e.fileExists(p)||await e.mv(Te(i,"wp-content","database"),p);const c=await e.listFiles(a);for(const g of c)await Lp(e,Te(i,g)),await e.mv(Te(a,g),Te(i,g));await e.rmdir(a),await K_(e,i);const h=await e.absoluteUrl;n||(n=await nv(e,i)),await Zo(e,{siteUrl:h});const m=lt(Te(i,"wp-admin","upgrade.php"));await e.run({code:`<?php
|
|
1054
1185
|
$_GET['step'] = 'upgrade_db';
|
|
1055
1186
|
require ${m};
|
|
1056
|
-
`}),n&&n!==h&&await
|
|
1187
|
+
`}),n&&n!==h&&await rv(e,i,n,h)};function Ip(e){const t=e.match(/\/scope:[^/]+\/?/);return t?t[0].replace(/\/?$/,"/"):null}async function rv(e,t,r,i){const a=Ip(r),s=Ip(i);!a||!s||a!==s&&await e.run({code:`<?php
|
|
1057
1188
|
require_once getenv('DOCUMENT_ROOT') . '/wp-load.php';
|
|
1058
1189
|
global $wpdb;
|
|
1059
1190
|
|
|
@@ -1107,12 +1238,12 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
1107
1238
|
"UPDATE {$wpdb->comments} SET comment_author_url = REPLACE(comment_author_url, %s, %s) WHERE comment_author_url LIKE %s",
|
|
1108
1239
|
$old_scope, $new_scope, '%' . $wpdb->esc_like($old_scope) . '%'
|
|
1109
1240
|
));
|
|
1110
|
-
`,env:{DOCUMENT_ROOT:t,OLD_SCOPE:a,NEW_SCOPE:s}})}async function
|
|
1241
|
+
`,env:{DOCUMENT_ROOT:t,OLD_SCOPE:a,NEW_SCOPE:s}})}async function nv(e,t){const r=qr({documentRoot:t});return(await e.run({code:`<?php
|
|
1111
1242
|
require_once ${r.documentRoot} . '/wp-load.php';
|
|
1112
1243
|
global $wpdb;
|
|
1113
1244
|
$row = $wpdb->get_row("SELECT option_value FROM {$wpdb->options} WHERE option_name = 'siteurl'");
|
|
1114
1245
|
echo $row ? $row->option_value : '';
|
|
1115
|
-
`})).text.trim()||null}async function
|
|
1246
|
+
`})).text.trim()||null}async function Lp(e,t){await e.fileExists(t)&&(await e.isDir(t)?await e.rmdir(t):await e.unlink(t))}async function Ad(e){const t=await e.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function $d(e,{targetPath:t,zipFile:r,ifAlreadyInstalled:i="overwrite",targetFolderName:a=""}){const n=r.name.replace(/\.zip$/,""),o=Te(await e.documentRoot,"wp-content"),l=Te(o,Hs()),p=Te(l,"assets",n);await e.fileExists(p)&&await e.rmdir(l,{recursive:!0}),await e.mkdir(l);try{await Oi(e,{zipFile:r,extractToPath:p});let c=await e.listFiles(p,{prependPath:!0});c=c.filter(y=>!y.endsWith("/__MACOSX"));const h=c.length===1&&await e.isDir(c[0]);let m,g="";h?(g=c[0],m=c[0].split("/").pop()):(g=p,m=n),a&&a.length&&(m=a);const A=`${t}/${m}`;if(await e.fileExists(A)){if(!await e.isDir(A))throw new Error(`Cannot install asset ${m} to ${A} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`);if(i==="overwrite")await e.rmdir(A,{recursive:!0});else{if(i==="skip")return{assetFolderPath:A,assetFolderName:m};throw new Error(`Cannot install asset ${m} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${i}`)}}return await e.mv(g,A),{assetFolderPath:A,assetFolderName:m}}finally{await e.rmdir(l,{recursive:!0})}}const Rd=async(e,{pluginData:t,pluginZipFile:r,ifAlreadyInstalled:i,options:a={}},s)=>{r&&(t=r,Oe.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const n=Te(await e.documentRoot,"wp-content","plugins"),o="targetFolderName"in a?a.targetFolderName:"";let l="",p="";const c=async m=>{if(m.name.toLowerCase().endsWith(".zip"))return!0;const g=new Uint8Array(await m.arrayBuffer(),0,4);return g[0]===80&&g[1]===75&&g[2]===3&&g[3]===4};if(t instanceof File)if(await c(t)){const m=t.name.split("/").pop()||"plugin.zip";p=Ei(m),s==null||s.tracker.setCaption(`Installing the ${p} plugin`);const g=await $d(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/plugins`,targetFolderName:o});l=g.assetFolderPath,p=g.assetFolderName}else if(t.name.endsWith(".php")){const m=Te(n,t.name);await Ti(e,{path:m,data:t}),l=n,p=t.name}else throw new Error("pluginData looks like a file but does not look like a .zip or .php file.");else if(t){p=t.name,s==null||s.tracker.setCaption(`Installing the ${p} plugin`);const m=Te(n,o||t.name);await hi(e,m,t.files,{rmRoot:!0}),l=m}("activate"in a?a.activate:!0)&&await Mo(e,{pluginPath:l,pluginName:p},s)},Fd=async(e,{themeData:t,themeZipFile:r,ifAlreadyInstalled:i,options:a={}},s)=>{r&&(t=r,Oe.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const n="targetFolderName"in a?a.targetFolderName:"";let o="",l="";if(t instanceof File){const h=t.name.split("/").pop()||"theme.zip";l=Ei(h),s==null||s.tracker.setCaption(`Installing the ${l} theme`),o=(await $d(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/themes`,targetFolderName:n})).assetFolderName}else{l=t.name,o=n||l,s==null||s.tracker.setCaption(`Installing the ${l} theme`);const h=Te(await e.documentRoot,"wp-content","themes",o);await hi(e,h,t.files,{rmRoot:!0})}("activate"in a?a.activate:!0)&&await Wo(e,{themeFolderName:o},s),("importStarterContent"in a?a.importStarterContent:!1)&&await Go(e,{themeSlug:o},s)},Id=async(e,{username:t="admin"}={},r)=>{r==null||r.tracker.setCaption((r==null?void 0:r.initialCaption)||"Logging in"),e.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER",t)},Ld=async(e,t,r)=>{var a;(a=r==null?void 0:r.tracker)==null||a.setCaption("Resetting WordPress data");const i=await e.documentRoot;await e.run({env:{DOCROOT:i},code:`<?php
|
|
1116
1247
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
1117
1248
|
|
|
1118
1249
|
$GLOBALS['@pdo']->query('DELETE FROM wp_posts WHERE id > 0');
|
|
@@ -1126,11 +1257,11 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
1126
1257
|
|
|
1127
1258
|
$GLOBALS['@pdo']->query('DELETE FROM wp_commentmeta');
|
|
1128
1259
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
1129
|
-
`})},
|
|
1260
|
+
`})},Cd=async(e,{options:t})=>{await e.request({url:"/wp-admin/install.php?step=2",method:"POST",body:{language:"en",prefix:"wp_",weblog_title:"My WordPress Website",user_name:t.adminPassword||"admin",admin_password:t.adminPassword||"password",admin_password2:t.adminPassword||"password",Submit:"Install WordPress",pw_weak:"1",admin_email:"admin@localhost.com"}})},Dd=async(e,{selfContained:t=!1}={})=>{const r="/tmp/wordpress-playground.zip",i="/tmp/playground-export.json",a=await e.documentRoot,s=Te(a,"wp-content"),n=await e.absoluteUrl;await e.writeFile(i,new TextEncoder().encode(JSON.stringify({siteUrl:n})));let o=Yo;t&&(o=o.filter(h=>!h.startsWith("themes/twenty")).filter(h=>h!=="mu-plugins/sqlite-database-integration"));const l={[i]:"playground-export.json"};t&&(l[Te(a,"wp-config.php")]="wp-config.php");const p=qr({zipPath:r,wpContentPath:s,documentRoot:a,exceptPaths:o.map(h=>Te(a,"wp-content",h)),additionalPaths:l});await iv(e,`zipDir(${p.wpContentPath}, ${p.zipPath}, array(
|
|
1130
1261
|
'exclude_paths' => ${p.exceptPaths},
|
|
1131
1262
|
'zip_root' => ${p.documentRoot},
|
|
1132
1263
|
'additional_paths' => ${p.additionalPaths}
|
|
1133
|
-
));`);const c=await e.readFileAsBuffer(r);return e.unlink(r),e.unlink(i),c},
|
|
1264
|
+
));`);const c=await e.readFileAsBuffer(r);return e.unlink(r),e.unlink(i),c},sv=`<?php
|
|
1134
1265
|
|
|
1135
1266
|
function zipDir($root, $output, $options = array())
|
|
1136
1267
|
{
|
|
@@ -1190,10 +1321,10 @@ function join_paths()
|
|
|
1190
1321
|
|
|
1191
1322
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
1192
1323
|
}
|
|
1193
|
-
`;async function
|
|
1324
|
+
`;async function iv(e,t){return await e.run({code:sv+t})}const av=async(e,t)=>{const a=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${e}`)).json()).translations.find(s=>s.language.toLowerCase()===t.toLowerCase());if(!a)throw new Error(`Failed to get ${t} translation package for WordPress ${e}.`);return a.package},Nd=async(e,{language:t},r)=>{r==null||r.tracker.setCaption((r==null?void 0:r.initialCaption)||"Translating"),await e.defineConstant("WPLANG",t);const i=await e.documentRoot,a=(await e.run({code:`<?php
|
|
1194
1325
|
require '${i}/wp-includes/version.php';
|
|
1195
1326
|
echo $wp_version;
|
|
1196
|
-
`})).text,s=[{url:await
|
|
1327
|
+
`})).text,s=[{url:await av(a,t),type:"core"}],o=(await e.run({code:`<?php
|
|
1197
1328
|
require_once('${i}/wp-load.php');
|
|
1198
1329
|
require_once('${i}/wp-admin/includes/plugin.php');
|
|
1199
1330
|
echo json_encode(
|
|
@@ -1228,28 +1359,28 @@ function join_paths()
|
|
|
1228
1359
|
wp_get_themes()
|
|
1229
1360
|
)
|
|
1230
1361
|
)
|
|
1231
|
-
);`})).json;for(const{slug:m,version:g}of p)s.push({url:`https://downloads.wordpress.org/translation/theme/${m}/${g}/${t}.zip`,type:"theme"});await e.isDir(`${i}/wp-content/languages/plugins`)||await e.mkdir(`${i}/wp-content/languages/plugins`),await e.isDir(`${i}/wp-content/languages/themes`)||await e.mkdir(`${i}/wp-content/languages/themes`);const c=new
|
|
1362
|
+
);`})).json;for(const{slug:m,version:g}of p)s.push({url:`https://downloads.wordpress.org/translation/theme/${m}/${g}/${t}.zip`,type:"theme"});await e.isDir(`${i}/wp-content/languages/plugins`)||await e.mkdir(`${i}/wp-content/languages/plugins`),await e.isDir(`${i}/wp-content/languages/themes`)||await e.mkdir(`${i}/wp-content/languages/themes`);const c=new Xn({concurrency:5}),h=s.map(({url:m,type:g})=>c.run(async()=>{try{const A=await fetch(m);if(!A.ok)throw new Error(`Failed to download translations for ${g}: ${A.statusText}`);let y=`${i}/wp-content/languages`;g==="plugin"?y+="/plugins":g==="theme"&&(y+="/themes"),await gd(e,new File([await A.arrayBuffer()],`${t}-${g}.zip`),y)}catch(A){if(g==="core")throw new Error(`Failed to download translations for WordPress. Please check if the language code ${t} is correct. You can find all available languages and translations on https://translate.wordpress.org/.`);Oe.warn(`Error downloading translations for ${g}: ${A}`)}}));await Promise.all(h)},ov=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:Mo,activateTheme:Wo,cp:xd,defineSiteUrl:Zo,defineWpConfigConsts:Si,enableMultisite:vd,exportWXR:Ad,importThemeStarterContent:Go,importWordPressFiles:Od,importWxr:Td,installPlugin:Rd,installTheme:Fd,login:Id,mkdir:Pd,mv:kd,request:yd,resetData:Ld,rm:fi,rmdir:Ed,runPHP:dd,runPHPWithOptions:hd,runSql:md,runWpInstallationWizard:Cd,setSiteLanguage:Nd,setSiteOptions:zo,unzip:Oi,updateUserMeta:bd,wpCLI:Vo,writeFile:Ti,writeFiles:Sd,zipWpContent:Dd},Symbol.toStringTag,{value:"Module"})),lv={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/BlueprintPHPVersion"},{type:"string",const:"latest"}],description:`The preferred PHP version to use. If not specified, the latest supported version will be used.
|
|
1232
1363
|
|
|
1233
|
-
Note: PHP 7.2 and 7.3 are deprecated and will be automatically upgraded to 7.4.`},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean",description:"Should boot with support for Intl dynamic extension"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},rv={additionalProperties:{type:["string","boolean","number"]}},Rd=Object.prototype.hasOwnProperty,nv={enum:["8.5","8.4","8.3","8.2","8.1","8.0","7.4"]};function In(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(typeof e!="string"){const h={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[h]:s.push(h),n++}if(!(e==="8.5"||e==="8.4"||e==="8.3"||e==="8.2"||e==="8.1"||e==="8.0"||e==="7.4")){const h={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:nv.enum},message:"must be equal to one of the allowed values"};s===null?s=[h]:s.push(h),n++}var c=p===n;if(l=l||c,!l){const h=n;if(typeof e!="string"){const g={instancePath:t,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[g]:s.push(g),n++}if(e!=="7.2"){const g={instancePath:t,schemaPath:"#/anyOf/1/const",keyword:"const",params:{allowedValue:"7.2"},message:"must be equal to constant"};s===null?s=[g]:s.push(g),n++}var c=h===n;if(l=l||c,!l){const g=n;if(typeof e!="string"){const y={instancePath:t,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),n++}if(e!=="7.3"){const y={instancePath:t,schemaPath:"#/anyOf/2/const",keyword:"const",params:{allowedValue:"7.3"},message:"must be equal to constant"};s===null?s=[y]:s.push(y),n++}var c=g===n;l=l||c}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const h={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[h]:s.push(h),n++,In.errors=s,!1}return In.errors=s,n===0}const Ua={validate:_e},sv={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.resource===void 0&&(l="resource")||e.url===void 0&&(l="url")||e.ref===void 0&&(l="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:sv.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const iv={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Na={validate:Fr};function Fr(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const h=n,m=n;let g=!1;const T=n;Na.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?Na.validate.errors:s.concat(Na.validate.errors),n=s.length);var o=T===n;if(g=g||o,!g){const y=n;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const b={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:iv.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[b]:s.push(b),n++}var o=y===n;g=g||o}if(g)n=m,s!==null&&(m?s.length=m:s=null);else{const y={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[y]:s.push(y),n++,Fr.errors=s,!1}var l=h===n;if(!l)break}else return Fr.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Fr.errors=s,n===0}function Ht(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.files===void 0&&(l="files")||e.name===void 0&&(l="name")||e.resource===void 0&&(l="resource"))return Ht.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Ht.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const h=n;if(typeof c!="string")return Ht.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Ht.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=h===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;Fr(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?Fr.errors:s.concat(Fr.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return Ht.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return Ht.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ht.errors=s,n===0}function ut(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(l=l||c,!l){const h=n;Ht(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Ht.errors:s.concat(Ht.errors),n=s.length);var c=h===n;l=l||c}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const h={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[h]:s.push(h),n++,ut.errors=s,!1}return ut.errors=s,n===0}function Dt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let p;if(e.resource===void 0&&(p="resource")||e.inner===void 0&&(p="inner"))return Dt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:p},message:"must have required property '"+p+"'"}],!1;{const c=n;for(const h in e)if(!(h==="resource"||h==="inner"||h==="name"))return Dt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"}],!1;if(c===n){if(e.resource!==void 0){let h=e.resource;const m=n;if(typeof h!="string")return Dt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(h!=="zip")return Dt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"zip"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.inner!==void 0){let h=e.inner;const m=n,g=n;let T=!1;const y=n;Ua.validate(h,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?Ua.validate.errors:s.concat(Ua.validate.errors),n=s.length);var l=y===n;if(T=T||l,!T){const b=n;ut(h,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var l=b===n;T=T||l}if(T)n=g,s!==null&&(g?s.length=g:s=null);else{const b={instancePath:t+"/inner",schemaPath:"#/properties/inner/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[b]:s.push(b),n++,Dt.errors=s,!1}var o=m===n}else var o=!0;if(o)if(e.name!==void 0){const h=n;if(typeof e.name!="string")return Dt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=h===n}else var o=!0}}}}else return Dt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Dt.errors=s,n===0}function _e(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let $;if(e.resource===void 0&&($="resource")||e.path===void 0&&($="path")){const C={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};s===null?s=[C]:s.push(C),n++}else{const C=n;for(const E in e)if(!(E==="resource"||E==="path")){const O={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"};s===null?s=[O]:s.push(O),n++;break}if(C===n){if(e.resource!==void 0){let E=e.resource;const O=n;if(typeof E!="string"){const L={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}if(E!=="vfs"){const L={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[L]:s.push(L),n++}var h=O===n}else var h=!0;if(h)if(e.path!==void 0){const E=n;if(typeof e.path!="string"){const L={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}var h=E===n}else var h=!0}}}else{const $={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),n++}var m=p===n;if(l=l||m,!l){const $=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let O;if(e.resource===void 0&&(O="resource")||e.name===void 0&&(O="name")||e.contents===void 0&&(O="contents")){const L={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:O},message:"must have required property '"+O+"'"};s===null?s=[L]:s.push(L),n++}else{const L=n;for(const P in e)if(!(P==="resource"||P==="name"||P==="contents")){const S={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"};s===null?s=[S]:s.push(S),n++;break}if(L===n){if(e.resource!==void 0){let P=e.resource;const S=n;if(typeof P!="string"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),n++}if(P!=="literal"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[D]:s.push(D),n++}var g=S===n}else var g=!0;if(g){if(e.name!==void 0){const P=n;if(typeof e.name!="string"){const D={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),n++}var g=P===n}else var g=!0;if(g)if(e.contents!==void 0){let P=e.contents;const S=n,D=n;let F=!1;const B=n;if(typeof P!="string"){const W={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[W]:s.push(W),n++}var T=B===n;if(F=F||T,!F){const W=n;if(n===W)if(P&&typeof P=="object"&&!Array.isArray(P)){let V;if(P.BYTES_PER_ELEMENT===void 0&&(V="BYTES_PER_ELEMENT")||P.buffer===void 0&&(V="buffer")||P.byteLength===void 0&&(V="byteLength")||P.byteOffset===void 0&&(V="byteOffset")||P.length===void 0&&(V="length")){const se={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[se]:s.push(se),n++}else{const se=n;for(const G in P)if(!(G==="BYTES_PER_ELEMENT"||G==="buffer"||G==="byteLength"||G==="byteOffset"||G==="length")){let Q=P[G];const ee=n;if(!(typeof Q=="number"&&isFinite(Q))){const Z={instancePath:t+"/contents/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var y=ee===n;if(!y)break}if(se===n){if(P.BYTES_PER_ELEMENT!==void 0){let G=P.BYTES_PER_ELEMENT;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),n++}var w=Q===n}else var w=!0;if(w){if(P.buffer!==void 0){let G=P.buffer;const Q=n;if(n===Q)if(G&&typeof G=="object"&&!Array.isArray(G)){let Z;if(G.byteLength===void 0&&(Z="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in G)if(ie!=="byteLength"){const ae={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n&&G.byteLength!==void 0){let ie=G.byteLength;if(!(typeof ie=="number"&&isFinite(ie))){const ae={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}}}}else{const Z={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var w=Q===n}else var w=!0;if(w){if(P.byteLength!==void 0){let G=P.byteLength;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const Z={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=Q===n}else var w=!0;if(w){if(P.byteOffset!==void 0){let G=P.byteOffset;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const Z={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=Q===n}else var w=!0;if(w)if(P.length!==void 0){let G=P.length;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const Z={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=Q===n}else var w=!0}}}}}}else{const V={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),n++}var T=W===n;F=F||T}if(F)n=D,s!==null&&(D?s.length=D:s=null);else{const W={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[W]:s.push(W),n++}var g=S===n}else var g=!0}}}}else{const O={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[O]:s.push(O),n++}var m=$===n;if(l=l||m,!l){const O=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let S;if(e.resource===void 0&&(S="resource")||e.slug===void 0&&(S="slug")){const D={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[D]:s.push(D),n++}else{const D=n;for(const F in e)if(!(F==="resource"||F==="slug")){const B={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties"};s===null?s=[B]:s.push(B),n++;break}if(D===n){if(e.resource!==void 0){let F=e.resource;const B=n;if(typeof F!="string"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[q]:s.push(q),n++}if(F!=="wordpress.org/themes"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[q]:s.push(q),n++}var b=B===n}else var b=!0;if(b)if(e.slug!==void 0){const F=n;if(typeof e.slug!="string"){const q={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[q]:s.push(q),n++}var b=F===n}else var b=!0}}}else{const S={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var m=O===n;if(l=l||m,!l){const S=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.resource===void 0&&(B="resource")||e.slug===void 0&&(B="slug")){const q={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"};s===null?s=[q]:s.push(q),n++}else{const q=n;for(const W in e)if(!(W==="resource"||W==="slug")){const X={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:W},message:"must NOT have additional properties"};s===null?s=[X]:s.push(X),n++;break}if(q===n){if(e.resource!==void 0){let W=e.resource;const X=n;if(typeof W!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}if(W!=="wordpress.org/plugins"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};s===null?s=[V]:s.push(V),n++}var A=X===n}else var A=!0;if(A)if(e.slug!==void 0){const W=n;if(typeof e.slug!="string"){const V={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var A=W===n}else var A=!0}}}else{const B={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[B]:s.push(B),n++}var m=S===n;if(l=l||m,!l){const B=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let X;if(e.resource===void 0&&(X="resource")||e.url===void 0&&(X="url")){const V={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:X},message:"must have required property '"+X+"'"};s===null?s=[V]:s.push(V),n++}else{const V=n;for(const se in e)if(!(se==="resource"||se==="url"||se==="caption")){const G={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"};s===null?s=[G]:s.push(G),n++;break}if(V===n){if(e.resource!==void 0){let se=e.resource;const G=n;if(typeof se!="string"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}if(se!=="url"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[Q]:s.push(Q),n++}var k=G===n}else var k=!0;if(k){if(e.url!==void 0){const se=n;if(typeof e.url!="string"){const Q={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}var k=se===n}else var k=!0;if(k)if(e.caption!==void 0){const se=n;if(typeof e.caption!="string"){const Q={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}var k=se===n}else var k=!0}}}}else{const X={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[X]:s.push(X),n++}var m=B===n;if(l=l||m,!l){const X=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let G;if(e.resource===void 0&&(G="resource")||e.path===void 0&&(G="path")){const Q={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};s===null?s=[Q]:s.push(Q),n++}else{const Q=n;for(const ee in e)if(!(ee==="resource"||ee==="path")){const Z={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[Z]:s.push(Z),n++;break}if(Q===n){if(e.resource!==void 0){let ee=e.resource;const Z=n;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}if(ee!=="bundled"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};s===null?s=[fe]:s.push(fe),n++}var I=Z===n}else var I=!0;if(I)if(e.path!==void 0){const ee=n;if(typeof e.path!="string"){const fe={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}var I=ee===n}else var I=!0}}}else{const G={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[G]:s.push(G),n++}var m=X===n;if(l=l||m,!l){const G=n;Dt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Dt.errors:s.concat(Dt.errors),n=s.length);var m=G===n;l=l||m}}}}}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const $={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,_e.errors=s,!1}return _e.errors=s,n===0}const Os={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
1364
|
+
Note: PHP 7.2 and 7.3 are deprecated and will be automatically upgraded to 7.4.`},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean",description:"Should boot with support for Intl dynamic extension"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},fv={additionalProperties:{type:["string","boolean","number"]}},jd=Object.prototype.hasOwnProperty,pv={enum:["8.5","8.4","8.3","8.2","8.1","8.0","7.4"]};function Dn(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(typeof e!="string"){const h={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[h]:s.push(h),n++}if(!(e==="8.5"||e==="8.4"||e==="8.3"||e==="8.2"||e==="8.1"||e==="8.0"||e==="7.4")){const h={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:pv.enum},message:"must be equal to one of the allowed values"};s===null?s=[h]:s.push(h),n++}var c=p===n;if(l=l||c,!l){const h=n;if(typeof e!="string"){const g={instancePath:t,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[g]:s.push(g),n++}if(e!=="7.2"){const g={instancePath:t,schemaPath:"#/anyOf/1/const",keyword:"const",params:{allowedValue:"7.2"},message:"must be equal to constant"};s===null?s=[g]:s.push(g),n++}var c=h===n;if(l=l||c,!l){const g=n;if(typeof e!="string"){const y={instancePath:t,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),n++}if(e!=="7.3"){const y={instancePath:t,schemaPath:"#/anyOf/2/const",keyword:"const",params:{allowedValue:"7.3"},message:"must be equal to constant"};s===null?s=[y]:s.push(y),n++}var c=g===n;l=l||c}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const h={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[h]:s.push(h),n++,Dn.errors=s,!1}return Dn.errors=s,n===0}const Ba={validate:_e},cv={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.resource===void 0&&(l="resource")||e.url===void 0&&(l="url")||e.ref===void 0&&(l="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:cv.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const uv={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},qa={validate:Ir};function Ir(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const h=n,m=n;let g=!1;const A=n;qa.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?qa.validate.errors:s.concat(qa.validate.errors),n=s.length);var o=A===n;if(g=g||o,!g){const y=n;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const b={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:uv.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[b]:s.push(b),n++}var o=y===n;g=g||o}if(g)n=m,s!==null&&(m?s.length=m:s=null);else{const y={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[y]:s.push(y),n++,Ir.errors=s,!1}var l=h===n;if(!l)break}else return Ir.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ir.errors=s,n===0}function Ht(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.files===void 0&&(l="files")||e.name===void 0&&(l="name")||e.resource===void 0&&(l="resource"))return Ht.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Ht.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const h=n;if(typeof c!="string")return Ht.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Ht.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=h===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;Ir(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?Ir.errors:s.concat(Ir.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return Ht.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return Ht.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ht.errors=s,n===0}function ut(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(l=l||c,!l){const h=n;Ht(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Ht.errors:s.concat(Ht.errors),n=s.length);var c=h===n;l=l||c}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const h={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[h]:s.push(h),n++,ut.errors=s,!1}return ut.errors=s,n===0}function Dt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let p;if(e.resource===void 0&&(p="resource")||e.inner===void 0&&(p="inner"))return Dt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:p},message:"must have required property '"+p+"'"}],!1;{const c=n;for(const h in e)if(!(h==="resource"||h==="inner"||h==="name"))return Dt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"}],!1;if(c===n){if(e.resource!==void 0){let h=e.resource;const m=n;if(typeof h!="string")return Dt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(h!=="zip")return Dt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"zip"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.inner!==void 0){let h=e.inner;const m=n,g=n;let A=!1;const y=n;Ba.validate(h,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?Ba.validate.errors:s.concat(Ba.validate.errors),n=s.length);var l=y===n;if(A=A||l,!A){const b=n;ut(h,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var l=b===n;A=A||l}if(A)n=g,s!==null&&(g?s.length=g:s=null);else{const b={instancePath:t+"/inner",schemaPath:"#/properties/inner/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[b]:s.push(b),n++,Dt.errors=s,!1}var o=m===n}else var o=!0;if(o)if(e.name!==void 0){const h=n;if(typeof e.name!="string")return Dt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=h===n}else var o=!0}}}}else return Dt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Dt.errors=s,n===0}function _e(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let $;if(e.resource===void 0&&($="resource")||e.path===void 0&&($="path")){const C={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};s===null?s=[C]:s.push(C),n++}else{const C=n;for(const E in e)if(!(E==="resource"||E==="path")){const T={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"};s===null?s=[T]:s.push(T),n++;break}if(C===n){if(e.resource!==void 0){let E=e.resource;const T=n;if(typeof E!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}if(E!=="vfs"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[F]:s.push(F),n++}var h=T===n}else var h=!0;if(h)if(e.path!==void 0){const E=n;if(typeof e.path!="string"){const F={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}var h=E===n}else var h=!0}}}else{const $={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),n++}var m=p===n;if(l=l||m,!l){const $=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let T;if(e.resource===void 0&&(T="resource")||e.name===void 0&&(T="name")||e.contents===void 0&&(T="contents")){const F={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};s===null?s=[F]:s.push(F),n++}else{const F=n;for(const P in e)if(!(P==="resource"||P==="name"||P==="contents")){const S={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"};s===null?s=[S]:s.push(S),n++;break}if(F===n){if(e.resource!==void 0){let P=e.resource;const S=n;if(typeof P!="string"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),n++}if(P!=="literal"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[D]:s.push(D),n++}var g=S===n}else var g=!0;if(g){if(e.name!==void 0){const P=n;if(typeof e.name!="string"){const D={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),n++}var g=P===n}else var g=!0;if(g)if(e.contents!==void 0){let P=e.contents;const S=n,D=n;let I=!1;const U=n;if(typeof P!="string"){const W={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[W]:s.push(W),n++}var A=U===n;if(I=I||A,!I){const W=n;if(n===W)if(P&&typeof P=="object"&&!Array.isArray(P)){let V;if(P.BYTES_PER_ELEMENT===void 0&&(V="BYTES_PER_ELEMENT")||P.buffer===void 0&&(V="buffer")||P.byteLength===void 0&&(V="byteLength")||P.byteOffset===void 0&&(V="byteOffset")||P.length===void 0&&(V="length")){const se={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[se]:s.push(se),n++}else{const se=n;for(const Z in P)if(!(Z==="BYTES_PER_ELEMENT"||Z==="buffer"||Z==="byteLength"||Z==="byteOffset"||Z==="length")){let Q=P[Z];const ee=n;if(!(typeof Q=="number"&&isFinite(Q))){const G={instancePath:t+"/contents/"+Z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[G]:s.push(G),n++}var y=ee===n;if(!y)break}if(se===n){if(P.BYTES_PER_ELEMENT!==void 0){let Z=P.BYTES_PER_ELEMENT;const Q=n;if(!(typeof Z=="number"&&isFinite(Z))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),n++}var w=Q===n}else var w=!0;if(w){if(P.buffer!==void 0){let Z=P.buffer;const Q=n;if(n===Q)if(Z&&typeof Z=="object"&&!Array.isArray(Z)){let G;if(Z.byteLength===void 0&&(G="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in Z)if(ie!=="byteLength"){const ae={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n&&Z.byteLength!==void 0){let ie=Z.byteLength;if(!(typeof ie=="number"&&isFinite(ie))){const ae={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}}}}else{const G={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[G]:s.push(G),n++}var w=Q===n}else var w=!0;if(w){if(P.byteLength!==void 0){let Z=P.byteLength;const Q=n;if(!(typeof Z=="number"&&isFinite(Z))){const G={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[G]:s.push(G),n++}var w=Q===n}else var w=!0;if(w){if(P.byteOffset!==void 0){let Z=P.byteOffset;const Q=n;if(!(typeof Z=="number"&&isFinite(Z))){const G={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[G]:s.push(G),n++}var w=Q===n}else var w=!0;if(w)if(P.length!==void 0){let Z=P.length;const Q=n;if(!(typeof Z=="number"&&isFinite(Z))){const G={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[G]:s.push(G),n++}var w=Q===n}else var w=!0}}}}}}else{const V={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),n++}var A=W===n;I=I||A}if(I)n=D,s!==null&&(D?s.length=D:s=null);else{const W={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[W]:s.push(W),n++}var g=S===n}else var g=!0}}}}else{const T={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[T]:s.push(T),n++}var m=$===n;if(l=l||m,!l){const T=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let S;if(e.resource===void 0&&(S="resource")||e.slug===void 0&&(S="slug")){const D={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[D]:s.push(D),n++}else{const D=n;for(const I in e)if(!(I==="resource"||I==="slug")){const U={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties"};s===null?s=[U]:s.push(U),n++;break}if(D===n){if(e.resource!==void 0){let I=e.resource;const U=n;if(typeof I!="string"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[q]:s.push(q),n++}if(I!=="wordpress.org/themes"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[q]:s.push(q),n++}var b=U===n}else var b=!0;if(b)if(e.slug!==void 0){const I=n;if(typeof e.slug!="string"){const q={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[q]:s.push(q),n++}var b=I===n}else var b=!0}}}else{const S={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var m=T===n;if(l=l||m,!l){const S=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let U;if(e.resource===void 0&&(U="resource")||e.slug===void 0&&(U="slug")){const q={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:U},message:"must have required property '"+U+"'"};s===null?s=[q]:s.push(q),n++}else{const q=n;for(const W in e)if(!(W==="resource"||W==="slug")){const X={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:W},message:"must NOT have additional properties"};s===null?s=[X]:s.push(X),n++;break}if(q===n){if(e.resource!==void 0){let W=e.resource;const X=n;if(typeof W!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}if(W!=="wordpress.org/plugins"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};s===null?s=[V]:s.push(V),n++}var O=X===n}else var O=!0;if(O)if(e.slug!==void 0){const W=n;if(typeof e.slug!="string"){const V={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var O=W===n}else var O=!0}}}else{const U={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[U]:s.push(U),n++}var m=S===n;if(l=l||m,!l){const U=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let X;if(e.resource===void 0&&(X="resource")||e.url===void 0&&(X="url")){const V={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:X},message:"must have required property '"+X+"'"};s===null?s=[V]:s.push(V),n++}else{const V=n;for(const se in e)if(!(se==="resource"||se==="url"||se==="caption")){const Z={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"};s===null?s=[Z]:s.push(Z),n++;break}if(V===n){if(e.resource!==void 0){let se=e.resource;const Z=n;if(typeof se!="string"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}if(se!=="url"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[Q]:s.push(Q),n++}var k=Z===n}else var k=!0;if(k){if(e.url!==void 0){const se=n;if(typeof e.url!="string"){const Q={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}var k=se===n}else var k=!0;if(k)if(e.caption!==void 0){const se=n;if(typeof e.caption!="string"){const Q={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}var k=se===n}else var k=!0}}}}else{const X={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[X]:s.push(X),n++}var m=U===n;if(l=l||m,!l){const X=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let Z;if(e.resource===void 0&&(Z="resource")||e.path===void 0&&(Z="path")){const Q={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[Q]:s.push(Q),n++}else{const Q=n;for(const ee in e)if(!(ee==="resource"||ee==="path")){const G={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[G]:s.push(G),n++;break}if(Q===n){if(e.resource!==void 0){let ee=e.resource;const G=n;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}if(ee!=="bundled"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};s===null?s=[fe]:s.push(fe),n++}var L=G===n}else var L=!0;if(L)if(e.path!==void 0){const ee=n;if(typeof e.path!="string"){const fe={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}var L=ee===n}else var L=!0}}}else{const Z={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var m=X===n;if(l=l||m,!l){const Z=n;Dt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Dt.errors:s.concat(Dt.errors),n=s.length);var m=Z===n;l=l||m}}}}}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const $={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,_e.errors=s,!1}return _e.errors=s,n===0}const As={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
1234
1365
|
|
|
1235
1366
|
- rewrite-wp-config: Default. Rewrites the wp-config.php file to explicitly call define() with the requested name and value. This method alters the file on the disk, but it doesn't conflict with existing define() calls in wp-config.php.
|
|
1236
1367
|
|
|
1237
1368
|
- define-before-run: Defines the constant before running the requested script. It doesn't alter any files on the disk, but constants defined this way may conflict with existing define() calls in wp-config.php.`},virtualize:{type:"boolean",deprecated:`This option is noop and will be removed in a future version.
|
|
1238
1369
|
This option is only kept in here to avoid breaking Blueprint schema validation
|
|
1239
1370
|
for existing apps using this option.`}},required:["consts","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineSiteUrl"},siteUrl:{type:"string",description:"The URL"}},required:["siteUrl","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"enableMultisite"},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWxr"},file:{$ref:"#/definitions/FileReference",description:"The file to import"},importer:{type:"string",enum:["data-liberation","default"],description:"The importer to use. Possible values:\n\n- `default`: The importer from https://github.com/humanmade/WordPress-Importer\n- `data-liberation`: The experimental Data Liberation WXR importer developed at https://github.com/WordPress/wordpress-playground/issues/1894\n\nThis option is deprecated. The syntax will not be removed, but once the Data Liberation importer matures, it will become the only supported importer and the `importer` option will be ignored.",deprecated:!0}},required:["file","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importThemeStarterContent",description:"The step identifier."},themeSlug:{type:"string",description:"The name of the theme to import content from."}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWordPressFiles"},wordPressFilesZip:{$ref:"#/definitions/FileReference",description:"The zip file containing the top-level WordPress files and directories."},pathInZip:{type:"string",description:"The path inside the zip file where the WordPress files are."}},required:["step","wordPressFilesZip"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installPlugin",description:"The step identifier."},pluginData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The plugin files to install. It can be a plugin zip file, a single PHP file, or a directory containing all the plugin files at its root."},pluginZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'pluginData' instead."},options:{$ref:"#/definitions/InstallPluginOptions",description:"Optional installation options."}},required:["pluginData","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installTheme",description:"The step identifier."},themeData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The theme files to install. It can be either a theme zip file, or a directory containing all the theme files at its root."},themeZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'themeData' instead."},options:{$ref:"#/definitions/InstallThemeOptions",description:"Optional installation options."}},required:["step","themeData"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"login"},username:{type:"string",description:"The user to log in as. Defaults to 'admin'."},password:{type:"string",deprecated:`The password field is deprecated and will be removed in a future version.
|
|
1240
|
-
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},Ld={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function vt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return vt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const A=n;for(const k in e)if(!(k==="method"||k==="url"||k==="headers"||k==="body"))return vt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(A===n){if(e.method!==void 0){let k=e.method;const I=n;if(typeof k!="string")return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(k==="GET"||k==="POST"||k==="HEAD"||k==="OPTIONS"||k==="PATCH"||k==="PUT"||k==="DELETE"))return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ld.enum},message:"must be equal to one of the allowed values"}],!1;var o=I===n}else var o=!0;if(o){if(e.url!==void 0){const k=n;if(typeof e.url!="string")return vt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=k===n}else var o=!0;if(o){if(e.headers!==void 0){let k=e.headers;const I=n;if(n===n)if(k&&typeof k=="object"&&!Array.isArray(k))for(const E in k){const O=n;if(typeof k[E]!="string")return vt.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=O===n;if(!l)break}else return vt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=I===n}else var o=!0;if(o)if(e.body!==void 0){let k=e.body;const I=n,$=n;let C=!1;const E=n;if(typeof k!="string"){const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}var p=E===n;if(C=C||p,!C){const L=n;if(n===L)if(k&&typeof k=="object"&&!Array.isArray(k)){let S;if(k.BYTES_PER_ELEMENT===void 0&&(S="BYTES_PER_ELEMENT")||k.buffer===void 0&&(S="buffer")||k.byteLength===void 0&&(S="byteLength")||k.byteOffset===void 0&&(S="byteOffset")||k.length===void 0&&(S="length")){const D={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[D]:s.push(D),n++}else{const D=n;for(const F in k)if(!(F==="BYTES_PER_ELEMENT"||F==="buffer"||F==="byteLength"||F==="byteOffset"||F==="length")){let B=k[F];const q=n;if(!(typeof B=="number"&&isFinite(B))){const W={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var c=q===n;if(!c)break}if(D===n){if(k.BYTES_PER_ELEMENT!==void 0){let F=k.BYTES_PER_ELEMENT;const B=n;if(!(typeof F=="number"&&isFinite(F))){const q={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),n++}var h=B===n}else var h=!0;if(h){if(k.buffer!==void 0){let F=k.buffer;const B=n;if(n===B)if(F&&typeof F=="object"&&!Array.isArray(F)){let W;if(F.byteLength===void 0&&(W="byteLength")){const X={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:W},message:"must have required property '"+W+"'"};s===null?s=[X]:s.push(X),n++}else{const X=n;for(const V in F)if(V!=="byteLength"){const se={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties"};s===null?s=[se]:s.push(se),n++;break}if(X===n&&F.byteLength!==void 0){let V=F.byteLength;if(!(typeof V=="number"&&isFinite(V))){const se={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[se]:s.push(se),n++}}}}else{const W={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[W]:s.push(W),n++}var h=B===n}else var h=!0;if(h){if(k.byteLength!==void 0){let F=k.byteLength;const B=n;if(!(typeof F=="number"&&isFinite(F))){const W={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var h=B===n}else var h=!0;if(h){if(k.byteOffset!==void 0){let F=k.byteOffset;const B=n;if(!(typeof F=="number"&&isFinite(F))){const W={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var h=B===n}else var h=!0;if(h)if(k.length!==void 0){let F=k.length;const B=n;if(!(typeof F=="number"&&isFinite(F))){const W={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var h=B===n}else var h=!0}}}}}}else{const S={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var p=L===n;if(C=C||p,!C){const S=n;if(n===S)if(k&&typeof k=="object"&&!Array.isArray(k))for(const F in k){let B=k[F];const q=n,W=n;let X=!1;const V=n;if(typeof B!="string"){const se={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var m=V===n;if(X=X||m,!X){const se=n;if(n===se)if(B&&typeof B=="object"&&!Array.isArray(B)){let Q;if(B.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||B.buffer===void 0&&(Q="buffer")||B.byteLength===void 0&&(Q="byteLength")||B.byteOffset===void 0&&(Q="byteOffset")||B.length===void 0&&(Q="length")){const ee={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const Z in B)if(!(Z==="BYTES_PER_ELEMENT"||Z==="buffer"||Z==="byteLength"||Z==="byteOffset"||Z==="length")){let fe=B[Z];const ie=n;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+Z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var g=ie===n;if(!g)break}if(ee===n){if(B.BYTES_PER_ELEMENT!==void 0){let Z=B.BYTES_PER_ELEMENT;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ie={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T){if(B.buffer!==void 0){let Z=B.buffer;const fe=n;if(n===fe)if(Z&&typeof Z=="object"&&!Array.isArray(Z)){let ae;if(Z.byteLength===void 0&&(ae="byteLength")){const Se={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};s===null?s=[Se]:s.push(Se),n++}else{const Se=n;for(const Te in Z)if(Te!=="byteLength"){const Xe={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Te},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Se===n&&Z.byteLength!==void 0){let Te=Z.byteLength;if(!(typeof Te=="number"&&isFinite(Te))){const Xe={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Xe]:s.push(Xe),n++}}}}else{const ae={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0;if(T){if(B.byteLength!==void 0){let Z=B.byteLength;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ae={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0;if(T){if(B.byteOffset!==void 0){let Z=B.byteOffset;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ae={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0;if(T)if(B.length!==void 0){let Z=B.length;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ae={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0}}}}}}else{const Q={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Q]:s.push(Q),n++}var m=se===n;if(X=X||m,!X){const Q=n;if(n===Q)if(B&&typeof B=="object"&&!Array.isArray(B)){let Z;if(B.lastModified===void 0&&(Z="lastModified")||B.name===void 0&&(Z="name")||B.size===void 0&&(Z="size")||B.type===void 0&&(Z="type")||B.webkitRelativePath===void 0&&(Z="webkitRelativePath")){const fe={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in B)if(!(ie==="size"||ie==="type"||ie==="lastModified"||ie==="name"||ie==="webkitRelativePath")){const ae={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n){if(B.size!==void 0){let ie=B.size;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Se={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Se]:s.push(Se),n++}var y=ae===n}else var y=!0;if(y){if(B.type!==void 0){const ie=n;if(typeof B.type!="string"){const Se={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Se]:s.push(Se),n++}var y=ie===n}else var y=!0;if(y){if(B.lastModified!==void 0){let ie=B.lastModified;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Te={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Te]:s.push(Te),n++}var y=ae===n}else var y=!0;if(y){if(B.name!==void 0){const ie=n;if(typeof B.name!="string"){const Se={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Se]:s.push(Se),n++}var y=ie===n}else var y=!0;if(y)if(B.webkitRelativePath!==void 0){const ie=n;if(typeof B.webkitRelativePath!="string"){const Se={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Se]:s.push(Se),n++}var y=ie===n}else var y=!0}}}}}}else{const Z={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var m=Q===n;X=X||m}}if(X)n=W,s!==null&&(W?s.length=W:s=null);else{const se={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[se]:s.push(se),n++}var w=q===n;if(!w)break}else{const F={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[F]:s.push(F),n++}var p=S===n;C=C||p}}if(C)n=$,s!==null&&($?s.length=$:s=null);else{const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[L]:s.push(L),n++,vt.errors=s,!1}var o=I===n}else var o=!0}}}}}else return vt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return vt.errors=s,n===0}const av={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function We(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const T=n;for(const y in e)if(!Rd.call(av.properties,y))return We.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(T===n){if(e.relativeUri!==void 0){const y=n;if(typeof e.relativeUri!="string")return We.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=n;if(typeof e.scriptPath!="string")return We.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.protocol!==void 0){const y=n;if(typeof e.protocol!="string")return We.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const w=n;if(typeof y!="string")return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ld.enum},message:"must be equal to one of the allowed values"}],!1;var o=w===n}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const w=n;if(n===n)if(y&&typeof y=="object"&&!Array.isArray(y))for(const k in y){const I=n;if(typeof y[k]!="string")return We.errors=[{instancePath:t+"/headers/"+k.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=I===n;if(!l)break}else return We.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const w=n,b=n;let A=!1;const k=n;if(typeof y!="string"){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}var p=k===n;if(A=A||p,!A){const $=n;if(n===$)if(y&&typeof y=="object"&&!Array.isArray(y)){let E;if(y.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||y.buffer===void 0&&(E="buffer")||y.byteLength===void 0&&(E="byteLength")||y.byteOffset===void 0&&(E="byteOffset")||y.length===void 0&&(E="length")){const O={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[O]:s.push(O),n++}else{const O=n;for(const L in y)if(!(L==="BYTES_PER_ELEMENT"||L==="buffer"||L==="byteLength"||L==="byteOffset"||L==="length")){let P=y[L];const S=n;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/"+L.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var c=S===n;if(!c)break}if(O===n){if(y.BYTES_PER_ELEMENT!==void 0){let L=y.BYTES_PER_ELEMENT;const P=n;if(!(typeof L=="number"&&isFinite(L))){const S={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[S]:s.push(S),n++}var h=P===n}else var h=!0;if(h){if(y.buffer!==void 0){let L=y.buffer;const P=n;if(n===P)if(L&&typeof L=="object"&&!Array.isArray(L)){let D;if(L.byteLength===void 0&&(D="byteLength")){const F={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};s===null?s=[F]:s.push(F),n++}else{const F=n;for(const B in L)if(B!=="byteLength"){const q={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};s===null?s=[q]:s.push(q),n++;break}if(F===n&&L.byteLength!==void 0){let B=L.byteLength;if(!(typeof B=="number"&&isFinite(B))){const q={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),n++}}}}else{const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0;if(h){if(y.byteLength!==void 0){let L=y.byteLength;const P=n;if(!(typeof L=="number"&&isFinite(L))){const D={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0;if(h){if(y.byteOffset!==void 0){let L=y.byteOffset;const P=n;if(!(typeof L=="number"&&isFinite(L))){const D={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0;if(h)if(y.length!==void 0){let L=y.length;const P=n;if(!(typeof L=="number"&&isFinite(L))){const D={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0}}}}}}else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[E]:s.push(E),n++}var p=$===n;A=A||p}if(A)n=b,s!==null&&(b?s.length=b:s=null);else{const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,We.errors=s,!1}var o=w===n}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const w=n;if(n===w)if(y&&typeof y=="object"&&!Array.isArray(y))for(const A in y){const k=n;if(typeof y[A]!="string")return We.errors=[{instancePath:t+"/env/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===n;if(!m)break}else return We.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const w=n;if(n===w)if(y&&typeof y=="object"&&!Array.isArray(y))for(const A in y){const k=n;if(typeof y[A]!="string")return We.errors=[{instancePath:t+"/$_SERVER/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=k===n;if(!g)break}else return We.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o)if(e.code!==void 0){const y=n;if(typeof e.code!="string")return We.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0}}}}}}}}}else return We.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return We.errors=s,n===0}function _(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let Me;if(e.step===void 0&&(Me="step"))return _.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:Me},message:"must have required property '"+Me+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.pluginPath===void 0&&(j="pluginPath")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="pluginPath"||f==="pluginName"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=re===n}else var o=!0;if(o)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===n}else var o=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=U===n}else var l=!0;if(l){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activatePlugin")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var l=U===n}else var l=!0;if(l){if(e.pluginPath!==void 0){const f=n;if(typeof e.pluginPath!="string")return _.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0;if(l)if(e.pluginName!==void 0){const f=n;if(typeof e.pluginName!="string")return _.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.themeFolderName===void 0&&(j="themeFolderName"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeFolderName"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=re===n}else var p=!0;if(p)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=x===n}else var p=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=U===n}else var c=!0;if(c){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activateTheme")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=U===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const f=n;if(typeof e.themeFolderName!="string")return _.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=f===n}else var c=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.fromPath===void 0&&(j="fromPath")||e.step===void 0&&(j="step")||e.toPath===void 0&&(j="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var h=re===n}else var h=!0;if(h)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=x===n}else var h=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=U===n}else var m=!0;if(m){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="cp")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var m=U===n}else var m=!0;if(m){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return _.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0;if(m)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return _.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.consts===void 0&&(j="consts")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="consts"||f==="method"||f==="virtualize"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=re===n}else var g=!0;if(g)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=x===n}else var g=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=U===n}else var T=!0;if(T){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineWpConfigConsts")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var T=U===n}else var T=!0;if(T){if(e.consts!==void 0){let f=e.consts;const U=n;if(n===U&&!(f&&typeof f=="object"&&!Array.isArray(f)))return _.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=U===n}else var T=!0;if(T){if(e.method!==void 0){let f=e.method;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="rewrite-wp-config"||f==="define-before-run"))return _.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Os.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var T=U===n}else var T=!0;if(T)if(e.virtualize!==void 0){const f=n;if(typeof e.virtualize!="boolean")return _.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var T=f===n}else var T=!0}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.siteUrl===void 0&&(j="siteUrl")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="siteUrl"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=re===n}else var y=!0;if(y)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=x===n}else var y=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var w=U===n}else var w=!0;if(w){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineSiteUrl")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var w=U===n}else var w=!0;if(w)if(e.siteUrl!==void 0){const f=n;if(typeof e.siteUrl!="string")return _.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=f===n}else var w=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wpCliPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=re===n}else var b=!0;if(b)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=x===n}else var b=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var A=U===n}else var A=!0;if(A){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="enableMultisite")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var A=U===n}else var A=!0;if(A)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return _.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=f===n}else var A=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.file===void 0&&(j="file")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="file"||f==="importer"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var k=re===n}else var k=!0;if(k)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=x===n}else var k=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=U===n}else var I=!0;if(I){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWxr")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var I=U===n}else var I=!0;if(I){if(e.file!==void 0){const f=n;_e(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var I=f===n}else var I=!0;if(I)if(e.importer!==void 0){let f=e.importer;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="data-liberation"||f==="default"))return _.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Os.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var I=U===n}else var I=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeSlug"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=re===n}else var $=!0;if($)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=x===n}else var $=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var C=U===n}else var C=!0;if(C){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importThemeStarterContent")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var C=U===n}else var C=!0;if(C)if(e.themeSlug!==void 0){const f=n;if(typeof e.themeSlug!="string")return _.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=f===n}else var C=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.wordPressFilesZip===void 0&&(j="wordPressFilesZip"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wordPressFilesZip"||f==="pathInZip"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=re===n}else var E=!0;if(E)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=x===n}else var E=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var O=U===n}else var O=!0;if(O){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWordPressFiles")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var O=U===n}else var O=!0;if(O){if(e.wordPressFilesZip!==void 0){const f=n;_e(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var O=f===n}else var O=!0;if(O)if(e.pathInZip!==void 0){const f=n;if(typeof e.pathInZip!="string")return _.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=f===n}else var O=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.pluginData===void 0&&(j="pluginData")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="pluginData"||f==="pluginZipFile"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var L=re===n}else var L=!0;if(L)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=x===n}else var L=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=U===n}else var P=!0;if(P){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Os.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var P=U===n}else var P=!0;if(P){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installPlugin")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var P=U===n}else var P=!0;if(P){if(e.pluginData!==void 0){let f=e.pluginData;const U=n,te=n;let x=!1;const re=n;_e(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var S=re===n;if(x=x||S,!x){const ke=n;ut(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var S=ke===n;x=x||S}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var P=U===n}else var P=!0;if(P){if(e.pluginZipFile!==void 0){const f=n;_e(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var P=f===n}else var P=!0;if(P)if(e.options!==void 0){let f=e.options;const U=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const $e in f)if(!($e==="activate"||$e==="targetFolderName"))return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(re===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return _.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=$e===n}else var D=!0;if(D)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return _.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=$e===n}else var D=!0}}else return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=U===n}else var P=!0}}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.themeData===void 0&&(j="themeData"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="themeData"||f==="themeZipFile"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var F=re===n}else var F=!0;if(F)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=x===n}else var F=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=U===n}else var B=!0;if(B){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Os.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var B=U===n}else var B=!0;if(B){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installTheme")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var B=U===n}else var B=!0;if(B){if(e.themeData!==void 0){let f=e.themeData;const U=n,te=n;let x=!1;const re=n;_e(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var q=re===n;if(x=x||q,!x){const ke=n;ut(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var q=ke===n;x=x||q}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var B=U===n}else var B=!0;if(B){if(e.themeZipFile!==void 0){const f=n;_e(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var B=f===n}else var B=!0;if(B)if(e.options!==void 0){let f=e.options;const U=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const $e in f)if(!($e==="activate"||$e==="importStarterContent"||$e==="targetFolderName"))return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(re===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return _.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var W=$e===n}else var W=!0;if(W){if(f.importStarterContent!==void 0){const $e=n;if(typeof f.importStarterContent!="boolean")return _.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var W=$e===n}else var W=!0;if(W)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return _.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=$e===n}else var W=!0}}}else return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=U===n}else var B=!0}}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="username"||f==="password"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=re===n}else var X=!0;if(X)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=x===n}else var X=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=U===n}else var V=!0;if(V){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="login")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var V=U===n}else var V=!0;if(V){if(e.username!==void 0){const f=n;if(typeof e.username!="string")return _.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=f===n}else var V=!0;if(V)if(e.password!==void 0){const f=n;if(typeof e.password!="string")return _.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=f===n}else var V=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=re===n}else var se=!0;if(se)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=x===n}else var se=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=U===n}else var G=!0;if(G){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mkdir")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var G=U===n}else var G=!0;if(G)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=f===n}else var G=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.fromPath===void 0&&(j="fromPath")||e.step===void 0&&(j="step")||e.toPath===void 0&&(j="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Q=re===n}else var Q=!0;if(Q)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=x===n}else var Q=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=U===n}else var ee=!0;if(ee){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mv")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=U===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return _.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return _.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Z=re===n}else var Z=!0;if(Z)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=x===n}else var Z=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=U===n}else var fe=!0;if(fe)if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="resetData")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=U===n}else var fe=!0}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.request===void 0&&(j="request")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="request"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=re===n}else var ie=!0;if(ie)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=x===n}else var ie=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=U===n}else var ae=!0;if(ae){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="request")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ae=U===n}else var ae=!0;if(ae)if(e.request!==void 0){const f=n;vt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?vt.errors:s.concat(vt.errors),n=s.length);var ae=f===n}else var ae=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=re===n}else var Se=!0;if(Se)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Se=x===n}else var Se=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=U===n}else var Te=!0;if(Te){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rm")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Te=U===n}else var Te=!0;if(Te)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Te=f===n}else var Te=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=re===n}else var Xe=!0;if(Xe)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=x===n}else var Xe=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var tt=U===n}else var tt=!0;if(tt){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rmdir")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var tt=U===n}else var tt=!0;if(tt)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var tt=f===n}else var tt=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.code===void 0&&(j="code")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="code"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Et=re===n}else var Et=!0;if(Et)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Et=x===n}else var Et=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ie=U===n}else var Ie=!0;if(Ie){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHP")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Ie=U===n}else var Ie=!0;if(Ie)if(e.code!==void 0){let f=e.code;const U=n,te=n;let x=!1;const re=n;if(typeof f!="string"){const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var Ce=re===n;if(x=x||Ce,!x){const ke=n;if(n===ke)if(f&&typeof f=="object"&&!Array.isArray(f)){let He;if(f.filename===void 0&&(He="filename")||f.content===void 0&&(He="content")){const er={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:He},message:"must have required property '"+He+"'"};s===null?s=[er]:s.push(er),n++}else{const er=n;for(const qe in f)if(!(qe==="filename"||qe==="content")){const jt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:qe},message:"must NOT have additional properties"};s===null?s=[jt]:s.push(jt),n++;break}if(er===n){if(f.filename!==void 0){const qe=n;if(typeof f.filename!="string"){const jt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[jt]:s.push(jt),n++}var pt=qe===n}else var pt=!0;if(pt)if(f.content!==void 0){const qe=n;if(typeof f.content!="string"){const be={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var pt=qe===n}else var pt=!0}}}else{const He={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[He]:s.push(He),n++}var Ce=ke===n;x=x||Ce}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var Ie=U===n}else var Ie=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Re=re===n}else var Re=!0;if(Re)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=x===n}else var Re=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=U===n}else var v=!0;if(v){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHPWithOptions")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var v=U===n}else var v=!0;if(v)if(e.options!==void 0){const f=n;We(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?We.errors:s.concat(We.errors),n=s.length);var v=f===n}else var v=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=re===n}else var u=!0;if(u)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=x===n}else var u=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=U===n}else var d=!0;if(d){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runWpInstallationWizard")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var d=U===n}else var d=!0;if(d)if(e.options!==void 0){let f=e.options;const U=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const $e in f)if(!($e==="adminUsername"||$e==="adminPassword"))return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(re===n){if(f.adminUsername!==void 0){const $e=n;if(typeof f.adminUsername!="string")return _.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=$e===n}else var R=!0;if(R)if(f.adminPassword!==void 0){const $e=n;if(typeof f.adminPassword!="string")return _.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=$e===n}else var R=!0}}else return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=U===n}else var d=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.sql===void 0&&(j="sql")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="sql"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var N=re===n}else var N=!0;if(N)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var N=x===n}else var N=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=U===n}else var H=!0;if(H){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runSql")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var H=U===n}else var H=!0;if(H)if(e.sql!==void 0){const f=n;_e(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var H=f===n}else var H=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var K=re===n}else var K=!0;if(K)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var K=x===n}else var K=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=U===n}else var pe=!0;if(pe){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteOptions")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=U===n}else var pe=!0;if(pe)if(e.options!==void 0){let f=e.options;const U=n;if(n===U&&!(f&&typeof f=="object"&&!Array.isArray(f)))return _.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=U===n}else var pe=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.extractToPath===void 0&&(j="extractToPath")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="zipFile"||f==="zipPath"||f==="extractToPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var we=re===n}else var we=!0;if(we)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=x===n}else var we=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=U===n}else var he=!0;if(he){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="unzip")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=U===n}else var he=!0;if(he){if(e.zipFile!==void 0){const f=n;_e(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var he=f===n}else var he=!0;if(he){if(e.zipPath!==void 0){const f=n;if(typeof e.zipPath!="string")return _.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const f=n;if(typeof e.extractToPath!="string")return _.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.meta===void 0&&(j="meta")||e.step===void 0&&(j="step")||e.userId===void 0&&(j="userId"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="meta"||f==="userId"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ne=re===n}else var Ne=!0;if(Ne)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ne=x===n}else var Ne=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=U===n}else var ue=!0;if(ue){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="updateUserMeta")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=U===n}else var ue=!0;if(ue){if(e.meta!==void 0){let f=e.meta;const U=n;if(n===U&&!(f&&typeof f=="object"&&!Array.isArray(f)))return _.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=U===n}else var ue=!0;if(ue)if(e.userId!==void 0){let f=e.userId;const U=n;if(!(typeof f=="number"&&isFinite(f)))return _.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=U===n}else var ue=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.data===void 0&&(j="data")||e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"||f==="data"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var yt=re===n}else var yt=!0;if(yt)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var yt=x===n}else var yt=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=U===n}else var rt=!0;if(rt){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFile")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var rt=U===n}else var rt=!0;if(rt){if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=f===n}else var rt=!0;if(rt)if(e.data!==void 0){let f=e.data;const U=n,te=n;let x=!1;const re=n;_e(f,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var Lt=re===n;if(x=x||Lt,!x){const ke=n;if(typeof f!="string"){const He={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[He]:s.push(He),n++}var Lt=ke===n;if(x=x||Lt,!x){const He=n;if(n===He)if(f&&typeof f=="object"&&!Array.isArray(f)){let qe;if(f.BYTES_PER_ELEMENT===void 0&&(qe="BYTES_PER_ELEMENT")||f.buffer===void 0&&(qe="buffer")||f.byteLength===void 0&&(qe="byteLength")||f.byteOffset===void 0&&(qe="byteOffset")||f.length===void 0&&(qe="length")){const jt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:qe},message:"must have required property '"+qe+"'"};s===null?s=[jt]:s.push(jt),n++}else{const jt=n;for(const be in f)if(!(be==="BYTES_PER_ELEMENT"||be==="buffer"||be==="byteLength"||be==="byteOffset"||be==="length")){let gt=f[be];const fs=n;if(!(typeof gt=="number"&&isFinite(gt))){const Ve={instancePath:t+"/data/"+be.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var Oi=fs===n;if(!Oi)break}if(jt===n){if(f.BYTES_PER_ELEMENT!==void 0){let be=f.BYTES_PER_ELEMENT;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const fs={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[fs]:s.push(fs),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.buffer!==void 0){let be=f.buffer;const gt=n;if(n===gt)if(be&&typeof be=="object"&&!Array.isArray(be)){let Ve;if(be.byteLength===void 0&&(Ve="byteLength")){const ps={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ve},message:"must have required property '"+Ve+"'"};s===null?s=[ps]:s.push(ps),n++}else{const ps=n;for(const wn in be)if(wn!=="byteLength"){const bn={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:wn},message:"must NOT have additional properties"};s===null?s=[bn]:s.push(bn),n++;break}if(ps===n&&be.byteLength!==void 0){let wn=be.byteLength;if(!(typeof wn=="number"&&isFinite(wn))){const bn={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[bn]:s.push(bn),n++}}}}else{const Ve={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteLength!==void 0){let be=f.byteLength;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteOffset!==void 0){let be=f.byteOffset;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt)if(f.length!==void 0){let be=f.length;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0}}}}}}else{const qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[qe]:s.push(qe),n++}var Lt=He===n;x=x||Lt}}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var rt=U===n}else var rt=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.filesTree===void 0&&(j="filesTree")||e.step===void 0&&(j="step")||e.writeToPath===void 0&&(j="writeToPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="writeToPath"||f==="filesTree"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Wr=re===n}else var Wr=!0;if(Wr)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Wr=x===n}else var Wr=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=U===n}else var M=!0;if(M){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFiles")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var M=U===n}else var M=!0;if(M){if(e.writeToPath!==void 0){const f=n;if(typeof e.writeToPath!="string")return _.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=f===n}else var M=!0;if(M)if(e.filesTree!==void 0){const f=n;ut(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var M=f===n}else var M=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.command===void 0&&(j="command")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="command"||f==="wpCliPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=re===n}else var Y=!0;if(Y)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=x===n}else var Y=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=U===n}else var z=!0;if(z){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="wp-cli")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var z=U===n}else var z=!0;if(z){if(e.command!==void 0){let f=e.command;const U=n,te=n;let x=!1;const re=n;if(typeof f!="string"){const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var J=re===n;if(x=x||J,!x){const ke=n;if(n===ke)if(Array.isArray(f)){var ne=!0;const He=f.length;for(let er=0;er<He;er++){const qe=n;if(typeof f[er]!="string"){const be={instancePath:t+"/command/"+er,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var ne=qe===n;if(!ne)break}}else{const He={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[He]:s.push(He),n++}var J=ke===n;x=x||J}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var z=U===n}else var z=!0;if(z)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return _.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=f===n}else var z=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.language===void 0&&(j="language")||e.step===void 0&&(j="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="language"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const U=n;if(n===U)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=re===n}else var le=!0;if(le)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=x===n}else var le=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=U===n}else var de=!0;if(de){if(e.step!==void 0){let f=e.step;const U=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteLanguage")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=U===n}else var de=!0;if(de)if(e.language!==void 0){const f=n;if(typeof e.language!="string")return _.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=f===n}else var de=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return _.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return _.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return _.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _.errors=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const C=n;for(const E in e)if(!Rd.call(tv.properties,E))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(C===n){if(e.landingPage!==void 0){const E=n;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.description!==void 0){const E=n;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.meta!==void 0){let E=e.meta;const O=n;if(n===O)if(E&&typeof E=="object"&&!Array.isArray(E)){let P;if(E.title===void 0&&(P="title")||E.author===void 0&&(P="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"}],!1;{const S=n;for(const D in E)if(!(D==="title"||D==="description"||D==="author"||D==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(S===n){if(E.title!==void 0){const D=n;if(typeof E.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=D===n}else var l=!0;if(l){if(E.description!==void 0){const D=n;if(typeof E.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=D===n}else var l=!0;if(l){if(E.author!==void 0){const D=n;if(typeof E.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=D===n}else var l=!0;if(l)if(E.categories!==void 0){let D=E.categories;const F=n;if(n===F)if(Array.isArray(D)){var p=!0;const q=D.length;for(let W=0;W<q;W++){const X=n;if(typeof D[W]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+W,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=X===n;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var l=F===n}else var l=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=O===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let E=e.preferredVersions;const O=n;if(n===O)if(E&&typeof E=="object"&&!Array.isArray(E)){let P;if(E.php===void 0&&(P="php")||E.wp===void 0&&(P="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"}],!1;{const S=n;for(const D in E)if(!(D==="php"||D==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(S===n){if(E.php!==void 0){let D=E.php;const F=n,B=n;let q=!1;const W=n;In(D,{instancePath:t+"/preferredVersions/php",parentData:E,parentDataProperty:"php",rootData:a})||(s=s===null?In.errors:s.concat(In.errors),n=s.length);var c=W===n;if(q=q||c,!q){const X=n;if(typeof D!="string"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}if(D!=="latest"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[se]:s.push(se),n++}var c=X===n;q=q||c}if(q)n=B,s!==null&&(B?s.length=B:s=null);else{const X={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[X]:s.push(X),n++,me.errors=s,!1}var h=F===n}else var h=!0;if(h)if(E.wp!==void 0){const D=n;if(typeof E.wp!="string")return me.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=D===n}else var h=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=O===n}else var o=!0;if(o){if(e.features!==void 0){let E=e.features;const O=n;if(n===O)if(E&&typeof E=="object"&&!Array.isArray(E)){const P=n;for(const S in E)if(!(S==="intl"||S==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(P===n){if(E.intl!==void 0){const S=n;if(typeof E.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var m=S===n}else var m=!0;if(m)if(E.networking!==void 0){const S=n;if(typeof E.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var m=S===n}else var m=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=O===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let E=e.extraLibraries;const O=n;if(n===O)if(Array.isArray(E)){var g=!0;const P=E.length;for(let S=0;S<P;S++){let D=E[S];const F=n;if(typeof D!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(D!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var g=F===n;if(!g)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=O===n}else var o=!0;if(o){if(e.constants!==void 0){let E=e.constants;const O=n;if(n===n)if(E&&typeof E=="object"&&!Array.isArray(E))for(const S in E){let D=E[S];const F=n;if(typeof D!="string"&&typeof D!="boolean"&&!(typeof D=="number"&&isFinite(D)))return me.errors=[{instancePath:t+"/constants/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:rv.additionalProperties.type},message:"must be string,boolean,number"}],!1;var T=F===n;if(!T)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=O===n}else var o=!0;if(o){if(e.plugins!==void 0){let E=e.plugins;const O=n;if(n===O)if(Array.isArray(E)){var y=!0;const P=E.length;for(let S=0;S<P;S++){let D=E[S];const F=n,B=n;let q=!1;const W=n;if(typeof D!="string"){const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var w=W===n;if(q=q||w,!q){const V=n;_e(D,{instancePath:t+"/plugins/"+S,parentData:E,parentDataProperty:S,rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var w=V===n;q=q||w}if(q)n=B,s!==null&&(B?s.length=B:s=null);else{const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),n++,me.errors=s,!1}var y=F===n;if(!y)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=O===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let E=e.siteOptions;const O=n;if(n===O)if(E&&typeof E=="object"&&!Array.isArray(E)){const P=n;for(const S in E)if(S!=="blogname"){const D=n;if(typeof E[S]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=D===n;if(!b)break}if(P===n&&E.blogname!==void 0&&typeof E.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=O===n}else var o=!0;if(o){if(e.login!==void 0){let E=e.login;const O=n,L=n;let P=!1;const S=n;if(typeof E!="boolean"){const F={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[F]:s.push(F),n++}var A=S===n;if(P=P||A,!P){const F=n;if(n===F)if(E&&typeof E=="object"&&!Array.isArray(E)){let q;if(E.username===void 0&&(q="username")||E.password===void 0&&(q="password")){const W={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};s===null?s=[W]:s.push(W),n++}else{const W=n;for(const X in E)if(!(X==="username"||X==="password")){const V={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:X},message:"must NOT have additional properties"};s===null?s=[V]:s.push(V),n++;break}if(W===n){if(E.username!==void 0){const X=n;if(typeof E.username!="string"){const V={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var k=X===n}else var k=!0;if(k)if(E.password!==void 0){const X=n;if(typeof E.password!="string"){const se={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var k=X===n}else var k=!0}}}else{const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[q]:s.push(q),n++}var A=F===n;P=P||A}if(P)n=L,s!==null&&(L?s.length=L:s=null);else{const F={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),n++,me.errors=s,!1}var o=O===n}else var o=!0;if(o){if(e.steps!==void 0){let E=e.steps;const O=n;if(n===O)if(Array.isArray(E)){var I=!0;const P=E.length;for(let S=0;S<P;S++){let D=E[S];const F=n,B=n;let q=!1;const W=n;_(D,{instancePath:t+"/steps/"+S,parentData:E,parentDataProperty:S,rootData:a})||(s=s===null?_.errors:s.concat(_.errors),n=s.length);var $=W===n;if(q=q||$,!q){const V=n;if(typeof D!="string"){const G={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}var $=V===n;if(q=q||$,!q){const G=n,Q={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[Q]:s.push(Q),n++;var $=G===n;if(q=q||$,!q){const Z=n;if(typeof D!="boolean"){const ie={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if(D!==!1){const ie={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var $=Z===n;if(q=q||$,!q){const ie=n;if(D!==null){const Se={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Se]:s.push(Se),n++}var $=ie===n;q=q||$}}}}if(q)n=B,s!==null&&(B?s.length=B:s=null);else{const V={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),n++,me.errors=s,!1}var I=F===n;if(!I)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=O===n}else var o=!0;if(o)if(e.$schema!==void 0){const E=n;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=s,n===0}function Ms(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),Ms.errors=s,n===0}const{wpCLI:ov,...Ap}=ev,lv={...Ap,"wp-cli":ov,importFile:Ap.importWxr};class Fd extends Error{constructor(t,r){super(t),this.name="InvalidBlueprintError",this.validationErrors=r}}class Id extends Error{constructor(t){const{stepNumber:r,step:i,cause:a}=t,s=a instanceof Error?a:new Error(String(a)),n=`Error when executing the blueprint step #${r}`,o=s.message?`${n}: ${s.message}`:n;super(o,{cause:s}),this.name="BlueprintStepExecutionError",this.stepNumber=r,this.step=i,this.messages=(s.message||"").split(`
|
|
1241
|
-
`).map(l=>l.trim()).filter(Boolean)}}async function
|
|
1371
|
+
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},Ud={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function vt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return vt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const O=n;for(const k in e)if(!(k==="method"||k==="url"||k==="headers"||k==="body"))return vt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(O===n){if(e.method!==void 0){let k=e.method;const L=n;if(typeof k!="string")return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(k==="GET"||k==="POST"||k==="HEAD"||k==="OPTIONS"||k==="PATCH"||k==="PUT"||k==="DELETE"))return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ud.enum},message:"must be equal to one of the allowed values"}],!1;var o=L===n}else var o=!0;if(o){if(e.url!==void 0){const k=n;if(typeof e.url!="string")return vt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=k===n}else var o=!0;if(o){if(e.headers!==void 0){let k=e.headers;const L=n;if(n===n)if(k&&typeof k=="object"&&!Array.isArray(k))for(const E in k){const T=n;if(typeof k[E]!="string")return vt.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=T===n;if(!l)break}else return vt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=L===n}else var o=!0;if(o)if(e.body!==void 0){let k=e.body;const L=n,$=n;let C=!1;const E=n;if(typeof k!="string"){const F={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}var p=E===n;if(C=C||p,!C){const F=n;if(n===F)if(k&&typeof k=="object"&&!Array.isArray(k)){let S;if(k.BYTES_PER_ELEMENT===void 0&&(S="BYTES_PER_ELEMENT")||k.buffer===void 0&&(S="buffer")||k.byteLength===void 0&&(S="byteLength")||k.byteOffset===void 0&&(S="byteOffset")||k.length===void 0&&(S="length")){const D={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[D]:s.push(D),n++}else{const D=n;for(const I in k)if(!(I==="BYTES_PER_ELEMENT"||I==="buffer"||I==="byteLength"||I==="byteOffset"||I==="length")){let U=k[I];const q=n;if(!(typeof U=="number"&&isFinite(U))){const W={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var c=q===n;if(!c)break}if(D===n){if(k.BYTES_PER_ELEMENT!==void 0){let I=k.BYTES_PER_ELEMENT;const U=n;if(!(typeof I=="number"&&isFinite(I))){const q={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),n++}var h=U===n}else var h=!0;if(h){if(k.buffer!==void 0){let I=k.buffer;const U=n;if(n===U)if(I&&typeof I=="object"&&!Array.isArray(I)){let W;if(I.byteLength===void 0&&(W="byteLength")){const X={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:W},message:"must have required property '"+W+"'"};s===null?s=[X]:s.push(X),n++}else{const X=n;for(const V in I)if(V!=="byteLength"){const se={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties"};s===null?s=[se]:s.push(se),n++;break}if(X===n&&I.byteLength!==void 0){let V=I.byteLength;if(!(typeof V=="number"&&isFinite(V))){const se={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[se]:s.push(se),n++}}}}else{const W={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[W]:s.push(W),n++}var h=U===n}else var h=!0;if(h){if(k.byteLength!==void 0){let I=k.byteLength;const U=n;if(!(typeof I=="number"&&isFinite(I))){const W={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var h=U===n}else var h=!0;if(h){if(k.byteOffset!==void 0){let I=k.byteOffset;const U=n;if(!(typeof I=="number"&&isFinite(I))){const W={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var h=U===n}else var h=!0;if(h)if(k.length!==void 0){let I=k.length;const U=n;if(!(typeof I=="number"&&isFinite(I))){const W={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[W]:s.push(W),n++}var h=U===n}else var h=!0}}}}}}else{const S={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var p=F===n;if(C=C||p,!C){const S=n;if(n===S)if(k&&typeof k=="object"&&!Array.isArray(k))for(const I in k){let U=k[I];const q=n,W=n;let X=!1;const V=n;if(typeof U!="string"){const se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var m=V===n;if(X=X||m,!X){const se=n;if(n===se)if(U&&typeof U=="object"&&!Array.isArray(U)){let Q;if(U.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||U.buffer===void 0&&(Q="buffer")||U.byteLength===void 0&&(Q="byteLength")||U.byteOffset===void 0&&(Q="byteOffset")||U.length===void 0&&(Q="length")){const ee={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const G in U)if(!(G==="BYTES_PER_ELEMENT"||G==="buffer"||G==="byteLength"||G==="byteOffset"||G==="length")){let fe=U[G];const ie=n;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var g=ie===n;if(!g)break}if(ee===n){if(U.BYTES_PER_ELEMENT!==void 0){let G=U.BYTES_PER_ELEMENT;const fe=n;if(!(typeof G=="number"&&isFinite(G))){const ie={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var A=fe===n}else var A=!0;if(A){if(U.buffer!==void 0){let G=U.buffer;const fe=n;if(n===fe)if(G&&typeof G=="object"&&!Array.isArray(G)){let ae;if(G.byteLength===void 0&&(ae="byteLength")){const Se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};s===null?s=[Se]:s.push(Se),n++}else{const Se=n;for(const Ae in G)if(Ae!=="byteLength"){const Xe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ae},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Se===n&&G.byteLength!==void 0){let Ae=G.byteLength;if(!(typeof Ae=="number"&&isFinite(Ae))){const Xe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Xe]:s.push(Xe),n++}}}}else{const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ae]:s.push(ae),n++}var A=fe===n}else var A=!0;if(A){if(U.byteLength!==void 0){let G=U.byteLength;const fe=n;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var A=fe===n}else var A=!0;if(A){if(U.byteOffset!==void 0){let G=U.byteOffset;const fe=n;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var A=fe===n}else var A=!0;if(A)if(U.length!==void 0){let G=U.length;const fe=n;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var A=fe===n}else var A=!0}}}}}}else{const Q={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Q]:s.push(Q),n++}var m=se===n;if(X=X||m,!X){const Q=n;if(n===Q)if(U&&typeof U=="object"&&!Array.isArray(U)){let G;if(U.lastModified===void 0&&(G="lastModified")||U.name===void 0&&(G="name")||U.size===void 0&&(G="size")||U.type===void 0&&(G="type")||U.webkitRelativePath===void 0&&(G="webkitRelativePath")){const fe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in U)if(!(ie==="size"||ie==="type"||ie==="lastModified"||ie==="name"||ie==="webkitRelativePath")){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n){if(U.size!==void 0){let ie=U.size;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Se]:s.push(Se),n++}var y=ae===n}else var y=!0;if(y){if(U.type!==void 0){const ie=n;if(typeof U.type!="string"){const Se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Se]:s.push(Se),n++}var y=ie===n}else var y=!0;if(y){if(U.lastModified!==void 0){let ie=U.lastModified;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ae]:s.push(Ae),n++}var y=ae===n}else var y=!0;if(y){if(U.name!==void 0){const ie=n;if(typeof U.name!="string"){const Se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Se]:s.push(Se),n++}var y=ie===n}else var y=!0;if(y)if(U.webkitRelativePath!==void 0){const ie=n;if(typeof U.webkitRelativePath!="string"){const Se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Se]:s.push(Se),n++}var y=ie===n}else var y=!0}}}}}}else{const G={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[G]:s.push(G),n++}var m=Q===n;X=X||m}}if(X)n=W,s!==null&&(W?s.length=W:s=null);else{const se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[se]:s.push(se),n++}var w=q===n;if(!w)break}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[I]:s.push(I),n++}var p=S===n;C=C||p}}if(C)n=$,s!==null&&($?s.length=$:s=null);else{const F={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),n++,vt.errors=s,!1}var o=L===n}else var o=!0}}}}}else return vt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return vt.errors=s,n===0}const dv={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function We(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const A=n;for(const y in e)if(!jd.call(dv.properties,y))return We.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(A===n){if(e.relativeUri!==void 0){const y=n;if(typeof e.relativeUri!="string")return We.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=n;if(typeof e.scriptPath!="string")return We.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.protocol!==void 0){const y=n;if(typeof e.protocol!="string")return We.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const w=n;if(typeof y!="string")return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ud.enum},message:"must be equal to one of the allowed values"}],!1;var o=w===n}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const w=n;if(n===n)if(y&&typeof y=="object"&&!Array.isArray(y))for(const k in y){const L=n;if(typeof y[k]!="string")return We.errors=[{instancePath:t+"/headers/"+k.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=L===n;if(!l)break}else return We.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const w=n,b=n;let O=!1;const k=n;if(typeof y!="string"){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}var p=k===n;if(O=O||p,!O){const $=n;if(n===$)if(y&&typeof y=="object"&&!Array.isArray(y)){let E;if(y.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||y.buffer===void 0&&(E="buffer")||y.byteLength===void 0&&(E="byteLength")||y.byteOffset===void 0&&(E="byteOffset")||y.length===void 0&&(E="length")){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[T]:s.push(T),n++}else{const T=n;for(const F in y)if(!(F==="BYTES_PER_ELEMENT"||F==="buffer"||F==="byteLength"||F==="byteOffset"||F==="length")){let P=y[F];const S=n;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var c=S===n;if(!c)break}if(T===n){if(y.BYTES_PER_ELEMENT!==void 0){let F=y.BYTES_PER_ELEMENT;const P=n;if(!(typeof F=="number"&&isFinite(F))){const S={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[S]:s.push(S),n++}var h=P===n}else var h=!0;if(h){if(y.buffer!==void 0){let F=y.buffer;const P=n;if(n===P)if(F&&typeof F=="object"&&!Array.isArray(F)){let D;if(F.byteLength===void 0&&(D="byteLength")){const I={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};s===null?s=[I]:s.push(I),n++}else{const I=n;for(const U in F)if(U!=="byteLength"){const q={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};s===null?s=[q]:s.push(q),n++;break}if(I===n&&F.byteLength!==void 0){let U=F.byteLength;if(!(typeof U=="number"&&isFinite(U))){const q={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),n++}}}}else{const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0;if(h){if(y.byteLength!==void 0){let F=y.byteLength;const P=n;if(!(typeof F=="number"&&isFinite(F))){const D={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0;if(h){if(y.byteOffset!==void 0){let F=y.byteOffset;const P=n;if(!(typeof F=="number"&&isFinite(F))){const D={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0;if(h)if(y.length!==void 0){let F=y.length;const P=n;if(!(typeof F=="number"&&isFinite(F))){const D={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),n++}var h=P===n}else var h=!0}}}}}}else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[E]:s.push(E),n++}var p=$===n;O=O||p}if(O)n=b,s!==null&&(b?s.length=b:s=null);else{const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,We.errors=s,!1}var o=w===n}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const w=n;if(n===w)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return We.errors=[{instancePath:t+"/env/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===n;if(!m)break}else return We.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const w=n;if(n===w)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return We.errors=[{instancePath:t+"/$_SERVER/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=k===n;if(!g)break}else return We.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o)if(e.code!==void 0){const y=n;if(typeof e.code!="string")return We.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0}}}}}}}}}else return We.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return We.errors=s,n===0}function _(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let Me;if(e.step===void 0&&(Me="step"))return _.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:Me},message:"must have required property '"+Me+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.pluginPath===void 0&&(B="pluginPath")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="pluginPath"||f==="pluginName"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=re===n}else var o=!0;if(o)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===n}else var o=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=N===n}else var l=!0;if(l){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activatePlugin")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var l=N===n}else var l=!0;if(l){if(e.pluginPath!==void 0){const f=n;if(typeof e.pluginPath!="string")return _.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0;if(l)if(e.pluginName!==void 0){const f=n;if(typeof e.pluginName!="string")return _.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.step===void 0&&(B="step")||e.themeFolderName===void 0&&(B="themeFolderName"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeFolderName"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=re===n}else var p=!0;if(p)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=x===n}else var p=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=N===n}else var c=!0;if(c){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activateTheme")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=N===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const f=n;if(typeof e.themeFolderName!="string")return _.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=f===n}else var c=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.fromPath===void 0&&(B="fromPath")||e.step===void 0&&(B="step")||e.toPath===void 0&&(B="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var h=re===n}else var h=!0;if(h)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=x===n}else var h=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=N===n}else var m=!0;if(m){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="cp")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var m=N===n}else var m=!0;if(m){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return _.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0;if(m)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return _.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.consts===void 0&&(B="consts")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="consts"||f==="method"||f==="virtualize"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=re===n}else var g=!0;if(g)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=x===n}else var g=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var A=N===n}else var A=!0;if(A){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineWpConfigConsts")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var A=N===n}else var A=!0;if(A){if(e.consts!==void 0){let f=e.consts;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return _.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var A=N===n}else var A=!0;if(A){if(e.method!==void 0){let f=e.method;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="rewrite-wp-config"||f==="define-before-run"))return _.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:As.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var A=N===n}else var A=!0;if(A)if(e.virtualize!==void 0){const f=n;if(typeof e.virtualize!="boolean")return _.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var A=f===n}else var A=!0}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.siteUrl===void 0&&(B="siteUrl")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="siteUrl"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=re===n}else var y=!0;if(y)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=x===n}else var y=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var w=N===n}else var w=!0;if(w){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineSiteUrl")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var w=N===n}else var w=!0;if(w)if(e.siteUrl!==void 0){const f=n;if(typeof e.siteUrl!="string")return _.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=f===n}else var w=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wpCliPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=re===n}else var b=!0;if(b)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=x===n}else var b=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var O=N===n}else var O=!0;if(O){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="enableMultisite")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var O=N===n}else var O=!0;if(O)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return _.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=f===n}else var O=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.file===void 0&&(B="file")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="file"||f==="importer"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var k=re===n}else var k=!0;if(k)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=x===n}else var k=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=N===n}else var L=!0;if(L){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWxr")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var L=N===n}else var L=!0;if(L){if(e.file!==void 0){const f=n;_e(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var L=f===n}else var L=!0;if(L)if(e.importer!==void 0){let f=e.importer;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="data-liberation"||f==="default"))return _.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:As.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var L=N===n}else var L=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeSlug"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=re===n}else var $=!0;if($)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=x===n}else var $=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var C=N===n}else var C=!0;if(C){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importThemeStarterContent")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var C=N===n}else var C=!0;if(C)if(e.themeSlug!==void 0){const f=n;if(typeof e.themeSlug!="string")return _.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=f===n}else var C=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.step===void 0&&(B="step")||e.wordPressFilesZip===void 0&&(B="wordPressFilesZip"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wordPressFilesZip"||f==="pathInZip"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=re===n}else var E=!0;if(E)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=x===n}else var E=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=N===n}else var T=!0;if(T){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWordPressFiles")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var T=N===n}else var T=!0;if(T){if(e.wordPressFilesZip!==void 0){const f=n;_e(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var T=f===n}else var T=!0;if(T)if(e.pathInZip!==void 0){const f=n;if(typeof e.pathInZip!="string")return _.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=f===n}else var T=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.pluginData===void 0&&(B="pluginData")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="pluginData"||f==="pluginZipFile"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var F=re===n}else var F=!0;if(F)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=x===n}else var F=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=N===n}else var P=!0;if(P){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:As.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var P=N===n}else var P=!0;if(P){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installPlugin")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var P=N===n}else var P=!0;if(P){if(e.pluginData!==void 0){let f=e.pluginData;const N=n,te=n;let x=!1;const re=n;_e(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var S=re===n;if(x=x||S,!x){const ke=n;ut(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var S=ke===n;x=x||S}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var P=N===n}else var P=!0;if(P){if(e.pluginZipFile!==void 0){const f=n;_e(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var P=f===n}else var P=!0;if(P)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const $e in f)if(!($e==="activate"||$e==="targetFolderName"))return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(re===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return _.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=$e===n}else var D=!0;if(D)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return _.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=$e===n}else var D=!0}}else return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=N===n}else var P=!0}}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.step===void 0&&(B="step")||e.themeData===void 0&&(B="themeData"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="themeData"||f==="themeZipFile"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=re===n}else var I=!0;if(I)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=x===n}else var I=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=N===n}else var U=!0;if(U){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return _.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:As.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var U=N===n}else var U=!0;if(U){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installTheme")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var U=N===n}else var U=!0;if(U){if(e.themeData!==void 0){let f=e.themeData;const N=n,te=n;let x=!1;const re=n;_e(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var q=re===n;if(x=x||q,!x){const ke=n;ut(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var q=ke===n;x=x||q}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var U=N===n}else var U=!0;if(U){if(e.themeZipFile!==void 0){const f=n;_e(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var U=f===n}else var U=!0;if(U)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const $e in f)if(!($e==="activate"||$e==="importStarterContent"||$e==="targetFolderName"))return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(re===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return _.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var W=$e===n}else var W=!0;if(W){if(f.importStarterContent!==void 0){const $e=n;if(typeof f.importStarterContent!="boolean")return _.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var W=$e===n}else var W=!0;if(W)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return _.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=$e===n}else var W=!0}}}else return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=N===n}else var U=!0}}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="username"||f==="password"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=re===n}else var X=!0;if(X)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=x===n}else var X=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=N===n}else var V=!0;if(V){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="login")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var V=N===n}else var V=!0;if(V){if(e.username!==void 0){const f=n;if(typeof e.username!="string")return _.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=f===n}else var V=!0;if(V)if(e.password!==void 0){const f=n;if(typeof e.password!="string")return _.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=f===n}else var V=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.path===void 0&&(B="path")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=re===n}else var se=!0;if(se)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=x===n}else var se=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Z=N===n}else var Z=!0;if(Z){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mkdir")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var Z=N===n}else var Z=!0;if(Z)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=f===n}else var Z=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.fromPath===void 0&&(B="fromPath")||e.step===void 0&&(B="step")||e.toPath===void 0&&(B="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Q=re===n}else var Q=!0;if(Q)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=x===n}else var Q=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=N===n}else var ee=!0;if(ee){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mv")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=N===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return _.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return _.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var G=re===n}else var G=!0;if(G)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=x===n}else var G=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=N===n}else var fe=!0;if(fe)if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="resetData")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=N===n}else var fe=!0}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.request===void 0&&(B="request")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="request"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=re===n}else var ie=!0;if(ie)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=x===n}else var ie=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=N===n}else var ae=!0;if(ae){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="request")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ae=N===n}else var ae=!0;if(ae)if(e.request!==void 0){const f=n;vt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?vt.errors:s.concat(vt.errors),n=s.length);var ae=f===n}else var ae=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.path===void 0&&(B="path")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=re===n}else var Se=!0;if(Se)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Se=x===n}else var Se=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=N===n}else var Ae=!0;if(Ae){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rm")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Ae=N===n}else var Ae=!0;if(Ae)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ae=f===n}else var Ae=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.path===void 0&&(B="path")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=re===n}else var Xe=!0;if(Xe)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=x===n}else var Xe=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var tt=N===n}else var tt=!0;if(tt){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rmdir")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var tt=N===n}else var tt=!0;if(tt)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var tt=f===n}else var tt=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.code===void 0&&(B="code")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="code"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Et=re===n}else var Et=!0;if(Et)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Et=x===n}else var Et=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Le=N===n}else var Le=!0;if(Le){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHP")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Le=N===n}else var Le=!0;if(Le)if(e.code!==void 0){let f=e.code;const N=n,te=n;let x=!1;const re=n;if(typeof f!="string"){const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var Ce=re===n;if(x=x||Ce,!x){const ke=n;if(n===ke)if(f&&typeof f=="object"&&!Array.isArray(f)){let He;if(f.filename===void 0&&(He="filename")||f.content===void 0&&(He="content")){const er={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:He},message:"must have required property '"+He+"'"};s===null?s=[er]:s.push(er),n++}else{const er=n;for(const qe in f)if(!(qe==="filename"||qe==="content")){const Bt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:qe},message:"must NOT have additional properties"};s===null?s=[Bt]:s.push(Bt),n++;break}if(er===n){if(f.filename!==void 0){const qe=n;if(typeof f.filename!="string"){const Bt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Bt]:s.push(Bt),n++}var pt=qe===n}else var pt=!0;if(pt)if(f.content!==void 0){const qe=n;if(typeof f.content!="string"){const be={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var pt=qe===n}else var pt=!0}}}else{const He={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[He]:s.push(He),n++}var Ce=ke===n;x=x||Ce}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var Le=N===n}else var Le=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.options===void 0&&(B="options")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Re=re===n}else var Re=!0;if(Re)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=x===n}else var Re=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=N===n}else var v=!0;if(v){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHPWithOptions")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var v=N===n}else var v=!0;if(v)if(e.options!==void 0){const f=n;We(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?We.errors:s.concat(We.errors),n=s.length);var v=f===n}else var v=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.options===void 0&&(B="options")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=re===n}else var u=!0;if(u)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=x===n}else var u=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=N===n}else var d=!0;if(d){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runWpInstallationWizard")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var d=N===n}else var d=!0;if(d)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const $e in f)if(!($e==="adminUsername"||$e==="adminPassword"))return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(re===n){if(f.adminUsername!==void 0){const $e=n;if(typeof f.adminUsername!="string")return _.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=$e===n}else var R=!0;if(R)if(f.adminPassword!==void 0){const $e=n;if(typeof f.adminPassword!="string")return _.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=$e===n}else var R=!0}}else return _.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=N===n}else var d=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.sql===void 0&&(B="sql")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="sql"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=re===n}else var j=!0;if(j)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=x===n}else var j=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=N===n}else var H=!0;if(H){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runSql")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var H=N===n}else var H=!0;if(H)if(e.sql!==void 0){const f=n;_e(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var H=f===n}else var H=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.options===void 0&&(B="options")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var K=re===n}else var K=!0;if(K)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var K=x===n}else var K=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=N===n}else var pe=!0;if(pe){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteOptions")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=N===n}else var pe=!0;if(pe)if(e.options!==void 0){let f=e.options;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return _.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=N===n}else var pe=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.extractToPath===void 0&&(B="extractToPath")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="zipFile"||f==="zipPath"||f==="extractToPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var we=re===n}else var we=!0;if(we)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=x===n}else var we=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=N===n}else var he=!0;if(he){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="unzip")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=N===n}else var he=!0;if(he){if(e.zipFile!==void 0){const f=n;_e(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var he=f===n}else var he=!0;if(he){if(e.zipPath!==void 0){const f=n;if(typeof e.zipPath!="string")return _.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const f=n;if(typeof e.extractToPath!="string")return _.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0}}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.meta===void 0&&(B="meta")||e.step===void 0&&(B="step")||e.userId===void 0&&(B="userId"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="meta"||f==="userId"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var je=re===n}else var je=!0;if(je)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var je=x===n}else var je=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=N===n}else var ue=!0;if(ue){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="updateUserMeta")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=N===n}else var ue=!0;if(ue){if(e.meta!==void 0){let f=e.meta;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return _.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=N===n}else var ue=!0;if(ue)if(e.userId!==void 0){let f=e.userId;const N=n;if(!(typeof f=="number"&&isFinite(f)))return _.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=N===n}else var ue=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.data===void 0&&(B="data")||e.path===void 0&&(B="path")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"||f==="data"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var yt=re===n}else var yt=!0;if(yt)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var yt=x===n}else var yt=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=N===n}else var rt=!0;if(rt){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFile")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var rt=N===n}else var rt=!0;if(rt){if(e.path!==void 0){const f=n;if(typeof e.path!="string")return _.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=f===n}else var rt=!0;if(rt)if(e.data!==void 0){let f=e.data;const N=n,te=n;let x=!1;const re=n;_e(f,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var Ft=re===n;if(x=x||Ft,!x){const ke=n;if(typeof f!="string"){const He={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[He]:s.push(He),n++}var Ft=ke===n;if(x=x||Ft,!x){const He=n;if(n===He)if(f&&typeof f=="object"&&!Array.isArray(f)){let qe;if(f.BYTES_PER_ELEMENT===void 0&&(qe="BYTES_PER_ELEMENT")||f.buffer===void 0&&(qe="buffer")||f.byteLength===void 0&&(qe="byteLength")||f.byteOffset===void 0&&(qe="byteOffset")||f.length===void 0&&(qe="length")){const Bt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:qe},message:"must have required property '"+qe+"'"};s===null?s=[Bt]:s.push(Bt),n++}else{const Bt=n;for(const be in f)if(!(be==="BYTES_PER_ELEMENT"||be==="buffer"||be==="byteLength"||be==="byteOffset"||be==="length")){let gt=f[be];const cs=n;if(!(typeof gt=="number"&&isFinite(gt))){const Ve={instancePath:t+"/data/"+be.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var $i=cs===n;if(!$i)break}if(Bt===n){if(f.BYTES_PER_ELEMENT!==void 0){let be=f.BYTES_PER_ELEMENT;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const cs={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[cs]:s.push(cs),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.buffer!==void 0){let be=f.buffer;const gt=n;if(n===gt)if(be&&typeof be=="object"&&!Array.isArray(be)){let Ve;if(be.byteLength===void 0&&(Ve="byteLength")){const us={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ve},message:"must have required property '"+Ve+"'"};s===null?s=[us]:s.push(us),n++}else{const us=n;for(const _n in be)if(_n!=="byteLength"){const vn={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_n},message:"must NOT have additional properties"};s===null?s=[vn]:s.push(vn),n++;break}if(us===n&&be.byteLength!==void 0){let _n=be.byteLength;if(!(typeof _n=="number"&&isFinite(_n))){const vn={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[vn]:s.push(vn),n++}}}}else{const Ve={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteLength!==void 0){let be=f.byteLength;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteOffset!==void 0){let be=f.byteOffset;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt)if(f.length!==void 0){let be=f.length;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0}}}}}}else{const qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[qe]:s.push(qe),n++}var Ft=He===n;x=x||Ft}}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var rt=N===n}else var rt=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.filesTree===void 0&&(B="filesTree")||e.step===void 0&&(B="step")||e.writeToPath===void 0&&(B="writeToPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="writeToPath"||f==="filesTree"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var zr=re===n}else var zr=!0;if(zr)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var zr=x===n}else var zr=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=N===n}else var M=!0;if(M){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFiles")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var M=N===n}else var M=!0;if(M){if(e.writeToPath!==void 0){const f=n;if(typeof e.writeToPath!="string")return _.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=f===n}else var M=!0;if(M)if(e.filesTree!==void 0){const f=n;ut(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var M=f===n}else var M=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.command===void 0&&(B="command")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="command"||f==="wpCliPath"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=re===n}else var Y=!0;if(Y)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=x===n}else var Y=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=N===n}else var z=!0;if(z){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="wp-cli")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var z=N===n}else var z=!0;if(z){if(e.command!==void 0){let f=e.command;const N=n,te=n;let x=!1;const re=n;if(typeof f!="string"){const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var J=re===n;if(x=x||J,!x){const ke=n;if(n===ke)if(Array.isArray(f)){var ne=!0;const He=f.length;for(let er=0;er<He;er++){const qe=n;if(typeof f[er]!="string"){const be={instancePath:t+"/command/"+er,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var ne=qe===n;if(!ne)break}}else{const He={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[He]:s.push(He),n++}var J=ke===n;x=x||J}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,_.errors=s,!1}var z=N===n}else var z=!0;if(z)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return _.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=f===n}else var z=!0}}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.language===void 0&&(B="language")||e.step===void 0&&(B="step"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="language"))return _.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return _.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=re===n}else var le=!0;if(le)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return _.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=x===n}else var le=!0}}else return _.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=N===n}else var de=!0;if(de){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteLanguage")return _.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=N===n}else var de=!0;if(de)if(e.language!==void 0){const f=n;if(typeof e.language!="string")return _.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=f===n}else var de=!0}}}}else return _.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return _.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return _.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return _.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _.errors=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const C=n;for(const E in e)if(!jd.call(lv.properties,E))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(C===n){if(e.landingPage!==void 0){const E=n;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.description!==void 0){const E=n;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.meta!==void 0){let E=e.meta;const T=n;if(n===T)if(E&&typeof E=="object"&&!Array.isArray(E)){let P;if(E.title===void 0&&(P="title")||E.author===void 0&&(P="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"}],!1;{const S=n;for(const D in E)if(!(D==="title"||D==="description"||D==="author"||D==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(S===n){if(E.title!==void 0){const D=n;if(typeof E.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=D===n}else var l=!0;if(l){if(E.description!==void 0){const D=n;if(typeof E.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=D===n}else var l=!0;if(l){if(E.author!==void 0){const D=n;if(typeof E.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=D===n}else var l=!0;if(l)if(E.categories!==void 0){let D=E.categories;const I=n;if(n===I)if(Array.isArray(D)){var p=!0;const q=D.length;for(let W=0;W<q;W++){const X=n;if(typeof D[W]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+W,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=X===n;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var l=I===n}else var l=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=T===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let E=e.preferredVersions;const T=n;if(n===T)if(E&&typeof E=="object"&&!Array.isArray(E)){let P;if(E.php===void 0&&(P="php")||E.wp===void 0&&(P="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"}],!1;{const S=n;for(const D in E)if(!(D==="php"||D==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(S===n){if(E.php!==void 0){let D=E.php;const I=n,U=n;let q=!1;const W=n;Dn(D,{instancePath:t+"/preferredVersions/php",parentData:E,parentDataProperty:"php",rootData:a})||(s=s===null?Dn.errors:s.concat(Dn.errors),n=s.length);var c=W===n;if(q=q||c,!q){const X=n;if(typeof D!="string"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}if(D!=="latest"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[se]:s.push(se),n++}var c=X===n;q=q||c}if(q)n=U,s!==null&&(U?s.length=U:s=null);else{const X={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[X]:s.push(X),n++,me.errors=s,!1}var h=I===n}else var h=!0;if(h)if(E.wp!==void 0){const D=n;if(typeof E.wp!="string")return me.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=D===n}else var h=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=T===n}else var o=!0;if(o){if(e.features!==void 0){let E=e.features;const T=n;if(n===T)if(E&&typeof E=="object"&&!Array.isArray(E)){const P=n;for(const S in E)if(!(S==="intl"||S==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(P===n){if(E.intl!==void 0){const S=n;if(typeof E.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var m=S===n}else var m=!0;if(m)if(E.networking!==void 0){const S=n;if(typeof E.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var m=S===n}else var m=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=T===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let E=e.extraLibraries;const T=n;if(n===T)if(Array.isArray(E)){var g=!0;const P=E.length;for(let S=0;S<P;S++){let D=E[S];const I=n;if(typeof D!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(D!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var g=I===n;if(!g)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=T===n}else var o=!0;if(o){if(e.constants!==void 0){let E=e.constants;const T=n;if(n===n)if(E&&typeof E=="object"&&!Array.isArray(E))for(const S in E){let D=E[S];const I=n;if(typeof D!="string"&&typeof D!="boolean"&&!(typeof D=="number"&&isFinite(D)))return me.errors=[{instancePath:t+"/constants/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:fv.additionalProperties.type},message:"must be string,boolean,number"}],!1;var A=I===n;if(!A)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=T===n}else var o=!0;if(o){if(e.plugins!==void 0){let E=e.plugins;const T=n;if(n===T)if(Array.isArray(E)){var y=!0;const P=E.length;for(let S=0;S<P;S++){let D=E[S];const I=n,U=n;let q=!1;const W=n;if(typeof D!="string"){const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var w=W===n;if(q=q||w,!q){const V=n;_e(D,{instancePath:t+"/plugins/"+S,parentData:E,parentDataProperty:S,rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var w=V===n;q=q||w}if(q)n=U,s!==null&&(U?s.length=U:s=null);else{const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),n++,me.errors=s,!1}var y=I===n;if(!y)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=T===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let E=e.siteOptions;const T=n;if(n===T)if(E&&typeof E=="object"&&!Array.isArray(E)){const P=n;for(const S in E)if(S!=="blogname"){const D=n;if(typeof E[S]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=D===n;if(!b)break}if(P===n&&E.blogname!==void 0&&typeof E.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=T===n}else var o=!0;if(o){if(e.login!==void 0){let E=e.login;const T=n,F=n;let P=!1;const S=n;if(typeof E!="boolean"){const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[I]:s.push(I),n++}var O=S===n;if(P=P||O,!P){const I=n;if(n===I)if(E&&typeof E=="object"&&!Array.isArray(E)){let q;if(E.username===void 0&&(q="username")||E.password===void 0&&(q="password")){const W={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};s===null?s=[W]:s.push(W),n++}else{const W=n;for(const X in E)if(!(X==="username"||X==="password")){const V={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:X},message:"must NOT have additional properties"};s===null?s=[V]:s.push(V),n++;break}if(W===n){if(E.username!==void 0){const X=n;if(typeof E.username!="string"){const V={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var k=X===n}else var k=!0;if(k)if(E.password!==void 0){const X=n;if(typeof E.password!="string"){const se={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var k=X===n}else var k=!0}}}else{const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[q]:s.push(q),n++}var O=I===n;P=P||O}if(P)n=F,s!==null&&(F?s.length=F:s=null);else{const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[I]:s.push(I),n++,me.errors=s,!1}var o=T===n}else var o=!0;if(o){if(e.steps!==void 0){let E=e.steps;const T=n;if(n===T)if(Array.isArray(E)){var L=!0;const P=E.length;for(let S=0;S<P;S++){let D=E[S];const I=n,U=n;let q=!1;const W=n;_(D,{instancePath:t+"/steps/"+S,parentData:E,parentDataProperty:S,rootData:a})||(s=s===null?_.errors:s.concat(_.errors),n=s.length);var $=W===n;if(q=q||$,!q){const V=n;if(typeof D!="string"){const Z={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Z]:s.push(Z),n++}var $=V===n;if(q=q||$,!q){const Z=n,Q={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[Q]:s.push(Q),n++;var $=Z===n;if(q=q||$,!q){const G=n;if(typeof D!="boolean"){const ie={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if(D!==!1){const ie={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var $=G===n;if(q=q||$,!q){const ie=n;if(D!==null){const Se={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Se]:s.push(Se),n++}var $=ie===n;q=q||$}}}}if(q)n=U,s!==null&&(U?s.length=U:s=null);else{const V={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),n++,me.errors=s,!1}var L=I===n;if(!L)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=T===n}else var o=!0;if(o)if(e.$schema!==void 0){const E=n;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=s,n===0}function zs(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),zs.errors=s,n===0}const{wpCLI:hv,...Cp}=ov,mv={...Cp,"wp-cli":hv,importFile:Cp.importWxr};class Bd extends Error{constructor(t,r){super(t),this.name="InvalidBlueprintError",this.validationErrors=r}}class qd extends Error{constructor(t){const{stepNumber:r,step:i,cause:a}=t,s=a instanceof Error?a:new Error(String(a)),n=`Error when executing the blueprint step #${r}`,o=s.message?`${n}: ${s.message}`:n;super(o,{cause:s}),this.name="BlueprintStepExecutionError",this.stepNumber=r,this.step=i,this.messages=(s.message||"").split(`
|
|
1372
|
+
`).map(l=>l.trim()).filter(Boolean)}}async function Ai(e,t={}){const r={...t};let i;return Ko(e)?(i=await Md(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,yv(i,r)}function Ko(e){return e&&"read"in e&&typeof e.read=="function"}async function Md(e){if(!Ko(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function yv(e,{progress:t=new ci,semaphore:r=new Xn({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o,additionalSteps:l}={}){var y,w,b,O,k,L,$,C,E,T;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(zd).filter(bv)},e.steps=[...e.steps||[],...l||[]];for(const F of e.steps)!F||typeof F!="object"||(F.step==="importFile"?(F.step="importWxr",Oe.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(F==null?void 0:F.step)==="installPlugin"&&"pluginZipFile"in F?(F.pluginData=F.pluginZipFile,Oe.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(F==null?void 0:F.step)==="installTheme"&&"themeZipFile"in F&&(F.themeData=F.themeZipFile,Oe.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const F=e.plugins.map(P=>typeof P=="string"?P.startsWith("https://")?{resource:"url",url:P}:{resource:"wordpress.org/plugins",slug:P}:P).map(P=>({step:"installPlugin",pluginData:P}));e.steps.unshift(...F)}e.login&&e.steps.unshift({step:"login",...e.login===!0?{username:"admin"}:e.login});const p=((y=e.steps)==null?void 0:y.findIndex(F=>typeof F=="object"&&(F==null?void 0:F.step)&&["wp-cli","enableMultisite"].includes(F.step)))??-1;if((w=e==null?void 0:e.extraLibraries)!=null&&w.includes("wp-cli")||p!==-1){const F={step:"writeFile",data:Q_,path:Ho};p===-1?(b=e.steps)==null||b.push(F):(O=e.steps)==null||O.splice(p,0,F)}const c=(k=e.steps)==null?void 0:k.findIndex(F=>typeof F=="object"&&(F==null?void 0:F.step)==="importWxr");c!==void 0&&c>-1&&((L=e.steps)==null||L.splice(c,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const h=Wd(e);if(!h.valid){const{errors:F}=h,P=gv(e,F);throw new Bd(`Invalid Blueprint: The Blueprint does not conform to the schema.
|
|
1242
1373
|
|
|
1243
|
-
Found ${
|
|
1374
|
+
Found ${F.length} validation error(s):
|
|
1244
1375
|
|
|
1245
1376
|
${P}
|
|
1246
1377
|
|
|
1247
|
-
Please review your Blueprint and fix these issues. Learn more about the Blueprint format: https://wordpress.github.io/wordpress-playground/blueprints/data-format`,
|
|
1378
|
+
Please review your Blueprint and fix these issues. Learn more about the Blueprint format: https://wordpress.github.io/wordpress-playground/blueprints/data-format`,F)}a(e);const m=e.steps||[],g=m.reduce((F,P)=>{var S;return F+(((S=P.progress)==null?void 0:S.weight)||1)},0),A=m.map(F=>_v(F,{semaphore:r,rootProgressTracker:t,totalProgressWeight:g,corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o}));return{versions:{php:wv(($=e.preferredVersions)==null?void 0:$.php,di,Yp),wp:((C=e.preferredVersions)==null?void 0:C.wp)||"latest"},features:{intl:((E=e.features)==null?void 0:E.intl)??!1,networking:((T=e.features)==null?void 0:T.networking)??!0},extraLibraries:e.extraLibraries||[],run:async F=>{try{for(const{resources:P}of A)for(const S of P)S.setPlayground(F),S.isAsync&&S.resolve().catch(()=>{});for(const[P,{run:S,step:D}]of Object.entries(A))try{const I=await S(F);i(I,D)}catch(I){const U=Number(P)+1;throw new qd({stepNumber:U,step:D,cause:I})}}finally{try{const P=await F.pathToInternalUrl(e.landingPage||"/");await F.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(P))}catch{}t.finish()}}}}function gv(e,t){return t.map((r,i)=>{var o;const a=r.instancePath||"/";let s=r.message||"validation failed",n="";if(s.includes("must NOT have additional properties")){const l=(o=r.params)==null?void 0:o.additionalProperty;if(l){s=`has unexpected property "${l}"`;try{const p=a.split("/").filter(Boolean);let c=e;for(const h of p)c&&typeof c=="object"&&(c=c[h]);if(c&&typeof c=="object"){const h=c[l],m=JSON.stringify(h);n=`
|
|
1248
1379
|
"${l}": ${m}
|
|
1249
1380
|
${"^".repeat(l.length+2)} This property is not recognized`}}catch{}}}else try{const l=a.split("/").filter(Boolean);let p=e;for(const c of l)p&&typeof p=="object"&&(p=p[c]);if(p!==void 0){const c=JSON.stringify(p,null,2);n=`
|
|
1250
1381
|
Value: ${c.length>200?c.substring(0,200)+"...":c}`}}catch{}return`${i+1}. At path "${a}": ${s}${n}`}).join(`
|
|
1251
1382
|
|
|
1252
|
-
`)}function
|
|
1383
|
+
`)}function Wd(e){var a;const t=zs(e);if(t)return{valid:t};const r=new Set;for(const s of zs.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||r.add(s.instancePath);return{valid:!1,errors:((a=zs.errors)==null?void 0:a.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&r.has(s.instancePath))))??[]}}function wv(e,t,r){return(e==="7.2"||e==="7.3")&&(Oe.warn(`PHP ${e} is no longer supported. Automatically upgrading to PHP 7.4.`),e="7.4"),e&&t.includes(e)?e:r}function zd(e){return!!(typeof e=="object"&&e)}function bv(e){return["setPhpIniEntry","request"].includes(e.step)?(Oe.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function _v(e,{semaphore:t,rootProgressTracker:r,totalProgressWeight:i,corsProxy:a,streamBundledFile:s,gitAdditionalHeadersCallback:n}){var g;const o=r.stage((((g=e.progress)==null?void 0:g.weight)||1)/i),l={};for(const A of Object.keys(e)){let y=e[A];$_(y)&&(y=Pt.create(y,{semaphore:t,corsProxy:a,streamBundledFile:s,gitAdditionalHeadersCallback:n})),l[A]=y}const p=async A=>{var y;try{return o.fillSlowly(),await mv[e.step](A,await vv(l),{tracker:o,initialCaption:(y=e.progress)==null?void 0:y.caption})}finally{o.finish()}},c=Dp(l),h=Dp(l).filter(A=>A.isAsync),m=1/(h.length+1);for(const A of h)A.progress=o.stage(m);return{run:p,step:e,resources:c}}function Dp(e){const t=[];for(const r in e){const i=e[r];i instanceof Pt&&t.push(i)}return t}async function vv(e){const t={};for(const r in e){const i=e[r];i instanceof Pt?t[r]=await i.resolve():t[r]=i}return t}async function Xo(e,t){await e.run(t)}async function Hd(){const e=(await Promise.resolve().then(()=>require("./blueprints-Gs5fAvvo.cjs"))).default;return new File([e],"blueprints.phar",{type:"application/zip"})}function xv(e){if(typeof e=="object"&&"type"in e&&["inline-file","file-reference"].includes(e.type))return e;if(!e)return{type:"inline-file",contents:"{}"};if(typeof e!="string")return{type:"inline-file",contents:JSON.stringify(e)};try{return JSON.parse(e),{type:"inline-file",contents:e}}catch{return{type:"file-reference",reference:e}}}async function kv(e){var c,h;const t=e.cliArgs||[];for(const m of t)if(m.startsWith("--site-path="))throw new Error("The --site-path CLI argument must not be provided. In Playground, it is always set to /wordpress.");t.push("--site-path=/wordpress"),t.find(m=>m.startsWith("--db-engine="))||t.push("--db-engine=sqlite");const i=e.php,a=(e==null?void 0:e.onMessage)||(()=>{}),s=await Hd();i.writeFile("/tmp/blueprints.phar",new Uint8Array(await s.arrayBuffer()));const n=xv(e.blueprint);let o="";switch(n.type){case"inline-file":i.writeFile("/tmp/blueprint.json",n.contents),o="/tmp/blueprint.json";break;case"file-reference":o=n.reference;break}const l=await i.onMessage(async m=>{try{const g=typeof m=="string"?JSON.parse(m):m;if(!g)return;await new Promise(A=>setTimeout(A,0)),g.type.startsWith("blueprint.")&&await a(g)}catch(g){Oe.warn("Failed to parse message as JSON:",m,g)}});await(i==null?void 0:i.writeFile("/tmp/run-blueprints.php",`<?php
|
|
1253
1384
|
function playground_http_client_factory() {
|
|
1254
1385
|
return new WordPress\\HttpClient\\Client([
|
|
1255
1386
|
// sockets transport is somehow faster than curl in Playground. Maybe
|
|
@@ -1330,10 +1461,10 @@ function playground_progress_reporter() {
|
|
|
1330
1461
|
}
|
|
1331
1462
|
playground_add_filter('blueprint.progress_reporter', 'playground_progress_reporter');
|
|
1332
1463
|
require( "/tmp/blueprints.phar" );
|
|
1333
|
-
`));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(l),p}class
|
|
1464
|
+
`));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(l),p}class Vd extends Error{constructor(t,r,i){super(t,i),this.name="BlueprintFetchError",this.url=r}}async function Pv(e){let t;try{const r=await fetch(e,{credentials:"omit"});if(!r.ok)throw new Error(`Failed to fetch blueprint from ${e}`);t=await r.arrayBuffer()}catch(r){throw new Vd(`Blueprint file could not be resolved from ${e}: ${r instanceof Error?r.message:String(r)}`,e,{cause:r})}try{const r=new TextDecoder().decode(t);return JSON.parse(r),new x_([new v_({"blueprint.json":r}),new k_({baseUrl:e})])}catch(r){if(await Ev(t))return oi.fromArrayBuffer(t);throw new Error(`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`,{cause:r})}}async function Ev(e){if(e.byteLength<4)return!1;const t=new Uint8Array(e,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}async function Zd(e){if((await dn.create(e)).getVersion()===1){const r=await Ai(e);return{wpVersion:r.versions.wp,phpVersion:r.versions.php,intl:r.features.intl,networking:r.features.networking,extraLibraries:r.extraLibraries,constants:{}}}else return{phpVersion:Y_,wpVersion:"latest",intl:!1,networking:!0,constants:{},extraLibraries:[]}}function Sv(){}const Tv=[],Ov="127.0.0.1",Av=4400;class $v{constructor(t){this.options=t}async bootPlayground(t,r){const{onBlueprintValidated:i,onBlueprintStepCompleted:a,corsProxy:s,gitAdditionalHeadersCallback:n,mounts:o,sapiName:l,scope:p,shouldInstallWordPress:c,sqliteDriverVersion:h,wordpressInstallMode:m,onClientConnected:g,pathAliases:A}=this.options,y=r.stage(.5),w=r.stage(),b=this.options.blueprint||{},O=nc(t.contentWindow,t.ownerDocument.defaultView);await O.isConnected(),r.pipe(O);const k=await Zd(b);if(await O.onDownloadProgress(w.loadingListener),await O.boot({mounts:o,sapiName:l,scope:p??Math.random().toFixed(16),shouldInstallWordPress:c,wordpressInstallMode:m,phpVersion:k.phpVersion,wpVersion:k.wpVersion,withIntl:k.intl,withNetworking:k.networking,corsProxyUrl:s,sqliteDriverVersion:h,pathAliases:A}),await O.isReady(),w.finish(),qp(Oe,O),g==null||g(O),(await dn.create(b)).getVersion()===1){const $=await Ai(b,{progress:y,onStepCompleted:a,onBlueprintValidated:i,corsProxy:s,gitAdditionalHeadersCallback:n});await Xo($,O)}return k.networking&&await O.prefetchUpdateChecks(),O}}class Rv{constructor(t){this.options=t}async bootPlayground(t,r){const{blueprint:i,onClientConnected:a,corsProxy:s,mounts:n,sapiName:o,scope:l,pathAliases:p}=this.options,c=r.stage(.25),h=r.stage(.75),m=nc(t.contentWindow,t.ownerDocument.defaultView);return await m.isConnected(),r.pipe(m),await m.onDownloadProgress(c.loadingListener),await m.addEventListener("blueprint.message",({message:g})=>{switch(g.type){case"blueprint.target_resolved":break;case"blueprint.progress":{h.set(g.progress),h.setCaption(g.caption);break}case"blueprint.error":{const A="\x1B[31m",y="\x1B[1m",w="\x1B[0m";throw g.details?Oe.error(`${A}${y}Fatal error:${w} Uncaught ${g.details.exception}: ${g.details.message}
|
|
1334
1465
|
at ${g.details.file}:${g.details.line}
|
|
1335
1466
|
`+(g.details.trace?g.details.trace+`
|
|
1336
|
-
`:"")):
|
|
1337
|
-
`),new Error(g.message)}}}),await m.boot({mounts:n,sapiName:o,scope:l??Math.random().toFixed(16),corsProxyUrl:s,experimentalBlueprintsV2Runner:!0,blueprint:i,pathAliases:p}),await m.isReady(),c.finish(),
|
|
1338
|
-
${
|
|
1339
|
-
`)}`)}function
|
|
1467
|
+
`:"")):Oe.error(`${A}${y}Error:${w} ${g.message}
|
|
1468
|
+
`),new Error(g.message)}}}),await m.boot({mounts:n,sapiName:o,scope:l??Math.random().toFixed(16),corsProxyUrl:s,experimentalBlueprintsV2Runner:!0,blueprint:i,pathAliases:p}),await m.isReady(),c.finish(),qp(Oe,m),a==null||a(m),m.goTo("/"),m}}async function Fv(e){const{iframe:t,progressTracker:r=new ci,disableProgressBar:i}=e;let{remoteUrl:a}=e;Cv(a),Iv(t),a=Dv(a,{progressbar:!i,"blueprints-runner":e.experimentalBlueprintsV2Runner?"v2":"v1"}),r.setCaption("Preparing WordPress"),await new Promise(o=>{t.src=a,t.addEventListener("load",o,!1)});const n=await(e.experimentalBlueprintsV2Runner?new Rv(e):new $v(e)).bootPlayground(t,r);return r.finish(),n}function Iv(e){var t,r;(t=e.sandbox)!=null&&t.length&&!((r=e.sandbox)!=null&&r.contains("allow-storage-access-by-user-activation"))&&e.sandbox.add("allow-storage-access-by-user-activation")}const Gd="https://playground.wordpress.net",Lv=`http://${Ov}:${Av}`,Np=[Gd,Lv,"https://wasm.wordpress.net",location.origin,new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:nn&&nn.tagName.toUpperCase()==="SCRIPT"&&nn.src||new URL("index.cjs",document.baseURI).href).origin,"http://localhost","http://localhost:5400","https://localhost","http://127.0.0.1","http://127.0.0.1:5400","https://127.0.0.1",...Tv],Yd=Gd;function Cv(e){const t=new URL(e,Yd);if(!(Np.includes(t.origin)&&t.pathname==="/remote.html"))throw new Error(`Invalid remote URL: ${t}. Expected remote URL to have a path of "/remote.html" based on one of the following origins:
|
|
1469
|
+
${Np.join(`
|
|
1470
|
+
`)}`)}function Dv(e,t){const r=new URL(e,Yd),i=new URLSearchParams(r.search);for(const[a,s]of Object.entries(t))if(s!=null&&s!==!1)if(Array.isArray(s))for(const n of s)i.append(a,n.toString());else i.set(a,s.toString());return r.search=i.toString(),r.toString()}exports.BlueprintFetchError=Vd;exports.BlueprintFilesystemRequiredError=pd;exports.BlueprintReflection=dn;exports.BlueprintStepExecutionError=qd;exports.InvalidBlueprintError=Bd;exports.LatestSupportedPHPVersion=Yp;exports.ResourceDownloadError=Ws;exports.SupportedPHPVersions=di;exports.SupportedPHPVersionsList=Rh;exports.activatePlugin=Mo;exports.activateTheme=Wo;exports.compileBlueprint=Ai;exports.compileBlueprintV1=Ai;exports.cp=xd;exports.defineSiteUrl=Zo;exports.defineWpConfigConsts=Si;exports.enableMultisite=vd;exports.exportWXR=Ad;exports.getBlueprintDeclaration=Md;exports.getV2Runner=Hd;exports.importThemeStarterContent=Go;exports.importWordPressFiles=Od;exports.importWxr=Td;exports.installPlugin=Rd;exports.installTheme=Fd;exports.isBlueprintBundle=Ko;exports.isStepDefinition=zd;exports.login=Id;exports.mkdir=Pd;exports.mv=kd;exports.phpVar=lt;exports.phpVars=qr;exports.request=yd;exports.resetData=Ld;exports.resolveRemoteBlueprint=Pv;exports.resolveRuntimeConfiguration=Zd;exports.rm=fi;exports.rmdir=Ed;exports.runBlueprintSteps=Xo;exports.runBlueprintV1Steps=Xo;exports.runBlueprintV2=kv;exports.runPHP=dd;exports.runPHPWithOptions=hd;exports.runSql=md;exports.runWpInstallationWizard=Cd;exports.setPhpIniEntries=yh;exports.setPluginProxyURL=Sv;exports.setSiteLanguage=Nd;exports.setSiteOptions=zo;exports.startPlaygroundWeb=Fv;exports.unzip=Oi;exports.updateUserMeta=bd;exports.validateBlueprint=Wd;exports.wpCLI=Vo;exports.wpContentFilesExcludedFromExport=Yo;exports.writeFile=Ti;exports.writeFiles=Sd;exports.zipWpContent=Dd;
|