@wix/cli-app 1.1.11 → 1.1.12
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/build/CreateVersionCommand-NUIIBF7A.js +4 -0
- package/build/{CreateVersionCommand-RHTO3DA7.js.map → CreateVersionCommand-NUIIBF7A.js.map} +1 -1
- package/build/DevCommand-BN25CWVP.js +4 -0
- package/build/{DevCommand-OFSQSCJW.js.map → DevCommand-BN25CWVP.js.map} +1 -1
- package/build/GenerateCommand-YJ27MSRT.js +99 -0
- package/build/GenerateCommand-YJ27MSRT.js.map +1 -0
- package/build/PreviewCommand-UC6TGBTC.js +4 -0
- package/build/ServeCommand-HWXGL7AV.js +4 -0
- package/build/{ServeCommand-R5SAKRKU.js.map → ServeCommand-HWXGL7AV.js.map} +1 -1
- package/build/{build-IS5AWEWP.js → build-RP6W4QEA.js} +2 -2
- package/build/chunk-6WJSV7WT.js +4 -0
- package/build/chunk-6WJSV7WT.js.map +1 -0
- package/build/chunk-B5HZNQJV.js +4 -0
- package/build/{chunk-2BVF7R6U.js → chunk-BGJWNKGZ.js} +2 -2
- package/build/{chunk-7WZDL63V.js → chunk-BO7BWQLZ.js} +2 -2
- package/build/{chunk-HNH75HDQ.js → chunk-D2SHWB76.js} +2 -2
- package/build/{chunk-QWDVUZEW.js → chunk-F2KYPCJP.js} +2 -2
- package/build/{chunk-7BWMEPZ3.js → chunk-F3BQNR6X.js} +2 -2
- package/build/{chunk-JWWXSIBF.js → chunk-FV67T4ZH.js} +2 -2
- package/build/{chunk-JWWXSIBF.js.map → chunk-FV67T4ZH.js.map} +1 -1
- package/build/{chunk-YHWDL3DF.js → chunk-G5KG2B42.js} +2 -2
- package/build/chunk-GCBXRNFB.js +75 -0
- package/build/chunk-GCBXRNFB.js.map +1 -0
- package/build/{chunk-RJ43KJ3G.js → chunk-K7GUDJFG.js} +2 -2
- package/build/{chunk-JCBTQBIR.js → chunk-OYUGDF7S.js} +2 -2
- package/build/chunk-PJ7ZZBC4.js +11 -0
- package/build/chunk-PJ7ZZBC4.js.map +1 -0
- package/build/{chunk-2MVU7B3I.js → chunk-RQK35Z3D.js} +4 -4
- package/build/chunk-RQK35Z3D.js.map +1 -0
- package/build/{chunk-5IXE5FNR.js → chunk-UJW3X3T2.js} +2 -2
- package/build/chunk-UZC2NC3I.js +4 -0
- package/build/chunk-UZC2NC3I.js.map +1 -0
- package/build/chunk-VOV46J2K.js +4 -0
- package/build/chunk-VOV46J2K.js.map +1 -0
- package/build/{chunk-ZHEN7NIQ.js → chunk-VWRROJHT.js} +2 -2
- package/build/{chunk-UBWBH64V.js → chunk-W74FRPRP.js} +2 -2
- package/build/{chunk-EQI25LY6.js → chunk-Y4THEZGJ.js} +2 -2
- package/build/{chunk-EQI25LY6.js.map → chunk-Y4THEZGJ.js.map} +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/{preview-6XHIXIDA.js → preview-US5F3VRS.js} +2 -2
- package/build/{render-command-MG2TJRUD.js → render-command-SXRUN6CW.js} +2 -2
- package/package.json +2 -2
- package/templates/custom-element/element.json.ejs +4 -0
- package/templates/custom-element/element.tsx.ejs +13 -0
- package/templates/custom-element/panel.tsx.ejs +13 -0
- package/templates/dashboard-plugin/plugin.json.ejs +4 -0
- package/templates/{dashboard-page-plugin → dashboard-plugin}/plugin.tsx.ejs +4 -4
- package/build/CreateVersionCommand-RHTO3DA7.js +0 -4
- package/build/DevCommand-OFSQSCJW.js +0 -4
- package/build/GenerateCommand-43LJGGHV.js +0 -99
- package/build/GenerateCommand-43LJGGHV.js.map +0 -1
- package/build/PreviewCommand-CEE6NMDS.js +0 -4
- package/build/ServeCommand-R5SAKRKU.js +0 -4
- package/build/chunk-2MVU7B3I.js.map +0 -1
- package/build/chunk-47TDKY2B.js +0 -4
- package/build/chunk-BPHZBR73.js +0 -4
- package/build/chunk-BPHZBR73.js.map +0 -1
- package/build/chunk-GNLLOWHY.js +0 -75
- package/build/chunk-GNLLOWHY.js.map +0 -1
- package/build/chunk-LW6L3WY3.js +0 -11
- package/build/chunk-LW6L3WY3.js.map +0 -1
- package/build/chunk-WV4KTPXI.js +0 -4
- package/build/chunk-WV4KTPXI.js.map +0 -1
- package/templates/dashboard-page-plugin/plugin.json.ejs +0 -4
- /package/build/{PreviewCommand-CEE6NMDS.js.map → PreviewCommand-UC6TGBTC.js.map} +0 -0
- /package/build/{build-IS5AWEWP.js.map → build-RP6W4QEA.js.map} +0 -0
- /package/build/{chunk-47TDKY2B.js.map → chunk-B5HZNQJV.js.map} +0 -0
- /package/build/{chunk-2BVF7R6U.js.map → chunk-BGJWNKGZ.js.map} +0 -0
- /package/build/{chunk-7WZDL63V.js.map → chunk-BO7BWQLZ.js.map} +0 -0
- /package/build/{chunk-HNH75HDQ.js.map → chunk-D2SHWB76.js.map} +0 -0
- /package/build/{chunk-QWDVUZEW.js.map → chunk-F2KYPCJP.js.map} +0 -0
- /package/build/{chunk-7BWMEPZ3.js.map → chunk-F3BQNR6X.js.map} +0 -0
- /package/build/{chunk-YHWDL3DF.js.map → chunk-G5KG2B42.js.map} +0 -0
- /package/build/{chunk-RJ43KJ3G.js.map → chunk-K7GUDJFG.js.map} +0 -0
- /package/build/{chunk-JCBTQBIR.js.map → chunk-OYUGDF7S.js.map} +0 -0
- /package/build/{chunk-5IXE5FNR.js.map → chunk-UJW3X3T2.js.map} +0 -0
- /package/build/{chunk-ZHEN7NIQ.js.map → chunk-VWRROJHT.js.map} +0 -0
- /package/build/{chunk-UBWBH64V.js.map → chunk-W74FRPRP.js.map} +0 -0
- /package/build/{preview-6XHIXIDA.js.map → preview-US5F3VRS.js.map} +0 -0
- /package/build/{render-command-MG2TJRUD.js.map → render-command-SXRUN6CW.js.map} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{a as T,c as _,e as ve,h}from"./chunk-HFDLXX7R.js";var pd=_((kk,dd)=>{"use strict";h();var Ln=T("assert"),AT=T("stream").Stream,bT=T("util"),NT=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function dc(t){return t.charAt(0).toUpperCase()+t.slice(1)}function cr(t,e,r,s,i){throw new Ln.AssertionError({message:bT.format("%s (%s) is required",t,e),actual:i===void 0?typeof s:i(s),expected:e,operator:r||"===",stackStartFunction:cr.caller})}function pc(t){return Object.prototype.toString.call(t).slice(8,-1)}function Cs(){}var Di={bool:{check:function(t){return typeof t=="boolean"}},func:{check:function(t){return typeof t=="function"}},string:{check:function(t){return typeof t=="string"}},object:{check:function(t){return typeof t=="object"&&t!==null}},number:{check:function(t){return typeof t=="number"&&!isNaN(t)}},finite:{check:function(t){return typeof t=="number"&&!isNaN(t)&&isFinite(t)}},buffer:{check:function(t){return Buffer.isBuffer(t)},operator:"Buffer.isBuffer"},array:{check:function(t){return Array.isArray(t)},operator:"Array.isArray"},stream:{check:function(t){return t instanceof AT},operator:"instanceof",actual:pc},date:{check:function(t){return t instanceof Date},operator:"instanceof",actual:pc},regexp:{check:function(t){return t instanceof RegExp},operator:"instanceof",actual:pc},uuid:{check:function(t){return typeof t=="string"&&NT.test(t)},operator:"isUUID"}};function fd(t){var e=Object.keys(Di),r;return process.env.NODE_NDEBUG?r=Cs:r=function(s,i){s||cr(i,"true",s)},e.forEach(function(s){if(t){r[s]=Cs;return}var i=Di[s];r[s]=function(n,o){i.check(n)||cr(o,s,i.operator,n,i.actual)}}),e.forEach(function(s){var i="optional"+dc(s);if(t){r[i]=Cs;return}var n=Di[s];r[i]=function(o,a){o!=null&&(n.check(o)||cr(a,s,n.operator,o,n.actual))}}),e.forEach(function(s){var i="arrayOf"+dc(s);if(t){r[i]=Cs;return}var n=Di[s],o="["+s+"]";r[i]=function(a,c){Array.isArray(a)||cr(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||cr(c,o,n.operator,a,n.actual)}}),e.forEach(function(s){var i="optionalArrayOf"+dc(s);if(t){r[i]=Cs;return}var n=Di[s],o="["+s+"]";r[i]=function(a,c){if(a!=null){Array.isArray(a)||cr(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||cr(c,o,n.operator,a,n.actual)}}}),Object.keys(Ln).forEach(function(s){if(s==="AssertionError"){r[s]=Ln[s];return}if(t){r[s]=Cs;return}r[s]=Ln[s]}),r._setExports=fd,r}dd.exports=fd(process.env.NODE_NDEBUG)});var Ed=_(Mn=>{"use strict";h();var Li=T("assert"),IT=T("util");Mn.sprintf=_c;Mn.printf=wT;Mn.fprintf=md;function _c(t){var e=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),r=new RegExp(e),s=Array.prototype.slice.call(arguments,1),i=t,n,o,a,c,u,l,f,d,E,g="",y=1,A=0,b,M;for(Li.equal("string",typeof i,"first argument must be a format string");(E=r.exec(i))!==null;){if(g+=E[1],i=i.substring(E[0].length),M=E[0].substring(E[1].length),b=A+E[1].length+1,A+=E[0].length,n=E[2]||"",o=E[3]||0,a=E[4]||"",c=E[6],u=!1,f=!1,l=" ",c=="%"){g+="%";continue}if(s.length===0)throw xi(t,b,M,"has no matching argument (too few arguments passed)");if(d=s.shift(),y++,n.match(/[\' #]/))throw xi(t,b,M,"uses unsupported flags");if(a.length>0)throw xi(t,b,M,"uses non-zero precision (not supported)");switch(n.match(/-/)&&(u=!0),n.match(/0/)&&(l="0"),n.match(/\+/)&&(f=!0),c){case"s":if(d==null)throw xi(t,b,M,"attempted to print undefined or null as a string (argument "+y+" to sprintf)");g+=mc(l,o,u,d.toString());break;case"d":d=Math.floor(d);case"f":f=f&&d>0?"+":"",g+=f+mc(l,o,u,d.toString());break;case"x":g+=mc(l,o,u,d.toString(16));break;case"j":o===0&&(o=10),g+=IT.inspect(d,!1,o);break;case"r":g+=_d(d);break;default:throw xi(t,b,M,"is not supported")}}return g+=i,g}function xi(t,e,r,s){return Li.equal(typeof t,"string"),Li.equal(typeof r,"string"),Li.equal(typeof e,"number"),Li.equal(typeof s,"string"),new Error('format string "'+t+'": conversion specifier "'+r+'" at character '+e+" "+s)}function wT(){var t=Array.prototype.slice.call(arguments);t.unshift(process.stdout),md.apply(null,t)}function md(t){var e=Array.prototype.slice.call(arguments,1);return t.write(_c.apply(this,e))}function mc(t,e,r,s){for(var i=s;i.length<e;)r?i+=t:i=t+i;return i}function _d(t){var e;if(!(t instanceof Error))throw new Error(_c("invalid type for %%r: %j",t));if(e="EXCEPTION: "+t.constructor.name+": "+t.stack,t.cause&&typeof t.cause=="function"){var r=t.cause();r&&(e+=`
|
|
4
|
+
Caused by: `+_d(r))}return e}});var gd=_(De=>{"use strict";h();function CT(t){return Array.isArray?Array.isArray(t):Fn(t)==="[object Array]"}De.isArray=CT;function PT(t){return typeof t=="boolean"}De.isBoolean=PT;function DT(t){return t===null}De.isNull=DT;function xT(t){return t==null}De.isNullOrUndefined=xT;function LT(t){return typeof t=="number"}De.isNumber=LT;function MT(t){return typeof t=="string"}De.isString=MT;function FT(t){return typeof t=="symbol"}De.isSymbol=FT;function kT(t){return t===void 0}De.isUndefined=kT;function UT(t){return Fn(t)==="[object RegExp]"}De.isRegExp=UT;function BT(t){return typeof t=="object"&&t!==null}De.isObject=BT;function jT(t){return Fn(t)==="[object Date]"}De.isDate=jT;function GT(t){return Fn(t)==="[object Error]"||t instanceof Error}De.isError=GT;function qT(t){return typeof t=="function"}De.isFunction=qT;function HT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}De.isPrimitive=HT;De.isBuffer=Buffer.isBuffer;function Fn(t){return Object.prototype.toString.call(t)}});var Un=_((Hk,yd)=>{"use strict";h();var ge=pd(),kn=T("util"),VT=Ed(),pt=gd().isError,WT=VT.sprintf;yd.exports=X;X.VError=X;X.SError=Mi;X.WError=ur;X.MultiError=Ps;function Ec(t){var e,r,s,i,n;if(ge.object(t,"args"),ge.bool(t.strict,"args.strict"),ge.array(t.argv,"args.argv"),e=t.argv,e.length===0)r={},s=[];else if(pt(e[0]))r={cause:e[0]},s=e.slice(1);else if(typeof e[0]=="object"){r={};for(n in e[0])r[n]=e[0][n];s=e.slice(1)}else ge.string(e[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),r={},s=e;return ge.object(r),!r.strict&&!t.strict&&(s=s.map(function(o){return o===null?"null":o===void 0?"undefined":o})),s.length===0?i="":i=WT.apply(null,s),{options:r,shortmessage:i}}function X(){var t,e,r,s,i,n,o;if(t=Array.prototype.slice.call(arguments,0),!(this instanceof X))return e=Object.create(X.prototype),X.apply(e,arguments),e;if(r=Ec({argv:t,strict:!1}),r.options.name&&(ge.string(r.options.name,`error's "name" must be a string`),this.name=r.options.name),this.jse_shortmsg=r.shortmessage,n=r.shortmessage,s=r.options.cause,s&&(ge.ok(pt(s),"cause is not an Error"),this.jse_cause=s,r.options.skipCauseMessage||(n+=": "+s.message)),this.jse_info={},r.options.info)for(o in r.options.info)this.jse_info[o]=r.options.info[o];return this.message=n,Error.call(this,n),Error.captureStackTrace&&(i=r.options.constructorOpt||this.constructor,Error.captureStackTrace(this,i)),this}kn.inherits(X,Error);X.prototype.name="VError";X.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),e};X.prototype.cause=function(){var e=X.cause(this);return e===null?void 0:e};X.cause=function(t){return ge.ok(pt(t),"err must be an Error"),pt(t.jse_cause)?t.jse_cause:null};X.info=function(t){var e,r,s;if(ge.ok(pt(t),"err must be an Error"),r=X.cause(t),r!==null?e=X.info(r):e={},typeof t.jse_info=="object"&&t.jse_info!==null)for(s in t.jse_info)e[s]=t.jse_info[s];return e};X.findCauseByName=function(t,e){var r;for(ge.ok(pt(t),"err must be an Error"),ge.string(e,"name"),ge.ok(e.length>0,"name cannot be empty"),r=t;r!==null;r=X.cause(r))if(ge.ok(pt(r)),r.name==e)return r;return null};X.hasCauseWithName=function(t,e){return X.findCauseByName(t,e)!==null};X.fullStack=function(t){ge.ok(pt(t),"err must be an Error");var e=X.cause(t);return e?t.stack+`
|
|
5
|
+
caused by: `+X.fullStack(e):t.stack};X.errorFromList=function(t){return ge.arrayOfObject(t,"errors"),t.length===0?null:(t.forEach(function(e){ge.ok(pt(e))}),t.length==1?t[0]:new Ps(t))};X.errorForEach=function(t,e){ge.ok(pt(t),"err must be an Error"),ge.func(e,"func"),t instanceof Ps?t.errors().forEach(function(s){e(s)}):e(t)};function Mi(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof Mi?(r=Ec({argv:t,strict:!0}),s=r.options,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(Mi.prototype),Mi.apply(e,arguments),e)}kn.inherits(Mi,X);function Ps(t){ge.array(t,"list of errors"),ge.ok(t.length>0,"must be at least one error"),this.ase_errors=t,X.call(this,{cause:t[0]},"first of %d error%s",t.length,t.length==1?"":"s")}kn.inherits(Ps,X);Ps.prototype.name="MultiError";Ps.prototype.errors=function(){return this.ase_errors.slice(0)};function ur(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof ur?(r=Ec({argv:t,strict:!1}),s=r.options,s.skipCauseMessage=!0,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(ur.prototype),ur.apply(e,t),e)}kn.inherits(ur,X);ur.prototype.name="WError";ur.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(e+="; caused by "+this.jse_cause.toString()),e};ur.prototype.cause=function(e){return pt(e)&&(this.jse_cause=e),this.jse_cause}});var gc=_(Bn=>{"use strict";h();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.isTypeImpl=void 0;function YT(t){function e(r,s){if(r!=null)if(typeof r=="function"||typeof r=="string"){let i=r,n=typeof i=="string"?i:i.output.type;return o=>e(o,n)}else{let i=r,n=typeof s=="string"?s:s.output.type;return i!=null&&i[t??"type"]===n}else return!1}return{isType:e}}Bn.isTypeImpl=YT});var yc=_(lr=>{"use strict";h();Object.defineProperty(lr,"__esModule",{value:!0});lr.HOI=lr.isPromise=lr.identityFunc=void 0;var KT=(t={})=>t;lr.identityFunc=KT;function zT(t){return t!=null&&typeof t=="object"&&"then"in t&&typeof t.then=="function"}lr.isPromise=zT;var XT=()=>t=>t;lr.HOI=XT});var hr=_(Ut=>{"use strict";h();Object.defineProperty(Ut,"__esModule",{value:!0});Ut.variantImpl=Ut.isVariantCreator=Ut.scopeType=void 0;var jn=yc(),ZT=(t,e)=>`${t}/${e}`;Ut.scopeType=ZT;function QT(t){var e;return(e=t.split("/")[1])!==null&&e!==void 0?e:t}var Sc=Symbol("Variant Creator");function Od(t){return Sc in t}Ut.isVariantCreator=Od;function JT(t){function e(a,c){return Object.keys(c).reduce((u,l)=>Object.assign(Object.assign({},u),{[l]:s((0,Ut.scopeType)(a,l),typeof c[l]=="function"?c[l]:jn.identityFunc)}),{})}function r(a){return Object.assign(Object.assign({},a),{[t]:QT(a[t])})}function s(a,c){let u=(...f)=>{let d=(c??jn.identityFunc)(...f);return(0,jn.isPromise)(d)?d.then(E=>t in(E??{})?E:Object.assign(E??{},{[t]:a})):t in(d??{})?d:Object.assign(d??{},{[t]:a})};return Object.defineProperty(u,"name",{value:a,writable:!1}),Object.assign(u,{output:{key:t,type:a}},{[Sc]:Sc,toString:function(){return this.output.type}})}function i(a){return Object.entries(a).reduce((c,[u,l])=>{let f=typeof l=="function"?Od(l)?l:s(u,l):s(u,jn.identityFunc);return Object.assign(Object.assign({},c),{[u]:f})},{})}function n(a){return a.map(c=>typeof c=="string"?s(c):c).reduce((c,u)=>{let l=typeof u=="string"?s(u):u;return Object.assign(Object.assign({},c),{[l.output.type]:l})},{})}function o(a){return Array.isArray(a)?n(a):i(a)}return{descope:r,scoped:e,variant:o,variantList:n,variantModule:i,variation:s}}Ut.variantImpl=JT});var Rd=_(Gn=>{"use strict";h();Object.defineProperty(Gn,"__esModule",{value:!0});Gn.DEFAULT_KEY=void 0;Gn.DEFAULT_KEY="default"});var Oc=_(qn=>{"use strict";h();Object.defineProperty(qn,"__esModule",{value:!0});qn.matchImpl=void 0;var eA=hr(),vd=Rd();function tA(t){let e=u=>l=>f=>r(f,l);function r(...u){var l,f;if(u.length===1){let[d]=u;return E=>r(E,d)}else if(u.length===2){let[d,E]=u,g=typeof d=="string"?n(d):d,y=typeof E=="function"?E(g):E,A=g==null?void 0:(0,eA.isVariantCreator)(g)?g.output.type:g[t];if(g!=null&&A!==void 0&&A in y)return(l=y[A])===null||l===void 0?void 0:l.call(y,g);if(vd.DEFAULT_KEY in y)return(f=y[vd.DEFAULT_KEY])===null||f===void 0?void 0:f.call(y,g)}}let s=u=>()=>u,i=n;function n(u){return{[t]:u}}function o(u){let l=Object.keys(u).reduce((f,d)=>Object.assign(Object.assign({},f),{[d]:()=>u[d]}),{});return f=>l}function a(u,l){return f=>Object.assign(Object.assign({},u),{default:l})}function c(u,l){return f=>Object.assign(Object.assign({},u),{default:l})}return{match:r,ofLiteral:n,onLiteral:i,otherwise:a,partial:s,prematch:e,lookup:o,withFallback:c}}qn.matchImpl=tA});var Td=_(Hn=>{"use strict";h();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.typesImpl=void 0;var rA=hr();function sA(t){function e(s){return Array.isArray(s)?s.length&&(0,rA.isVariantCreator)(s[0])?s.map(i=>i.output.type):s.map(i=>i[t]):Object.values(s).map(i=>i.output.type)}function r(s){return new Proxy({},{get:(i,n)=>n})}return{types:e,inferTypes:r}}Hn.typesImpl=sA});var Rc=_(Vn=>{"use strict";h();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.flagsImpl=void 0;function iA(t){function e(r){return r.reduce((s,i)=>Object.assign(Object.assign({},s),{[i[t]]:i}),Object.create(null))}return{flags:e}}Vn.flagsImpl=iA});var Ad=_(Wn=>{"use strict";h();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.isOfVariantImpl=void 0;function nA(t){function e(...r){if(r.length===1){let[s]=r;return i=>i!=null&&Object.values(s).some(n=>n.output.type===i[t])}else if(r.length===2){let[s,i]=r;return s!=null&&Object.values(i).some(n=>n.output.type===s[t])}return!1}return{isOfVariant:e}}Wn.isOfVariantImpl=nA});var bd=_($r=>{"use strict";h();Object.defineProperty($r,"__esModule",{value:!0});$r.remoteImpl=$r.CompareResult=void 0;var oA=gc(),aA=Oc(),cA=hr(),uA;(function(t){t[t.Lesser=-1]="Lesser",t[t.Equal=0]="Equal",t[t.Greater=1]="Greater"})(uA=$r.CompareResult||($r.CompareResult={}));function lA(t){let{isType:e}=(0,oA.isTypeImpl)(t),{match:r}=(0,aA.matchImpl)(t),{variantList:s}=(0,cA.variantImpl)(t);function i(l){return Object.keys(l).reduce((d,E)=>Object.assign(Object.assign({},d),{[E]:e(E)}),{})}function n(l){return{key:t,is:i(l),new:l,match:r}}function o(l){return typeof l=="string"?l:typeof l=="function"?l.output.type:l[t]}function a(l,f){let E=n(l),g=f.map(o);return Object.assign(Object.assign({},E),{length:f.length,compare:(y,A)=>{let b=g.findIndex(de=>de===o(y)),M=g.findIndex(de=>de===o(A)),$=b-M;return $===0?$:$/Math.abs($)},get(y){let A=this.types[y];return this.new[A]},index:y=>g.findIndex(A=>A===o(y)),types:g})}function c(l){let f=s(l);return a(f,l)}function u(l,f){return Array.isArray(l)?c(l):a(l,f)}return{remote:n,sequence:u}}$r.remoteImpl=lA});var vc=_(Yr=>{"use strict";h();Object.defineProperty(Yr,"__esModule",{value:!0});Yr.typedImpl=Yr.pass=void 0;var hA=t=>t;Yr.pass=hA;function fA(t){function e(r){return typeof r=="function"?r(Yr.pass):r}return{typed:e}}Yr.typedImpl=fA});var Tc=_(fr=>{"use strict";h();Object.defineProperty(fr,"__esModule",{value:!0});fr.unpack=fr.just=fr.constant=void 0;function Nd(t){return()=>t}fr.constant=Nd;fr.just=Nd;var dA=t=>t.payload;fr.unpack=dA});var Id=_(dr=>{"use strict";h();Object.defineProperty(dr,"__esModule",{value:!0});dr.matcherImpl=dr.Matcher=dr.tableToHandler=void 0;var pA=Tc(),mA=hr();function Ac(t){return Object.keys(t).reduce((e,r)=>{let s=r;return Object.assign(Object.assign({},e),{[s]:(0,pA.just)(t[s])})},{})}dr.tableToHandler=Ac;var $n=class t{constructor(e,r,s){this.target=e,this.key=r,this.handler=s,this.complete=i=>{var n,o;if(this.target!=null&&this.target[this.key]in this.handler)return(o=(n=this.handler)[this.target[this.key]])===null||o===void 0?void 0:o.call(n,this.target);if(i?.withFallback!=null)return i.withFallback(this.target)}}execute(){let e=this.handler[this.target[this.key]];return e?.(this.target)}exhaust(e){var r;let s=Object.assign(Object.assign({},this.handler),e);return(r=s[this.target[this.key]])===null||r===void 0?void 0:r.call(s,this.target)}remaining(e){return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),e))}else(e){var r,s;return this.target[this.key]in this.handler?(s=(r=this.handler)[this.target[this.key]])===null||s===void 0?void 0:s.call(r,this.target):e(this.target)}register(e){let r=Object.assign(Object.assign({},this.handler),Ac(e));return new t(this.target,this.key,r)}lookup(e){var r;let s=Object.assign(Object.assign({},this.handler),Ac(e));return(r=s[this.target[this.key]])===null||r===void 0?void 0:r.call(s,this.target)}with(e){return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),e))}when(e,r){if(r!=null){let i=(Array.isArray(e)?e:[e]).reduce((n,o)=>{let a=typeof o=="string"?o:(0,mA.isVariantCreator)(o)?o.output.type:void 0;return a!=null?Object.assign(Object.assign({},n),{[a]:r}):n},{});return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),i))}else return new t(this.target,this.key,Object.assign(Object.assign({},this.handler),e))}};dr.Matcher=$n;function _A(t){function e(r){let s=typeof r=="string"?{[t]:r}:r;return new $n(s,t,{})}return{matcher:e}}dr.matcherImpl=_A});var bc=_(Yn=>{"use strict";h();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.variantCosmos=void 0;var EA=gc(),gA=Oc(),yA=hr(),SA=Td(),OA=Rc(),RA=Ad(),vA=bd(),TA=vc(),AA=Id();function bA({key:t}){let{isType:e}=(0,EA.isTypeImpl)(t),{flags:r}=(0,OA.flagsImpl)(t);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:t,isType:e,flags:r},(0,RA.isOfVariantImpl)(t)),(0,gA.matchImpl)(t)),(0,AA.matcherImpl)(t)),(0,vA.remoteImpl)(t)),(0,TA.typedImpl)(t)),(0,SA.typesImpl)(t)),(0,yA.variantImpl)(t))}Yn.variantCosmos=bA});var Nc=_(G=>{"use strict";h();var he;Object.defineProperty(G,"__esModule",{value:!0});G.withFallback=G.variation=G.variantModule=G.variantList=G.variant=G.types=G.typed=G.lookup=G.sequence=G.scoped=G.remote=G.prematch=G.partial=G.otherwise=G.onLiteral=G.ofLiteral=G.matcher=G.match=G.isType=G.isOfVariant=G.inferTypes=G.flags=G.descope=void 0;var NA=bc();he=(0,NA.variantCosmos)({key:"type"}),G.descope=he.descope,G.flags=he.flags,G.inferTypes=he.inferTypes,G.isOfVariant=he.isOfVariant,G.isType=he.isType,G.match=he.match,G.matcher=he.matcher,G.ofLiteral=he.ofLiteral,G.onLiteral=he.onLiteral,G.otherwise=he.otherwise,G.partial=he.partial,G.prematch=he.prematch,G.remote=he.remote,G.scoped=he.scoped,G.sequence=he.sequence,G.lookup=he.lookup,G.typed=he.typed,G.types=he.types,G.variant=he.variant,G.variantList=he.variantList,G.variantModule=he.variantModule,G.variation=he.variation,G.withFallback=he.withFallback});var wd=_(Kn=>{"use strict";h();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.augment=void 0;var IA=Nc(),wA=hr();function CA(t,e){return Object.keys(t).reduce((r,s)=>{let i=t[s],n=(0,wA.isVariantCreator)(i)?(0,IA.variation)(i.output.type,(...o)=>{let a=i(...o);return Object.assign(Object.assign({},e(a)),a)}):(...o)=>{let a=t[s],c=typeof a=="function"?a(...o):{};return Object.assign(Object.assign({},e(c)),c)};return Object.assign(Object.assign({},r),{[s]:n})},{})}Kn.augment=CA});var Cd=_(zn=>{"use strict";h();Object.defineProperty(zn,"__esModule",{value:!0});zn.constrained=void 0;function PA(t,e){return e}zn.constrained=PA});var Pd=_(Xn=>{"use strict";h();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.construct=void 0;function DA(t){return(...e)=>new t(e)}Xn.construct=DA});var xd=_(Kr=>{"use strict";h();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.Alpha=Kr.onTerms=void 0;var xA=Rc(),LA=hr(),MA=Symbol("VARIANT GENERIC TEMPLATE");function FA(t){return Object.assign(Object.assign({},t(Kr.Alpha)),{[MA]:void 0})}Kr.onTerms=FA;var Dd="__term",kA=(0,LA.variantImpl)(Dd).variant,UA=(0,xA.flagsImpl)(Dd).flags,BA=kA(["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]);Kr.Alpha=UA(Object.values(BA).map(t=>t()))});var Ld=_(Ds=>{"use strict";h();Object.defineProperty(Ds,"__esModule",{value:!0});Ds.typeMap=Ds.typeCatalog=void 0;function jA(t){return Object.values(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r.output.type]:r.output.type}),{})}Ds.typeCatalog=jA;function GA(t){return Object.keys(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r]:t[r].output.type}),{})}Ds.typeMap=GA});var Fd=_(xs=>{"use strict";h();Object.defineProperty(xs,"__esModule",{value:!0});xs.literalist=xs.catalog=void 0;function Md(t,e){return Array.isArray(t)?t.reduce((r,s,i)=>Object.assign(Object.assign({},r),{[s]:e!=null?e(s,i):s}),{}):t}xs.catalog=Md;xs.literalist=Md});var kd=_(Zn=>{"use strict";h();Object.defineProperty(Zn,"__esModule",{value:!0});Zn.patterned=void 0;function qA(t,e){return e}Zn.patterned=qA});var Ud=_(pr=>{"use strict";h();Object.defineProperty(pr,"__esModule",{value:!0});pr.nil=pr.payload=pr.fields=void 0;function HA(t={}){return(...e)=>{let[r]=e;return Object.assign(Object.assign({},t),r)}}pr.fields=HA;function VA(t){return e=>({payload:e})}pr.payload=VA;var WA=()=>({});pr.nil=WA});var Gd=_(K=>{"use strict";h();Object.defineProperty(K,"__esModule",{value:!0});K.payload=K.nil=K.fields=K.HOI=K.pass=K.patterned=K.unpack=K.just=K.constant=K.literalist=K.catalog=K.typeCatalog=K.typeMap=K.onTerms=K.variantCosmos=K.construct=K.constrained=K.augment=void 0;var $A=wd();Object.defineProperty(K,"augment",{enumerable:!0,get:function(){return $A.augment}});var YA=Cd();Object.defineProperty(K,"constrained",{enumerable:!0,get:function(){return YA.constrained}});var KA=Pd();Object.defineProperty(K,"construct",{enumerable:!0,get:function(){return KA.construct}});var zA=bc();Object.defineProperty(K,"variantCosmos",{enumerable:!0,get:function(){return zA.variantCosmos}});var XA=xd();Object.defineProperty(K,"onTerms",{enumerable:!0,get:function(){return XA.onTerms}});var Bd=Ld();Object.defineProperty(K,"typeMap",{enumerable:!0,get:function(){return Bd.typeMap}});Object.defineProperty(K,"typeCatalog",{enumerable:!0,get:function(){return Bd.typeCatalog}});var jd=Fd();Object.defineProperty(K,"catalog",{enumerable:!0,get:function(){return jd.catalog}});Object.defineProperty(K,"literalist",{enumerable:!0,get:function(){return jd.literalist}});var Ic=Tc();Object.defineProperty(K,"constant",{enumerable:!0,get:function(){return Ic.constant}});Object.defineProperty(K,"just",{enumerable:!0,get:function(){return Ic.just}});Object.defineProperty(K,"unpack",{enumerable:!0,get:function(){return Ic.unpack}});var ZA=kd();Object.defineProperty(K,"patterned",{enumerable:!0,get:function(){return ZA.patterned}});var QA=vc();Object.defineProperty(K,"pass",{enumerable:!0,get:function(){return QA.pass}});var JA=yc();Object.defineProperty(K,"HOI",{enumerable:!0,get:function(){return JA.HOI}});var wc=Ud();Object.defineProperty(K,"fields",{enumerable:!0,get:function(){return wc.fields}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return wc.nil}});Object.defineProperty(K,"payload",{enumerable:!0,get:function(){return wc.payload}})});var _r=_(mr=>{"use strict";h();var eb=mr&&mr.__createBinding||(Object.create?function(t,e,r,s){s===void 0&&(s=r),Object.defineProperty(t,s,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]}),qd=mr&&mr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&eb(e,t,r)};Object.defineProperty(mr,"__esModule",{value:!0});qd(Gd(),mr);qd(Nc(),mr)});var $s=_((bB,Um)=>{"use strict";h();var km=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);Um.exports=t=>t?Object.keys(t).map(e=>[km.has(e)?km.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var go=_(Km=>{"use strict";h();var Bm=typeof process=="object"&&process?process:{stdout:null,stderr:null},fN=T("events"),jm=T("stream"),dN=T("string_decoder"),Gm=dN.StringDecoder,Vt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),Or=Symbol("emittedEnd"),ho=Symbol("emittingEnd"),Gi=Symbol("emittedError"),fo=Symbol("closed"),qm=Symbol("read"),po=Symbol("flush"),Hm=Symbol("flushChunk"),Ve=Symbol("encoding"),$t=Symbol("decoder"),mo=Symbol("flowing"),qi=Symbol("paused"),Ys=Symbol("resume"),me=Symbol("buffer"),bt=Symbol("pipes"),Ae=Symbol("bufferLength"),kc=Symbol("bufferPush"),Uc=Symbol("bufferShift"),Pe=Symbol("objectMode"),_e=Symbol("destroyed"),Bc=Symbol("error"),jc=Symbol("emitData"),Vm=Symbol("emitEnd"),Gc=Symbol("emitEnd2"),Yt=Symbol("async"),qc=Symbol("abort"),_o=Symbol("aborted"),us=Symbol("signal"),Hi=t=>Promise.resolve().then(t),Ym=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Wm=Ym&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$m=Ym&&Symbol.iterator||Symbol("iterator not implemented"),pN=t=>t==="end"||t==="finish"||t==="prefinish",mN=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,_N=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Eo=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[Ys](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Hc=class extends Eo{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},Vc=class t extends jm{constructor(e){super(),this[mo]=!1,this[qi]=!1,this[bt]=[],this[me]=[],this[Pe]=e&&e.objectMode||!1,this[Pe]?this[Ve]=null:this[Ve]=e&&e.encoding||null,this[Ve]==="buffer"&&(this[Ve]=null),this[Yt]=e&&!!e.async||!1,this[$t]=this[Ve]?new Gm(this[Ve]):null,this[Vt]=!1,this[Or]=!1,this[ho]=!1,this[fo]=!1,this[Gi]=null,this.writable=!0,this.readable=!0,this[Ae]=0,this[_e]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[me]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[bt]}),this[us]=e&&e.signal,this[_o]=!1,this[us]&&(this[us].addEventListener("abort",()=>this[qc]()),this[us].aborted&&this[qc]())}get bufferLength(){return this[Ae]}get encoding(){return this[Ve]}set encoding(e){if(this[Pe])throw new Error("cannot set encoding in objectMode");if(this[Ve]&&e!==this[Ve]&&(this[$t]&&this[$t].lastNeed||this[Ae]))throw new Error("cannot change encoding");this[Ve]!==e&&(this[$t]=e?new Gm(e):null,this[me].length&&(this[me]=this[me].map(r=>this[$t].write(r)))),this[Ve]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Pe]}set objectMode(e){this[Pe]=this[Pe]||!!e}get async(){return this[Yt]}set async(e){this[Yt]=this[Yt]||!!e}[qc](){this[_o]=!0,this.emit("abort",this[us].reason),this.destroy(this[us].reason)}get aborted(){return this[_o]}set aborted(e){}write(e,r,s){if(this[_o])return!1;if(this[Vt])throw new Error("write after end");if(this[_e])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(s=r,r="utf8"),r||(r="utf8");let i=this[Yt]?Hi:n=>n();return!this[Pe]&&!Buffer.isBuffer(e)&&(_N(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):mN(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Pe]?(this.flowing&&this[Ae]!==0&&this[po](!0),this.flowing?this.emit("data",e):this[kc](e),this[Ae]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ve]&&!this[$t].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ve]&&(e=this[$t].write(e)),this.flowing&&this[Ae]!==0&&this[po](!0),this.flowing?this.emit("data",e):this[kc](e),this[Ae]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[Ae]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[_e])return null;if(this[Ae]===0||e===0||e>this[Ae])return this[Wt](),null;this[Pe]&&(e=null),this[me].length>1&&!this[Pe]&&(this.encoding?this[me]=[this[me].join("")]:this[me]=[Buffer.concat(this[me],this[Ae])]);let r=this[qm](e||null,this[me][0]);return this[Wt](),r}[qm](e,r){return e===r.length||e===null?this[Uc]():(this[me][0]=r.slice(e),r=r.slice(0,e),this[Ae]-=e),this.emit("data",r),!this[me].length&&!this[Vt]&&this.emit("drain"),r}end(e,r,s){return typeof e=="function"&&(s=e,e=null),typeof r=="function"&&(s=r,r="utf8"),e&&this.write(e,r),s&&this.once("end",s),this[Vt]=!0,this.writable=!1,(this.flowing||!this[qi])&&this[Wt](),this}[Ys](){this[_e]||(this[qi]=!1,this[mo]=!0,this.emit("resume"),this[me].length?this[po]():this[Vt]?this[Wt]():this.emit("drain"))}resume(){return this[Ys]()}pause(){this[mo]=!1,this[qi]=!0}get destroyed(){return this[_e]}get flowing(){return this[mo]}get paused(){return this[qi]}[kc](e){this[Pe]?this[Ae]+=1:this[Ae]+=e.length,this[me].push(e)}[Uc](){return this[Pe]?this[Ae]-=1:this[Ae]-=this[me][0].length,this[me].shift()}[po](e){do;while(this[Hm](this[Uc]())&&this[me].length);!e&&!this[me].length&&!this[Vt]&&this.emit("drain")}[Hm](e){return this.emit("data",e),this.flowing}pipe(e,r){if(this[_e])return;let s=this[Or];return r=r||{},e===Bm.stdout||e===Bm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this[bt].push(r.proxyErrors?new Hc(this,e,r):new Eo(this,e,r)),this[Yt]?Hi(()=>this[Ys]()):this[Ys]()),e}unpipe(e){let r=this[bt].find(s=>s.dest===e);r&&(this[bt].splice(this[bt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let s=super.on(e,r);return e==="data"&&!this[bt].length&&!this.flowing?this[Ys]():e==="readable"&&this[Ae]!==0?super.emit("readable"):pN(e)&&this[Or]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Gi]&&(this[Yt]?Hi(()=>r.call(this,this[Gi])):r.call(this,this[Gi])),s}get emittedEnd(){return this[Or]}[Wt](){!this[ho]&&!this[Or]&&!this[_e]&&this[me].length===0&&this[Vt]&&(this[ho]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[fo]&&this.emit("close"),this[ho]=!1)}emit(e,r,...s){if(e!=="error"&&e!=="close"&&e!==_e&&this[_e])return;if(e==="data")return!this[Pe]&&!r?!1:this[Yt]?Hi(()=>this[jc](r)):this[jc](r);if(e==="end")return this[Vm]();if(e==="close"){if(this[fo]=!0,!this[Or]&&!this[_e])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Gi]=r,super.emit(Bc,r);let n=!this[us]||this.listeners("error").length?super.emit("error",r):!1;return this[Wt](),n}else if(e==="resume"){let n=super.emit("resume");return this[Wt](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let i=super.emit(e,r,...s);return this[Wt](),i}[jc](e){for(let s of this[bt])s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[Vm](){this[Or]||(this[Or]=!0,this.readable=!1,this[Yt]?Hi(()=>this[Gc]()):this[Gc]())}[Gc](){if(this[$t]){let r=this[$t].end();if(r){for(let s of this[bt])s.dest.write(r);super.emit("data",r)}}for(let r of this[bt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Pe]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[Pe]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[Pe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Pe]?Promise.reject(new Error("cannot concat in objectMode")):this[Ve]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(_e,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[Wm](){let e=!1,r=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Vt])return r();let n=null,o=null,a=f=>{this.removeListener("data",c),this.removeListener("end",u),this.removeListener(_e,l),r(),o(f)},c=f=>{this.removeListener("error",a),this.removeListener("end",u),this.removeListener(_e,l),this.pause(),n({value:f,done:!!this[Vt]})},u=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(_e,l),r(),n({done:!0})},l=()=>a(new Error("stream destroyed"));return new Promise((f,d)=>{o=d,n=f,this.once(_e,l),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:r,return:r,[Wm](){return this}}}[$m](){let e=!1,r=()=>(this.pause(),this.removeListener(Bc,r),this.removeListener(_e,r),this.removeListener("end",r),e=!0,{done:!0}),s=()=>{if(e)return r();let i=this.read();return i===null?r():{value:i}};return this.once("end",r),this.once(Bc,r),this.once(_e,r),{next:s,throw:r,return:r,[$m](){return this}}}destroy(e){return this[_e]?(e?this.emit("error",e):this.emit(_e),this):(this[_e]=!0,this[me].length=0,this[Ae]=0,typeof this.close=="function"&&!this[fo]&&this.close(),e?this.emit("error",e):this.emit(_e),this)}static isStream(e){return!!e&&(e instanceof t||e instanceof jm||e instanceof fN&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};Km.Minipass=Vc});var Xm=_((CB,zm)=>{"use strict";h();var EN=T("zlib").constants||{ZLIB_VERNUM:4736};zm.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,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,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},EN))});var Xc=_((DB,n_)=>{"use strict";h();var Zm=typeof process=="object"&&process?process:{stdout:null,stderr:null},gN=T("events"),Qm=T("stream"),Jm=T("string_decoder").StringDecoder,Kt=Symbol("EOF"),zt=Symbol("maybeEmitEnd"),Rr=Symbol("emittedEnd"),yo=Symbol("emittingEnd"),Vi=Symbol("emittedError"),So=Symbol("closed"),e_=Symbol("read"),Oo=Symbol("flush"),t_=Symbol("flushChunk"),We=Symbol("encoding"),Xt=Symbol("decoder"),Ro=Symbol("flowing"),Wi=Symbol("paused"),Ks=Symbol("resume"),be=Symbol("bufferLength"),Wc=Symbol("bufferPush"),$c=Symbol("bufferShift"),Le=Symbol("objectMode"),Me=Symbol("destroyed"),Yc=Symbol("emitData"),r_=Symbol("emitEnd"),Kc=Symbol("emitEnd2"),Zt=Symbol("async"),$i=t=>Promise.resolve().then(t),s_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",yN=s_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),SN=s_&&Symbol.iterator||Symbol("iterator not implemented"),ON=t=>t==="end"||t==="finish"||t==="prefinish",RN=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,vN=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),vo=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[Ks](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},zc=class extends vo{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};n_.exports=class i_ extends Qm{constructor(e){super(),this[Ro]=!1,this[Wi]=!1,this.pipes=[],this.buffer=[],this[Le]=e&&e.objectMode||!1,this[Le]?this[We]=null:this[We]=e&&e.encoding||null,this[We]==="buffer"&&(this[We]=null),this[Zt]=e&&!!e.async||!1,this[Xt]=this[We]?new Jm(this[We]):null,this[Kt]=!1,this[Rr]=!1,this[yo]=!1,this[So]=!1,this[Vi]=null,this.writable=!0,this.readable=!0,this[be]=0,this[Me]=!1}get bufferLength(){return this[be]}get encoding(){return this[We]}set encoding(e){if(this[Le])throw new Error("cannot set encoding in objectMode");if(this[We]&&e!==this[We]&&(this[Xt]&&this[Xt].lastNeed||this[be]))throw new Error("cannot change encoding");this[We]!==e&&(this[Xt]=e?new Jm(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Xt].write(r)))),this[We]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Le]}set objectMode(e){this[Le]=this[Le]||!!e}get async(){return this[Zt]}set async(e){this[Zt]=this[Zt]||!!e}write(e,r,s){if(this[Kt])throw new Error("write after end");if(this[Me])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(s=r,r="utf8"),r||(r="utf8");let i=this[Zt]?$i:n=>n();return!this[Le]&&!Buffer.isBuffer(e)&&(vN(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):RN(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Le]?(this.flowing&&this[be]!==0&&this[Oo](!0),this.flowing?this.emit("data",e):this[Wc](e),this[be]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[We]&&!this[Xt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[We]&&(e=this[Xt].write(e)),this.flowing&&this[be]!==0&&this[Oo](!0),this.flowing?this.emit("data",e):this[Wc](e),this[be]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[be]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[Me])return null;if(this[be]===0||e===0||e>this[be])return this[zt](),null;this[Le]&&(e=null),this.buffer.length>1&&!this[Le]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[be])]);let r=this[e_](e||null,this.buffer[0]);return this[zt](),r}[e_](e,r){return e===r.length||e===null?this[$c]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[be]-=e),this.emit("data",r),!this.buffer.length&&!this[Kt]&&this.emit("drain"),r}end(e,r,s){return typeof e=="function"&&(s=e,e=null),typeof r=="function"&&(s=r,r="utf8"),e&&this.write(e,r),s&&this.once("end",s),this[Kt]=!0,this.writable=!1,(this.flowing||!this[Wi])&&this[zt](),this}[Ks](){this[Me]||(this[Wi]=!1,this[Ro]=!0,this.emit("resume"),this.buffer.length?this[Oo]():this[Kt]?this[zt]():this.emit("drain"))}resume(){return this[Ks]()}pause(){this[Ro]=!1,this[Wi]=!0}get destroyed(){return this[Me]}get flowing(){return this[Ro]}get paused(){return this[Wi]}[Wc](e){this[Le]?this[be]+=1:this[be]+=e.length,this.buffer.push(e)}[$c](){return this.buffer.length&&(this[Le]?this[be]-=1:this[be]-=this.buffer[0].length),this.buffer.shift()}[Oo](e){do;while(this[t_](this[$c]()));!e&&!this.buffer.length&&!this[Kt]&&this.emit("drain")}[t_](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Me])return;let s=this[Rr];return r=r||{},e===Zm.stdout||e===Zm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this.pipes.push(r.proxyErrors?new zc(this,e,r):new vo(this,e,r)),this[Zt]?$i(()=>this[Ks]()):this[Ks]()),e}unpipe(e){let r=this.pipes.find(s=>s.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let s=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Ks]():e==="readable"&&this[be]!==0?super.emit("readable"):ON(e)&&this[Rr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Vi]&&(this[Zt]?$i(()=>r.call(this,this[Vi])):r.call(this,this[Vi])),s}get emittedEnd(){return this[Rr]}[zt](){!this[yo]&&!this[Rr]&&!this[Me]&&this.buffer.length===0&&this[Kt]&&(this[yo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[So]&&this.emit("close"),this[yo]=!1)}emit(e,r,...s){if(e!=="error"&&e!=="close"&&e!==Me&&this[Me])return;if(e==="data")return r?this[Zt]?$i(()=>this[Yc](r)):this[Yc](r):!1;if(e==="end")return this[r_]();if(e==="close"){if(this[So]=!0,!this[Rr]&&!this[Me])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Vi]=r;let n=super.emit("error",r);return this[zt](),n}else if(e==="resume"){let n=super.emit("resume");return this[zt](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let i=super.emit(e,r,...s);return this[zt](),i}[Yc](e){for(let s of this.pipes)s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[zt](),r}[r_](){this[Rr]||(this[Rr]=!0,this.readable=!1,this[Zt]?$i(()=>this[Kc]()):this[Kc]())}[Kc](){if(this[Xt]){let r=this[Xt].end();if(r){for(let s of this.pipes)s.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Le]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[Le]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[Le]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Le]?Promise.reject(new Error("cannot concat in objectMode")):this[We]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Me,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[yN](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Kt])return Promise.resolve({done:!0});let s=null,i=null,n=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",n),this.removeListener("end",a),this.pause(),s({value:u,done:!!this[Kt]})},a=()=>{this.removeListener("error",n),this.removeListener("data",o),s({done:!0})},c=()=>n(new Error("stream destroyed"));return new Promise((u,l)=>{i=l,s=u,this.once(Me,c),this.once("error",n),this.once("end",a),this.once("data",o)})}}}[SN](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Me]?(e?this.emit("error",e):this.emit(Me),this):(this[Me]=!0,this.buffer.length=0,this[be]=0,typeof this.close=="function"&&!this[So]&&this.close(),e?this.emit("error",e):this.emit(Me),this)}static isStream(e){return!!e&&(e instanceof i_||e instanceof Qm||e instanceof gN&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var fu=_(Ze=>{"use strict";h();var tu=T("assert"),vr=T("buffer").Buffer,c_=T("zlib"),ls=Ze.constants=Xm(),TN=Xc(),o_=vr.concat,hs=Symbol("_superWrite"),Xs=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},AN=Symbol("opts"),Yi=Symbol("flushFlag"),a_=Symbol("finishFlushFlag"),hu=Symbol("fullFlushFlag"),oe=Symbol("handle"),To=Symbol("onError"),zs=Symbol("sawError"),Zc=Symbol("level"),Qc=Symbol("strategy"),Jc=Symbol("ended"),LB=Symbol("_defaultFullFlush"),Ao=class extends TN{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[zs]=!1,this[Jc]=!1,this[AN]=e,this[Yi]=e.flush,this[a_]=e.finishFlush;try{this[oe]=new c_[r](e)}catch(s){throw new Xs(s)}this[To]=s=>{this[zs]||(this[zs]=!0,this.close(),this.emit("error",s))},this[oe].on("error",s=>this[To](new Xs(s))),this.once("end",()=>this.close)}close(){this[oe]&&(this[oe].close(),this[oe]=null,this.emit("close"))}reset(){if(!this[zs])return tu(this[oe],"zlib binding closed"),this[oe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[hu]),this.write(Object.assign(vr.alloc(0),{[Yi]:e})))}end(e,r,s){return e&&this.write(e,r),this.flush(this[a_]),this[Jc]=!0,super.end(null,null,s)}get ended(){return this[Jc]}write(e,r,s){if(typeof r=="function"&&(s=r,r="utf8"),typeof e=="string"&&(e=vr.from(e,r)),this[zs])return;tu(this[oe],"zlib binding closed");let i=this[oe]._handle,n=i.close;i.close=()=>{};let o=this[oe].close;this[oe].close=()=>{},vr.concat=u=>u;let a;try{let u=typeof e[Yi]=="number"?e[Yi]:this[Yi];a=this[oe]._processChunk(e,u),vr.concat=o_}catch(u){vr.concat=o_,this[To](new Xs(u))}finally{this[oe]&&(this[oe]._handle=i,i.close=n,this[oe].close=o,this[oe].removeAllListeners("error"))}this[oe]&&this[oe].on("error",u=>this[To](new Xs(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[hs](vr.from(a[0]));for(let u=1;u<a.length;u++)c=this[hs](a[u])}else c=this[hs](vr.from(a));return s&&s(),c}[hs](e){return super.write(e)}},Qt=class extends Ao{constructor(e,r){e=e||{},e.flush=e.flush||ls.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ls.Z_FINISH,super(e,r),this[hu]=ls.Z_FULL_FLUSH,this[Zc]=e.level,this[Qc]=e.strategy}params(e,r){if(!this[zs]){if(!this[oe])throw new Error("cannot switch params when binding is closed");if(!this[oe].params)throw new Error("not supported in this implementation");if(this[Zc]!==e||this[Qc]!==r){this.flush(ls.Z_SYNC_FLUSH),tu(this[oe],"zlib binding closed");let s=this[oe].flush;this[oe].flush=(i,n)=>{this.flush(i),n()};try{this[oe].params(e,r)}finally{this[oe].flush=s}this[oe]&&(this[Zc]=e,this[Qc]=r)}}}},ru=class extends Qt{constructor(e){super(e,"Deflate")}},su=class extends Qt{constructor(e){super(e,"Inflate")}},eu=Symbol("_portable"),iu=class extends Qt{constructor(e){super(e,"Gzip"),this[eu]=e&&!!e.portable}[hs](e){return this[eu]?(this[eu]=!1,e[9]=255,super[hs](e)):super[hs](e)}},nu=class extends Qt{constructor(e){super(e,"Gunzip")}},ou=class extends Qt{constructor(e){super(e,"DeflateRaw")}},au=class extends Qt{constructor(e){super(e,"InflateRaw")}},cu=class extends Qt{constructor(e){super(e,"Unzip")}},bo=class extends Ao{constructor(e,r){e=e||{},e.flush=e.flush||ls.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ls.BROTLI_OPERATION_FINISH,super(e,r),this[hu]=ls.BROTLI_OPERATION_FLUSH}},uu=class extends bo{constructor(e){super(e,"BrotliCompress")}},lu=class extends bo{constructor(e){super(e,"BrotliDecompress")}};Ze.Deflate=ru;Ze.Inflate=su;Ze.Gzip=iu;Ze.Gunzip=nu;Ze.DeflateRaw=ou;Ze.InflateRaw=au;Ze.Unzip=cu;typeof c_.BrotliCompress=="function"?(Ze.BrotliCompress=uu,Ze.BrotliDecompress=lu):Ze.BrotliCompress=Ze.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Zs=_((UB,u_)=>{"use strict";h();var bN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;u_.exports=bN!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var No=_((GB,l_)=>{"use strict";h();var{Minipass:NN}=go(),du=Zs(),pu=Symbol("slurp");l_.exports=class extends NN{constructor(e,r,s){switch(super(),this.pause(),this.extended=r,this.globalExtended=s,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=du(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=du(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[pu](r),s&&this[pu](s,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,i=this.blockRemain;return this.remain=Math.max(0,s-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:s>=r?super.write(e):super.write(e.slice(0,s))}[pu](e,r){for(let s in e)e[s]!==null&&e[s]!==void 0&&!(r&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?du(e[s]):e[s])}}});var mu=_(Io=>{"use strict";h();Io.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Io.code=new Map(Array.from(Io.name).map(t=>[t[1],t[0]]))});var p_=_((WB,d_)=>{"use strict";h();var IN=(t,e)=>{if(Number.isSafeInteger(t))t<0?CN(t,e):wN(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},wN=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},CN=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var s=e.length;s>1;s--){var i=t&255;t=Math.floor(t/256),r?e[s-1]=h_(i):i===0?e[s-1]=0:(r=!0,e[s-1]=f_(i))}},PN=t=>{let e=t[0],r=e===128?xN(t.slice(1,t.length)):e===255?DN(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},DN=t=>{for(var e=t.length,r=0,s=!1,i=e-1;i>-1;i--){var n=t[i],o;s?o=h_(n):n===0?o=n:(s=!0,o=f_(n)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},xN=t=>{for(var e=t.length,r=0,s=e-1;s>-1;s--){var i=t[s];i!==0&&(r+=i*Math.pow(256,e-s-1))}return r},h_=t=>(255^t)&255,f_=t=>(255^t)+1&255;d_.exports={encode:IN,parse:PN}});var Js=_((YB,__)=>{"use strict";h();var _u=mu(),Qs=T("path").posix,m_=p_(),Eu=Symbol("slurp"),Qe=Symbol("type"),Su=class{constructor(e,r,s,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Qe]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,s,i):e&&this.set(e)}decode(e,r,s,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=fs(e,r,100),this.mode=Tr(e,r+100,8),this.uid=Tr(e,r+108,8),this.gid=Tr(e,r+116,8),this.size=Tr(e,r+124,12),this.mtime=gu(e,r+136,12),this.cksum=Tr(e,r+148,12),this[Eu](s),this[Eu](i,!0),this[Qe]=fs(e,r+156,1),this[Qe]===""&&(this[Qe]="0"),this[Qe]==="0"&&this.path.slice(-1)==="/"&&(this[Qe]="5"),this[Qe]==="5"&&(this.size=0),this.linkpath=fs(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=fs(e,r+265,32),this.gname=fs(e,r+297,32),this.devmaj=Tr(e,r+329,8),this.devmin=Tr(e,r+337,8),e[r+475]!==0){let o=fs(e,r+345,155);this.path=o+"/"+this.path}else{let o=fs(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=gu(e,r+476,12),this.ctime=gu(e,r+488,12)}let n=8*32;for(let o=r;o<r+148;o++)n+=e[o];for(let o=r+156;o<r+512;o++)n+=e[o];this.cksumValid=n===this.cksum,this.cksum===null&&n===8*32&&(this.nullBlock=!0)}[Eu](e,r){for(let s in e)e[s]!==null&&e[s]!==void 0&&!(r&&s==="path")&&(this[s]=e[s])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let s=this.ctime||this.atime?130:155,i=LN(this.path||"",s),n=i[0],o=i[1];this.needPax=i[2],this.needPax=ds(e,r,100,n)||this.needPax,this.needPax=Ar(e,r+100,8,this.mode)||this.needPax,this.needPax=Ar(e,r+108,8,this.uid)||this.needPax,this.needPax=Ar(e,r+116,8,this.gid)||this.needPax,this.needPax=Ar(e,r+124,12,this.size)||this.needPax,this.needPax=yu(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Qe].charCodeAt(0),this.needPax=ds(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=ds(e,r+265,32,this.uname)||this.needPax,this.needPax=ds(e,r+297,32,this.gname)||this.needPax,this.needPax=Ar(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Ar(e,r+337,8,this.devmin)||this.needPax,this.needPax=ds(e,r+345,s,o)||this.needPax,e[r+475]!==0?this.needPax=ds(e,r+345,155,o)||this.needPax:(this.needPax=ds(e,r+345,130,o)||this.needPax,this.needPax=yu(e,r+476,12,this.atime)||this.needPax,this.needPax=yu(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,Ar(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return _u.name.get(this[Qe])||this[Qe]}get typeKey(){return this[Qe]}set type(e){_u.code.has(e)?this[Qe]=_u.code.get(e):this[Qe]=e}},LN=(t,e)=>{let s=t,i="",n,o=Qs.parse(t).root||".";if(Buffer.byteLength(s)<100)n=[s,i,!1];else{i=Qs.dirname(s),s=Qs.basename(s);do Buffer.byteLength(s)<=100&&Buffer.byteLength(i)<=e?n=[s,i,!1]:Buffer.byteLength(s)>100&&Buffer.byteLength(i)<=e?n=[s.slice(0,99),i,!0]:(s=Qs.join(Qs.basename(i),s),i=Qs.dirname(i));while(i!==o&&!n);n||(n=[t.slice(0,99),"",!0])}return n},fs=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),gu=(t,e,r)=>MN(Tr(t,e,r)),MN=t=>t===null?null:new Date(t*1e3),Tr=(t,e,r)=>t[e]&128?m_.parse(t.slice(e,e+r)):kN(t,e,r),FN=t=>isNaN(t)?null:t,kN=(t,e,r)=>FN(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),UN={12:8589934591,8:2097151},Ar=(t,e,r,s)=>s===null?!1:s>UN[r]||s<0?(m_.encode(s,t.slice(e,e+r)),!0):(BN(t,e,r,s),!1),BN=(t,e,r,s)=>t.write(jN(s,r),e,r,"ascii"),jN=(t,e)=>GN(Math.floor(t).toString(8),e),GN=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",yu=(t,e,r,s)=>s===null?!1:Ar(t,e,r,s.getTime()/1e3),qN=new Array(156).join("\0"),ds=(t,e,r,s)=>s===null?!1:(t.write(s+qN,e,r,"utf8"),s.length!==Buffer.byteLength(s)||s.length>r);__.exports=Su});var wo=_((zB,E_)=>{"use strict";h();var HN=Js(),VN=T("path"),Ki=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),s=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(s);for(let n=0;n<512;n++)i[n]=0;new HN({path:("PaxHeader/"+VN.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let n=r+512;n<i.length;n++)i[n]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],s=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
6
|
+
`,i=Buffer.byteLength(s),n=Math.floor(Math.log(i)/Math.log(10))+1;return i+n>=Math.pow(10,n)&&(n+=1),n+i+s}};Ki.parse=(t,e,r)=>new Ki(WN($N(t),e),r);var WN=(t,e)=>e?Object.keys(t).reduce((r,s)=>(r[s]=t[s],r),e):t,$N=t=>t.replace(/\n$/,"").split(`
|
|
7
|
+
`).reduce(YN,Object.create(null)),YN=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let s=e.split("="),i=s.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let n=s.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(n*1e3):/^[0-9]+$/.test(n)?+n:n,t};E_.exports=Ki});var ei=_((ZB,g_)=>{"use strict";h();g_.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Co=_((JB,y_)=>{"use strict";h();y_.exports=t=>class extends t{warn(e,r,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=r instanceof Error&&r.code||e,s.tarCode=e,!this.strict&&s.recoverable!==!1?(r instanceof Error&&(s=Object.assign(r,s),r=r.message),this.emit("warn",s.tarCode,r,s)):r instanceof Error?this.emit("error",Object.assign(r,s)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),s))}}});var Ru=_((r1,S_)=>{"use strict";h();var Po=["|","<",">","?",":"],Ou=Po.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),KN=new Map(Po.map((t,e)=>[t,Ou[e]])),zN=new Map(Ou.map((t,e)=>[t,Po[e]]));S_.exports={encode:t=>Po.reduce((e,r)=>e.split(r).join(KN.get(r)),t),decode:t=>Ou.reduce((e,r)=>e.split(r).join(zN.get(r)),t)}});var vu=_((i1,R_)=>{"use strict";h();var{isAbsolute:XN,parse:O_}=T("path").win32;R_.exports=t=>{let e="",r=O_(t);for(;XN(t)||r.root;){let s=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(s.length),e+=s,r=O_(t)}return[e,t]}});var T_=_((o1,v_)=>{"use strict";h();v_.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var xu=_((l1,U_)=>{"use strict";h();var{Minipass:P_}=go(),D_=wo(),x_=Js(),It=T("fs"),A_=T("path"),Nt=Zs(),ZN=ei(),L_=(t,e)=>e?(t=Nt(t).replace(/^\.(\/|$)/,""),ZN(e)+"/"+t):Nt(t),QN=16*1024*1024,b_=Symbol("process"),N_=Symbol("file"),I_=Symbol("directory"),Au=Symbol("symlink"),w_=Symbol("hardlink"),zi=Symbol("header"),Do=Symbol("read"),bu=Symbol("lstat"),xo=Symbol("onlstat"),Nu=Symbol("onread"),Iu=Symbol("onreadlink"),wu=Symbol("openfile"),Cu=Symbol("onopenfile"),br=Symbol("close"),Lo=Symbol("mode"),Pu=Symbol("awaitDrain"),Tu=Symbol("ondrain"),wt=Symbol("prefix"),C_=Symbol("hadError"),M_=Co(),JN=Ru(),F_=vu(),k_=T_(),Mo=M_(class extends P_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Nt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||QN,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Nt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Nt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let s=!1;if(!this.preservePaths){let[i,n]=F_(this.path);i&&(this.path=n,s=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=JN.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Nt(r.absolute||A_.resolve(this.cwd,e)),this.path===""&&(this.path="./"),s&&this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:this,path:s+this.path}),this.statCache.has(this.absolute)?this[xo](this.statCache.get(this.absolute)):this[bu]()}emit(e,...r){return e==="error"&&(this[C_]=!0),super.emit(e,...r)}[bu](){It.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[xo](r)})}[xo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=tI(e),this.emit("stat",e),this[b_]()}[b_](){switch(this.type){case"File":return this[N_]();case"Directory":return this[I_]();case"SymbolicLink":return this[Au]();default:return this.end()}}[Lo](e){return k_(e,this.type==="Directory",this.portable)}[wt](e){return L_(e,this.prefix)}[zi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new x_({path:this[wt](this.path),linkpath:this.type==="Link"?this[wt](this.linkpath):this.linkpath,mode:this[Lo](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new D_({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[wt](this.path),linkpath:this.type==="Link"?this[wt](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[I_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[zi](),this.end()}[Au](){It.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Iu](r)})}[Iu](e){this.linkpath=Nt(e),this[zi](),this.end()}[w_](e){this.type="Link",this.linkpath=Nt(A_.relative(this.cwd,e)),this.stat.size=0,this[zi](),this.end()}[N_](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[w_](r)}this.linkCache.set(e,this.absolute)}if(this[zi](),this.stat.size===0)return this.end();this[wu]()}[wu](){It.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Cu](r)})}[Cu](e){if(this.fd=e,this[C_])return this[br]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Do]()}[Do](){let{fd:e,buf:r,offset:s,length:i,pos:n}=this;It.read(e,r,s,i,n,(o,a)=>{if(o)return this[br](()=>this.emit("error",o));this[Nu](a)})}[br](e){It.close(this.fd,e)}[Nu](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[br](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[br](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Tu]():this[Pu](()=>this[Tu]())}[Pu](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Tu](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[br](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Do]()}}),Du=class extends Mo{[bu](){this[xo](It.lstatSync(this.absolute))}[Au](){this[Iu](It.readlinkSync(this.absolute))}[wu](){this[Cu](It.openSync(this.absolute,"r"))}[Do](){let e=!0;try{let{fd:r,buf:s,offset:i,length:n,pos:o}=this,a=It.readSync(r,s,i,n,o);this[Nu](a),e=!1}finally{if(e)try{this[br](()=>{})}catch{}}}[Pu](e){e()}[br](e){It.closeSync(this.fd),e()}},eI=M_(class extends P_{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Nt(e.path),this.mode=this[Lo](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Nt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let s=!1;if(!this.preservePaths){let[i,n]=F_(this.path);i&&(this.path=n,s=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new x_({path:this[wt](this.path),linkpath:this.type==="Link"?this[wt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),s&&this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:this,path:s+this.path}),this.header.encode()&&!this.noPax&&super.write(new D_({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[wt](this.path),linkpath:this.type==="Link"?this[wt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[wt](e){return L_(e,this.prefix)}[Lo](e){return k_(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Mo.Sync=Du;Mo.Tar=eI;var tI=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";U_.exports=Mo});var j_=_((f1,B_)=>{"use strict";h();B_.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Lu=_((p1,G_)=>{"use strict";h();G_.exports=re;re.Node=ps;re.create=re;function re(t){var e=this;if(e instanceof re||(e=new re),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,s=arguments.length;r<s;r++)e.push(arguments[r]);return e}re.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};re.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};re.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};re.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)sI(this,arguments[t]);return this.length};re.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)iI(this,arguments[t]);return this.length};re.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};re.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};re.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,s=0;r!==null;s++)t.call(e,r.value,s,this),r=r.next};re.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,s=this.length-1;r!==null;s--)t.call(e,r.value,s,this),r=r.prev};re.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};re.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};re.prototype.map=function(t,e){e=e||this;for(var r=new re,s=this.head;s!==null;)r.push(t.call(e,s.value,this)),s=s.next;return r};re.prototype.mapReverse=function(t,e){e=e||this;for(var r=new re,s=this.tail;s!==null;)r.push(t.call(e,s.value,this)),s=s.prev;return r};re.prototype.reduce=function(t,e){var r,s=this.head;if(arguments.length>1)r=e;else if(this.head)s=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;s!==null;i++)r=t(r,s.value,i),s=s.next;return r};re.prototype.reduceReverse=function(t,e){var r,s=this.tail;if(arguments.length>1)r=e;else if(this.tail)s=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;s!==null;i--)r=t(r,s.value,i),s=s.prev;return r};re.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};re.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};re.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new re;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=0,i=this.head;i!==null&&s<t;s++)i=i.next;for(;i!==null&&s<e;s++,i=i.next)r.push(i.value);return r};re.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new re;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=this.length,i=this.tail;i!==null&&s>e;s--)i=i.prev;for(;i!==null&&s>t;s--,i=i.prev)r.push(i.value);return r};re.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var s=0,i=this.head;i!==null&&s<t;s++)i=i.next;for(var n=[],s=0;i&&s<e;s++)n.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var s=0;s<r.length;s++)i=rI(this,i,r[s]);return n};re.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var s=r.prev;r.prev=r.next,r.next=s}return this.head=e,this.tail=t,this};function rI(t,e,r){var s=e===t.head?new ps(r,null,e,t):new ps(r,e,e.next,t);return s.next===null&&(t.tail=s),s.prev===null&&(t.head=s),t.length++,s}function sI(t,e){t.tail=new ps(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function iI(t,e){t.head=new ps(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ps(t,e,r,s){if(!(this instanceof ps))return new ps(t,e,r,s);this.list=s,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{j_()(re)}catch{}});var Vo=_((E1,z_)=>{"use strict";h();var qo=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},{Minipass:nI}=go(),q_=fu(),oI=No(),Hu=xu(),aI=Hu.Sync,cI=Hu.Tar,uI=Lu(),H_=Buffer.alloc(1024),Uo=Symbol("onStat"),Fo=Symbol("ended"),Ct=Symbol("queue"),ti=Symbol("current"),ms=Symbol("process"),ko=Symbol("processing"),V_=Symbol("processJob"),Pt=Symbol("jobs"),Mu=Symbol("jobDone"),Bo=Symbol("addFSEntry"),W_=Symbol("addTarEntry"),Bu=Symbol("stat"),ju=Symbol("readdir"),jo=Symbol("onreaddir"),Go=Symbol("pipe"),$_=Symbol("entry"),Fu=Symbol("entryOpt"),Gu=Symbol("writeEntryClass"),K_=Symbol("write"),ku=Symbol("ondrain"),Ho=T("fs"),Y_=T("path"),lI=Co(),Uu=Zs(),Vu=lI(class extends nI{constructor(e){if(super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Uu(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Gu]=Hu,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip||e.brotli){if(e.gzip&&e.brotli)throw new TypeError("gzip and brotli are mutually exclusive");e.gzip&&(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new q_.Gzip(e.gzip)),e.brotli&&(typeof e.brotli!="object"&&(e.brotli={}),this.zip=new q_.BrotliCompress(e.brotli)),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[ku]()),this.on("resume",r=>this.zip.resume())}else this.on("drain",this[ku]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Ct]=new uI,this[Pt]=0,this.jobs=+e.jobs||4,this[ko]=!1,this[Fo]=!1}[K_](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Fo]=!0,this[ms](),this}write(e){if(this[Fo])throw new Error("write after end");return e instanceof oI?this[W_](e):this[Bo](e),this.flowing}[W_](e){let r=Uu(Y_.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let s=new qo(e.path,r,!1);s.entry=new cI(e,this[Fu](s)),s.entry.on("end",i=>this[Mu](s)),this[Pt]+=1,this[Ct].push(s)}this[ms]()}[Bo](e){let r=Uu(Y_.resolve(this.cwd,e));this[Ct].push(new qo(e,r)),this[ms]()}[Bu](e){e.pending=!0,this[Pt]+=1;let r=this.follow?"stat":"lstat";Ho[r](e.absolute,(s,i)=>{e.pending=!1,this[Pt]-=1,s?this.emit("error",s):this[Uo](e,i)})}[Uo](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[ms]()}[ju](e){e.pending=!0,this[Pt]+=1,Ho.readdir(e.absolute,(r,s)=>{if(e.pending=!1,this[Pt]-=1,r)return this.emit("error",r);this[jo](e,s)})}[jo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[ms]()}[ms](){if(!this[ko]){this[ko]=!0;for(let e=this[Ct].head;e!==null&&this[Pt]<this.jobs;e=e.next)if(this[V_](e.value),e.value.ignore){let r=e.next;this[Ct].removeNode(e),e.next=r}this[ko]=!1,this[Fo]&&!this[Ct].length&&this[Pt]===0&&(this.zip?this.zip.end(H_):(super.write(H_),super.end()))}}get[ti](){return this[Ct]&&this[Ct].head&&this[Ct].head.value}[Mu](e){this[Ct].shift(),this[Pt]-=1,this[ms]()}[V_](e){if(!e.pending){if(e.entry){e===this[ti]&&!e.piped&&this[Go](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Uo](e,this.statCache.get(e.absolute)):this[Bu](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[jo](e,this.readdirCache.get(e.absolute)):this[ju](e),!e.readdir))){if(e.entry=this[$_](e),!e.entry){e.ignore=!0;return}e===this[ti]&&!e.piped&&this[Go](e)}}}[Fu](e){return{onwarn:(r,s,i)=>this.warn(r,s,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[$_](e){this[Pt]+=1;try{return new this[Gu](e.path,this[Fu](e)).on("end",()=>this[Mu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[ku](){this[ti]&&this[ti].entry&&this[ti].entry.resume()}[Go](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Bo](o+i)});let r=e.entry,s=this.zip;s?r.on("data",i=>{s.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),qu=class extends Vu{constructor(e){super(e),this[Gu]=aI}pause(){}resume(){}[Bu](e){let r=this.follow?"statSync":"lstatSync";this[Uo](e,Ho[r](e.absolute))}[ju](e,r){this[jo](e,Ho.readdirSync(e.absolute))}[Go](e){let r=e.entry,s=this.zip;e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Bo](o+i)}),s?r.on("data",i=>{s.write(i)}):r.on("data",i=>{super[K_](i)})}};Vu.Sync=qu;z_.exports=Vu});var ui=_(Zi=>{"use strict";h();var hI=Xc(),fI=T("events").EventEmitter,$e=T("fs"),Yu=$e.writev;if(!Yu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Yu=(r,s,i,n)=>{let o=(c,u)=>n(c,u,s),a=new e;a.oncomplete=o,t.writeBuffers(r,s,i,a)}}var ai=Symbol("_autoClose"),Et=Symbol("_close"),Xi=Symbol("_ended"),ne=Symbol("_fd"),X_=Symbol("_finished"),Ir=Symbol("_flags"),Wu=Symbol("_flush"),Ku=Symbol("_handleChunk"),zu=Symbol("_makeBuf"),zo=Symbol("_mode"),Wo=Symbol("_needDrain"),ni=Symbol("_onerror"),ci=Symbol("_onopen"),$u=Symbol("_onread"),si=Symbol("_onwrite"),wr=Symbol("_open"),Jt=Symbol("_path"),_s=Symbol("_pos"),Dt=Symbol("_queue"),ii=Symbol("_read"),Z_=Symbol("_readSize"),Nr=Symbol("_reading"),$o=Symbol("_remain"),Q_=Symbol("_size"),Yo=Symbol("_write"),ri=Symbol("_writing"),Ko=Symbol("_defaultFlag"),oi=Symbol("_errored"),Xo=class extends hI{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[oi]=!1,this[ne]=typeof r.fd=="number"?r.fd:null,this[Jt]=e,this[Z_]=r.readSize||16*1024*1024,this[Nr]=!1,this[Q_]=typeof r.size=="number"?r.size:1/0,this[$o]=this[Q_],this[ai]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ne]=="number"?this[ii]():this[wr]()}get fd(){return this[ne]}get path(){return this[Jt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[wr](){$e.open(this[Jt],"r",(e,r)=>this[ci](e,r))}[ci](e,r){e?this[ni](e):(this[ne]=r,this.emit("open",r),this[ii]())}[zu](){return Buffer.allocUnsafe(Math.min(this[Z_],this[$o]))}[ii](){if(!this[Nr]){this[Nr]=!0;let e=this[zu]();if(e.length===0)return process.nextTick(()=>this[$u](null,0,e));$e.read(this[ne],e,0,e.length,null,(r,s,i)=>this[$u](r,s,i))}}[$u](e,r,s){this[Nr]=!1,e?this[ni](e):this[Ku](r,s)&&this[ii]()}[Et](){if(this[ai]&&typeof this[ne]=="number"){let e=this[ne];this[ne]=null,$e.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ni](e){this[Nr]=!0,this[Et](),this.emit("error",e)}[Ku](e,r){let s=!1;return this[$o]-=e,e>0&&(s=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[$o]<=0)&&(s=!1,this[Et](),super.end()),s}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[ne]=="number"&&this[ii]();break;case"error":return this[oi]?void 0:(this[oi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Xu=class extends Xo{[wr](){let e=!0;try{this[ci](null,$e.openSync(this[Jt],"r")),e=!1}finally{e&&this[Et]()}}[ii](){let e=!0;try{if(!this[Nr]){this[Nr]=!0;do{let r=this[zu](),s=r.length===0?0:$e.readSync(this[ne],r,0,r.length,null);if(!this[Ku](s,r))break}while(!0);this[Nr]=!1}e=!1}finally{e&&this[Et]()}}[Et](){if(this[ai]&&typeof this[ne]=="number"){let e=this[ne];this[ne]=null,$e.closeSync(e),this.emit("close")}}},Zo=class extends fI{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[oi]=!1,this[ri]=!1,this[Xi]=!1,this[Wo]=!1,this[Dt]=[],this[Jt]=e,this[ne]=typeof r.fd=="number"?r.fd:null,this[zo]=r.mode===void 0?438:r.mode,this[_s]=typeof r.start=="number"?r.start:null,this[ai]=typeof r.autoClose=="boolean"?r.autoClose:!0;let s=this[_s]!==null?"r+":"w";this[Ko]=r.flags===void 0,this[Ir]=this[Ko]?s:r.flags,this[ne]===null&&this[wr]()}emit(e,r){if(e==="error"){if(this[oi])return;this[oi]=!0}return super.emit(e,r)}get fd(){return this[ne]}get path(){return this[Jt]}[ni](e){this[Et](),this[ri]=!0,this.emit("error",e)}[wr](){$e.open(this[Jt],this[Ir],this[zo],(e,r)=>this[ci](e,r))}[ci](e,r){this[Ko]&&this[Ir]==="r+"&&e&&e.code==="ENOENT"?(this[Ir]="w",this[wr]()):e?this[ni](e):(this[ne]=r,this.emit("open",r),this[Wu]())}end(e,r){return e&&this.write(e,r),this[Xi]=!0,!this[ri]&&!this[Dt].length&&typeof this[ne]=="number"&&this[si](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Xi]?(this.emit("error",new Error("write() after end()")),!1):this[ne]===null||this[ri]||this[Dt].length?(this[Dt].push(e),this[Wo]=!0,!1):(this[ri]=!0,this[Yo](e),!0)}[Yo](e){$e.write(this[ne],e,0,e.length,this[_s],(r,s)=>this[si](r,s))}[si](e,r){e?this[ni](e):(this[_s]!==null&&(this[_s]+=r),this[Dt].length?this[Wu]():(this[ri]=!1,this[Xi]&&!this[X_]?(this[X_]=!0,this[Et](),this.emit("finish")):this[Wo]&&(this[Wo]=!1,this.emit("drain"))))}[Wu](){if(this[Dt].length===0)this[Xi]&&this[si](null,0);else if(this[Dt].length===1)this[Yo](this[Dt].pop());else{let e=this[Dt];this[Dt]=[],Yu(this[ne],e,this[_s],(r,s)=>this[si](r,s))}}[Et](){if(this[ai]&&typeof this[ne]=="number"){let e=this[ne];this[ne]=null,$e.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Zu=class extends Zo{[wr](){let e;if(this[Ko]&&this[Ir]==="r+")try{e=$e.openSync(this[Jt],this[Ir],this[zo])}catch(r){if(r.code==="ENOENT")return this[Ir]="w",this[wr]();throw r}else e=$e.openSync(this[Jt],this[Ir],this[zo]);this[ci](null,e)}[Et](){if(this[ai]&&typeof this[ne]=="number"){let e=this[ne];this[ne]=null,$e.closeSync(e),this.emit("close")}}[Yo](e){let r=!0;try{this[si](null,$e.writeSync(this[ne],e,0,e.length,this[_s])),r=!1}finally{if(r)try{this[Et]()}catch{}}}};Zi.ReadStream=Xo;Zi.ReadStreamSync=Xu;Zi.WriteStream=Zo;Zi.WriteStreamSync=Zu});var ia=_((R1,cE)=>{"use strict";h();var dI=Co(),J_=Js(),pI=T("events"),mI=Lu(),_I=1024*1024,EI=No(),eE=wo(),tE=fu(),{nextTick:gI}=T("process"),Qu=Buffer.from([31,139]),st=Symbol("state"),Es=Symbol("writeEntry"),er=Symbol("readEntry"),Ju=Symbol("nextEntry"),rE=Symbol("processEntry"),it=Symbol("extendedHeader"),Qi=Symbol("globalExtendedHeader"),Cr=Symbol("meta"),sE=Symbol("emitMeta"),ae=Symbol("buffer"),tr=Symbol("queue"),Pr=Symbol("ended"),iE=Symbol("emittedEnd"),gs=Symbol("emit"),Ne=Symbol("unzip"),Qo=Symbol("consumeChunk"),Jo=Symbol("consumeChunkSub"),el=Symbol("consumeBody"),nE=Symbol("consumeMeta"),oE=Symbol("consumeHeader"),ea=Symbol("consuming"),tl=Symbol("bufferConcat"),rl=Symbol("maybeEnd"),Ji=Symbol("writing"),Dr=Symbol("aborted"),ta=Symbol("onDone"),ys=Symbol("sawValidEntry"),ra=Symbol("sawNullBlock"),sa=Symbol("sawEOF"),aE=Symbol("closeStream"),yI=t=>!0;cE.exports=dI(class extends pI{constructor(e){e=e||{},super(e),this.file=e.file||"",this[ys]=null,this.on(ta,s=>{(this[st]==="begin"||this[ys]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ta,e.ondone):this.on(ta,s=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||_I,this.filter=typeof e.filter=="function"?e.filter:yI;let r=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=!e.gzip&&e.brotli!==void 0?e.brotli:r?void 0:!1,this.writable=!0,this.readable=!1,this[tr]=new mI,this[ae]=null,this[er]=null,this[Es]=null,this[st]="begin",this[Cr]="",this[it]=null,this[Qi]=null,this[Pr]=!1,this[Ne]=null,this[Dr]=!1,this[ra]=!1,this[sa]=!1,this.on("end",()=>this[aE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[oE](e,r){this[ys]===null&&(this[ys]=!1);let s;try{s=new J_(e,r,this[it],this[Qi])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(s.nullBlock)this[ra]?(this[sa]=!0,this[st]==="begin"&&(this[st]="header"),this[gs]("eof")):(this[ra]=!0,this[gs]("nullBlock"));else if(this[ra]=!1,!s.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:s});else if(!s.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:s});else{let i=s.type;if(/^(Symbolic)?Link$/.test(i)&&!s.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:s});else if(!/^(Symbolic)?Link$/.test(i)&&s.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:s});else{let n=this[Es]=new EI(s,this[it],this[Qi]);if(!this[ys])if(n.remain){let o=()=>{n.invalid||(this[ys]=!0)};n.on("end",o)}else this[ys]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[gs]("ignoredEntry",n),this[st]="ignore",n.resume()):n.size>0&&(this[Cr]="",n.on("data",o=>this[Cr]+=o),this[st]="meta"):(this[it]=null,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[gs]("ignoredEntry",n),this[st]=n.remain?"ignore":"header",n.resume()):(n.remain?this[st]="body":(this[st]="header",n.end()),this[er]?this[tr].push(n):(this[tr].push(n),this[Ju]())))}}}[aE](){gI(()=>this.emit("close"))}[rE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[er]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",s=>this[Ju]()),r=!1)):(this[er]=null,r=!1),r}[Ju](){do;while(this[rE](this[tr].shift()));if(!this[tr].length){let e=this[er];!e||e.flowing||e.size===e.remain?this[Ji]||this.emit("drain"):e.once("drain",s=>this.emit("drain"))}}[el](e,r){let s=this[Es],i=s.blockRemain,n=i>=e.length&&r===0?e:e.slice(r,r+i);return s.write(n),s.blockRemain||(this[st]="header",this[Es]=null,s.end()),n.length}[nE](e,r){let s=this[Es],i=this[el](e,r);return this[Es]||this[sE](s),i}[gs](e,r,s){!this[tr].length&&!this[er]?this.emit(e,r,s):this[tr].push([e,r,s])}[sE](e){switch(this[gs]("meta",this[Cr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[it]=eE.parse(this[Cr],this[it],!1);break;case"GlobalExtendedHeader":this[Qi]=eE.parse(this[Cr],this[Qi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[it]=this[it]||Object.create(null),this[it].path=this[Cr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[it]=this[it]||Object.create(null),this[it].linkpath=this[Cr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Dr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Dr])return;if((this[Ne]===null||this.brotli===void 0&&this[Ne]===!1)&&e){if(this[ae]&&(e=Buffer.concat([this[ae],e]),this[ae]=null),e.length<Qu.length)return this[ae]=e,!0;for(let n=0;this[Ne]===null&&n<Qu.length;n++)e[n]!==Qu[n]&&(this[Ne]=!1);let i=this.brotli===void 0;if(this[Ne]===!1&&i)if(e.length<512)if(this[Pr])this.brotli=!0;else return this[ae]=e,!0;else try{new J_(e.slice(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[Ne]===null||this[Ne]===!1&&this.brotli){let n=this[Pr];this[Pr]=!1,this[Ne]=this[Ne]===null?new tE.Unzip:new tE.BrotliDecompress,this[Ne].on("data",a=>this[Qo](a)),this[Ne].on("error",a=>this.abort(a)),this[Ne].on("end",a=>{this[Pr]=!0,this[Qo]()}),this[Ji]=!0;let o=this[Ne][n?"end":"write"](e);return this[Ji]=!1,o}}this[Ji]=!0,this[Ne]?this[Ne].write(e):this[Qo](e),this[Ji]=!1;let s=this[tr].length?!1:this[er]?this[er].flowing:!0;return!s&&!this[tr].length&&this[er].once("drain",i=>this.emit("drain")),s}[tl](e){e&&!this[Dr]&&(this[ae]=this[ae]?Buffer.concat([this[ae],e]):e)}[rl](){if(this[Pr]&&!this[iE]&&!this[Dr]&&!this[ea]){this[iE]=!0;let e=this[Es];if(e&&e.blockRemain){let r=this[ae]?this[ae].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[ae]&&e.write(this[ae]),e.end()}this[gs](ta)}}[Qo](e){if(this[ea])this[tl](e);else if(!e&&!this[ae])this[rl]();else{if(this[ea]=!0,this[ae]){this[tl](e);let r=this[ae];this[ae]=null,this[Jo](r)}else this[Jo](e);for(;this[ae]&&this[ae].length>=512&&!this[Dr]&&!this[sa];){let r=this[ae];this[ae]=null,this[Jo](r)}this[ea]=!1}(!this[ae]||this[Pr])&&this[rl]()}[Jo](e){let r=0,s=e.length;for(;r+512<=s&&!this[Dr]&&!this[sa];)switch(this[st]){case"begin":case"header":this[oE](e,r),r+=512;break;case"ignore":case"body":r+=this[el](e,r);break;case"meta":r+=this[nE](e,r);break;default:throw new Error("invalid state: "+this[st])}r<s&&(this[ae]?this[ae]=Buffer.concat([e.slice(r),this[ae]]):this[ae]=e.slice(r))}end(e){this[Dr]||(this[Ne]?this[Ne].end(e):(this[Pr]=!0,this.brotli===void 0&&(e=e||Buffer.alloc(0)),this.write(e)))}})});var na=_((T1,fE)=>{"use strict";h();var SI=$s(),lE=ia(),li=T("fs"),OI=ui(),uE=T("path"),sl=ei();fE.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let s=SI(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&vI(s,e),s.noResume||RI(s),s.file&&s.sync?TI(s):s.file?AI(s,r):hE(s)};var RI=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},vI=(t,e)=>{let r=new Map(e.map(n=>[sl(n),!0])),s=t.filter,i=(n,o)=>{let a=o||uE.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(uE.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(sl(n)):n=>i(sl(n))},TI=t=>{let e=hE(t),r=t.file,s=!0,i;try{let n=li.statSync(r),o=t.maxReadSize||16*1024*1024;if(n.size<o)e.end(li.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=li.openSync(r,"r");a<n.size;){let u=li.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}s=!1}finally{if(s&&i)try{li.closeSync(i)}catch{}}},AI=(t,e)=>{let r=new lE(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("end",o),li.stat(i,(c,u)=>{if(c)a(c);else{let l=new OI.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},hE=t=>new lE(t)});var gE=_((b1,EE)=>{"use strict";h();var bI=$s(),oa=Vo(),dE=ui(),pE=na(),mE=T("path");EE.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let s=bI(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return s.file&&s.sync?NI(s,e):s.file?II(s,e,r):s.sync?wI(s,e):CI(s,e)};var NI=(t,e)=>{let r=new oa.Sync(t),s=new dE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(s),_E(r,e)},II=(t,e,r)=>{let s=new oa(t),i=new dE.WriteStream(t.file,{mode:t.mode||438});s.pipe(i);let n=new Promise((o,a)=>{i.on("error",a),i.on("close",o),s.on("error",a)});return il(s,e),r?n.then(r,r):n},_E=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?pE({file:mE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},il=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return pE({file:mE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>il(t,e));t.add(r)}t.end()},wI=(t,e)=>{let r=new oa.Sync(t);return _E(r,e),r},CI=(t,e)=>{let r=new oa(t);return il(r,e),r}});var nl=_((I1,AE)=>{"use strict";h();var PI=$s(),yE=Vo(),Je=T("fs"),SE=ui(),OE=na(),RE=T("path"),vE=Js();AE.exports=(t,e,r)=>{let s=PI(t);if(!s.file)throw new TypeError("file is required");if(s.gzip||s.brotli||s.file.endsWith(".br")||s.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),s.sync?DI(s,e):LI(s,e,r)};var DI=(t,e)=>{let r=new yE.Sync(t),s=!0,i,n;try{try{i=Je.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")i=Je.openSync(t.file,"w+");else throw c}let o=Je.fstatSync(i),a=Buffer.alloc(512);e:for(n=0;n<o.size;n+=512){for(let l=0,f=0;l<512;l+=f){if(f=Je.readSync(i,a,l,a.length-l,n+l),n===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let c=new vE(a);if(!c.cksumValid)break;let u=512*Math.ceil(c.size/512);if(n+u+512>o.size)break;n+=u,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}s=!1,xI(t,r,n,i,e)}finally{if(s)try{Je.closeSync(i)}catch{}}},xI=(t,e,r,s,i)=>{let n=new SE.WriteStreamSync(t.file,{fd:s,start:r});e.pipe(n),MI(e,i)},LI=(t,e,r)=>{e=Array.from(e);let s=new yE(t),i=(o,a,c)=>{let u=(g,y)=>{g?Je.close(o,A=>c(g)):c(null,y)},l=0;if(a===0)return u(null,0);let f=0,d=Buffer.alloc(512),E=(g,y)=>{if(g)return u(g);if(f+=y,f<512&&y)return Je.read(o,d,f,d.length-f,l+f,E);if(l===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(f<512)return u(null,l);let A=new vE(d);if(!A.cksumValid)return u(null,l);let b=512*Math.ceil(A.size/512);if(l+b+512>a||(l+=b+512,l>=a))return u(null,l);t.mtimeCache&&t.mtimeCache.set(A.path,A.mtime),f=0,Je.read(o,d,0,512,l,E)};Je.read(o,d,0,512,l,E)},n=new Promise((o,a)=>{s.on("error",a);let c="r+",u=(l,f)=>{if(l&&l.code==="ENOENT"&&c==="r+")return c="w+",Je.open(t.file,c,u);if(l)return a(l);Je.fstat(f,(d,E)=>{if(d)return Je.close(f,()=>a(d));i(f,E.size,(g,y)=>{if(g)return a(g);let A=new SE.WriteStream(t.file,{fd:f,start:y});s.pipe(A),A.on("error",a),A.on("close",o),TE(s,e)})})};Je.open(t.file,c,u)});return r?n.then(r,r):n},MI=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?OE({file:RE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},TE=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return OE({file:RE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>TE(t,e));t.add(r)}t.end()}});var NE=_((C1,bE)=>{"use strict";h();var FI=$s(),kI=nl();bE.exports=(t,e,r)=>{let s=FI(t);if(!s.file)throw new TypeError("file is required");if(s.gzip||s.brotli||s.file.endsWith(".br")||s.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),UI(s),kI(s,e,r)};var UI=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,s)=>e(r,s)&&!(t.mtimeCache.get(r)>s.mtime):(r,s)=>!(t.mtimeCache.get(r)>s.mtime)}});var CE=_((D1,wE)=>{"use strict";h();var{promisify:IE}=T("util"),xr=T("fs"),BI=t=>{if(!t)t={mode:511,fs:xr};else if(typeof t=="object")t={mode:511,fs:xr,...t};else if(typeof t=="number")t={mode:t,fs:xr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:xr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||xr.mkdir,t.mkdirAsync=IE(t.mkdir),t.stat=t.stat||t.fs.stat||xr.stat,t.statAsync=IE(t.stat),t.statSync=t.statSync||t.fs.statSync||xr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||xr.mkdirSync,t};wE.exports=BI});var DE=_((L1,PE)=>{"use strict";h();var jI=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:GI,parse:qI}=T("path"),HI=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=GI(t),jI==="win32"){let e=/[*|"<>?:]/,{root:r}=qI(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};PE.exports=HI});var kE=_((F1,FE)=>{"use strict";h();var{dirname:xE}=T("path"),LE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(s=>s.isDirectory()?r:void 0,s=>s.code==="ENOENT"?LE(t,xE(e),e):void 0),ME=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(s){return s.code==="ENOENT"?ME(t,xE(e),e):void 0}};FE.exports={findMade:LE,findMadeSync:ME}});var cl=_((U1,BE)=>{"use strict";h();var{dirname:UE}=T("path"),ol=(t,e,r)=>{e.recursive=!1;let s=UE(t);return s===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return ol(s,e).then(n=>ol(t,e,n));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(n=>{if(n.isDirectory())return r;throw i},()=>{throw i})})},al=(t,e,r)=>{let s=UE(t);if(e.recursive=!1,s===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return al(t,e,al(s,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};BE.exports={mkdirpManual:ol,mkdirpManualSync:al}});var qE=_((j1,GE)=>{"use strict";h();var{dirname:jE}=T("path"),{findMade:VI,findMadeSync:WI}=kE(),{mkdirpManual:$I,mkdirpManualSync:YI}=cl(),KI=(t,e)=>(e.recursive=!0,jE(t)===t?e.mkdirAsync(t,e):VI(e,t).then(s=>e.mkdirAsync(t,e).then(()=>s).catch(i=>{if(i.code==="ENOENT")return $I(t,e);throw i}))),zI=(t,e)=>{if(e.recursive=!0,jE(t)===t)return e.mkdirSync(t,e);let s=WI(e,t);try{return e.mkdirSync(t,e),s}catch(i){if(i.code==="ENOENT")return YI(t,e);throw i}};GE.exports={mkdirpNative:KI,mkdirpNativeSync:zI}});var $E=_((q1,WE)=>{"use strict";h();var HE=T("fs"),XI=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,ul=XI.replace(/^v/,"").split("."),VE=+ul[0]>10||+ul[0]==10&&+ul[1]>=12,ZI=VE?t=>t.mkdir===HE.mkdir:()=>!1,QI=VE?t=>t.mkdirSync===HE.mkdirSync:()=>!1;WE.exports={useNative:ZI,useNativeSync:QI}});var QE=_((V1,ZE)=>{"use strict";h();var hi=CE(),fi=DE(),{mkdirpNative:YE,mkdirpNativeSync:KE}=qE(),{mkdirpManual:zE,mkdirpManualSync:XE}=cl(),{useNative:JI,useNativeSync:ew}=$E(),di=(t,e)=>(t=fi(t),e=hi(e),JI(e)?YE(t,e):zE(t,e)),tw=(t,e)=>(t=fi(t),e=hi(e),ew(e)?KE(t,e):XE(t,e));di.sync=tw;di.native=(t,e)=>YE(fi(t),hi(e));di.manual=(t,e)=>zE(fi(t),hi(e));di.nativeSync=(t,e)=>KE(fi(t),hi(e));di.manualSync=(t,e)=>XE(fi(t),hi(e));ZE.exports=di});var ng=_(($1,ig)=>{"use strict";h();var nt=T("fs"),Ss=T("path"),rw=nt.lchown?"lchown":"chown",sw=nt.lchownSync?"lchownSync":"chownSync",eg=nt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),JE=(t,e,r)=>{try{return nt[sw](t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},iw=(t,e,r)=>{try{return nt.chownSync(t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},nw=eg?(t,e,r,s)=>i=>{!i||i.code!=="EISDIR"?s(i):nt.chown(t,e,r,s)}:(t,e,r,s)=>s,ll=eg?(t,e,r)=>{try{return JE(t,e,r)}catch(s){if(s.code!=="EISDIR")throw s;iw(t,e,r)}}:(t,e,r)=>JE(t,e,r),ow=process.version,tg=(t,e,r)=>nt.readdir(t,e,r),aw=(t,e)=>nt.readdirSync(t,e);/^v4\./.test(ow)&&(tg=(t,e,r)=>nt.readdir(t,r));var aa=(t,e,r,s)=>{nt[rw](t,e,r,nw(t,e,r,i=>{s(i&&i.code!=="ENOENT"?i:null)}))},rg=(t,e,r,s,i)=>{if(typeof e=="string")return nt.lstat(Ss.resolve(t,e),(n,o)=>{if(n)return i(n.code!=="ENOENT"?n:null);o.name=e,rg(t,o,r,s,i)});if(e.isDirectory())hl(Ss.resolve(t,e.name),r,s,n=>{if(n)return i(n);let o=Ss.resolve(t,e.name);aa(o,r,s,i)});else{let n=Ss.resolve(t,e.name);aa(n,r,s,i)}},hl=(t,e,r,s)=>{tg(t,{withFileTypes:!0},(i,n)=>{if(i){if(i.code==="ENOENT")return s();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return s(i)}if(i||!n.length)return aa(t,e,r,s);let o=n.length,a=null,c=u=>{if(!a){if(u)return s(a=u);if(--o===0)return aa(t,e,r,s)}};n.forEach(u=>rg(t,u,e,r,c))})},cw=(t,e,r,s)=>{if(typeof e=="string")try{let i=nt.lstatSync(Ss.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&sg(Ss.resolve(t,e.name),r,s),ll(Ss.resolve(t,e.name),r,s)},sg=(t,e,r)=>{let s;try{s=aw(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return ll(t,e,r);throw i}return s&&s.length&&s.forEach(i=>cw(t,i,e,r)),ll(t,e,r)};ig.exports=hl;hl.sync=sg});var ug=_((K1,fl)=>{"use strict";h();var og=QE(),ot=T("fs"),ca=T("path"),ag=ng(),gt=Zs(),ua=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},la=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},ha=(t,e)=>t.get(gt(e)),en=(t,e,r)=>t.set(gt(e),r),uw=(t,e)=>{ot.stat(t,(r,s)=>{(r||!s.isDirectory())&&(r=new la(t,r&&r.code||"ENOTDIR")),e(r)})};fl.exports=(t,e,r)=>{t=gt(t);let s=e.umask,i=e.mode|448,n=(i&s)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),u=e.preserve,l=e.unlink,f=e.cache,d=gt(e.cwd),E=(A,b)=>{A?r(A):(en(f,t,!0),b&&c?ag(b,o,a,M=>E(M)):n?ot.chmod(t,i,r):r())};if(f&&ha(f,t)===!0)return E();if(t===d)return uw(t,E);if(u)return og(t,{mode:i}).then(A=>E(null,A),E);let y=gt(ca.relative(d,t)).split("/");fa(d,y,i,f,l,d,null,E)};var fa=(t,e,r,s,i,n,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=gt(ca.resolve(t+"/"+c));if(ha(s,u))return fa(u,e,r,s,i,n,o,a);ot.mkdir(u,r,cg(u,e,r,s,i,n,o,a))},cg=(t,e,r,s,i,n,o,a)=>c=>{c?ot.lstat(t,(u,l)=>{if(u)u.path=u.path&>(u.path),a(u);else if(l.isDirectory())fa(t,e,r,s,i,n,o,a);else if(i)ot.unlink(t,f=>{if(f)return a(f);ot.mkdir(t,r,cg(t,e,r,s,i,n,o,a))});else{if(l.isSymbolicLink())return a(new ua(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,fa(t,e,r,s,i,n,o,a))},lw=t=>{let e=!1,r="ENOTDIR";try{e=ot.statSync(t).isDirectory()}catch(s){r=s.code}finally{if(!e)throw new la(t,r)}};fl.exports.sync=(t,e)=>{t=gt(t);let r=e.umask,s=e.mode|448,i=(s&r)!==0,n=e.uid,o=e.gid,a=typeof n=="number"&&typeof o=="number"&&(n!==e.processUid||o!==e.processGid),c=e.preserve,u=e.unlink,l=e.cache,f=gt(e.cwd),d=A=>{en(l,t,!0),A&&a&&ag.sync(A,n,o),i&&ot.chmodSync(t,s)};if(l&&ha(l,t)===!0)return d();if(t===f)return lw(f),d();if(c)return d(og.sync(t,s));let g=gt(ca.relative(f,t)).split("/"),y=null;for(let A=g.shift(),b=f;A&&(b+="/"+A);A=g.shift())if(b=gt(ca.resolve(b)),!ha(l,b))try{ot.mkdirSync(b,s),y=y||b,en(l,b,!0)}catch{let $=ot.lstatSync(b);if($.isDirectory()){en(l,b,!0);continue}else if(u){ot.unlinkSync(b),ot.mkdirSync(b,s),y=y||b,en(l,b,!0);continue}else if($.isSymbolicLink())return new ua(b,b+"/"+g.join("/"))}return d(y)}});var pl=_((X1,lg)=>{"use strict";h();var dl=Object.create(null),{hasOwnProperty:hw}=Object.prototype;lg.exports=t=>(hw.call(dl,t)||(dl[t]=t.normalize("NFD")),dl[t])});var pg=_((Q1,dg)=>{"use strict";h();var hg=T("assert"),fw=pl(),dw=ei(),{join:fg}=T("path"),pw=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,mw=pw==="win32";dg.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((f,d)=>(f.length&&(d=fg(f[f.length-1],d)),f.push(d||"/"),f),[]),s=new Set,i=u=>{let l=e.get(u);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},n=u=>{let{paths:l,dirs:f}=i(u);return l.every(d=>d[0]===u)&&f.every(d=>d[0]instanceof Set&&d[0].has(u))},o=u=>s.has(u)||!n(u)?!1:(s.add(u),u(()=>a(u)),!0),a=u=>{if(!s.has(u))return!1;let{paths:l,dirs:f}=e.get(u),d=new Set;return l.forEach(E=>{let g=t.get(E);hg.equal(g[0],u),g.length===1?t.delete(E):(g.shift(),typeof g[0]=="function"?d.add(g[0]):g[0].forEach(y=>d.add(y)))}),f.forEach(E=>{let g=t.get(E);hg(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(E):g[0].size===1?(g.shift(),d.add(g[0])):g[0].delete(u)}),s.delete(u),d.forEach(E=>o(E)),!0};return{check:n,reserve:(u,l)=>{u=mw?["win32 parallelization disabled"]:u.map(d=>dw(fg(fw(d))).toLowerCase());let f=new Set(u.map(d=>r(d)).reduce((d,E)=>d.concat(E)));return e.set(l,{dirs:f,paths:u}),u.forEach(d=>{let E=t.get(d);E?E.push(l):t.set(d,[l])}),f.forEach(d=>{let E=t.get(d);E?E[E.length-1]instanceof Set?E[E.length-1].add(l):E.push(new Set([l])):t.set(d,[new Set([l])])}),o(l)}}}});var Eg=_((ej,_g)=>{"use strict";h();var _w=process.env.__FAKE_PLATFORM__||process.platform,Ew=_w==="win32",gw=global.__FAKE_TESTING_FS__||T("fs"),{O_CREAT:yw,O_TRUNC:Sw,O_WRONLY:Ow,UV_FS_O_FILEMAP:mg=0}=gw.constants,Rw=Ew&&!!mg,vw=512*1024,Tw=mg|Sw|yw|Ow;_g.exports=Rw?t=>t<vw?Tw:"w":()=>"w"});var vl=_((rj,Pg)=>{"use strict";h();var Aw=T("assert"),bw=ia(),se=T("fs"),Nw=ui(),rr=T("path"),Ig=ug(),gg=Ru(),Iw=pg(),ww=vu(),at=Zs(),Cw=ei(),Pw=pl(),yg=Symbol("onEntry"),El=Symbol("checkFs"),Sg=Symbol("checkFs2"),ma=Symbol("pruneCache"),gl=Symbol("isReusable"),ct=Symbol("makeFs"),yl=Symbol("file"),Sl=Symbol("directory"),_a=Symbol("link"),Og=Symbol("symlink"),Rg=Symbol("hardlink"),vg=Symbol("unsupported"),Tg=Symbol("checkPath"),Lr=Symbol("mkdir"),Fe=Symbol("onError"),da=Symbol("pending"),Ag=Symbol("pend"),pi=Symbol("unpend"),ml=Symbol("ended"),_l=Symbol("maybeClose"),Ol=Symbol("skip"),tn=Symbol("doChown"),rn=Symbol("uid"),sn=Symbol("gid"),nn=Symbol("checkedCwd"),wg=T("crypto"),Cg=Eg(),Dw=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,on=Dw==="win32",xw=1024,Lw=(t,e)=>{if(!on)return se.unlink(t,e);let r=t+".DELETE."+wg.randomBytes(16).toString("hex");se.rename(t,r,s=>{if(s)return e(s);se.unlink(r,e)})},Mw=t=>{if(!on)return se.unlinkSync(t);let e=t+".DELETE."+wg.randomBytes(16).toString("hex");se.renameSync(t,e),se.unlinkSync(e)},bg=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,Ng=t=>Cw(at(Pw(t))).toLowerCase(),Fw=(t,e)=>{e=Ng(e);for(let r of t.keys()){let s=Ng(r);(s===e||s.indexOf(e+"/")===0)&&t.delete(r)}},kw=t=>{for(let e of t.keys())t.delete(e)},an=class extends bw{constructor(e){if(e||(e={}),e.ondone=r=>{this[ml]=!0,this[_l]()},super(e),this[nn]=!1,this.reservations=Iw(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[da]=0,this[ml]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.maxDepth=typeof e.maxDepth=="number"?e.maxDepth:xw,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||on,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=at(rr.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[yg](r))}warn(e,r,s={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(s.recoverable=!1),super.warn(e,r,s)}[_l](){this[ml]&&this[da]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Tg](e){let r=at(e.path),s=r.split("/");if(this.strip){if(s.length<this.strip)return!1;if(e.type==="Link"){let i=at(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}s.splice(0,this.strip),e.path=s.join("/")}if(isFinite(this.maxDepth)&&s.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:r,depth:s.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(s.includes("..")||on&&/^[a-z]:\.\.$/i.test(s[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,n]=ww(r);i&&(e.path=n,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(rr.isAbsolute(e.path)?e.absolute=at(rr.resolve(e.path)):e.absolute=at(rr.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:at(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:i}=rr.win32.parse(e.absolute);e.absolute=i+gg.encode(e.absolute.slice(i.length));let{root:n}=rr.win32.parse(e.path);e.path=n+gg.encode(e.path.slice(n.length))}return!0}[yg](e){if(!this[Tg](e))return e.resume();switch(Aw.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[El](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[vg](e)}}[Fe](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[pi](),r.resume())}[Lr](e,r,s){Ig(at(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},s)}[tn](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[rn](e){return bg(this.uid,e.uid,this.processUid)}[sn](e){return bg(this.gid,e.gid,this.processGid)}[yl](e,r){let s=e.mode&4095||this.fmode,i=new Nw.WriteStream(e.absolute,{flags:Cg(e.size),mode:s,autoClose:!1});i.on("error",c=>{i.fd&&se.close(i.fd,()=>{}),i.write=()=>!0,this[Fe](c,e),r()});let n=1,o=c=>{if(c){i.fd&&se.close(i.fd,()=>{}),this[Fe](c,e),r();return}--n===0&&se.close(i.fd,u=>{u?this[Fe](u,e):this[pi](),r()})};i.on("finish",c=>{let u=e.absolute,l=i.fd;if(e.mtime&&!this.noMtime){n++;let f=e.atime||new Date,d=e.mtime;se.futimes(l,f,d,E=>E?se.utimes(u,f,d,g=>o(g&&E)):o())}if(this[tn](e)){n++;let f=this[rn](e),d=this[sn](e);se.fchown(l,f,d,E=>E?se.chown(u,f,d,g=>o(g&&E)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[Fe](c,e),r()}),e.pipe(a)),a.pipe(i)}[Sl](e,r){let s=e.mode&4095||this.dmode;this[Lr](e.absolute,s,i=>{if(i){this[Fe](i,e),r();return}let n=1,o=a=>{--n===0&&(r(),this[pi](),e.resume())};e.mtime&&!this.noMtime&&(n++,se.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[tn](e)&&(n++,se.chown(e.absolute,this[rn](e),this[sn](e),o)),o()})}[vg](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Og](e,r){this[_a](e,e.linkpath,"symlink",r)}[Rg](e,r){let s=at(rr.resolve(this.cwd,e.linkpath));this[_a](e,s,"link",r)}[Ag](){this[da]++}[pi](){this[da]--,this[_l]()}[Ol](e){this[pi](),e.resume()}[gl](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!on}[El](e){this[Ag]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,s=>this[Sg](e,s))}[ma](e){e.type==="SymbolicLink"?kw(this.dirCache):e.type!=="Directory"&&Fw(this.dirCache,e.absolute)}[Sg](e,r){this[ma](e);let s=a=>{this[ma](e),r(a)},i=()=>{this[Lr](this.cwd,this.dmode,a=>{if(a){this[Fe](a,e),s();return}this[nn]=!0,n()})},n=()=>{if(e.absolute!==this.cwd){let a=at(rr.dirname(e.absolute));if(a!==this.cwd)return this[Lr](a,this.dmode,c=>{if(c){this[Fe](c,e),s();return}o()})}o()},o=()=>{se.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[Ol](e),s();return}if(a||this[gl](e,c))return this[ct](null,e,s);if(c.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,l=f=>this[ct](f,e,s);return u?se.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return se.rmdir(e.absolute,u=>this[ct](u,e,s))}if(e.absolute===this.cwd)return this[ct](null,e,s);Lw(e.absolute,u=>this[ct](u,e,s))})};this[nn]?n():i()}[ct](e,r,s){if(e){this[Fe](e,r),s();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[yl](r,s);case"Link":return this[Rg](r,s);case"SymbolicLink":return this[Og](r,s);case"Directory":case"GNUDumpDir":return this[Sl](r,s)}}[_a](e,r,s,i){se[s](r,e.absolute,n=>{n?this[Fe](n,e):(this[pi](),e.resume()),i()})}},pa=t=>{try{return[null,t()]}catch(e){return[e,null]}},Rl=class extends an{[ct](e,r){return super[ct](e,r,()=>{})}[El](e){if(this[ma](e),!this[nn]){let n=this[Lr](this.cwd,this.dmode);if(n)return this[Fe](n,e);this[nn]=!0}if(e.absolute!==this.cwd){let n=at(rr.dirname(e.absolute));if(n!==this.cwd){let o=this[Lr](n,this.dmode);if(o)return this[Fe](o,e)}}let[r,s]=pa(()=>se.lstatSync(e.absolute));if(s&&(this.keep||this.newer&&s.mtime>e.mtime))return this[Ol](e);if(r||this[gl](e,s))return this[ct](null,e);if(s.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(s.mode&4095)!==e.mode,[a]=o?pa(()=>{se.chmodSync(e.absolute,e.mode)}):[];return this[ct](a,e)}let[n]=pa(()=>se.rmdirSync(e.absolute));this[ct](n,e)}let[i]=e.absolute===this.cwd?[]:pa(()=>Mw(e.absolute));this[ct](i,e)}[yl](e,r){let s=e.mode&4095||this.fmode,i=a=>{let c;try{se.closeSync(n)}catch(u){c=u}(a||c)&&this[Fe](a||c,e),r()},n;try{n=se.openSync(e.absolute,Cg(e.size),s)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Fe](a,e)),e.pipe(o)),o.on("data",a=>{try{se.writeSync(n,a,0,a.length)}catch(c){i(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,l=e.mtime;try{se.futimesSync(n,u,l)}catch(f){try{se.utimesSync(e.absolute,u,l)}catch{c=f}}}if(this[tn](e)){let u=this[rn](e),l=this[sn](e);try{se.fchownSync(n,u,l)}catch(f){try{se.chownSync(e.absolute,u,l)}catch{c=c||f}}}i(c)})}[Sl](e,r){let s=e.mode&4095||this.dmode,i=this[Lr](e.absolute,s);if(i){this[Fe](i,e),r();return}if(e.mtime&&!this.noMtime)try{se.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[tn](e))try{se.chownSync(e.absolute,this[rn](e),this[sn](e))}catch{}r(),e.resume()}[Lr](e,r){try{return Ig.sync(at(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(s){return s}}[_a](e,r,s,i){try{se[s+"Sync"](r,e.absolute),i(),e.resume()}catch(n){return this[Fe](n,e)}}};an.Sync=Rl;Pg.exports=an});var Fg=_((ij,Mg)=>{"use strict";h();var Uw=$s(),Ea=vl(),xg=T("fs"),Lg=ui(),Dg=T("path"),Tl=ei();Mg.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let s=Uw(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Bw(s,e),s.file&&s.sync?jw(s):s.file?Gw(s,r):s.sync?qw(s):Hw(s)};var Bw=(t,e)=>{let r=new Map(e.map(n=>[Tl(n),!0])),s=t.filter,i=(n,o)=>{let a=o||Dg.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(Dg.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(Tl(n)):n=>i(Tl(n))},jw=t=>{let e=new Ea.Sync(t),r=t.file,s=xg.statSync(r),i=t.maxReadSize||16*1024*1024;new Lg.ReadStreamSync(r,{readSize:i,size:s.size}).pipe(e)},Gw=(t,e)=>{let r=new Ea(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("close",o),xg.stat(i,(c,u)=>{if(c)a(c);else{let l=new Lg.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},qw=t=>new Ea.Sync(t),Hw=t=>new Ea(t)});var kg=_(Re=>{"use strict";h();Re.c=Re.create=gE();Re.r=Re.replace=nl();Re.t=Re.list=na();Re.u=Re.update=NE();Re.x=Re.extract=Fg();Re.Pack=Vo();Re.Unpack=vl();Re.Parse=ia();Re.ReadEntry=No();Re.WriteEntry=xu();Re.Header=Js();Re.Pax=wo();Re.types=mu()});var Al=_((Tj,Yg)=>{"use strict";h();var Zw=T("stream"),Wg=Zw.PassThrough,Qw=Array.prototype.slice;Yg.exports=Jw;function Jw(){let t=[],e=Qw.call(arguments),r=!1,s=e[e.length-1];s&&!Array.isArray(s)&&s.pipe==null?e.pop():s={};let i=s.end!==!1,n=s.pipeError===!0;s.objectMode==null&&(s.objectMode=!0),s.highWaterMark==null&&(s.highWaterMark=64*1024);let o=Wg(s);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push($g(arguments[l],s));return c(),this}function c(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(u);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function d(){--f>0||(r=!1,c())}function E(g){function y(){g.removeListener("merge2UnpipeEnd",y),g.removeListener("end",y),n&&g.removeListener("error",A),d()}function A(b){o.emit("error",b)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",y),g.on("end",y),n&&g.on("error",A),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<l.length;g++)E(l[g]);d()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function $g(t,e){if(Array.isArray(t))for(let r=0,s=t.length;r<s;r++)t[r]=$g(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Wg(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Kg=_(mi=>{"use strict";h();Object.defineProperty(mi,"__esModule",{value:!0});mi.splitWhen=mi.flatten=void 0;function eC(t){return t.reduce((e,r)=>[].concat(e,r),[])}mi.flatten=eC;function tC(t,e){let r=[[]],s=0;for(let i of t)e(i)?(s++,r[s]=[]):r[s].push(i);return r}mi.splitWhen=tC});var zg=_(ga=>{"use strict";h();Object.defineProperty(ga,"__esModule",{value:!0});ga.isEnoentCodeError=void 0;function rC(t){return t.code==="ENOENT"}ga.isEnoentCodeError=rC});var Xg=_(ya=>{"use strict";h();Object.defineProperty(ya,"__esModule",{value:!0});ya.createDirentFromStats=void 0;var bl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function sC(t,e){return new bl(t,e)}ya.createDirentFromStats=sC});var ey=_(ye=>{"use strict";h();Object.defineProperty(ye,"__esModule",{value:!0});ye.convertPosixPathToPattern=ye.convertWindowsPathToPattern=ye.convertPathToPattern=ye.escapePosixPath=ye.escapeWindowsPath=ye.escape=ye.removeLeadingDotSegment=ye.makeAbsolute=ye.unixify=void 0;var iC=T("os"),nC=T("path"),Zg=iC.platform()==="win32",oC=2,aC=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,cC=/(\\?)([(){}]|^!|[!+@](?=\())/g,uC=/^\\\\([.?])/,lC=/\\(?![!()+@{}])/g;function hC(t){return t.replace(/\\/g,"/")}ye.unixify=hC;function fC(t,e){return nC.resolve(t,e)}ye.makeAbsolute=fC;function dC(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(oC)}return t}ye.removeLeadingDotSegment=dC;ye.escape=Zg?Nl:Il;function Nl(t){return t.replace(cC,"\\$2")}ye.escapeWindowsPath=Nl;function Il(t){return t.replace(aC,"\\$2")}ye.escapePosixPath=Il;ye.convertPathToPattern=Zg?Qg:Jg;function Qg(t){return Nl(t).replace(uC,"//$1").replace(lC,"/")}ye.convertWindowsPathToPattern=Qg;function Jg(t){return Il(t)}ye.convertPosixPathToPattern=Jg});var ry=_((Lj,ty)=>{"use strict";h();ty.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var wl=_((Fj,iy)=>{"use strict";h();var pC=ry(),sy={"{":"}","(":")","[":"]"},mC=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,s=-2,i=-2,n=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||s!==-1&&t[e]==="["&&t[e+1]!=="]"&&(s<e&&(s=t.indexOf("]",e)),s>e&&(o===-1||o>s||(o=t.indexOf("\\",e),o===-1||o>s)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||n!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(n=t.indexOf(")",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(n=t.indexOf(")",r),n>r&&(o=t.indexOf("\\",r),o===-1||o>n))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=sy[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},_C=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var s=sy[r];if(s){var i=t.indexOf(s,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};iy.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(pC(e))return!0;var s=mC;return r&&r.strict===!1&&(s=_C),s(e)}});var Pl=_((Uj,ny)=>{"use strict";h();var EC=wl(),gC=T("path").posix.dirname,yC=T("os").platform()==="win32",Cl="/",SC=/\\/g,OC=/[\{\[].*[\}\]]$/,RC=/(^|[^\\])([\{\[]|\([^\)]+$)/,vC=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ny.exports=function(e,r){var s=Object.assign({flipBackslashes:!0},r);s.flipBackslashes&&yC&&e.indexOf(Cl)<0&&(e=e.replace(SC,Cl)),OC.test(e)&&(e+=Cl),e+="a";do e=gC(e);while(EC(e)||RC.test(e));return e.replace(vC,"$1")}});var Sa=_(lt=>{"use strict";h();lt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;lt.find=(t,e)=>t.nodes.find(r=>r.type===e);lt.exceedsLimit=(t,e,r=1,s)=>s===!1||!lt.isInteger(t)||!lt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=s;lt.escapeNode=(t,e=0,r)=>{let s=t.nodes[e];s&&(r&&s.type===r||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)};lt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);lt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;lt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;lt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);lt.flatten=(...t)=>{let e=[],r=s=>{for(let i=0;i<s.length;i++){let n=s[i];Array.isArray(n)?r(n,e):n!==void 0&&e.push(n)}return e};return r(t),e}});var Oa=_((qj,ay)=>{"use strict";h();var oy=Sa();ay.exports=(t,e={})=>{let r=(s,i={})=>{let n=e.escapeInvalid&&oy.isInvalidBrace(i),o=s.invalid===!0&&e.escapeInvalid===!0,a="";if(s.value)return(n||o)&&oy.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let c of s.nodes)a+=r(c);return a};return r(t)}});var uy=_((Vj,cy)=>{"use strict";h();cy.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var gy=_(($j,Ey)=>{"use strict";h();var ly=uy(),Os=(t,e,r)=>{if(ly(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(ly(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let s={relaxZeros:!0,...r};typeof s.strictZeros=="boolean"&&(s.relaxZeros=s.strictZeros===!1);let i=String(s.relaxZeros),n=String(s.shorthand),o=String(s.capture),a=String(s.wrap),c=t+":"+e+"="+i+n+o+a;if(Os.cache.hasOwnProperty(c))return Os.cache[c].result;let u=Math.min(t,e),l=Math.max(t,e);if(Math.abs(u-l)===1){let y=t+"|"+e;return s.capture?`(${y})`:s.wrap===!1?y:`(?:${y})`}let f=_y(t)||_y(e),d={min:t,max:e,a:u,b:l},E=[],g=[];if(f&&(d.isPadded=f,d.maxLen=String(d.max).length),u<0){let y=l<0?Math.abs(l):1;g=hy(y,Math.abs(u),d,s),u=d.a=0}return l>=0&&(E=hy(u,l,d,s)),d.negatives=g,d.positives=E,d.result=TC(g,E,s),s.capture===!0?d.result=`(${d.result})`:s.wrap!==!1&&E.length+g.length>1&&(d.result=`(?:${d.result})`),Os.cache[c]=d,d.result};function TC(t,e,r){let s=Dl(t,e,"-",!1,r)||[],i=Dl(e,t,"",!1,r)||[],n=Dl(t,e,"-?",!0,r)||[];return s.concat(n).concat(i).join("|")}function AC(t,e){let r=1,s=1,i=dy(t,r),n=new Set([e]);for(;t<=i&&i<=e;)n.add(i),r+=1,i=dy(t,r);for(i=py(e+1,s)-1;t<i&&i<=e;)n.add(i),s+=1,i=py(e+1,s)-1;return n=[...n],n.sort(IC),n}function bC(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let s=NC(t,e),i=s.length,n="",o=0;for(let a=0;a<i;a++){let[c,u]=s[a];c===u?n+=c:c!=="0"||u!=="9"?n+=wC(c,u,r):o++}return o&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[o],digits:i}}function hy(t,e,r,s){let i=AC(t,e),n=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],l=bC(String(o),String(u),s),f="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+my(a.count),o=u+1;continue}r.isPadded&&(f=CC(u,r,s)),l.string=f+l.pattern+my(l.count),n.push(l),o=u+1,a=l}return n}function Dl(t,e,r,s,i){let n=[];for(let o of t){let{string:a}=o;!s&&!fy(e,"string",a)&&n.push(r+a),s&&fy(e,"string",a)&&n.push(r+a)}return n}function NC(t,e){let r=[];for(let s=0;s<t.length;s++)r.push([t[s],e[s]]);return r}function IC(t,e){return t>e?1:e>t?-1:0}function fy(t,e,r){return t.some(s=>s[e]===r)}function dy(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function py(t,e){return t-t%Math.pow(10,e)}function my(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function wC(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function _y(t){return/^-?(0+)\d/.test(t)}function CC(t,e,r){if(!e.isPadded)return t;let s=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(s){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${s}}`:`0{${s}}`}}Os.cache={};Os.clearCache=()=>Os.cache={};Ey.exports=Os});var Ml=_((Kj,by)=>{"use strict";h();var PC=T("util"),Oy=gy(),yy=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),DC=t=>e=>t===!0?Number(e):String(e),xl=t=>typeof t=="number"||typeof t=="string"&&t!=="",cn=t=>Number.isInteger(+t),Ll=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},xC=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,LC=(t,e,r)=>{if(e>0){let s=t[0]==="-"?"-":"";s&&(t=t.slice(1)),t=s+t.padStart(s?e-1:e,"0")}return r===!1?String(t):t},Sy=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},MC=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",s="",i="",n;return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),s&&i?n=`${s}|${i}`:n=s||i,e.wrap?`(${r}${n})`:n},Ry=(t,e,r,s)=>{if(r)return Oy(t,e,{wrap:!1,...s});let i=String.fromCharCode(t);if(t===e)return i;let n=String.fromCharCode(e);return`[${i}-${n}]`},vy=(t,e,r)=>{if(Array.isArray(t)){let s=r.wrap===!0,i=r.capture?"":"?:";return s?`(${i}${t.join("|")})`:t.join("|")}return Oy(t,e,r)},Ty=(...t)=>new RangeError("Invalid range arguments: "+PC.inspect(...t)),Ay=(t,e,r)=>{if(r.strictRanges===!0)throw Ty([t,e]);return[]},FC=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},kC=(t,e,r=1,s={})=>{let i=Number(t),n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(s.strictRanges===!0)throw Ty([t,e]);return[]}i===0&&(i=0),n===0&&(n=0);let o=i>n,a=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let l=Ll(a)||Ll(c)||Ll(u),f=l?Math.max(a.length,c.length,u.length):0,d=l===!1&&xC(t,e,s)===!1,E=s.transform||DC(d);if(s.toRegex&&r===1)return Ry(Sy(t,f),Sy(e,f),!0,s);let g={negatives:[],positives:[]},y=M=>g[M<0?"negatives":"positives"].push(Math.abs(M)),A=[],b=0;for(;o?i>=n:i<=n;)s.toRegex===!0&&r>1?y(i):A.push(LC(E(i,b),f,d)),i=o?i-r:i+r,b++;return s.toRegex===!0?r>1?MC(g,s):vy(A,null,{wrap:!1,...s}):A},UC=(t,e,r=1,s={})=>{if(!cn(t)&&t.length>1||!cn(e)&&e.length>1)return Ay(t,e,s);let i=s.transform||(d=>String.fromCharCode(d)),n=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=n>o,c=Math.min(n,o),u=Math.max(n,o);if(s.toRegex&&r===1)return Ry(c,u,!1,s);let l=[],f=0;for(;a?n>=o:n<=o;)l.push(i(n,f)),n=a?n-r:n+r,f++;return s.toRegex===!0?vy(l,null,{wrap:!1,options:s}):l},Ra=(t,e,r,s={})=>{if(e==null&&xl(t))return[t];if(!xl(t)||!xl(e))return Ay(t,e,s);if(typeof r=="function")return Ra(t,e,1,{transform:r});if(yy(r))return Ra(t,e,0,r);let i={...s};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,cn(r)?cn(t)&&cn(e)?kC(t,e,r,i):UC(t,e,Math.max(Math.abs(r),1),i):r!=null&&!yy(r)?FC(r,i):Ra(t,e,1,r)};by.exports=Ra});var wy=_((Xj,Iy)=>{"use strict";h();var BC=Ml(),Ny=Sa(),jC=(t,e={})=>{let r=(s,i={})=>{let n=Ny.isInvalidBrace(i),o=s.invalid===!0&&e.escapeInvalid===!0,a=n===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(s.isOpen===!0||s.isClose===!0)return c+s.value;if(s.type==="open")return a?c+s.value:"(";if(s.type==="close")return a?c+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":a?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let l=Ny.reduce(s.nodes),f=BC(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(s.nodes)for(let l of s.nodes)u+=r(l,s);return u};return r(t)};Iy.exports=jC});var Dy=_((Qj,Py)=>{"use strict";h();var GC=Ml(),Cy=Oa(),_i=Sa(),Rs=(t="",e="",r=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?_i.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let n of i)s.push(Rs(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),s.push(Array.isArray(n)?Rs(i,n,r):i+n);return _i.flatten(s)},qC=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,s=(i,n={})=>{i.queue=[];let o=n,a=n.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Rs(a.pop(),Cy(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Rs(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=_i.reduce(i.nodes);if(_i.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=GC(...f,e);d.length===0&&(d=Cy(i,e)),a.push(Rs(a.pop(),d)),i.nodes=[];return}let c=_i.encloseBrace(i),u=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,u=l.queue;for(let f=0;f<i.nodes.length;f++){let d=i.nodes[f];if(d.type==="comma"&&i.type==="brace"){f===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(Rs(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(Rs(u.pop(),d.value));continue}d.nodes&&s(d,i)}return u};return _i.flatten(s(t))};Py.exports=qC});var Ly=_((eG,xy)=>{"use strict";h();xy.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
8
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var By=_((rG,Uy)=>{"use strict";h();var HC=Oa(),{MAX_LENGTH:My,CHAR_BACKSLASH:Fl,CHAR_BACKTICK:VC,CHAR_COMMA:WC,CHAR_DOT:$C,CHAR_LEFT_PARENTHESES:YC,CHAR_RIGHT_PARENTHESES:KC,CHAR_LEFT_CURLY_BRACE:zC,CHAR_RIGHT_CURLY_BRACE:XC,CHAR_LEFT_SQUARE_BRACKET:Fy,CHAR_RIGHT_SQUARE_BRACKET:ky,CHAR_DOUBLE_QUOTE:ZC,CHAR_SINGLE_QUOTE:QC,CHAR_NO_BREAK_SPACE:JC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:eP}=Ly(),tP=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},s=typeof r.maxLength=="number"?Math.min(My,r.maxLength):My;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let i={type:"root",input:t,nodes:[]},n=[i],o=i,a=i,c=0,u=t.length,l=0,f=0,d,E={},g=()=>t[l++],y=A=>{if(A.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&A.type==="text"){a.value+=A.value;return}return o.nodes.push(A),A.parent=o,A.prev=a,a=A,A};for(y({type:"bos"});l<u;)if(o=n[n.length-1],d=g(),!(d===eP||d===JC)){if(d===Fl){y({type:"text",value:(e.keepEscaping?d:"")+g()});continue}if(d===ky){y({type:"text",value:"\\"+d});continue}if(d===Fy){c++;let A=!0,b;for(;l<u&&(b=g());){if(d+=b,b===Fy){c++;continue}if(b===Fl){d+=g();continue}if(b===ky&&(c--,c===0))break}y({type:"text",value:d});continue}if(d===YC){o=y({type:"paren",nodes:[]}),n.push(o),y({type:"text",value:d});continue}if(d===KC){if(o.type!=="paren"){y({type:"text",value:d});continue}o=n.pop(),y({type:"text",value:d}),o=n[n.length-1];continue}if(d===ZC||d===QC||d===VC){let A=d,b;for(e.keepQuotes!==!0&&(d="");l<u&&(b=g());){if(b===Fl){d+=b+g();continue}if(b===A){e.keepQuotes===!0&&(d+=b);break}d+=b}y({type:"text",value:d});continue}if(d===zC){f++;let b={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=y(b),n.push(o),y({type:"open",value:d});continue}if(d===XC){if(o.type!=="brace"){y({type:"text",value:d});continue}let A="close";o=n.pop(),o.close=!0,y({type:A,value:d}),f--,o=n[n.length-1];continue}if(d===WC&&f>0){if(o.ranges>0){o.ranges=0;let A=o.nodes.shift();o.nodes=[A,{type:"text",value:HC(o)}]}y({type:"comma",value:d}),o.commas++;continue}if(d===$C&&f>0&&o.commas===0){let A=o.nodes;if(f===0||A.length===0){y({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){A.pop();let b=A[A.length-1];b.value+=a.value+d,a=b,o.ranges--;continue}y({type:"dot",value:d});continue}y({type:"text",value:d})}do if(o=n.pop(),o.type!=="root"){o.nodes.forEach(M=>{M.nodes||(M.type==="open"&&(M.isOpen=!0),M.type==="close"&&(M.isClose=!0),M.nodes||(M.type="text"),M.invalid=!0)});let A=n[n.length-1],b=A.nodes.indexOf(o);A.nodes.splice(b,1,...o.nodes)}while(n.length>0);return y({type:"eos"}),i};Uy.exports=tP});var kl=_((iG,Gy)=>{"use strict";h();var jy=Oa(),rP=wy(),sP=Dy(),iP=By(),et=(t,e={})=>{let r=[];if(Array.isArray(t))for(let s of t){let i=et.create(s,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(et.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};et.parse=(t,e={})=>iP(t,e);et.stringify=(t,e={})=>jy(typeof t=="string"?et.parse(t,e):t,e);et.compile=(t,e={})=>(typeof t=="string"&&(t=et.parse(t,e)),rP(t,e));et.expand=(t,e={})=>{typeof t=="string"&&(t=et.parse(t,e));let r=sP(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};et.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?et.compile(t,e):et.expand(t,e);Gy.exports=et});var un=_((oG,$y)=>{"use strict";h();var nP=T("path"),xt="\\\\/",qy=`[^${xt}]`,sr="\\.",oP="\\+",aP="\\?",va="\\/",cP="(?=.)",Hy="[^/]",Ul=`(?:${va}|$)`,Vy=`(?:^|${va})`,Bl=`${sr}{1,2}${Ul}`,uP=`(?!${sr})`,lP=`(?!${Vy}${Bl})`,hP=`(?!${sr}{0,1}${Ul})`,fP=`(?!${Bl})`,dP=`[^.${va}]`,pP=`${Hy}*?`,Wy={DOT_LITERAL:sr,PLUS_LITERAL:oP,QMARK_LITERAL:aP,SLASH_LITERAL:va,ONE_CHAR:cP,QMARK:Hy,END_ANCHOR:Ul,DOTS_SLASH:Bl,NO_DOT:uP,NO_DOTS:lP,NO_DOT_SLASH:hP,NO_DOTS_SLASH:fP,QMARK_NO_DOT:dP,STAR:pP,START_ANCHOR:Vy},mP={...Wy,SLASH_LITERAL:`[${xt}]`,QMARK:qy,STAR:`${qy}*?`,DOTS_SLASH:`${sr}{1,2}(?:[${xt}]|$)`,NO_DOT:`(?!${sr})`,NO_DOTS:`(?!(?:^|[${xt}])${sr}{1,2}(?:[${xt}]|$))`,NO_DOT_SLASH:`(?!${sr}{0,1}(?:[${xt}]|$))`,NO_DOTS_SLASH:`(?!${sr}{1,2}(?:[${xt}]|$))`,QMARK_NO_DOT:`[^.${xt}]`,START_ANCHOR:`(?:^|[${xt}])`,END_ANCHOR:`(?:[${xt}]|$)`},_P={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};$y.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:_P,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:nP.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?mP:Wy}}});var ln=_(Ye=>{"use strict";h();var EP=T("path"),gP=process.platform==="win32",{REGEX_BACKSLASH:yP,REGEX_REMOVE_BACKSLASH:SP,REGEX_SPECIAL_CHARS:OP,REGEX_SPECIAL_CHARS_GLOBAL:RP}=un();Ye.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ye.hasRegexChars=t=>OP.test(t);Ye.isRegexChar=t=>t.length===1&&Ye.hasRegexChars(t);Ye.escapeRegex=t=>t.replace(RP,"\\$1");Ye.toPosixSlashes=t=>t.replace(yP,"/");Ye.removeBackslashes=t=>t.replace(SP,e=>e==="\\"?"":e);Ye.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ye.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:gP===!0||EP.sep==="\\";Ye.escapeLast=(t,e,r)=>{let s=t.lastIndexOf(e,r);return s===-1?t:t[s-1]==="\\"?Ye.escapeLast(t,e,s-1):`${t.slice(0,s)}\\${t.slice(s)}`};Ye.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ye.wrapOutput=(t,e={},r={})=>{let s=r.contains?"":"^",i=r.contains?"":"$",n=`${s}(?:${t})${i}`;return e.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var eS=_((lG,Jy)=>{"use strict";h();var Yy=ln(),{CHAR_ASTERISK:jl,CHAR_AT:vP,CHAR_BACKWARD_SLASH:hn,CHAR_COMMA:TP,CHAR_DOT:Gl,CHAR_EXCLAMATION_MARK:ql,CHAR_FORWARD_SLASH:Qy,CHAR_LEFT_CURLY_BRACE:Hl,CHAR_LEFT_PARENTHESES:Vl,CHAR_LEFT_SQUARE_BRACKET:AP,CHAR_PLUS:bP,CHAR_QUESTION_MARK:Ky,CHAR_RIGHT_CURLY_BRACE:NP,CHAR_RIGHT_PARENTHESES:zy,CHAR_RIGHT_SQUARE_BRACKET:IP}=un(),Xy=t=>t===Qy||t===hn,Zy=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},wP=(t,e)=>{let r=e||{},s=t.length-1,i=r.parts===!0||r.scanToEnd===!0,n=[],o=[],a=[],c=t,u=-1,l=0,f=0,d=!1,E=!1,g=!1,y=!1,A=!1,b=!1,M=!1,$=!1,de=!1,k=!1,j=0,U,D,Z={value:"",depth:0,isGlob:!1},Ce=()=>u>=s,R=()=>c.charCodeAt(u+1),le=()=>(U=D,c.charCodeAt(++u));for(;u<s;){D=le();let Be;if(D===hn){M=Z.backslashes=!0,D=le(),D===Hl&&(b=!0);continue}if(b===!0||D===Hl){for(j++;Ce()!==!0&&(D=le());){if(D===hn){M=Z.backslashes=!0,le();continue}if(D===Hl){j++;continue}if(b!==!0&&D===Gl&&(D=le())===Gl){if(d=Z.isBrace=!0,g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(b!==!0&&D===TP){if(d=Z.isBrace=!0,g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===NP&&(j--,j===0)){b=!1,d=Z.isBrace=!0,k=!0;break}}if(i===!0)continue;break}if(D===Qy){if(n.push(u),o.push(Z),Z={value:"",depth:0,isGlob:!1},k===!0)continue;if(U===Gl&&u===l+1){l+=2;continue}f=u+1;continue}if(r.noext!==!0&&(D===bP||D===vP||D===jl||D===Ky||D===ql)===!0&&R()===Vl){if(g=Z.isGlob=!0,y=Z.isExtglob=!0,k=!0,D===ql&&u===l&&(de=!0),i===!0){for(;Ce()!==!0&&(D=le());){if(D===hn){M=Z.backslashes=!0,D=le();continue}if(D===zy){g=Z.isGlob=!0,k=!0;break}}continue}break}if(D===jl){if(U===jl&&(A=Z.isGlobstar=!0),g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===Ky){if(g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===AP){for(;Ce()!==!0&&(Be=le());){if(Be===hn){M=Z.backslashes=!0,le();continue}if(Be===IP){E=Z.isBracket=!0,g=Z.isGlob=!0,k=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===ql&&u===l){$=Z.negated=!0,l++;continue}if(r.noparen!==!0&&D===Vl){if(g=Z.isGlob=!0,i===!0){for(;Ce()!==!0&&(D=le());){if(D===Vl){M=Z.backslashes=!0,D=le();continue}if(D===zy){k=!0;break}}continue}break}if(g===!0){if(k=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let ce=c,ar="",S="";l>0&&(ar=c.slice(0,l),c=c.slice(l),f-=l),ce&&g===!0&&f>0?(ce=c.slice(0,f),S=c.slice(f)):g===!0?(ce="",S=c):ce=c,ce&&ce!==""&&ce!=="/"&&ce!==c&&Xy(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),r.unescape===!0&&(S&&(S=Yy.removeBackslashes(S)),ce&&M===!0&&(ce=Yy.removeBackslashes(ce)));let O={prefix:ar,input:t,start:l,base:ce,glob:S,isBrace:d,isBracket:E,isGlob:g,isExtglob:y,isGlobstar:A,negated:$,negatedExtglob:de};if(r.tokens===!0&&(O.maxDepth=0,Xy(D)||o.push(Z),O.tokens=o),r.parts===!0||r.tokens===!0){let Be;for(let Q=0;Q<n.length;Q++){let vt=Be?Be+1:l,Tt=n[Q],Ke=t.slice(vt,Tt);r.tokens&&(Q===0&&l!==0?(o[Q].isPrefix=!0,o[Q].value=ar):o[Q].value=Ke,Zy(o[Q]),O.maxDepth+=o[Q].depth),(Q!==0||Ke!=="")&&a.push(Ke),Be=Tt}if(Be&&Be+1<t.length){let Q=t.slice(Be+1);a.push(Q),r.tokens&&(o[o.length-1].value=Q,Zy(o[o.length-1]),O.maxDepth+=o[o.length-1].depth)}O.slashes=n,O.parts=a}return O};Jy.exports=wP});var sS=_((fG,rS)=>{"use strict";h();var Ta=un(),tt=ln(),{MAX_LENGTH:Aa,POSIX_REGEX_SOURCE:CP,REGEX_NON_SPECIAL_CHARS:PP,REGEX_SPECIAL_CHARS_BACKREF:DP,REPLACEMENTS:tS}=Ta,xP=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>tt.escapeRegex(i)).join("..")}return r},Ei=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Wl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=tS[t]||t;let r={...e},s=typeof r.maxLength=="number"?Math.min(Aa,r.maxLength):Aa,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);let n={type:"bos",value:"",output:r.prepend||""},o=[n],a=r.capture?"":"?:",c=tt.isWindows(e),u=Ta.globChars(c),l=Ta.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:d,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:A,NO_DOT_SLASH:b,NO_DOTS_SLASH:M,QMARK:$,QMARK_NO_DOT:de,STAR:k,START_ANCHOR:j}=u,U=C=>`(${a}(?:(?!${j}${C.dot?y:f}).)*?)`,D=r.dot?"":A,Z=r.dot?$:de,Ce=r.bash===!0?U(r):k;r.capture&&(Ce=`(${Ce})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=tt.removePrefix(t,R),i=t.length;let le=[],ce=[],ar=[],S=n,O,Be=()=>R.index===i-1,Q=R.peek=(C=1)=>t[R.index+C],vt=R.advance=()=>t[++R.index]||"",Tt=()=>t.slice(R.index+1),Ke=(C="",ue=0)=>{R.consumed+=C,R.index+=ue},Cn=C=>{R.output+=C.output!=null?C.output:C.value,Ke(C.value)},vT=()=>{let C=1;for(;Q()==="!"&&(Q(2)!=="("||Q(3)==="?");)vt(),R.start++,C++;return C%2===0?!1:(R.negated=!0,R.start++,!0)},Pn=C=>{R[C]++,ar.push(C)},Wr=C=>{R[C]--,ar.pop()},z=C=>{if(S.type==="globstar"){let ue=R.braces>0&&(C.type==="comma"||C.type==="brace"),I=C.extglob===!0||le.length&&(C.type==="pipe"||C.type==="paren");C.type!=="slash"&&C.type!=="paren"&&!ue&&!I&&(R.output=R.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=Ce,R.output+=S.output)}if(le.length&&C.type!=="paren"&&(le[le.length-1].inner+=C.value),(C.value||C.output)&&Cn(C),S&&S.type==="text"&&C.type==="text"){S.value+=C.value,S.output=(S.output||"")+C.value;return}C.prev=S,o.push(C),S=C},Dn=(C,ue)=>{let I={...l[ue],conditions:1,inner:""};I.prev=S,I.parens=R.parens,I.output=R.output;let Y=(r.capture?"(":"")+I.open;Pn("parens"),z({type:C,value:ue,output:R.output?"":g}),z({type:"paren",extglob:!0,value:vt(),output:Y}),le.push(I)},TT=C=>{let ue=C.close+(r.capture?")":""),I;if(C.type==="negate"){let Y=Ce;if(C.inner&&C.inner.length>1&&C.inner.includes("/")&&(Y=U(r)),(Y!==Ce||Be()||/^\)+$/.test(Tt()))&&(ue=C.close=`)$))${Y}`),C.inner.includes("*")&&(I=Tt())&&/^\.[^\\/.]+$/.test(I)){let pe=Wl(I,{...e,fastpaths:!1}).output;ue=C.close=`)${pe})${Y})`}C.prev.type==="bos"&&(R.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:O,output:ue}),Wr("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let C=!1,ue=t.replace(DP,(I,Y,pe,je,Oe,fc)=>je==="\\"?(C=!0,I):je==="?"?Y?Y+je+(Oe?$.repeat(Oe.length):""):fc===0?Z+(Oe?$.repeat(Oe.length):""):$.repeat(pe.length):je==="."?f.repeat(pe.length):je==="*"?Y?Y+je+(Oe?Ce:""):Ce:Y?I:`\\${I}`);return C===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),ue===t&&r.contains===!0?(R.output=t,R):(R.output=tt.wrapOutput(ue,R,e),R)}for(;!Be();){if(O=vt(),O==="\0")continue;if(O==="\\"){let I=Q();if(I==="/"&&r.bash!==!0||I==="."||I===";")continue;if(!I){O+="\\",z({type:"text",value:O});continue}let Y=/^\\+/.exec(Tt()),pe=0;if(Y&&Y[0].length>2&&(pe=Y[0].length,R.index+=pe,pe%2!==0&&(O+="\\")),r.unescape===!0?O=vt():O+=vt(),R.brackets===0){z({type:"text",value:O});continue}}if(R.brackets>0&&(O!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&O===":"){let I=S.value.slice(1);if(I.includes("[")&&(S.posix=!0,I.includes(":"))){let Y=S.value.lastIndexOf("["),pe=S.value.slice(0,Y),je=S.value.slice(Y+2),Oe=CP[je];if(Oe){S.value=pe+Oe,R.backtrack=!0,vt(),!n.output&&o.indexOf(S)===1&&(n.output=g);continue}}}(O==="["&&Q()!==":"||O==="-"&&Q()==="]")&&(O=`\\${O}`),O==="]"&&(S.value==="["||S.value==="[^")&&(O=`\\${O}`),r.posix===!0&&O==="!"&&S.value==="["&&(O="^"),S.value+=O,Cn({value:O});continue}if(R.quotes===1&&O!=='"'){O=tt.escapeRegex(O),S.value+=O,Cn({value:O});continue}if(O==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:O});continue}if(O==="("){Pn("parens"),z({type:"paren",value:O});continue}if(O===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ei("opening","("));let I=le[le.length-1];if(I&&R.parens===I.parens+1){TT(le.pop());continue}z({type:"paren",value:O,output:R.parens?")":"\\)"}),Wr("parens");continue}if(O==="["){if(r.nobracket===!0||!Tt().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ei("closing","]"));O=`\\${O}`}else Pn("brackets");z({type:"bracket",value:O});continue}if(O==="]"){if(r.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){z({type:"text",value:O,output:`\\${O}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ei("opening","["));z({type:"text",value:O,output:`\\${O}`});continue}Wr("brackets");let I=S.value.slice(1);if(S.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(O=`/${O}`),S.value+=O,Cn({value:O}),r.literalBrackets===!1||tt.hasRegexChars(I))continue;let Y=tt.escapeRegex(S.value);if(R.output=R.output.slice(0,-S.value.length),r.literalBrackets===!0){R.output+=Y,S.value=Y;continue}S.value=`(${a}${Y}|${S.value})`,R.output+=S.value;continue}if(O==="{"&&r.nobrace!==!0){Pn("braces");let I={type:"brace",value:O,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};ce.push(I),z(I);continue}if(O==="}"){let I=ce[ce.length-1];if(r.nobrace===!0||!I){z({type:"text",value:O,output:O});continue}let Y=")";if(I.dots===!0){let pe=o.slice(),je=[];for(let Oe=pe.length-1;Oe>=0&&(o.pop(),pe[Oe].type!=="brace");Oe--)pe[Oe].type!=="dots"&&je.unshift(pe[Oe].value);Y=xP(je,r),R.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let pe=R.output.slice(0,I.outputIndex),je=R.tokens.slice(I.tokensIndex);I.value=I.output="\\{",O=Y="\\}",R.output=pe;for(let Oe of je)R.output+=Oe.output||Oe.value}z({type:"brace",value:O,output:Y}),Wr("braces"),ce.pop();continue}if(O==="|"){le.length>0&&le[le.length-1].conditions++,z({type:"text",value:O});continue}if(O===","){let I=O,Y=ce[ce.length-1];Y&&ar[ar.length-1]==="braces"&&(Y.comma=!0,I="|"),z({type:"comma",value:O,output:I});continue}if(O==="/"){if(S.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),S=n;continue}z({type:"slash",value:O,output:E});continue}if(O==="."){if(R.braces>0&&S.type==="dot"){S.value==="."&&(S.output=f);let I=ce[ce.length-1];S.type="dots",S.output+=O,S.value+=O,I.dots=!0;continue}if(R.braces+R.parens===0&&S.type!=="bos"&&S.type!=="slash"){z({type:"text",value:O,output:f});continue}z({type:"dot",value:O,output:f});continue}if(O==="?"){if(!(S&&S.value==="(")&&r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){Dn("qmark",O);continue}if(S&&S.type==="paren"){let Y=Q(),pe=O;if(Y==="<"&&!tt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(Tt()))&&(pe=`\\${O}`),z({type:"text",value:O,output:pe});continue}if(r.dot!==!0&&(S.type==="slash"||S.type==="bos")){z({type:"qmark",value:O,output:de});continue}z({type:"qmark",value:O,output:$});continue}if(O==="!"){if(r.noextglob!==!0&&Q()==="("&&(Q(2)!=="?"||!/[!=<:]/.test(Q(3)))){Dn("negate",O);continue}if(r.nonegate!==!0&&R.index===0){vT();continue}}if(O==="+"){if(r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){Dn("plus",O);continue}if(S&&S.value==="("||r.regex===!1){z({type:"plus",value:O,output:d});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||R.parens>0){z({type:"plus",value:O});continue}z({type:"plus",value:d});continue}if(O==="@"){if(r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){z({type:"at",extglob:!0,value:O,output:""});continue}z({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);let I=PP.exec(Tt());I&&(O+=I[0],R.index+=I[0].length),z({type:"text",value:O});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=O,S.output=Ce,R.backtrack=!0,R.globstar=!0,Ke(O);continue}let C=Tt();if(r.noextglob!==!0&&/^\([^?]/.test(C)){Dn("star",O);continue}if(S.type==="star"){if(r.noglobstar===!0){Ke(O);continue}let I=S.prev,Y=I.prev,pe=I.type==="slash"||I.type==="bos",je=Y&&(Y.type==="star"||Y.type==="globstar");if(r.bash===!0&&(!pe||C[0]&&C[0]!=="/")){z({type:"star",value:O,output:""});continue}let Oe=R.braces>0&&(I.type==="comma"||I.type==="brace"),fc=le.length&&(I.type==="pipe"||I.type==="paren");if(!pe&&I.type!=="paren"&&!Oe&&!fc){z({type:"star",value:O,output:""});continue}for(;C.slice(0,3)==="/**";){let xn=t[R.index+4];if(xn&&xn!=="/")break;C=C.slice(3),Ke("/**",3)}if(I.type==="bos"&&Be()){S.type="globstar",S.value+=O,S.output=U(r),R.output=S.output,R.globstar=!0,Ke(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!je&&Be()){R.output=R.output.slice(0,-(I.output+S.output).length),I.output=`(?:${I.output}`,S.type="globstar",S.output=U(r)+(r.strictSlashes?")":"|$)"),S.value+=O,R.globstar=!0,R.output+=I.output+S.output,Ke(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&C[0]==="/"){let xn=C[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(I.output+S.output).length),I.output=`(?:${I.output}`,S.type="globstar",S.output=`${U(r)}${E}|${E}${xn})`,S.value+=O,R.output+=I.output+S.output,R.globstar=!0,Ke(O+vt()),z({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&C[0]==="/"){S.type="globstar",S.value+=O,S.output=`(?:^|${E}|${U(r)}${E})`,R.output=S.output,R.globstar=!0,Ke(O+vt()),z({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-S.output.length),S.type="globstar",S.output=U(r),S.value+=O,R.output+=S.output,R.globstar=!0,Ke(O);continue}let ue={type:"star",value:O,output:Ce};if(r.bash===!0){ue.output=".*?",(S.type==="bos"||S.type==="slash")&&(ue.output=D+ue.output),z(ue);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&r.regex===!0){ue.output=O,z(ue);continue}(R.index===R.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(R.output+=b,S.output+=b):r.dot===!0?(R.output+=M,S.output+=M):(R.output+=D,S.output+=D),Q()!=="*"&&(R.output+=g,S.output+=g)),z(ue)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ei("closing","]"));R.output=tt.escapeLast(R.output,"["),Wr("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ei("closing",")"));R.output=tt.escapeLast(R.output,"("),Wr("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ei("closing","}"));R.output=tt.escapeLast(R.output,"{"),Wr("braces")}if(r.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${E}?`}),R.backtrack===!0){R.output="";for(let C of R.tokens)R.output+=C.output!=null?C.output:C.value,C.suffix&&(R.output+=C.suffix)}return R};Wl.fastpaths=(t,e)=>{let r={...e},s=typeof r.maxLength=="number"?Math.min(Aa,r.maxLength):Aa,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);t=tS[t]||t;let n=tt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:d,STAR:E,START_ANCHOR:g}=Ta.globChars(n),y=r.dot?f:l,A=r.dot?d:l,b=r.capture?"":"?:",M={negated:!1,prefix:""},$=r.bash===!0?".*?":E;r.capture&&($=`(${$})`);let de=D=>D.noglobstar===!0?$:`(${b}(?:(?!${g}${D.dot?u:o}).)*?)`,k=D=>{switch(D){case"*":return`${y}${c}${$}`;case".*":return`${o}${c}${$}`;case"*.*":return`${y}${$}${o}${c}${$}`;case"*/*":return`${y}${$}${a}${c}${A}${$}`;case"**":return y+de(r);case"**/*":return`(?:${y}${de(r)}${a})?${A}${c}${$}`;case"**/*.*":return`(?:${y}${de(r)}${a})?${A}${$}${o}${c}${$}`;case"**/.*":return`(?:${y}${de(r)}${a})?${o}${c}${$}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(D);if(!Z)return;let Ce=k(Z[1]);return Ce?Ce+o+Z[2]:void 0}}},j=tt.removePrefix(t,M),U=k(j);return U&&r.strictSlashes!==!0&&(U+=`${a}?`),U};rS.exports=Wl});var nS=_((pG,iS)=>{"use strict";h();var LP=T("path"),MP=eS(),$l=sS(),Yl=ln(),FP=un(),kP=t=>t&&typeof t=="object"&&!Array.isArray(t),Ee=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(d=>Ee(d,e,r));return d=>{for(let E of l){let g=E(d);if(g)return g}return!1}}let s=kP(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},n=Yl.isWindows(e),o=s?Ee.compileRe(t,e):Ee.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};c=Ee(i.ignore,l,r)}let u=(l,f=!1)=>{let{isMatch:d,match:E,output:g}=Ee.test(l,o,e,{glob:t,posix:n}),y={glob:t,state:a,regex:o,posix:n,input:l,output:g,match:E,isMatch:d};return typeof i.onResult=="function"&&i.onResult(y),d===!1?(y.isMatch=!1,f?y:!1):c(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,f?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),f?y:!0)};return r&&(u.state=a),u};Ee.test=(t,e,r,{glob:s,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let n=r||{},o=n.format||(i?Yl.toPosixSlashes:null),a=t===s,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===s),(a===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?a=Ee.matchBase(t,e,r,i):a=e.exec(c)),{isMatch:!!a,match:a,output:c}};Ee.matchBase=(t,e,r,s=Yl.isWindows(r))=>(e instanceof RegExp?e:Ee.makeRe(e,r)).test(LP.basename(t));Ee.isMatch=(t,e,r)=>Ee(e,r)(t);Ee.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ee.parse(r,e)):$l(t,{...e,fastpaths:!1});Ee.scan=(t,e)=>MP(t,e);Ee.compileRe=(t,e,r=!1,s=!1)=>{if(r===!0)return t.output;let i=e||{},n=i.contains?"":"^",o=i.contains?"":"$",a=`${n}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=Ee.toRegex(a,e);return s===!0&&(c.state=t),c};Ee.makeRe=(t,e={},r=!1,s=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=$l.fastpaths(t,e)),i.output||(i=$l(t,e)),Ee.compileRe(i,e,r,s)};Ee.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Ee.constants=FP;iS.exports=Ee});var ba=_((_G,oS)=>{"use strict";h();oS.exports=nS()});var hS=_((gG,lS)=>{"use strict";h();var cS=T("util"),uS=kl(),Lt=ba(),Kl=ln(),aS=t=>t===""||t==="./",fe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let s=new Set,i=new Set,n=new Set,o=0,a=l=>{n.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Lt(String(e[l]),{...r,onResult:a},!0),d=f.state.negated||f.state.negatedExtglob;d&&o++;for(let E of t){let g=f(E,!0);(d?!g.isMatch:g.isMatch)&&(d?s.add(g.output):(s.delete(g.output),i.add(g.output)))}}let u=(o===e.length?[...n]:[...i]).filter(l=>!s.has(l));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return u};fe.match=fe;fe.matcher=(t,e)=>Lt(t,e);fe.isMatch=(t,e,r)=>Lt(e,r)(t);fe.any=fe.isMatch;fe.not=(t,e,r={})=>{e=[].concat(e).map(String);let s=new Set,i=[],n=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(fe(t,e,{...r,onResult:n}));for(let a of i)o.has(a)||s.add(a);return[...s]};fe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${cS.inspect(t)}"`);if(Array.isArray(e))return e.some(s=>fe.contains(t,s,r));if(typeof e=="string"){if(aS(t)||aS(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return fe.isMatch(t,e,{...r,contains:!0})};fe.matchKeys=(t,e,r)=>{if(!Kl.isObject(t))throw new TypeError("Expected the first argument to be an object");let s=fe(Object.keys(t),e,r),i={};for(let n of s)i[n]=t[n];return i};fe.some=(t,e,r)=>{let s=[].concat(t);for(let i of[].concat(e)){let n=Lt(String(i),r);if(s.some(o=>n(o)))return!0}return!1};fe.every=(t,e,r)=>{let s=[].concat(t);for(let i of[].concat(e)){let n=Lt(String(i),r);if(!s.every(o=>n(o)))return!1}return!0};fe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${cS.inspect(t)}"`);return[].concat(e).every(s=>Lt(s,r)(t))};fe.capture=(t,e,r)=>{let s=Kl.isWindows(r),n=Lt.makeRe(String(t),{...r,capture:!0}).exec(s?Kl.toPosixSlashes(e):e);if(n)return n.slice(1).map(o=>o===void 0?"":o)};fe.makeRe=(...t)=>Lt.makeRe(...t);fe.scan=(...t)=>Lt.scan(...t);fe.parse=(t,e)=>{let r=[];for(let s of[].concat(t||[]))for(let i of uS(String(s),e))r.push(Lt.parse(i,e));return r};fe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:uS(t,e)};fe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return fe.braces(t,{...e,expand:!0})};lS.exports=fe});var yS=_(q=>{"use strict";h();Object.defineProperty(q,"__esModule",{value:!0});q.removeDuplicateSlashes=q.matchAny=q.convertPatternsToRe=q.makeRe=q.getPatternParts=q.expandBraceExpansion=q.expandPatternsWithBraceExpansion=q.isAffectDepthOfReadingPattern=q.endsWithSlashGlobStar=q.hasGlobStar=q.getBaseDirectory=q.isPatternRelatedToParentDirectory=q.getPatternsOutsideCurrentDirectory=q.getPatternsInsideCurrentDirectory=q.getPositivePatterns=q.getNegativePatterns=q.isPositivePattern=q.isNegativePattern=q.convertToNegativePattern=q.convertToPositivePattern=q.isDynamicPattern=q.isStaticPattern=void 0;var UP=T("path"),BP=Pl(),zl=hS(),fS="**",jP="\\",GP=/[*?]|^!/,qP=/\[[^[]*]/,HP=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,VP=/[!*+?@]\([^(]*\)/,WP=/,|\.\./,$P=/(?!^)\/{2,}/g;function dS(t,e={}){return!pS(t,e)}q.isStaticPattern=dS;function pS(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(jP)||GP.test(t)||qP.test(t)||HP.test(t)||e.extglob!==!1&&VP.test(t)||e.braceExpansion!==!1&&YP(t))}q.isDynamicPattern=pS;function YP(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let s=t.slice(e,r);return WP.test(s)}function KP(t){return Na(t)?t.slice(1):t}q.convertToPositivePattern=KP;function zP(t){return"!"+t}q.convertToNegativePattern=zP;function Na(t){return t.startsWith("!")&&t[1]!=="("}q.isNegativePattern=Na;function mS(t){return!Na(t)}q.isPositivePattern=mS;function XP(t){return t.filter(Na)}q.getNegativePatterns=XP;function ZP(t){return t.filter(mS)}q.getPositivePatterns=ZP;function QP(t){return t.filter(e=>!Xl(e))}q.getPatternsInsideCurrentDirectory=QP;function JP(t){return t.filter(Xl)}q.getPatternsOutsideCurrentDirectory=JP;function Xl(t){return t.startsWith("..")||t.startsWith("./..")}q.isPatternRelatedToParentDirectory=Xl;function eD(t){return BP(t,{flipBackslashes:!1})}q.getBaseDirectory=eD;function tD(t){return t.includes(fS)}q.hasGlobStar=tD;function _S(t){return t.endsWith("/"+fS)}q.endsWithSlashGlobStar=_S;function rD(t){let e=UP.basename(t);return _S(t)||dS(e)}q.isAffectDepthOfReadingPattern=rD;function sD(t){return t.reduce((e,r)=>e.concat(ES(r)),[])}q.expandPatternsWithBraceExpansion=sD;function ES(t){let e=zl.braces(t,{expand:!0,nodupes:!0});return e.sort((r,s)=>r.length-s.length),e.filter(r=>r!=="")}q.expandBraceExpansion=ES;function iD(t,e){let{parts:r}=zl.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}q.getPatternParts=iD;function gS(t,e){return zl.makeRe(t,e)}q.makeRe=gS;function nD(t,e){return t.map(r=>gS(r,e))}q.convertPatternsToRe=nD;function oD(t,e){return e.some(r=>r.test(t))}q.matchAny=oD;function aD(t){return t.replace($P,"/")}q.removeDuplicateSlashes=aD});var OS=_(Ia=>{"use strict";h();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.merge=void 0;var cD=Al();function uD(t){let e=cD(t);return t.forEach(r=>{r.once("error",s=>e.emit("error",s))}),e.once("close",()=>SS(t)),e.once("end",()=>SS(t)),e}Ia.merge=uD;function SS(t){t.forEach(e=>e.emit("close"))}});var RS=_(gi=>{"use strict";h();Object.defineProperty(gi,"__esModule",{value:!0});gi.isEmpty=gi.isString=void 0;function lD(t){return typeof t=="string"}gi.isString=lD;function hD(t){return t===""}gi.isEmpty=hD});var ir=_(ke=>{"use strict";h();Object.defineProperty(ke,"__esModule",{value:!0});ke.string=ke.stream=ke.pattern=ke.path=ke.fs=ke.errno=ke.array=void 0;var fD=Kg();ke.array=fD;var dD=zg();ke.errno=dD;var pD=Xg();ke.fs=pD;var mD=ey();ke.path=mD;var _D=yS();ke.pattern=_D;var ED=OS();ke.stream=ED;var gD=RS();ke.string=gD});var bS=_(Ue=>{"use strict";h();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.convertPatternGroupToTask=Ue.convertPatternGroupsToTasks=Ue.groupPatternsByBaseDirectory=Ue.getNegativePatternsAsPositive=Ue.getPositivePatterns=Ue.convertPatternsToTasks=Ue.generate=void 0;var St=ir();function yD(t,e){let r=vS(t,e),s=vS(e.ignore,e),i=TS(r),n=AS(r,s),o=i.filter(l=>St.pattern.isStaticPattern(l,e)),a=i.filter(l=>St.pattern.isDynamicPattern(l,e)),c=Zl(o,n,!1),u=Zl(a,n,!0);return c.concat(u)}Ue.generate=yD;function vS(t,e){let r=t;return e.braceExpansion&&(r=St.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(s=>s.includes("/")?s:`**/${s}`)),r.map(s=>St.pattern.removeDuplicateSlashes(s))}function Zl(t,e,r){let s=[],i=St.pattern.getPatternsOutsideCurrentDirectory(t),n=St.pattern.getPatternsInsideCurrentDirectory(t),o=Ql(i),a=Ql(n);return s.push(...Jl(o,e,r)),"."in a?s.push(eh(".",n,e,r)):s.push(...Jl(a,e,r)),s}Ue.convertPatternsToTasks=Zl;function TS(t){return St.pattern.getPositivePatterns(t)}Ue.getPositivePatterns=TS;function AS(t,e){return St.pattern.getNegativePatterns(t).concat(e).map(St.pattern.convertToPositivePattern)}Ue.getNegativePatternsAsPositive=AS;function Ql(t){let e={};return t.reduce((r,s)=>{let i=St.pattern.getBaseDirectory(s);return i in r?r[i].push(s):r[i]=[s],r},e)}Ue.groupPatternsByBaseDirectory=Ql;function Jl(t,e,r){return Object.keys(t).map(s=>eh(s,t[s],e,r))}Ue.convertPatternGroupsToTasks=Jl;function eh(t,e,r,s){return{dynamic:s,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(St.pattern.convertToNegativePattern))}}Ue.convertPatternGroupToTask=eh});var IS=_(wa=>{"use strict";h();Object.defineProperty(wa,"__esModule",{value:!0});wa.read=void 0;function SD(t,e,r){e.fs.lstat(t,(s,i)=>{if(s!==null){NS(r,s);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){th(r,i);return}e.fs.stat(t,(n,o)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){NS(r,n);return}th(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),th(r,o)})})}wa.read=SD;function NS(t,e){t(e)}function th(t,e){t(null,e)}});var wS=_(Ca=>{"use strict";h();Object.defineProperty(Ca,"__esModule",{value:!0});Ca.read=void 0;function OD(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let s=e.fs.statSync(t);return e.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw s}}Ca.read=OD});var CS=_(Mr=>{"use strict";h();Object.defineProperty(Mr,"__esModule",{value:!0});Mr.createFileSystemAdapter=Mr.FILE_SYSTEM_ADAPTER=void 0;var Pa=T("fs");Mr.FILE_SYSTEM_ADAPTER={lstat:Pa.lstat,stat:Pa.stat,lstatSync:Pa.lstatSync,statSync:Pa.statSync};function RD(t){return t===void 0?Mr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mr.FILE_SYSTEM_ADAPTER),t)}Mr.createFileSystemAdapter=RD});var PS=_(sh=>{"use strict";h();Object.defineProperty(sh,"__esModule",{value:!0});var vD=CS(),rh=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=vD.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};sh.default=rh});var vs=_(Fr=>{"use strict";h();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.statSync=Fr.stat=Fr.Settings=void 0;var DS=IS(),TD=wS(),ih=PS();Fr.Settings=ih.default;function AD(t,e,r){if(typeof e=="function"){DS.read(t,nh(),e);return}DS.read(t,nh(e),r)}Fr.stat=AD;function bD(t,e){let r=nh(e);return TD.read(t,r)}Fr.statSync=bD;function nh(t={}){return t instanceof ih.default?t:new ih.default(t)}});var MS=_((jG,LS)=>{"use strict";h();var xS;LS.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(xS||(xS=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var kS=_((qG,FS)=>{"use strict";h();FS.exports=ID;var ND=MS();function ID(t,e){let r,s,i,n=!0;Array.isArray(t)?(r=[],s=t.length):(i=Object.keys(t),r={},s=i.length);function o(c){function u(){e&&e(c,r),e=null}n?ND(u):u()}function a(c,u,l){r[c]=l,(--s===0||u)&&o(u)}s?i?i.forEach(function(c){t[c](function(u,l){a(c,u,l)})}):t.forEach(function(c,u){c(function(l,f){a(u,l,f)})}):o(null),n=!1}});var oh=_(xa=>{"use strict";h();Object.defineProperty(xa,"__esModule",{value:!0});xa.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Da=process.versions.node.split(".");if(Da[0]===void 0||Da[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var US=Number.parseInt(Da[0],10),wD=Number.parseInt(Da[1],10),BS=10,CD=10,PD=US>BS,DD=US===BS&&wD>=CD;xa.IS_SUPPORT_READDIR_WITH_FILE_TYPES=PD||DD});var jS=_(La=>{"use strict";h();Object.defineProperty(La,"__esModule",{value:!0});La.createDirentFromStats=void 0;var ah=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xD(t,e){return new ah(t,e)}La.createDirentFromStats=xD});var ch=_(Ma=>{"use strict";h();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.fs=void 0;var LD=jS();Ma.fs=LD});var uh=_(Fa=>{"use strict";h();Object.defineProperty(Fa,"__esModule",{value:!0});Fa.joinPathSegments=void 0;function MD(t,e,r){return t.endsWith(r)?t+e:t+r+e}Fa.joinPathSegments=MD});var $S=_(kr=>{"use strict";h();Object.defineProperty(kr,"__esModule",{value:!0});kr.readdir=kr.readdirWithFileTypes=kr.read=void 0;var FD=vs(),GS=kS(),kD=oh(),qS=ch(),HS=uh();function UD(t,e,r){if(!e.stats&&kD.IS_SUPPORT_READDIR_WITH_FILE_TYPES){VS(t,e,r);return}WS(t,e,r)}kr.read=UD;function VS(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(s,i)=>{if(s!==null){ka(r,s);return}let n=i.map(a=>({dirent:a,name:a.name,path:HS.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){lh(r,n);return}let o=n.map(a=>BD(a,e));GS(o,(a,c)=>{if(a!==null){ka(r,a);return}lh(r,c)})})}kr.readdirWithFileTypes=VS;function BD(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(s,i)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){r(s);return}r(null,t);return}t.dirent=qS.fs.createDirentFromStats(t.name,i),r(null,t)})}}function WS(t,e,r){e.fs.readdir(t,(s,i)=>{if(s!==null){ka(r,s);return}let n=i.map(o=>{let a=HS.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{FD.stat(a,e.fsStatSettings,(u,l)=>{if(u!==null){c(u);return}let f={name:o,path:a,dirent:qS.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),c(null,f)})}});GS(n,(o,a)=>{if(o!==null){ka(r,o);return}lh(r,a)})})}kr.readdir=WS;function ka(t,e){t(e)}function lh(t,e){t(null,e)}});var ZS=_(Ur=>{"use strict";h();Object.defineProperty(Ur,"__esModule",{value:!0});Ur.readdir=Ur.readdirWithFileTypes=Ur.read=void 0;var jD=vs(),GD=oh(),YS=ch(),KS=uh();function qD(t,e){return!e.stats&&GD.IS_SUPPORT_READDIR_WITH_FILE_TYPES?zS(t,e):XS(t,e)}Ur.read=qD;function zS(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(s=>{let i={dirent:s,name:s.name,path:KS.joinPathSegments(t,s.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let n=e.fs.statSync(i.path);i.dirent=YS.fs.createDirentFromStats(i.name,n)}catch(n){if(e.throwErrorOnBrokenSymbolicLink)throw n}return i})}Ur.readdirWithFileTypes=zS;function XS(t,e){return e.fs.readdirSync(t).map(s=>{let i=KS.joinPathSegments(t,s,e.pathSegmentSeparator),n=jD.statSync(i,e.fsStatSettings),o={name:s,path:i,dirent:YS.fs.createDirentFromStats(s,n)};return e.stats&&(o.stats=n),o})}Ur.readdir=XS});var QS=_(Br=>{"use strict";h();Object.defineProperty(Br,"__esModule",{value:!0});Br.createFileSystemAdapter=Br.FILE_SYSTEM_ADAPTER=void 0;var yi=T("fs");Br.FILE_SYSTEM_ADAPTER={lstat:yi.lstat,stat:yi.stat,lstatSync:yi.lstatSync,statSync:yi.statSync,readdir:yi.readdir,readdirSync:yi.readdirSync};function HD(t){return t===void 0?Br.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Br.FILE_SYSTEM_ADAPTER),t)}Br.createFileSystemAdapter=HD});var JS=_(fh=>{"use strict";h();Object.defineProperty(fh,"__esModule",{value:!0});var VD=T("path"),WD=vs(),$D=QS(),hh=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=$D.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,VD.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new WD.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};fh.default=hh});var Ua=_(jr=>{"use strict";h();Object.defineProperty(jr,"__esModule",{value:!0});jr.Settings=jr.scandirSync=jr.scandir=void 0;var eO=$S(),YD=ZS(),dh=JS();jr.Settings=dh.default;function KD(t,e,r){if(typeof e=="function"){eO.read(t,ph(),e);return}eO.read(t,ph(e),r)}jr.scandir=KD;function zD(t,e){let r=ph(e);return YD.read(t,r)}jr.scandirSync=zD;function ph(t={}){return t instanceof dh.default?t:new dh.default(t)}});var rO=_((cq,tO)=>{"use strict";h();function XD(t){var e=new t,r=e;function s(){var n=e;return n.next?e=n.next:(e=new t,r=e),n.next=null,n}function i(n){r.next=n,r=n}return{get:s,release:i}}tO.exports=XD});var iO=_((lq,mh)=>{"use strict";h();var ZD=rO();function sO(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var s=ZD(QD),i=null,n=null,o=0,a=null,c={push:y,drain:ht,saturated:ht,pause:l,paused:!1,concurrency:r,running:u,resume:E,idle:g,length:f,getQueue:d,unshift:A,empty:ht,kill:M,killAndDrain:$,error:de};return c;function u(){return o}function l(){c.paused=!0}function f(){for(var k=i,j=0;k;)k=k.next,j++;return j}function d(){for(var k=i,j=[];k;)j.push(k.value),k=k.next;return j}function E(){if(c.paused){c.paused=!1;for(var k=0;k<c.concurrency;k++)o++,b()}}function g(){return o===0&&c.length()===0}function y(k,j){var U=s.get();U.context=t,U.release=b,U.value=k,U.callback=j||ht,U.errorHandler=a,o===c.concurrency||c.paused?n?(n.next=U,n=U):(i=U,n=U,c.saturated()):(o++,e.call(t,U.value,U.worked))}function A(k,j){var U=s.get();U.context=t,U.release=b,U.value=k,U.callback=j||ht,o===c.concurrency||c.paused?i?(U.next=i,i=U):(i=U,n=U,c.saturated()):(o++,e.call(t,U.value,U.worked))}function b(k){k&&s.release(k);var j=i;j?c.paused?o--:(n===i&&(n=null),i=j.next,j.next=null,e.call(t,j.value,j.worked),n===null&&c.empty()):--o===0&&c.drain()}function M(){i=null,n=null,c.drain=ht}function $(){i=null,n=null,c.drain(),c.drain=ht}function de(k){a=k}}function ht(){}function QD(){this.value=null,this.callback=ht,this.next=null,this.release=ht,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,s){var i=t.callback,n=t.errorHandler,o=t.value;t.value=null,t.callback=ht,t.errorHandler&&n(r,o),i.call(t.context,r,s),t.release(t)}}function JD(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function s(l,f){e.call(this,l).then(function(d){f(null,d)},f)}var i=sO(t,s,r),n=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(l){var f=new Promise(function(d,E){n(l,function(g,y){if(g){E(g);return}d(y)})});return f.catch(ht),f}function c(l){var f=new Promise(function(d,E){o(l,function(g,y){if(g){E(g);return}d(y)})});return f.catch(ht),f}function u(){var l=i.drain,f=new Promise(function(d){i.drain=function(){l(),d()}});return f}}mh.exports=sO;mh.exports.promise=JD});var Ba=_(Mt=>{"use strict";h();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.joinPathSegments=Mt.replacePathSegmentSeparator=Mt.isAppliedFilter=Mt.isFatalError=void 0;function ex(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Mt.isFatalError=ex;function tx(t,e){return t===null||t(e)}Mt.isAppliedFilter=tx;function rx(t,e){return t.split(/[/\\]/).join(e)}Mt.replacePathSegmentSeparator=rx;function sx(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Mt.joinPathSegments=sx});var gh=_(Eh=>{"use strict";h();Object.defineProperty(Eh,"__esModule",{value:!0});var ix=Ba(),_h=class{constructor(e,r){this._root=e,this._settings=r,this._root=ix.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Eh.default=_h});var Oh=_(Sh=>{"use strict";h();Object.defineProperty(Sh,"__esModule",{value:!0});var nx=T("events"),ox=Ua(),ax=iO(),ja=Ba(),cx=gh(),yh=class extends cx.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=ox.scandir,this._emitter=new nx.EventEmitter,this._queue=ax(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let s={directory:e,base:r};this._queue.push(s,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(s,i)=>{if(s!==null){r(s,void 0);return}for(let n of i)this._handleEntry(n,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ja.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let s=e.path;r!==void 0&&(e.path=ja.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ja.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ja.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Sh.default=yh});var nO=_(vh=>{"use strict";h();Object.defineProperty(vh,"__esModule",{value:!0});var ux=Oh(),Rh=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new ux.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{lx(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{hx(e,this._storage)}),this._reader.read()}};vh.default=Rh;function lx(t,e){t(e)}function hx(t,e){t(null,e)}});var oO=_(Ah=>{"use strict";h();Object.defineProperty(Ah,"__esModule",{value:!0});var fx=T("stream"),dx=Oh(),Th=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new dx.default(this._root,this._settings),this._stream=new fx.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ah.default=Th});var aO=_(Nh=>{"use strict";h();Object.defineProperty(Nh,"__esModule",{value:!0});var px=Ua(),Ga=Ba(),mx=gh(),bh=class extends mx.default{constructor(){super(...arguments),this._scandir=px.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let s=this._scandir(e,this._settings.fsScandirSettings);for(let i of s)this._handleEntry(i,r)}catch(s){this._handleError(s)}}_handleError(e){if(Ga.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let s=e.path;r!==void 0&&(e.path=Ga.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ga.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Ga.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Nh.default=bh});var cO=_(wh=>{"use strict";h();Object.defineProperty(wh,"__esModule",{value:!0});var _x=aO(),Ih=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new _x.default(this._root,this._settings)}read(){return this._reader.read()}};wh.default=Ih});var uO=_(Ph=>{"use strict";h();Object.defineProperty(Ph,"__esModule",{value:!0});var Ex=T("path"),gx=Ua(),Ch=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ex.sep),this.fsScandirSettings=new gx.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};Ph.default=Ch});var Ha=_(Ft=>{"use strict";h();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Settings=Ft.walkStream=Ft.walkSync=Ft.walk=void 0;var lO=nO(),yx=oO(),Sx=cO(),Dh=uO();Ft.Settings=Dh.default;function Ox(t,e,r){if(typeof e=="function"){new lO.default(t,qa()).read(e);return}new lO.default(t,qa(e)).read(r)}Ft.walk=Ox;function Rx(t,e){let r=qa(e);return new Sx.default(t,r).read()}Ft.walkSync=Rx;function vx(t,e){let r=qa(e);return new yx.default(t,r).read()}Ft.walkStream=vx;function qa(t={}){return t instanceof Dh.default?t:new Dh.default(t)}});var Va=_(Lh=>{"use strict";h();Object.defineProperty(Lh,"__esModule",{value:!0});var Tx=T("path"),Ax=vs(),hO=ir(),xh=class{constructor(e){this._settings=e,this._fsStatSettings=new Ax.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Tx.resolve(this._settings.cwd,e)}_makeEntry(e,r){let s={name:r,path:r,dirent:hO.fs.createDirentFromStats(r,e)};return this._settings.stats&&(s.stats=e),s}_isFatalError(e){return!hO.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Lh.default=xh});var kh=_(Fh=>{"use strict";h();Object.defineProperty(Fh,"__esModule",{value:!0});var bx=T("stream"),Nx=vs(),Ix=Ha(),wx=Va(),Mh=class extends wx.default{constructor(){super(...arguments),this._walkStream=Ix.walkStream,this._stat=Nx.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let s=e.map(this._getFullEntryPath,this),i=new bx.PassThrough({objectMode:!0});i._write=(n,o,a)=>this._getEntry(s[n],e[n],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),n===s.length-1&&i.end(),a()}).catch(a);for(let n=0;n<s.length;n++)i.write(n);return i}_getEntry(e,r,s){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(s.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,s)=>{this._stat(e,this._fsStatSettings,(i,n)=>i===null?r(n):s(i))})}};Fh.default=Mh});var fO=_(Bh=>{"use strict";h();Object.defineProperty(Bh,"__esModule",{value:!0});var Cx=Ha(),Px=Va(),Dx=kh(),Uh=class extends Px.default{constructor(){super(...arguments),this._walkAsync=Cx.walk,this._readerStream=new Dx.default(this._settings)}dynamic(e,r){return new Promise((s,i)=>{this._walkAsync(e,r,(n,o)=>{n===null?s(o):i(n)})})}async static(e,r){let s=[],i=this._readerStream.static(e,r);return new Promise((n,o)=>{i.once("error",o),i.on("data",a=>s.push(a)),i.once("end",()=>n(s))})}};Bh.default=Uh});var dO=_(Gh=>{"use strict";h();Object.defineProperty(Gh,"__esModule",{value:!0});var fn=ir(),jh=class{constructor(e,r,s){this._patterns=e,this._settings=r,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),s=this._splitSegmentsIntoSections(r);this._storage.push({complete:s.length<=1,pattern:e,segments:r,sections:s})}}_getPatternSegments(e){return fn.pattern.getPatternParts(e,this._micromatchOptions).map(s=>fn.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:fn.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(e){return fn.array.splitWhen(e,r=>r.dynamic&&fn.pattern.hasGlobStar(r.pattern))}};Gh.default=jh});var pO=_(Hh=>{"use strict";h();Object.defineProperty(Hh,"__esModule",{value:!0});var xx=dO(),qh=class extends xx.default{match(e){let r=e.split("/"),s=r.length,i=this._storage.filter(n=>!n.complete||n.segments.length>s);for(let n of i){let o=n.sections[0];if(!n.complete&&s>o.length||r.every((c,u)=>{let l=n.segments[u];return!!(l.dynamic&&l.patternRe.test(c)||!l.dynamic&&l.pattern===c)}))return!0}return!1}};Hh.default=qh});var mO=_(Wh=>{"use strict";h();Object.defineProperty(Wh,"__esModule",{value:!0});var Wa=ir(),Lx=pO(),Vh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,s){let i=this._getMatcher(r),n=this._getNegativePatternsRe(s);return o=>this._filter(e,o,i,n)}_getMatcher(e){return new Lx.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Wa.pattern.isAffectDepthOfReadingPattern);return Wa.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,s,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=Wa.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(n,s)?!1:this._isSkippedByNegativePatterns(n,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let s=r.split("/").length;if(e==="")return s;let i=e.split("/").length;return s-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Wa.pattern.matchAny(e,r)}};Wh.default=Vh});var _O=_(Yh=>{"use strict";h();Object.defineProperty(Yh,"__esModule",{value:!0});var Ts=ir(),$h=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let s=Ts.pattern.convertPatternsToRe(e,this._micromatchOptions),i=Ts.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return n=>this._filter(n,s,i)}_filter(e,r,s){let i=Ts.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(i,s))return!1;let n=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,n)&&!this._isMatchToPatterns(i,s,n);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let s=Ts.path.makeAbsolute(this._settings.cwd,e);return Ts.pattern.matchAny(s,r)}_isMatchToPatterns(e,r,s){let i=Ts.pattern.matchAny(e,r);return!i&&s?Ts.pattern.matchAny(e+"/",r):i}};Yh.default=$h});var EO=_(zh=>{"use strict";h();Object.defineProperty(zh,"__esModule",{value:!0});var Mx=ir(),Kh=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Mx.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};zh.default=Kh});var yO=_(Zh=>{"use strict";h();Object.defineProperty(Zh,"__esModule",{value:!0});var gO=ir(),Xh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=gO.path.makeAbsolute(this._settings.cwd,r),r=gO.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Zh.default=Xh});var $a=_(Jh=>{"use strict";h();Object.defineProperty(Jh,"__esModule",{value:!0});var Fx=T("path"),kx=mO(),Ux=_O(),Bx=EO(),jx=yO(),Qh=class{constructor(e){this._settings=e,this.errorFilter=new Bx.default(this._settings),this.entryFilter=new Ux.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new kx.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new jx.default(this._settings)}_getRootDirectory(e){return Fx.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Jh.default=Qh});var SO=_(tf=>{"use strict";h();Object.defineProperty(tf,"__esModule",{value:!0});var Gx=fO(),qx=$a(),ef=class extends qx.default{constructor(){super(...arguments),this._reader=new Gx.default(this._settings)}async read(e){let r=this._getRootDirectory(e),s=this._getReaderOptions(e);return(await this.api(r,e,s)).map(n=>s.transform(n))}api(e,r,s){return r.dynamic?this._reader.dynamic(e,s):this._reader.static(r.patterns,s)}};tf.default=ef});var OO=_(sf=>{"use strict";h();Object.defineProperty(sf,"__esModule",{value:!0});var Hx=T("stream"),Vx=kh(),Wx=$a(),rf=class extends Wx.default{constructor(){super(...arguments),this._reader=new Vx.default(this._settings)}read(e){let r=this._getRootDirectory(e),s=this._getReaderOptions(e),i=this.api(r,e,s),n=new Hx.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>n.emit("error",o)).on("data",o=>n.emit("data",s.transform(o))).once("end",()=>n.emit("end")),n.once("close",()=>i.destroy()),n}api(e,r,s){return r.dynamic?this._reader.dynamic(e,s):this._reader.static(r.patterns,s)}};sf.default=rf});var RO=_(of=>{"use strict";h();Object.defineProperty(of,"__esModule",{value:!0});var $x=vs(),Yx=Ha(),Kx=Va(),nf=class extends Kx.default{constructor(){super(...arguments),this._walkSync=Yx.walkSync,this._statSync=$x.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let s=[];for(let i of e){let n=this._getFullEntryPath(i),o=this._getEntry(n,i,r);o===null||!r.entryFilter(o)||s.push(o)}return s}_getEntry(e,r,s){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(s.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};of.default=nf});var vO=_(cf=>{"use strict";h();Object.defineProperty(cf,"__esModule",{value:!0});var zx=RO(),Xx=$a(),af=class extends Xx.default{constructor(){super(...arguments),this._reader=new zx.default(this._settings)}read(e){let r=this._getRootDirectory(e),s=this._getReaderOptions(e);return this.api(r,e,s).map(s.transform)}api(e,r,s){return r.dynamic?this._reader.dynamic(e,s):this._reader.static(r.patterns,s)}};cf.default=af});var TO=_(Oi=>{"use strict";h();Object.defineProperty(Oi,"__esModule",{value:!0});Oi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Si=T("fs"),Zx=T("os"),Qx=Math.max(Zx.cpus().length,1);Oi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Si.lstat,lstatSync:Si.lstatSync,stat:Si.stat,statSync:Si.statSync,readdir:Si.readdir,readdirSync:Si.readdirSync};var uf=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Qx),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Oi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Oi.default=uf});var df=_((oH,bO)=>{"use strict";h();var AO=bS(),Jx=SO(),eL=OO(),tL=vO(),lf=TO(),ft=ir();async function hf(t,e){Ot(t);let r=ff(t,Jx.default,e),s=await Promise.all(r);return ft.array.flatten(s)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(u,l){Ot(u);let f=ff(u,tL.default,l);return ft.array.flatten(f)}t.sync=e;function r(u,l){Ot(u);let f=ff(u,eL.default,l);return ft.stream.merge(f)}t.stream=r;function s(u,l){Ot(u);let f=[].concat(u),d=new lf.default(l);return AO.generate(f,d)}t.generateTasks=s;function i(u,l){Ot(u);let f=new lf.default(l);return ft.pattern.isDynamicPattern(u,f)}t.isDynamicPattern=i;function n(u){return Ot(u),ft.path.escape(u)}t.escapePath=n;function o(u){return Ot(u),ft.path.convertPathToPattern(u)}t.convertPathToPattern=o;let a;(function(u){function l(d){return Ot(d),ft.path.escapePosixPath(d)}u.escapePath=l;function f(d){return Ot(d),ft.path.convertPosixPathToPattern(d)}u.convertPathToPattern=f})(a=t.posix||(t.posix={}));let c;(function(u){function l(d){return Ot(d),ft.path.escapeWindowsPath(d)}u.escapePath=l;function f(d){return Ot(d),ft.path.convertWindowsPathToPattern(d)}u.convertPathToPattern=f})(c=t.win32||(t.win32={}))})(hf||(hf={}));function ff(t,e,r){let s=[].concat(t),i=new lf.default(r),n=AO.generate(s,i),o=new e(i);return n.map(o.read,o)}function Ot(t){if(![].concat(t).every(s=>ft.string.isString(s)&&!ft.string.isEmpty(s)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}bO.exports=hf});var IO=_(As=>{"use strict";h();var{promisify:rL}=T("util"),NO=T("fs");async function pf(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await rL(NO[t])(r))[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}function mf(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return NO[t](r)[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}As.isFile=pf.bind(null,"stat","isFile");As.isDirectory=pf.bind(null,"stat","isDirectory");As.isSymlink=pf.bind(null,"lstat","isSymbolicLink");As.isFileSync=mf.bind(null,"statSync","isFile");As.isDirectorySync=mf.bind(null,"statSync","isDirectory");As.isSymlinkSync=mf.bind(null,"lstatSync","isSymbolicLink")});var xO=_((lH,_f)=>{"use strict";h();var bs=T("path"),wO=IO(),CO=t=>t.length>1?`{${t.join(",")}}`:t[0],PO=(t,e)=>{let r=t[0]==="!"?t.slice(1):t;return bs.isAbsolute(r)?r:bs.join(e,r)},sL=(t,e)=>bs.extname(t)?`**/${t}`:`**/${t}.${CO(e)}`,DO=(t,e)=>{if(e.files&&!Array.isArray(e.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);if(e.extensions&&!Array.isArray(e.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);return e.files&&e.extensions?e.files.map(r=>bs.posix.join(t,sL(r,e.extensions))):e.files?e.files.map(r=>bs.posix.join(t,`**/${r}`)):e.extensions?[bs.posix.join(t,`**/*.${CO(e.extensions)}`)]:[bs.posix.join(t,"**")]};_f.exports=async(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=await Promise.all([].concat(t).map(async s=>await wO.isDirectory(PO(s,e.cwd))?DO(s,e):s));return[].concat.apply([],r)};_f.exports.sync=(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=[].concat(t).map(s=>wO.isDirectorySync(PO(s,e.cwd))?DO(s,e):s);return[].concat.apply([],r)}});var HO=_((fH,qO)=>{"use strict";h();function LO(t){return Array.isArray(t)?t:[t]}var UO="",MO=" ",Ef="\\",iL=/^\s+$/,nL=/(?:[^\\]|^)\\$/,oL=/^\\!/,aL=/^\\#/,cL=/\r?\n/g,uL=/^\.*\/|^\.+$/,gf="/",BO="node-ignore";typeof Symbol<"u"&&(BO=Symbol.for("node-ignore"));var FO=BO,lL=(t,e,r)=>Object.defineProperty(t,e,{value:r}),hL=/([0-z])-([0-z])/g,jO=()=>!1,fL=t=>t.replace(hL,(e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:UO),dL=t=>{let{length:e}=t;return t.slice(0,e-e%2)},pL=[[/\\?\s+$/,t=>t.indexOf("\\")===0?MO:UO],[/\\\s/g,()=>MO],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let s=r.replace(/\\\*/g,"[^\\/]*");return e+s}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Ef],[/\\\\/g,()=>Ef],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>e===Ef?`\\[${r}${dL(s)}${i}`:i==="]"&&s.length%2===0?`[${fL(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],kO=Object.create(null),mL=(t,e)=>{let r=kO[t];return r||(r=pL.reduce((s,i)=>s.replace(i[0],i[1].bind(t)),t),kO[t]=r),e?new RegExp(r,"i"):new RegExp(r)},Of=t=>typeof t=="string",_L=t=>t&&Of(t)&&!iL.test(t)&&!nL.test(t)&&t.indexOf("#")!==0,EL=t=>t.split(cL),yf=class{constructor(e,r,s,i){this.origin=e,this.pattern=r,this.negative=s,this.regex=i}},gL=(t,e)=>{let r=t,s=!1;t.indexOf("!")===0&&(s=!0,t=t.substr(1)),t=t.replace(oL,"!").replace(aL,"#");let i=mL(t,e);return new yf(r,t,s,i)},yL=(t,e)=>{throw new e(t)},nr=(t,e,r)=>Of(t)?t?nr.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),GO=t=>uL.test(t);nr.isNotRelative=GO;nr.convert=t=>t;var Sf=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:s=!1}={}){lL(this,FO,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[FO]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(_L(e)){let r=gL(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,LO(Of(e)?EL(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let s=!1,i=!1;return this._rules.forEach(n=>{let{negative:o}=n;if(i===o&&s!==i||o&&!s&&!i&&!r)return;n.regex.test(e)&&(s=!o,i=o)}),{ignored:s,unignored:i}}_test(e,r,s,i){let n=e&&nr.convert(e);return nr(n,e,this._allowRelativePaths?jO:yL),this._t(n,r,s,i)}_t(e,r,s,i){if(e in r)return r[e];if(i||(i=e.split(gf)),i.pop(),!i.length)return r[e]=this._testOne(e,s);let n=this._t(i.join(gf)+gf,r,s,i);return r[e]=n.ignored?n:this._testOne(e,s)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return LO(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},Ya=t=>new Sf(t),SL=t=>nr(t&&nr.convert(t),t,jO);Ya.isPathValid=SL;Ya.default=Ya;qO.exports=Ya;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");nr.convert=t;let e=/^[a-z]:\//i;nr.isNotRelative=r=>e.test(r)||GO(r)}});var WR=_((aW,VR)=>{"use strict";h();var On=T("fs"),{Readable:NM}=T("stream"),Sn=T("path"),{promisify:tc}=T("util"),If=ba(),IM=tc(On.readdir),wM=tc(On.stat),UR=tc(On.lstat),CM=tc(On.realpath),PM="!",qR="READDIRP_RECURSIVE_ERROR",DM=new Set(["ENOENT","EPERM","EACCES","ELOOP",qR]),wf="files",HR="directories",Ja="files_directories",Qa="all",BR=[wf,HR,Ja,Qa],xM=t=>DM.has(t.code),[jR,LM]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),MM=process.platform==="win32"&&(jR>10||jR===10&&LM>=5),GR=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=If(t.trim());return r=>e(r.basename)}if(Array.isArray(t)){let e=[],r=[];for(let s of t){let i=s.trim();i.charAt(0)===PM?r.push(If(i.slice(1))):e.push(If(i))}return r.length>0?e.length>0?s=>e.some(i=>i(s.basename))&&!r.some(i=>i(s.basename)):s=>!r.some(i=>i(s.basename)):s=>e.some(i=>i(s.basename))}}},ec=class t extends NM{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:wf,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let r={...t.defaultOptions,...e},{root:s,type:i}=r;this._fileFilter=GR(r.fileFilter),this._directoryFilter=GR(r.directoryFilter);let n=r.lstat?UR:wM;MM?this._stat=o=>n(o,{bigint:!0}):this._stat=n,this._maxDepth=r.depth,this._wantsDir=[HR,Ja,Qa].includes(i),this._wantsFile=[wf,Ja,Qa].includes(i),this._wantsEverything=i===Qa,this._root=Sn.resolve(s),this._isDirent="Dirent"in On&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:r,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let n=i.splice(0,e).map(o=>this._formatEntry(o,r));for(let o of await Promise.all(n)){if(this.destroyed)return;let a=await this._getEntryType(o);a==="directory"&&this._directoryFilter(o)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(o.fullPath,s+1)),this._wantsDir&&(this.push(o),e--)):(a==="file"||this._includeAsFile(o))&&this._fileFilter(o)&&this._wantsFile&&(this.push(o),e--)}}else{let n=this.parents.pop();if(!n){this.push(null);break}if(this.parent=await n,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(e,r){let s;try{s=await IM(e,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:r,path:e}}async _formatEntry(e,r){let s;try{let i=this._isDirent?e.name:e,n=Sn.resolve(Sn.join(r,i));s={path:Sn.relative(this._root,n),fullPath:n,basename:i},s[this._statsProp]=this._isDirent?e:await this._stat(n)}catch(i){this._onError(i)}return s}_onError(e){xM(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){let r=e&&e[this._statsProp];if(r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let s=e.fullPath;try{let i=await CM(s),n=await UR(i);if(n.isFile())return"file";if(n.isDirectory()){let o=i.length;if(s.startsWith(i)&&s.substr(o,1)===Sn.sep){let a=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return a.code=qR,this._onError(a)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(e){let r=e&&e[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},Ni=(t,e={})=>{let r=e.entryType||e.type;if(r==="both"&&(r=Ja),r&&(e.type=r),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!BR.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${BR.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new ec(e)},FM=(t,e={})=>new Promise((r,s)=>{let i=[];Ni(t,e).on("data",n=>i.push(n)).on("end",()=>r(i)).on("error",n=>s(n))});Ni.promise=FM;Ni.ReaddirpStream=ec;Ni.default=Ni;VR.exports=Ni});var Cf=_((uW,$R)=>{"use strict";h();$R.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var s="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),s="//")}var n=t.split(/[/\\]+/);return e!==!1&&n[n.length-1]===""&&n.pop(),s+n.join("/")}});var QR=_((XR,ZR)=>{"use strict";h();Object.defineProperty(XR,"__esModule",{value:!0});var zR=ba(),kM=Cf(),YR="!",UM={returnIndex:!1},BM=t=>Array.isArray(t)?t:[t],jM=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=zR(t,e);return s=>t===s||r(s)}return t instanceof RegExp?r=>t.test(r):r=>!1},KR=(t,e,r,s)=>{let i=Array.isArray(r),n=i?r[0]:r;if(!i&&typeof n!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(n));let o=kM(n);for(let c=0;c<e.length;c++){let u=e[c];if(u(o))return s?-1:!1}let a=i&&[o].concat(r.slice(1));for(let c=0;c<t.length;c++){let u=t[c];if(i?u(...a):u(o))return s?c:!0}return s?-1:!1},Pf=(t,e,r=UM)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let s=typeof r=="boolean"?{returnIndex:r}:r,i=s.returnIndex||!1,n=BM(t),o=n.filter(c=>typeof c=="string"&&c.charAt(0)===YR).map(c=>c.slice(1)).map(c=>zR(c,s)),a=n.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==YR).map(c=>jM(c,s));return e==null?(c,u=!1)=>KR(a,o,c,typeof u=="boolean"?u:!1):KR(a,o,e,i)};Pf.default=Pf;ZR.exports=Pf});var JR=_((fW,GM)=>{GM.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var tv=_((dW,ev)=>{"use strict";h();ev.exports=JR()});var sv=_((mW,rv)=>{"use strict";h();var qM=T("path"),HM=tv(),VM=new Set(HM);rv.exports=t=>VM.has(qM.extname(t).slice(1).toLowerCase())});var rc=_(L=>{"use strict";h();var{sep:WM}=T("path"),{platform:Df}=process,$M=T("os");L.EV_ALL="all";L.EV_READY="ready";L.EV_ADD="add";L.EV_CHANGE="change";L.EV_ADD_DIR="addDir";L.EV_UNLINK="unlink";L.EV_UNLINK_DIR="unlinkDir";L.EV_RAW="raw";L.EV_ERROR="error";L.STR_DATA="data";L.STR_END="end";L.STR_CLOSE="close";L.FSEVENT_CREATED="created";L.FSEVENT_MODIFIED="modified";L.FSEVENT_DELETED="deleted";L.FSEVENT_MOVED="moved";L.FSEVENT_CLONED="cloned";L.FSEVENT_UNKNOWN="unknown";L.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;L.FSEVENT_TYPE_FILE="file";L.FSEVENT_TYPE_DIRECTORY="directory";L.FSEVENT_TYPE_SYMLINK="symlink";L.KEY_LISTENERS="listeners";L.KEY_ERR="errHandlers";L.KEY_RAW="rawEmitters";L.HANDLER_KEYS=[L.KEY_LISTENERS,L.KEY_ERR,L.KEY_RAW];L.DOT_SLASH=`.${WM}`;L.BACK_SLASH_RE=/\\/g;L.DOUBLE_SLASH_RE=/\/\//;L.SLASH_OR_BACK_SLASH_RE=/[/\\]/;L.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;L.REPLACER_RE=/^\.[/\\]/;L.SLASH="/";L.SLASH_SLASH="//";L.BRACE_START="{";L.BANG="!";L.ONE_DOT=".";L.TWO_DOTS="..";L.STAR="*";L.GLOBSTAR="**";L.ROOT_GLOBSTAR="/**/*";L.SLASH_GLOBSTAR="/**";L.DIR_SUFFIX="Dir";L.ANYMATCH_OPTS={dot:!0};L.STRING_TYPE="string";L.FUNCTION_TYPE="function";L.EMPTY_STR="";L.EMPTY_FN=()=>{};L.IDENTITY_FN=t=>t;L.isWindows=Df==="win32";L.isMacos=Df==="darwin";L.isLinux=Df==="linux";L.isIBMi=$M.type()==="OS400"});var uv=_((yW,cv)=>{"use strict";h();var or=T("fs"),Ie=T("path"),{promisify:An}=T("util"),YM=sv(),{isWindows:KM,isLinux:zM,EMPTY_FN:XM,EMPTY_STR:ZM,KEY_LISTENERS:Ii,KEY_ERR:xf,KEY_RAW:Rn,HANDLER_KEYS:QM,EV_CHANGE:ic,EV_ADD:sc,EV_ADD_DIR:JM,EV_ERROR:nv,STR_DATA:e0,STR_END:t0,BRACE_START:r0,STAR:s0}=rc(),i0="watch",n0=An(or.open),ov=An(or.stat),o0=An(or.lstat),a0=An(or.close),Lf=An(or.realpath),c0={lstat:o0,stat:ov},Ff=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},vn=(t,e,r)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(r)},u0=t=>e=>{let r=t[e];r instanceof Set?r.clear():delete t[e]},Tn=(t,e,r)=>{let s=t[e];s instanceof Set?s.delete(r):s===r&&delete t[e]},av=t=>t instanceof Set?t.size===0:!t,nc=new Map;function iv(t,e,r,s,i){let n=(o,a)=>{r(t),i(o,a,{watchedPath:t}),a&&t!==a&&oc(Ie.resolve(t,a),Ii,Ie.join(t,a))};try{return or.watch(t,e,n)}catch(o){s(o)}}var oc=(t,e,r,s,i)=>{let n=nc.get(t);n&&Ff(n[e],o=>{o(r,s,i)})},l0=(t,e,r,s)=>{let{listener:i,errHandler:n,rawEmitter:o}=s,a=nc.get(e),c;if(!r.persistent)return c=iv(t,r,i,n,o),c.close.bind(c);if(a)vn(a,Ii,i),vn(a,xf,n),vn(a,Rn,o);else{if(c=iv(t,r,oc.bind(null,e,Ii),n,oc.bind(null,e,Rn)),!c)return;c.on(nv,async u=>{let l=oc.bind(null,e,xf);if(a.watcherUnusable=!0,KM&&u.code==="EPERM")try{let f=await n0(t,"r");await a0(f),l(u)}catch{}else l(u)}),a={listeners:i,errHandlers:n,rawEmitters:o,watcher:c},nc.set(e,a)}return()=>{Tn(a,Ii,i),Tn(a,xf,n),Tn(a,Rn,o),av(a.listeners)&&(a.watcher.close(),nc.delete(e),QM.forEach(u0(a)),a.watcher=void 0,Object.freeze(a))}},Mf=new Map,h0=(t,e,r,s)=>{let{listener:i,rawEmitter:n}=s,o=Mf.get(e),a=new Set,c=new Set,u=o&&o.options;return u&&(u.persistent<r.persistent||u.interval>r.interval)&&(a=o.listeners,c=o.rawEmitters,or.unwatchFile(e),o=void 0),o?(vn(o,Ii,i),vn(o,Rn,n)):(o={listeners:i,rawEmitters:n,options:r,watcher:or.watchFile(e,r,(l,f)=>{Ff(o.rawEmitters,E=>{E(ic,e,{curr:l,prev:f})});let d=l.mtimeMs;(l.size!==f.size||d>f.mtimeMs||d===0)&&Ff(o.listeners,E=>E(t,l))})},Mf.set(e,o)),()=>{Tn(o,Ii,i),Tn(o,Rn,n),av(o.listeners)&&(Mf.delete(e),or.unwatchFile(e),o.options=o.watcher=void 0,Object.freeze(o))}},kf=class{constructor(e){this.fsw=e,this._boundHandleError=r=>e._handleError(r)}_watchWithNodeFs(e,r){let s=this.fsw.options,i=Ie.dirname(e),n=Ie.basename(e);this.fsw._getWatchedDir(i).add(n);let a=Ie.resolve(e),c={persistent:s.persistent};r||(r=XM);let u;return s.usePolling?(c.interval=s.enableBinaryInterval&&YM(n)?s.binaryInterval:s.interval,u=h0(e,a,c,{listener:r,rawEmitter:this.fsw._emitRaw})):u=l0(e,a,c,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),u}_handleFile(e,r,s){if(this.fsw.closed)return;let i=Ie.dirname(e),n=Ie.basename(e),o=this.fsw._getWatchedDir(i),a=r;if(o.has(n))return;let c=async(l,f)=>{if(this.fsw._throttle(i0,e,5)){if(!f||f.mtimeMs===0)try{let d=await ov(e);if(this.fsw.closed)return;let E=d.atimeMs,g=d.mtimeMs;(!E||E<=g||g!==a.mtimeMs)&&this.fsw._emit(ic,e,d),zM&&a.ino!==d.ino?(this.fsw._closeFile(l),a=d,this.fsw._addPathCloser(l,this._watchWithNodeFs(e,c))):a=d}catch{this.fsw._remove(i,n)}else if(o.has(n)){let d=f.atimeMs,E=f.mtimeMs;(!d||d<=E||E!==a.mtimeMs)&&this.fsw._emit(ic,e,f),a=f}}},u=this._watchWithNodeFs(e,c);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(sc,e,0))return;this.fsw._emit(sc,e,r)}return u}async _handleSymlink(e,r,s,i){if(this.fsw.closed)return;let n=e.fullPath,o=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let a;try{a=await Lf(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(o.has(i)?this.fsw._symlinkPaths.get(n)!==a&&(this.fsw._symlinkPaths.set(n,a),this.fsw._emit(ic,s,e.stats)):(o.add(i),this.fsw._symlinkPaths.set(n,a),this.fsw._emit(sc,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(n))return!0;this.fsw._symlinkPaths.set(n,!0)}_handleRead(e,r,s,i,n,o,a){if(e=Ie.join(e,ZM),!s.hasGlob&&(a=this.fsw._throttle("readdir",e,1e3),!a))return;let c=this.fsw._getWatchedDir(s.path),u=new Set,l=this.fsw._readdirp(e,{fileFilter:f=>s.filterPath(f),directoryFilter:f=>s.filterDir(f),depth:0}).on(e0,async f=>{if(this.fsw.closed){l=void 0;return}let d=f.path,E=Ie.join(e,d);if(u.add(d),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,E,d))){if(this.fsw.closed){l=void 0;return}(d===i||!i&&!c.has(d))&&(this.fsw._incrReadyCount(),E=Ie.join(n,Ie.relative(n,E)),this._addToNodeFs(E,r,s,o+1))}}).on(nv,this._boundHandleError);return new Promise(f=>l.once(t0,()=>{if(this.fsw.closed){l=void 0;return}let d=a?a.clear():!1;f(),c.getChildren().filter(E=>E!==e&&!u.has(E)&&(!s.hasGlob||s.filterPath({fullPath:Ie.resolve(e,E)}))).forEach(E=>{this.fsw._remove(e,E)}),l=void 0,d&&this._handleRead(e,!1,s,i,n,o,a)}))}async _handleDir(e,r,s,i,n,o,a){let c=this.fsw._getWatchedDir(Ie.dirname(e)),u=c.has(Ie.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!n&&!u&&(!o.hasGlob||o.globFilter(e))&&this.fsw._emit(JM,e,r),c.add(Ie.basename(e)),this.fsw._getWatchedDir(e);let l,f,d=this.fsw.options.depth;if((d==null||i<=d)&&!this.fsw._symlinkPaths.has(a)){if(!n&&(await this._handleRead(e,s,o,n,e,i,l),this.fsw.closed))return;f=this._watchWithNodeFs(e,(E,g)=>{g&&g.mtimeMs===0||this._handleRead(E,!1,o,n,e,i,l)})}return f}async _addToNodeFs(e,r,s,i,n){let o=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return o(),!1;let a=this.fsw._getWatchHelpers(e,i);!a.hasGlob&&s&&(a.hasGlob=s.hasGlob,a.globFilter=s.globFilter,a.filterPath=c=>s.filterPath(c),a.filterDir=c=>s.filterDir(c));try{let c=await c0[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))return o(),!1;let u=this.fsw.options.followSymlinks&&!e.includes(s0)&&!e.includes(r0),l;if(c.isDirectory()){let f=Ie.resolve(e),d=u?await Lf(e):e;if(this.fsw.closed||(l=await this._handleDir(a.watchPath,c,r,i,n,a,d),this.fsw.closed))return;f!==d&&d!==void 0&&this.fsw._symlinkPaths.set(f,d)}else if(c.isSymbolicLink()){let f=u?await Lf(e):e;if(this.fsw.closed)return;let d=Ie.dirname(a.watchPath);if(this.fsw._getWatchedDir(d).add(a.watchPath),this.fsw._emit(sc,a.watchPath,c),l=await this._handleDir(d,c,r,i,e,a,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(Ie.resolve(e),f)}else l=this._handleFile(a.watchPath,c,r);return o(),this.fsw._addPathCloser(e,l),!1}catch(c){if(this.fsw._handleError(c))return o(),e}}};cv.exports=kf});var _v=_((OW,Wf)=>{"use strict";h();var Hf=T("fs"),we=T("path"),{promisify:Vf}=T("util"),wi;try{wi=T("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(wi){let t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){let e=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10);e===8&&r<16&&(wi=void 0)}}var{EV_ADD:Uf,EV_CHANGE:f0,EV_ADD_DIR:lv,EV_UNLINK:ac,EV_ERROR:d0,STR_DATA:p0,STR_END:m0,FSEVENT_CREATED:_0,FSEVENT_MODIFIED:E0,FSEVENT_DELETED:g0,FSEVENT_MOVED:y0,FSEVENT_UNKNOWN:S0,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:O0,FSEVENT_TYPE_FILE:R0,FSEVENT_TYPE_DIRECTORY:bn,FSEVENT_TYPE_SYMLINK:mv,ROOT_GLOBSTAR:hv,DIR_SUFFIX:v0,DOT_SLASH:fv,FUNCTION_TYPE:Bf,EMPTY_FN:T0,IDENTITY_FN:A0}=rc(),b0=t=>isNaN(t)?{}:{depth:t},Gf=Vf(Hf.stat),N0=Vf(Hf.lstat),dv=Vf(Hf.realpath),I0={stat:Gf,lstat:N0},ws=new Map,w0=10,C0=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),P0=(t,e)=>({stop:wi.watch(t,e)});function D0(t,e,r,s){let i=we.extname(e)?we.dirname(e):e,n=we.dirname(i),o=ws.get(i);x0(n)&&(i=n);let a=we.resolve(t),c=a!==e,u=(f,d,E)=>{c&&(f=f.replace(e,a)),(f===a||!f.indexOf(a+we.sep))&&r(f,d,E)},l=!1;for(let f of ws.keys())if(e.indexOf(we.resolve(f)+we.sep)===0){i=f,o=ws.get(i),l=!0;break}return o||l?o.listeners.add(u):(o={listeners:new Set([u]),rawEmitter:s,watcher:P0(i,(f,d)=>{if(!o.listeners.size||d&O0)return;let E=wi.getInfo(f,d);o.listeners.forEach(g=>{g(f,d,E)}),o.rawEmitter(E.event,f,E)})},ws.set(i,o)),()=>{let f=o.listeners;if(f.delete(u),!f.size&&(ws.delete(i),o.watcher))return o.watcher.stop().then(()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o)})}}var x0=t=>{let e=0;for(let r of ws.keys())if(r.indexOf(t)===0&&(e++,e>=w0))return!0;return!1},L0=()=>wi&&ws.size<128,jf=(t,e)=>{let r=0;for(;!t.indexOf(e)&&(t=we.dirname(t))!==e;)r++;return r},pv=(t,e)=>t.type===bn&&e.isDirectory()||t.type===mv&&e.isSymbolicLink()||t.type===R0&&e.isFile(),qf=class{constructor(e){this.fsw=e}checkIgnored(e,r){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,r))return s.add(e),r&&r.isDirectory()&&s.add(e+hv),!0;s.delete(e),s.delete(e+hv)}addOrChange(e,r,s,i,n,o,a,c){let u=n.has(o)?f0:Uf;this.handleEvent(u,e,r,s,i,n,o,a,c)}async checkExists(e,r,s,i,n,o,a,c){try{let u=await Gf(e);if(this.fsw.closed)return;pv(a,u)?this.addOrChange(e,r,s,i,n,o,a,c):this.handleEvent(ac,e,r,s,i,n,o,a,c)}catch(u){u.code==="EACCES"?this.addOrChange(e,r,s,i,n,o,a,c):this.handleEvent(ac,e,r,s,i,n,o,a,c)}}handleEvent(e,r,s,i,n,o,a,c,u){if(!(this.fsw.closed||this.checkIgnored(r)))if(e===ac){let l=c.type===bn;(l||o.has(a))&&this.fsw._remove(n,a,l)}else{if(e===Uf){if(c.type===bn&&this.fsw._getWatchedDir(r),c.type===mv&&u.followSymlinks){let f=u.depth===void 0?void 0:jf(s,i)+1;return this._addToFsEvents(r,!1,!0,f)}this.fsw._getWatchedDir(n).add(a)}let l=c.type===bn?e+v0:e;this.fsw._emit(l,r),l===lv&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(e,r,s,i){if(this.fsw.closed||this.fsw._isIgnored(e))return;let n=this.fsw.options,a=D0(e,r,async(c,u,l)=>{if(this.fsw.closed||n.depth!==void 0&&jf(c,r)>n.depth)return;let f=s(we.join(e,we.relative(e,c)));if(i&&!i(f))return;let d=we.dirname(f),E=we.basename(f),g=this.fsw._getWatchedDir(l.type===bn?f:d);if(C0.has(u)||l.event===S0)if(typeof n.ignored===Bf){let y;try{y=await Gf(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,y))return;pv(l,y)?this.addOrChange(f,c,r,d,g,E,l,n):this.handleEvent(ac,f,c,r,d,g,E,l,n)}else this.checkExists(f,c,r,d,g,E,l,n);else switch(l.event){case _0:case E0:return this.addOrChange(f,c,r,d,g,E,l,n);case g0:case y0:return this.checkExists(f,c,r,d,g,E,l,n)}},this.fsw._emitRaw);return this.fsw._emitReady(),a}async _handleFsEventsSymlink(e,r,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let n=await dv(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(n))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(n||e,o=>{let a=e;return n&&n!==fv?a=o.replace(n,e):o!==fv&&(a=we.join(e,o)),s(a)},!1,i)}catch(n){if(this.fsw._handleError(n))return this.fsw._emitReady()}}}emitAdd(e,r,s,i,n){let o=s(e),a=r.isDirectory(),c=this.fsw._getWatchedDir(we.dirname(o)),u=we.basename(o);a&&this.fsw._getWatchedDir(o),!c.has(u)&&(c.add(u),(!i.ignoreInitial||n===!0)&&this.fsw._emit(a?lv:Uf,o,r))}initWatch(e,r,s,i){if(this.fsw.closed)return;let n=this._watchWithFsEvents(s.watchPath,we.resolve(e||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(r,n)}async _addToFsEvents(e,r,s,i){if(this.fsw.closed)return;let n=this.fsw.options,o=typeof r===Bf?r:A0,a=this.fsw._getWatchHelpers(e);try{let c=await I0[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,c))throw null;if(c.isDirectory()){if(a.globFilter||this.emitAdd(o(e),c,o,n,s),i&&i>n.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:u=>a.filterPath(u),directoryFilter:u=>a.filterDir(u),...b0(n.depth-(i||0))}).on(p0,u=>{if(this.fsw.closed||u.stats.isDirectory()&&!a.filterPath(u))return;let l=we.join(a.watchPath,u.path),{fullPath:f}=u;if(a.followSymlinks&&u.stats.isSymbolicLink()){let d=n.depth===void 0?void 0:jf(l,we.resolve(a.watchPath))+1;this._handleFsEventsSymlink(l,f,o,d)}else this.emitAdd(l,u.stats,o,n,s)}).on(d0,T0).on(m0,()=>{this.fsw._emitReady()})}else this.emitAdd(a.watchPath,c,o,n,s),this.fsw._emitReady()}catch(c){(!c||this.fsw._handleError(c))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(n.persistent&&s!==!0)if(typeof r===Bf)this.initWatch(void 0,e,a,o);else{let c;try{c=await dv(a.watchPath)}catch{}this.initWatch(c,e,a,o)}}};Wf.exports=qf;Wf.exports.canUse=L0});var Nv=_(od=>{"use strict";h();var{EventEmitter:M0}=T("events"),id=T("fs"),ie=T("path"),{promisify:vv}=T("util"),F0=WR(),Zf=QR().default,k0=Pl(),$f=wl(),U0=kl(),B0=Cf(),j0=uv(),Ev=_v(),{EV_ALL:Yf,EV_READY:G0,EV_ADD:cc,EV_CHANGE:Nn,EV_UNLINK:gv,EV_ADD_DIR:q0,EV_UNLINK_DIR:H0,EV_RAW:V0,EV_ERROR:Kf,STR_CLOSE:W0,STR_END:$0,BACK_SLASH_RE:Y0,DOUBLE_SLASH_RE:yv,SLASH_OR_BACK_SLASH_RE:K0,DOT_RE:z0,REPLACER_RE:X0,SLASH:zf,SLASH_SLASH:Z0,BRACE_START:Q0,BANG:Qf,ONE_DOT:Tv,TWO_DOTS:J0,GLOBSTAR:eF,SLASH_GLOBSTAR:Xf,ANYMATCH_OPTS:Jf,STRING_TYPE:nd,FUNCTION_TYPE:tF,EMPTY_STR:ed,EMPTY_FN:rF,isWindows:sF,isMacos:iF,isIBMi:nF}=rc(),oF=vv(id.stat),aF=vv(id.readdir),td=(t=[])=>Array.isArray(t)?t:[t],Av=(t,e=[])=>(t.forEach(r=>{Array.isArray(r)?Av(r,e):e.push(r)}),e),Sv=t=>{let e=Av(td(t));if(!e.every(r=>typeof r===nd))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(bv)},Ov=t=>{let e=t.replace(Y0,zf),r=!1;for(e.startsWith(Z0)&&(r=!0);e.match(yv);)e=e.replace(yv,zf);return r&&(e=zf+e),e},bv=t=>Ov(ie.normalize(Ov(t))),Rv=(t=ed)=>e=>typeof e!==nd?e:bv(ie.isAbsolute(e)?e:ie.join(t,e)),cF=(t,e)=>ie.isAbsolute(t)?t:t.startsWith(Qf)?Qf+ie.join(e,t.slice(1)):ie.join(e,t),Rt=(t,e)=>t[e]===void 0,rd=class{constructor(e,r){this.path=e,this._removeWatcher=r,this.items=new Set}add(e){let{items:r}=this;r&&e!==Tv&&e!==J0&&r.add(e)}async remove(e){let{items:r}=this;if(!r||(r.delete(e),r.size>0))return;let s=this.path;try{await aF(s)}catch{this._removeWatcher&&this._removeWatcher(ie.dirname(s),ie.basename(s))}}has(e){let{items:r}=this;if(r)return r.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},uF="stat",lF="lstat",sd=class{constructor(e,r,s,i){this.fsw=i,this.path=e=e.replace(X0,ed),this.watchPath=r,this.fullWatchPath=ie.resolve(r),this.hasGlob=r!==e,e===ed&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?Zf(e,void 0,Jf):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(n=>{n.length>1&&n.pop()}),this.followSymlinks=s,this.statMethod=s?uF:lF}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return ie.join(this.watchPath,ie.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:r}=e;if(r&&r.isSymbolicLink())return this.filterDir(e);let s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===tF?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,r)&&this.fsw._hasReadPermissions(r)}getDirParts(e){if(!this.hasGlob)return[];let r=[];return(e.includes(Q0)?U0.expand(e):[e]).forEach(i=>{r.push(ie.relative(this.watchPath,i).split(K0))}),r}filterDir(e){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(e)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((n,o)=>(n===eF&&(s=!0),s||!r[0][o]||Zf(n,r[0][o],Jf))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},uc=class extends M0{constructor(e){super();let r={};e&&Object.assign(r,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,Rt(r,"persistent")&&(r.persistent=!0),Rt(r,"ignoreInitial")&&(r.ignoreInitial=!1),Rt(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),Rt(r,"interval")&&(r.interval=100),Rt(r,"binaryInterval")&&(r.binaryInterval=300),Rt(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,Rt(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),Ev.canUse()||(r.useFsEvents=!1),Rt(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=iF),nF&&(r.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let c=i.toLowerCase();c==="false"||c==="0"?r.usePolling=!1:c==="true"||c==="1"?r.usePolling=!0:r.usePolling=!!c}let n=process.env.CHOKIDAR_INTERVAL;n&&(r.interval=Number.parseInt(n,10)),Rt(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),Rt(r,"followSymlinks")&&(r.followSymlinks=!0),Rt(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let o=r.awaitWriteFinish;o&&(o.stabilityThreshold||(o.stabilityThreshold=2e3),o.pollInterval||(o.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=td(r.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=rF,this._readyEmitted=!0,process.nextTick(()=>this.emit(G0)))},this._emitRaw=(...c)=>this.emit(V0,...c),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new Ev(this):this._nodeFsHandler=new j0(this),Object.freeze(r)}add(e,r,s){let{cwd:i,disableGlobbing:n}=this.options;this.closed=!1;let o=Sv(e);return i&&(o=o.map(a=>{let c=cF(a,i);return n||!$f(a)?c:B0(c)})),o=o.filter(a=>a.startsWith(Qf)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+Xf),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=o.length),this.options.persistent&&(this._readyCount+=o.length),o.forEach(a=>this._fsEventsHandler._addToFsEvents(a))):(this._readyCount||(this._readyCount=0),this._readyCount+=o.length,Promise.all(o.map(async a=>{let c=await this._nodeFsHandler._addToNodeFs(a,!s,0,0,r);return c&&this._emitReady(),c})).then(a=>{this.closed||a.filter(c=>c).forEach(c=>{this.add(ie.dirname(c),ie.basename(r||c))})})),this}unwatch(e){if(this.closed)return this;let r=Sv(e),{cwd:s}=this.options;return r.forEach(i=>{!ie.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=ie.join(s,i)),i=ie.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Xf),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(r=>r.forEach(s=>{let i=s();i instanceof Promise&&e.push(i)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((r,s)=>{let i=this.options.cwd?ie.relative(this.options.cwd,s):s;e[i||Tv]=r.getChildren().sort()}),e}emitWithAll(e,r){this.emit(...r),e!==Kf&&this.emit(Yf,...r)}async _emit(e,r,s,i,n){if(this.closed)return;let o=this.options;sF&&(r=ie.normalize(r)),o.cwd&&(r=ie.relative(o.cwd,r));let a=[e,r];n!==void 0?a.push(s,i,n):i!==void 0?a.push(s,i):s!==void 0&&a.push(s);let c=o.awaitWriteFinish,u;if(c&&(u=this._pendingWrites.get(r)))return u.lastChange=new Date,this;if(o.atomic){if(e===gv)return this._pendingUnlinks.set(r,a),setTimeout(()=>{this._pendingUnlinks.forEach((l,f)=>{this.emit(...l),this.emit(Yf,...l),this._pendingUnlinks.delete(f)})},typeof o.atomic=="number"?o.atomic:100),this;e===cc&&this._pendingUnlinks.has(r)&&(e=a[0]=Nn,this._pendingUnlinks.delete(r))}if(c&&(e===cc||e===Nn)&&this._readyEmitted){let l=(f,d)=>{f?(e=a[0]=Kf,a[1]=f,this.emitWithAll(e,a)):d&&(a.length>2?a[2]=d:a.push(d),this.emitWithAll(e,a))};return this._awaitWriteFinish(r,c.stabilityThreshold,e,l),this}if(e===Nn&&!this._throttle(Nn,r,50))return this;if(o.alwaysStat&&s===void 0&&(e===cc||e===q0||e===Nn)){let l=o.cwd?ie.join(o.cwd,r):r,f;try{f=await oF(l)}catch{}if(!f||this.closed)return;a.push(f)}return this.emitWithAll(e,a),this}_handleError(e){let r=e&&e.code;return e&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(Kf,e),e||this.closed}_throttle(e,r,s){this._throttled.has(e)||this._throttled.set(e,new Map);let i=this._throttled.get(e),n=i.get(r);if(n)return n.count++,!1;let o,a=()=>{let u=i.get(r),l=u?u.count:0;return i.delete(r),clearTimeout(o),u&&clearTimeout(u.timeoutObject),l};o=setTimeout(a,s);let c={timeoutObject:o,clear:a,count:0};return i.set(r,c),c}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,r,s,i){let n,o=e;this.options.cwd&&!ie.isAbsolute(e)&&(o=ie.join(this.options.cwd,e));let a=new Date,c=u=>{id.stat(o,(l,f)=>{if(l||!this._pendingWrites.has(e)){l&&l.code!=="ENOENT"&&i(l);return}let d=Number(new Date);u&&f.size!==u.size&&(this._pendingWrites.get(e).lastChange=d);let E=this._pendingWrites.get(e);d-E.lastChange>=r?(this._pendingWrites.delete(e),i(void 0,f)):n=setTimeout(c,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:a,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(n),s)}),n=setTimeout(c,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,r){if(this.options.atomic&&z0.test(e))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,n=i&&i.map(Rv(s)),o=td(n).filter(c=>typeof c===nd&&!$f(c)).map(c=>c+Xf),a=this._getGlobIgnored().map(Rv(s)).concat(n,o);this._userIgnored=Zf(a,void 0,Jf)}return this._userIgnored([e,r])}_isntIgnored(e,r){return!this._isIgnored(e,r)}_getWatchHelpers(e,r){let s=r||this.options.disableGlobbing||!$f(e)?e:k0(e),i=this.options.followSymlinks;return new sd(e,s,i,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=ie.resolve(e);return this._watched.has(r)||this._watched.set(r,new rd(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let s=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(e,r,s){let i=ie.join(e,r),n=ie.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(n)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,r,!0),this._getWatchedDir(i).getChildren().forEach(d=>this._remove(i,d));let c=this._getWatchedDir(e),u=c.has(r);c.remove(r),this._symlinkPaths.has(n)&&this._symlinkPaths.delete(n);let l=i;if(this.options.cwd&&(l=ie.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(l)&&this._pendingWrites.get(l).cancelWait()===cc)return;this._watched.delete(i),this._watched.delete(n);let f=s?H0:gv;u&&!this._isIgnored(i)&&this._emit(f,i),this.options.useFsEvents||this._closePath(i)}_closePath(e){this._closeFile(e);let r=ie.dirname(e);this._getWatchedDir(r).remove(ie.basename(e))}_closeFile(e){let r=this._closers.get(e);r&&(r.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,r){if(!r)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(r)}_readdirp(e,r){if(this.closed)return;let s={type:Yf,alwaysStat:!0,lstat:!0,...r},i=F0(e,s);return this._streams.add(i),i.once(W0,()=>{i=void 0}),i.once($0,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};od.FSWatcher=uc;var hF=(t,e)=>{let r=new uc(e);return r.add(t),r};od.watch=hF});var ad=_((AW,Iv)=>{"use strict";h();function fF(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Iv.exports=fF});var Cv=_((NW,wv)=>{"use strict";h();var dF=typeof global=="object"&&global&&global.Object===Object&&global;wv.exports=dF});var cd=_((wW,Pv)=>{"use strict";h();var pF=Cv(),mF=typeof self=="object"&&self&&self.Object===Object&&self,_F=pF||mF||Function("return this")();Pv.exports=_F});var xv=_((PW,Dv)=>{"use strict";h();var EF=cd(),gF=function(){return EF.Date.now()};Dv.exports=gF});var Mv=_((xW,Lv)=>{"use strict";h();var yF=/\s/;function SF(t){for(var e=t.length;e--&&yF.test(t.charAt(e)););return e}Lv.exports=SF});var kv=_((MW,Fv)=>{"use strict";h();var OF=Mv(),RF=/^\s+/;function vF(t){return t&&t.slice(0,OF(t)+1).replace(RF,"")}Fv.exports=vF});var ud=_((kW,Uv)=>{"use strict";h();var TF=cd(),AF=TF.Symbol;Uv.exports=AF});var qv=_((BW,Gv)=>{"use strict";h();var Bv=ud(),jv=Object.prototype,bF=jv.hasOwnProperty,NF=jv.toString,In=Bv?Bv.toStringTag:void 0;function IF(t){var e=bF.call(t,In),r=t[In];try{t[In]=void 0;var s=!0}catch{}var i=NF.call(t);return s&&(e?t[In]=r:delete t[In]),i}Gv.exports=IF});var Vv=_((GW,Hv)=>{"use strict";h();var wF=Object.prototype,CF=wF.toString;function PF(t){return CF.call(t)}Hv.exports=PF});var Kv=_((HW,Yv)=>{"use strict";h();var Wv=ud(),DF=qv(),xF=Vv(),LF="[object Null]",MF="[object Undefined]",$v=Wv?Wv.toStringTag:void 0;function FF(t){return t==null?t===void 0?MF:LF:$v&&$v in Object(t)?DF(t):xF(t)}Yv.exports=FF});var Xv=_((WW,zv)=>{"use strict";h();function kF(t){return t!=null&&typeof t=="object"}zv.exports=kF});var Qv=_((YW,Zv)=>{"use strict";h();var UF=Kv(),BF=Xv(),jF="[object Symbol]";function GF(t){return typeof t=="symbol"||BF(t)&&UF(t)==jF}Zv.exports=GF});var rT=_((zW,tT)=>{"use strict";h();var qF=kv(),Jv=ad(),HF=Qv(),eT=NaN,VF=/^[-+]0x[0-9a-f]+$/i,WF=/^0b[01]+$/i,$F=/^0o[0-7]+$/i,YF=parseInt;function KF(t){if(typeof t=="number")return t;if(HF(t))return eT;if(Jv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Jv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=qF(t);var r=WF.test(t);return r||$F.test(t)?YF(t.slice(2),r?2:8):VF.test(t)?eT:+t}tT.exports=KF});var nT=_((ZW,iT)=>{"use strict";h();var zF=ad(),ld=xv(),sT=rT(),XF="Expected a function",ZF=Math.max,QF=Math.min;function JF(t,e,r){var s,i,n,o,a,c,u=0,l=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(XF);e=sT(e)||0,zF(r)&&(l=!!r.leading,f="maxWait"in r,n=f?ZF(sT(r.maxWait)||0,e):n,d="trailing"in r?!!r.trailing:d);function E(j){var U=s,D=i;return s=i=void 0,u=j,o=t.apply(D,U),o}function g(j){return u=j,a=setTimeout(b,e),l?E(j):o}function y(j){var U=j-c,D=j-u,Z=e-U;return f?QF(Z,n-D):Z}function A(j){var U=j-c,D=j-u;return c===void 0||U>=e||U<0||f&&D>=n}function b(){var j=ld();if(A(j))return M(j);a=setTimeout(b,y(j))}function M(j){return a=void 0,d&&s?E(j):(s=i=void 0,o)}function $(){a!==void 0&&clearTimeout(a),u=0,s=c=i=a=void 0}function de(){return a===void 0?o:M(ld())}function k(){var j=ld(),U=A(j);if(s=arguments,i=this,c=j,U){if(a===void 0)return g(c);if(f)return clearTimeout(a),a=setTimeout(b,e),E(c)}return a===void 0&&(a=setTimeout(b,e)),o}return k.cancel=$,k.flush=de,k}iT.exports=JF});h();var Sd=ve(Un(),1),{WError:$T}=Sd.default,J=class extends $T{cliCode;constructor(e){let r=e.cause instanceof Error?e.cause:new Error(JSON.stringify(e.cause));super({name:e.code.type,cause:r,info:e.info},e.code.type),this.cliCode=e.code,this.name=e.code.type}};h();var x=ve(_r(),1),Qn=(0,x.variant)({FailedToGetDeviceCode:{},FailedToGetAuthToken:{},FailedToRenewAuthToken:{},FailedToRefreshTokenForSite:{},FailedToRevokeRefreshToken:(0,x.fields)(),UnknownFailure:(0,x.fields)(),FailedToFetchPackageJson:{},FailedToGetDeveloperApps:{},FailedToUpdateTelemetryConfig:{},FailedToSyncToRevision:(0,x.fields)(),FailedToCreateVersion:{},FailedToReadCache:(0,x.fields)(),FailedToWriteCache:(0,x.fields)(),UploadApplicationFailed:{},FailedToCreateDevCenterApp:{},GridAppFailedToUpdateFiles:{},FailedToCreateGridApp:(0,x.fields)(),FailedToGetPackageDetails:{},InvalidCreateAppResponse:{},InvalidDeployAppResponse:{},InvalidGetDeploymentResponse:{},FailedToGetPagesDiff:{},InvalidViteBuildOutput:{},ViteModuleBundleNotFound:{},ViteFileNotFoundInOutput:(0,x.fields)(),FailedToCreatePresignedUrl:{},FailedToUploadApplicationFiles:{},FailedToVerifyDeployment:{},FailedToGetUserInfo:{},FailedToCreateDevelopmentSite:{},FailedToGetDevelopmentSites:{},FailedToGetDevelopmentSitesLimit:{},FailedToGetAppValidity:{},FailedToQuerySites:{},FailedToGetSite:{},FailedToDeploySite:{},FailedToPublishDeployment:{},FailedToCheckIfAppInstalled:{},TypeErrorInvalidUrl:{},FailedToGenerateSelfsignedCertificate:{},FailedToResolveViteOrigin:{},FailedToCreateAppRelease:{},FailedToUpdateAppRelease:{},FailedToGetResolveNpmDependenciesResult:{},FailedToResolveNpmDependencies:{},FailedToCheckDeprecatedStatus:{},FailedToCreateSiteOverride:{},FailedToGetDeploymentStatus:{},FailedToGetPipelineErrorInfo:{}}),Cc=(0,x.variant)({LatestVersionOfCreateAppRequired:(0,x.fields)(),EmptyDirectoryRequiredAppGeneration:(0,x.fields)(),InvalidNewPackageName:(0,x.fields)(),UnsupportedPackageManager:(0,x.fields)(),UnsupportedPackageManagerWorkspaces:(0,x.fields)(),FailedAddingPackageToWorkspace:{},SitePermissionDenied:(0,x.fields)(),AppPermissionDenied:(0,x.fields)(),BuiltProjectNeeded:{},UnsupportedWixInstallCommand:{},WixUninstallMissingPackageName:{},FailedToReadJson:(0,x.fields)(),FailedToWriteJson:(0,x.fields)(),InvalidJsonFile:(0,x.fields)(),FailedToWriteWixLock:{},InvalidVeloConfigJson:(0,x.fields)(),DashboardPageConfigNotFound:(0,x.fields)(),EmbeddedScriptConfigNotFound:(0,x.fields)(),NoExtensionsFound:{},CustomElementConfigNotFound:(0,x.fields)(),NoPagesDirectoryFound:(0,x.fields)(),DashboardPluginConfigNotFound:(0,x.fields)(),DashboardMenuPluginConfigNotFound:(0,x.fields)(),DashboardModalConfigNotFound:(0,x.fields)(),InvalidConfigSchemaError:(0,x.fields)(),InvalidParamsOverrideSchemaError:(0,x.fields)(),PermissionDenied:{},SiteSelectorTimedout:{},FailedToReadProjectFiles:(0,x.fields)(),FailedToCreateVersionForSubmittedApp:{},GridAppFilesMaxLengthExcceeded:(0,x.fields)(),DeviceCodeTimedOut:{},DuplicateComponentIdsError:(0,x.fields)(),FailedToSaveDevelopmentSite:(0,x.fields)(),FailedToBuildApp:{},FailedToInitializeGitRepo:(0,x.fields)(),FailedToInstallDependencies:(0,x.fields)(),FailedToCommitChanges:(0,x.fields)(),FailedToDeleteAuthData:(0,x.fields)(),FailedToDeleteLegacyAuthData:(0,x.fields)(),FailedToSaveAuthData:(0,x.fields)(),FailedToRenewAuthTokenSiteNotFound:(0,x.fields)(),FailedToInstallPackage:(0,x.fields)(),FailedToInstallPackages:(0,x.fields)(),FailedToUninstallPackage:(0,x.fields)(),FailedMigrationToAnyNpm:{},DeprecatedVersion:(0,x.fields)(),TemplatePathNotFound:(0,x.fields)(),FailedToCloneRepo:(0,x.fields)(),InvalidGitUrl:(0,x.fields)(),AuthenticationRequired:{},SiteConfiguredRequired:{},NonInteractiveTerminal:{},FailedToWatchFiles:(0,x.fields)(),CliAppVersionMismatch:(0,x.fields)()}),tb=(0,x.variant)({InvalidDashboardPageRoute:(0,x.fields)(),InvalidEmbeddedScriptFolder:(0,x.fields)(),InvalidEmbeddedScriptTemplate:(0,x.fields)(),InvalidCustomElementTagName:(0,x.fields)()}),ee=(0,x.variant)({...Qn,...Cc,...tb});h();h();var Pc=ve(_r(),1);function Jn(t){return t&&typeof t=="object"&&"cliCode"in t?(0,Pc.isOfVariant)(t.cliCode,ee):!1}function rb(t){return(0,Pc.isOfVariant)(t.cliCode,Qn)}h();var Hd=ve(_r(),1),Vd=ve(Un(),1);function Wd(t){if(Jn(t)&&(0,Hd.isOfVariant)(t.cliCode,Cc))return t;let e=Vd.default.cause(t);return e?Wd(e):null}function sb(t){let e=Jn(t)?t:new J({code:ee.UnknownFailure({error:t})});return Wd(e)??e}h();import{join as nb}from"node:path";h();import{join as ib}from"node:path";function $d(t=""){return ib(t,".wix")}var Ls="wix.config.json";function cB(t){return nb($d(t),"debug.log")}h();import Ck,{createContext as Pk,useContext as Dk,useState as OT,useEffect as xk}from"react";h();h();var co=ve(_r(),1);import{join as Te}from"node:path";h();var te;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let n={};for(let o of i)n[o]=o;return n},t.getValidEnumValues=i=>{let n=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of n)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(n){return i[n]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let n=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&n.push(o);return n},t.find=(i,n)=>{for(let o of i)if(n(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function s(i,n=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(n)}t.joinValues=s,t.jsonStringifyReplacer=(i,n)=>typeof n=="bigint"?n.toString():n})(te||(te={}));var xc;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(xc||(xc={}));var w=te.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Er=t=>{switch(typeof t){case"undefined":return w.undefined;case"string":return w.string;case"number":return isNaN(t)?w.nan:w.number;case"boolean":return w.boolean;case"function":return w.function;case"bigint":return w.bigint;case"symbol":return w.symbol;case"object":return Array.isArray(t)?w.array:t===null?w.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?w.promise:typeof Map<"u"&&t instanceof Map?w.map:typeof Set<"u"&&t instanceof Set?w.set:typeof Date<"u"&&t instanceof Date?w.date:w.object;default:return w.unknown}},N=te.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),ob=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ze=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(n){return n.message},s={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),s}toString(){return this.message}get message(){return JSON.stringify(this.issues,te.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},s=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):s.push(e(i));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}};ze.create=t=>new ze(t);var Fi=(t,e)=>{let r;switch(t.code){case N.invalid_type:t.received===w.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,te.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${te.joinValues(t.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${te.joinValues(t.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${te.joinValues(t.options)}, received '${t.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:te.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case N.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case N.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=e.defaultError,te.assertNever(t)}return{message:r}},zd=Fi;function ab(t){zd=t}function to(){return zd}var ro=t=>{let{data:e,path:r,errorMaps:s,issueData:i}=t,n=[...r,...i.path||[]],o={...i,path:n},a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:n,message:i.message||a}},cb=[];function P(t,e){let r=ro({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,to(),Fi].filter(s=>!!s)});t.common.issues.push(r)}var xe=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let s=[];for(let i of r){if(i.status==="aborted")return H;i.status==="dirty"&&e.dirty(),s.push(i.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,r){let s=[];for(let i of r)s.push({key:await i.key,value:await i.value});return t.mergeObjectSync(e,s)}static mergeObjectSync(e,r){let s={};for(let i of r){let{key:n,value:o}=i;if(n.status==="aborted"||o.status==="aborted")return H;n.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(s[n.value]=o.value)}return{status:e.value,value:s}}},H=Object.freeze({status:"aborted"}),Xd=t=>({status:"dirty",value:t}),Ge=t=>({status:"valid",value:t}),Lc=t=>t.status==="aborted",Mc=t=>t.status==="dirty",ki=t=>t.status==="valid",so=t=>typeof Promise<"u"&&t instanceof Promise,F;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(F||(F={}));var rt=class{constructor(e,r,s,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=s,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Yd=(t,e)=>{if(ki(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new ze(t.common.issues);return this._error=r,this._error}}};function V(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:s,description:i}=t;if(e&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:s??a.defaultError}:{message:r??a.defaultError},description:i}}var W=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Er(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Er(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new xe,ctx:{common:e.parent.common,data:e.data,parsedType:Er(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(so(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let s=this.safeParse(e,r);if(s.success)return s.data;throw s.error}safeParse(e,r){var s;let i={common:{issues:[],async:(s=r?.async)!==null&&s!==void 0?s:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Er(e)},n=this._parseSync({data:e,path:i.path,parent:i});return Yd(i,n)}async parseAsync(e,r){let s=await this.safeParseAsync(e,r);if(s.success)return s.data;throw s.error}async safeParseAsync(e,r){let s={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Er(e)},i=this._parse({data:e,path:s.path,parent:s}),n=await(so(i)?i:Promise.resolve(i));return Yd(s,n)}refine(e,r){let s=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,n)=>{let o=e(i),a=()=>n.addIssue({code:N.custom,...s(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((s,i)=>e(s)?!0:(i.addIssue(typeof r=="function"?r(s,i):r),!1))}_refinement(e){return new Xe({schema:this,typeName:B.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return mt.create(this,this._def)}nullable(){return Gt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Sr.create(this,this._def)}or(e){return ts.create([this,e],this._def)}and(e){return rs.create(this,e,this._def)}transform(e){return new Xe({...V(this._def),schema:this,typeName:B.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new as({...V(this._def),innerType:this,defaultValue:r,typeName:B.ZodDefault})}brand(){return new ao({typeName:B.ZodBranded,type:this,...V(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new js({...V(this._def),innerType:this,catchValue:r,typeName:B.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Ui.create(this,e)}readonly(){return qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},ub=/^c[^\s-]{8,}$/i,lb=/^[a-z][a-z0-9]*$/,hb=/^[0-9A-HJKMNP-TV-Z]{26}$/,fb=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,db=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Dc,mb=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,_b=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Eb=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function gb(t,e){return!!((e==="v4"||!e)&&mb.test(t)||(e==="v6"||!e)&&_b.test(t))}var gr=class t extends W{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==w.string){let n=this._getOrReturnCtx(e);return P(n,{code:N.invalid_type,expected:w.string,received:n.parsedType}),H}let s=new xe,i;for(let n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(i=this._getOrReturnCtx(e,i),P(i,{code:N.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(i=this._getOrReturnCtx(e,i),P(i,{code:N.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){let o=e.data.length>n.value,a=e.data.length<n.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?P(i,{code:N.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):a&&P(i,{code:N.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")db.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"email",code:N.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")Dc||(Dc=new RegExp(pb,"u")),Dc.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"emoji",code:N.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")fb.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"uuid",code:N.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")ub.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"cuid",code:N.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")lb.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"cuid2",code:N.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")hb.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"ulid",code:N.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),P(i,{validation:"url",code:N.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"regex",code:N.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(i=this._getOrReturnCtx(e,i),P(i,{code:N.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(i=this._getOrReturnCtx(e,i),P(i,{code:N.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(i=this._getOrReturnCtx(e,i),P(i,{code:N.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?Eb(n).test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{code:N.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="ip"?gb(e.data,n.version)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"ip",code:N.invalid_string,message:n.message}),s.dirty()):te.assertNever(n);return{status:s.value,value:e.data}}_regex(e,r,s){return this.refinement(i=>e.test(i),{validation:r,code:N.invalid_string,...F.errToObj(s)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...F.errToObj(e)})}url(e){return this._addCheck({kind:"url",...F.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...F.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...F.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...F.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...F.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...F.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...F.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(r=e?.offset)!==null&&r!==void 0?r:!1,...F.errToObj(e?.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...F.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...F.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...F.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...F.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...F.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...F.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...F.errToObj(r)})}nonempty(e){return this.min(1,F.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};gr.create=t=>{var e;return new gr({checks:[],typeName:B.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...V(t)})};function yb(t,e){let r=(t.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,i=r>s?r:s,n=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return n%o/Math.pow(10,i)}var zr=class t extends W{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==w.number){let n=this._getOrReturnCtx(e);return P(n,{code:N.invalid_type,expected:w.number,received:n.parsedType}),H}let s,i=new xe;for(let n of this._def.checks)n.kind==="int"?te.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),P(s,{code:N.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),P(s,{code:N.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),P(s,{code:N.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):n.kind==="multipleOf"?yb(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),P(s,{code:N.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),P(s,{code:N.not_finite,message:n.message}),i.dirty()):te.assertNever(n);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,F.toString(r))}gt(e,r){return this.setLimit("min",e,!1,F.toString(r))}lte(e,r){return this.setLimit("max",e,!0,F.toString(r))}lt(e,r){return this.setLimit("max",e,!1,F.toString(r))}setLimit(e,r,s,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:F.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:F.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:F.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:F.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:F.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:F.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:F.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:F.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:F.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:F.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&te.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(r)&&Number.isFinite(e)}};zr.create=t=>new zr({checks:[],typeName:B.ZodNumber,coerce:t?.coerce||!1,...V(t)});var Xr=class t extends W{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==w.bigint){let n=this._getOrReturnCtx(e);return P(n,{code:N.invalid_type,expected:w.bigint,received:n.parsedType}),H}let s,i=new xe;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),P(s,{code:N.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),P(s,{code:N.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),P(s,{code:N.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):te.assertNever(n);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,F.toString(r))}gt(e,r){return this.setLimit("min",e,!1,F.toString(r))}lte(e,r){return this.setLimit("max",e,!0,F.toString(r))}lt(e,r){return this.setLimit("max",e,!1,F.toString(r))}setLimit(e,r,s,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:F.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:F.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:F.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:F.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:F.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:F.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Xr.create=t=>{var e;return new Xr({checks:[],typeName:B.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...V(t)})};var Zr=class extends W{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==w.boolean){let s=this._getOrReturnCtx(e);return P(s,{code:N.invalid_type,expected:w.boolean,received:s.parsedType}),H}return Ge(e.data)}};Zr.create=t=>new Zr({typeName:B.ZodBoolean,coerce:t?.coerce||!1,...V(t)});var Qr=class t extends W{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==w.date){let n=this._getOrReturnCtx(e);return P(n,{code:N.invalid_type,expected:w.date,received:n.parsedType}),H}if(isNaN(e.data.getTime())){let n=this._getOrReturnCtx(e);return P(n,{code:N.invalid_date}),H}let s=new xe,i;for(let n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),P(i,{code:N.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(i=this._getOrReturnCtx(e,i),P(i,{code:N.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):te.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:F.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:F.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Qr.create=t=>new Qr({checks:[],coerce:t?.coerce||!1,typeName:B.ZodDate,...V(t)});var Fs=class extends W{_parse(e){if(this._getType(e)!==w.symbol){let s=this._getOrReturnCtx(e);return P(s,{code:N.invalid_type,expected:w.symbol,received:s.parsedType}),H}return Ge(e.data)}};Fs.create=t=>new Fs({typeName:B.ZodSymbol,...V(t)});var Jr=class extends W{_parse(e){if(this._getType(e)!==w.undefined){let s=this._getOrReturnCtx(e);return P(s,{code:N.invalid_type,expected:w.undefined,received:s.parsedType}),H}return Ge(e.data)}};Jr.create=t=>new Jr({typeName:B.ZodUndefined,...V(t)});var es=class extends W{_parse(e){if(this._getType(e)!==w.null){let s=this._getOrReturnCtx(e);return P(s,{code:N.invalid_type,expected:w.null,received:s.parsedType}),H}return Ge(e.data)}};es.create=t=>new es({typeName:B.ZodNull,...V(t)});var yr=class extends W{constructor(){super(...arguments),this._any=!0}_parse(e){return Ge(e.data)}};yr.create=t=>new yr({typeName:B.ZodAny,...V(t)});var Bt=class extends W{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ge(e.data)}};Bt.create=t=>new Bt({typeName:B.ZodUnknown,...V(t)});var _t=class extends W{_parse(e){let r=this._getOrReturnCtx(e);return P(r,{code:N.invalid_type,expected:w.never,received:r.parsedType}),H}};_t.create=t=>new _t({typeName:B.ZodNever,...V(t)});var ks=class extends W{_parse(e){if(this._getType(e)!==w.undefined){let s=this._getOrReturnCtx(e);return P(s,{code:N.invalid_type,expected:w.void,received:s.parsedType}),H}return Ge(e.data)}};ks.create=t=>new ks({typeName:B.ZodVoid,...V(t)});var jt=class t extends W{_parse(e){let{ctx:r,status:s}=this._processInputParams(e),i=this._def;if(r.parsedType!==w.array)return P(r,{code:N.invalid_type,expected:w.array,received:r.parsedType}),H;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(P(r,{code:o?N.too_big:N.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),s.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(P(r,{code:N.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),s.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(P(r,{code:N.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new rt(r,o,r.path,a)))).then(o=>xe.mergeArray(s,o));let n=[...r.data].map((o,a)=>i.type._parseSync(new rt(r,o,r.path,a)));return xe.mergeArray(s,n)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:F.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:F.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:F.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:B.ZodArray,...V(e)});function Ms(t){if(t instanceof He){let e={};for(let r in t.shape){let s=t.shape[r];e[r]=mt.create(Ms(s))}return new He({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:Ms(t.element)}):t instanceof mt?mt.create(Ms(t.unwrap())):t instanceof Gt?Gt.create(Ms(t.unwrap())):t instanceof At?At.create(t.items.map(e=>Ms(e))):t}var He=class t extends W{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=te.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==w.object){let u=this._getOrReturnCtx(e);return P(u,{code:N.invalid_type,expected:w.object,received:u.parsedType}),H}let{status:s,ctx:i}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof _t&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=n[u],f=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new rt(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof _t){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(P(i,{code:N.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let f=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new rt(i,f,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let f=await l.key;u.push({key:f,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>xe.mergeObjectSync(s,u)):xe.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(e){return F.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,s)=>{var i,n,o,a;let c=(o=(n=(i=this._def).errorMap)===null||n===void 0?void 0:n.call(i,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=F.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:B.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return te.objectKeys(e).forEach(s=>{e[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new t({...this._def,shape:()=>r})}omit(e){let r={};return te.objectKeys(this.shape).forEach(s=>{e[s]||(r[s]=this.shape[s])}),new t({...this._def,shape:()=>r})}deepPartial(){return Ms(this)}partial(e){let r={};return te.objectKeys(this.shape).forEach(s=>{let i=this.shape[s];e&&!e[s]?r[s]=i:r[s]=i.optional()}),new t({...this._def,shape:()=>r})}required(e){let r={};return te.objectKeys(this.shape).forEach(s=>{if(e&&!e[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof mt;)n=n._def.innerType;r[s]=n}}),new t({...this._def,shape:()=>r})}keyof(){return Zd(te.objectKeys(this.shape))}};He.create=(t,e)=>new He({shape:()=>t,unknownKeys:"strip",catchall:_t.create(),typeName:B.ZodObject,...V(e)});He.strictCreate=(t,e)=>new He({shape:()=>t,unknownKeys:"strict",catchall:_t.create(),typeName:B.ZodObject,...V(e)});He.lazycreate=(t,e)=>new He({shape:t,unknownKeys:"strip",catchall:_t.create(),typeName:B.ZodObject,...V(e)});var ts=class extends W{_parse(e){let{ctx:r}=this._processInputParams(e),s=this._def.options;function i(n){for(let a of n)if(a.result.status==="valid")return a.result;for(let a of n)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=n.map(a=>new ze(a.ctx.common.issues));return P(r,{code:N.invalid_union,unionErrors:o}),H}if(r.common.async)return Promise.all(s.map(async n=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await n._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let n,o=[];for(let c of s){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!n&&(n={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(n)return r.common.issues.push(...n.ctx.common.issues),n.result;let a=o.map(c=>new ze(c));return P(r,{code:N.invalid_union,unionErrors:a}),H}}get options(){return this._def.options}};ts.create=(t,e)=>new ts({options:t,typeName:B.ZodUnion,...V(e)});var eo=t=>t instanceof ss?eo(t.schema):t instanceof Xe?eo(t.innerType()):t instanceof is?[t.value]:t instanceof ns?t.options:t instanceof os?Object.keys(t.enum):t instanceof as?eo(t._def.innerType):t instanceof Jr?[void 0]:t instanceof es?[null]:null,io=class t extends W{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.object)return P(r,{code:N.invalid_type,expected:w.object,received:r.parsedType}),H;let s=this.discriminator,i=r.data[s],n=this.optionsMap.get(i);return n?r.common.async?n._parseAsync({data:r.data,path:r.path,parent:r}):n._parseSync({data:r.data,path:r.path,parent:r}):(P(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),H)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,s){let i=new Map;for(let n of r){let o=eo(n.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,n)}}return new t({typeName:B.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...V(s)})}};function Fc(t,e){let r=Er(t),s=Er(e);if(t===e)return{valid:!0,data:t};if(r===w.object&&s===w.object){let i=te.objectKeys(e),n=te.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of n){let c=Fc(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===w.array&&s===w.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let n=0;n<t.length;n++){let o=t[n],a=e[n],c=Fc(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===w.date&&s===w.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var rs=class extends W{_parse(e){let{status:r,ctx:s}=this._processInputParams(e),i=(n,o)=>{if(Lc(n)||Lc(o))return H;let a=Fc(n.value,o.value);return a.valid?((Mc(n)||Mc(o))&&r.dirty(),{status:r.value,value:a.data}):(P(s,{code:N.invalid_intersection_types}),H)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,o])=>i(n,o)):i(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};rs.create=(t,e,r)=>new rs({left:t,right:e,typeName:B.ZodIntersection,...V(r)});var At=class t extends W{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.array)return P(s,{code:N.invalid_type,expected:w.array,received:s.parsedType}),H;if(s.data.length<this._def.items.length)return P(s,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),H;!this._def.rest&&s.data.length>this._def.items.length&&(P(s,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let n=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new rt(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(n).then(o=>xe.mergeArray(r,o)):xe.mergeArray(r,n)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};At.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new At({items:t,typeName:B.ZodTuple,rest:null,...V(e)})};var no=class t extends W{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.object)return P(s,{code:N.invalid_type,expected:w.object,received:s.parsedType}),H;let i=[],n=this._def.keyType,o=this._def.valueType;for(let a in s.data)i.push({key:n._parse(new rt(s,a,s.path,a)),value:o._parse(new rt(s,s.data[a],s.path,a))});return s.common.async?xe.mergeObjectAsync(r,i):xe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,s){return r instanceof W?new t({keyType:e,valueType:r,typeName:B.ZodRecord,...V(s)}):new t({keyType:gr.create(),valueType:e,typeName:B.ZodRecord,...V(r)})}},Us=class extends W{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.map)return P(s,{code:N.invalid_type,expected:w.map,received:s.parsedType}),H;let i=this._def.keyType,n=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:i._parse(new rt(s,a,s.path,[u,"key"])),value:n._parse(new rt(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return H;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return H;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};Us.create=(t,e,r)=>new Us({valueType:e,keyType:t,typeName:B.ZodMap,...V(r)});var Bs=class t extends W{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.set)return P(s,{code:N.invalid_type,expected:w.set,received:s.parsedType}),H;let i=this._def;i.minSize!==null&&s.data.size<i.minSize.value&&(P(s,{code:N.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&s.data.size>i.maxSize.value&&(P(s,{code:N.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let n=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return H;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...s.data.values()].map((c,u)=>n._parse(new rt(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:F.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:F.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Bs.create=(t,e)=>new Bs({valueType:t,minSize:null,maxSize:null,typeName:B.ZodSet,...V(e)});var oo=class t extends W{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.function)return P(r,{code:N.invalid_type,expected:w.function,received:r.parsedType}),H;function s(a,c){return ro({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,to(),Fi].filter(u=>!!u),issueData:{code:N.invalid_arguments,argumentsError:c}})}function i(a,c){return ro({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,to(),Fi].filter(u=>!!u),issueData:{code:N.invalid_return_type,returnTypeError:c}})}let n={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Sr){let a=this;return Ge(async function(...c){let u=new ze([]),l=await a._def.args.parseAsync(c,n).catch(E=>{throw u.addIssue(s(c,E)),u}),f=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(f,n).catch(E=>{throw u.addIssue(i(f,E)),u})})}else{let a=this;return Ge(function(...c){let u=a._def.args.safeParse(c,n);if(!u.success)throw new ze([s(c,u.error)]);let l=Reflect.apply(o,this,u.data),f=a._def.returns.safeParse(l,n);if(!f.success)throw new ze([i(l,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:At.create(e).rest(Bt.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,s){return new t({args:e||At.create([]).rest(Bt.create()),returns:r||Bt.create(),typeName:B.ZodFunction,...V(s)})}},ss=class extends W{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};ss.create=(t,e)=>new ss({getter:t,typeName:B.ZodLazy,...V(e)});var is=class extends W{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return P(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),H}return{status:"valid",value:e.data}}get value(){return this._def.value}};is.create=(t,e)=>new is({value:t,typeName:B.ZodLiteral,...V(e)});function Zd(t,e){return new ns({values:t,typeName:B.ZodEnum,...V(e)})}var ns=class t extends W{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),s=this._def.values;return P(r,{expected:te.joinValues(s),received:r.parsedType,code:N.invalid_type}),H}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),s=this._def.values;return P(r,{received:r.data,code:N.invalid_enum_value,options:s}),H}return Ge(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return t.create(e)}exclude(e){return t.create(this.options.filter(r=>!e.includes(r)))}};ns.create=Zd;var os=class extends W{_parse(e){let r=te.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==w.string&&s.parsedType!==w.number){let i=te.objectValues(r);return P(s,{expected:te.joinValues(i),received:s.parsedType,code:N.invalid_type}),H}if(r.indexOf(e.data)===-1){let i=te.objectValues(r);return P(s,{received:s.data,code:N.invalid_enum_value,options:i}),H}return Ge(e.data)}get enum(){return this._def.values}};os.create=(t,e)=>new os({values:t,typeName:B.ZodNativeEnum,...V(e)});var Sr=class extends W{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.promise&&r.common.async===!1)return P(r,{code:N.invalid_type,expected:w.promise,received:r.parsedType}),H;let s=r.parsedType===w.promise?r.data:Promise.resolve(r.data);return Ge(s.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Sr.create=(t,e)=>new Sr({type:t,typeName:B.ZodPromise,...V(e)});var Xe=class extends W{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===B.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:s}=this._processInputParams(e),i=this._def.effect||null,n={addIssue:o=>{P(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),i.type==="preprocess"){let o=i.transform(s.data,n);return s.common.issues.length?{status:"dirty",value:s.data}:s.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:s.path,parent:s})):this._def.schema._parseSync({data:o,path:s.path,parent:s})}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,n);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?H:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?H:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ki(o))return o;let a=i.transform(o.value,n);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>ki(o)?Promise.resolve(i.transform(o.value,n)).then(a=>({status:r.value,value:a})):o);te.assertNever(i)}};Xe.create=(t,e,r)=>new Xe({schema:t,typeName:B.ZodEffects,effect:e,...V(r)});Xe.createWithPreprocess=(t,e,r)=>new Xe({schema:e,effect:{type:"preprocess",transform:t},typeName:B.ZodEffects,...V(r)});var mt=class extends W{_parse(e){return this._getType(e)===w.undefined?Ge(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};mt.create=(t,e)=>new mt({innerType:t,typeName:B.ZodOptional,...V(e)});var Gt=class extends W{_parse(e){return this._getType(e)===w.null?Ge(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Gt.create=(t,e)=>new Gt({innerType:t,typeName:B.ZodNullable,...V(e)});var as=class extends W{_parse(e){let{ctx:r}=this._processInputParams(e),s=r.data;return r.parsedType===w.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};as.create=(t,e)=>new as({innerType:t,typeName:B.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...V(e)});var js=class extends W{_parse(e){let{ctx:r}=this._processInputParams(e),s={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return so(i)?i.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new ze(s.common.issues)},input:s.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ze(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};js.create=(t,e)=>new js({innerType:t,typeName:B.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...V(e)});var Gs=class extends W{_parse(e){if(this._getType(e)!==w.nan){let s=this._getOrReturnCtx(e);return P(s,{code:N.invalid_type,expected:w.nan,received:s.parsedType}),H}return{status:"valid",value:e.data}}};Gs.create=t=>new Gs({typeName:B.ZodNaN,...V(t)});var Sb=Symbol("zod_brand"),ao=class extends W{_parse(e){let{ctx:r}=this._processInputParams(e),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}},Ui=class t extends W{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?H:n.status==="dirty"?(r.dirty(),Xd(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{let i=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?H:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:s.path,parent:s})}}static create(e,r){return new t({in:e,out:r,typeName:B.ZodPipeline})}},qs=class extends W{_parse(e){let r=this._def.innerType._parse(e);return ki(r)&&(r.value=Object.freeze(r.value)),r}};qs.create=(t,e)=>new qs({innerType:t,typeName:B.ZodReadonly,...V(e)});var Qd=(t,e={},r)=>t?yr.create().superRefine((s,i)=>{var n,o;if(!t(s)){let a=typeof e=="function"?e(s):typeof e=="string"?{message:e}:e,c=(o=(n=a.fatal)!==null&&n!==void 0?n:r)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...u,fatal:c})}}):yr.create(),Ob={object:He.lazycreate},B;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(B||(B={}));var Rb=(t,e={message:`Input not instance of ${t.name}`})=>Qd(r=>r instanceof t,e),Jd=gr.create,ep=zr.create,vb=Gs.create,Tb=Xr.create,tp=Zr.create,Ab=Qr.create,bb=Fs.create,Nb=Jr.create,Ib=es.create,wb=yr.create,Cb=Bt.create,Pb=_t.create,Db=ks.create,xb=jt.create,Lb=He.create,Mb=He.strictCreate,Fb=ts.create,kb=io.create,Ub=rs.create,Bb=At.create,jb=no.create,Gb=Us.create,qb=Bs.create,Hb=oo.create,Vb=ss.create,Wb=is.create,$b=ns.create,Yb=os.create,Kb=Sr.create,Kd=Xe.create,zb=mt.create,Xb=Gt.create,Zb=Xe.createWithPreprocess,Qb=Ui.create,Jb=()=>Jd().optional(),eN=()=>ep().optional(),tN=()=>tp().optional(),rN={string:t=>gr.create({...t,coerce:!0}),number:t=>zr.create({...t,coerce:!0}),boolean:t=>Zr.create({...t,coerce:!0}),bigint:t=>Xr.create({...t,coerce:!0}),date:t=>Qr.create({...t,coerce:!0})},sN=H,v=Object.freeze({__proto__:null,defaultErrorMap:Fi,setErrorMap:ab,getErrorMap:to,makeIssue:ro,EMPTY_PATH:cb,addIssueToContext:P,ParseStatus:xe,INVALID:H,DIRTY:Xd,OK:Ge,isAborted:Lc,isDirty:Mc,isValid:ki,isAsync:so,get util(){return te},get objectUtil(){return xc},ZodParsedType:w,getParsedType:Er,ZodType:W,ZodString:gr,ZodNumber:zr,ZodBigInt:Xr,ZodBoolean:Zr,ZodDate:Qr,ZodSymbol:Fs,ZodUndefined:Jr,ZodNull:es,ZodAny:yr,ZodUnknown:Bt,ZodNever:_t,ZodVoid:ks,ZodArray:jt,ZodObject:He,ZodUnion:ts,ZodDiscriminatedUnion:io,ZodIntersection:rs,ZodTuple:At,ZodRecord:no,ZodMap:Us,ZodSet:Bs,ZodFunction:oo,ZodLazy:ss,ZodLiteral:is,ZodEnum:ns,ZodNativeEnum:os,ZodPromise:Sr,ZodEffects:Xe,ZodTransformer:Xe,ZodOptional:mt,ZodNullable:Gt,ZodDefault:as,ZodCatch:js,ZodNaN:Gs,BRAND:Sb,ZodBranded:ao,ZodPipeline:Ui,ZodReadonly:qs,custom:Qd,Schema:W,ZodSchema:W,late:Ob,get ZodFirstPartyTypeKind(){return B},coerce:rN,any:wb,array:xb,bigint:Tb,boolean:tp,date:Ab,discriminatedUnion:kb,effect:Kd,enum:$b,function:Hb,instanceof:Rb,intersection:Ub,lazy:Vb,literal:Wb,map:Gb,nan:vb,nativeEnum:Yb,never:Pb,null:Ib,nullable:Xb,number:ep,object:Lb,oboolean:tN,onumber:eN,optional:zb,ostring:Jb,pipeline:Qb,preprocess:Zb,promise:Kb,record:jb,set:qb,strictObject:Mb,string:Jd,symbol:bb,transformer:Kd,tuple:Bb,undefined:Nb,union:Fb,unknown:Cb,void:Db,NEVER:sN,ZodIssueCode:N,quotelessJson:ob,ZodError:ze});h();var rp;(function(t){t.NONE="NONE",t.STUDIO="STUDIO",t.PLATFORM="PLATFORM",t.WORKER="WORKER",t.DASHBOARD="DASHBOARD",t.WIDGET="WIDGET",t.PAGE="PAGE",t.DASHBOARD_PLATFORM="DASHBOARD_PLATFORM",t.STUDIO_WIDGET="STUDIO_WIDGET",t.EMBEDDED_SCRIPT="EMBEDDED_SCRIPT",t.EXTENSION="EXTENSION",t.SNIPPET_SOLUTION="SNIPPET_SOLUTION",t.DATA_COMPONENT="DATA_COMPONENT",t.WEB="WEB",t.DC_CONFIG="DC_CONFIG",t.WIDGET_OUT_OF_IFRAME="WIDGET_OUT_OF_IFRAME",t.PAGE_OUT_OF_IFRAME="PAGE_OUT_OF_IFRAME",t.STATIC_FILE="STATIC_FILE",t.APP_CONFIG="APP_CONFIG",t.MULTIPLE_DASHBOARDS="MULTIPLE_DASHBOARDS",t.PAYMENTS_GATEWAY="PAYMENTS_GATEWAY",t.CODE_PACKAGE="CODE_PACKAGE",t.AUTOMATION_TRIGGER="AUTOMATION_TRIGGER",t.INVOICES_ACTIONS="INVOICES_ACTIONS",t.DASHBOARD_APPLICATION="DASHBOARD_APPLICATION",t.CONTACT_LABELS="CONTACT_LABELS",t.WIDGET_PLUGIN="WIDGET_PLUGIN",t.CROSS_SELL="CROSS_SELL",t.LOCAL_DELIVERY="LOCAL_DELIVERY",t.PAYMENT_PROVIDER="PAYMENT_PROVIDER",t.ECOM_MEMBERSHIPS="ECOM_MEMBERSHIPS",t.ECOM_LINE_ITEMS_ENRICHER="ECOM_LINE_ITEMS_ENRICHER",t.ECOM_SHIPPING_RATES="ECOM_SHIPPING_RATES",t.SHIPPING_LABEL_CARRIER="SHIPPING_LABEL_CARRIER",t.RESTAURANTS_POS="RESTAURANTS_POS",t.FICTIONAL_SHIPPING_PROVIDER="FICTIONAL_SHIPPING_PROVIDER",t.ALERT_ENRICHER="ALERT_ENRICHER",t.DATA_EXTENSIONS="DATA_EXTENSIONS",t.GENERIC_HOOKS="GENERIC_HOOKS",t.AUTOMATIONS_ACTION_PROVIDER="AUTOMATIONS_ACTION_PROVIDER",t.ECOM_CATALOG="ECOM_CATALOG",t.BACK_OFFICE_EXTENSION_CONTAINER="BACK_OFFICE_EXTENSION_CONTAINER",t.BACK_OFFICE_EXTENSION="BACK_OFFICE_EXTENSION",t.AUTOMATIONS_TRIGGER_PROVIDER="AUTOMATIONS_TRIGGER_PROVIDER",t.IDENTITY_PRE_REGISTRATION="IDENTITY_PRE_REGISTRATION",t.PREMIUM_PRODUCTS_PATHS="PREMIUM_PRODUCTS_PATHS",t.ECOM_CUSTOM_SCOPE="ECOM_CUSTOM_SCOPE",t.GIFT_CARDS_PROVIDER="GIFT_CARDS_PROVIDER",t.DEALER_EXTERNAL_FILTER_PROVIDER="DEALER_EXTERNAL_FILTER_PROVIDER",t.ECOM_DROPSHIPPING_PROVIDER="ECOM_DROPSHIPPING_PROVIDER",t.INVOICES_PROVIDER="INVOICES_PROVIDER",t.SEO_KEYWORDS_SUGGESTIONS="SEO_KEYWORDS_SUGGESTIONS",t.ECOM_DISCOUNTS_TRIGGER="ECOM_DISCOUNTS_TRIGGER",t.MULTILINGUAL_CONTENT_PROVIDER="MULTILINGUAL_CONTENT_PROVIDER",t.APPLICATION_AUTOMATION="APPLICATION_AUTOMATION",t.BACK_OFFICE_SIDEBAR_CATEGORY="BACK_OFFICE_SIDEBAR_CATEGORY",t.BACK_OFFICE_PAGE="BACK_OFFICE_PAGE",t.ECOM_ADDITIONAL_FEES="ECOM_ADDITIONAL_FEES",t.PING_USER_NOTIFICATION="PING_USER_NOTIFICATION",t.ECOM_RECOMMENDATIONS_PROVIDER="ECOM_RECOMMENDATIONS_PROVIDER",t.BOOKINGS_PRICING_PROVIDER="BOOKINGS_PRICING_PROVIDER",t.IDENTITY_AUTHENTICATOR="IDENTITY_AUTHENTICATOR",t.IDENTITY_IDP_CONNECTOR="IDENTITY_IDP_CONNECTOR",t.ITEMS_SELECTION_PROVIDER="ITEMS_SELECTION_PROVIDER",t.PORTFOLIO_SYNCED_PROJECTS_PROVIDER="PORTFOLIO_SYNCED_PROJECTS_PROVIDER",t.COMMUNICATION_CHANNEL="COMMUNICATION_CHANNEL",t.IDENTITY_POST_LOGIN="IDENTITY_POST_LOGIN",t.BACK_OFFICE_WIDGET="BACK_OFFICE_WIDGET",t.SOCIAL_MARKETING_DESIGN="SOCIAL_MARKETING_DESIGN",t.FORMS_SUBMISSIONS_PROVIDER="FORMS_SUBMISSIONS_PROVIDER",t.WIX_OFFERING="WIX_OFFERING",t.DEV_CENTER_TESTING_COMPONENT="DEV_CENTER_TESTING_COMPONENT",t.COMPONENTS_VALIDATOR_PROVIDER="COMPONENTS_VALIDATOR_PROVIDER",t.COMPONENTS_TRANSLATIONS_ADDITIONAL_FIELDS_PROVIDER="COMPONENTS_TRANSLATIONS_ADDITIONAL_FIELDS_PROVIDER",t.FORMS_SCHEMA_PROVIDER="FORMS_SCHEMA_PROVIDER",t.BOOKINGS_EXTERNAL_CALENDAR_PROVIDER="BOOKINGS_EXTERNAL_CALENDAR_PROVIDER",t.ECOM_DEFAULT_TAXATION_CATEGORY="ECOM_DEFAULT_TAXATION_CATEGORY",t.VIEWER_DYNAMIC_SITE_STRUCTURE_PROVIDER="VIEWER_DYNAMIC_SITE_STRUCTURE_PROVIDER",t.PING_UOU_NOTIFICATION="PING_UOU_NOTIFICATION",t.HEADLESS_OAUTH="HEADLESS_OAUTH",t.ECOM_TAX_CALCULATOR_SPI="ECOM_TAX_CALCULATOR_SPI",t.COMMENTS_MODERATION_PROVIDER="COMMENTS_MODERATION_PROVIDER",t.GRID_APP_FILES_TRANSFORMER="GRID_APP_FILES_TRANSFORMER",t.BENEFIT_PROGRAMS_POLICY_PROVIDER="BENEFIT_PROGRAMS_POLICY_PROVIDER",t.PREMIUM_CUSTOM_CHARGES="PREMIUM_CUSTOM_CHARGES",t.ECOM_VALIDATIONS="ECOM_VALIDATIONS",t.COMPONENT_REFERENCE_DATA_PROVIDER="COMPONENT_REFERENCE_DATA_PROVIDER",t.WIX_REVIEWS_PRODUCT_CATALOG="WIX_REVIEWS_PRODUCT_CATALOG",t.SOCIAL_MARKETING_DESIGNS_PROVIDER="SOCIAL_MARKETING_DESIGNS_PROVIDER",t.GOOGLE_BUSINESS_PROFILE_FEATURE_PROVIDER="GOOGLE_BUSINESS_PROFILE_FEATURE_PROVIDER",t.COMMENTS_FILTER_PROVIDER="COMMENTS_FILTER_PROVIDER",t.BILLING_TAX_ID_VALIDATOR="BILLING_TAX_ID_VALIDATOR",t.PING_SETTINGS_GROUP="PING_SETTINGS_GROUP",t.FORMS_SPAM_SUBMISSIONS_PROVIDER="FORMS_SPAM_SUBMISSIONS_PROVIDER",t.EDITOR_ADDON="EDITOR_ADDON",t.EXTERNAL_DATABASE_PROVIDER="EXTERNAL_DATABASE_PROVIDER",t.ECOM_PAYMENT_SETTINGS="ECOM_PAYMENT_SETTINGS",t.NOTIFICATION_TOPIC="NOTIFICATION_TOPIC",t.NOTIFICATION_PREFERENCES_FILTER_PROVIDER="NOTIFICATION_PREFERENCES_FILTER_PROVIDER",t.BOOKINGS_RESOURCE_TYPES_PROVIDER="BOOKINGS_RESOURCE_TYPES_PROVIDER",t.PRICING_PLANS_FORM_CONFIGURATION="PRICING_PLANS_FORM_CONFIGURATION",t.USER_NOTIFICATION="USER_NOTIFICATION",t.CONTACT_NOTIFICATION="CONTACT_NOTIFICATION",t.UNIFIED_PAGE="UNIFIED_PAGE",t.AVAILABILITY_TIME_SLOTS_CONFIGURATION_PROVIDER="AVAILABILITY_TIME_SLOTS_CONFIGURATION_PROVIDER",t.PROPOSAL_EDITOR_PROVIDER="PROPOSAL_EDITOR_PROVIDER",t.CUSTOM_TABLE_RESERVATIONS_PROVIDER="CUSTOM_TABLE_RESERVATIONS_PROVIDER",t.COMMENTS_CONTEXT_PROVIDER="COMMENTS_CONTEXT_PROVIDER",t.FORMS_SPAM_SUBMISSION_REPORTS_PROVIDER="FORMS_SPAM_SUBMISSION_REPORTS_PROVIDER",t.AUTOMATIONS_VELO_ACTION_PROVIDER="AUTOMATIONS_VELO_ACTION_PROVIDER",t.CALENDAR_EVENT_TYPE_PROVIDER="CALENDAR_EVENT_TYPE_PROVIDER",t.RESERVED="RESERVED",t.SMS_ACTION_MESSAGE="SMS_ACTION_MESSAGE",t.BOOKING_POLICY_PROVIDER="BOOKING_POLICY_PROVIDER",t.MULTI_SERVICE_BOOKING_POLICY_PROVIDER="MULTI_SERVICE_BOOKING_POLICY_PROVIDER",t.AI_ASSISTANT="AI_ASSISTANT",t.FORMS_SUBMISSIONS_EXTENSION_PROVIDER="FORMS_SUBMISSIONS_EXTENSION_PROVIDER",t.MULTILINGUAL_TRANSLATION_SCHEMA="MULTILINGUAL_TRANSLATION_SCHEMA",t.TAX_CALCULATION_PROVIDER="TAX_CALCULATION_PROVIDER",t.TAX_GROUPS_PROVIDER="TAX_GROUPS_PROVIDER",t.BACK_OFFICE_MODAL="BACK_OFFICE_MODAL",t.DEPLOYMENT_PIPELINE_PROVIDER="DEPLOYMENT_PIPELINE_PROVIDER",t.CUSTOM_ELEMENT_WIDGET="CUSTOM_ELEMENT_WIDGET",t.BACK_OFFICE_EXTENSION_WIDGET="BACK_OFFICE_EXTENSION_WIDGET",t.BACK_OFFICE_EXTENSION_MENU_ITEM="BACK_OFFICE_EXTENSION_MENU_ITEM",t.FORM_TEMPLATE="FORM_TEMPLATE",t.NOTIFICATION_CONTENT="NOTIFICATION_CONTENT",t.BROADCAST_LIST="BROADCAST_LIST",t.PARTNERS_PAYOUTS="PARTNERS_PAYOUTS"})(rp||(rp={}));var sp;(function(t){t.NONE_VERTICAL="NONE_VERTICAL",t.TOP="TOP",t.CENTER_VERTICAL="CENTER_VERTICAL",t.BOTTOM="BOTTOM"})(sp||(sp={}));var ip;(function(t){t.NONE_HORIZONTAL="NONE_HORIZONTAL",t.LEFT="LEFT",t.CENTER_HORIZONTAL="CENTER_HORIZONTAL",t.RIGHT="RIGHT"})(ip||(ip={}));var np;(function(t){t.NONE_TYPE="NONE_TYPE",t.CUSTOM="CUSTOM",t.FULL="FULL"})(np||(np={}));var op;(function(t){t.no_region="no_region",t.header="header",t.pageContainer="pageContainer",t.footer="footer"})(op||(op={}));var ap;(function(t){t.NO_UNIT="NO_UNIT",t.AUTO="AUTO",t.PX="PX",t.VH="VH",t.VW="VW",t.PERCENTAGE="PERCENTAGE"})(ap||(ap={}));var cp;(function(t){t.NO_HDOCKING="NO_HDOCKING",t.LEFT_DOCKING="LEFT_DOCKING",t.HCENTER="HCENTER",t.RIGHT_DOCKING="RIGHT_DOCKING"})(cp||(cp={}));var up;(function(t){t.NO_VDOCKING="NO_VDOCKING",t.TOP_DOCKING="TOP_DOCKING",t.VCENTER="VCENTER",t.BOTTOM_DOCKING="BOTTOM_DOCKING"})(up||(up={}));var lp;(function(t){t.UNKNOWN_REPLACEMENT="UNKNOWN_REPLACEMENT",t.REPLACING="REPLACING",t.REPLACEABLE="REPLACEABLE"})(lp||(lp={}));var hp;(function(t){t.NONE_INTERFACE="NONE_INTERFACE",t.REVIEWS="REVIEWS",t.RATINGS_SUMMARY="RATINGS_SUMMARY",t.RATINGS_SUMMARY_OOI_LIST="RATINGS_SUMMARY_OOI_LIST",t.BOOKINGS_SERVICE="BOOKINGS_SERVICE",t.BOOKINGS_FORM="BOOKINGS_FORM",t.BASE="BASE",t.EVENT="EVENT",t.PRODUCT="PRODUCT",t.CHECKOUT="CHECKOUT",t.CATEGORY="CATEGORY"})(hp||(hp={}));var fp;(function(t){t.NO_PAGE="NO_PAGE",t.CURRENT="CURRENT",t.PAGE="PAGE",t.LIGHTBOX="LIGHTBOX"})(fp||(fp={}));var dp;(function(t){t.HEADER="HEADER",t.BODY="BODY",t.FOOTER="FOOTER"})(dp||(dp={}));var pp;(function(t){t.NONE_PAGES="NONE_PAGES",t.ONCE="ONCE",t.SPECIFIC_PAGES="SPECIFIC_PAGES"})(pp||(pp={}));var Hs;(function(t){t.NONE_PLACEMENT="NONE_PLACEMENT",t.HEAD="HEAD",t.BODY_START="BODY_START",t.BODY_END="BODY_END"})(Hs||(Hs={}));var cs;(function(t){t.UNKNOWN="UNKNOWN",t.ESSENTIAL="ESSENTIAL",t.FUNCTIONAL="FUNCTIONAL",t.ANALYTICS="ANALYTICS",t.ADVERTISING="ADVERTISING"})(cs||(cs={}));var mp;(function(t){t.BACKGROUND="BACKGROUND",t.SECONDARY_TEXTS="SECONDARY_TEXTS",t.MAIN_TEXT_AND_ICONS="MAIN_TEXT_AND_ICONS",t.BORDERS_AND_DIVIDERS="BORDERS_AND_DIVIDERS",t.BUTTONS_AND_LINKS="BUTTONS_AND_LINKS"})(mp||(mp={}));var _p;(function(t){t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t.XLARGE="XLARGE"})(_p||(_p={}));var Ep;(function(t){t.ALIGN_LEFT="ALIGN_LEFT",t.ALIGN_CENTER="ALIGN_CENTER",t.ALIGN_RIGHT="ALIGN_RIGHT"})(Ep||(Ep={}));var gp;(function(t){t.TITLE="TITLE",t.PARAGRAPH="PARAGRAPH",t.LOWER_HIERARCHY_TEXTS="LOWER_HIERARCHY_TEXTS"})(gp||(gp={}));var yp;(function(t){t.WIDGET="WIDGET",t.PAGE="PAGE"})(yp||(yp={}));var Sp;(function(t){t.NO_SCRIPT_TYPE="NO_SCRIPT_TYPE",t.MODULE="MODULE"})(Sp||(Sp={}));var Op;(function(t){t.NONE_EXTENSION="NONE_EXTENSION",t.PAYMENTS_GATEWAY_EXTENSION="PAYMENTS_GATEWAY_EXTENSION",t.COUPONS_EXTENSION="COUPONS_EXTENSION",t.DROPSHIPPING_EXTENSION="DROPSHIPPING_EXTENSION",t.FULFILMENT_EXTENSION="FULFILMENT_EXTENSION",t.DROPSHIPPING_SUPPLIER_EXTENSION="DROPSHIPPING_SUPPLIER_EXTENSION",t.FULFILLMENT_CENTER_EXTENSION="FULFILLMENT_CENTER_EXTENSION",t.RESTAURANTS_POS_EXTENSION="RESTAURANTS_POS_EXTENSION",t.ART_STORE_EXTENSION="ART_STORE_EXTENSION",t.ASCEND_AUTOMATION_EXTENSION="ASCEND_AUTOMATION_EXTENSION",t.CONTACT_LABELS_EXTENSION="CONTACT_LABELS_EXTENSION"})(Op||(Op={}));var Rp;(function(t){t.UNKNOWN_PRIMITIVE_TYPE="UNKNOWN_PRIMITIVE_TYPE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER"})(Rp||(Rp={}));var vp;(function(t){t.UNKNOWN_SIMPLE_TYPE="UNKNOWN_SIMPLE_TYPE",t.MONEY="MONEY",t.LINK="LINK",t.BACKOFFICE_LINK="BACKOFFICE_LINK",t.LIVESITE_LINK="LIVESITE_LINK",t.MULTILINGUAL="MULTILINGUAL",t.IMAGE_LINK="IMAGE_LINK",t.GUID="GUID",t.EMAIL="EMAIL",t.PHONE="PHONE",t.CONTACT_ID="CONTACT_ID"})(vp||(vp={}));var Tp;(function(t){t.UNKNOWN_EXPOSURE="UNKNOWN_EXPOSURE",t.SETUP="SETUP",t.HIDDEN="HIDDEN",t.EXPOSED="EXPOSED"})(Tp||(Tp={}));var Ap;(function(t){t.UNDEFINED="UNDEFINED",t.ALLOW="ALLOW",t.DISALLOW="DISALLOW"})(Ap||(Ap={}));var bp;(function(t){t.BUSINESS_MANAGER="BUSINESS_MANAGER",t.BUSINESS_DASHBOARD_HOST="BUSINESS_DASHBOARD_HOST",t.SIDEBAR_FOOTER="SIDEBAR_FOOTER"})(bp||(bp={}));var Np;(function(t){t.ZIPCODE="ZIPCODE",t.CITY="CITY",t.STATE="STATE",t.ADDRESS="ADDRESS",t.COUNTRY_CODE="COUNTRY_CODE",t.EMAIL="EMAIL",t.PHONE="PHONE",t.FIRST_NAME="FIRST_NAME",t.LAST_NAME="LAST_NAME",t.STREET="STREET",t.HOUSE_NUMBER="HOUSE_NUMBER",t.TAX_IDENTIFIER="TAX_IDENTIFIER"})(Np||(Np={}));var Ip;(function(t){t.Metric="Metric",t.Imperial="Imperial"})(Ip||(Ip={}));var wp;(function(t){t.WIX="WIX",t.POS="POS"})(wp||(wp={}));var Cp;(function(t){t.UNDEFINED="UNDEFINED",t.BEFORE_BLOCKING="BEFORE_BLOCKING",t.BEFORE="BEFORE",t.AFTER="AFTER"})(Cp||(Cp={}));var Pp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIDGET_COMPONENT="WIDGET_COMPONENT",t.GENERIC="GENERIC"})(Pp||(Pp={}));var Dp;(function(t){t.UNKNOWN_EXECUTION_TYPE="UNKNOWN_EXECUTION_TYPE",t.SYNC="SYNC",t.ASYNC="ASYNC"})(Dp||(Dp={}));var xp;(function(t){t.INVALID="INVALID",t.BACK_OFFICE_MENU_ITEM="BACK_OFFICE_MENU_ITEM",t.BACK_OFFICE_EXTENSION_WIDGET="BACK_OFFICE_EXTENSION_WIDGET"})(xp||(xp={}));var Lp;(function(t){t.NO_HOSTING_PLATFORM="NO_HOSTING_PLATFORM",t.BUSINESS_MANAGER="BUSINESS_MANAGER",t.ACCOUNT_MANAGER="ACCOUNT_MANAGER",t.DEV_CENTER="DEV_CENTER",t.ENTERPRISE="ENTERPRISE",t.PARTNERS_DASHBOARD="PARTNERS_DASHBOARD",t.FINANCIALS_INTERNAL_BO="FINANCIALS_INTERNAL_BO",t.FED_GUILD_POC="FED_GUILD_POC",t.STUDIO_DASHBOARD="STUDIO_DASHBOARD",t.CHANNELS="CHANNELS",t.DATA_TOOLS="DATA_TOOLS",t.PSP_BACKOFFICE="PSP_BACKOFFICE",t.RISE_PLATFORM_ACCOUNT_DASHBOARD="RISE_PLATFORM_ACCOUNT_DASHBOARD",t.DEMO_DASHBOARD_ENTERPRISE="DEMO_DASHBOARD_ENTERPRISE"})(Lp||(Lp={}));var Mp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.MODULE="MODULE"})(Mp||(Mp={}));var Fp;(function(t){t.PAGE="PAGE",t.MODAL="MODAL"})(Fp||(Fp={}));var kp;(function(t){t.UNSPECIFIED="UNSPECIFIED",t.RELATED_ITEMS="RELATED_ITEMS",t.GLOBAL="GLOBAL"})(kp||(kp={}));var Up;(function(t){t.UNSPECIFIED_LOCKABLE="UNSPECIFIED_LOCKABLE",t.LOCKED="LOCKED",t.UNLOCKED="UNLOCKED"})(Up||(Up={}));var Bp;(function(t){t.UNSPECIFIED_RESTRICTED="UNSPECIFIED_RESTRICTED",t.ALLOW="ALLOW",t.WARN="WARN"})(Bp||(Bp={}));var jp;(function(t){t.UNKNOWN="UNKNOWN",t.OR="OR",t.AND="AND"})(jp||(jp={}));var Gp;(function(t){t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE"})(Gp||(Gp={}));var qp;(function(t){t.TEXT="TEXT",t.PASSWORD="PASSWORD",t.CODE="CODE"})(qp||(qp={}));var Hp;(function(t){t.UNKNOWN_TAG="UNKNOWN_TAG",t.EMBEDDABLE="EMBEDDABLE",t.ECOM_EDIT_ORDER="ECOM_EDIT_ORDER",t.ECOM_CREATE_ORDER="ECOM_CREATE_ORDER",t.INBOX="INBOX"})(Hp||(Hp={}));var Vp;(function(t){t.UNKNOWN_SELECTION="UNKNOWN_SELECTION",t.SINGLE_SELECTION="SINGLE_SELECTION"})(Vp||(Vp={}));var Wp;(function(t){t.UNKNOWN_FILTER_OPTIONS="UNKNOWN_FILTER_OPTIONS",t.STATIC="STATIC"})(Wp||(Wp={}));var $p;(function(t){t.UNKNOWN_CHANNEL_TYPE="UNKNOWN_CHANNEL_TYPE",t.DIRECT_MESSAGING="DIRECT_MESSAGING",t.EMAIL="EMAIL",t.SMS="SMS"})($p||($p={}));var Yp;(function(t){t.TEXT="TEXT",t.MEDIA="MEDIA",t.CARD="CARD",t.ANNOUNCEMENT="ANNOUNCEMENT",t.FORM="FORM"})(Yp||(Yp={}));var Kp;(function(t){t.UNKNOWN_MIME_TYPE="UNKNOWN_MIME_TYPE",t.IMAGE_JPEG="IMAGE_JPEG",t.IMAGE_PNG="IMAGE_PNG",t.IMAGE_WEBP="IMAGE_WEBP",t.VIDEO_MPEG="VIDEO_MPEG",t.VIDEO_MP4="VIDEO_MP4",t.VIDEO_3GP="VIDEO_3GP",t.AUDIO_AAC="AUDIO_AAC",t.AUDIO_MP4="AUDIO_MP4",t.AUDIO_MPEG="AUDIO_MPEG",t.AUDIO_OGG="AUDIO_OGG",t.AUDIO_OPUS="AUDIO_OPUS",t.APPLICATION_PDF="APPLICATION_PDF",t.APPLICATION_OCTET_STREAM="APPLICATION_OCTET_STREAM"})(Kp||(Kp={}));var zp;(function(t){t.SMS="SMS",t.MMS="MMS"})(zp||(zp={}));var Xp;(function(t){t.UNKNOWN_INIT_DIRECTION="UNKNOWN_INIT_DIRECTION",t.BUSINESS="BUSINESS",t.CUSTOMER="CUSTOMER",t.BOTH="BOTH"})(Xp||(Xp={}));var Zp;(function(t){t.UNDEFINED="UNDEFINED",t.GOOGLE="GOOGLE",t.I_CAL="I_CAL",t.MICROSOFT="MICROSOFT",t.OTHER="OTHER"})(Zp||(Zp={}));var Qp;(function(t){t.OAUTH="OAUTH",t.CREDENTIALS="CREDENTIALS"})(Qp||(Qp={}));var Jp;(function(t){t.LIST_NOT_SUPPORTED="LIST_NOT_SUPPORTED",t.LIST_FROM_PRIMARY_CALENDAR_ONLY="LIST_FROM_PRIMARY_CALENDAR_ONLY",t.LIST_FROM_SPECIFIC_CALENDARS="LIST_FROM_SPECIFIC_CALENDARS"})(Jp||(Jp={}));var em;(function(t){t.SYNC_NOT_SUPPORTED="SYNC_NOT_SUPPORTED",t.SYNC_TO_PRIMARY_CALENDAR_ONLY="SYNC_TO_PRIMARY_CALENDAR_ONLY",t.SYNC_TO_DEDICATED_CALENDAR="SYNC_TO_DEDICATED_CALENDAR"})(em||(em={}));var tm;(function(t){t.NAVIGATE="NAVIGATE",t.MODAL="MODAL"})(tm||(tm={}));var rm;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(rm||(rm={}));var sm;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(sm||(sm={}));var im;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.PROMOTIONAL="PROMOTIONAL",t.TRANSACTIONAL="TRANSACTIONAL"})(im||(im={}));var nm;(function(t){t.UNKNOWN_OPTION="UNKNOWN_OPTION",t.FREE="FREE",t.ONE_TIME="ONE_TIME",t.RECURRING="RECURRING"})(nm||(nm={}));var om;(function(t){t.UNKNWON_PLAN_FORM_SECTION="UNKNWON_PLAN_FORM_SECTION",t.INFO="INFO",t.BENEFITS="BENEFITS",t.PAGE_PERMISSIONS="PAGE_PERMISSIONS",t.PRICING_AND_DURATION="PRICING_AND_DURATION",t.ADVANCED_SETTINGS="ADVANCED_SETTINGS"})(om||(om={}));var am;(function(t){t.UNDEFINED="UNDEFINED",t.DAY="DAY",t.WEEK="WEEK",t.MONTH="MONTH",t.YEAR="YEAR"})(am||(am={}));var cm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.STRING="STRING",t.ARRAY="ARRAY"})(cm||(cm={}));var um;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USERS="WIX_USERS",t.SITE_CONTRIBUTORS="SITE_CONTRIBUTORS"})(um||(um={}));var lm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USER="WIX_USER",t.WIX_APP="WIX_APP"})(lm||(lm={}));var hm;(function(t){t.UNKNOWN_LEVEL="UNKNOWN_LEVEL",t.ACCOUNT="ACCOUNT",t.USER="USER",t.SITE="SITE"})(hm||(hm={}));var fm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.URL="URL",t.SPOUT="SPOUT",t.INITIATOR="INITIATOR"})(fm||(fm={}));var dm;(function(t){t.UNKNOWN_MOBILE_APPLICATION="UNKNOWN_MOBILE_APPLICATION",t.OWNER="OWNER",t.SPACES="SPACES",t.DINE="DINE",t.FITNESS="FITNESS",t.WIX_LIFE="WIX_LIFE",t.WIX_PARTNERS="WIX_PARTNERS",t.BRANDED="BRANDED",t.WIX_STUDIO="WIX_STUDIO",t.NO_SPECIFIC_TARGET_APP="NO_SPECIFIC_TARGET_APP"})(dm||(dm={}));var pm;(function(t){t.UNKNOWN_ANDROID_STYLE="UNKNOWN_ANDROID_STYLE",t.BIG_TEXT="BIG_TEXT",t.MESSAGING="MESSAGING",t.INBOX="INBOX"})(pm||(pm={}));var mm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.OPEN_TO_ALL="OPEN_TO_ALL",t.OPEN_TO_NONE="OPEN_TO_NONE",t.BOOLEAN_EXPERIMENT="BOOLEAN_EXPERIMENT",t.CUSTOM_EXPERIMENT="CUSTOM_EXPERIMENT"})(mm||(mm={}));var _m;(function(t){t.UNKNOWN_INTENT="UNKNOWN_INTENT",t.MARKETING="MARKETING",t.TRANSACTIONAL="TRANSACTIONAL"})(_m||(_m={}));var Em;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACTS="CONTACTS"})(Em||(Em={}));var gm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACT="CONTACT",t.SITE_MEMBER="SITE_MEMBER"})(gm||(gm={}));var ym;(function(t){t.LIVE_SITE="LIVE_SITE",t.BUSINESS_MANAGER="BUSINESS_MANAGER"})(ym||(ym={}));var Sm;(function(t){t.UNKNOWN_SCOPE="UNKNOWN_SCOPE",t.GLOBAL="GLOBAL",t.SITE="SITE"})(Sm||(Sm={}));var Om;(function(t){t.UNDEFINED_TYPE="UNDEFINED_TYPE",t.SHORT_TEXT="SHORT_TEXT",t.LONG_TEXT="LONG_TEXT",t.HTML="HTML",t.RICH_CONTENT="RICH_CONTENT",t.IMAGE="IMAGE",t.IMAGE_LINK="IMAGE_LINK",t.JSON="JSON",t.VIDEO="VIDEO",t.DOCUMENT="DOCUMENT"})(Om||(Om={}));var Rm;(function(t){t.NONE="NONE",t.ES_MODULE="ES_MODULE"})(Rm||(Rm={}));var vm;(function(t){t.UNKNOWN="UNKNOWN",t.AUTO="AUTO",t.FIXED="FIXED"})(vm||(vm={}));var iN="dist",Tm=".wix",Am="src",nN=Te(Tm,"app.config.json"),oN=Te(Tm,"dev.log"),uo=Te(Am,"dashboard"),Vs=Te(uo,"pages"),Bi=Te(uo,"plugins"),ji=Te(uo,"menu-plugins"),lo=Te(uo,"modals"),bm=Te(Am,"site"),aN=Te(bm,"widgets"),qt=Te(bm,"embedded-scripts"),Ws=Te(aN,"custom-elements");function Nm(t){return Te(t,Vs)}function gB(t){return Te(t,qt)}function Im(t){return Te(t,iN)}function yB(t){return Te(Im(t),"statics")}function SB(t){return Te(t,nN)}function OB(t){return Te(t,oN)}function RB(t){return Te(Im(t),"devcenter","app-manifest.json")}var cN=v.object({id:v.string(),label:v.string(),priority:v.number().int().optional()}),uN=v.object({sidebar:v.object({categories:v.array(cN).optional()}).optional()}),wm=v.object({appId:v.string().uuid(),projectId:v.string(),sentryDSN:v.string().optional(),trusted:v.boolean().default(!1),dashboard:uN.optional()}).strict(),vB=v.object({siteId:v.string().uuid().optional(),devArmTag:v.string().optional(),devSiteOverrideId:v.string().optional()}),lN=v.object({disabled:v.boolean().optional(),categoryId:v.string().uuid().optional(),priority:v.number().int().optional(),whenActive:v.object({selectedPageId:v.string().optional(),hideSidebar:v.boolean().optional()}).optional()}),Cm=v.object({id:v.string().uuid(),title:v.string().min(1),additionalRoutes:v.array(v.string()).optional(),requiredPermission:v.string().optional(),sidebar:lN.optional(),sentryDSN:v.string().optional(),experiments:v.object({enabledBy:v.string()}).optional()}).strict(),Pm=v.object({id:v.string().uuid(),title:v.string().min(1),requiredPermission:v.string().optional(),width:v.number().optional(),height:v.number().optional(),sentryDSN:v.string().optional()}).strict(),Dm=v.object({id:v.string().uuid(),title:v.string().min(1),requiredPermission:v.string().optional(),width:v.number().optional(),height:v.number().optional(),extends:v.string().uuid(),sentryDSN:v.string().optional()}),hN=v.object({navigateToPage:v.object({pageId:v.string().uuid(),relativeUrl:v.string().optional()}),openModal:v.object({componentId:v.string().uuid(),componentParams:v.record(v.string().min(1),v.string().min(1)).optional()})}).partial().superRefine((t,e)=>{!t.navigateToPage&&!t.openModal&&e.addIssue({code:v.ZodIssueCode.custom,message:"action must have either navigateToPage or openModal"})}),xm=v.object({id:v.string().uuid(),title:v.string().min(1),subtitle:v.string().max(200).optional(),iconKey:v.string().min(3).max(50).optional(),extends:v.string().uuid(),action:hN,sentryDSN:v.string().optional(),requiredPermission:v.string().optional()}).strict(),Lm=v.object({id:v.string().uuid(),name:v.string().min(1),scriptType:v.enum([cs.FUNCTIONAL,cs.ESSENTIAL,cs.ANALYTICS,cs.ADVERTISING]),placement:v.enum([Hs.HEAD,Hs.BODY_START,Hs.BODY_END])}),Ht=(0,co.variant)({Site:{},Editor:{},Dashboard:(0,co.fields)()}),Mm=v.object({id:v.string().uuid(),name:v.string().min(1),height:v.object({defaultHeight:v.number()}),width:v.object({defaultWidth:v.number(),stretchByDefault:v.boolean().optional(),allowStretch:v.boolean().optional()}),installation:v.object({autoAddToSite:v.boolean().optional(),essential:v.boolean().optional(),maxInstances:v.number().optional()}).optional()}).strict(),Fm=v.record(v.string());h();var Gg=ve(kg(),1),qg=ve(Un(),1);import{statSync as Vw}from"node:fs";import{access as Ww,readFile as $w,writeFile as Ug,mkdir as Bg,stat as Yw}from"node:fs/promises";import{dirname as jg,join as Kw}from"node:path";import{EOL as zw}from"node:os";function Xw(t,e){return JSON.stringify(t,null,e?.spaces).concat(zw)}async function Hg(t,e,r){try{let s=Xw(e,r);await Bg(jg(t),{recursive:!0}),await Ug(t,s,"utf-8")}catch(s){throw new J({code:ee.FailedToWriteJson({filePath:t,cause:s}),cause:s})}}async function yt(t){let e=null;try{e=await $w(t,"utf-8")}catch(r){throw new J({code:ee.FailedToReadJson({filePath:t,cause:r})})}try{return JSON.parse(e)}catch(r){throw new J({code:ee.InvalidJsonFile({filePath:t,cause:r})})}}function ut(t){return Ww(t).then(()=>!0).catch(()=>!1)}async function dj(t,e){await Bg(jg(t),{recursive:!0}),await Ug(t,e,"utf-8")}async function pj(t,e){if(!await ut(t))throw new qg.default({name:"PathNotFound"},`Folder not found at '${t}'`);let r=0,s=0;await(0,Gg.create)({strict:!0,gzip:!0,portable:!0,cwd:t,filter(n){let o=Kw(t,n),a=Vw(o);return a.isFile()&&(r++,s+=a.size),!0},file:e},["."]);let i=(await Yw(e)).size/1024;return{fileCount:r,compressedSizeInKb:Math.round(i),uncompressedSizeInKb:Math.round(s/1024)}}async function Vg(){let t=await yt(Ls),e=wm.safeParse(t);if(e.success)return e.data;throw new J({code:ee.InvalidConfigSchemaError({configPath:Ls,zodError:e.error})})}async function Oj(t){return Hg(Ls,t,{spaces:2})}h();h();import{join as yn}from"node:path";h();var QO=ve(Al(),1),mn=ve(df(),1),pn=ve(xO(),1);import NL from"node:fs";import IL from"node:path";h();var Rf=ve(df(),1),WO=ve(HO(),1);import vL from"node:process";import VO from"node:fs";import vi from"node:path";h();function Ri(t){let e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}h();import{fileURLToPath as OL}from"node:url";import{Transform as RL}from"node:stream";var dn=t=>t instanceof URL?OL(t):t,Ka=class extends RL{constructor(e){super({objectMode:!0,transform(r,s,i){i(void 0,e(r)?r:void 0)}})}},za=t=>t[0]==="!";var $O={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},YO="**/.gitignore",TL=(t,e)=>za(t)?"!"+vi.posix.join(e,t.slice(1)):vi.posix.join(e,t),AL=(t,e)=>{let r=Ri(vi.relative(e,vi.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(s=>s&&!s.startsWith("#")).map(s=>TL(s,r))},bL=(t,e)=>{if(e=Ri(e),vi.isAbsolute(t)){if(Ri(t).startsWith(e))return vi.relative(e,t);throw new Error(`Path ${t} is not in cwd ${e}`)}return t},KO=(t,e)=>{let r=t.flatMap(i=>AL(i,e)),s=(0,WO.default)().add(r);return i=>(i=dn(i),i=bL(i,e),i?s.ignores(Ri(i)):!1)},zO=(t={})=>({cwd:dn(t.cwd)||vL.cwd(),suppressErrors:!!t.suppressErrors,deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),XO=async(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=zO(e),n=await(0,Rf.default)(t,{cwd:r,suppressErrors:s,deep:i,...$O}),o=await Promise.all(n.map(async a=>({filePath:a,content:await VO.promises.readFile(a,"utf8")})));return KO(o,r)},ZO=(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=zO(e),o=Rf.default.sync(t,{cwd:r,suppressErrors:s,deep:i,...$O}).map(a=>({filePath:a,content:VO.readFileSync(a,"utf8")}));return KO(o,r)};var wL=t=>{if(t.some(e=>typeof e!="string"))throw new TypeError("Patterns must be a string or an array of strings")},vf=t=>(t=[...new Set([t].flat())],wL(t),t),CL=t=>{if(!t.cwd)return;let e;try{e=NL.statSync(t.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},JO=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:dn(t.cwd)},CL(t),t),eR=t=>async(e,r)=>t(vf(e),JO(r)),Xa=t=>(e,r)=>t(vf(e),JO(r)),tR=t=>{let{ignoreFiles:e,gitignore:r}=t,s=e?vf(e):[];return r&&s.push(YO),s},PL=async t=>{let e=tR(t);return sR(e.length>0&&await XO(e,t))},rR=t=>{let e=tR(t);return sR(e.length>0&&ZO(e,t))},sR=t=>{let e=new Set;return r=>{let s=r.path||r,i=IL.normalize(s),n=e.has(i)||t&&t(s);return e.add(i),!n}},iR=(t,e)=>t.flat().filter(r=>e(r)),DL=(t,e)=>(0,QO.default)(t).pipe(new Ka(r=>e(r))),nR=(t,e)=>{let r=[];for(;t.length>0;){let s=t.findIndex(n=>za(n));if(s===-1){r.push({patterns:t,options:e});break}let i=t[s].slice(1);for(let n of r)n.options.ignore.push(i);s!==0&&r.push({patterns:t.slice(0,s),options:{...e,ignore:[...e.ignore,i]}}),t=t.slice(s+1)}return r},oR=(t,e)=>({...e?{cwd:e}:{},...Array.isArray(t)?{files:t}:t}),aR=async(t,e)=>{let r=nR(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=oR(i,s),o=s?{cwd:s}:void 0;return Promise.all(r.map(async a=>{let{patterns:c,options:u}=a;return[c,u.ignore]=await Promise.all([(0,pn.default)(c,n),(0,pn.default)(u.ignore,o)]),{patterns:c,options:u}}))},Tf=(t,e)=>{let r=nR(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=oR(i,s),o=s?{cwd:s}:void 0;return r.map(a=>{let{patterns:c,options:u}=a;return c=pn.default.sync(c,n),u.ignore=pn.default.sync(u.ignore,o),{patterns:c,options:u}})},Gr=eR(async(t,e)=>{let[r,s]=await Promise.all([aR(t,e),PL(e)]),i=await Promise.all(r.map(n=>(0,mn.default)(n.patterns,n.options)));return iR(i,s)}),xH=Xa((t,e)=>{let r=Tf(t,e),s=rR(e),i=r.map(n=>mn.default.sync(n.patterns,n.options));return iR(i,s)}),LH=Xa((t,e)=>{let r=Tf(t,e),s=rR(e),i=r.map(n=>mn.default.stream(n.patterns,n.options));return DL(i,s)}),MH=Xa((t,e)=>t.some(r=>mn.default.isDynamicPattern(r,e))),FH=eR(aR),kH=Xa(Tf);h();var kt=ve(_r(),1),Se=(0,kt.variant)({DashboardPage:(0,kt.fields)(),DashboardPlugin:(0,kt.fields)(),DashboardMenuPlugin:(0,kt.fields)(),DashboardModal:(0,kt.fields)(),DashboardSidebarCategory:(0,kt.fields)(),EmbeddedScript:(0,kt.fields)(),CustomElement:(0,kt.fields)()});h();var Ns=ve(_r(),1);h();import{dirname as uR,join as cR,parse as xL,relative as LL,sep as lR}from"node:path";import{platform as ML}from"node:os";function qr(t,e){let{dir:r,name:s}=xL(t);return e!==""?cR(r,`${s}.${e}`):cR(r,s)}function hR(t,e){return`/${LL(Nm(t),uR(e)).split(lR).map(encodeURIComponent).join("/")}`}function fR(t){return uR(t).split(lR).at(-1)}function Hr(t){return ML()==="win32"?t.replace(/\\/g,"/"):t}async function dR(t){let e=qr(t,"json");if(!await ut(e))throw new J({code:ee.DashboardPageConfigNotFound({configPath:e})});let s=await yt(e),i=Cm.safeParse(s);if(i.success)return i.data;throw new J({code:ee.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function pR(t){let e=qr(t,"json");if(!await ut(e))throw new J({code:ee.DashboardPluginConfigNotFound({configPath:e})});let s=await yt(e),i=Dm.safeParse(s);if(i.success)return i.data;throw new J({code:ee.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function mR(t){let e=qr(t,"json");if(!await ut(e))throw new J({code:ee.DashboardMenuPluginConfigNotFound({configPath:e})});let s=await yt(e),i=xm.safeParse(s);if(i.success)return i.data;throw new J({code:ee.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function _R(t){let e=qr(t,"json");if(!await ut(e))throw new J({code:ee.DashboardModalConfigNotFound({configPath:e})});let s=await yt(e),i=Pm.safeParse(s);if(i.success)return i.data;throw new J({code:ee.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}function FL(t){return`wix/html/dashboard-asset/${t}.html`}function JH(t){return new Map(t.components.filter(e=>(0,Ns.isType)(e,Se.DashboardPage)||(0,Ns.isType)(e,Se.DashboardPlugin)||(0,Ns.isType)(e,Se.DashboardModal)).map(e=>[FL(e.id),e]))}function kL(t){return`wix/scripts/dashboard-asset/${t}.js`}function eV(t){return new Map(t.components.filter(e=>(0,Ns.isType)(e,Se.DashboardPage)||(0,Ns.isType)(e,Se.DashboardPlugin)||(0,Ns.isType)(e,Se.DashboardModal)).map(e=>[kL(e.id),e]))}h();var UL=/^[a-z0-9\-/]+$/;function _n(t){return UL.test(t)}function Is(t){return e=>{for(let[r,s]of t)if(!r(e))return{valid:!1,reason:s};return{valid:!0}}}function sV(t){return e=>{let r=t(e);return r.valid||r.reason}}h();var ER="The page route must be a valid URL path ([a-z0-9-/]+) and must not start with a dot.",BL="The page route must be unique, please choose a route that has not been used yet in your application.";function jL(t){return e=>t.every(r=>r.route!==`/${e}`)}var aV=Is([[_n,ER]]);function gR(t){return Is([[jL(t),BL],[_n,ER]])}h();h();var GL=Object.prototype.toString,Ai=Array.isArray||function(e){return GL.call(e)==="[object Array]"};function bf(t){return typeof t=="function"}function qL(t){return Ai(t)?"array":typeof t}function Af(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yR(t,e){return t!=null&&typeof t=="object"&&e in t}function HL(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var VL=RegExp.prototype.test;function WL(t,e){return VL.call(t,e)}var $L=/\S/;function YL(t){return!WL($L,t)}var KL={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function zL(t){return String(t).replace(/[&<>"'`=\/]/g,function(r){return KL[r]})}var XL=/\s*/,ZL=/\s+/,SR=/\s*=/,QL=/\s*\}/,JL=/#|\^|\/|>|\{|&|=|!/;function eM(t,e){if(!t)return[];var r=!1,s=[],i=[],n=[],o=!1,a=!1,c="",u=0;function l(){if(o&&!a)for(;n.length;)delete i[n.pop()];else n=[];o=!1,a=!1}var f,d,E;function g(D){if(typeof D=="string"&&(D=D.split(ZL,2)),!Ai(D)||D.length!==2)throw new Error("Invalid tags: "+D);f=new RegExp(Af(D[0])+"\\s*"),d=new RegExp("\\s*"+Af(D[1])),E=new RegExp("\\s*"+Af("}"+D[1]))}g(e||dt.tags);for(var y=new gn(t),A,b,M,$,de,k;!y.eos();){if(A=y.pos,M=y.scanUntil(f),M)for(var j=0,U=M.length;j<U;++j)$=M.charAt(j),YL($)?(n.push(i.length),c+=$):(a=!0,r=!0,c+=" "),i.push(["text",$,A,A+1]),A+=1,$===`
|
|
9
|
+
`&&(l(),c="",u=0,r=!1);if(!y.scan(f))break;if(o=!0,b=y.scan(JL)||"name",y.scan(XL),b==="="?(M=y.scanUntil(SR),y.scan(SR),y.scanUntil(d)):b==="{"?(M=y.scanUntil(E),y.scan(QL),y.scanUntil(d),b="&"):M=y.scanUntil(d),!y.scan(d))throw new Error("Unclosed tag at "+y.pos);if(b==">"?de=[b,M,A,y.pos,c,u,r]:de=[b,M,A,y.pos],u++,i.push(de),b==="#"||b==="^")s.push(de);else if(b==="/"){if(k=s.pop(),!k)throw new Error('Unopened section "'+M+'" at '+A);if(k[1]!==M)throw new Error('Unclosed section "'+k[1]+'" at '+A)}else b==="name"||b==="{"||b==="&"?a=!0:b==="="&&g(M)}if(l(),k=s.pop(),k)throw new Error('Unclosed section "'+k[1]+'" at '+y.pos);return rM(tM(i))}function tM(t){for(var e=[],r,s,i=0,n=t.length;i<n;++i)r=t[i],r&&(r[0]==="text"&&s&&s[0]==="text"?(s[1]+=r[1],s[3]=r[3]):(e.push(r),s=r));return e}function rM(t){for(var e=[],r=e,s=[],i,n,o=0,a=t.length;o<a;++o)switch(i=t[o],i[0]){case"#":case"^":r.push(i),s.push(i),r=i[4]=[];break;case"/":n=s.pop(),n[5]=i[2],r=s.length>0?s[s.length-1][4]:e;break;default:r.push(i)}return e}function gn(t){this.string=t,this.tail=t,this.pos=0}gn.prototype.eos=function(){return this.tail===""};gn.prototype.scan=function(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var s=r[0];return this.tail=this.tail.substring(s.length),this.pos+=s.length,s};gn.prototype.scanUntil=function(e){var r=this.tail.search(e),s;switch(r){case-1:s=this.tail,this.tail="";break;case 0:s="";break;default:s=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=s.length,s};function Ti(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Ti.prototype.push=function(e){return new Ti(e,this)};Ti.prototype.lookup=function(e){var r=this.cache,s;if(r.hasOwnProperty(e))s=r[e];else{for(var i=this,n,o,a,c=!1;i;){if(e.indexOf(".")>0)for(n=i.view,o=e.split("."),a=0;n!=null&&a<o.length;)a===o.length-1&&(c=yR(n,o[a])||HL(n,o[a])),n=n[o[a++]];else n=i.view[e],c=yR(i.view,e);if(c){s=n;break}i=i.parent}r[e]=s}return bf(s)&&(s=s.call(this.view)),s};function qe(){this.templateCache={_cache:{},set:function(e,r){this._cache[e]=r},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}qe.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};qe.prototype.parse=function(e,r){var s=this.templateCache,i=e+":"+(r||dt.tags).join(":"),n=typeof s<"u",o=n?s.get(i):void 0;return o==null&&(o=eM(e,r),n&&s.set(i,o)),o};qe.prototype.render=function(e,r,s,i){var n=this.getConfigTags(i),o=this.parse(e,n),a=r instanceof Ti?r:new Ti(r,void 0);return this.renderTokens(o,a,s,e,i)};qe.prototype.renderTokens=function(e,r,s,i,n){for(var o="",a,c,u,l=0,f=e.length;l<f;++l)u=void 0,a=e[l],c=a[0],c==="#"?u=this.renderSection(a,r,s,i,n):c==="^"?u=this.renderInverted(a,r,s,i,n):c===">"?u=this.renderPartial(a,r,s,n):c==="&"?u=this.unescapedValue(a,r):c==="name"?u=this.escapedValue(a,r,n):c==="text"&&(u=this.rawValue(a)),u!==void 0&&(o+=u);return o};qe.prototype.renderSection=function(e,r,s,i,n){var o=this,a="",c=r.lookup(e[1]);function u(d){return o.render(d,r,s,n)}if(c){if(Ai(c))for(var l=0,f=c.length;l<f;++l)a+=this.renderTokens(e[4],r.push(c[l]),s,i,n);else if(typeof c=="object"||typeof c=="string"||typeof c=="number")a+=this.renderTokens(e[4],r.push(c),s,i,n);else if(bf(c)){if(typeof i!="string")throw new Error("Cannot use higher-order sections without the original template");c=c.call(r.view,i.slice(e[3],e[5]),u),c!=null&&(a+=c)}else a+=this.renderTokens(e[4],r,s,i,n);return a}};qe.prototype.renderInverted=function(e,r,s,i,n){var o=r.lookup(e[1]);if(!o||Ai(o)&&o.length===0)return this.renderTokens(e[4],r,s,i,n)};qe.prototype.indentPartial=function(e,r,s){for(var i=r.replace(/[^ \t]/g,""),n=e.split(`
|
|
10
|
+
`),o=0;o<n.length;o++)n[o].length&&(o>0||!s)&&(n[o]=i+n[o]);return n.join(`
|
|
11
|
+
`)};qe.prototype.renderPartial=function(e,r,s,i){if(s){var n=this.getConfigTags(i),o=bf(s)?s(e[1]):s[e[1]];if(o!=null){var a=e[6],c=e[5],u=e[4],l=o;c==0&&u&&(l=this.indentPartial(o,u,a));var f=this.parse(l,n);return this.renderTokens(f,r,s,l,i)}}};qe.prototype.unescapedValue=function(e,r){var s=r.lookup(e[1]);if(s!=null)return s};qe.prototype.escapedValue=function(e,r,s){var i=this.getConfigEscape(s)||dt.escape,n=r.lookup(e[1]);if(n!=null)return typeof n=="number"&&i===dt.escape?String(n):i(n)};qe.prototype.rawValue=function(e){return e[1]};qe.prototype.getConfigTags=function(e){return Ai(e)?e:e&&typeof e=="object"?e.tags:void 0};qe.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Ai(e))return e.escape};var dt={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){En.templateCache=t},get templateCache(){return En.templateCache}},En=new qe;dt.clearCache=function(){return En.clearCache()};dt.parse=function(e,r){return En.parse(e,r)};dt.render=function(e,r,s,i){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+qL(e)+'" was given as the first argument for mustache#render(template, view, partials)');return En.render(e,r,s,i)};dt.escape=zL;dt.Scanner=gn;dt.Context=Ti;dt.Writer=qe;var OR=dt;import{readFile as sM}from"node:fs/promises";function RR(t){return t.replace(`${qt}/`,"").replace("/embedded.html","")}function iM(t){return e=>t.every(r=>e!==RR(r.relativePath))}function nM(t){return _n(RR(t))}async function oM(t){let e=await sM(t,"utf-8");return OR.parse(e).filter(([r])=>r==="name")}async function vR(t){try{let s=(await oM(t)).filter(([i])=>i==="name").filter(([,i])=>!/^[a-zA-Z]+$/.test(i)).map(([,i])=>i);return s.length>0?{valid:!1,reason:`Dynamic parameters can only include letters, but some include invalid names: ${s.join(", ")}`}:{valid:!0}}catch(e){return{valid:!1,reason:e instanceof Error?e.message:"Invalid embedded script template"}}}function TR(t){return Is([[iM(t),"The script folder must be unique, please choose a name that has not been used yet in your application."],[nM,"The script folder must be a valid path ([a-z0-9-/]+) and must not start with a dot."]])}h();var aM=/^[a-z](?:[.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-(?:[\x2D.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,cM=function(t){return aM.test(t)},uM=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),AR=Is([[t=>!!t,"Missing custom element name."],[t=>!/[A-Z]/.test(t),"Custom element names must not contain uppercase ASCII characters."],[t=>t.includes("-"),"Custom element names must contain a hyphen. Example: unicorn-cake"],[t=>!/^\d/i.test(t),"Custom element names must not start with a digit."],[t=>!/^-/i.test(t),"Custom element names must not start with a hyphen."],[t=>cM(t),"Invalid element name."],[t=>!uM.has(t),`The supplied element name is reserved and can't be used.
|
|
12
|
+
See: https://html.spec.whatwg.org/multipage/scripting.html#valid-custom-element-name`]]);var lM=yn(Vs,"**","page.{ts,tsx,js,jsx}"),hM=yn(Bi,"**","plugin.{ts,tsx,js,jsx}"),fM=yn(ji,"**","plugin.json"),dM=yn(lo,"**","modal.{ts,tsx,js,jsx}");async function pM(t,e){let r=await dR(e),s=hR(t,yn(t,e));return Se.DashboardPage({...r,route:s,relativePath:e,platforms:[Ht.Dashboard()]})}async function bR(t){let e=await Gr(Hr(lM),{cwd:t}),r=await Promise.all(e.map(i=>pM(t,i))),s=gR(r);return r.forEach(({route:i})=>{let n=s(i);if(!n.valid)throw new J({code:ee.InvalidDashboardPageRoute({route:i,errorMessage:n.reason})})}),r}async function mM(t){let e=await pR(t);return Se.DashboardPlugin({...e,relativePath:t,platforms:[Ht.Dashboard()]})}async function NR(t){let e=await Gr(Hr(hM),{cwd:t});return await Promise.all(e.map(s=>mM(s)))}async function _M(t){let e=await mR(t);return Se.DashboardMenuPlugin({...e,relativePath:t,platforms:[Ht.Dashboard()]})}async function EM(t){let e=await _R(t);return Se.DashboardModal({...e,relativePath:t,platforms:[Ht.Dashboard()]})}async function IR(t){let e=await Gr(Hr(fM),{cwd:t});return await Promise.all(e.map(s=>_M(s)))}async function wR(t){let e=await Gr(Hr(dM),{cwd:t});return await Promise.all(e.map(s=>EM(s)))}function CR(t){return t.dashboard?.sidebar?.categories?.map(e=>Se.DashboardSidebarCategory({...e,platforms:[]}))||[]}h();import{dirname as vM,join as bi}from"node:path";h();import{join as gM,dirname as yM}from"node:path";var Za=ve(_r(),1);async function PR(t){let e=qr(t,"json");if(!await ut(e))throw new J({code:ee.EmbeddedScriptConfigNotFound({configPath:e})});let s=await yt(e),i=Lm.safeParse(s);if(i.success)return i.data;throw new J({code:ee.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function DR(t){let e=qr(t,"json");if(!await ut(e))throw new J({code:ee.CustomElementConfigNotFound({configPath:e})});let s=await yt(e),i=Mm.safeParse(s);if(i.success)return i.data;throw new J({code:ee.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}function SM(t){return`wix/html/custom-element-asset/${t}.html`}function OM(t){return`wix/scripts/custom-element-asset/panel-${t}.js`}function RM(t){return`wix/scripts/custom-element-asset/${t}.js`}function kV(t){return new Map(t.components.filter(e=>(0,Za.isType)(e,Se.CustomElement)).map(e=>[SM(e.id),e]))}function UV(t){return new Map(t.components.filter(e=>(0,Za.isType)(e,Se.CustomElement)).map(e=>[RM(e.id),e]))}function BV(t){return new Map(t.components.filter(e=>(0,Za.isType)(e,Se.CustomElement)&&!!e.relativePanelPath).map(e=>[OM(e.id),e]))}async function xR(t){let e=gM(yM(t),"params.dev.json");if(!await ut(e))return null;let s=await yt(e),i=Fm.safeParse(s);if(i.success)return i.data||null;throw new J({code:ee.InvalidParamsOverrideSchemaError({paramsOverridePath:e,zodError:i.error})})}var Nf=bi(qt,"**","embedded.html"),TM=bi(Ws,"**","element.{ts,tsx,js,jsx}"),JV=bi(Ws,"**","panel.{ts,tsx,js,jsx}");async function AM(t,e){let r=await DR(t),s=bi(vM(t),"panel.tsx"),i=fR(t),n=await ut(bi(e,s));return Se.CustomElement({...r,tagName:i,relativePath:t,platforms:[Ht.Site(),Ht.Editor()],...n?{relativePanelPath:s}:{}})}async function LR(t){let e=await Gr(Hr(TM),{cwd:t}),r=await Promise.all(e.map(s=>AM(s,t)));return r.forEach(({tagName:s})=>{let i=AR(s);if(!i.valid)throw new J({code:ee.InvalidCustomElementTagName({tagName:s,errorMessage:i.reason})})}),r}var MR=bi(qt,"**","params.dev.json");async function bM(t){let e=await PR(t),r=await xR(t);return Se.EmbeddedScript({...e,relativePath:t,platforms:[Ht.Site()],paramsOverride:r})}async function FR(t){let e=await Gr(Hr(Nf),{cwd:t}),r=await Promise.all(e.map(i=>bM(i))),s=TR(r);return await Promise.all(r.map(async({relativePath:i})=>{let n=s(i),o=await vR(i);if(!n.valid)throw new J({code:ee.InvalidEmbeddedScriptFolder({path:i,errorMessage:n.reason})});if(!o.valid)throw new J({code:ee.InvalidEmbeddedScriptTemplate({templateFilename:i,errorMessage:o.reason})})})),r}async function kR({projectFolder:t,config:e}){let r=await bR(t),s=await NR(t),i=await IR(t),n=await wR(t),o=await FR(t),a=CR(e),c=await LR(t);return[...r,...s,...i,...n,...o,...a,...c]}h();import{join as Pi,basename as ET}from"node:path";import{EventEmitter as Tk}from"node:events";var hd=ve(Nv(),1),yT=ve(nT(),1);h();var ek=Object.getOwnPropertyNames,tk=Object.getOwnPropertySymbols,rk=Object.prototype.hasOwnProperty;function oT(t,e){return function(s,i,n){return t(s,i,n)&&e(s,i,n)}}function lc(t){return function(r,s,i){if(!r||!s||typeof r!="object"||typeof s!="object")return t(r,s,i);var n=i.cache,o=n.get(r),a=n.get(s);if(o&&a)return o===s&&a===r;n.set(r,s),n.set(s,r);var c=t(r,s,i);return n.delete(r),n.delete(s),c}}function aT(t){return ek(t).concat(tk(t))}var pT=Object.hasOwn||function(t,e){return rk.call(t,e)};function Ci(t,e){return t||e?t===e:t===e||t!==t&&e!==e}var mT="_owner",cT=Object.getOwnPropertyDescriptor,uT=Object.keys;function sk(t,e,r){var s=t.length;if(e.length!==s)return!1;for(;s-- >0;)if(!r.equals(t[s],e[s],s,s,t,e,r))return!1;return!0}function ik(t,e){return Ci(t.getTime(),e.getTime())}function lT(t,e,r){if(t.size!==e.size)return!1;for(var s={},i=t.entries(),n=0,o,a;(o=i.next())&&!o.done;){for(var c=e.entries(),u=!1,l=0;(a=c.next())&&!a.done;){var f=o.value,d=f[0],E=f[1],g=a.value,y=g[0],A=g[1];!u&&!s[l]&&(u=r.equals(d,y,n,l,t,e,r)&&r.equals(E,A,d,y,t,e,r))&&(s[l]=!0),l++}if(!u)return!1;n++}return!0}function nk(t,e,r){var s=uT(t),i=s.length;if(uT(e).length!==i)return!1;for(var n;i-- >0;)if(n=s[i],n===mT&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!pT(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function wn(t,e,r){var s=aT(t),i=s.length;if(aT(e).length!==i)return!1;for(var n,o,a;i-- >0;)if(n=s[i],n===mT&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!pT(e,n)||!r.equals(t[n],e[n],n,n,t,e,r)||(o=cT(t,n),a=cT(e,n),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function ok(t,e){return Ci(t.valueOf(),e.valueOf())}function ak(t,e){return t.source===e.source&&t.flags===e.flags}function hT(t,e,r){if(t.size!==e.size)return!1;for(var s={},i=t.values(),n,o;(n=i.next())&&!n.done;){for(var a=e.values(),c=!1,u=0;(o=a.next())&&!o.done;)!c&&!s[u]&&(c=r.equals(n.value,o.value,n.value,o.value,t,e,r))&&(s[u]=!0),u++;if(!c)return!1}return!0}function ck(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var uk="[object Arguments]",lk="[object Boolean]",hk="[object Date]",fk="[object Map]",dk="[object Number]",pk="[object Object]",mk="[object RegExp]",_k="[object Set]",Ek="[object String]",gk=Array.isArray,fT=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,dT=Object.assign,yk=Object.prototype.toString.call.bind(Object.prototype.toString);function Sk(t){var e=t.areArraysEqual,r=t.areDatesEqual,s=t.areMapsEqual,i=t.areObjectsEqual,n=t.arePrimitiveWrappersEqual,o=t.areRegExpsEqual,a=t.areSetsEqual,c=t.areTypedArraysEqual;return function(l,f,d){if(l===f)return!0;if(l==null||f==null||typeof l!="object"||typeof f!="object")return l!==l&&f!==f;var E=l.constructor;if(E!==f.constructor)return!1;if(E===Object)return i(l,f,d);if(gk(l))return e(l,f,d);if(fT!=null&&fT(l))return c(l,f,d);if(E===Date)return r(l,f,d);if(E===RegExp)return o(l,f,d);if(E===Map)return s(l,f,d);if(E===Set)return a(l,f,d);var g=yk(l);return g===hk?r(l,f,d):g===mk?o(l,f,d):g===fk?s(l,f,d):g===_k?a(l,f,d):g===pk?typeof l.then!="function"&&typeof f.then!="function"&&i(l,f,d):g===uk?i(l,f,d):g===lk||g===dk||g===Ek?n(l,f,d):!1}}function Ok(t){var e=t.circular,r=t.createCustomConfig,s=t.strict,i={areArraysEqual:s?wn:sk,areDatesEqual:ik,areMapsEqual:s?oT(lT,wn):lT,areObjectsEqual:s?wn:nk,arePrimitiveWrappersEqual:ok,areRegExpsEqual:ak,areSetsEqual:s?oT(hT,wn):hT,areTypedArraysEqual:s?wn:ck};if(r&&(i=dT({},i,r(i))),e){var n=lc(i.areArraysEqual),o=lc(i.areMapsEqual),a=lc(i.areObjectsEqual),c=lc(i.areSetsEqual);i=dT({},i,{areArraysEqual:n,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:c})}return i}function Rk(t){return function(e,r,s,i,n,o,a){return t(e,r,a)}}function vk(t){var e=t.circular,r=t.comparator,s=t.createState,i=t.equals,n=t.strict;if(s)return function(c,u){var l=s(),f=l.cache,d=f===void 0?e?new WeakMap:void 0:f,E=l.meta;return r(c,u,{cache:d,equals:i,meta:E,strict:n})};if(e)return function(c,u){return r(c,u,{cache:new WeakMap,equals:i,meta:void 0,strict:n})};var o={cache:void 0,equals:i,meta:void 0,strict:n};return function(c,u){return r(c,u,o)}}var _T=Vr(),JW=Vr({strict:!0}),e$=Vr({circular:!0}),t$=Vr({circular:!0,strict:!0}),r$=Vr({createInternalComparator:function(){return Ci}}),s$=Vr({strict:!0,createInternalComparator:function(){return Ci}}),i$=Vr({circular:!0,createInternalComparator:function(){return Ci}}),n$=Vr({circular:!0,createInternalComparator:function(){return Ci},strict:!0});function Vr(t){t===void 0&&(t={});var e=t.circular,r=e===void 0?!1:e,s=t.createInternalComparator,i=t.createState,n=t.strict,o=n===void 0?!1:n,a=Ok(t),c=Sk(a),u=s?s(c):Rk(c);return vk({circular:r,comparator:c,createState:i,equals:u,strict:o})}var Ak=Pi(Vs,"**","page.json"),bk=Pi(Bi,"**","plugin.json"),Nk=Pi(ji,"**","plugin.json"),gT=Pi(lo,"**","modal.json"),Ik=Pi(qt,"**","embedded.json"),wk=Pi(Ws,"**","element.json"),hc=class{emitter=new Tk;fsWatchers=[];prevModel;constructor(e){this.prevModel=e}watch(){let e=hd.default.watch([Ak,bk,gT,Ik,Nf,wk,Nk,MR,Ls],{ignoreInitial:!0}).on("add",this.emitConfigUpdate).on("change",this.emitConfigUpdate),r=hd.default.watch([`${Vs}/**`,`${Bi}/**`,`${ji}/**`,`${gT}/**`,`${qt}/**`,`${Ws}/**`],{ignoreInitial:!0}).on("unlink",async s=>{let i=ET(s);(i==="page.json"||i==="plugin.json"||i==="modal.json"||i==="embedded.json"||i=="element.json")&&await this.emitConfigUpdate(s)});return this.fsWatchers.push(e,r),this}onChange(e){return this.emitter.on("all",e),this}onError(e){return this.emitter.on("error",e),this}async close(){await Promise.all(this.fsWatchers.map(e=>e.close()))}emitConfigUpdate=(0,yT.default)(async e=>{try{let r=await ST(this.prevModel.projectFolder);this.emitter.emit("all",r,"change-received"),!_T(r,this.prevModel)||ET(e)==="embedded.html"?(this.prevModel=r,this.emitter.emit("all",r,"model-updated")):this.emitter.emit("all",r,"model-did-not-change")}catch(r){this.emitter.emit("error",r)}},200)};async function ST(t){let e=await Vg();return{projectFolder:t,config:e,components:await kR({projectFolder:t,config:e})}}var RT=Pk(null),O$=t=>{let[e,r]=OT(t.value),[s]=OT(()=>{let i=new hc(e);return t.watchForChanges===!0&&i.watch().onChange((n,o)=>{o==="model-updated"&&r(n)}),i});return xk(()=>()=>{s.close()},[s]),Ck.createElement(RT.Provider,{value:{model:e,watcher:s}},t.children)};function R$(){let t=Dk(RT);if(t===null)throw new Error("useProjectModel() cannot be used without an <ProjectModelProvider>");return t}h();import Lk from"node:process";var Mk=v.object({biLoggerBaseUrl:v.string().url().optional(),devEditorBaseUrl:v.string().url().optional(),inkDebug:v.boolean().optional(),minRetryTimeout:v.number().optional(),sentryDsn:v.string().optional(),userBrowserTestEndpoint:v.string().url().optional(),dataDir:v.string().optional(),wixCliDependencyVersion:v.string().optional(),wixCliAppDependencyVersion:v.string().optional(),appInstallationPollInterval:v.number().optional(),disableTTY:v.boolean().optional(),waitForLoginInterval:v.number().optional(),registryUrl:v.string().optional(),fsCacheDir:v.string().optional()}),Fk="WIX_CLI_TEST_OVERRIDES";function N$(){let t=Lk.env[Fk];return t?Mk.parse(JSON.parse(t)):{}}export{_r as a,Un as b,J as c,ee as d,Jn as e,rb as f,sb as g,v as h,N$ as i,Lu as j,Xw as k,Hg as l,yt as m,ut as n,dj as o,pj as p,ad as q,nT as r,Ls as s,cB as t,rp as u,dp as v,pp as w,Hs as x,cs as y,xp as z,Lp as A,Mp as B,vm as C,nN as D,oN as E,Vs as F,Nm as G,gB as H,yB as I,SB as J,OB as K,RB as L,vB as M,Ht as N,Oj as O,Gr as P,Se as Q,qr as R,fR as S,FL as T,JH as U,kL as V,eV as W,sV as X,gR as Y,TR as Z,lM as _,hM as $,dM as aa,SM as ba,OM as ca,RM as da,kV as ea,UV as fa,BV as ga,TM as ha,JV as ia,_T as ja,ST as ka,O$ as la,R$ as ma};
|
|
13
|
+
/*! Bundled license information:
|
|
14
|
+
|
|
15
|
+
is-extglob/index.js:
|
|
16
|
+
(*!
|
|
17
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
20
|
+
* Licensed under the MIT License.
|
|
21
|
+
*)
|
|
22
|
+
|
|
23
|
+
is-glob/index.js:
|
|
24
|
+
(*!
|
|
25
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
28
|
+
* Released under the MIT License.
|
|
29
|
+
*)
|
|
30
|
+
|
|
31
|
+
is-number/index.js:
|
|
32
|
+
(*!
|
|
33
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
36
|
+
* Released under the MIT License.
|
|
37
|
+
*)
|
|
38
|
+
|
|
39
|
+
to-regex-range/index.js:
|
|
40
|
+
(*!
|
|
41
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
44
|
+
* Released under the MIT License.
|
|
45
|
+
*)
|
|
46
|
+
|
|
47
|
+
fill-range/index.js:
|
|
48
|
+
(*!
|
|
49
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
52
|
+
* Licensed under the MIT License.
|
|
53
|
+
*)
|
|
54
|
+
|
|
55
|
+
queue-microtask/index.js:
|
|
56
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
57
|
+
|
|
58
|
+
run-parallel/index.js:
|
|
59
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
60
|
+
|
|
61
|
+
normalize-path/index.js:
|
|
62
|
+
(*!
|
|
63
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
66
|
+
* Released under the MIT License.
|
|
67
|
+
*)
|
|
68
|
+
|
|
69
|
+
mustache/mustache.mjs:
|
|
70
|
+
(*!
|
|
71
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
72
|
+
* http://github.com/janl/mustache.js
|
|
73
|
+
*)
|
|
74
|
+
*/
|
|
75
|
+
//# sourceMappingURL=chunk-GCBXRNFB.js.map
|