@wix/cli-app 1.1.4 → 1.1.6

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.
Files changed (72) hide show
  1. package/build/CreateVersionCommand-G2MTCG42.js +4 -0
  2. package/build/{CreateVersionCommand-GQGVJR2K.js.map → CreateVersionCommand-G2MTCG42.js.map} +1 -1
  3. package/build/DevCommand-NTEEUFAO.js +4 -0
  4. package/build/{DevCommand-YM45UVWH.js.map → DevCommand-NTEEUFAO.js.map} +1 -1
  5. package/build/GenerateCommand-2J7LTVTG.js +99 -0
  6. package/build/GenerateCommand-2J7LTVTG.js.map +1 -0
  7. package/build/PreviewCommand-2VOKA43B.js +4 -0
  8. package/build/ServeCommand-ANGVMF5F.js +4 -0
  9. package/build/{ServeCommand-6EQIDSKT.js.map → ServeCommand-ANGVMF5F.js.map} +1 -1
  10. package/build/build-STNIJWOD.js +4 -0
  11. package/build/{build-2Z6AK6IG.js.map → build-STNIJWOD.js.map} +1 -1
  12. package/build/chunk-33JVSWRU.js +4 -0
  13. package/build/{chunk-SHI7GZUR.js.map → chunk-33JVSWRU.js.map} +1 -1
  14. package/build/chunk-4PJZNBLP.js +4 -0
  15. package/build/{chunk-MWPJ22NN.js.map → chunk-4PJZNBLP.js.map} +1 -1
  16. package/build/chunk-6672YZIR.js +4 -0
  17. package/build/{chunk-4G4S755D.js.map → chunk-6672YZIR.js.map} +1 -1
  18. package/build/chunk-APTJGMVX.js +4 -0
  19. package/build/chunk-APTJGMVX.js.map +1 -0
  20. package/build/{chunk-ZYZVQVJV.js → chunk-B7UI5BHA.js} +2 -2
  21. package/build/{chunk-DF4D5JWF.js → chunk-C364KT35.js} +2 -2
  22. package/build/{chunk-DA3635LY.js → chunk-CQ24SN6G.js} +2 -2
  23. package/build/chunk-CQ24SN6G.js.map +1 -0
  24. package/build/{chunk-NTAE6I4M.js → chunk-DORVLTGQ.js} +2 -2
  25. package/build/chunk-F6VIPS74.js +4 -0
  26. package/build/chunk-F6VIPS74.js.map +1 -0
  27. package/build/chunk-KHABFHDG.js +27 -0
  28. package/build/chunk-KHABFHDG.js.map +1 -0
  29. package/build/{chunk-EIA66VA3.js → chunk-LXG62LU6.js} +3 -3
  30. package/build/{chunk-EIA66VA3.js.map → chunk-LXG62LU6.js.map} +1 -1
  31. package/build/{chunk-ACRXISY6.js → chunk-R5N7KNVD.js} +2 -2
  32. package/build/{chunk-VMFKU4BM.js → chunk-SQ7GXOTK.js} +10 -10
  33. package/build/chunk-SQ7GXOTK.js.map +1 -0
  34. package/build/{chunk-5575RXZG.js → chunk-VFXI25UM.js} +2 -2
  35. package/build/{chunk-ETUINW6P.js → chunk-VMBTDYCK.js} +3 -3
  36. package/build/chunk-VMBTDYCK.js.map +1 -0
  37. package/build/chunk-XW5ALZ42.js +87 -0
  38. package/build/chunk-XW5ALZ42.js.map +1 -0
  39. package/build/{chunk-Q2OX64Q5.js → chunk-Y2UEVFKZ.js} +2 -2
  40. package/build/index.js +1 -1
  41. package/build/index.js.map +1 -1
  42. package/build/preview-YEEZWFF7.js +4 -0
  43. package/build/{preview-4C3FDYR4.js.map → preview-YEEZWFF7.js.map} +1 -1
  44. package/build/render-command-2J5IV7LA.js +4 -0
  45. package/build/{render-command-EB3I47CB.js.map → render-command-2J5IV7LA.js.map} +1 -1
  46. package/package.json +7 -5
  47. package/templates/dashboard-page/page.json +1 -0
  48. package/templates/dashboard-page/page.tsx.ejs +26 -0
  49. package/build/CreateVersionCommand-GQGVJR2K.js +0 -4
  50. package/build/DevCommand-YM45UVWH.js +0 -4
  51. package/build/PreviewCommand-YUT7MBJD.js +0 -4
  52. package/build/ServeCommand-6EQIDSKT.js +0 -4
  53. package/build/build-2Z6AK6IG.js +0 -4
  54. package/build/chunk-4G4S755D.js +0 -4
  55. package/build/chunk-DA3635LY.js.map +0 -1
  56. package/build/chunk-ETUINW6P.js.map +0 -1
  57. package/build/chunk-JZGJM7PY.js +0 -108
  58. package/build/chunk-JZGJM7PY.js.map +0 -1
  59. package/build/chunk-MWPJ22NN.js +0 -4
  60. package/build/chunk-SHI7GZUR.js +0 -4
  61. package/build/chunk-VMFKU4BM.js.map +0 -1
  62. package/build/chunk-VMK5HC33.js +0 -4
  63. package/build/chunk-VMK5HC33.js.map +0 -1
  64. package/build/preview-4C3FDYR4.js +0 -4
  65. package/build/render-command-EB3I47CB.js +0 -4
  66. /package/build/{PreviewCommand-YUT7MBJD.js.map → PreviewCommand-2VOKA43B.js.map} +0 -0
  67. /package/build/{chunk-ZYZVQVJV.js.map → chunk-B7UI5BHA.js.map} +0 -0
  68. /package/build/{chunk-DF4D5JWF.js.map → chunk-C364KT35.js.map} +0 -0
  69. /package/build/{chunk-NTAE6I4M.js.map → chunk-DORVLTGQ.js.map} +0 -0
  70. /package/build/{chunk-ACRXISY6.js.map → chunk-R5N7KNVD.js.map} +0 -0
  71. /package/build/{chunk-5575RXZG.js.map → chunk-VFXI25UM.js.map} +0 -0
  72. /package/build/{chunk-Q2OX64Q5.js.map → chunk-Y2UEVFKZ.js.map} +0 -0
@@ -1,15 +1,15 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as v,c as _,e as Re,h}from"./chunk-HFDLXX7R.js";var ud=_((fk,cd)=>{"use strict";h();var wn=v("assert"),nT=v("stream").Stream,oT=v("util"),aT=/^[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 ac(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ir(t,e,r,s,i){throw new wn.AssertionError({message:oT.format("%s (%s) is required",t,e),actual:i===void 0?typeof s:i(s),expected:e,operator:r||"===",stackStartFunction:ir.caller})}function cc(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ts(){}var Ni={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 nT},operator:"instanceof",actual:cc},date:{check:function(t){return t instanceof Date},operator:"instanceof",actual:cc},regexp:{check:function(t){return t instanceof RegExp},operator:"instanceof",actual:cc},uuid:{check:function(t){return typeof t=="string"&&aT.test(t)},operator:"isUUID"}};function ad(t){var e=Object.keys(Ni),r;return process.env.NODE_NDEBUG?r=Ts:r=function(s,i){s||ir(i,"true",s)},e.forEach(function(s){if(t){r[s]=Ts;return}var i=Ni[s];r[s]=function(n,o){i.check(n)||ir(o,s,i.operator,n,i.actual)}}),e.forEach(function(s){var i="optional"+ac(s);if(t){r[i]=Ts;return}var n=Ni[s];r[i]=function(o,a){o!=null&&(n.check(o)||ir(a,s,n.operator,o,n.actual))}}),e.forEach(function(s){var i="arrayOf"+ac(s);if(t){r[i]=Ts;return}var n=Ni[s],o="["+s+"]";r[i]=function(a,c){Array.isArray(a)||ir(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||ir(c,o,n.operator,a,n.actual)}}),e.forEach(function(s){var i="optionalArrayOf"+ac(s);if(t){r[i]=Ts;return}var n=Ni[s],o="["+s+"]";r[i]=function(a,c){if(a!=null){Array.isArray(a)||ir(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||ir(c,o,n.operator,a,n.actual)}}}),Object.keys(wn).forEach(function(s){if(s==="AssertionError"){r[s]=wn[s];return}if(t){r[s]=Ts;return}r[s]=wn[s]}),r._setExports=ad,r}cd.exports=ad(process.env.NODE_NDEBUG)});var fd=_(Cn=>{"use strict";h();var wi=v("assert"),cT=v("util");Cn.sprintf=lc;Cn.printf=uT;Cn.fprintf=ld;function lc(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,T=0,A,L;for(wi.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),L=E[0].substring(E[1].length),A=T+E[1].length+1,T+=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 bi(t,A,L,"has no matching argument (too few arguments passed)");if(d=s.shift(),y++,n.match(/[\' #]/))throw bi(t,A,L,"uses unsupported flags");if(a.length>0)throw bi(t,A,L,"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 bi(t,A,L,"attempted to print undefined or null as a string (argument "+y+" to sprintf)");g+=uc(l,o,u,d.toString());break;case"d":d=Math.floor(d);case"f":f=f&&d>0?"+":"",g+=f+uc(l,o,u,d.toString());break;case"x":g+=uc(l,o,u,d.toString(16));break;case"j":o===0&&(o=10),g+=cT.inspect(d,!1,o);break;case"r":g+=hd(d);break;default:throw bi(t,A,L,"is not supported")}}return g+=i,g}function bi(t,e,r,s){return wi.equal(typeof t,"string"),wi.equal(typeof r,"string"),wi.equal(typeof e,"number"),wi.equal(typeof s,"string"),new Error('format string "'+t+'": conversion specifier "'+r+'" at character '+e+" "+s)}function uT(){var t=Array.prototype.slice.call(arguments);t.unshift(process.stdout),ld.apply(null,t)}function ld(t){var e=Array.prototype.slice.call(arguments,1);return t.write(lc.apply(this,e))}function uc(t,e,r,s){for(var i=s;i.length<e;)r?i+=t:i=t+i;return i}function hd(t){var e;if(!(t instanceof Error))throw new Error(lc("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: `+hd(r))}return e}});var dd=_(Ce=>{"use strict";h();function lT(t){return Array.isArray?Array.isArray(t):Pn(t)==="[object Array]"}Ce.isArray=lT;function hT(t){return typeof t=="boolean"}Ce.isBoolean=hT;function fT(t){return t===null}Ce.isNull=fT;function dT(t){return t==null}Ce.isNullOrUndefined=dT;function pT(t){return typeof t=="number"}Ce.isNumber=pT;function mT(t){return typeof t=="string"}Ce.isString=mT;function _T(t){return typeof t=="symbol"}Ce.isSymbol=_T;function ET(t){return t===void 0}Ce.isUndefined=ET;function gT(t){return Pn(t)==="[object RegExp]"}Ce.isRegExp=gT;function yT(t){return typeof t=="object"&&t!==null}Ce.isObject=yT;function ST(t){return Pn(t)==="[object Date]"}Ce.isDate=ST;function OT(t){return Pn(t)==="[object Error]"||t instanceof Error}Ce.isError=OT;function RT(t){return typeof t=="function"}Ce.isFunction=RT;function vT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ce.isPrimitive=vT;Ce.isBuffer=Buffer.isBuffer;function Pn(t){return Object.prototype.toString.call(t)}});var xn=_((gk,pd)=>{"use strict";h();var ge=ud(),Dn=v("util"),TT=fd(),dt=dd().isError,AT=TT.sprintf;pd.exports=X;X.VError=X;X.SError=Ci;X.WError=nr;X.MultiError=As;function hc(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(dt(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=AT.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=hc({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(dt(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}Dn.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(dt(t),"err must be an Error"),dt(t.jse_cause)?t.jse_cause:null};X.info=function(t){var e,r,s;if(ge.ok(dt(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(dt(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(dt(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(dt(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(dt(e))}),t.length==1?t[0]:new As(t))};X.errorForEach=function(t,e){ge.ok(dt(t),"err must be an Error"),ge.func(e,"func"),t instanceof As?t.errors().forEach(function(s){e(s)}):e(t)};function Ci(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof Ci?(r=hc({argv:t,strict:!0}),s=r.options,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(Ci.prototype),Ci.apply(e,arguments),e)}Dn.inherits(Ci,X);function As(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")}Dn.inherits(As,X);As.prototype.name="MultiError";As.prototype.errors=function(){return this.ase_errors.slice(0)};function nr(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof nr?(r=hc({argv:t,strict:!1}),s=r.options,s.skipCauseMessage=!0,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(nr.prototype),nr.apply(e,t),e)}Dn.inherits(nr,X);nr.prototype.name="WError";nr.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};nr.prototype.cause=function(e){return dt(e)&&(this.jse_cause=e),this.jse_cause}});var fc=_(Ln=>{"use strict";h();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.isTypeImpl=void 0;function NT(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}}Ln.isTypeImpl=NT});var dc=_(or=>{"use strict";h();Object.defineProperty(or,"__esModule",{value:!0});or.HOI=or.isPromise=or.identityFunc=void 0;var bT=(t={})=>t;or.identityFunc=bT;function wT(t){return t!=null&&typeof t=="object"&&"then"in t&&typeof t.then=="function"}or.isPromise=wT;var CT=()=>t=>t;or.HOI=CT});var ar=_(Mt=>{"use strict";h();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.variantImpl=Mt.isVariantCreator=Mt.scopeType=void 0;var Mn=dc(),PT=(t,e)=>`${t}/${e}`;Mt.scopeType=PT;function DT(t){var e;return(e=t.split("/")[1])!==null&&e!==void 0?e:t}var pc=Symbol("Variant Creator");function _d(t){return pc in t}Mt.isVariantCreator=_d;function xT(t){function e(a,c){return Object.keys(c).reduce((u,l)=>Object.assign(Object.assign({},u),{[l]:s(Mt.scopeType(a,l),typeof c[l]=="function"?c[l]:Mn.identityFunc)}),{})}function r(a){return Object.assign(Object.assign({},a),{[t]:DT(a[t])})}function s(a,c){let u=(...f)=>{let d=(c??Mn.identityFunc)(...f);return Mn.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}},{[pc]:pc,toString:function(){return this.output.type}})}function i(a){return Object.entries(a).reduce((c,[u,l])=>{let f=typeof l=="function"?_d(l)?l:s(u,l):s(u,Mn.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}}Mt.variantImpl=xT});var Ed=_(Fn=>{"use strict";h();Object.defineProperty(Fn,"__esModule",{value:!0});Fn.DEFAULT_KEY=void 0;Fn.DEFAULT_KEY="default"});var mc=_(kn=>{"use strict";h();Object.defineProperty(kn,"__esModule",{value:!0});kn.matchImpl=void 0;var LT=ar(),gd=Ed();function MT(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,T=g==null?void 0:LT.isVariantCreator(g)?g.output.type:g[t];if(g!=null&&T!==void 0&&T in y)return(l=y[T])===null||l===void 0?void 0:l.call(y,g);if(gd.DEFAULT_KEY in y)return(f=y[gd.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}}kn.matchImpl=MT});var yd=_(Un=>{"use strict";h();Object.defineProperty(Un,"__esModule",{value:!0});Un.typesImpl=void 0;var FT=ar();function kT(t){function e(s){return Array.isArray(s)?s.length&&FT.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}}Un.typesImpl=kT});var _c=_(Bn=>{"use strict";h();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.flagsImpl=void 0;function UT(t){function e(r){return r.reduce((s,i)=>Object.assign(Object.assign({},s),{[i[t]]:i}),Object.create(null))}return{flags:e}}Bn.flagsImpl=UT});var Sd=_(jn=>{"use strict";h();Object.defineProperty(jn,"__esModule",{value:!0});jn.isOfVariantImpl=void 0;function BT(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}}jn.isOfVariantImpl=BT});var Od=_(Gr=>{"use strict";h();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.remoteImpl=Gr.CompareResult=void 0;var jT=fc(),GT=mc(),qT=ar(),HT;(function(t){t[t.Lesser=-1]="Lesser",t[t.Equal=0]="Equal",t[t.Greater=1]="Greater"})(HT=Gr.CompareResult||(Gr.CompareResult={}));function WT(t){let{isType:e}=jT.isTypeImpl(t),{match:r}=GT.matchImpl(t),{variantList:s}=qT.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,T)=>{let A=g.findIndex(de=>de===o(y)),L=g.findIndex(de=>de===o(T)),$=A-L;return $===0?$:$/Math.abs($)},get(y){let T=this.types[y];return this.new[T]},index:y=>g.findIndex(T=>T===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}}Gr.remoteImpl=WT});var Ec=_(qr=>{"use strict";h();Object.defineProperty(qr,"__esModule",{value:!0});qr.typedImpl=qr.pass=void 0;var VT=t=>t;qr.pass=VT;function $T(t){function e(r){return typeof r=="function"?r(qr.pass):r}return{typed:e}}qr.typedImpl=$T});var gc=_(cr=>{"use strict";h();Object.defineProperty(cr,"__esModule",{value:!0});cr.unpack=cr.just=cr.constant=void 0;function Rd(t){return()=>t}cr.constant=Rd;cr.just=Rd;var YT=t=>t.payload;cr.unpack=YT});var vd=_(ur=>{"use strict";h();Object.defineProperty(ur,"__esModule",{value:!0});ur.matcherImpl=ur.Matcher=ur.tableToHandler=void 0;var KT=gc(),zT=ar();function yc(t){return Object.keys(t).reduce((e,r)=>{let s=r;return Object.assign(Object.assign({},e),{[s]:KT.just(t[s])})},{})}ur.tableToHandler=yc;var Gn=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),yc(e));return new t(this.target,this.key,r)}lookup(e){var r;let s=Object.assign(Object.assign({},this.handler),yc(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:zT.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))}};ur.Matcher=Gn;function XT(t){function e(r){let s=typeof r=="string"?{[t]:r}:r;return new Gn(s,t,{})}return{matcher:e}}ur.matcherImpl=XT});var Sc=_(qn=>{"use strict";h();Object.defineProperty(qn,"__esModule",{value:!0});qn.variantCosmos=void 0;var ZT=fc(),QT=mc(),JT=ar(),eA=yd(),tA=_c(),rA=Sd(),sA=Od(),iA=Ec(),nA=vd();function oA({key:t}){let{isType:e}=ZT.isTypeImpl(t),{flags:r}=tA.flagsImpl(t);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:t,isType:e,flags:r},rA.isOfVariantImpl(t)),QT.matchImpl(t)),nA.matcherImpl(t)),sA.remoteImpl(t)),iA.typedImpl(t)),eA.typesImpl(t)),JT.variantImpl(t))}qn.variantCosmos=oA});var Oc=_(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 aA=Sc();he=aA.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 Td=_(Hn=>{"use strict";h();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.augment=void 0;var cA=Oc(),uA=ar();function lA(t,e){return Object.keys(t).reduce((r,s)=>{let i=t[s],n=uA.isVariantCreator(i)?cA.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})},{})}Hn.augment=lA});var Ad=_(Wn=>{"use strict";h();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.constrained=void 0;function hA(t,e){return e}Wn.constrained=hA});var Id=_(Vn=>{"use strict";h();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.construct=void 0;function fA(t){return(...e)=>new t(e)}Vn.construct=fA});var bd=_(Hr=>{"use strict";h();Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Alpha=Hr.onTerms=void 0;var dA=_c(),pA=ar(),mA=Symbol("VARIANT GENERIC TEMPLATE");function _A(t){return Object.assign(Object.assign({},t(Hr.Alpha)),{[mA]:void 0})}Hr.onTerms=_A;var Nd="__term",EA=pA.variantImpl(Nd).variant,gA=dA.flagsImpl(Nd).flags,yA=EA(["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"]);Hr.Alpha=gA(Object.values(yA).map(t=>t()))});var wd=_(Is=>{"use strict";h();Object.defineProperty(Is,"__esModule",{value:!0});Is.typeMap=Is.typeCatalog=void 0;function SA(t){return Object.values(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r.output.type]:r.output.type}),{})}Is.typeCatalog=SA;function OA(t){return Object.keys(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r]:t[r].output.type}),{})}Is.typeMap=OA});var Pd=_(Ns=>{"use strict";h();Object.defineProperty(Ns,"__esModule",{value:!0});Ns.literalist=Ns.catalog=void 0;function Cd(t,e){return Array.isArray(t)?t.reduce((r,s,i)=>Object.assign(Object.assign({},r),{[s]:e!=null?e(s,i):s}),{}):t}Ns.catalog=Cd;Ns.literalist=Cd});var Dd=_($n=>{"use strict";h();Object.defineProperty($n,"__esModule",{value:!0});$n.patterned=void 0;function RA(t,e){return e}$n.patterned=RA});var xd=_(lr=>{"use strict";h();Object.defineProperty(lr,"__esModule",{value:!0});lr.nil=lr.payload=lr.fields=void 0;function vA(t={}){return(...e)=>{let[r]=e;return Object.assign(Object.assign({},t),r)}}lr.fields=vA;function TA(t){return e=>({payload:e})}lr.payload=TA;var AA=()=>({});lr.nil=AA});var Fd=_(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 IA=Td();Object.defineProperty(K,"augment",{enumerable:!0,get:function(){return IA.augment}});var NA=Ad();Object.defineProperty(K,"constrained",{enumerable:!0,get:function(){return NA.constrained}});var bA=Id();Object.defineProperty(K,"construct",{enumerable:!0,get:function(){return bA.construct}});var wA=Sc();Object.defineProperty(K,"variantCosmos",{enumerable:!0,get:function(){return wA.variantCosmos}});var CA=bd();Object.defineProperty(K,"onTerms",{enumerable:!0,get:function(){return CA.onTerms}});var Ld=wd();Object.defineProperty(K,"typeMap",{enumerable:!0,get:function(){return Ld.typeMap}});Object.defineProperty(K,"typeCatalog",{enumerable:!0,get:function(){return Ld.typeCatalog}});var Md=Pd();Object.defineProperty(K,"catalog",{enumerable:!0,get:function(){return Md.catalog}});Object.defineProperty(K,"literalist",{enumerable:!0,get:function(){return Md.literalist}});var Rc=gc();Object.defineProperty(K,"constant",{enumerable:!0,get:function(){return Rc.constant}});Object.defineProperty(K,"just",{enumerable:!0,get:function(){return Rc.just}});Object.defineProperty(K,"unpack",{enumerable:!0,get:function(){return Rc.unpack}});var PA=Dd();Object.defineProperty(K,"patterned",{enumerable:!0,get:function(){return PA.patterned}});var DA=Ec();Object.defineProperty(K,"pass",{enumerable:!0,get:function(){return DA.pass}});var xA=dc();Object.defineProperty(K,"HOI",{enumerable:!0,get:function(){return xA.HOI}});var vc=xd();Object.defineProperty(K,"fields",{enumerable:!0,get:function(){return vc.fields}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return vc.nil}});Object.defineProperty(K,"payload",{enumerable:!0,get:function(){return vc.payload}})});var fr=_(hr=>{"use strict";h();var LA=hr&&hr.__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]}),kd=hr&&hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&LA(e,t,r)};Object.defineProperty(hr,"__esModule",{value:!0});kd(Fd(),hr);kd(Oc(),hr)});var js=_((eB,Cm)=>{"use strict";h();var wm=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"]]);Cm.exports=t=>t?Object.keys(t).map(e=>[wm.has(e)?wm.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var lo=_(jm=>{"use strict";h();var Pm=typeof process=="object"&&process?process:{stdout:null,stderr:null},WI=v("events"),Dm=v("stream"),VI=v("string_decoder"),xm=VI.StringDecoder,Bt=Symbol("EOF"),jt=Symbol("maybeEmitEnd"),Er=Symbol("emittedEnd"),io=Symbol("emittingEnd"),Fi=Symbol("emittedError"),no=Symbol("closed"),Lm=Symbol("read"),oo=Symbol("flush"),Mm=Symbol("flushChunk"),We=Symbol("encoding"),Gt=Symbol("decoder"),ao=Symbol("flowing"),ki=Symbol("paused"),Gs=Symbol("resume"),me=Symbol("buffer"),Tt=Symbol("pipes"),ve=Symbol("bufferLength"),Pc=Symbol("bufferPush"),Dc=Symbol("bufferShift"),we=Symbol("objectMode"),_e=Symbol("destroyed"),xc=Symbol("error"),Lc=Symbol("emitData"),Fm=Symbol("emitEnd"),Mc=Symbol("emitEnd2"),qt=Symbol("async"),Fc=Symbol("abort"),co=Symbol("aborted"),ns=Symbol("signal"),Ui=t=>Promise.resolve().then(t),Bm=global._MP_NO_ITERATOR_SYMBOLS_!=="1",km=Bm&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Um=Bm&&Symbol.iterator||Symbol("iterator not implemented"),$I=t=>t==="end"||t==="finish"||t==="prefinish",YI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,KI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),uo=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[Gs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},kc=class extends uo{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)}},Uc=class t extends Dm{constructor(e){super(),this[ao]=!1,this[ki]=!1,this[Tt]=[],this[me]=[],this[we]=e&&e.objectMode||!1,this[we]?this[We]=null:this[We]=e&&e.encoding||null,this[We]==="buffer"&&(this[We]=null),this[qt]=e&&!!e.async||!1,this[Gt]=this[We]?new xm(this[We]):null,this[Bt]=!1,this[Er]=!1,this[io]=!1,this[no]=!1,this[Fi]=null,this.writable=!0,this.readable=!0,this[ve]=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[Tt]}),this[ns]=e&&e.signal,this[co]=!1,this[ns]&&(this[ns].addEventListener("abort",()=>this[Fc]()),this[ns].aborted&&this[Fc]())}get bufferLength(){return this[ve]}get encoding(){return this[We]}set encoding(e){if(this[we])throw new Error("cannot set encoding in objectMode");if(this[We]&&e!==this[We]&&(this[Gt]&&this[Gt].lastNeed||this[ve]))throw new Error("cannot change encoding");this[We]!==e&&(this[Gt]=e?new xm(e):null,this[me].length&&(this[me]=this[me].map(r=>this[Gt].write(r)))),this[We]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[we]}set objectMode(e){this[we]=this[we]||!!e}get async(){return this[qt]}set async(e){this[qt]=this[qt]||!!e}[Fc](){this[co]=!0,this.emit("abort",this[ns].reason),this.destroy(this[ns].reason)}get aborted(){return this[co]}set aborted(e){}write(e,r,s){if(this[co])return!1;if(this[Bt])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[qt]?Ui:n=>n();return!this[we]&&!Buffer.isBuffer(e)&&(KI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):YI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[we]?(this.flowing&&this[ve]!==0&&this[oo](!0),this.flowing?this.emit("data",e):this[Pc](e),this[ve]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[We]&&!this[Gt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[We]&&(e=this[Gt].write(e)),this.flowing&&this[ve]!==0&&this[oo](!0),this.flowing?this.emit("data",e):this[Pc](e),this[ve]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[ve]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[_e])return null;if(this[ve]===0||e===0||e>this[ve])return this[jt](),null;this[we]&&(e=null),this[me].length>1&&!this[we]&&(this.encoding?this[me]=[this[me].join("")]:this[me]=[Buffer.concat(this[me],this[ve])]);let r=this[Lm](e||null,this[me][0]);return this[jt](),r}[Lm](e,r){return e===r.length||e===null?this[Dc]():(this[me][0]=r.slice(e),r=r.slice(0,e),this[ve]-=e),this.emit("data",r),!this[me].length&&!this[Bt]&&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[Bt]=!0,this.writable=!1,(this.flowing||!this[ki])&&this[jt](),this}[Gs](){this[_e]||(this[ki]=!1,this[ao]=!0,this.emit("resume"),this[me].length?this[oo]():this[Bt]?this[jt]():this.emit("drain"))}resume(){return this[Gs]()}pause(){this[ao]=!1,this[ki]=!0}get destroyed(){return this[_e]}get flowing(){return this[ao]}get paused(){return this[ki]}[Pc](e){this[we]?this[ve]+=1:this[ve]+=e.length,this[me].push(e)}[Dc](){return this[we]?this[ve]-=1:this[ve]-=this[me][0].length,this[me].shift()}[oo](e){do;while(this[Mm](this[Dc]())&&this[me].length);!e&&!this[me].length&&!this[Bt]&&this.emit("drain")}[Mm](e){return this.emit("data",e),this.flowing}pipe(e,r){if(this[_e])return;let s=this[Er];return r=r||{},e===Pm.stdout||e===Pm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this[Tt].push(r.proxyErrors?new kc(this,e,r):new uo(this,e,r)),this[qt]?Ui(()=>this[Gs]()):this[Gs]()),e}unpipe(e){let r=this[Tt].find(s=>s.dest===e);r&&(this[Tt].splice(this[Tt].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[Tt].length&&!this.flowing?this[Gs]():e==="readable"&&this[ve]!==0?super.emit("readable"):$I(e)&&this[Er]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Fi]&&(this[qt]?Ui(()=>r.call(this,this[Fi])):r.call(this,this[Fi])),s}get emittedEnd(){return this[Er]}[jt](){!this[io]&&!this[Er]&&!this[_e]&&this[me].length===0&&this[Bt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...s){if(e!=="error"&&e!=="close"&&e!==_e&&this[_e])return;if(e==="data")return!this[we]&&!r?!1:this[qt]?Ui(()=>this[Lc](r)):this[Lc](r);if(e==="end")return this[Fm]();if(e==="close"){if(this[no]=!0,!this[Er]&&!this[_e])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Fi]=r,super.emit(xc,r);let n=!this[ns]||this.listeners("error").length?super.emit("error",r):!1;return this[jt](),n}else if(e==="resume"){let n=super.emit("resume");return this[jt](),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[jt](),i}[Lc](e){for(let s of this[Tt])s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[jt](),r}[Fm](){this[Er]||(this[Er]=!0,this.readable=!1,this[qt]?Ui(()=>this[Mc]()):this[Mc]())}[Mc](){if(this[Gt]){let r=this[Gt].end();if(r){for(let s of this[Tt])s.dest.write(r);super.emit("data",r)}}for(let r of this[Tt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[we]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[we]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[we]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[we]?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(_e,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[km](){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[Bt])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[Bt]})},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,[km](){return this}}}[Um](){let e=!1,r=()=>(this.pause(),this.removeListener(xc,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(xc,r),this.once(_e,r),{next:s,throw:r,return:r,[Um](){return this}}}destroy(e){return this[_e]?(e?this.emit("error",e):this.emit(_e),this):(this[_e]=!0,this[me].length=0,this[ve]=0,typeof this.close=="function"&&!this[no]&&this.close(),e?this.emit("error",e):this.emit(_e),this)}static isStream(e){return!!e&&(e instanceof t||e instanceof Dm||e instanceof WI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};jm.Minipass=Uc});var qm=_((iB,Gm)=>{"use strict";h();var zI=v("zlib").constants||{ZLIB_VERNUM:4736};Gm.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},zI))});var Wc=_((oB,Zm)=>{"use strict";h();var Hm=typeof process=="object"&&process?process:{stdout:null,stderr:null},XI=v("events"),Wm=v("stream"),Vm=v("string_decoder").StringDecoder,Ht=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),gr=Symbol("emittedEnd"),ho=Symbol("emittingEnd"),Bi=Symbol("emittedError"),fo=Symbol("closed"),$m=Symbol("read"),po=Symbol("flush"),Ym=Symbol("flushChunk"),Ve=Symbol("encoding"),Vt=Symbol("decoder"),mo=Symbol("flowing"),ji=Symbol("paused"),qs=Symbol("resume"),Te=Symbol("bufferLength"),Bc=Symbol("bufferPush"),jc=Symbol("bufferShift"),De=Symbol("objectMode"),xe=Symbol("destroyed"),Gc=Symbol("emitData"),Km=Symbol("emitEnd"),qc=Symbol("emitEnd2"),$t=Symbol("async"),Gi=t=>Promise.resolve().then(t),zm=global._MP_NO_ITERATOR_SYMBOLS_!=="1",ZI=zm&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),QI=zm&&Symbol.iterator||Symbol("iterator not implemented"),JI=t=>t==="end"||t==="finish"||t==="prefinish",eN=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,tN=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),_o=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[qs](),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 _o{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)}};Zm.exports=class Xm extends Wm{constructor(e){super(),this[mo]=!1,this[ji]=!1,this.pipes=[],this.buffer=[],this[De]=e&&e.objectMode||!1,this[De]?this[Ve]=null:this[Ve]=e&&e.encoding||null,this[Ve]==="buffer"&&(this[Ve]=null),this[$t]=e&&!!e.async||!1,this[Vt]=this[Ve]?new Vm(this[Ve]):null,this[Ht]=!1,this[gr]=!1,this[ho]=!1,this[fo]=!1,this[Bi]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[xe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[Ve]}set encoding(e){if(this[De])throw new Error("cannot set encoding in objectMode");if(this[Ve]&&e!==this[Ve]&&(this[Vt]&&this[Vt].lastNeed||this[Te]))throw new Error("cannot change encoding");this[Ve]!==e&&(this[Vt]=e?new Vm(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Vt].write(r)))),this[Ve]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[De]}set objectMode(e){this[De]=this[De]||!!e}get async(){return this[$t]}set async(e){this[$t]=this[$t]||!!e}write(e,r,s){if(this[Ht])throw new Error("write after end");if(this[xe])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[$t]?Gi:n=>n();return!this[De]&&!Buffer.isBuffer(e)&&(tN(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):eN(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[De]?(this.flowing&&this[Te]!==0&&this[po](!0),this.flowing?this.emit("data",e):this[Bc](e),this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ve]&&!this[Vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ve]&&(e=this[Vt].write(e)),this.flowing&&this[Te]!==0&&this[po](!0),this.flowing?this.emit("data",e):this[Bc](e),this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[xe])return null;if(this[Te]===0||e===0||e>this[Te])return this[Wt](),null;this[De]&&(e=null),this.buffer.length>1&&!this[De]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Te])]);let r=this[$m](e||null,this.buffer[0]);return this[Wt](),r}[$m](e,r){return e===r.length||e===null?this[jc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[Ht]&&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[Ht]=!0,this.writable=!1,(this.flowing||!this[ji])&&this[Wt](),this}[qs](){this[xe]||(this[ji]=!1,this[mo]=!0,this.emit("resume"),this.buffer.length?this[po]():this[Ht]?this[Wt]():this.emit("drain"))}resume(){return this[qs]()}pause(){this[mo]=!1,this[ji]=!0}get destroyed(){return this[xe]}get flowing(){return this[mo]}get paused(){return this[ji]}[Bc](e){this[De]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[jc](){return this.buffer.length&&(this[De]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[po](e){do;while(this[Ym](this[jc]()));!e&&!this.buffer.length&&!this[Ht]&&this.emit("drain")}[Ym](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[xe])return;let s=this[gr];return r=r||{},e===Hm.stdout||e===Hm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Hc(this,e,r):new _o(this,e,r)),this[$t]?Gi(()=>this[qs]()):this[qs]()),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[qs]():e==="readable"&&this[Te]!==0?super.emit("readable"):JI(e)&&this[gr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Bi]&&(this[$t]?Gi(()=>r.call(this,this[Bi])):r.call(this,this[Bi])),s}get emittedEnd(){return this[gr]}[Wt](){!this[ho]&&!this[gr]&&!this[xe]&&this.buffer.length===0&&this[Ht]&&(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!==xe&&this[xe])return;if(e==="data")return r?this[$t]?Gi(()=>this[Gc](r)):this[Gc](r):!1;if(e==="end")return this[Km]();if(e==="close"){if(this[fo]=!0,!this[gr]&&!this[xe])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Bi]=r;let n=super.emit("error",r);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}[Gc](e){for(let s of this.pipes)s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[Km](){this[gr]||(this[gr]=!0,this.readable=!1,this[$t]?Gi(()=>this[qc]()):this[qc]())}[qc](){if(this[Vt]){let r=this[Vt].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[De]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[De]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[De]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[De]?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(xe,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[ZI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Ht])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[Ht]})},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(xe,c),this.once("error",n),this.once("end",a),this.once("data",o)})}}}[QI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[xe]?(e?this.emit("error",e):this.emit(xe),this):(this[xe]=!0,this.buffer.length=0,this[Te]=0,typeof this.close=="function"&&!this[fo]&&this.close(),e?this.emit("error",e):this.emit(xe),this)}static isStream(e){return!!e&&(e instanceof Xm||e instanceof Wm||e instanceof XI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var ou=_(Ze=>{"use strict";h();var zc=v("assert"),yr=v("buffer").Buffer,e_=v("zlib"),os=Ze.constants=qm(),rN=Wc(),Qm=yr.concat,as=Symbol("_superWrite"),Ws=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"}},sN=Symbol("opts"),qi=Symbol("flushFlag"),Jm=Symbol("finishFlushFlag"),nu=Symbol("fullFlushFlag"),oe=Symbol("handle"),Eo=Symbol("onError"),Hs=Symbol("sawError"),Vc=Symbol("level"),$c=Symbol("strategy"),Yc=Symbol("ended"),cB=Symbol("_defaultFullFlush"),go=class extends rN{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Hs]=!1,this[Yc]=!1,this[sN]=e,this[qi]=e.flush,this[Jm]=e.finishFlush;try{this[oe]=new e_[r](e)}catch(s){throw new Ws(s)}this[Eo]=s=>{this[Hs]||(this[Hs]=!0,this.close(),this.emit("error",s))},this[oe].on("error",s=>this[Eo](new Ws(s))),this.once("end",()=>this.close)}close(){this[oe]&&(this[oe].close(),this[oe]=null,this.emit("close"))}reset(){if(!this[Hs])return zc(this[oe],"zlib binding closed"),this[oe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[nu]),this.write(Object.assign(yr.alloc(0),{[qi]:e})))}end(e,r,s){return e&&this.write(e,r),this.flush(this[Jm]),this[Yc]=!0,super.end(null,null,s)}get ended(){return this[Yc]}write(e,r,s){if(typeof r=="function"&&(s=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Hs])return;zc(this[oe],"zlib binding closed");let i=this[oe]._handle,n=i.close;i.close=()=>{};let o=this[oe].close;this[oe].close=()=>{},yr.concat=u=>u;let a;try{let u=typeof e[qi]=="number"?e[qi]:this[qi];a=this[oe]._processChunk(e,u),yr.concat=Qm}catch(u){yr.concat=Qm,this[Eo](new Ws(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[Eo](new Ws(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[as](yr.from(a[0]));for(let u=1;u<a.length;u++)c=this[as](a[u])}else c=this[as](yr.from(a));return s&&s(),c}[as](e){return super.write(e)}},Yt=class extends go{constructor(e,r){e=e||{},e.flush=e.flush||os.Z_NO_FLUSH,e.finishFlush=e.finishFlush||os.Z_FINISH,super(e,r),this[nu]=os.Z_FULL_FLUSH,this[Vc]=e.level,this[$c]=e.strategy}params(e,r){if(!this[Hs]){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[Vc]!==e||this[$c]!==r){this.flush(os.Z_SYNC_FLUSH),zc(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[Vc]=e,this[$c]=r)}}}},Xc=class extends Yt{constructor(e){super(e,"Deflate")}},Zc=class extends Yt{constructor(e){super(e,"Inflate")}},Kc=Symbol("_portable"),Qc=class extends Yt{constructor(e){super(e,"Gzip"),this[Kc]=e&&!!e.portable}[as](e){return this[Kc]?(this[Kc]=!1,e[9]=255,super[as](e)):super[as](e)}},Jc=class extends Yt{constructor(e){super(e,"Gunzip")}},eu=class extends Yt{constructor(e){super(e,"DeflateRaw")}},tu=class extends Yt{constructor(e){super(e,"InflateRaw")}},ru=class extends Yt{constructor(e){super(e,"Unzip")}},yo=class extends go{constructor(e,r){e=e||{},e.flush=e.flush||os.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||os.BROTLI_OPERATION_FINISH,super(e,r),this[nu]=os.BROTLI_OPERATION_FLUSH}},su=class extends yo{constructor(e){super(e,"BrotliCompress")}},iu=class extends yo{constructor(e){super(e,"BrotliDecompress")}};Ze.Deflate=Xc;Ze.Inflate=Zc;Ze.Gzip=Qc;Ze.Gunzip=Jc;Ze.DeflateRaw=eu;Ze.InflateRaw=tu;Ze.Unzip=ru;typeof e_.BrotliCompress=="function"?(Ze.BrotliCompress=su,Ze.BrotliDecompress=iu):Ze.BrotliCompress=Ze.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Vs=_((fB,t_)=>{"use strict";h();var iN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;t_.exports=iN!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var So=_((mB,r_)=>{"use strict";h();var{Minipass:nN}=lo(),au=Vs(),cu=Symbol("slurp");r_.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=au(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=au(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[cu](r),s&&this[cu](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))}[cu](e,r){for(let s in e)e[s]!==null&&e[s]!==void 0&&!(r&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?au(e[s]):e[s])}}});var uu=_(Oo=>{"use strict";h();Oo.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"]]);Oo.code=new Map(Array.from(Oo.name).map(t=>[t[1],t[0]]))});var o_=_((yB,n_)=>{"use strict";h();var oN=(t,e)=>{if(Number.isSafeInteger(t))t<0?cN(t,e):aN(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},aN=(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]=s_(i):i===0?e[s-1]=0:(r=!0,e[s-1]=i_(i))}},uN=t=>{let e=t[0],r=e===128?hN(t.slice(1,t.length)):e===255?lN(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},lN=t=>{for(var e=t.length,r=0,s=!1,i=e-1;i>-1;i--){var n=t[i],o;s?o=s_(n):n===0?o=n:(s=!0,o=i_(n)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},hN=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},s_=t=>(255^t)&255,i_=t=>(255^t)+1&255;n_.exports={encode:oN,parse:uN}});var Ys=_((OB,c_)=>{"use strict";h();var lu=uu(),$s=v("path").posix,a_=o_(),hu=Symbol("slurp"),Qe=Symbol("type"),pu=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=cs(e,r,100),this.mode=Sr(e,r+100,8),this.uid=Sr(e,r+108,8),this.gid=Sr(e,r+116,8),this.size=Sr(e,r+124,12),this.mtime=fu(e,r+136,12),this.cksum=Sr(e,r+148,12),this[hu](s),this[hu](i,!0),this[Qe]=cs(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=cs(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=cs(e,r+265,32),this.gname=cs(e,r+297,32),this.devmaj=Sr(e,r+329,8),this.devmin=Sr(e,r+337,8),e[r+475]!==0){let o=cs(e,r+345,155);this.path=o+"/"+this.path}else{let o=cs(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=fu(e,r+476,12),this.ctime=fu(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)}[hu](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=fN(this.path||"",s),n=i[0],o=i[1];this.needPax=i[2],this.needPax=us(e,r,100,n)||this.needPax,this.needPax=Or(e,r+100,8,this.mode)||this.needPax,this.needPax=Or(e,r+108,8,this.uid)||this.needPax,this.needPax=Or(e,r+116,8,this.gid)||this.needPax,this.needPax=Or(e,r+124,12,this.size)||this.needPax,this.needPax=du(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Qe].charCodeAt(0),this.needPax=us(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=us(e,r+265,32,this.uname)||this.needPax,this.needPax=us(e,r+297,32,this.gname)||this.needPax,this.needPax=Or(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Or(e,r+337,8,this.devmin)||this.needPax,this.needPax=us(e,r+345,s,o)||this.needPax,e[r+475]!==0?this.needPax=us(e,r+345,155,o)||this.needPax:(this.needPax=us(e,r+345,130,o)||this.needPax,this.needPax=du(e,r+476,12,this.atime)||this.needPax,this.needPax=du(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,Or(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 lu.name.get(this[Qe])||this[Qe]}get typeKey(){return this[Qe]}set type(e){lu.code.has(e)?this[Qe]=lu.code.get(e):this[Qe]=e}},fN=(t,e)=>{let s=t,i="",n,o=$s.parse(t).root||".";if(Buffer.byteLength(s)<100)n=[s,i,!1];else{i=$s.dirname(s),s=$s.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=$s.join($s.basename(i),s),i=$s.dirname(i));while(i!==o&&!n);n||(n=[t.slice(0,99),"",!0])}return n},cs=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),fu=(t,e,r)=>dN(Sr(t,e,r)),dN=t=>t===null?null:new Date(t*1e3),Sr=(t,e,r)=>t[e]&128?a_.parse(t.slice(e,e+r)):mN(t,e,r),pN=t=>isNaN(t)?null:t,mN=(t,e,r)=>pN(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),_N={12:8589934591,8:2097151},Or=(t,e,r,s)=>s===null?!1:s>_N[r]||s<0?(a_.encode(s,t.slice(e,e+r)),!0):(EN(t,e,r,s),!1),EN=(t,e,r,s)=>t.write(gN(s,r),e,r,"ascii"),gN=(t,e)=>yN(Math.floor(t).toString(8),e),yN=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",du=(t,e,r,s)=>s===null?!1:Or(t,e,r,s.getTime()/1e3),SN=new Array(156).join("\0"),us=(t,e,r,s)=>s===null?!1:(t.write(s+SN,e,r,"utf8"),s.length!==Buffer.byteLength(s)||s.length>r);c_.exports=pu});var Ro=_((vB,u_)=>{"use strict";h();var ON=Ys(),RN=v("path"),Hi=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 ON({path:("PaxHeader/"+RN.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}};Hi.parse=(t,e,r)=>new Hi(vN(TN(t),e),r);var vN=(t,e)=>e?Object.keys(t).reduce((r,s)=>(r[s]=t[s],r),e):t,TN=t=>t.replace(/\n$/,"").split(`
7
- `).reduce(AN,Object.create(null)),AN=(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};u_.exports=Hi});var Ks=_((AB,l_)=>{"use strict";h();l_.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 vo=_((NB,h_)=>{"use strict";h();h_.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 _u=_((CB,f_)=>{"use strict";h();var To=["|","<",">","?",":"],mu=To.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),IN=new Map(To.map((t,e)=>[t,mu[e]])),NN=new Map(mu.map((t,e)=>[t,To[e]]));f_.exports={encode:t=>To.reduce((e,r)=>e.split(r).join(IN.get(r)),t),decode:t=>mu.reduce((e,r)=>e.split(r).join(NN.get(r)),t)}});var Eu=_((DB,p_)=>{"use strict";h();var{isAbsolute:bN,parse:d_}=v("path").win32;p_.exports=t=>{let e="",r=d_(t);for(;bN(t)||r.root;){let s=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(s.length),e+=s,r=d_(t)}return[e,t]}});var __=_((LB,m_)=>{"use strict";h();m_.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 Nu=_((UB,C_)=>{"use strict";h();var{Minipass:v_}=lo(),T_=Ro(),A_=Ys(),It=v("fs"),E_=v("path"),At=Vs(),wN=Ks(),I_=(t,e)=>e?(t=At(t).replace(/^\.(\/|$)/,""),wN(e)+"/"+t):At(t),CN=16*1024*1024,g_=Symbol("process"),y_=Symbol("file"),S_=Symbol("directory"),yu=Symbol("symlink"),O_=Symbol("hardlink"),Wi=Symbol("header"),Ao=Symbol("read"),Su=Symbol("lstat"),Io=Symbol("onlstat"),Ou=Symbol("onread"),Ru=Symbol("onreadlink"),vu=Symbol("openfile"),Tu=Symbol("onopenfile"),Rr=Symbol("close"),No=Symbol("mode"),Au=Symbol("awaitDrain"),gu=Symbol("ondrain"),Nt=Symbol("prefix"),R_=Symbol("hadError"),N_=vo(),PN=_u(),b_=Eu(),w_=__(),bo=N_(class extends v_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=At(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||CN,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=At(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?At(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]=b_(this.path);i&&(this.path=n,s=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=PN.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=At(r.absolute||E_.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[Io](this.statCache.get(this.absolute)):this[Su]()}emit(e,...r){return e==="error"&&(this[R_]=!0),super.emit(e,...r)}[Su](){It.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Io](r)})}[Io](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=xN(e),this.emit("stat",e),this[g_]()}[g_](){switch(this.type){case"File":return this[y_]();case"Directory":return this[S_]();case"SymbolicLink":return this[yu]();default:return this.end()}}[No](e){return w_(e,this.type==="Directory",this.portable)}[Nt](e){return I_(e,this.prefix)}[Wi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new A_({path:this[Nt](this.path),linkpath:this.type==="Link"?this[Nt](this.linkpath):this.linkpath,mode:this[No](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 T_({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[Nt](this.path),linkpath:this.type==="Link"?this[Nt](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)}[S_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Wi](),this.end()}[yu](){It.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ru](r)})}[Ru](e){this.linkpath=At(e),this[Wi](),this.end()}[O_](e){this.type="Link",this.linkpath=At(E_.relative(this.cwd,e)),this.stat.size=0,this[Wi](),this.end()}[y_](){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[O_](r)}this.linkCache.set(e,this.absolute)}if(this[Wi](),this.stat.size===0)return this.end();this[vu]()}[vu](){It.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Tu](r)})}[Tu](e){if(this.fd=e,this[R_])return this[Rr]();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[Ao]()}[Ao](){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[Rr](()=>this.emit("error",o));this[Ou](a)})}[Rr](e){It.close(this.fd,e)}[Ou](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[Rr](()=>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[Rr](()=>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[gu]():this[Au](()=>this[gu]())}[Au](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)}[gu](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Rr](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[Ao]()}}),Iu=class extends bo{[Su](){this[Io](It.lstatSync(this.absolute))}[yu](){this[Ru](It.readlinkSync(this.absolute))}[vu](){this[Tu](It.openSync(this.absolute,"r"))}[Ao](){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[Ou](a),e=!1}finally{if(e)try{this[Rr](()=>{})}catch{}}}[Au](e){e()}[Rr](e){It.closeSync(this.fd),e()}},DN=N_(class extends v_{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=At(e.path),this.mode=this[No](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=At(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let s=!1;if(!this.preservePaths){let[i,n]=b_(this.path);i&&(this.path=n,s=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new A_({path:this[Nt](this.path),linkpath:this.type==="Link"?this[Nt](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 T_({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[Nt](this.path),linkpath:this.type==="Link"?this[Nt](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)}[Nt](e){return I_(e,this.prefix)}[No](e){return w_(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()}});bo.Sync=Iu;bo.Tar=DN;var xN=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";C_.exports=bo});var D_=_((jB,P_)=>{"use strict";h();P_.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var bu=_((qB,x_)=>{"use strict";h();x_.exports=ee;ee.Node=ls;ee.create=ee;function ee(t){var e=this;if(e instanceof ee||(e=new ee),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}ee.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};ee.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++}};ee.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++}};ee.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)MN(this,arguments[t]);return this.length};ee.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)FN(this,arguments[t]);return this.length};ee.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}};ee.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}};ee.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};ee.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};ee.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};ee.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};ee.prototype.map=function(t,e){e=e||this;for(var r=new ee,s=this.head;s!==null;)r.push(t.call(e,s.value,this)),s=s.next;return r};ee.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ee,s=this.tail;s!==null;)r.push(t.call(e,s.value,this)),s=s.prev;return r};ee.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};ee.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};ee.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};ee.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};ee.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 ee;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};ee.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 ee;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};ee.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=LN(this,i,r[s]);return n};ee.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 LN(t,e,r){var s=e===t.head?new ls(r,null,e,t):new ls(r,e,e.next,t);return s.next===null&&(t.tail=s),s.prev===null&&(t.head=s),t.length++,s}function MN(t,e){t.tail=new ls(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function FN(t,e){t.head=new ls(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ls(t,e,r,s){if(!(this instanceof ls))return new ls(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{D_()(ee)}catch{}});var ko=_((VB,G_)=>{"use strict";h();var Mo=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:kN}=lo(),L_=ou(),UN=So(),ku=Nu(),BN=ku.Sync,jN=ku.Tar,GN=bu(),M_=Buffer.alloc(1024),Po=Symbol("onStat"),wo=Symbol("ended"),bt=Symbol("queue"),zs=Symbol("current"),hs=Symbol("process"),Co=Symbol("processing"),F_=Symbol("processJob"),wt=Symbol("jobs"),wu=Symbol("jobDone"),Do=Symbol("addFSEntry"),k_=Symbol("addTarEntry"),xu=Symbol("stat"),Lu=Symbol("readdir"),xo=Symbol("onreaddir"),Lo=Symbol("pipe"),U_=Symbol("entry"),Cu=Symbol("entryOpt"),Mu=Symbol("writeEntryClass"),j_=Symbol("write"),Pu=Symbol("ondrain"),Fo=v("fs"),B_=v("path"),qN=vo(),Du=Vs(),Uu=qN(class extends kN{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=Du(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Mu]=ku,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 L_.Gzip(e.gzip)),e.brotli&&(typeof e.brotli!="object"&&(e.brotli={}),this.zip=new L_.BrotliCompress(e.brotli)),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Pu]()),this.on("resume",r=>this.zip.resume())}else this.on("drain",this[Pu]);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[bt]=new GN,this[wt]=0,this.jobs=+e.jobs||4,this[Co]=!1,this[wo]=!1}[j_](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[wo]=!0,this[hs](),this}write(e){if(this[wo])throw new Error("write after end");return e instanceof UN?this[k_](e):this[Do](e),this.flowing}[k_](e){let r=Du(B_.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let s=new Mo(e.path,r,!1);s.entry=new jN(e,this[Cu](s)),s.entry.on("end",i=>this[wu](s)),this[wt]+=1,this[bt].push(s)}this[hs]()}[Do](e){let r=Du(B_.resolve(this.cwd,e));this[bt].push(new Mo(e,r)),this[hs]()}[xu](e){e.pending=!0,this[wt]+=1;let r=this.follow?"stat":"lstat";Fo[r](e.absolute,(s,i)=>{e.pending=!1,this[wt]-=1,s?this.emit("error",s):this[Po](e,i)})}[Po](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[hs]()}[Lu](e){e.pending=!0,this[wt]+=1,Fo.readdir(e.absolute,(r,s)=>{if(e.pending=!1,this[wt]-=1,r)return this.emit("error",r);this[xo](e,s)})}[xo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[hs]()}[hs](){if(!this[Co]){this[Co]=!0;for(let e=this[bt].head;e!==null&&this[wt]<this.jobs;e=e.next)if(this[F_](e.value),e.value.ignore){let r=e.next;this[bt].removeNode(e),e.next=r}this[Co]=!1,this[wo]&&!this[bt].length&&this[wt]===0&&(this.zip?this.zip.end(M_):(super.write(M_),super.end()))}}get[zs](){return this[bt]&&this[bt].head&&this[bt].head.value}[wu](e){this[bt].shift(),this[wt]-=1,this[hs]()}[F_](e){if(!e.pending){if(e.entry){e===this[zs]&&!e.piped&&this[Lo](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Po](e,this.statCache.get(e.absolute)):this[xu](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[xo](e,this.readdirCache.get(e.absolute)):this[Lu](e),!e.readdir))){if(e.entry=this[U_](e),!e.entry){e.ignore=!0;return}e===this[zs]&&!e.piped&&this[Lo](e)}}}[Cu](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}}[U_](e){this[wt]+=1;try{return new this[Mu](e.path,this[Cu](e)).on("end",()=>this[wu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Pu](){this[zs]&&this[zs].entry&&this[zs].entry.resume()}[Lo](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Do](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()}}),Fu=class extends Uu{constructor(e){super(e),this[Mu]=BN}pause(){}resume(){}[xu](e){let r=this.follow?"statSync":"lstatSync";this[Po](e,Fo[r](e.absolute))}[Lu](e,r){this[xo](e,Fo.readdirSync(e.absolute))}[Lo](e){let r=e.entry,s=this.zip;e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Do](o+i)}),s?r.on("data",i=>{s.write(i)}):r.on("data",i=>{super[j_](i)})}};Uu.Sync=Fu;G_.exports=Uu});var si=_($i=>{"use strict";h();var HN=Wc(),WN=v("events").EventEmitter,$e=v("fs"),Gu=$e.writev;if(!Gu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Gu=(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 ti=Symbol("_autoClose"),_t=Symbol("_close"),Vi=Symbol("_ended"),se=Symbol("_fd"),q_=Symbol("_finished"),Tr=Symbol("_flags"),Bu=Symbol("_flush"),qu=Symbol("_handleChunk"),Hu=Symbol("_makeBuf"),qo=Symbol("_mode"),Uo=Symbol("_needDrain"),Js=Symbol("_onerror"),ri=Symbol("_onopen"),ju=Symbol("_onread"),Zs=Symbol("_onwrite"),Ar=Symbol("_open"),Kt=Symbol("_path"),fs=Symbol("_pos"),Ct=Symbol("_queue"),Qs=Symbol("_read"),H_=Symbol("_readSize"),vr=Symbol("_reading"),Bo=Symbol("_remain"),W_=Symbol("_size"),jo=Symbol("_write"),Xs=Symbol("_writing"),Go=Symbol("_defaultFlag"),ei=Symbol("_errored"),Ho=class extends HN{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[ei]=!1,this[se]=typeof r.fd=="number"?r.fd:null,this[Kt]=e,this[H_]=r.readSize||16*1024*1024,this[vr]=!1,this[W_]=typeof r.size=="number"?r.size:1/0,this[Bo]=this[W_],this[ti]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[se]=="number"?this[Qs]():this[Ar]()}get fd(){return this[se]}get path(){return this[Kt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ar](){$e.open(this[Kt],"r",(e,r)=>this[ri](e,r))}[ri](e,r){e?this[Js](e):(this[se]=r,this.emit("open",r),this[Qs]())}[Hu](){return Buffer.allocUnsafe(Math.min(this[H_],this[Bo]))}[Qs](){if(!this[vr]){this[vr]=!0;let e=this[Hu]();if(e.length===0)return process.nextTick(()=>this[ju](null,0,e));$e.read(this[se],e,0,e.length,null,(r,s,i)=>this[ju](r,s,i))}}[ju](e,r,s){this[vr]=!1,e?this[Js](e):this[qu](r,s)&&this[Qs]()}[_t](){if(this[ti]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Js](e){this[vr]=!0,this[_t](),this.emit("error",e)}[qu](e,r){let s=!1;return this[Bo]-=e,e>0&&(s=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Bo]<=0)&&(s=!1,this[_t](),super.end()),s}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[se]=="number"&&this[Qs]();break;case"error":return this[ei]?void 0:(this[ei]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Wu=class extends Ho{[Ar](){let e=!0;try{this[ri](null,$e.openSync(this[Kt],"r")),e=!1}finally{e&&this[_t]()}}[Qs](){let e=!0;try{if(!this[vr]){this[vr]=!0;do{let r=this[Hu](),s=r.length===0?0:$e.readSync(this[se],r,0,r.length,null);if(!this[qu](s,r))break}while(!0);this[vr]=!1}e=!1}finally{e&&this[_t]()}}[_t](){if(this[ti]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.closeSync(e),this.emit("close")}}},Wo=class extends WN{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ei]=!1,this[Xs]=!1,this[Vi]=!1,this[Uo]=!1,this[Ct]=[],this[Kt]=e,this[se]=typeof r.fd=="number"?r.fd:null,this[qo]=r.mode===void 0?438:r.mode,this[fs]=typeof r.start=="number"?r.start:null,this[ti]=typeof r.autoClose=="boolean"?r.autoClose:!0;let s=this[fs]!==null?"r+":"w";this[Go]=r.flags===void 0,this[Tr]=this[Go]?s:r.flags,this[se]===null&&this[Ar]()}emit(e,r){if(e==="error"){if(this[ei])return;this[ei]=!0}return super.emit(e,r)}get fd(){return this[se]}get path(){return this[Kt]}[Js](e){this[_t](),this[Xs]=!0,this.emit("error",e)}[Ar](){$e.open(this[Kt],this[Tr],this[qo],(e,r)=>this[ri](e,r))}[ri](e,r){this[Go]&&this[Tr]==="r+"&&e&&e.code==="ENOENT"?(this[Tr]="w",this[Ar]()):e?this[Js](e):(this[se]=r,this.emit("open",r),this[Bu]())}end(e,r){return e&&this.write(e,r),this[Vi]=!0,!this[Xs]&&!this[Ct].length&&typeof this[se]=="number"&&this[Zs](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Vi]?(this.emit("error",new Error("write() after end()")),!1):this[se]===null||this[Xs]||this[Ct].length?(this[Ct].push(e),this[Uo]=!0,!1):(this[Xs]=!0,this[jo](e),!0)}[jo](e){$e.write(this[se],e,0,e.length,this[fs],(r,s)=>this[Zs](r,s))}[Zs](e,r){e?this[Js](e):(this[fs]!==null&&(this[fs]+=r),this[Ct].length?this[Bu]():(this[Xs]=!1,this[Vi]&&!this[q_]?(this[q_]=!0,this[_t](),this.emit("finish")):this[Uo]&&(this[Uo]=!1,this.emit("drain"))))}[Bu](){if(this[Ct].length===0)this[Vi]&&this[Zs](null,0);else if(this[Ct].length===1)this[jo](this[Ct].pop());else{let e=this[Ct];this[Ct]=[],Gu(this[se],e,this[fs],(r,s)=>this[Zs](r,s))}}[_t](){if(this[ti]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Vu=class extends Wo{[Ar](){let e;if(this[Go]&&this[Tr]==="r+")try{e=$e.openSync(this[Kt],this[Tr],this[qo])}catch(r){if(r.code==="ENOENT")return this[Tr]="w",this[Ar]();throw r}else e=$e.openSync(this[Kt],this[Tr],this[qo]);this[ri](null,e)}[_t](){if(this[ti]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.closeSync(e),this.emit("close")}}[jo](e){let r=!0;try{this[Zs](null,$e.writeSync(this[se],e,0,e.length,this[fs])),r=!1}finally{if(r)try{this[_t]()}catch{}}}};$i.ReadStream=Ho;$i.ReadStreamSync=Wu;$i.WriteStream=Wo;$i.WriteStreamSync=Vu});var Zo=_((XB,eE)=>{"use strict";h();var VN=vo(),V_=Ys(),$N=v("events"),YN=bu(),KN=1024*1024,zN=So(),$_=Ro(),Y_=ou(),{nextTick:XN}=v("process"),$u=Buffer.from([31,139]),it=Symbol("state"),ds=Symbol("writeEntry"),zt=Symbol("readEntry"),Yu=Symbol("nextEntry"),K_=Symbol("processEntry"),nt=Symbol("extendedHeader"),Yi=Symbol("globalExtendedHeader"),Ir=Symbol("meta"),z_=Symbol("emitMeta"),ae=Symbol("buffer"),Xt=Symbol("queue"),Nr=Symbol("ended"),X_=Symbol("emittedEnd"),ps=Symbol("emit"),Ae=Symbol("unzip"),Vo=Symbol("consumeChunk"),$o=Symbol("consumeChunkSub"),Ku=Symbol("consumeBody"),Z_=Symbol("consumeMeta"),Q_=Symbol("consumeHeader"),Yo=Symbol("consuming"),zu=Symbol("bufferConcat"),Xu=Symbol("maybeEnd"),Ki=Symbol("writing"),br=Symbol("aborted"),Ko=Symbol("onDone"),ms=Symbol("sawValidEntry"),zo=Symbol("sawNullBlock"),Xo=Symbol("sawEOF"),J_=Symbol("closeStream"),ZN=t=>!0;eE.exports=VN(class extends $N{constructor(e){e=e||{},super(e),this.file=e.file||"",this[ms]=null,this.on(Ko,s=>{(this[it]==="begin"||this[ms]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ko,e.ondone):this.on(Ko,s=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||KN,this.filter=typeof e.filter=="function"?e.filter:ZN;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[Xt]=new YN,this[ae]=null,this[zt]=null,this[ds]=null,this[it]="begin",this[Ir]="",this[nt]=null,this[Yi]=null,this[Nr]=!1,this[Ae]=null,this[br]=!1,this[zo]=!1,this[Xo]=!1,this.on("end",()=>this[J_]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Q_](e,r){this[ms]===null&&(this[ms]=!1);let s;try{s=new V_(e,r,this[nt],this[Yi])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(s.nullBlock)this[zo]?(this[Xo]=!0,this[it]==="begin"&&(this[it]="header"),this[ps]("eof")):(this[zo]=!0,this[ps]("nullBlock"));else if(this[zo]=!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[ds]=new zN(s,this[nt],this[Yi]);if(!this[ms])if(n.remain){let o=()=>{n.invalid||(this[ms]=!0)};n.on("end",o)}else this[ms]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[ps]("ignoredEntry",n),this[it]="ignore",n.resume()):n.size>0&&(this[Ir]="",n.on("data",o=>this[Ir]+=o),this[it]="meta"):(this[nt]=null,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[ps]("ignoredEntry",n),this[it]=n.remain?"ignore":"header",n.resume()):(n.remain?this[it]="body":(this[it]="header",n.end()),this[zt]?this[Xt].push(n):(this[Xt].push(n),this[Yu]())))}}}[J_](){XN(()=>this.emit("close"))}[K_](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[zt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",s=>this[Yu]()),r=!1)):(this[zt]=null,r=!1),r}[Yu](){do;while(this[K_](this[Xt].shift()));if(!this[Xt].length){let e=this[zt];!e||e.flowing||e.size===e.remain?this[Ki]||this.emit("drain"):e.once("drain",s=>this.emit("drain"))}}[Ku](e,r){let s=this[ds],i=s.blockRemain,n=i>=e.length&&r===0?e:e.slice(r,r+i);return s.write(n),s.blockRemain||(this[it]="header",this[ds]=null,s.end()),n.length}[Z_](e,r){let s=this[ds],i=this[Ku](e,r);return this[ds]||this[z_](s),i}[ps](e,r,s){!this[Xt].length&&!this[zt]?this.emit(e,r,s):this[Xt].push([e,r,s])}[z_](e){switch(this[ps]("meta",this[Ir]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[nt]=$_.parse(this[Ir],this[nt],!1);break;case"GlobalExtendedHeader":this[Yi]=$_.parse(this[Ir],this[Yi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[nt]=this[nt]||Object.create(null),this[nt].path=this[Ir].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[nt]=this[nt]||Object.create(null),this[nt].linkpath=this[Ir].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[br]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[br])return;if((this[Ae]===null||this.brotli===void 0&&this[Ae]===!1)&&e){if(this[ae]&&(e=Buffer.concat([this[ae],e]),this[ae]=null),e.length<$u.length)return this[ae]=e,!0;for(let n=0;this[Ae]===null&&n<$u.length;n++)e[n]!==$u[n]&&(this[Ae]=!1);let i=this.brotli===void 0;if(this[Ae]===!1&&i)if(e.length<512)if(this[Nr])this.brotli=!0;else return this[ae]=e,!0;else try{new V_(e.slice(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[Ae]===null||this[Ae]===!1&&this.brotli){let n=this[Nr];this[Nr]=!1,this[Ae]=this[Ae]===null?new Y_.Unzip:new Y_.BrotliDecompress,this[Ae].on("data",a=>this[Vo](a)),this[Ae].on("error",a=>this.abort(a)),this[Ae].on("end",a=>{this[Nr]=!0,this[Vo]()}),this[Ki]=!0;let o=this[Ae][n?"end":"write"](e);return this[Ki]=!1,o}}this[Ki]=!0,this[Ae]?this[Ae].write(e):this[Vo](e),this[Ki]=!1;let s=this[Xt].length?!1:this[zt]?this[zt].flowing:!0;return!s&&!this[Xt].length&&this[zt].once("drain",i=>this.emit("drain")),s}[zu](e){e&&!this[br]&&(this[ae]=this[ae]?Buffer.concat([this[ae],e]):e)}[Xu](){if(this[Nr]&&!this[X_]&&!this[br]&&!this[Yo]){this[X_]=!0;let e=this[ds];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[ps](Ko)}}[Vo](e){if(this[Yo])this[zu](e);else if(!e&&!this[ae])this[Xu]();else{if(this[Yo]=!0,this[ae]){this[zu](e);let r=this[ae];this[ae]=null,this[$o](r)}else this[$o](e);for(;this[ae]&&this[ae].length>=512&&!this[br]&&!this[Xo];){let r=this[ae];this[ae]=null,this[$o](r)}this[Yo]=!1}(!this[ae]||this[Nr])&&this[Xu]()}[$o](e){let r=0,s=e.length;for(;r+512<=s&&!this[br]&&!this[Xo];)switch(this[it]){case"begin":case"header":this[Q_](e,r),r+=512;break;case"ignore":case"body":r+=this[Ku](e,r);break;case"meta":r+=this[Z_](e,r);break;default:throw new Error("invalid state: "+this[it])}r<s&&(this[ae]?this[ae]=Buffer.concat([e.slice(r),this[ae]]):this[ae]=e.slice(r))}end(e){this[br]||(this[Ae]?this[Ae].end(e):(this[Nr]=!0,this.brotli===void 0&&(e=e||Buffer.alloc(0)),this.write(e)))}})});var Qo=_((QB,iE)=>{"use strict";h();var QN=js(),rE=Zo(),ii=v("fs"),JN=si(),tE=v("path"),Zu=Ks();iE.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=QN(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&&tb(s,e),s.noResume||eb(s),s.file&&s.sync?rb(s):s.file?sb(s,r):sE(s)};var eb=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},tb=(t,e)=>{let r=new Map(e.map(n=>[Zu(n),!0])),s=t.filter,i=(n,o)=>{let a=o||tE.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(tE.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(Zu(n)):n=>i(Zu(n))},rb=t=>{let e=sE(t),r=t.file,s=!0,i;try{let n=ii.statSync(r),o=t.maxReadSize||16*1024*1024;if(n.size<o)e.end(ii.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=ii.openSync(r,"r");a<n.size;){let u=ii.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}s=!1}finally{if(s&&i)try{ii.closeSync(i)}catch{}}},sb=(t,e)=>{let r=new rE(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("end",o),ii.stat(i,(c,u)=>{if(c)a(c);else{let l=new JN.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},sE=t=>new rE(t)});var lE=_((e1,uE)=>{"use strict";h();var ib=js(),Jo=ko(),nE=si(),oE=Qo(),aE=v("path");uE.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=ib(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?nb(s,e):s.file?ob(s,e,r):s.sync?ab(s,e):cb(s,e)};var nb=(t,e)=>{let r=new Jo.Sync(t),s=new nE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(s),cE(r,e)},ob=(t,e,r)=>{let s=new Jo(t),i=new nE.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 Qu(s,e),r?n.then(r,r):n},cE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?oE({file:aE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},Qu=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return oE({file:aE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>Qu(t,e));t.add(r)}t.end()},ab=(t,e)=>{let r=new Jo.Sync(t);return cE(r,e),r},cb=(t,e)=>{let r=new Jo(t);return Qu(r,e),r}});var Ju=_((r1,EE)=>{"use strict";h();var ub=js(),hE=ko(),Je=v("fs"),fE=si(),dE=Qo(),pE=v("path"),mE=Ys();EE.exports=(t,e,r)=>{let s=ub(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?lb(s,e):fb(s,e,r)};var lb=(t,e)=>{let r=new hE.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 mE(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,hb(t,r,n,i,e)}finally{if(s)try{Je.closeSync(i)}catch{}}},hb=(t,e,r,s,i)=>{let n=new fE.WriteStreamSync(t.file,{fd:s,start:r});e.pipe(n),db(e,i)},fb=(t,e,r)=>{e=Array.from(e);let s=new hE(t),i=(o,a,c)=>{let u=(g,y)=>{g?Je.close(o,T=>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 T=new mE(d);if(!T.cksumValid)return u(null,l);let A=512*Math.ceil(T.size/512);if(l+A+512>a||(l+=A+512,l>=a))return u(null,l);t.mtimeCache&&t.mtimeCache.set(T.path,T.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 T=new fE.WriteStream(t.file,{fd:f,start:y});s.pipe(T),T.on("error",a),T.on("close",o),_E(s,e)})})};Je.open(t.file,c,u)});return r?n.then(r,r):n},db=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?dE({file:pE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},_E=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return dE({file:pE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>_E(t,e));t.add(r)}t.end()}});var yE=_((i1,gE)=>{"use strict";h();var pb=js(),mb=Ju();gE.exports=(t,e,r)=>{let s=pb(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),_b(s),mb(s,e,r)};var _b=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 RE=_((o1,OE)=>{"use strict";h();var{promisify:SE}=v("util"),wr=v("fs"),Eb=t=>{if(!t)t={mode:511,fs:wr};else if(typeof t=="object")t={mode:511,fs:wr,...t};else if(typeof t=="number")t={mode:t,fs:wr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:wr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||wr.mkdir,t.mkdirAsync=SE(t.mkdir),t.stat=t.stat||t.fs.stat||wr.stat,t.statAsync=SE(t.stat),t.statSync=t.statSync||t.fs.statSync||wr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||wr.mkdirSync,t};OE.exports=Eb});var TE=_((c1,vE)=>{"use strict";h();var gb=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:yb,parse:Sb}=v("path"),Ob=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=yb(t),gb==="win32"){let e=/[*|"<>?:]/,{root:r}=Sb(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};vE.exports=Ob});var wE=_((l1,bE)=>{"use strict";h();var{dirname:AE}=v("path"),IE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(s=>s.isDirectory()?r:void 0,s=>s.code==="ENOENT"?IE(t,AE(e),e):void 0),NE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(s){return s.code==="ENOENT"?NE(t,AE(e),e):void 0}};bE.exports={findMade:IE,findMadeSync:NE}});var rl=_((f1,PE)=>{"use strict";h();var{dirname:CE}=v("path"),el=(t,e,r)=>{e.recursive=!1;let s=CE(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 el(s,e).then(n=>el(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})})},tl=(t,e,r)=>{let s=CE(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 tl(t,e,tl(s,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};PE.exports={mkdirpManual:el,mkdirpManualSync:tl}});var LE=_((p1,xE)=>{"use strict";h();var{dirname:DE}=v("path"),{findMade:Rb,findMadeSync:vb}=wE(),{mkdirpManual:Tb,mkdirpManualSync:Ab}=rl(),Ib=(t,e)=>(e.recursive=!0,DE(t)===t?e.mkdirAsync(t,e):Rb(e,t).then(s=>e.mkdirAsync(t,e).then(()=>s).catch(i=>{if(i.code==="ENOENT")return Tb(t,e);throw i}))),Nb=(t,e)=>{if(e.recursive=!0,DE(t)===t)return e.mkdirSync(t,e);let s=vb(e,t);try{return e.mkdirSync(t,e),s}catch(i){if(i.code==="ENOENT")return Ab(t,e);throw i}};xE.exports={mkdirpNative:Ib,mkdirpNativeSync:Nb}});var UE=_((_1,kE)=>{"use strict";h();var ME=v("fs"),bb=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,sl=bb.replace(/^v/,"").split("."),FE=+sl[0]>10||+sl[0]==10&&+sl[1]>=12,wb=FE?t=>t.mkdir===ME.mkdir:()=>!1,Cb=FE?t=>t.mkdirSync===ME.mkdirSync:()=>!1;kE.exports={useNative:wb,useNativeSync:Cb}});var WE=_((g1,HE)=>{"use strict";h();var ni=RE(),oi=TE(),{mkdirpNative:BE,mkdirpNativeSync:jE}=LE(),{mkdirpManual:GE,mkdirpManualSync:qE}=rl(),{useNative:Pb,useNativeSync:Db}=UE(),ai=(t,e)=>(t=oi(t),e=ni(e),Pb(e)?BE(t,e):GE(t,e)),xb=(t,e)=>(t=oi(t),e=ni(e),Db(e)?jE(t,e):qE(t,e));ai.sync=xb;ai.native=(t,e)=>BE(oi(t),ni(e));ai.manual=(t,e)=>GE(oi(t),ni(e));ai.nativeSync=(t,e)=>jE(oi(t),ni(e));ai.manualSync=(t,e)=>qE(oi(t),ni(e));HE.exports=ai});var ZE=_((S1,XE)=>{"use strict";h();var ot=v("fs"),_s=v("path"),Lb=ot.lchown?"lchown":"chown",Mb=ot.lchownSync?"lchownSync":"chownSync",$E=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),VE=(t,e,r)=>{try{return ot[Mb](t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},Fb=(t,e,r)=>{try{return ot.chownSync(t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},kb=$E?(t,e,r,s)=>i=>{!i||i.code!=="EISDIR"?s(i):ot.chown(t,e,r,s)}:(t,e,r,s)=>s,il=$E?(t,e,r)=>{try{return VE(t,e,r)}catch(s){if(s.code!=="EISDIR")throw s;Fb(t,e,r)}}:(t,e,r)=>VE(t,e,r),Ub=process.version,YE=(t,e,r)=>ot.readdir(t,e,r),Bb=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(Ub)&&(YE=(t,e,r)=>ot.readdir(t,r));var ea=(t,e,r,s)=>{ot[Lb](t,e,r,kb(t,e,r,i=>{s(i&&i.code!=="ENOENT"?i:null)}))},KE=(t,e,r,s,i)=>{if(typeof e=="string")return ot.lstat(_s.resolve(t,e),(n,o)=>{if(n)return i(n.code!=="ENOENT"?n:null);o.name=e,KE(t,o,r,s,i)});if(e.isDirectory())nl(_s.resolve(t,e.name),r,s,n=>{if(n)return i(n);let o=_s.resolve(t,e.name);ea(o,r,s,i)});else{let n=_s.resolve(t,e.name);ea(n,r,s,i)}},nl=(t,e,r,s)=>{YE(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 ea(t,e,r,s);let o=n.length,a=null,c=u=>{if(!a){if(u)return s(a=u);if(--o===0)return ea(t,e,r,s)}};n.forEach(u=>KE(t,u,e,r,c))})},jb=(t,e,r,s)=>{if(typeof e=="string")try{let i=ot.lstatSync(_s.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&zE(_s.resolve(t,e.name),r,s),il(_s.resolve(t,e.name),r,s)},zE=(t,e,r)=>{let s;try{s=Bb(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return il(t,e,r);throw i}return s&&s.length&&s.forEach(i=>jb(t,i,e,r)),il(t,e,r)};XE.exports=nl;nl.sync=zE});var tg=_((R1,ol)=>{"use strict";h();var QE=WE(),at=v("fs"),ta=v("path"),JE=ZE(),Et=Vs(),ra=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},sa=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},ia=(t,e)=>t.get(Et(e)),zi=(t,e,r)=>t.set(Et(e),r),Gb=(t,e)=>{at.stat(t,(r,s)=>{(r||!s.isDirectory())&&(r=new sa(t,r&&r.code||"ENOTDIR")),e(r)})};ol.exports=(t,e,r)=>{t=Et(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=Et(e.cwd),E=(T,A)=>{T?r(T):(zi(f,t,!0),A&&c?JE(A,o,a,L=>E(L)):n?at.chmod(t,i,r):r())};if(f&&ia(f,t)===!0)return E();if(t===d)return Gb(t,E);if(u)return QE(t,{mode:i}).then(T=>E(null,T),E);let y=Et(ta.relative(d,t)).split("/");na(d,y,i,f,l,d,null,E)};var na=(t,e,r,s,i,n,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=Et(ta.resolve(t+"/"+c));if(ia(s,u))return na(u,e,r,s,i,n,o,a);at.mkdir(u,r,eg(u,e,r,s,i,n,o,a))},eg=(t,e,r,s,i,n,o,a)=>c=>{c?at.lstat(t,(u,l)=>{if(u)u.path=u.path&&Et(u.path),a(u);else if(l.isDirectory())na(t,e,r,s,i,n,o,a);else if(i)at.unlink(t,f=>{if(f)return a(f);at.mkdir(t,r,eg(t,e,r,s,i,n,o,a))});else{if(l.isSymbolicLink())return a(new ra(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,na(t,e,r,s,i,n,o,a))},qb=t=>{let e=!1,r="ENOTDIR";try{e=at.statSync(t).isDirectory()}catch(s){r=s.code}finally{if(!e)throw new sa(t,r)}};ol.exports.sync=(t,e)=>{t=Et(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=Et(e.cwd),d=T=>{zi(l,t,!0),T&&a&&JE.sync(T,n,o),i&&at.chmodSync(t,s)};if(l&&ia(l,t)===!0)return d();if(t===f)return qb(f),d();if(c)return d(QE.sync(t,s));let g=Et(ta.relative(f,t)).split("/"),y=null;for(let T=g.shift(),A=f;T&&(A+="/"+T);T=g.shift())if(A=Et(ta.resolve(A)),!ia(l,A))try{at.mkdirSync(A,s),y=y||A,zi(l,A,!0)}catch{let $=at.lstatSync(A);if($.isDirectory()){zi(l,A,!0);continue}else if(u){at.unlinkSync(A),at.mkdirSync(A,s),y=y||A,zi(l,A,!0);continue}else if($.isSymbolicLink())return new ra(A,A+"/"+g.join("/"))}return d(y)}});var cl=_((T1,rg)=>{"use strict";h();var al=Object.create(null),{hasOwnProperty:Hb}=Object.prototype;rg.exports=t=>(Hb.call(al,t)||(al[t]=t.normalize("NFD")),al[t])});var og=_((I1,ng)=>{"use strict";h();var sg=v("assert"),Wb=cl(),Vb=Ks(),{join:ig}=v("path"),$b=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Yb=$b==="win32";ng.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((f,d)=>(f.length&&(d=ig(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);sg.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);sg(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=Yb?["win32 parallelization disabled"]:u.map(d=>Vb(ig(Wb(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 ug=_((b1,cg)=>{"use strict";h();var Kb=process.env.__FAKE_PLATFORM__||process.platform,zb=Kb==="win32",Xb=global.__FAKE_TESTING_FS__||v("fs"),{O_CREAT:Zb,O_TRUNC:Qb,O_WRONLY:Jb,UV_FS_O_FILEMAP:ag=0}=Xb.constants,ew=zb&&!!ag,tw=512*1024,rw=ag|Qb|Zb|Jb;cg.exports=ew?t=>t<tw?rw:"w":()=>"w"});var El=_((C1,vg)=>{"use strict";h();var sw=v("assert"),iw=Zo(),te=v("fs"),nw=si(),Zt=v("path"),Sg=tg(),lg=_u(),ow=og(),aw=Eu(),et=Vs(),cw=Ks(),uw=cl(),hg=Symbol("onEntry"),hl=Symbol("checkFs"),fg=Symbol("checkFs2"),ca=Symbol("pruneCache"),fl=Symbol("isReusable"),ct=Symbol("makeFs"),dl=Symbol("file"),pl=Symbol("directory"),ua=Symbol("link"),dg=Symbol("symlink"),pg=Symbol("hardlink"),mg=Symbol("unsupported"),_g=Symbol("checkPath"),Cr=Symbol("mkdir"),Le=Symbol("onError"),oa=Symbol("pending"),Eg=Symbol("pend"),ci=Symbol("unpend"),ul=Symbol("ended"),ll=Symbol("maybeClose"),ml=Symbol("skip"),Xi=Symbol("doChown"),Zi=Symbol("uid"),Qi=Symbol("gid"),Ji=Symbol("checkedCwd"),Og=v("crypto"),Rg=ug(),lw=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,en=lw==="win32",hw=(t,e)=>{if(!en)return te.unlink(t,e);let r=t+".DELETE."+Og.randomBytes(16).toString("hex");te.rename(t,r,s=>{if(s)return e(s);te.unlink(r,e)})},fw=t=>{if(!en)return te.unlinkSync(t);let e=t+".DELETE."+Og.randomBytes(16).toString("hex");te.renameSync(t,e),te.unlinkSync(e)},gg=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,yg=t=>cw(et(uw(t))).toLowerCase(),dw=(t,e)=>{e=yg(e);for(let r of t.keys()){let s=yg(r);(s===e||s.indexOf(e+"/")===0)&&t.delete(r)}},pw=t=>{for(let e of t.keys())t.delete(e)},tn=class extends iw{constructor(e){if(e||(e={}),e.ondone=r=>{this[ul]=!0,this[ll]()},super(e),this[Ji]=!1,this.reservations=ow(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[oa]=0,this[ul]=!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.forceChown=e.forceChown===!0,this.win32=!!e.win32||en,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=et(Zt.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[hg](r))}warn(e,r,s={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(s.recoverable=!1),super.warn(e,r,s)}[ll](){this[ul]&&this[oa]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[_g](e){if(this.strip){let r=et(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let s=et(e.linkpath).split("/");if(s.length>=this.strip)e.linkpath=s.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=et(e.path),s=r.split("/");if(s.includes("..")||en&&/^[a-z]:\.\.$/i.test(s[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,n]=aw(r);i&&(e.path=n,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(Zt.isAbsolute(e.path)?e.absolute=et(Zt.resolve(e.path)):e.absolute=et(Zt.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:et(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:r}=Zt.win32.parse(e.absolute);e.absolute=r+lg.encode(e.absolute.slice(r.length));let{root:s}=Zt.win32.parse(e.path);e.path=s+lg.encode(e.path.slice(s.length))}return!0}[hg](e){if(!this[_g](e))return e.resume();switch(sw.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[hl](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[mg](e)}}[Le](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[ci](),r.resume())}[Cr](e,r,s){Sg(et(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)}[Xi](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}[Zi](e){return gg(this.uid,e.uid,this.processUid)}[Qi](e){return gg(this.gid,e.gid,this.processGid)}[dl](e,r){let s=e.mode&4095||this.fmode,i=new nw.WriteStream(e.absolute,{flags:Rg(e.size),mode:s,autoClose:!1});i.on("error",c=>{i.fd&&te.close(i.fd,()=>{}),i.write=()=>!0,this[Le](c,e),r()});let n=1,o=c=>{if(c){i.fd&&te.close(i.fd,()=>{}),this[Le](c,e),r();return}--n===0&&te.close(i.fd,u=>{u?this[Le](u,e):this[ci](),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;te.futimes(l,f,d,E=>E?te.utimes(u,f,d,g=>o(g&&E)):o())}if(this[Xi](e)){n++;let f=this[Zi](e),d=this[Qi](e);te.fchown(l,f,d,E=>E?te.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[Le](c,e),r()}),e.pipe(a)),a.pipe(i)}[pl](e,r){let s=e.mode&4095||this.dmode;this[Cr](e.absolute,s,i=>{if(i){this[Le](i,e),r();return}let n=1,o=a=>{--n===0&&(r(),this[ci](),e.resume())};e.mtime&&!this.noMtime&&(n++,te.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Xi](e)&&(n++,te.chown(e.absolute,this[Zi](e),this[Qi](e),o)),o()})}[mg](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[dg](e,r){this[ua](e,e.linkpath,"symlink",r)}[pg](e,r){let s=et(Zt.resolve(this.cwd,e.linkpath));this[ua](e,s,"link",r)}[Eg](){this[oa]++}[ci](){this[oa]--,this[ll]()}[ml](e){this[ci](),e.resume()}[fl](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!en}[hl](e){this[Eg]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,s=>this[fg](e,s))}[ca](e){e.type==="SymbolicLink"?pw(this.dirCache):e.type!=="Directory"&&dw(this.dirCache,e.absolute)}[fg](e,r){this[ca](e);let s=a=>{this[ca](e),r(a)},i=()=>{this[Cr](this.cwd,this.dmode,a=>{if(a){this[Le](a,e),s();return}this[Ji]=!0,n()})},n=()=>{if(e.absolute!==this.cwd){let a=et(Zt.dirname(e.absolute));if(a!==this.cwd)return this[Cr](a,this.dmode,c=>{if(c){this[Le](c,e),s();return}o()})}o()},o=()=>{te.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[ml](e),s();return}if(a||this[fl](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?te.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return te.rmdir(e.absolute,u=>this[ct](u,e,s))}if(e.absolute===this.cwd)return this[ct](null,e,s);hw(e.absolute,u=>this[ct](u,e,s))})};this[Ji]?n():i()}[ct](e,r,s){if(e){this[Le](e,r),s();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[dl](r,s);case"Link":return this[pg](r,s);case"SymbolicLink":return this[dg](r,s);case"Directory":case"GNUDumpDir":return this[pl](r,s)}}[ua](e,r,s,i){te[s](r,e.absolute,n=>{n?this[Le](n,e):(this[ci](),e.resume()),i()})}},aa=t=>{try{return[null,t()]}catch(e){return[e,null]}},_l=class extends tn{[ct](e,r){return super[ct](e,r,()=>{})}[hl](e){if(this[ca](e),!this[Ji]){let n=this[Cr](this.cwd,this.dmode);if(n)return this[Le](n,e);this[Ji]=!0}if(e.absolute!==this.cwd){let n=et(Zt.dirname(e.absolute));if(n!==this.cwd){let o=this[Cr](n,this.dmode);if(o)return this[Le](o,e)}}let[r,s]=aa(()=>te.lstatSync(e.absolute));if(s&&(this.keep||this.newer&&s.mtime>e.mtime))return this[ml](e);if(r||this[fl](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?aa(()=>{te.chmodSync(e.absolute,e.mode)}):[];return this[ct](a,e)}let[n]=aa(()=>te.rmdirSync(e.absolute));this[ct](n,e)}let[i]=e.absolute===this.cwd?[]:aa(()=>fw(e.absolute));this[ct](i,e)}[dl](e,r){let s=e.mode&4095||this.fmode,i=a=>{let c;try{te.closeSync(n)}catch(u){c=u}(a||c)&&this[Le](a||c,e),r()},n;try{n=te.openSync(e.absolute,Rg(e.size),s)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Le](a,e)),e.pipe(o)),o.on("data",a=>{try{te.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{te.futimesSync(n,u,l)}catch(f){try{te.utimesSync(e.absolute,u,l)}catch{c=f}}}if(this[Xi](e)){let u=this[Zi](e),l=this[Qi](e);try{te.fchownSync(n,u,l)}catch(f){try{te.chownSync(e.absolute,u,l)}catch{c=c||f}}}i(c)})}[pl](e,r){let s=e.mode&4095||this.dmode,i=this[Cr](e.absolute,s);if(i){this[Le](i,e),r();return}if(e.mtime&&!this.noMtime)try{te.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Xi](e))try{te.chownSync(e.absolute,this[Zi](e),this[Qi](e))}catch{}r(),e.resume()}[Cr](e,r){try{return Sg.sync(et(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}}[ua](e,r,s,i){try{te[s+"Sync"](r,e.absolute),i(),e.resume()}catch(n){return this[Le](n,e)}}};tn.Sync=_l;vg.exports=tn});var bg=_((D1,Ng)=>{"use strict";h();var mw=js(),la=El(),Ag=v("fs"),Ig=si(),Tg=v("path"),gl=Ks();Ng.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=mw(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&&_w(s,e),s.file&&s.sync?Ew(s):s.file?gw(s,r):s.sync?yw(s):Sw(s)};var _w=(t,e)=>{let r=new Map(e.map(n=>[gl(n),!0])),s=t.filter,i=(n,o)=>{let a=o||Tg.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(Tg.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(gl(n)):n=>i(gl(n))},Ew=t=>{let e=new la.Sync(t),r=t.file,s=Ag.statSync(r),i=t.maxReadSize||16*1024*1024;new Ig.ReadStreamSync(r,{readSize:i,size:s.size}).pipe(e)},gw=(t,e)=>{let r=new la(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Ag.stat(i,(c,u)=>{if(c)a(c);else{let l=new Ig.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},yw=t=>new la.Sync(t),Sw=t=>new la(t)});var wg=_(Oe=>{"use strict";h();Oe.c=Oe.create=lE();Oe.r=Oe.replace=Ju();Oe.t=Oe.list=Qo();Oe.u=Oe.update=yE();Oe.x=Oe.extract=bg();Oe.Pack=ko();Oe.Unpack=El();Oe.Parse=Zo();Oe.ReadEntry=So();Oe.WriteEntry=Nu();Oe.Header=Ys();Oe.Pax=Ro();Oe.types=uu()});var yl=_((Z1,Mg)=>{"use strict";h();var Cw=v("stream"),xg=Cw.PassThrough,Pw=Array.prototype.slice;Mg.exports=Dw;function Dw(){let t=[],e=Pw.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=xg(s);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push(Lg(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",T),d()}function T(A){o.emit("error",A)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",y),g.on("end",y),n&&g.on("error",T),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 Lg(t,e){if(Array.isArray(t))for(let r=0,s=t.length;r<s;r++)t[r]=Lg(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(xg(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Fg=_(ui=>{"use strict";h();Object.defineProperty(ui,"__esModule",{value:!0});ui.splitWhen=ui.flatten=void 0;function xw(t){return t.reduce((e,r)=>[].concat(e,r),[])}ui.flatten=xw;function Lw(t,e){let r=[[]],s=0;for(let i of t)e(i)?(s++,r[s]=[]):r[s].push(i);return r}ui.splitWhen=Lw});var kg=_(ha=>{"use strict";h();Object.defineProperty(ha,"__esModule",{value:!0});ha.isEnoentCodeError=void 0;function Mw(t){return t.code==="ENOENT"}ha.isEnoentCodeError=Mw});var Ug=_(fa=>{"use strict";h();Object.defineProperty(fa,"__esModule",{value:!0});fa.createDirentFromStats=void 0;var Sl=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 Fw(t,e){return new Sl(t,e)}fa.createDirentFromStats=Fw});var qg=_(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 kw=v("os"),Uw=v("path"),Bg=kw.platform()==="win32",Bw=2,jw=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Gw=/(\\?)([(){}]|^!|[!+@](?=\())/g,qw=/^\\\\([.?])/,Hw=/\\(?![!()+@{}])/g;function Ww(t){return t.replace(/\\/g,"/")}ye.unixify=Ww;function Vw(t,e){return Uw.resolve(t,e)}ye.makeAbsolute=Vw;function $w(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Bw)}return t}ye.removeLeadingDotSegment=$w;ye.escape=Bg?Ol:Rl;function Ol(t){return t.replace(Gw,"\\$2")}ye.escapeWindowsPath=Ol;function Rl(t){return t.replace(jw,"\\$2")}ye.escapePosixPath=Rl;ye.convertPathToPattern=Bg?jg:Gg;function jg(t){return Ol(t).replace(qw,"//$1").replace(Hw,"/")}ye.convertWindowsPathToPattern=jg;function Gg(t){return Rl(t)}ye.convertPosixPathToPattern=Gg});var Wg=_((aj,Hg)=>{"use strict";h();Hg.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 vl=_((uj,$g)=>{"use strict";h();var Yw=Wg(),Vg={"{":"}","(":")","[":"]"},Kw=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=Vg[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},zw=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=Vg[r];if(s){var i=t.indexOf(s,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};$g.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Yw(e))return!0;var s=Kw;return r&&r.strict===!1&&(s=zw),s(e)}});var Al=_((hj,Yg)=>{"use strict";h();var Xw=vl(),Zw=v("path").posix.dirname,Qw=v("os").platform()==="win32",Tl="/",Jw=/\\/g,eC=/[\{\[].*[\}\]]$/,tC=/(^|[^\\])([\{\[]|\([^\)]+$)/,rC=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Yg.exports=function(e,r){var s=Object.assign({flipBackslashes:!0},r);s.flipBackslashes&&Qw&&e.indexOf(Tl)<0&&(e=e.replace(Jw,Tl)),eC.test(e)&&(e+=Tl),e+="a";do e=Zw(e);while(Xw(e)||tC.test(e));return e.replace(rC,"$1")}});var da=_(ut=>{"use strict";h();ut.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;ut.find=(t,e)=>t.nodes.find(r=>r.type===e);ut.exceedsLimit=(t,e,r=1,s)=>s===!1||!ut.isInteger(t)||!ut.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=s;ut.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)};ut.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);ut.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;ut.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;ut.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);ut.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 pa=_((mj,zg)=>{"use strict";h();var Kg=da();zg.exports=(t,e={})=>{let r=(s,i={})=>{let n=e.escapeInvalid&&Kg.isInvalidBrace(i),o=s.invalid===!0&&e.escapeInvalid===!0,a="";if(s.value)return(n||o)&&Kg.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 Zg=_((Ej,Xg)=>{"use strict";h();Xg.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var oy=_((yj,ny)=>{"use strict";h();var Qg=Zg(),Es=(t,e,r)=>{if(Qg(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Qg(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(Es.cache.hasOwnProperty(c))return Es.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=iy(t)||iy(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=Jg(y,Math.abs(u),d,s),u=d.a=0}return l>=0&&(E=Jg(u,l,d,s)),d.negatives=g,d.positives=E,d.result=sC(g,E,s),s.capture===!0?d.result=`(${d.result})`:s.wrap!==!1&&E.length+g.length>1&&(d.result=`(?:${d.result})`),Es.cache[c]=d,d.result};function sC(t,e,r){let s=Il(t,e,"-",!1,r)||[],i=Il(e,t,"",!1,r)||[],n=Il(t,e,"-?",!0,r)||[];return s.concat(n).concat(i).join("|")}function iC(t,e){let r=1,s=1,i=ty(t,r),n=new Set([e]);for(;t<=i&&i<=e;)n.add(i),r+=1,i=ty(t,r);for(i=ry(e+1,s)-1;t<i&&i<=e;)n.add(i),s+=1,i=ry(e+1,s)-1;return n=[...n],n.sort(aC),n}function nC(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let s=oC(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+=cC(c,u,r):o++}return o&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[o],digits:i}}function Jg(t,e,r,s){let i=iC(t,e),n=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],l=nC(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+sy(a.count),o=u+1;continue}r.isPadded&&(f=uC(u,r,s)),l.string=f+l.pattern+sy(l.count),n.push(l),o=u+1,a=l}return n}function Il(t,e,r,s,i){let n=[];for(let o of t){let{string:a}=o;!s&&!ey(e,"string",a)&&n.push(r+a),s&&ey(e,"string",a)&&n.push(r+a)}return n}function oC(t,e){let r=[];for(let s=0;s<t.length;s++)r.push([t[s],e[s]]);return r}function aC(t,e){return t>e?1:e>t?-1:0}function ey(t,e,r){return t.some(s=>s[e]===r)}function ty(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function ry(t,e){return t-t%Math.pow(10,e)}function sy(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function cC(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function iy(t){return/^-?(0+)\d/.test(t)}function uC(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}}`}}Es.cache={};Es.clearCache=()=>Es.cache={};ny.exports=Es});var wl=_((Oj,py)=>{"use strict";h();var lC=v("util"),uy=oy(),ay=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),hC=t=>e=>t===!0?Number(e):String(e),Nl=t=>typeof t=="number"||typeof t=="string"&&t!=="",rn=t=>Number.isInteger(+t),bl=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},fC=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,dC=(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},cy=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},pC=(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},ly=(t,e,r,s)=>{if(r)return uy(t,e,{wrap:!1,...s});let i=String.fromCharCode(t);if(t===e)return i;let n=String.fromCharCode(e);return`[${i}-${n}]`},hy=(t,e,r)=>{if(Array.isArray(t)){let s=r.wrap===!0,i=r.capture?"":"?:";return s?`(${i}${t.join("|")})`:t.join("|")}return uy(t,e,r)},fy=(...t)=>new RangeError("Invalid range arguments: "+lC.inspect(...t)),dy=(t,e,r)=>{if(r.strictRanges===!0)throw fy([t,e]);return[]},mC=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},_C=(t,e,r=1,s={})=>{let i=Number(t),n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(s.strictRanges===!0)throw fy([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=bl(a)||bl(c)||bl(u),f=l?Math.max(a.length,c.length,u.length):0,d=l===!1&&fC(t,e,s)===!1,E=s.transform||hC(d);if(s.toRegex&&r===1)return ly(cy(t,f),cy(e,f),!0,s);let g={negatives:[],positives:[]},y=L=>g[L<0?"negatives":"positives"].push(Math.abs(L)),T=[],A=0;for(;o?i>=n:i<=n;)s.toRegex===!0&&r>1?y(i):T.push(dC(E(i,A),f,d)),i=o?i-r:i+r,A++;return s.toRegex===!0?r>1?pC(g,s):hy(T,null,{wrap:!1,...s}):T},EC=(t,e,r=1,s={})=>{if(!rn(t)&&t.length>1||!rn(e)&&e.length>1)return dy(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 ly(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?hy(l,null,{wrap:!1,options:s}):l},ma=(t,e,r,s={})=>{if(e==null&&Nl(t))return[t];if(!Nl(t)||!Nl(e))return dy(t,e,s);if(typeof r=="function")return ma(t,e,1,{transform:r});if(ay(r))return ma(t,e,0,r);let i={...s};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,rn(r)?rn(t)&&rn(e)?_C(t,e,r,i):EC(t,e,Math.max(Math.abs(r),1),i):r!=null&&!ay(r)?mC(r,i):ma(t,e,1,r)};py.exports=ma});var Ey=_((vj,_y)=>{"use strict";h();var gC=wl(),my=da(),yC=(t,e={})=>{let r=(s,i={})=>{let n=my.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=my.reduce(s.nodes),f=gC(...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)};_y.exports=yC});var Sy=_((Aj,yy)=>{"use strict";h();var SC=wl(),gy=pa(),li=da(),gs=(t="",e="",r=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?li.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let n of i)s.push(gs(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),s.push(Array.isArray(n)?gs(i,n,r):i+n);return li.flatten(s)},OC=(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(gs(a.pop(),gy(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(gs(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=li.reduce(i.nodes);if(li.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=SC(...f,e);d.length===0&&(d=gy(i,e)),a.push(gs(a.pop(),d)),i.nodes=[];return}let c=li.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(gs(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(gs(u.pop(),d.value));continue}d.nodes&&s(d,i)}return u};return li.flatten(s(t))};yy.exports=OC});var Ry=_((Nj,Oy)=>{"use strict";h();Oy.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 Ny=_((wj,Iy)=>{"use strict";h();var RC=pa(),{MAX_LENGTH:vy,CHAR_BACKSLASH:Cl,CHAR_BACKTICK:vC,CHAR_COMMA:TC,CHAR_DOT:AC,CHAR_LEFT_PARENTHESES:IC,CHAR_RIGHT_PARENTHESES:NC,CHAR_LEFT_CURLY_BRACE:bC,CHAR_RIGHT_CURLY_BRACE:wC,CHAR_LEFT_SQUARE_BRACKET:Ty,CHAR_RIGHT_SQUARE_BRACKET:Ay,CHAR_DOUBLE_QUOTE:CC,CHAR_SINGLE_QUOTE:PC,CHAR_NO_BREAK_SPACE:DC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xC}=Ry(),LC=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},s=typeof r.maxLength=="number"?Math.min(vy,r.maxLength):vy;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=T=>{if(T.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&T.type==="text"){a.value+=T.value;return}return o.nodes.push(T),T.parent=o,T.prev=a,a=T,T};for(y({type:"bos"});l<u;)if(o=n[n.length-1],d=g(),!(d===xC||d===DC)){if(d===Cl){y({type:"text",value:(e.keepEscaping?d:"")+g()});continue}if(d===Ay){y({type:"text",value:"\\"+d});continue}if(d===Ty){c++;let T=!0,A;for(;l<u&&(A=g());){if(d+=A,A===Ty){c++;continue}if(A===Cl){d+=g();continue}if(A===Ay&&(c--,c===0))break}y({type:"text",value:d});continue}if(d===IC){o=y({type:"paren",nodes:[]}),n.push(o),y({type:"text",value:d});continue}if(d===NC){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===CC||d===PC||d===vC){let T=d,A;for(e.keepQuotes!==!0&&(d="");l<u&&(A=g());){if(A===Cl){d+=A+g();continue}if(A===T){e.keepQuotes===!0&&(d+=A);break}d+=A}y({type:"text",value:d});continue}if(d===bC){f++;let A={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(A),n.push(o),y({type:"open",value:d});continue}if(d===wC){if(o.type!=="brace"){y({type:"text",value:d});continue}let T="close";o=n.pop(),o.close=!0,y({type:T,value:d}),f--,o=n[n.length-1];continue}if(d===TC&&f>0){if(o.ranges>0){o.ranges=0;let T=o.nodes.shift();o.nodes=[T,{type:"text",value:RC(o)}]}y({type:"comma",value:d}),o.commas++;continue}if(d===AC&&f>0&&o.commas===0){let T=o.nodes;if(f===0||T.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"){T.pop();let A=T[T.length-1];A.value+=a.value+d,a=A,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(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let T=n[n.length-1],A=T.nodes.indexOf(o);T.nodes.splice(A,1,...o.nodes)}while(n.length>0);return y({type:"eos"}),i};Iy.exports=LC});var Pl=_((Pj,wy)=>{"use strict";h();var by=pa(),MC=Ey(),FC=Sy(),kC=Ny(),tt=(t,e={})=>{let r=[];if(Array.isArray(t))for(let s of t){let i=tt.create(s,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(tt.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};tt.parse=(t,e={})=>kC(t,e);tt.stringify=(t,e={})=>by(typeof t=="string"?tt.parse(t,e):t,e);tt.compile=(t,e={})=>(typeof t=="string"&&(t=tt.parse(t,e)),MC(t,e));tt.expand=(t,e={})=>{typeof t=="string"&&(t=tt.parse(t,e));let r=FC(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};tt.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?tt.compile(t,e):tt.expand(t,e);wy.exports=tt});var sn=_((xj,Ly)=>{"use strict";h();var UC=v("path"),Pt="\\\\/",Cy=`[^${Pt}]`,Jt="\\.",BC="\\+",jC="\\?",_a="\\/",GC="(?=.)",Py="[^/]",Dl=`(?:${_a}|$)`,Dy=`(?:^|${_a})`,xl=`${Jt}{1,2}${Dl}`,qC=`(?!${Jt})`,HC=`(?!${Dy}${xl})`,WC=`(?!${Jt}{0,1}${Dl})`,VC=`(?!${xl})`,$C=`[^.${_a}]`,YC=`${Py}*?`,xy={DOT_LITERAL:Jt,PLUS_LITERAL:BC,QMARK_LITERAL:jC,SLASH_LITERAL:_a,ONE_CHAR:GC,QMARK:Py,END_ANCHOR:Dl,DOTS_SLASH:xl,NO_DOT:qC,NO_DOTS:HC,NO_DOT_SLASH:WC,NO_DOTS_SLASH:VC,QMARK_NO_DOT:$C,STAR:YC,START_ANCHOR:Dy},KC={...xy,SLASH_LITERAL:`[${Pt}]`,QMARK:Cy,STAR:`${Cy}*?`,DOTS_SLASH:`${Jt}{1,2}(?:[${Pt}]|$)`,NO_DOT:`(?!${Jt})`,NO_DOTS:`(?!(?:^|[${Pt}])${Jt}{1,2}(?:[${Pt}]|$))`,NO_DOT_SLASH:`(?!${Jt}{0,1}(?:[${Pt}]|$))`,NO_DOTS_SLASH:`(?!${Jt}{1,2}(?:[${Pt}]|$))`,QMARK_NO_DOT:`[^.${Pt}]`,START_ANCHOR:`(?:^|[${Pt}])`,END_ANCHOR:`(?:[${Pt}]|$)`},zC={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"};Ly.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:zC,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:UC.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?KC:xy}}});var nn=_(Ye=>{"use strict";h();var XC=v("path"),ZC=process.platform==="win32",{REGEX_BACKSLASH:QC,REGEX_REMOVE_BACKSLASH:JC,REGEX_SPECIAL_CHARS:eP,REGEX_SPECIAL_CHARS_GLOBAL:tP}=sn();Ye.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ye.hasRegexChars=t=>eP.test(t);Ye.isRegexChar=t=>t.length===1&&Ye.hasRegexChars(t);Ye.escapeRegex=t=>t.replace(tP,"\\$1");Ye.toPosixSlashes=t=>t.replace(QC,"/");Ye.removeBackslashes=t=>t.replace(JC,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:ZC===!0||XC.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 qy=_((kj,Gy)=>{"use strict";h();var My=nn(),{CHAR_ASTERISK:Ll,CHAR_AT:rP,CHAR_BACKWARD_SLASH:on,CHAR_COMMA:sP,CHAR_DOT:Ml,CHAR_EXCLAMATION_MARK:Fl,CHAR_FORWARD_SLASH:jy,CHAR_LEFT_CURLY_BRACE:kl,CHAR_LEFT_PARENTHESES:Ul,CHAR_LEFT_SQUARE_BRACKET:iP,CHAR_PLUS:nP,CHAR_QUESTION_MARK:Fy,CHAR_RIGHT_CURLY_BRACE:oP,CHAR_RIGHT_PARENTHESES:ky,CHAR_RIGHT_SQUARE_BRACKET:aP}=sn(),Uy=t=>t===jy||t===on,By=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},cP=(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,T=!1,A=!1,L=!1,$=!1,de=!1,k=!1,j=0,U,D,Z={value:"",depth:0,isGlob:!1},be=()=>u>=s,R=()=>c.charCodeAt(u+1),le=()=>(U=D,c.charCodeAt(++u));for(;u<s;){D=le();let Ue;if(D===on){L=Z.backslashes=!0,D=le(),D===kl&&(A=!0);continue}if(A===!0||D===kl){for(j++;be()!==!0&&(D=le());){if(D===on){L=Z.backslashes=!0,le();continue}if(D===kl){j++;continue}if(A!==!0&&D===Ml&&(D=le())===Ml){if(d=Z.isBrace=!0,g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(A!==!0&&D===sP){if(d=Z.isBrace=!0,g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===oP&&(j--,j===0)){A=!1,d=Z.isBrace=!0,k=!0;break}}if(i===!0)continue;break}if(D===jy){if(n.push(u),o.push(Z),Z={value:"",depth:0,isGlob:!1},k===!0)continue;if(U===Ml&&u===l+1){l+=2;continue}f=u+1;continue}if(r.noext!==!0&&(D===nP||D===rP||D===Ll||D===Fy||D===Fl)===!0&&R()===Ul){if(g=Z.isGlob=!0,y=Z.isExtglob=!0,k=!0,D===Fl&&u===l&&(de=!0),i===!0){for(;be()!==!0&&(D=le());){if(D===on){L=Z.backslashes=!0,D=le();continue}if(D===ky){g=Z.isGlob=!0,k=!0;break}}continue}break}if(D===Ll){if(U===Ll&&(T=Z.isGlobstar=!0),g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===Fy){if(g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===iP){for(;be()!==!0&&(Ue=le());){if(Ue===on){L=Z.backslashes=!0,le();continue}if(Ue===aP){E=Z.isBracket=!0,g=Z.isGlob=!0,k=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===Fl&&u===l){$=Z.negated=!0,l++;continue}if(r.noparen!==!0&&D===Ul){if(g=Z.isGlob=!0,i===!0){for(;be()!==!0&&(D=le());){if(D===Ul){L=Z.backslashes=!0,D=le();continue}if(D===ky){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,sr="",S="";l>0&&(sr=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&&Uy(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),r.unescape===!0&&(S&&(S=My.removeBackslashes(S)),ce&&L===!0&&(ce=My.removeBackslashes(ce)));let O={prefix:sr,input:t,start:l,base:ce,glob:S,isBrace:d,isBracket:E,isGlob:g,isExtglob:y,isGlobstar:T,negated:$,negatedExtglob:de};if(r.tokens===!0&&(O.maxDepth=0,Uy(D)||o.push(Z),O.tokens=o),r.parts===!0||r.tokens===!0){let Ue;for(let Q=0;Q<n.length;Q++){let Ot=Ue?Ue+1:l,Rt=n[Q],Ke=t.slice(Ot,Rt);r.tokens&&(Q===0&&l!==0?(o[Q].isPrefix=!0,o[Q].value=sr):o[Q].value=Ke,By(o[Q]),O.maxDepth+=o[Q].depth),(Q!==0||Ke!=="")&&a.push(Ke),Ue=Rt}if(Ue&&Ue+1<t.length){let Q=t.slice(Ue+1);a.push(Q),r.tokens&&(o[o.length-1].value=Q,By(o[o.length-1]),O.maxDepth+=o[o.length-1].depth)}O.slashes=n,O.parts=a}return O};Gy.exports=cP});var Vy=_((Bj,Wy)=>{"use strict";h();var Ea=sn(),rt=nn(),{MAX_LENGTH:ga,POSIX_REGEX_SOURCE:uP,REGEX_NON_SPECIAL_CHARS:lP,REGEX_SPECIAL_CHARS_BACKREF:hP,REPLACEMENTS:Hy}=Ea,fP=(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=>rt.escapeRegex(i)).join("..")}return r},hi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Bl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Hy[t]||t;let r={...e},s=typeof r.maxLength=="number"?Math.min(ga,r.maxLength):ga,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=rt.isWindows(e),u=Ea.globChars(c),l=Ea.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:d,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:T,NO_DOT_SLASH:A,NO_DOTS_SLASH:L,QMARK:$,QMARK_NO_DOT:de,STAR:k,START_ANCHOR:j}=u,U=C=>`(${a}(?:(?!${j}${C.dot?y:f}).)*?)`,D=r.dot?"":T,Z=r.dot?$:de,be=r.bash===!0?U(r):k;r.capture&&(be=`(${be})`),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=rt.removePrefix(t,R),i=t.length;let le=[],ce=[],sr=[],S=n,O,Ue=()=>R.index===i-1,Q=R.peek=(C=1)=>t[R.index+C],Ot=R.advance=()=>t[++R.index]||"",Rt=()=>t.slice(R.index+1),Ke=(C="",ue=0)=>{R.consumed+=C,R.index+=ue},An=C=>{R.output+=C.output!=null?C.output:C.value,Ke(C.value)},sT=()=>{let C=1;for(;Q()==="!"&&(Q(2)!=="("||Q(3)==="?");)Ot(),R.start++,C++;return C%2===0?!1:(R.negated=!0,R.start++,!0)},In=C=>{R[C]++,sr.push(C)},jr=C=>{R[C]--,sr.pop()},z=C=>{if(S.type==="globstar"){let ue=R.braces>0&&(C.type==="comma"||C.type==="brace"),N=C.extglob===!0||le.length&&(C.type==="pipe"||C.type==="paren");C.type!=="slash"&&C.type!=="paren"&&!ue&&!N&&(R.output=R.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=be,R.output+=S.output)}if(le.length&&C.type!=="paren"&&(le[le.length-1].inner+=C.value),(C.value||C.output)&&An(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},Nn=(C,ue)=>{let N={...l[ue],conditions:1,inner:""};N.prev=S,N.parens=R.parens,N.output=R.output;let Y=(r.capture?"(":"")+N.open;In("parens"),z({type:C,value:ue,output:R.output?"":g}),z({type:"paren",extglob:!0,value:Ot(),output:Y}),le.push(N)},iT=C=>{let ue=C.close+(r.capture?")":""),N;if(C.type==="negate"){let Y=be;if(C.inner&&C.inner.length>1&&C.inner.includes("/")&&(Y=U(r)),(Y!==be||Ue()||/^\)+$/.test(Rt()))&&(ue=C.close=`)$))${Y}`),C.inner.includes("*")&&(N=Rt())&&/^\.[^\\/.]+$/.test(N)){let pe=Bl(N,{...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}),jr("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let C=!1,ue=t.replace(hP,(N,Y,pe,Be,Se,oc)=>Be==="\\"?(C=!0,N):Be==="?"?Y?Y+Be+(Se?$.repeat(Se.length):""):oc===0?Z+(Se?$.repeat(Se.length):""):$.repeat(pe.length):Be==="."?f.repeat(pe.length):Be==="*"?Y?Y+Be+(Se?be:""):be:Y?N:`\\${N}`);return C===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,N=>N.length%2===0?"\\\\":N?"\\":"")),ue===t&&r.contains===!0?(R.output=t,R):(R.output=rt.wrapOutput(ue,R,e),R)}for(;!Ue();){if(O=Ot(),O==="\0")continue;if(O==="\\"){let N=Q();if(N==="/"&&r.bash!==!0||N==="."||N===";")continue;if(!N){O+="\\",z({type:"text",value:O});continue}let Y=/^\\+/.exec(Rt()),pe=0;if(Y&&Y[0].length>2&&(pe=Y[0].length,R.index+=pe,pe%2!==0&&(O+="\\")),r.unescape===!0?O=Ot():O+=Ot(),R.brackets===0){z({type:"text",value:O});continue}}if(R.brackets>0&&(O!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&O===":"){let N=S.value.slice(1);if(N.includes("[")&&(S.posix=!0,N.includes(":"))){let Y=S.value.lastIndexOf("["),pe=S.value.slice(0,Y),Be=S.value.slice(Y+2),Se=uP[Be];if(Se){S.value=pe+Se,R.backtrack=!0,Ot(),!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,An({value:O});continue}if(R.quotes===1&&O!=='"'){O=rt.escapeRegex(O),S.value+=O,An({value:O});continue}if(O==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:O});continue}if(O==="("){In("parens"),z({type:"paren",value:O});continue}if(O===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(hi("opening","("));let N=le[le.length-1];if(N&&R.parens===N.parens+1){iT(le.pop());continue}z({type:"paren",value:O,output:R.parens?")":"\\)"}),jr("parens");continue}if(O==="["){if(r.nobracket===!0||!Rt().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));O=`\\${O}`}else In("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(hi("opening","["));z({type:"text",value:O,output:`\\${O}`});continue}jr("brackets");let N=S.value.slice(1);if(S.posix!==!0&&N[0]==="^"&&!N.includes("/")&&(O=`/${O}`),S.value+=O,An({value:O}),r.literalBrackets===!1||rt.hasRegexChars(N))continue;let Y=rt.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){In("braces");let N={type:"brace",value:O,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};ce.push(N),z(N);continue}if(O==="}"){let N=ce[ce.length-1];if(r.nobrace===!0||!N){z({type:"text",value:O,output:O});continue}let Y=")";if(N.dots===!0){let pe=o.slice(),Be=[];for(let Se=pe.length-1;Se>=0&&(o.pop(),pe[Se].type!=="brace");Se--)pe[Se].type!=="dots"&&Be.unshift(pe[Se].value);Y=fP(Be,r),R.backtrack=!0}if(N.comma!==!0&&N.dots!==!0){let pe=R.output.slice(0,N.outputIndex),Be=R.tokens.slice(N.tokensIndex);N.value=N.output="\\{",O=Y="\\}",R.output=pe;for(let Se of Be)R.output+=Se.output||Se.value}z({type:"brace",value:O,output:Y}),jr("braces"),ce.pop();continue}if(O==="|"){le.length>0&&le[le.length-1].conditions++,z({type:"text",value:O});continue}if(O===","){let N=O,Y=ce[ce.length-1];Y&&sr[sr.length-1]==="braces"&&(Y.comma=!0,N="|"),z({type:"comma",value:O,output:N});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 N=ce[ce.length-1];S.type="dots",S.output+=O,S.value+=O,N.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)!=="?"){Nn("qmark",O);continue}if(S&&S.type==="paren"){let Y=Q(),pe=O;if(Y==="<"&&!rt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(Rt()))&&(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)))){Nn("negate",O);continue}if(r.nonegate!==!0&&R.index===0){sT();continue}}if(O==="+"){if(r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){Nn("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 N=lP.exec(Rt());N&&(O+=N[0],R.index+=N[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=be,R.backtrack=!0,R.globstar=!0,Ke(O);continue}let C=Rt();if(r.noextglob!==!0&&/^\([^?]/.test(C)){Nn("star",O);continue}if(S.type==="star"){if(r.noglobstar===!0){Ke(O);continue}let N=S.prev,Y=N.prev,pe=N.type==="slash"||N.type==="bos",Be=Y&&(Y.type==="star"||Y.type==="globstar");if(r.bash===!0&&(!pe||C[0]&&C[0]!=="/")){z({type:"star",value:O,output:""});continue}let Se=R.braces>0&&(N.type==="comma"||N.type==="brace"),oc=le.length&&(N.type==="pipe"||N.type==="paren");if(!pe&&N.type!=="paren"&&!Se&&!oc){z({type:"star",value:O,output:""});continue}for(;C.slice(0,3)==="/**";){let bn=t[R.index+4];if(bn&&bn!=="/")break;C=C.slice(3),Ke("/**",3)}if(N.type==="bos"&&Ue()){S.type="globstar",S.value+=O,S.output=U(r),R.output=S.output,R.globstar=!0,Ke(O);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&!Be&&Ue()){R.output=R.output.slice(0,-(N.output+S.output).length),N.output=`(?:${N.output}`,S.type="globstar",S.output=U(r)+(r.strictSlashes?")":"|$)"),S.value+=O,R.globstar=!0,R.output+=N.output+S.output,Ke(O);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&C[0]==="/"){let bn=C[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(N.output+S.output).length),N.output=`(?:${N.output}`,S.type="globstar",S.output=`${U(r)}${E}|${E}${bn})`,S.value+=O,R.output+=N.output+S.output,R.globstar=!0,Ke(O+Ot()),z({type:"slash",value:"/",output:""});continue}if(N.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+Ot()),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:be};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+=A,S.output+=A):r.dot===!0?(R.output+=L,S.output+=L):(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(hi("closing","]"));R.output=rt.escapeLast(R.output,"["),jr("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing",")"));R.output=rt.escapeLast(R.output,"("),jr("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","}"));R.output=rt.escapeLast(R.output,"{"),jr("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};Bl.fastpaths=(t,e)=>{let r={...e},s=typeof r.maxLength=="number"?Math.min(ga,r.maxLength):ga,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);t=Hy[t]||t;let n=rt.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}=Ea.globChars(n),y=r.dot?f:l,T=r.dot?d:l,A=r.capture?"":"?:",L={negated:!1,prefix:""},$=r.bash===!0?".*?":E;r.capture&&($=`(${$})`);let de=D=>D.noglobstar===!0?$:`(${A}(?:(?!${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}${T}${$}`;case"**":return y+de(r);case"**/*":return`(?:${y}${de(r)}${a})?${T}${c}${$}`;case"**/*.*":return`(?:${y}${de(r)}${a})?${T}${$}${o}${c}${$}`;case"**/.*":return`(?:${y}${de(r)}${a})?${o}${c}${$}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(D);if(!Z)return;let be=k(Z[1]);return be?be+o+Z[2]:void 0}}},j=rt.removePrefix(t,L),U=k(j);return U&&r.strictSlashes!==!0&&(U+=`${a}?`),U};Wy.exports=Bl});var Yy=_((Gj,$y)=>{"use strict";h();var dP=v("path"),pP=qy(),jl=Vy(),Gl=nn(),mP=sn(),_P=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=_P(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=Gl.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?Gl.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=Gl.isWindows(r))=>(e instanceof RegExp?e:Ee.makeRe(e,r)).test(dP.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)):jl(t,{...e,fastpaths:!1});Ee.scan=(t,e)=>pP(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=jl.fastpaths(t,e)),i.output||(i=jl(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=mP;$y.exports=Ee});var ya=_((Hj,Ky)=>{"use strict";h();Ky.exports=Yy()});var Jy=_((Vj,Qy)=>{"use strict";h();var Xy=v("util"),Zy=Pl(),Dt=ya(),ql=nn(),zy=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=Dt(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)=>Dt(t,e);fe.isMatch=(t,e,r)=>Dt(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: "${Xy.inspect(t)}"`);if(Array.isArray(e))return e.some(s=>fe.contains(t,s,r));if(typeof e=="string"){if(zy(t)||zy(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(!ql.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=Dt(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=Dt(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: "${Xy.inspect(t)}"`);return[].concat(e).every(s=>Dt(s,r)(t))};fe.capture=(t,e,r)=>{let s=ql.isWindows(r),n=Dt.makeRe(String(t),{...r,capture:!0}).exec(s?ql.toPosixSlashes(e):e);if(n)return n.slice(1).map(o=>o===void 0?"":o)};fe.makeRe=(...t)=>Dt.makeRe(...t);fe.scan=(...t)=>Dt.scan(...t);fe.parse=(t,e)=>{let r=[];for(let s of[].concat(t||[]))for(let i of Zy(String(s),e))r.push(Dt.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]:Zy(t,e)};fe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return fe.braces(t,{...e,expand:!0})};Qy.exports=fe});var aS=_(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 EP=v("path"),gP=Al(),Hl=Jy(),eS="**",yP="\\",SP=/[*?]|^!/,OP=/\[[^[]*]/,RP=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,vP=/[!*+?@]\([^(]*\)/,TP=/,|\.\./,AP=/(?!^)\/{2,}/g;function tS(t,e={}){return!rS(t,e)}q.isStaticPattern=tS;function rS(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(yP)||SP.test(t)||OP.test(t)||RP.test(t)||e.extglob!==!1&&vP.test(t)||e.braceExpansion!==!1&&IP(t))}q.isDynamicPattern=rS;function IP(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 TP.test(s)}function NP(t){return Sa(t)?t.slice(1):t}q.convertToPositivePattern=NP;function bP(t){return"!"+t}q.convertToNegativePattern=bP;function Sa(t){return t.startsWith("!")&&t[1]!=="("}q.isNegativePattern=Sa;function sS(t){return!Sa(t)}q.isPositivePattern=sS;function wP(t){return t.filter(Sa)}q.getNegativePatterns=wP;function CP(t){return t.filter(sS)}q.getPositivePatterns=CP;function PP(t){return t.filter(e=>!Wl(e))}q.getPatternsInsideCurrentDirectory=PP;function DP(t){return t.filter(Wl)}q.getPatternsOutsideCurrentDirectory=DP;function Wl(t){return t.startsWith("..")||t.startsWith("./..")}q.isPatternRelatedToParentDirectory=Wl;function xP(t){return gP(t,{flipBackslashes:!1})}q.getBaseDirectory=xP;function LP(t){return t.includes(eS)}q.hasGlobStar=LP;function iS(t){return t.endsWith("/"+eS)}q.endsWithSlashGlobStar=iS;function MP(t){let e=EP.basename(t);return iS(t)||tS(e)}q.isAffectDepthOfReadingPattern=MP;function FP(t){return t.reduce((e,r)=>e.concat(nS(r)),[])}q.expandPatternsWithBraceExpansion=FP;function nS(t){let e=Hl.braces(t,{expand:!0,nodupes:!0});return e.sort((r,s)=>r.length-s.length),e.filter(r=>r!=="")}q.expandBraceExpansion=nS;function kP(t,e){let{parts:r}=Hl.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=kP;function oS(t,e){return Hl.makeRe(t,e)}q.makeRe=oS;function UP(t,e){return t.map(r=>oS(r,e))}q.convertPatternsToRe=UP;function BP(t,e){return e.some(r=>r.test(t))}q.matchAny=BP;function jP(t){return t.replace(AP,"/")}q.removeDuplicateSlashes=jP});var uS=_(Oa=>{"use strict";h();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.merge=void 0;var GP=yl();function qP(t){let e=GP(t);return t.forEach(r=>{r.once("error",s=>e.emit("error",s))}),e.once("close",()=>cS(t)),e.once("end",()=>cS(t)),e}Oa.merge=qP;function cS(t){t.forEach(e=>e.emit("close"))}});var lS=_(fi=>{"use strict";h();Object.defineProperty(fi,"__esModule",{value:!0});fi.isEmpty=fi.isString=void 0;function HP(t){return typeof t=="string"}fi.isString=HP;function WP(t){return t===""}fi.isEmpty=WP});var er=_(Me=>{"use strict";h();Object.defineProperty(Me,"__esModule",{value:!0});Me.string=Me.stream=Me.pattern=Me.path=Me.fs=Me.errno=Me.array=void 0;var VP=Fg();Me.array=VP;var $P=kg();Me.errno=$P;var YP=Ug();Me.fs=YP;var KP=qg();Me.path=KP;var zP=aS();Me.pattern=zP;var XP=uS();Me.stream=XP;var ZP=lS();Me.string=ZP});var pS=_(Fe=>{"use strict";h();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.convertPatternGroupToTask=Fe.convertPatternGroupsToTasks=Fe.groupPatternsByBaseDirectory=Fe.getNegativePatternsAsPositive=Fe.getPositivePatterns=Fe.convertPatternsToTasks=Fe.generate=void 0;var gt=er();function QP(t,e){let r=hS(t,e),s=hS(e.ignore,e),i=fS(r),n=dS(r,s),o=i.filter(l=>gt.pattern.isStaticPattern(l,e)),a=i.filter(l=>gt.pattern.isDynamicPattern(l,e)),c=Vl(o,n,!1),u=Vl(a,n,!0);return c.concat(u)}Fe.generate=QP;function hS(t,e){let r=t;return e.braceExpansion&&(r=gt.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(s=>s.includes("/")?s:`**/${s}`)),r.map(s=>gt.pattern.removeDuplicateSlashes(s))}function Vl(t,e,r){let s=[],i=gt.pattern.getPatternsOutsideCurrentDirectory(t),n=gt.pattern.getPatternsInsideCurrentDirectory(t),o=$l(i),a=$l(n);return s.push(...Yl(o,e,r)),"."in a?s.push(Kl(".",n,e,r)):s.push(...Yl(a,e,r)),s}Fe.convertPatternsToTasks=Vl;function fS(t){return gt.pattern.getPositivePatterns(t)}Fe.getPositivePatterns=fS;function dS(t,e){return gt.pattern.getNegativePatterns(t).concat(e).map(gt.pattern.convertToPositivePattern)}Fe.getNegativePatternsAsPositive=dS;function $l(t){let e={};return t.reduce((r,s)=>{let i=gt.pattern.getBaseDirectory(s);return i in r?r[i].push(s):r[i]=[s],r},e)}Fe.groupPatternsByBaseDirectory=$l;function Yl(t,e,r){return Object.keys(t).map(s=>Kl(s,t[s],e,r))}Fe.convertPatternGroupsToTasks=Yl;function Kl(t,e,r,s){return{dynamic:s,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(gt.pattern.convertToNegativePattern))}}Fe.convertPatternGroupToTask=Kl});var _S=_(Ra=>{"use strict";h();Object.defineProperty(Ra,"__esModule",{value:!0});Ra.read=void 0;function JP(t,e,r){e.fs.lstat(t,(s,i)=>{if(s!==null){mS(r,s);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){zl(r,i);return}e.fs.stat(t,(n,o)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){mS(r,n);return}zl(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),zl(r,o)})})}Ra.read=JP;function mS(t,e){t(e)}function zl(t,e){t(null,e)}});var ES=_(va=>{"use strict";h();Object.defineProperty(va,"__esModule",{value:!0});va.read=void 0;function eD(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}}va.read=eD});var gS=_(Dr=>{"use strict";h();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.createFileSystemAdapter=Dr.FILE_SYSTEM_ADAPTER=void 0;var Ta=v("fs");Dr.FILE_SYSTEM_ADAPTER={lstat:Ta.lstat,stat:Ta.stat,lstatSync:Ta.lstatSync,statSync:Ta.statSync};function tD(t){return t===void 0?Dr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Dr.FILE_SYSTEM_ADAPTER),t)}Dr.createFileSystemAdapter=tD});var yS=_(Zl=>{"use strict";h();Object.defineProperty(Zl,"__esModule",{value:!0});var rD=gS(),Xl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=rD.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}};Zl.default=Xl});var ys=_(xr=>{"use strict";h();Object.defineProperty(xr,"__esModule",{value:!0});xr.statSync=xr.stat=xr.Settings=void 0;var SS=_S(),sD=ES(),Ql=yS();xr.Settings=Ql.default;function iD(t,e,r){if(typeof e=="function"){SS.read(t,Jl(),e);return}SS.read(t,Jl(e),r)}xr.stat=iD;function nD(t,e){let r=Jl(e);return sD.read(t,r)}xr.statSync=nD;function Jl(t={}){return t instanceof Ql.default?t:new Ql.default(t)}});var vS=_((dG,RS)=>{"use strict";h();var OS;RS.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(OS||(OS=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var AS=_((mG,TS)=>{"use strict";h();TS.exports=aD;var oD=vS();function aD(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?oD(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 eh=_(Ia=>{"use strict";h();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Aa=process.versions.node.split(".");if(Aa[0]===void 0||Aa[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var IS=Number.parseInt(Aa[0],10),cD=Number.parseInt(Aa[1],10),NS=10,uD=10,lD=IS>NS,hD=IS===NS&&cD>=uD;Ia.IS_SUPPORT_READDIR_WITH_FILE_TYPES=lD||hD});var bS=_(Na=>{"use strict";h();Object.defineProperty(Na,"__esModule",{value:!0});Na.createDirentFromStats=void 0;var th=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 fD(t,e){return new th(t,e)}Na.createDirentFromStats=fD});var rh=_(ba=>{"use strict";h();Object.defineProperty(ba,"__esModule",{value:!0});ba.fs=void 0;var dD=bS();ba.fs=dD});var sh=_(wa=>{"use strict";h();Object.defineProperty(wa,"__esModule",{value:!0});wa.joinPathSegments=void 0;function pD(t,e,r){return t.endsWith(r)?t+e:t+r+e}wa.joinPathSegments=pD});var LS=_(Lr=>{"use strict";h();Object.defineProperty(Lr,"__esModule",{value:!0});Lr.readdir=Lr.readdirWithFileTypes=Lr.read=void 0;var mD=ys(),wS=AS(),_D=eh(),CS=rh(),PS=sh();function ED(t,e,r){if(!e.stats&&_D.IS_SUPPORT_READDIR_WITH_FILE_TYPES){DS(t,e,r);return}xS(t,e,r)}Lr.read=ED;function DS(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(s,i)=>{if(s!==null){Ca(r,s);return}let n=i.map(a=>({dirent:a,name:a.name,path:PS.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ih(r,n);return}let o=n.map(a=>gD(a,e));wS(o,(a,c)=>{if(a!==null){Ca(r,a);return}ih(r,c)})})}Lr.readdirWithFileTypes=DS;function gD(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=CS.fs.createDirentFromStats(t.name,i),r(null,t)})}}function xS(t,e,r){e.fs.readdir(t,(s,i)=>{if(s!==null){Ca(r,s);return}let n=i.map(o=>{let a=PS.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{mD.stat(a,e.fsStatSettings,(u,l)=>{if(u!==null){c(u);return}let f={name:o,path:a,dirent:CS.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),c(null,f)})}});wS(n,(o,a)=>{if(o!==null){Ca(r,o);return}ih(r,a)})})}Lr.readdir=xS;function Ca(t,e){t(e)}function ih(t,e){t(null,e)}});var BS=_(Mr=>{"use strict";h();Object.defineProperty(Mr,"__esModule",{value:!0});Mr.readdir=Mr.readdirWithFileTypes=Mr.read=void 0;var yD=ys(),SD=eh(),MS=rh(),FS=sh();function OD(t,e){return!e.stats&&SD.IS_SUPPORT_READDIR_WITH_FILE_TYPES?kS(t,e):US(t,e)}Mr.read=OD;function kS(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(s=>{let i={dirent:s,name:s.name,path:FS.joinPathSegments(t,s.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let n=e.fs.statSync(i.path);i.dirent=MS.fs.createDirentFromStats(i.name,n)}catch(n){if(e.throwErrorOnBrokenSymbolicLink)throw n}return i})}Mr.readdirWithFileTypes=kS;function US(t,e){return e.fs.readdirSync(t).map(s=>{let i=FS.joinPathSegments(t,s,e.pathSegmentSeparator),n=yD.statSync(i,e.fsStatSettings),o={name:s,path:i,dirent:MS.fs.createDirentFromStats(s,n)};return e.stats&&(o.stats=n),o})}Mr.readdir=US});var jS=_(Fr=>{"use strict";h();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.createFileSystemAdapter=Fr.FILE_SYSTEM_ADAPTER=void 0;var di=v("fs");Fr.FILE_SYSTEM_ADAPTER={lstat:di.lstat,stat:di.stat,lstatSync:di.lstatSync,statSync:di.statSync,readdir:di.readdir,readdirSync:di.readdirSync};function RD(t){return t===void 0?Fr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Fr.FILE_SYSTEM_ADAPTER),t)}Fr.createFileSystemAdapter=RD});var GS=_(oh=>{"use strict";h();Object.defineProperty(oh,"__esModule",{value:!0});var vD=v("path"),TD=ys(),AD=jS(),nh=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=AD.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 TD.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};oh.default=nh});var Pa=_(kr=>{"use strict";h();Object.defineProperty(kr,"__esModule",{value:!0});kr.Settings=kr.scandirSync=kr.scandir=void 0;var qS=LS(),ID=BS(),ah=GS();kr.Settings=ah.default;function ND(t,e,r){if(typeof e=="function"){qS.read(t,ch(),e);return}qS.read(t,ch(e),r)}kr.scandir=ND;function bD(t,e){let r=ch(e);return ID.read(t,r)}kr.scandirSync=bD;function ch(t={}){return t instanceof ah.default?t:new ah.default(t)}});var WS=_((MG,HS)=>{"use strict";h();function wD(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}}HS.exports=wD});var $S=_((kG,uh)=>{"use strict";h();var CD=WS();function VS(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=CD(PD),i=null,n=null,o=0,a=null,c={push:y,drain:lt,saturated:lt,pause:l,paused:!1,concurrency:r,running:u,resume:E,idle:g,length:f,getQueue:d,unshift:T,empty:lt,kill:L,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++,A()}}function g(){return o===0&&c.length()===0}function y(k,j){var U=s.get();U.context=t,U.release=A,U.value=k,U.callback=j||lt,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 T(k,j){var U=s.get();U.context=t,U.release=A,U.value=k,U.callback=j||lt,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 A(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 L(){i=null,n=null,c.drain=lt}function $(){i=null,n=null,c.drain(),c.drain=lt}function de(k){a=k}}function lt(){}function PD(){this.value=null,this.callback=lt,this.next=null,this.release=lt,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=lt,t.errorHandler&&n(r,o),i.call(t.context,r,s),t.release(t)}}function DD(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=VS(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(lt),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(lt),f}function u(){var l=i.drain,f=new Promise(function(d){i.drain=function(){l(),d()}});return f}}uh.exports=VS;uh.exports.promise=DD});var Da=_(xt=>{"use strict";h();Object.defineProperty(xt,"__esModule",{value:!0});xt.joinPathSegments=xt.replacePathSegmentSeparator=xt.isAppliedFilter=xt.isFatalError=void 0;function xD(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}xt.isFatalError=xD;function LD(t,e){return t===null||t(e)}xt.isAppliedFilter=LD;function MD(t,e){return t.split(/[/\\]/).join(e)}xt.replacePathSegmentSeparator=MD;function FD(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}xt.joinPathSegments=FD});var fh=_(hh=>{"use strict";h();Object.defineProperty(hh,"__esModule",{value:!0});var kD=Da(),lh=class{constructor(e,r){this._root=e,this._settings=r,this._root=kD.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};hh.default=lh});var mh=_(ph=>{"use strict";h();Object.defineProperty(ph,"__esModule",{value:!0});var UD=v("events"),BD=Pa(),jD=$S(),xa=Da(),GD=fh(),dh=class extends GD.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=BD.scandir,this._emitter=new UD.EventEmitter,this._queue=jD(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||!xa.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=xa.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),xa.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&xa.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ph.default=dh});var YS=_(Eh=>{"use strict";h();Object.defineProperty(Eh,"__esModule",{value:!0});var qD=mh(),_h=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new qD.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{HD(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{WD(e,this._storage)}),this._reader.read()}};Eh.default=_h;function HD(t,e){t(e)}function WD(t,e){t(null,e)}});var KS=_(yh=>{"use strict";h();Object.defineProperty(yh,"__esModule",{value:!0});var VD=v("stream"),$D=mh(),gh=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $D.default(this._root,this._settings),this._stream=new VD.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}};yh.default=gh});var zS=_(Oh=>{"use strict";h();Object.defineProperty(Oh,"__esModule",{value:!0});var YD=Pa(),La=Da(),KD=fh(),Sh=class extends KD.default{constructor(){super(...arguments),this._scandir=YD.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(La.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let s=e.path;r!==void 0&&(e.path=La.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),La.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&La.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Oh.default=Sh});var XS=_(vh=>{"use strict";h();Object.defineProperty(vh,"__esModule",{value:!0});var zD=zS(),Rh=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new zD.default(this._root,this._settings)}read(){return this._reader.read()}};vh.default=Rh});var ZS=_(Ah=>{"use strict";h();Object.defineProperty(Ah,"__esModule",{value:!0});var XD=v("path"),ZD=Pa(),Th=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,XD.sep),this.fsScandirSettings=new ZD.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}};Ah.default=Th});var Fa=_(Lt=>{"use strict";h();Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Settings=Lt.walkStream=Lt.walkSync=Lt.walk=void 0;var QS=YS(),QD=KS(),JD=XS(),Ih=ZS();Lt.Settings=Ih.default;function ex(t,e,r){if(typeof e=="function"){new QS.default(t,Ma()).read(e);return}new QS.default(t,Ma(e)).read(r)}Lt.walk=ex;function tx(t,e){let r=Ma(e);return new JD.default(t,r).read()}Lt.walkSync=tx;function rx(t,e){let r=Ma(e);return new QD.default(t,r).read()}Lt.walkStream=rx;function Ma(t={}){return t instanceof Ih.default?t:new Ih.default(t)}});var ka=_(bh=>{"use strict";h();Object.defineProperty(bh,"__esModule",{value:!0});var sx=v("path"),ix=ys(),JS=er(),Nh=class{constructor(e){this._settings=e,this._fsStatSettings=new ix.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return sx.resolve(this._settings.cwd,e)}_makeEntry(e,r){let s={name:r,path:r,dirent:JS.fs.createDirentFromStats(r,e)};return this._settings.stats&&(s.stats=e),s}_isFatalError(e){return!JS.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};bh.default=Nh});var Ph=_(Ch=>{"use strict";h();Object.defineProperty(Ch,"__esModule",{value:!0});var nx=v("stream"),ox=ys(),ax=Fa(),cx=ka(),wh=class extends cx.default{constructor(){super(...arguments),this._walkStream=ax.walkStream,this._stat=ox.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let s=e.map(this._getFullEntryPath,this),i=new nx.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))})}};Ch.default=wh});var eO=_(xh=>{"use strict";h();Object.defineProperty(xh,"__esModule",{value:!0});var ux=Fa(),lx=ka(),hx=Ph(),Dh=class extends lx.default{constructor(){super(...arguments),this._walkAsync=ux.walk,this._readerStream=new hx.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))})}};xh.default=Dh});var tO=_(Mh=>{"use strict";h();Object.defineProperty(Mh,"__esModule",{value:!0});var an=er(),Lh=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 an.pattern.getPatternParts(e,this._micromatchOptions).map(s=>an.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:an.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(e){return an.array.splitWhen(e,r=>r.dynamic&&an.pattern.hasGlobStar(r.pattern))}};Mh.default=Lh});var rO=_(kh=>{"use strict";h();Object.defineProperty(kh,"__esModule",{value:!0});var fx=tO(),Fh=class extends fx.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}};kh.default=Fh});var sO=_(Bh=>{"use strict";h();Object.defineProperty(Bh,"__esModule",{value:!0});var Ua=er(),dx=rO(),Uh=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 dx.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Ua.pattern.isAffectDepthOfReadingPattern);return Ua.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,s,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=Ua.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!Ua.pattern.matchAny(e,r)}};Bh.default=Uh});var iO=_(Gh=>{"use strict";h();Object.defineProperty(Gh,"__esModule",{value:!0});var Ss=er(),jh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let s=Ss.pattern.convertPatternsToRe(e,this._micromatchOptions),i=Ss.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return n=>this._filter(n,s,i)}_filter(e,r,s){let i=Ss.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=Ss.path.makeAbsolute(this._settings.cwd,e);return Ss.pattern.matchAny(s,r)}_isMatchToPatterns(e,r,s){let i=Ss.pattern.matchAny(e,r);return!i&&s?Ss.pattern.matchAny(e+"/",r):i}};Gh.default=jh});var nO=_(Hh=>{"use strict";h();Object.defineProperty(Hh,"__esModule",{value:!0});var px=er(),qh=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return px.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Hh.default=qh});var aO=_(Vh=>{"use strict";h();Object.defineProperty(Vh,"__esModule",{value:!0});var oO=er(),Wh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=oO.path.makeAbsolute(this._settings.cwd,r),r=oO.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Vh.default=Wh});var Ba=_(Yh=>{"use strict";h();Object.defineProperty(Yh,"__esModule",{value:!0});var mx=v("path"),_x=sO(),Ex=iO(),gx=nO(),yx=aO(),$h=class{constructor(e){this._settings=e,this.errorFilter=new gx.default(this._settings),this.entryFilter=new Ex.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new _x.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new yx.default(this._settings)}_getRootDirectory(e){return mx.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}}};Yh.default=$h});var cO=_(zh=>{"use strict";h();Object.defineProperty(zh,"__esModule",{value:!0});var Sx=eO(),Ox=Ba(),Kh=class extends Ox.default{constructor(){super(...arguments),this._reader=new Sx.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)}};zh.default=Kh});var uO=_(Zh=>{"use strict";h();Object.defineProperty(Zh,"__esModule",{value:!0});var Rx=v("stream"),vx=Ph(),Tx=Ba(),Xh=class extends Tx.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 Rx.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)}};Zh.default=Xh});var lO=_(Jh=>{"use strict";h();Object.defineProperty(Jh,"__esModule",{value:!0});var Ax=ys(),Ix=Fa(),Nx=ka(),Qh=class extends Nx.default{constructor(){super(...arguments),this._walkSync=Ix.walkSync,this._statSync=Ax.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)}};Jh.default=Qh});var hO=_(tf=>{"use strict";h();Object.defineProperty(tf,"__esModule",{value:!0});var bx=lO(),wx=Ba(),ef=class extends wx.default{constructor(){super(...arguments),this._reader=new bx.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)}};tf.default=ef});var fO=_(mi=>{"use strict";h();Object.defineProperty(mi,"__esModule",{value:!0});mi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var pi=v("fs"),Cx=v("os"),Px=Math.max(Cx.cpus().length,1);mi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:pi.lstat,lstatSync:pi.lstatSync,stat:pi.stat,statSync:pi.statSync,readdir:pi.readdir,readdirSync:pi.readdirSync};var rf=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,Px),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({},mi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};mi.default=rf});var af=_((xq,pO)=>{"use strict";h();var dO=pS(),Dx=cO(),xx=uO(),Lx=hO(),sf=fO(),ht=er();async function nf(t,e){yt(t);let r=of(t,Dx.default,e),s=await Promise.all(r);return ht.array.flatten(s)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(u,l){yt(u);let f=of(u,Lx.default,l);return ht.array.flatten(f)}t.sync=e;function r(u,l){yt(u);let f=of(u,xx.default,l);return ht.stream.merge(f)}t.stream=r;function s(u,l){yt(u);let f=[].concat(u),d=new sf.default(l);return dO.generate(f,d)}t.generateTasks=s;function i(u,l){yt(u);let f=new sf.default(l);return ht.pattern.isDynamicPattern(u,f)}t.isDynamicPattern=i;function n(u){return yt(u),ht.path.escape(u)}t.escapePath=n;function o(u){return yt(u),ht.path.convertPathToPattern(u)}t.convertPathToPattern=o;let a;(function(u){function l(d){return yt(d),ht.path.escapePosixPath(d)}u.escapePath=l;function f(d){return yt(d),ht.path.convertPosixPathToPattern(d)}u.convertPathToPattern=f})(a=t.posix||(t.posix={}));let c;(function(u){function l(d){return yt(d),ht.path.escapeWindowsPath(d)}u.escapePath=l;function f(d){return yt(d),ht.path.convertWindowsPathToPattern(d)}u.convertPathToPattern=f})(c=t.win32||(t.win32={}))})(nf||(nf={}));function of(t,e,r){let s=[].concat(t),i=new sf.default(r),n=dO.generate(s,i),o=new e(i);return n.map(o.read,o)}function yt(t){if(![].concat(t).every(s=>ht.string.isString(s)&&!ht.string.isEmpty(s)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}pO.exports=nf});var _O=_(Os=>{"use strict";h();var{promisify:Mx}=v("util"),mO=v("fs");async function cf(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await Mx(mO[t])(r))[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}function uf(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return mO[t](r)[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}Os.isFile=cf.bind(null,"stat","isFile");Os.isDirectory=cf.bind(null,"stat","isDirectory");Os.isSymlink=cf.bind(null,"lstat","isSymbolicLink");Os.isFileSync=uf.bind(null,"statSync","isFile");Os.isDirectorySync=uf.bind(null,"statSync","isDirectory");Os.isSymlinkSync=uf.bind(null,"lstatSync","isSymbolicLink")});var OO=_((kq,lf)=>{"use strict";h();var Rs=v("path"),EO=_O(),gO=t=>t.length>1?`{${t.join(",")}}`:t[0],yO=(t,e)=>{let r=t[0]==="!"?t.slice(1):t;return Rs.isAbsolute(r)?r:Rs.join(e,r)},Fx=(t,e)=>Rs.extname(t)?`**/${t}`:`**/${t}.${gO(e)}`,SO=(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=>Rs.posix.join(t,Fx(r,e.extensions))):e.files?e.files.map(r=>Rs.posix.join(t,`**/${r}`)):e.extensions?[Rs.posix.join(t,`**/*.${gO(e.extensions)}`)]:[Rs.posix.join(t,"**")]};lf.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 EO.isDirectory(yO(s,e.cwd))?SO(s,e):s));return[].concat.apply([],r)};lf.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=>EO.isDirectorySync(yO(s,e.cwd))?SO(s,e):s);return[].concat.apply([],r)}});var PO=_((Bq,CO)=>{"use strict";h();function RO(t){return Array.isArray(t)?t:[t]}var IO="",vO=" ",hf="\\",kx=/^\s+$/,Ux=/(?:[^\\]|^)\\$/,Bx=/^\\!/,jx=/^\\#/,Gx=/\r?\n/g,qx=/^\.*\/|^\.+$/,ff="/",NO="node-ignore";typeof Symbol<"u"&&(NO=Symbol.for("node-ignore"));var TO=NO,Hx=(t,e,r)=>Object.defineProperty(t,e,{value:r}),Wx=/([0-z])-([0-z])/g,bO=()=>!1,Vx=t=>t.replace(Wx,(e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:IO),$x=t=>{let{length:e}=t;return t.slice(0,e-e%2)},Yx=[[/\\?\s+$/,t=>t.indexOf("\\")===0?vO:IO],[/\\\s/g,()=>vO],[/[\\$.|*+(){^]/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,()=>hf],[/\\\\/g,()=>hf],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>e===hf?`\\[${r}${$x(s)}${i}`:i==="]"&&s.length%2===0?`[${Vx(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],AO=Object.create(null),Kx=(t,e)=>{let r=AO[t];return r||(r=Yx.reduce((s,i)=>s.replace(i[0],i[1].bind(t)),t),AO[t]=r),e?new RegExp(r,"i"):new RegExp(r)},mf=t=>typeof t=="string",zx=t=>t&&mf(t)&&!kx.test(t)&&!Ux.test(t)&&t.indexOf("#")!==0,Xx=t=>t.split(Gx),df=class{constructor(e,r,s,i){this.origin=e,this.pattern=r,this.negative=s,this.regex=i}},Zx=(t,e)=>{let r=t,s=!1;t.indexOf("!")===0&&(s=!0,t=t.substr(1)),t=t.replace(Bx,"!").replace(jx,"#");let i=Kx(t,e);return new df(r,t,s,i)},Qx=(t,e)=>{throw new e(t)},tr=(t,e,r)=>mf(t)?t?tr.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),wO=t=>qx.test(t);tr.isNotRelative=wO;tr.convert=t=>t;var pf=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:s=!1}={}){Hx(this,TO,!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[TO]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(zx(e)){let r=Zx(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,RO(mf(e)?Xx(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&&tr.convert(e);return tr(n,e,this._allowRelativePaths?bO:Qx),this._t(n,r,s,i)}_t(e,r,s,i){if(e in r)return r[e];if(i||(i=e.split(ff)),i.pop(),!i.length)return r[e]=this._testOne(e,s);let n=this._t(i.join(ff)+ff,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 RO(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},ja=t=>new pf(t),Jx=t=>tr(t&&tr.convert(t),t,bO);ja.isPathValid=Jx;ja.default=ja;CO.exports=ja;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,"/");tr.convert=t;let e=/^[a-z]:\//i;tr.isNotRelative=r=>e.test(r)||wO(r)}});var AR=_((vW,TR)=>{"use strict";h();var _n=v("fs"),{Readable:JL}=v("stream"),mn=v("path"),{promisify:Ka}=v("util"),vf=ya(),e0=Ka(_n.readdir),t0=Ka(_n.stat),gR=Ka(_n.lstat),r0=Ka(_n.realpath),s0="!",RR="READDIRP_RECURSIVE_ERROR",i0=new Set(["ENOENT","EPERM","EACCES","ELOOP",RR]),Tf="files",vR="directories",$a="files_directories",Va="all",yR=[Tf,vR,$a,Va],n0=t=>i0.has(t.code),[SR,o0]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),a0=process.platform==="win32"&&(SR>10||SR===10&&o0>=5),OR=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=vf(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)===s0?r.push(vf(i.slice(1))):e.push(vf(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))}}},Ya=class t extends JL{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Tf,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=OR(r.fileFilter),this._directoryFilter=OR(r.directoryFilter);let n=r.lstat?gR:t0;a0?this._stat=o=>n(o,{bigint:!0}):this._stat=n,this._maxDepth=r.depth,this._wantsDir=[vR,$a,Va].includes(i),this._wantsFile=[Tf,$a,Va].includes(i),this._wantsEverything=i===Va,this._root=mn.resolve(s),this._isDirent="Dirent"in _n&&!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 e0(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=mn.resolve(mn.join(r,i));s={path:mn.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){n0(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 r0(s),n=await gR(i);if(n.isFile())return"file";if(n.isDirectory()){let o=i.length;if(s.startsWith(i)&&s.substr(o,1)===mn.sep){let a=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return a.code=RR,this._onError(a)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(e){let r=e&&e[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},vi=(t,e={})=>{let r=e.entryType||e.type;if(r==="both"&&(r=$a),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&&!yR.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${yR.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new Ya(e)},c0=(t,e={})=>new Promise((r,s)=>{let i=[];vi(t,e).on("data",n=>i.push(n)).on("end",()=>r(i)).on("error",n=>s(n))});vi.promise=c0;vi.ReaddirpStream=Ya;vi.default=vi;TR.exports=vi});var Af=_((AW,IR)=>{"use strict";h();IR.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 DR=_((CR,PR)=>{"use strict";h();Object.defineProperty(CR,"__esModule",{value:!0});var wR=ya(),u0=Af(),NR="!",l0={returnIndex:!1},h0=t=>Array.isArray(t)?t:[t],f0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=wR(t,e);return s=>t===s||r(s)}return t instanceof RegExp?r=>t.test(r):r=>!1},bR=(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=u0(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},If=(t,e,r=l0)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let s=typeof r=="boolean"?{returnIndex:r}:r,i=s.returnIndex||!1,n=h0(t),o=n.filter(c=>typeof c=="string"&&c.charAt(0)===NR).map(c=>c.slice(1)).map(c=>wR(c,s)),a=n.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==NR).map(c=>f0(c,s));return e==null?(c,u=!1)=>bR(a,o,c,typeof u=="boolean"?u:!1):bR(a,o,e,i)};If.default=If;PR.exports=If});var xR=_((bW,d0)=>{d0.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 MR=_((wW,LR)=>{"use strict";h();LR.exports=xR()});var kR=_((PW,FR)=>{"use strict";h();var p0=v("path"),m0=MR(),_0=new Set(m0);FR.exports=t=>_0.has(p0.extname(t).slice(1).toLowerCase())});var za=_(x=>{"use strict";h();var{sep:E0}=v("path"),{platform:Nf}=process,g0=v("os");x.EV_ALL="all";x.EV_READY="ready";x.EV_ADD="add";x.EV_CHANGE="change";x.EV_ADD_DIR="addDir";x.EV_UNLINK="unlink";x.EV_UNLINK_DIR="unlinkDir";x.EV_RAW="raw";x.EV_ERROR="error";x.STR_DATA="data";x.STR_END="end";x.STR_CLOSE="close";x.FSEVENT_CREATED="created";x.FSEVENT_MODIFIED="modified";x.FSEVENT_DELETED="deleted";x.FSEVENT_MOVED="moved";x.FSEVENT_CLONED="cloned";x.FSEVENT_UNKNOWN="unknown";x.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;x.FSEVENT_TYPE_FILE="file";x.FSEVENT_TYPE_DIRECTORY="directory";x.FSEVENT_TYPE_SYMLINK="symlink";x.KEY_LISTENERS="listeners";x.KEY_ERR="errHandlers";x.KEY_RAW="rawEmitters";x.HANDLER_KEYS=[x.KEY_LISTENERS,x.KEY_ERR,x.KEY_RAW];x.DOT_SLASH=`.${E0}`;x.BACK_SLASH_RE=/\\/g;x.DOUBLE_SLASH_RE=/\/\//;x.SLASH_OR_BACK_SLASH_RE=/[/\\]/;x.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;x.REPLACER_RE=/^\.[/\\]/;x.SLASH="/";x.SLASH_SLASH="//";x.BRACE_START="{";x.BANG="!";x.ONE_DOT=".";x.TWO_DOTS="..";x.STAR="*";x.GLOBSTAR="**";x.ROOT_GLOBSTAR="/**/*";x.SLASH_GLOBSTAR="/**";x.DIR_SUFFIX="Dir";x.ANYMATCH_OPTS={dot:!0};x.STRING_TYPE="string";x.FUNCTION_TYPE="function";x.EMPTY_STR="";x.EMPTY_FN=()=>{};x.IDENTITY_FN=t=>t;x.isWindows=Nf==="win32";x.isMacos=Nf==="darwin";x.isLinux=Nf==="linux";x.isIBMi=g0.type()==="OS400"});var HR=_((MW,qR)=>{"use strict";h();var rr=v("fs"),Ie=v("path"),{promisify:Sn}=v("util"),y0=kR(),{isWindows:S0,isLinux:O0,EMPTY_FN:R0,EMPTY_STR:v0,KEY_LISTENERS:Ti,KEY_ERR:bf,KEY_RAW:En,HANDLER_KEYS:T0,EV_CHANGE:Za,EV_ADD:Xa,EV_ADD_DIR:A0,EV_ERROR:BR,STR_DATA:I0,STR_END:N0,BRACE_START:b0,STAR:w0}=za(),C0="watch",P0=Sn(rr.open),jR=Sn(rr.stat),D0=Sn(rr.lstat),x0=Sn(rr.close),wf=Sn(rr.realpath),L0={lstat:D0,stat:jR},Pf=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},gn=(t,e,r)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(r)},M0=t=>e=>{let r=t[e];r instanceof Set?r.clear():delete t[e]},yn=(t,e,r)=>{let s=t[e];s instanceof Set?s.delete(r):s===r&&delete t[e]},GR=t=>t instanceof Set?t.size===0:!t,Qa=new Map;function UR(t,e,r,s,i){let n=(o,a)=>{r(t),i(o,a,{watchedPath:t}),a&&t!==a&&Ja(Ie.resolve(t,a),Ti,Ie.join(t,a))};try{return rr.watch(t,e,n)}catch(o){s(o)}}var Ja=(t,e,r,s,i)=>{let n=Qa.get(t);n&&Pf(n[e],o=>{o(r,s,i)})},F0=(t,e,r,s)=>{let{listener:i,errHandler:n,rawEmitter:o}=s,a=Qa.get(e),c;if(!r.persistent)return c=UR(t,r,i,n,o),c.close.bind(c);if(a)gn(a,Ti,i),gn(a,bf,n),gn(a,En,o);else{if(c=UR(t,r,Ja.bind(null,e,Ti),n,Ja.bind(null,e,En)),!c)return;c.on(BR,async u=>{let l=Ja.bind(null,e,bf);if(a.watcherUnusable=!0,S0&&u.code==="EPERM")try{let f=await P0(t,"r");await x0(f),l(u)}catch{}else l(u)}),a={listeners:i,errHandlers:n,rawEmitters:o,watcher:c},Qa.set(e,a)}return()=>{yn(a,Ti,i),yn(a,bf,n),yn(a,En,o),GR(a.listeners)&&(a.watcher.close(),Qa.delete(e),T0.forEach(M0(a)),a.watcher=void 0,Object.freeze(a))}},Cf=new Map,k0=(t,e,r,s)=>{let{listener:i,rawEmitter:n}=s,o=Cf.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,rr.unwatchFile(e),o=void 0),o?(gn(o,Ti,i),gn(o,En,n)):(o={listeners:i,rawEmitters:n,options:r,watcher:rr.watchFile(e,r,(l,f)=>{Pf(o.rawEmitters,E=>{E(Za,e,{curr:l,prev:f})});let d=l.mtimeMs;(l.size!==f.size||d>f.mtimeMs||d===0)&&Pf(o.listeners,E=>E(t,l))})},Cf.set(e,o)),()=>{yn(o,Ti,i),yn(o,En,n),GR(o.listeners)&&(Cf.delete(e),rr.unwatchFile(e),o.options=o.watcher=void 0,Object.freeze(o))}},Df=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=R0);let u;return s.usePolling?(c.interval=s.enableBinaryInterval&&y0(n)?s.binaryInterval:s.interval,u=k0(e,a,c,{listener:r,rawEmitter:this.fsw._emitRaw})):u=F0(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(C0,e,5)){if(!f||f.mtimeMs===0)try{let d=await jR(e);if(this.fsw.closed)return;let E=d.atimeMs,g=d.mtimeMs;(!E||E<=g||g!==a.mtimeMs)&&this.fsw._emit(Za,e,d),O0&&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(Za,e,f),a=f}}},u=this._watchWithNodeFs(e,c);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Xa,e,0))return;this.fsw._emit(Xa,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 wf(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(Za,s,e.stats)):(o.add(i),this.fsw._symlinkPaths.set(n,a),this.fsw._emit(Xa,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,v0),!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(I0,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(BR,this._boundHandleError);return new Promise(f=>l.once(N0,()=>{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(A0,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 L0[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(w0)&&!e.includes(b0),l;if(c.isDirectory()){let f=Ie.resolve(e),d=u?await wf(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 wf(e):e;if(this.fsw.closed)return;let d=Ie.dirname(a.watchPath);if(this.fsw._getWatchedDir(d).add(a.watchPath),this.fsw._emit(Xa,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}}};qR.exports=Df});var XR=_((kW,jf)=>{"use strict";h();var Uf=v("fs"),Ne=v("path"),{promisify:Bf}=v("util"),Ai;try{Ai=v("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Ai){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&&(Ai=void 0)}}var{EV_ADD:xf,EV_CHANGE:U0,EV_ADD_DIR:WR,EV_UNLINK:ec,EV_ERROR:B0,STR_DATA:j0,STR_END:G0,FSEVENT_CREATED:q0,FSEVENT_MODIFIED:H0,FSEVENT_DELETED:W0,FSEVENT_MOVED:V0,FSEVENT_UNKNOWN:$0,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:Y0,FSEVENT_TYPE_FILE:K0,FSEVENT_TYPE_DIRECTORY:On,FSEVENT_TYPE_SYMLINK:zR,ROOT_GLOBSTAR:VR,DIR_SUFFIX:z0,DOT_SLASH:$R,FUNCTION_TYPE:Lf,EMPTY_FN:X0,IDENTITY_FN:Z0}=za(),Q0=t=>isNaN(t)?{}:{depth:t},Ff=Bf(Uf.stat),J0=Bf(Uf.lstat),YR=Bf(Uf.realpath),eM={stat:Ff,lstat:J0},vs=new Map,tM=10,rM=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),sM=(t,e)=>({stop:Ai.watch(t,e)});function iM(t,e,r,s){let i=Ne.extname(e)?Ne.dirname(e):e,n=Ne.dirname(i),o=vs.get(i);nM(n)&&(i=n);let a=Ne.resolve(t),c=a!==e,u=(f,d,E)=>{c&&(f=f.replace(e,a)),(f===a||!f.indexOf(a+Ne.sep))&&r(f,d,E)},l=!1;for(let f of vs.keys())if(e.indexOf(Ne.resolve(f)+Ne.sep)===0){i=f,o=vs.get(i),l=!0;break}return o||l?o.listeners.add(u):(o={listeners:new Set([u]),rawEmitter:s,watcher:sM(i,(f,d)=>{if(!o.listeners.size||d&Y0)return;let E=Ai.getInfo(f,d);o.listeners.forEach(g=>{g(f,d,E)}),o.rawEmitter(E.event,f,E)})},vs.set(i,o)),()=>{let f=o.listeners;if(f.delete(u),!f.size&&(vs.delete(i),o.watcher))return o.watcher.stop().then(()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o)})}}var nM=t=>{let e=0;for(let r of vs.keys())if(r.indexOf(t)===0&&(e++,e>=tM))return!0;return!1},oM=()=>Ai&&vs.size<128,Mf=(t,e)=>{let r=0;for(;!t.indexOf(e)&&(t=Ne.dirname(t))!==e;)r++;return r},KR=(t,e)=>t.type===On&&e.isDirectory()||t.type===zR&&e.isSymbolicLink()||t.type===K0&&e.isFile(),kf=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+VR),!0;s.delete(e),s.delete(e+VR)}addOrChange(e,r,s,i,n,o,a,c){let u=n.has(o)?U0:xf;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 Ff(e);if(this.fsw.closed)return;KR(a,u)?this.addOrChange(e,r,s,i,n,o,a,c):this.handleEvent(ec,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(ec,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===ec){let l=c.type===On;(l||o.has(a))&&this.fsw._remove(n,a,l)}else{if(e===xf){if(c.type===On&&this.fsw._getWatchedDir(r),c.type===zR&&u.followSymlinks){let f=u.depth===void 0?void 0:Mf(s,i)+1;return this._addToFsEvents(r,!1,!0,f)}this.fsw._getWatchedDir(n).add(a)}let l=c.type===On?e+z0:e;this.fsw._emit(l,r),l===WR&&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=iM(e,r,async(c,u,l)=>{if(this.fsw.closed||n.depth!==void 0&&Mf(c,r)>n.depth)return;let f=s(Ne.join(e,Ne.relative(e,c)));if(i&&!i(f))return;let d=Ne.dirname(f),E=Ne.basename(f),g=this.fsw._getWatchedDir(l.type===On?f:d);if(rM.has(u)||l.event===$0)if(typeof n.ignored===Lf){let y;try{y=await Ff(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,y))return;KR(l,y)?this.addOrChange(f,c,r,d,g,E,l,n):this.handleEvent(ec,f,c,r,d,g,E,l,n)}else this.checkExists(f,c,r,d,g,E,l,n);else switch(l.event){case q0:case H0:return this.addOrChange(f,c,r,d,g,E,l,n);case W0:case V0: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 YR(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!==$R?a=o.replace(n,e):o!==$R&&(a=Ne.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(Ne.dirname(o)),u=Ne.basename(o);a&&this.fsw._getWatchedDir(o),!c.has(u)&&(c.add(u),(!i.ignoreInitial||n===!0)&&this.fsw._emit(a?WR:xf,o,r))}initWatch(e,r,s,i){if(this.fsw.closed)return;let n=this._watchWithFsEvents(s.watchPath,Ne.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===Lf?r:Z0,a=this.fsw._getWatchHelpers(e);try{let c=await eM[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),...Q0(n.depth-(i||0))}).on(j0,u=>{if(this.fsw.closed||u.stats.isDirectory()&&!a.filterPath(u))return;let l=Ne.join(a.watchPath,u.path),{fullPath:f}=u;if(a.followSymlinks&&u.stats.isSymbolicLink()){let d=n.depth===void 0?void 0:Mf(l,Ne.resolve(a.watchPath))+1;this._handleFsEventsSymlink(l,f,o,d)}else this.emitAdd(l,u.stats,o,n,s)}).on(B0,X0).on(G0,()=>{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===Lf)this.initWatch(void 0,e,a,o);else{let c;try{c=await YR(a.watchPath)}catch{}this.initWatch(c,e,a,o)}}};jf.exports=kf;jf.exports.canUse=oM});var av=_(td=>{"use strict";h();var{EventEmitter:aM}=v("events"),Jf=v("fs"),re=v("path"),{promisify:sv}=v("util"),cM=AR(),$f=DR().default,uM=Al(),Gf=vl(),lM=Pl(),hM=Af(),fM=HR(),ZR=XR(),{EV_ALL:qf,EV_READY:dM,EV_ADD:tc,EV_CHANGE:Rn,EV_UNLINK:QR,EV_ADD_DIR:pM,EV_UNLINK_DIR:mM,EV_RAW:_M,EV_ERROR:Hf,STR_CLOSE:EM,STR_END:gM,BACK_SLASH_RE:yM,DOUBLE_SLASH_RE:JR,SLASH_OR_BACK_SLASH_RE:SM,DOT_RE:OM,REPLACER_RE:RM,SLASH:Wf,SLASH_SLASH:vM,BRACE_START:TM,BANG:Yf,ONE_DOT:iv,TWO_DOTS:AM,GLOBSTAR:IM,SLASH_GLOBSTAR:Vf,ANYMATCH_OPTS:Kf,STRING_TYPE:ed,FUNCTION_TYPE:NM,EMPTY_STR:zf,EMPTY_FN:bM,isWindows:wM,isMacos:CM,isIBMi:PM}=za(),DM=sv(Jf.stat),xM=sv(Jf.readdir),Xf=(t=[])=>Array.isArray(t)?t:[t],nv=(t,e=[])=>(t.forEach(r=>{Array.isArray(r)?nv(r,e):e.push(r)}),e),ev=t=>{let e=nv(Xf(t));if(!e.every(r=>typeof r===ed))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(ov)},tv=t=>{let e=t.replace(yM,Wf),r=!1;for(e.startsWith(vM)&&(r=!0);e.match(JR);)e=e.replace(JR,Wf);return r&&(e=Wf+e),e},ov=t=>tv(re.normalize(tv(t))),rv=(t=zf)=>e=>typeof e!==ed?e:ov(re.isAbsolute(e)?e:re.join(t,e)),LM=(t,e)=>re.isAbsolute(t)?t:t.startsWith(Yf)?Yf+re.join(e,t.slice(1)):re.join(e,t),St=(t,e)=>t[e]===void 0,Zf=class{constructor(e,r){this.path=e,this._removeWatcher=r,this.items=new Set}add(e){let{items:r}=this;r&&e!==iv&&e!==AM&&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 xM(s)}catch{this._removeWatcher&&this._removeWatcher(re.dirname(s),re.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)}},MM="stat",FM="lstat",Qf=class{constructor(e,r,s,i){this.fsw=i,this.path=e=e.replace(RM,zf),this.watchPath=r,this.fullWatchPath=re.resolve(r),this.hasGlob=r!==e,e===zf&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?$f(e,void 0,Kf):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(n=>{n.length>1&&n.pop()}),this.followSymlinks=s,this.statMethod=s?MM:FM}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 re.join(this.watchPath,re.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===NM?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,r)&&this.fsw._hasReadPermissions(r)}getDirParts(e){if(!this.hasGlob)return[];let r=[];return(e.includes(TM)?lM.expand(e):[e]).forEach(i=>{r.push(re.relative(this.watchPath,i).split(SM))}),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===IM&&(s=!0),s||!r[0][o]||$f(n,r[0][o],Kf))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},rc=class extends aM{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,St(r,"persistent")&&(r.persistent=!0),St(r,"ignoreInitial")&&(r.ignoreInitial=!1),St(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),St(r,"interval")&&(r.interval=100),St(r,"binaryInterval")&&(r.binaryInterval=300),St(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,St(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),ZR.canUse()||(r.useFsEvents=!1),St(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=CM),PM&&(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)),St(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),St(r,"followSymlinks")&&(r.followSymlinks=!0),St(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=Xf(r.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=bM,this._readyEmitted=!0,process.nextTick(()=>this.emit(dM)))},this._emitRaw=(...c)=>this.emit(_M,...c),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new ZR(this):this._nodeFsHandler=new fM(this),Object.freeze(r)}add(e,r,s){let{cwd:i,disableGlobbing:n}=this.options;this.closed=!1;let o=ev(e);return i&&(o=o.map(a=>{let c=LM(a,i);return n||!Gf(a)?c:hM(c)})),o=o.filter(a=>a.startsWith(Yf)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+Vf),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(re.dirname(c),re.basename(r||c))})})),this}unwatch(e){if(this.closed)return this;let r=ev(e),{cwd:s}=this.options;return r.forEach(i=>{!re.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=re.join(s,i)),i=re.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Vf),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?re.relative(this.options.cwd,s):s;e[i||iv]=r.getChildren().sort()}),e}emitWithAll(e,r){this.emit(...r),e!==Hf&&this.emit(qf,...r)}async _emit(e,r,s,i,n){if(this.closed)return;let o=this.options;wM&&(r=re.normalize(r)),o.cwd&&(r=re.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===QR)return this._pendingUnlinks.set(r,a),setTimeout(()=>{this._pendingUnlinks.forEach((l,f)=>{this.emit(...l),this.emit(qf,...l),this._pendingUnlinks.delete(f)})},typeof o.atomic=="number"?o.atomic:100),this;e===tc&&this._pendingUnlinks.has(r)&&(e=a[0]=Rn,this._pendingUnlinks.delete(r))}if(c&&(e===tc||e===Rn)&&this._readyEmitted){let l=(f,d)=>{f?(e=a[0]=Hf,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===Rn&&!this._throttle(Rn,r,50))return this;if(o.alwaysStat&&s===void 0&&(e===tc||e===pM||e===Rn)){let l=o.cwd?re.join(o.cwd,r):r,f;try{f=await DM(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(Hf,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&&!re.isAbsolute(e)&&(o=re.join(this.options.cwd,e));let a=new Date,c=u=>{Jf.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&&OM.test(e))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,n=i&&i.map(rv(s)),o=Xf(n).filter(c=>typeof c===ed&&!Gf(c)).map(c=>c+Vf),a=this._getGlobIgnored().map(rv(s)).concat(n,o);this._userIgnored=$f(a,void 0,Kf)}return this._userIgnored([e,r])}_isntIgnored(e,r){return!this._isIgnored(e,r)}_getWatchHelpers(e,r){let s=r||this.options.disableGlobbing||!Gf(e)?e:uM(e),i=this.options.followSymlinks;return new Qf(e,s,i,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=re.resolve(e);return this._watched.has(r)||this._watched.set(r,new Zf(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=re.join(e,r),n=re.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=re.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(l)&&this._pendingWrites.get(l).cancelWait()===tc)return;this._watched.delete(i),this._watched.delete(n);let f=s?mM:QR;u&&!this._isIgnored(i)&&this._emit(f,i),this.options.useFsEvents||this._closePath(i)}_closePath(e){this._closeFile(e);let r=re.dirname(e);this._getWatchedDir(r).remove(re.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:qf,alwaysStat:!0,lstat:!0,...r},i=cM(e,s);return this._streams.add(i),i.once(EM,()=>{i=void 0}),i.once(gM,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};td.FSWatcher=rc;var kM=(t,e)=>{let r=new rc(e);return r.add(t),r};td.watch=kM});var rd=_((GW,cv)=>{"use strict";h();function UM(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}cv.exports=UM});var lv=_((HW,uv)=>{"use strict";h();var BM=typeof global=="object"&&global&&global.Object===Object&&global;uv.exports=BM});var sd=_((VW,hv)=>{"use strict";h();var jM=lv(),GM=typeof self=="object"&&self&&self.Object===Object&&self,qM=jM||GM||Function("return this")();hv.exports=qM});var dv=_((YW,fv)=>{"use strict";h();var HM=sd(),WM=function(){return HM.Date.now()};fv.exports=WM});var mv=_((zW,pv)=>{"use strict";h();var VM=/\s/;function $M(t){for(var e=t.length;e--&&VM.test(t.charAt(e)););return e}pv.exports=$M});var Ev=_((ZW,_v)=>{"use strict";h();var YM=mv(),KM=/^\s+/;function zM(t){return t&&t.slice(0,YM(t)+1).replace(KM,"")}_v.exports=zM});var id=_((JW,gv)=>{"use strict";h();var XM=sd(),ZM=XM.Symbol;gv.exports=ZM});var Rv=_((tV,Ov)=>{"use strict";h();var yv=id(),Sv=Object.prototype,QM=Sv.hasOwnProperty,JM=Sv.toString,vn=yv?yv.toStringTag:void 0;function eF(t){var e=QM.call(t,vn),r=t[vn];try{t[vn]=void 0;var s=!0}catch{}var i=JM.call(t);return s&&(e?t[vn]=r:delete t[vn]),i}Ov.exports=eF});var Tv=_((sV,vv)=>{"use strict";h();var tF=Object.prototype,rF=tF.toString;function sF(t){return rF.call(t)}vv.exports=sF});var bv=_((nV,Nv)=>{"use strict";h();var Av=id(),iF=Rv(),nF=Tv(),oF="[object Null]",aF="[object Undefined]",Iv=Av?Av.toStringTag:void 0;function cF(t){return t==null?t===void 0?aF:oF:Iv&&Iv in Object(t)?iF(t):nF(t)}Nv.exports=cF});var Cv=_((aV,wv)=>{"use strict";h();function uF(t){return t!=null&&typeof t=="object"}wv.exports=uF});var Dv=_((uV,Pv)=>{"use strict";h();var lF=bv(),hF=Cv(),fF="[object Symbol]";function dF(t){return typeof t=="symbol"||hF(t)&&lF(t)==fF}Pv.exports=dF});var Fv=_((hV,Mv)=>{"use strict";h();var pF=Ev(),xv=rd(),mF=Dv(),Lv=NaN,_F=/^[-+]0x[0-9a-f]+$/i,EF=/^0b[01]+$/i,gF=/^0o[0-7]+$/i,yF=parseInt;function SF(t){if(typeof t=="number")return t;if(mF(t))return Lv;if(xv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=xv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=pF(t);var r=EF.test(t);return r||gF.test(t)?yF(t.slice(2),r?2:8):_F.test(t)?Lv:+t}Mv.exports=SF});var Bv=_((dV,Uv)=>{"use strict";h();var OF=rd(),nd=dv(),kv=Fv(),RF="Expected a function",vF=Math.max,TF=Math.min;function AF(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(RF);e=kv(e)||0,OF(r)&&(l=!!r.leading,f="maxWait"in r,n=f?vF(kv(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(A,e),l?E(j):o}function y(j){var U=j-c,D=j-u,Z=e-U;return f?TF(Z,n-D):Z}function T(j){var U=j-c,D=j-u;return c===void 0||U>=e||U<0||f&&D>=n}function A(){var j=nd();if(T(j))return L(j);a=setTimeout(A,y(j))}function L(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:L(nd())}function k(){var j=nd(),U=T(j);if(s=arguments,i=this,c=j,U){if(a===void 0)return g(c);if(f)return clearTimeout(a),a=setTimeout(A,e),E(c)}return a===void 0&&(a=setTimeout(A,e)),o}return k.cancel=$,k.flush=de,k}Uv.exports=AF});h();var md=Re(xn(),1),{WError:IT}=md.default,ie=class extends IT{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 M=Re(fr(),1),Yn=(0,M.variant)({FailedToGetDeviceCode:{},FailedToGetAuthToken:{},FailedToRenewAuthToken:{},FailedToRefreshTokenForSite:{},FailedToRevokeRefreshToken:(0,M.fields)(),UnknownFailure:(0,M.fields)(),FailedToFetchPackageJson:{},FailedToGetDeveloperApps:{},FailedToUpdateTelemetryConfig:{},FailedToSyncToRevision:(0,M.fields)(),FailedToCreateVersion:{},FailedToReadCache:(0,M.fields)(),FailedToWriteCache:(0,M.fields)(),UploadApplicationFailed:{},FailedToCreateDevCenterApp:{},GridAppFailedToUpdateFiles:{},FailedToCreateGridApp:(0,M.fields)(),FailedToGetPackageDetails:{},InvalidCreateAppResponse:{},InvalidDeployAppResponse:{},FailedToGetPagesDiff:{},InvalidViteBuildOutput:{},ViteModuleBundleNotFound:{},ViteFileNotFoundInOutput:(0,M.fields)(),FailedToCreatePresignedUrl:{},FailedToUploadApplicationFiles:{},FailedToVerifyDeployment:{},FailedToGetUserInfo:{},FailedToCreateDevelopmentSite:{},FailedToGetDevelopmentSites:{},FailedToGetDevelopmentSitesLimit:{},FailedToGetAppValidity:{},FailedToQuerySites:{},FailedToGetSite:{},FailedToDeploySite:{},FailedToPublishDeployment:{},SiteNotFound:{},FailedToCheckIfAppInstalled:{},TypeErrorInvalidUrl:{},FailedToGenerateSelfsignedCertificate:{},FailedToResolveViteOrigin:{},FailedToCreateAppRelease:{},FailedToUpdateAppRelease:{},FailedToGetResolveNpmDependenciesResult:{},FailedToResolveNpmDependencies:{},FailedToCheckDeprecatedStatus:{},FailedToCreateSiteOverride:{}}),Tc=(0,M.variant)({InvalidCustomElementTagName:(0,M.fields)(),LatestVersionOfCreateAppRequired:(0,M.fields)(),EmptyDirectoryRequiredAppGeneration:(0,M.fields)(),InvalidNewPackageName:(0,M.fields)(),UnsupportedPackageManager:(0,M.fields)(),UnsupportedPackageManagerWorkspaces:(0,M.fields)(),FailedAddingPackageToWorkspace:{},SitePermissionDenied:(0,M.fields)(),AppPermissionDenied:(0,M.fields)(),BuiltProjectNeeded:{},UnsupportedWixInstallCommand:{},UnsupportedWixUpdateCommand:{},WixUninstallMissingPackageName:{},FailedToReadJson:(0,M.fields)(),FailedToWriteJson:(0,M.fields)(),InvalidJsonFile:(0,M.fields)(),FailedToWriteWixLock:{},InvalidVeloConfigJson:(0,M.fields)(),DashboardPageConfigNotFound:(0,M.fields)(),EmbeddedScriptConfigNotFound:(0,M.fields)(),NoExtensionsFound:{},CustomElementConfigNotFound:(0,M.fields)(),NoPagesDirectoryFound:(0,M.fields)(),DashboardWidgetConfigNotFound:(0,M.fields)(),InvalidConfigSchemaError:(0,M.fields)(),InvalidParamsOverrideSchemaError:(0,M.fields)(),PermissionDenied:{},SiteSelectorTimedout:{},FailedToReadProjectFiles:(0,M.fields)(),FailedToCreateVersionForSubmittedApp:{},GridAppFilesMaxLengthExcceeded:(0,M.fields)(),DeviceCodeTimedOut:{},DuplicateComponentIdsError:(0,M.fields)(),FailedToSaveDevelopmentSite:(0,M.fields)(),FailedToBuildApp:{},FailedToInitializeGitRepo:(0,M.fields)(),FailedToInstallDependencies:(0,M.fields)(),FailedToCommitChanges:(0,M.fields)(),FailedToDeleteAuthData:(0,M.fields)(),FailedToDeleteLegacyAuthData:(0,M.fields)(),FailedToSaveAuthData:(0,M.fields)(),FailedToRenewAuthTokenSiteNotFound:(0,M.fields)(),FailedToInstallPackage:(0,M.fields)(),FailedToInstallPackages:(0,M.fields)(),FailedToUninstallPackage:(0,M.fields)(),DeprecatedVersion:(0,M.fields)(),TemplatePathNotFound:(0,M.fields)(),FailedToCloneRepo:(0,M.fields)(),InvalidGitUrl:(0,M.fields)(),AuthenticationRequired:{},SiteConfiguredRequired:{},NonInteractiveTerminal:{},FailedToWatchFiles:(0,M.fields)(),CliAppVersionMismatch:(0,M.fields)(),InvalidEmbeddedScriptParameterNames:(0,M.fields)(),InvalidEmbeddedScriptTemplate:(0,M.fields)()}),ne=(0,M.variant)({...Yn,...Tc});h();h();var Ac=Re(fr(),1);function Kn(t){return t&&typeof t=="object"&&"cliCode"in t?(0,Ac.isOfVariant)(t.cliCode,ne):!1}function MA(t){return(0,Ac.isOfVariant)(t.cliCode,Yn)}h();var Ud=Re(fr(),1),Bd=Re(xn(),1);function jd(t){if(Kn(t)&&(0,Ud.isOfVariant)(t.cliCode,Tc))return t;let e=Bd.default.cause(t);return e?jd(e):null}function FA(t){let e=Kn(t)?t:new ie({code:ne.UnknownFailure({error:t})});return jd(e)??e}h();import{join as UA}from"node:path";h();import{join as kA}from"node:path";function Gd(t=""){return kA(t,".wix")}var Pi="wix.config.json";function kU(t){return UA(Gd(t),"debug.log")}h();import tk,{createContext as rk,useContext as sk,useState as eT,useEffect as ik}from"react";h();h();var so=Re(fr(),1);import{join as Ge}from"node:path";h();var J;(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})(J||(J={}));var Nc;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Nc||(Nc={}));var w=J.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=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}},I=J.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"]),BA=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,J.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 Di=(t,e)=>{let r;switch(t.code){case I.invalid_type:t.received===w.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case I.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,J.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:r=`Unrecognized key(s) in object: ${J.joinValues(t.keys,", ")}`;break;case I.invalid_union:r="Invalid input";break;case I.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${J.joinValues(t.options)}`;break;case I.invalid_enum_value:r=`Invalid enum value. Expected ${J.joinValues(t.options)}, received '${t.received}'`;break;case I.invalid_arguments:r="Invalid function arguments";break;case I.invalid_return_type:r="Invalid function return type";break;case I.invalid_date:r="Invalid date";break;case I.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}"`:J.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case I.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 I.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 I.custom:r="Invalid input";break;case I.invalid_intersection_types:r="Intersection results could not be merged";break;case I.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case I.not_finite:r="Number must be finite";break;default:r=e.defaultError,J.assertNever(t)}return{message:r}},Wd=Di;function jA(t){Wd=t}function Xn(){return Wd}var Zn=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}},GA=[];function P(t,e){let r=Zn({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Xn(),Di].filter(s=>!!s)});t.common.issues.push(r)}var Pe=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"}),Vd=t=>({status:"dirty",value:t}),je=t=>({status:"valid",value:t}),bc=t=>t.status==="aborted",wc=t=>t.status==="dirty",xi=t=>t.status==="valid",Qn=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 st=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}},qd=(t,e)=>{if(xi(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 W(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 V=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 dr(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Pe,ctx:{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Qn(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:dr(e)},n=this._parseSync({data:e,path:i.path,parent:i});return qd(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:dr(e)},i=this._parse({data:e,path:s.path,parent:s}),n=await(Qn(i)?i:Promise.resolve(i));return qd(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:I.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 pt.create(this,this._def)}nullable(){return Ut.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return kt.create(this,this._def)}promise(){return _r.create(this,this._def)}or(e){return Xr.create([this,e],this._def)}and(e){return Zr.create(this,e,this._def)}transform(e){return new Xe({...W(this._def),schema:this,typeName:B.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new rs({...W(this._def),innerType:this,defaultValue:r,typeName:B.ZodDefault})}brand(){return new ro({typeName:B.ZodBranded,type:this,...W(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new xs({...W(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 Li.create(this,e)}readonly(){return Ms.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},qA=/^c[^\s-]{8,}$/i,HA=/^[a-z][a-z0-9]*$/,WA=/^[0-9A-HJKMNP-TV-Z]{26}$/,VA=/^[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,$A=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,YA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ic,KA=/^(((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}))$/,zA=/^(([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})))$/,XA=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 ZA(t,e){return!!((e==="v4"||!e)&&KA.test(t)||(e==="v6"||!e)&&zA.test(t))}var pr=class t extends V{_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:I.invalid_type,expected:w.string,received:n.parsedType}),H}let s=new Pe,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:I.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:I.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:I.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):a&&P(i,{code:I.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")$A.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"email",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")Ic||(Ic=new RegExp(YA,"u")),Ic.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"emoji",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")VA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"uuid",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")qA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"cuid",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")HA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"cuid2",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")WA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"ulid",code:I.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:I.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:I.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:I.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:I.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:I.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?XA(n).test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{code:I.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="ip"?ZA(e.data,n.version)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"ip",code:I.invalid_string,message:n.message}),s.dirty()):J.assertNever(n);return{status:s.value,value:e.data}}_regex(e,r,s){return this.refinement(i=>e.test(i),{validation:r,code:I.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}};pr.create=t=>{var e;return new pr({checks:[],typeName:B.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...W(t)})};function QA(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 Wr=class t extends V{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:I.invalid_type,expected:w.number,received:n.parsedType}),H}let s,i=new Pe;for(let n of this._def.checks)n.kind==="int"?J.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),P(s,{code:I.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:I.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:I.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):n.kind==="multipleOf"?QA(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),P(s,{code:I.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:I.not_finite,message:n.message}),i.dirty()):J.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"&&J.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)}};Wr.create=t=>new Wr({checks:[],typeName:B.ZodNumber,coerce:t?.coerce||!1,...W(t)});var Vr=class t extends V{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:I.invalid_type,expected:w.bigint,received:n.parsedType}),H}let s,i=new Pe;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:I.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:I.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:I.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):J.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}};Vr.create=t=>{var e;return new Vr({checks:[],typeName:B.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...W(t)})};var $r=class extends V{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==w.boolean){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.boolean,received:s.parsedType}),H}return je(e.data)}};$r.create=t=>new $r({typeName:B.ZodBoolean,coerce:t?.coerce||!1,...W(t)});var Yr=class t extends V{_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:I.invalid_type,expected:w.date,received:n.parsedType}),H}if(isNaN(e.data.getTime())){let n=this._getOrReturnCtx(e);return P(n,{code:I.invalid_date}),H}let s=new Pe,i;for(let n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),P(i,{code:I.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:I.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):J.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}};Yr.create=t=>new Yr({checks:[],coerce:t?.coerce||!1,typeName:B.ZodDate,...W(t)});var ws=class extends V{_parse(e){if(this._getType(e)!==w.symbol){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.symbol,received:s.parsedType}),H}return je(e.data)}};ws.create=t=>new ws({typeName:B.ZodSymbol,...W(t)});var Kr=class extends V{_parse(e){if(this._getType(e)!==w.undefined){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.undefined,received:s.parsedType}),H}return je(e.data)}};Kr.create=t=>new Kr({typeName:B.ZodUndefined,...W(t)});var zr=class extends V{_parse(e){if(this._getType(e)!==w.null){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.null,received:s.parsedType}),H}return je(e.data)}};zr.create=t=>new zr({typeName:B.ZodNull,...W(t)});var mr=class extends V{constructor(){super(...arguments),this._any=!0}_parse(e){return je(e.data)}};mr.create=t=>new mr({typeName:B.ZodAny,...W(t)});var Ft=class extends V{constructor(){super(...arguments),this._unknown=!0}_parse(e){return je(e.data)}};Ft.create=t=>new Ft({typeName:B.ZodUnknown,...W(t)});var mt=class extends V{_parse(e){let r=this._getOrReturnCtx(e);return P(r,{code:I.invalid_type,expected:w.never,received:r.parsedType}),H}};mt.create=t=>new mt({typeName:B.ZodNever,...W(t)});var Cs=class extends V{_parse(e){if(this._getType(e)!==w.undefined){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.void,received:s.parsedType}),H}return je(e.data)}};Cs.create=t=>new Cs({typeName:B.ZodVoid,...W(t)});var kt=class t extends V{_parse(e){let{ctx:r,status:s}=this._processInputParams(e),i=this._def;if(r.parsedType!==w.array)return P(r,{code:I.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?I.too_big:I.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:I.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:I.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 st(r,o,r.path,a)))).then(o=>Pe.mergeArray(s,o));let n=[...r.data].map((o,a)=>i.type._parseSync(new st(r,o,r.path,a)));return Pe.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)}};kt.create=(t,e)=>new kt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:B.ZodArray,...W(e)});function bs(t){if(t instanceof He){let e={};for(let r in t.shape){let s=t.shape[r];e[r]=pt.create(bs(s))}return new He({...t._def,shape:()=>e})}else return t instanceof kt?new kt({...t._def,type:bs(t.element)}):t instanceof pt?pt.create(bs(t.unwrap())):t instanceof Ut?Ut.create(bs(t.unwrap())):t instanceof vt?vt.create(t.items.map(e=>bs(e))):t}var He=class t extends V{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=J.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:I.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 mt&&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 st(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof mt){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:I.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 st(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=>Pe.mergeObjectSync(s,u)):Pe.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 J.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 J.objectKeys(this.shape).forEach(s=>{e[s]||(r[s]=this.shape[s])}),new t({...this._def,shape:()=>r})}deepPartial(){return bs(this)}partial(e){let r={};return J.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 J.objectKeys(this.shape).forEach(s=>{if(e&&!e[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof pt;)n=n._def.innerType;r[s]=n}}),new t({...this._def,shape:()=>r})}keyof(){return $d(J.objectKeys(this.shape))}};He.create=(t,e)=>new He({shape:()=>t,unknownKeys:"strip",catchall:mt.create(),typeName:B.ZodObject,...W(e)});He.strictCreate=(t,e)=>new He({shape:()=>t,unknownKeys:"strict",catchall:mt.create(),typeName:B.ZodObject,...W(e)});He.lazycreate=(t,e)=>new He({shape:t,unknownKeys:"strip",catchall:mt.create(),typeName:B.ZodObject,...W(e)});var Xr=class extends V{_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:I.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:I.invalid_union,unionErrors:a}),H}}get options(){return this._def.options}};Xr.create=(t,e)=>new Xr({options:t,typeName:B.ZodUnion,...W(e)});var zn=t=>t instanceof Qr?zn(t.schema):t instanceof Xe?zn(t.innerType()):t instanceof Jr?[t.value]:t instanceof es?t.options:t instanceof ts?Object.keys(t.enum):t instanceof rs?zn(t._def.innerType):t instanceof Kr?[void 0]:t instanceof zr?[null]:null,Jn=class t extends V{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.object)return P(r,{code:I.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:I.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=zn(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,...W(s)})}};function Cc(t,e){let r=dr(t),s=dr(e);if(t===e)return{valid:!0,data:t};if(r===w.object&&s===w.object){let i=J.objectKeys(e),n=J.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of n){let c=Cc(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=Cc(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 Zr=class extends V{_parse(e){let{status:r,ctx:s}=this._processInputParams(e),i=(n,o)=>{if(bc(n)||bc(o))return H;let a=Cc(n.value,o.value);return a.valid?((wc(n)||wc(o))&&r.dirty(),{status:r.value,value:a.data}):(P(s,{code:I.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}))}};Zr.create=(t,e,r)=>new Zr({left:t,right:e,typeName:B.ZodIntersection,...W(r)});var vt=class t extends V{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.array)return P(s,{code:I.invalid_type,expected:w.array,received:s.parsedType}),H;if(s.data.length<this._def.items.length)return P(s,{code:I.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:I.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 st(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(n).then(o=>Pe.mergeArray(r,o)):Pe.mergeArray(r,n)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};vt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vt({items:t,typeName:B.ZodTuple,rest:null,...W(e)})};var eo=class t extends V{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:I.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 st(s,a,s.path,a)),value:o._parse(new st(s,s.data[a],s.path,a))});return s.common.async?Pe.mergeObjectAsync(r,i):Pe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,s){return r instanceof V?new t({keyType:e,valueType:r,typeName:B.ZodRecord,...W(s)}):new t({keyType:pr.create(),valueType:e,typeName:B.ZodRecord,...W(r)})}},Ps=class extends V{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:I.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 st(s,a,s.path,[u,"key"])),value:n._parse(new st(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}}}};Ps.create=(t,e,r)=>new Ps({valueType:e,keyType:t,typeName:B.ZodMap,...W(r)});var Ds=class t extends V{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.set)return P(s,{code:I.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:I.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:I.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 st(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)}};Ds.create=(t,e)=>new Ds({valueType:t,minSize:null,maxSize:null,typeName:B.ZodSet,...W(e)});var to=class t extends V{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.function)return P(r,{code:I.invalid_type,expected:w.function,received:r.parsedType}),H;function s(a,c){return Zn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xn(),Di].filter(u=>!!u),issueData:{code:I.invalid_arguments,argumentsError:c}})}function i(a,c){return Zn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xn(),Di].filter(u=>!!u),issueData:{code:I.invalid_return_type,returnTypeError:c}})}let n={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof _r){let a=this;return je(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 je(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:vt.create(e).rest(Ft.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||vt.create([]).rest(Ft.create()),returns:r||Ft.create(),typeName:B.ZodFunction,...W(s)})}},Qr=class extends V{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})}};Qr.create=(t,e)=>new Qr({getter:t,typeName:B.ZodLazy,...W(e)});var Jr=class extends V{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return P(r,{received:r.data,code:I.invalid_literal,expected:this._def.value}),H}return{status:"valid",value:e.data}}get value(){return this._def.value}};Jr.create=(t,e)=>new Jr({value:t,typeName:B.ZodLiteral,...W(e)});function $d(t,e){return new es({values:t,typeName:B.ZodEnum,...W(e)})}var es=class t extends V{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),s=this._def.values;return P(r,{expected:J.joinValues(s),received:r.parsedType,code:I.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:I.invalid_enum_value,options:s}),H}return je(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)))}};es.create=$d;var ts=class extends V{_parse(e){let r=J.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==w.string&&s.parsedType!==w.number){let i=J.objectValues(r);return P(s,{expected:J.joinValues(i),received:s.parsedType,code:I.invalid_type}),H}if(r.indexOf(e.data)===-1){let i=J.objectValues(r);return P(s,{received:s.data,code:I.invalid_enum_value,options:i}),H}return je(e.data)}get enum(){return this._def.values}};ts.create=(t,e)=>new ts({values:t,typeName:B.ZodNativeEnum,...W(e)});var _r=class extends V{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:I.invalid_type,expected:w.promise,received:r.parsedType}),H;let s=r.parsedType===w.promise?r.data:Promise.resolve(r.data);return je(s.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};_r.create=(t,e)=>new _r({type:t,typeName:B.ZodPromise,...W(e)});var Xe=class extends V{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(!xi(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=>xi(o)?Promise.resolve(i.transform(o.value,n)).then(a=>({status:r.value,value:a})):o);J.assertNever(i)}};Xe.create=(t,e,r)=>new Xe({schema:t,typeName:B.ZodEffects,effect:e,...W(r)});Xe.createWithPreprocess=(t,e,r)=>new Xe({schema:e,effect:{type:"preprocess",transform:t},typeName:B.ZodEffects,...W(r)});var pt=class extends V{_parse(e){return this._getType(e)===w.undefined?je(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pt.create=(t,e)=>new pt({innerType:t,typeName:B.ZodOptional,...W(e)});var Ut=class extends V{_parse(e){return this._getType(e)===w.null?je(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ut.create=(t,e)=>new Ut({innerType:t,typeName:B.ZodNullable,...W(e)});var rs=class extends V{_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}};rs.create=(t,e)=>new rs({innerType:t,typeName:B.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...W(e)});var xs=class extends V{_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 Qn(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}};xs.create=(t,e)=>new xs({innerType:t,typeName:B.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...W(e)});var Ls=class extends V{_parse(e){if(this._getType(e)!==w.nan){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.nan,received:s.parsedType}),H}return{status:"valid",value:e.data}}};Ls.create=t=>new Ls({typeName:B.ZodNaN,...W(t)});var JA=Symbol("zod_brand"),ro=class extends V{_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}},Li=class t extends V{_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(),Vd(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})}},Ms=class extends V{_parse(e){let r=this._def.innerType._parse(e);return xi(r)&&(r.value=Object.freeze(r.value)),r}};Ms.create=(t,e)=>new Ms({innerType:t,typeName:B.ZodReadonly,...W(e)});var Yd=(t,e={},r)=>t?mr.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})}}):mr.create(),eI={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 tI=(t,e={message:`Input not instance of ${t.name}`})=>Yd(r=>r instanceof t,e),Kd=pr.create,zd=Wr.create,rI=Ls.create,sI=Vr.create,Xd=$r.create,iI=Yr.create,nI=ws.create,oI=Kr.create,aI=zr.create,cI=mr.create,uI=Ft.create,lI=mt.create,hI=Cs.create,fI=kt.create,dI=He.create,pI=He.strictCreate,mI=Xr.create,_I=Jn.create,EI=Zr.create,gI=vt.create,yI=eo.create,SI=Ps.create,OI=Ds.create,RI=to.create,vI=Qr.create,TI=Jr.create,AI=es.create,II=ts.create,NI=_r.create,Hd=Xe.create,bI=pt.create,wI=Ut.create,CI=Xe.createWithPreprocess,PI=Li.create,DI=()=>Kd().optional(),xI=()=>zd().optional(),LI=()=>Xd().optional(),MI={string:t=>pr.create({...t,coerce:!0}),number:t=>Wr.create({...t,coerce:!0}),boolean:t=>$r.create({...t,coerce:!0}),bigint:t=>Vr.create({...t,coerce:!0}),date:t=>Yr.create({...t,coerce:!0})},FI=H,b=Object.freeze({__proto__:null,defaultErrorMap:Di,setErrorMap:jA,getErrorMap:Xn,makeIssue:Zn,EMPTY_PATH:GA,addIssueToContext:P,ParseStatus:Pe,INVALID:H,DIRTY:Vd,OK:je,isAborted:bc,isDirty:wc,isValid:xi,isAsync:Qn,get util(){return J},get objectUtil(){return Nc},ZodParsedType:w,getParsedType:dr,ZodType:V,ZodString:pr,ZodNumber:Wr,ZodBigInt:Vr,ZodBoolean:$r,ZodDate:Yr,ZodSymbol:ws,ZodUndefined:Kr,ZodNull:zr,ZodAny:mr,ZodUnknown:Ft,ZodNever:mt,ZodVoid:Cs,ZodArray:kt,ZodObject:He,ZodUnion:Xr,ZodDiscriminatedUnion:Jn,ZodIntersection:Zr,ZodTuple:vt,ZodRecord:eo,ZodMap:Ps,ZodSet:Ds,ZodFunction:to,ZodLazy:Qr,ZodLiteral:Jr,ZodEnum:es,ZodNativeEnum:ts,ZodPromise:_r,ZodEffects:Xe,ZodTransformer:Xe,ZodOptional:pt,ZodNullable:Ut,ZodDefault:rs,ZodCatch:xs,ZodNaN:Ls,BRAND:JA,ZodBranded:ro,ZodPipeline:Li,ZodReadonly:Ms,custom:Yd,Schema:V,ZodSchema:V,late:eI,get ZodFirstPartyTypeKind(){return B},coerce:MI,any:cI,array:fI,bigint:sI,boolean:Xd,date:iI,discriminatedUnion:_I,effect:Hd,enum:AI,function:RI,instanceof:tI,intersection:EI,lazy:vI,literal:TI,map:SI,nan:rI,nativeEnum:II,never:lI,null:aI,nullable:wI,number:zd,object:dI,oboolean:LI,onumber:xI,optional:bI,ostring:DI,pipeline:PI,preprocess:CI,promise:NI,record:yI,set:OI,strictObject:pI,string:Kd,symbol:nI,transformer:Hd,tuple:gI,undefined:oI,union:mI,unknown:uI,void:hI,NEVER:FI,ZodIssueCode:I,quotelessJson:BA,ZodError:ze});h();var Zd;(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"})(Zd||(Zd={}));var Qd;(function(t){t.NONE_VERTICAL="NONE_VERTICAL",t.TOP="TOP",t.CENTER_VERTICAL="CENTER_VERTICAL",t.BOTTOM="BOTTOM"})(Qd||(Qd={}));var Jd;(function(t){t.NONE_HORIZONTAL="NONE_HORIZONTAL",t.LEFT="LEFT",t.CENTER_HORIZONTAL="CENTER_HORIZONTAL",t.RIGHT="RIGHT"})(Jd||(Jd={}));var ep;(function(t){t.NONE_TYPE="NONE_TYPE",t.CUSTOM="CUSTOM",t.FULL="FULL"})(ep||(ep={}));var tp;(function(t){t.no_region="no_region",t.header="header",t.pageContainer="pageContainer",t.footer="footer"})(tp||(tp={}));var rp;(function(t){t.NO_UNIT="NO_UNIT",t.AUTO="AUTO",t.PX="PX",t.VH="VH",t.VW="VW",t.PERCENTAGE="PERCENTAGE"})(rp||(rp={}));var sp;(function(t){t.NO_HDOCKING="NO_HDOCKING",t.LEFT_DOCKING="LEFT_DOCKING",t.HCENTER="HCENTER",t.RIGHT_DOCKING="RIGHT_DOCKING"})(sp||(sp={}));var ip;(function(t){t.NO_VDOCKING="NO_VDOCKING",t.TOP_DOCKING="TOP_DOCKING",t.VCENTER="VCENTER",t.BOTTOM_DOCKING="BOTTOM_DOCKING"})(ip||(ip={}));var np;(function(t){t.UNKNOWN_REPLACEMENT="UNKNOWN_REPLACEMENT",t.REPLACING="REPLACING",t.REPLACEABLE="REPLACEABLE"})(np||(np={}));var op;(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"})(op||(op={}));var ap;(function(t){t.NO_PAGE="NO_PAGE",t.CURRENT="CURRENT",t.PAGE="PAGE",t.LIGHTBOX="LIGHTBOX"})(ap||(ap={}));var cp;(function(t){t.HEADER="HEADER",t.BODY="BODY",t.FOOTER="FOOTER"})(cp||(cp={}));var up;(function(t){t.NONE_PAGES="NONE_PAGES",t.ONCE="ONCE",t.SPECIFIC_PAGES="SPECIFIC_PAGES"})(up||(up={}));var Fs;(function(t){t.NONE_PLACEMENT="NONE_PLACEMENT",t.HEAD="HEAD",t.BODY_START="BODY_START",t.BODY_END="BODY_END"})(Fs||(Fs={}));var ss;(function(t){t.UNKNOWN="UNKNOWN",t.ESSENTIAL="ESSENTIAL",t.FUNCTIONAL="FUNCTIONAL",t.ANALYTICS="ANALYTICS",t.ADVERTISING="ADVERTISING"})(ss||(ss={}));var lp;(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"})(lp||(lp={}));var hp;(function(t){t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t.XLARGE="XLARGE"})(hp||(hp={}));var fp;(function(t){t.ALIGN_LEFT="ALIGN_LEFT",t.ALIGN_CENTER="ALIGN_CENTER",t.ALIGN_RIGHT="ALIGN_RIGHT"})(fp||(fp={}));var dp;(function(t){t.TITLE="TITLE",t.PARAGRAPH="PARAGRAPH",t.LOWER_HIERARCHY_TEXTS="LOWER_HIERARCHY_TEXTS"})(dp||(dp={}));var pp;(function(t){t.WIDGET="WIDGET",t.PAGE="PAGE"})(pp||(pp={}));var mp;(function(t){t.NO_SCRIPT_TYPE="NO_SCRIPT_TYPE",t.MODULE="MODULE"})(mp||(mp={}));var _p;(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"})(_p||(_p={}));var Ep;(function(t){t.UNKNOWN_PRIMITIVE_TYPE="UNKNOWN_PRIMITIVE_TYPE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER"})(Ep||(Ep={}));var gp;(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"})(gp||(gp={}));var yp;(function(t){t.UNKNOWN_EXPOSURE="UNKNOWN_EXPOSURE",t.SETUP="SETUP",t.HIDDEN="HIDDEN",t.EXPOSED="EXPOSED"})(yp||(yp={}));var Sp;(function(t){t.UNDEFINED="UNDEFINED",t.ALLOW="ALLOW",t.DISALLOW="DISALLOW"})(Sp||(Sp={}));var Op;(function(t){t.BUSINESS_MANAGER="BUSINESS_MANAGER",t.BUSINESS_DASHBOARD_HOST="BUSINESS_DASHBOARD_HOST",t.SIDEBAR_FOOTER="SIDEBAR_FOOTER"})(Op||(Op={}));var Rp;(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"})(Rp||(Rp={}));var vp;(function(t){t.Metric="Metric",t.Imperial="Imperial"})(vp||(vp={}));var Tp;(function(t){t.WIX="WIX",t.POS="POS"})(Tp||(Tp={}));var Ap;(function(t){t.UNDEFINED="UNDEFINED",t.BEFORE_BLOCKING="BEFORE_BLOCKING",t.BEFORE="BEFORE",t.AFTER="AFTER"})(Ap||(Ap={}));var Ip;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIDGET_COMPONENT="WIDGET_COMPONENT",t.GENERIC="GENERIC"})(Ip||(Ip={}));var Np;(function(t){t.UNKNOWN_EXECUTION_TYPE="UNKNOWN_EXECUTION_TYPE",t.SYNC="SYNC",t.ASYNC="ASYNC"})(Np||(Np={}));var bp;(function(t){t.INVALID="INVALID",t.BACK_OFFICE_MENU_ITEM="BACK_OFFICE_MENU_ITEM",t.BACK_OFFICE_EXTENSION_WIDGET="BACK_OFFICE_EXTENSION_WIDGET"})(bp||(bp={}));var wp;(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"})(wp||(wp={}));var Cp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.MODULE="MODULE"})(Cp||(Cp={}));var Pp;(function(t){t.PAGE="PAGE",t.MODAL="MODAL"})(Pp||(Pp={}));var Dp;(function(t){t.UNSPECIFIED="UNSPECIFIED",t.RELATED_ITEMS="RELATED_ITEMS",t.GLOBAL="GLOBAL"})(Dp||(Dp={}));var xp;(function(t){t.UNSPECIFIED_LOCKABLE="UNSPECIFIED_LOCKABLE",t.LOCKED="LOCKED",t.UNLOCKED="UNLOCKED"})(xp||(xp={}));var Lp;(function(t){t.UNSPECIFIED_RESTRICTED="UNSPECIFIED_RESTRICTED",t.ALLOW="ALLOW",t.WARN="WARN"})(Lp||(Lp={}));var Mp;(function(t){t.UNKNOWN="UNKNOWN",t.OR="OR",t.AND="AND"})(Mp||(Mp={}));var Fp;(function(t){t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE"})(Fp||(Fp={}));var kp;(function(t){t.TEXT="TEXT",t.PASSWORD="PASSWORD",t.CODE="CODE"})(kp||(kp={}));var Up;(function(t){t.UNKNOWN_TAG="UNKNOWN_TAG",t.EMBEDDABLE="EMBEDDABLE",t.ECOM_EDIT_ORDER="ECOM_EDIT_ORDER",t.ECOM_CREATE_ORDER="ECOM_CREATE_ORDER"})(Up||(Up={}));var Bp;(function(t){t.UNKNOWN_SELECTION="UNKNOWN_SELECTION",t.SINGLE_SELECTION="SINGLE_SELECTION"})(Bp||(Bp={}));var jp;(function(t){t.UNKNOWN_FILTER_OPTIONS="UNKNOWN_FILTER_OPTIONS",t.STATIC="STATIC"})(jp||(jp={}));var Gp;(function(t){t.UNKNOWN_CHANNEL_TYPE="UNKNOWN_CHANNEL_TYPE",t.DIRECT_MESSAGING="DIRECT_MESSAGING",t.EMAIL="EMAIL",t.SMS="SMS"})(Gp||(Gp={}));var qp;(function(t){t.TEXT="TEXT",t.MEDIA="MEDIA",t.CARD="CARD",t.ANNOUNCEMENT="ANNOUNCEMENT",t.FORM="FORM"})(qp||(qp={}));var Hp;(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"})(Hp||(Hp={}));var Wp;(function(t){t.SMS="SMS",t.MMS="MMS"})(Wp||(Wp={}));var Vp;(function(t){t.UNKNOWN_INIT_DIRECTION="UNKNOWN_INIT_DIRECTION",t.BUSINESS="BUSINESS",t.CUSTOMER="CUSTOMER",t.BOTH="BOTH"})(Vp||(Vp={}));var $p;(function(t){t.UNDEFINED="UNDEFINED",t.GOOGLE="GOOGLE",t.I_CAL="I_CAL",t.MICROSOFT="MICROSOFT",t.OTHER="OTHER"})($p||($p={}));var Yp;(function(t){t.OAUTH="OAUTH",t.CREDENTIALS="CREDENTIALS"})(Yp||(Yp={}));var Kp;(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"})(Kp||(Kp={}));var zp;(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"})(zp||(zp={}));var Xp;(function(t){t.NAVIGATE="NAVIGATE",t.MODAL="MODAL"})(Xp||(Xp={}));var Zp;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(Zp||(Zp={}));var Qp;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(Qp||(Qp={}));var Jp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.PROMOTIONAL="PROMOTIONAL",t.TRANSACTIONAL="TRANSACTIONAL"})(Jp||(Jp={}));var em;(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"})(em||(em={}));var tm;(function(t){t.UNDEFINED="UNDEFINED",t.DAY="DAY",t.WEEK="WEEK",t.MONTH="MONTH",t.YEAR="YEAR"})(tm||(tm={}));var rm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.STRING="STRING",t.ARRAY="ARRAY"})(rm||(rm={}));var sm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USERS="WIX_USERS",t.SITE_CONTRIBUTORS="SITE_CONTRIBUTORS"})(sm||(sm={}));var im;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USER="WIX_USER",t.WIX_APP="WIX_APP"})(im||(im={}));var nm;(function(t){t.UNKNOWN_LEVEL="UNKNOWN_LEVEL",t.ACCOUNT="ACCOUNT",t.USER="USER",t.SITE="SITE"})(nm||(nm={}));var om;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.URL="URL",t.SPOUT="SPOUT",t.INITIATOR="INITIATOR"})(om||(om={}));var am;(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"})(am||(am={}));var cm;(function(t){t.UNKNOWN_ANDROID_STYLE="UNKNOWN_ANDROID_STYLE",t.BIG_TEXT="BIG_TEXT",t.MESSAGING="MESSAGING",t.INBOX="INBOX"})(cm||(cm={}));var um;(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"})(um||(um={}));var lm;(function(t){t.UNKNOWN_INTENT="UNKNOWN_INTENT",t.MARKETING="MARKETING",t.TRANSACTIONAL="TRANSACTIONAL"})(lm||(lm={}));var hm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACTS="CONTACTS"})(hm||(hm={}));var fm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACT="CONTACT",t.SITE_MEMBER="SITE_MEMBER"})(fm||(fm={}));var dm;(function(t){t.LIVE_SITE="LIVE_SITE",t.BUSINESS_MANAGER="BUSINESS_MANAGER"})(dm||(dm={}));var pm;(function(t){t.UNKNOWN_SCOPE="UNKNOWN_SCOPE",t.GLOBAL="GLOBAL",t.SITE="SITE"})(pm||(pm={}));var mm;(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"})(mm||(mm={}));var _m;(function(t){t.UNKNOWN="UNKNOWN",t.AUTO="AUTO",t.FIXED="FIXED"})(_m||(_m={}));var kI="dist",Em=".wix",gm="src",UI=Ge(Em,"app.config.json"),BI=Ge(Em,"dev.log"),ym=Ge(gm,"dashboard"),ks=Ge(ym,"pages"),Mi=Ge(ym,"widgets"),Sm=Ge(gm,"website"),jI=Ge(Sm,"widgets"),Us=Ge(Sm,"embedded-scripts"),Bs=Ge(jI,"custom-elements");function Om(t){return Ge(t,ks)}function Rm(t){return Ge(t,kI)}function YU(t){return Ge(Rm(t),"statics")}function KU(t){return Ge(t,UI)}function zU(t){return Ge(t,BI)}function XU(t){return Ge(Rm(t),"devcenter","app-manifest.json")}var GI=b.object({id:b.string(),label:b.string(),priority:b.number().int().optional()}),qI=b.object({sidebar:b.object({categories:b.array(GI).optional()}).optional()}),vm=b.object({appId:b.string().uuid(),projectId:b.string().optional(),sentryDSN:b.string().optional(),trusted:b.boolean().default(!1),dashboard:qI.optional()}).strict(),ZU=b.object({siteId:b.string().uuid().optional(),devArmTag:b.string().optional(),devSiteOverrideId:b.string().optional()}),HI=b.object({disabled:b.boolean().optional(),categoryId:b.string().uuid().optional(),priority:b.number().int().optional(),whenActive:b.object({selectedPageId:b.string().optional(),hideSidebar:b.boolean().optional()}).optional()}),Tm=b.object({id:b.string().uuid(),title:b.string(),additionalRoutes:b.array(b.string()).optional(),requiredPermission:b.string().optional(),sidebar:HI.optional(),sentryDSN:b.string().optional(),experiments:b.object({enabledBy:b.string()}).optional()}).strict(),Am=b.object({id:b.string().uuid(),title:b.string(),requiredPermission:b.string().optional(),width:b.number(),height:b.number(),containerId:b.string().uuid(),sentryDSN:b.string().optional()}),Im=b.object({id:b.string().uuid(),name:b.string(),scriptType:b.enum([ss.FUNCTIONAL,ss.ESSENTIAL,ss.ANALYTICS,ss.ADVERTISING]),placement:b.enum([Fs.HEAD,Fs.BODY_START,Fs.BODY_END])}),is=(0,so.variant)({Site:{},Editor:{},Dashboard:(0,so.fields)()}),Nm=b.object({id:b.string().uuid(),title:b.string(),stretchable:b.boolean().optional(),height:b.number().optional(),width:b.number().optional(),showPageInMenu:b.boolean().optional(),installation:b.object({autoAddToSite:b.boolean().optional(),essential:b.boolean().optional(),maxInstances:b.number().optional()}).optional()}),bm=b.record(b.string());h();var Cg=Re(wg(),1),Pg=Re(xn(),1);import{statSync as Ow}from"node:fs";import{access as Rw,readFile as vw,writeFile as Tw,mkdir as Aw,stat as Iw}from"node:fs/promises";import{dirname as Nw,join as bw}from"node:path";import{EOL as ww}from"node:os";async function G1(t,e,r){try{let s=JSON.stringify(e,null,r?.spaces).concat(ww);await Aw(Nw(t),{recursive:!0}),await Tw(t,s,"utf-8")}catch(s){throw new ie({code:ne.FailedToWriteJson({filePath:t,cause:s}),cause:s})}}async function Qt(t){let e=null;try{e=await vw(t,"utf-8")}catch(r){throw new ie({code:ne.FailedToReadJson({filePath:t,cause:r})})}try{return JSON.parse(e)}catch(r){throw new ie({code:ne.InvalidJsonFile({filePath:t,cause:r})})}}function Pr(t){return Rw(t).then(()=>!0).catch(()=>!1)}async function q1(t,e){if(!await Pr(t))throw new Pg.default({name:"PathNotFound"},`Folder not found at '${t}'`);let r=0,s=0;await(0,Cg.create)({strict:!0,gzip:!0,portable:!0,cwd:t,filter(n){let o=bw(t,n),a=Ow(o);return a.isFile()&&(r++,s+=a.size),!0},file:e},["."]);let i=(await Iw(e)).size/1024;return{fileCount:r,compressedSizeInKb:Math.round(i),uncompressedSizeInKb:Math.round(s/1024)}}async function Dg(){let t=await Qt(Pi),e=vm.safeParse(t);if(e.success)return e.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:Pi,zodError:e.error})})}h();h();import{join as yf}from"node:path";h();var jO=Re(yl(),1),ln=Re(af(),1),un=Re(OO(),1);import oL from"node:fs";import aL from"node:path";h();var _f=Re(af(),1),xO=Re(PO(),1);import rL from"node:process";import DO from"node:fs";import Ei from"node:path";h();function _i(t){let e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}h();import{fileURLToPath as eL}from"node:url";import{Transform as tL}from"node:stream";var cn=t=>t instanceof URL?eL(t):t,Ga=class extends tL{constructor(e){super({objectMode:!0,transform(r,s,i){i(void 0,e(r)?r:void 0)}})}},qa=t=>t[0]==="!";var LO={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},MO="**/.gitignore",sL=(t,e)=>qa(t)?"!"+Ei.posix.join(e,t.slice(1)):Ei.posix.join(e,t),iL=(t,e)=>{let r=_i(Ei.relative(e,Ei.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(s=>s&&!s.startsWith("#")).map(s=>sL(s,r))},nL=(t,e)=>{if(e=_i(e),Ei.isAbsolute(t)){if(_i(t).startsWith(e))return Ei.relative(e,t);throw new Error(`Path ${t} is not in cwd ${e}`)}return t},FO=(t,e)=>{let r=t.flatMap(i=>iL(i,e)),s=(0,xO.default)().add(r);return i=>(i=cn(i),i=nL(i,e),i?s.ignores(_i(i)):!1)},kO=(t={})=>({cwd:cn(t.cwd)||rL.cwd(),suppressErrors:!!t.suppressErrors,deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),UO=async(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=kO(e),n=await(0,_f.default)(t,{cwd:r,suppressErrors:s,deep:i,...LO}),o=await Promise.all(n.map(async a=>({filePath:a,content:await DO.promises.readFile(a,"utf8")})));return FO(o,r)},BO=(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=kO(e),o=_f.default.sync(t,{cwd:r,suppressErrors:s,deep:i,...LO}).map(a=>({filePath:a,content:DO.readFileSync(a,"utf8")}));return FO(o,r)};var cL=t=>{if(t.some(e=>typeof e!="string"))throw new TypeError("Patterns must be a string or an array of strings")},Ef=t=>(t=[...new Set([t].flat())],cL(t),t),uL=t=>{if(!t.cwd)return;let e;try{e=oL.statSync(t.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},GO=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:cn(t.cwd)},uL(t),t),qO=t=>async(e,r)=>t(Ef(e),GO(r)),Ha=t=>(e,r)=>t(Ef(e),GO(r)),HO=t=>{let{ignoreFiles:e,gitignore:r}=t,s=e?Ef(e):[];return r&&s.push(MO),s},lL=async t=>{let e=HO(t);return VO(e.length>0&&await UO(e,t))},WO=t=>{let e=HO(t);return VO(e.length>0&&BO(e,t))},VO=t=>{let e=new Set;return r=>{let s=r.path||r,i=aL.normalize(s),n=e.has(i)||t&&t(s);return e.add(i),!n}},$O=(t,e)=>t.flat().filter(r=>e(r)),hL=(t,e)=>(0,jO.default)(t).pipe(new Ga(r=>e(r))),YO=(t,e)=>{let r=[];for(;t.length>0;){let s=t.findIndex(n=>qa(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},KO=(t,e)=>({...e?{cwd:e}:{},...Array.isArray(t)?{files:t}:t}),zO=async(t,e)=>{let r=YO(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=KO(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,un.default)(c,n),(0,un.default)(u.ignore,o)]),{patterns:c,options:u}}))},gf=(t,e)=>{let r=YO(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=KO(i,s),o=s?{cwd:s}:void 0;return r.map(a=>{let{patterns:c,options:u}=a;return c=un.default.sync(c,n),u.ignore=un.default.sync(u.ignore,o),{patterns:c,options:u}})},gi=qO(async(t,e)=>{let[r,s]=await Promise.all([zO(t,e),lL(e)]),i=await Promise.all(r.map(n=>(0,ln.default)(n.patterns,n.options)));return $O(i,s)}),oH=Ha((t,e)=>{let r=gf(t,e),s=WO(e),i=r.map(n=>ln.default.sync(n.patterns,n.options));return $O(i,s)}),aH=Ha((t,e)=>{let r=gf(t,e),s=WO(e),i=r.map(n=>ln.default.stream(n.patterns,n.options));return hL(i,s)}),cH=Ha((t,e)=>t.some(r=>ln.default.isDynamicPattern(r,e))),uH=qO(zO),lH=Ha(gf);h();var Ur=Re(fr(),1),ke=(0,Ur.variant)({DashboardPage:(0,Ur.fields)(),DashboardWidget:(0,Ur.fields)(),DashboardSidebarCategory:(0,Ur.fields)(),EmbeddedScript:(0,Ur.fields)(),CustomElement:(0,Ur.fields)()});h();var hn=Re(fr(),1);h();import{dirname as ZO,join as XO,parse as fL,relative as dL,sep as QO}from"node:path";import{platform as pL}from"node:os";function yi(t,e){let{dir:r,name:s}=fL(t);return e!==""?XO(r,`${s}.${e}`):XO(r,s)}function JO(t,e){return`/${dL(Om(t),ZO(e)).split(QO).map(encodeURIComponent).join("/")}`}function eR(t){return ZO(t).split(QO).at(-1)}function Si(t){return pL()==="win32"?t.replace(/\\/g,"/"):t}async function tR(t){let e=yi(t,"json");if(!await Pr(e))throw new ie({code:ne.DashboardPageConfigNotFound({configPath:e})});let s=await Qt(e),i=Tm.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function rR(t){let e=yi(t,"json");if(!await Pr(e))throw new ie({code:ne.DashboardWidgetConfigNotFound({configPath:e})});let s=await Qt(e),i=Am.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}function mL(t){return`wix/html/dashboard-asset/${t}.html`}function IH(t){return new Map(t.components.filter(e=>(0,hn.isType)(e,ke.DashboardPage)||(0,hn.isType)(e,ke.DashboardWidget)).map(e=>[mL(e.id),e]))}function _L(t){return`wix/scripts/dashboard-asset/${t}.js`}function NH(t){return new Map(t.components.filter(e=>(0,hn.isType)(e,ke.DashboardPage)||(0,hn.isType)(e,ke.DashboardWidget)).map(e=>[_L(e.id),e]))}var EL=yf(ks,"**","page.{ts,tsx,js,jsx}"),gL=yf(Mi,"**","widget.{ts,tsx,js,jsx}");async function yL(t,e){let r=await tR(e);return ke.DashboardPage({...r,relativePath:e,route:JO(t,yf(t,e)),platforms:[is.Dashboard()]})}async function sR(t){let e=await gi(Si(EL),{cwd:t});return await Promise.all(e.map(s=>yL(t,s)))}async function SL(t){let e=await rR(t);return ke.DashboardWidget({...e,relativePath:t,platforms:[is.Dashboard()]})}async function iR(t){let e=await gi(Si(gL),{cwd:t});return await Promise.all(e.map(s=>SL(s)))}function nR(t){return t.dashboard?.sidebar?.categories?.map(e=>ke.DashboardSidebarCategory({...e,platforms:[]}))||[]}h();import{dirname as zL,join as pn}from"node:path";h();import{join as OL,dirname as RL}from"node:path";var Wa=Re(fr(),1);async function oR(t){let e=yi(t,"json");if(!await Pr(e))throw new ie({code:ne.EmbeddedScriptConfigNotFound({configPath:e})});let s=await Qt(e),i=Im.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function aR(t){let e=yi(t,"json");if(!await Pr(e))throw new ie({code:ne.CustomElementConfigNotFound({configPath:e})});let s=await Qt(e),i=Nm.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}function vL(t){return`wix/html/custom-element-asset/${t}.html`}function TL(t){return`wix/scripts/custom-element-asset/panel-${t}.js`}function AL(t){return`wix/scripts/custom-element-asset/${t}.js`}function WH(t){return new Map(t.components.filter(e=>(0,Wa.isType)(e,ke.CustomElement)).map(e=>[vL(e.id),e]))}function VH(t){return new Map(t.components.filter(e=>(0,Wa.isType)(e,ke.CustomElement)).map(e=>[AL(e.id),e]))}function $H(t){return new Map(t.components.filter(e=>(0,Wa.isType)(e,ke.CustomElement)).map(e=>[TL(e.id),e]))}async function cR(t){let e=OL(RL(t),"params.dev.json");if(!await Pr(e))return null;let s=await Qt(e),i=bm.safeParse(s);if(i.success)return i.data||null;throw new ie({code:ne.InvalidParamsOverrideSchemaError({paramsOverridePath:e,zodError:i.error})})}h();var IL=/^[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])*$/,NL=function(t){return IL.test(t)},bL=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),wL=t=>{if(!t)return"Missing element name.";if(/[A-Z]/.test(t))return"Custom element names must not contain uppercase ASCII characters.";if(!t.includes("-"))return"Custom element names must contain a hyphen. Example: unicorn-cake";if(/^\d/i.test(t))return"Custom element names must not start with a digit.";if(/^-/i.test(t))return"Custom element names must not start with a hyphen.";if(!NL(t))return"Invalid element name.";if(bL.has(t))return`The supplied element name is reserved and can't be used.
9
- See: https://html.spec.whatwg.org/multipage/scripting.html#valid-custom-element-name`},CL=t=>{if(/^polymer-/i.test(t))return"Custom element names should not start with `polymer-`.\nSee: http://webcomponents.github.io/articles/how-should-i-name-my-element";if(/^x-/i.test(t))return"Custom element names should not start with `x-`.\nSee: http://webcomponents.github.io/articles/how-should-i-name-my-element/";if(/^ng-/i.test(t))return"Custom element names should not start with `ng-`.\nSee: http://docs.angularjs.org/guide/directive#creating-directives";if(/^xml/i.test(t))return"Custom element names should not start with `xml`.";if(/^[^a-z]/i.test(t))return"This element name is only valid in XHTML, not in HTML. First character should be in the range a-z.";if(t.endsWith("-"))return"Custom element names should not end with a hyphen.";if(/\./.test(t))return"Custom element names should not contain a dot character as it would need to be escaped in a CSS selector.";if(/[^\u0020-\u007E]/.test(t))return"Custom element names should not contain non-ASCII characters.";if(/--/.test(t))return"Custom element names should not contain consecutive hyphens.";if(/[^a-z\d]{2}/i.test(t))return"Custom element names should not contain consecutive non-alpha characters."};function uR(t){let e=wL(t);return e?{isValid:!1,errorMessage:e}:{isValid:!0,warningMessage:CL(t)}}h();h();var PL=Object.prototype.toString,Ri=Array.isArray||function(e){return PL.call(e)==="[object Array]"};function Of(t){return typeof t=="function"}function DL(t){return Ri(t)?"array":typeof t}function Sf(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function lR(t,e){return t!=null&&typeof t=="object"&&e in t}function xL(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var LL=RegExp.prototype.test;function ML(t,e){return LL.call(t,e)}var FL=/\S/;function kL(t){return!ML(FL,t)}var UL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function BL(t){return String(t).replace(/[&<>"'`=\/]/g,function(r){return UL[r]})}var jL=/\s*/,GL=/\s+/,hR=/\s*=/,qL=/\s*\}/,HL=/#|\^|\/|>|\{|&|=|!/;function WL(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(GL,2)),!Ri(D)||D.length!==2)throw new Error("Invalid tags: "+D);f=new RegExp(Sf(D[0])+"\\s*"),d=new RegExp("\\s*"+Sf(D[1])),E=new RegExp("\\s*"+Sf("}"+D[1]))}g(e||ft.tags);for(var y=new dn(t),T,A,L,$,de,k;!y.eos();){if(T=y.pos,L=y.scanUntil(f),L)for(var j=0,U=L.length;j<U;++j)$=L.charAt(j),kL($)?(n.push(i.length),c+=$):(a=!0,r=!0,c+=" "),i.push(["text",$,T,T+1]),T+=1,$===`
10
- `&&(l(),c="",u=0,r=!1);if(!y.scan(f))break;if(o=!0,A=y.scan(HL)||"name",y.scan(jL),A==="="?(L=y.scanUntil(hR),y.scan(hR),y.scanUntil(d)):A==="{"?(L=y.scanUntil(E),y.scan(qL),y.scanUntil(d),A="&"):L=y.scanUntil(d),!y.scan(d))throw new Error("Unclosed tag at "+y.pos);if(A==">"?de=[A,L,T,y.pos,c,u,r]:de=[A,L,T,y.pos],u++,i.push(de),A==="#"||A==="^")s.push(de);else if(A==="/"){if(k=s.pop(),!k)throw new Error('Unopened section "'+L+'" at '+T);if(k[1]!==L)throw new Error('Unclosed section "'+k[1]+'" at '+T)}else A==="name"||A==="{"||A==="&"?a=!0:A==="="&&g(L)}if(l(),k=s.pop(),k)throw new Error('Unclosed section "'+k[1]+'" at '+y.pos);return $L(VL(i))}function VL(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 $L(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 dn(t){this.string=t,this.tail=t,this.pos=0}dn.prototype.eos=function(){return this.tail===""};dn.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};dn.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 Oi(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Oi.prototype.push=function(e){return new Oi(e,this)};Oi.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=lR(n,o[a])||xL(n,o[a])),n=n[o[a++]];else n=i.view[e],c=lR(i.view,e);if(c){s=n;break}i=i.parent}r[e]=s}return Of(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||ft.tags).join(":"),n=typeof s<"u",o=n?s.get(i):void 0;return o==null&&(o=WL(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 Oi?r:new Oi(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(Ri(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(Of(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||Ri(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(`
3
+ import{a as v,c as _,e as Re,h}from"./chunk-HFDLXX7R.js";var ud=_((uk,cd)=>{"use strict";h();var wn=v("assert"),cT=v("stream").Stream,uT=v("util"),lT=/^[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 ac(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ir(t,e,r,s,i){throw new wn.AssertionError({message:uT.format("%s (%s) is required",t,e),actual:i===void 0?typeof s:i(s),expected:e,operator:r||"===",stackStartFunction:ir.caller})}function cc(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ts(){}var bi={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 cT},operator:"instanceof",actual:cc},date:{check:function(t){return t instanceof Date},operator:"instanceof",actual:cc},regexp:{check:function(t){return t instanceof RegExp},operator:"instanceof",actual:cc},uuid:{check:function(t){return typeof t=="string"&&lT.test(t)},operator:"isUUID"}};function ad(t){var e=Object.keys(bi),r;return process.env.NODE_NDEBUG?r=Ts:r=function(s,i){s||ir(i,"true",s)},e.forEach(function(s){if(t){r[s]=Ts;return}var i=bi[s];r[s]=function(n,o){i.check(n)||ir(o,s,i.operator,n,i.actual)}}),e.forEach(function(s){var i="optional"+ac(s);if(t){r[i]=Ts;return}var n=bi[s];r[i]=function(o,a){o!=null&&(n.check(o)||ir(a,s,n.operator,o,n.actual))}}),e.forEach(function(s){var i="arrayOf"+ac(s);if(t){r[i]=Ts;return}var n=bi[s],o="["+s+"]";r[i]=function(a,c){Array.isArray(a)||ir(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||ir(c,o,n.operator,a,n.actual)}}),e.forEach(function(s){var i="optionalArrayOf"+ac(s);if(t){r[i]=Ts;return}var n=bi[s],o="["+s+"]";r[i]=function(a,c){if(a!=null){Array.isArray(a)||ir(c,o,n.operator,a,n.actual);var u;for(u=0;u<a.length;u++)n.check(a[u])||ir(c,o,n.operator,a,n.actual)}}}),Object.keys(wn).forEach(function(s){if(s==="AssertionError"){r[s]=wn[s];return}if(t){r[s]=Ts;return}r[s]=wn[s]}),r._setExports=ad,r}cd.exports=ad(process.env.NODE_NDEBUG)});var fd=_(Cn=>{"use strict";h();var Ci=v("assert"),hT=v("util");Cn.sprintf=lc;Cn.printf=fT;Cn.fprintf=ld;function lc(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,T=0,A,L;for(Ci.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),L=E[0].substring(E[1].length),A=T+E[1].length+1,T+=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 wi(t,A,L,"has no matching argument (too few arguments passed)");if(d=s.shift(),y++,n.match(/[\' #]/))throw wi(t,A,L,"uses unsupported flags");if(a.length>0)throw wi(t,A,L,"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 wi(t,A,L,"attempted to print undefined or null as a string (argument "+y+" to sprintf)");g+=uc(l,o,u,d.toString());break;case"d":d=Math.floor(d);case"f":f=f&&d>0?"+":"",g+=f+uc(l,o,u,d.toString());break;case"x":g+=uc(l,o,u,d.toString(16));break;case"j":o===0&&(o=10),g+=hT.inspect(d,!1,o);break;case"r":g+=hd(d);break;default:throw wi(t,A,L,"is not supported")}}return g+=i,g}function wi(t,e,r,s){return Ci.equal(typeof t,"string"),Ci.equal(typeof r,"string"),Ci.equal(typeof e,"number"),Ci.equal(typeof s,"string"),new Error('format string "'+t+'": conversion specifier "'+r+'" at character '+e+" "+s)}function fT(){var t=Array.prototype.slice.call(arguments);t.unshift(process.stdout),ld.apply(null,t)}function ld(t){var e=Array.prototype.slice.call(arguments,1);return t.write(lc.apply(this,e))}function uc(t,e,r,s){for(var i=s;i.length<e;)r?i+=t:i=t+i;return i}function hd(t){var e;if(!(t instanceof Error))throw new Error(lc("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: `+hd(r))}return e}});var dd=_(Ce=>{"use strict";h();function dT(t){return Array.isArray?Array.isArray(t):Pn(t)==="[object Array]"}Ce.isArray=dT;function pT(t){return typeof t=="boolean"}Ce.isBoolean=pT;function mT(t){return t===null}Ce.isNull=mT;function _T(t){return t==null}Ce.isNullOrUndefined=_T;function ET(t){return typeof t=="number"}Ce.isNumber=ET;function gT(t){return typeof t=="string"}Ce.isString=gT;function yT(t){return typeof t=="symbol"}Ce.isSymbol=yT;function ST(t){return t===void 0}Ce.isUndefined=ST;function OT(t){return Pn(t)==="[object RegExp]"}Ce.isRegExp=OT;function RT(t){return typeof t=="object"&&t!==null}Ce.isObject=RT;function vT(t){return Pn(t)==="[object Date]"}Ce.isDate=vT;function TT(t){return Pn(t)==="[object Error]"||t instanceof Error}Ce.isError=TT;function AT(t){return typeof t=="function"}Ce.isFunction=AT;function IT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ce.isPrimitive=IT;Ce.isBuffer=Buffer.isBuffer;function Pn(t){return Object.prototype.toString.call(t)}});var xn=_((mk,pd)=>{"use strict";h();var ge=ud(),Dn=v("util"),NT=fd(),dt=dd().isError,bT=NT.sprintf;pd.exports=X;X.VError=X;X.SError=Pi;X.WError=nr;X.MultiError=As;function hc(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(dt(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=bT.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=hc({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(dt(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}Dn.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(dt(t),"err must be an Error"),dt(t.jse_cause)?t.jse_cause:null};X.info=function(t){var e,r,s;if(ge.ok(dt(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(dt(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(dt(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(dt(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(dt(e))}),t.length==1?t[0]:new As(t))};X.errorForEach=function(t,e){ge.ok(dt(t),"err must be an Error"),ge.func(e,"func"),t instanceof As?t.errors().forEach(function(s){e(s)}):e(t)};function Pi(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof Pi?(r=hc({argv:t,strict:!0}),s=r.options,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(Pi.prototype),Pi.apply(e,arguments),e)}Dn.inherits(Pi,X);function As(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")}Dn.inherits(As,X);As.prototype.name="MultiError";As.prototype.errors=function(){return this.ase_errors.slice(0)};function nr(){var t,e,r,s;return t=Array.prototype.slice.call(arguments,0),this instanceof nr?(r=hc({argv:t,strict:!1}),s=r.options,s.skipCauseMessage=!0,X.call(this,s,"%s",r.shortmessage),this):(e=Object.create(nr.prototype),nr.apply(e,t),e)}Dn.inherits(nr,X);nr.prototype.name="WError";nr.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};nr.prototype.cause=function(e){return dt(e)&&(this.jse_cause=e),this.jse_cause}});var fc=_(Ln=>{"use strict";h();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.isTypeImpl=void 0;function CT(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}}Ln.isTypeImpl=CT});var dc=_(or=>{"use strict";h();Object.defineProperty(or,"__esModule",{value:!0});or.HOI=or.isPromise=or.identityFunc=void 0;var PT=(t={})=>t;or.identityFunc=PT;function DT(t){return t!=null&&typeof t=="object"&&"then"in t&&typeof t.then=="function"}or.isPromise=DT;var xT=()=>t=>t;or.HOI=xT});var ar=_(Mt=>{"use strict";h();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.variantImpl=Mt.isVariantCreator=Mt.scopeType=void 0;var Mn=dc(),LT=(t,e)=>`${t}/${e}`;Mt.scopeType=LT;function MT(t){var e;return(e=t.split("/")[1])!==null&&e!==void 0?e:t}var pc=Symbol("Variant Creator");function _d(t){return pc in t}Mt.isVariantCreator=_d;function FT(t){function e(a,c){return Object.keys(c).reduce((u,l)=>Object.assign(Object.assign({},u),{[l]:s(Mt.scopeType(a,l),typeof c[l]=="function"?c[l]:Mn.identityFunc)}),{})}function r(a){return Object.assign(Object.assign({},a),{[t]:MT(a[t])})}function s(a,c){let u=(...f)=>{let d=(c??Mn.identityFunc)(...f);return Mn.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}},{[pc]:pc,toString:function(){return this.output.type}})}function i(a){return Object.entries(a).reduce((c,[u,l])=>{let f=typeof l=="function"?_d(l)?l:s(u,l):s(u,Mn.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}}Mt.variantImpl=FT});var Ed=_(Fn=>{"use strict";h();Object.defineProperty(Fn,"__esModule",{value:!0});Fn.DEFAULT_KEY=void 0;Fn.DEFAULT_KEY="default"});var mc=_(kn=>{"use strict";h();Object.defineProperty(kn,"__esModule",{value:!0});kn.matchImpl=void 0;var kT=ar(),gd=Ed();function UT(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,T=g==null?void 0:kT.isVariantCreator(g)?g.output.type:g[t];if(g!=null&&T!==void 0&&T in y)return(l=y[T])===null||l===void 0?void 0:l.call(y,g);if(gd.DEFAULT_KEY in y)return(f=y[gd.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}}kn.matchImpl=UT});var yd=_(Un=>{"use strict";h();Object.defineProperty(Un,"__esModule",{value:!0});Un.typesImpl=void 0;var BT=ar();function jT(t){function e(s){return Array.isArray(s)?s.length&&BT.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}}Un.typesImpl=jT});var _c=_(Bn=>{"use strict";h();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.flagsImpl=void 0;function GT(t){function e(r){return r.reduce((s,i)=>Object.assign(Object.assign({},s),{[i[t]]:i}),Object.create(null))}return{flags:e}}Bn.flagsImpl=GT});var Sd=_(jn=>{"use strict";h();Object.defineProperty(jn,"__esModule",{value:!0});jn.isOfVariantImpl=void 0;function qT(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}}jn.isOfVariantImpl=qT});var Od=_(Gr=>{"use strict";h();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.remoteImpl=Gr.CompareResult=void 0;var HT=fc(),WT=mc(),VT=ar(),$T;(function(t){t[t.Lesser=-1]="Lesser",t[t.Equal=0]="Equal",t[t.Greater=1]="Greater"})($T=Gr.CompareResult||(Gr.CompareResult={}));function YT(t){let{isType:e}=HT.isTypeImpl(t),{match:r}=WT.matchImpl(t),{variantList:s}=VT.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,T)=>{let A=g.findIndex(de=>de===o(y)),L=g.findIndex(de=>de===o(T)),$=A-L;return $===0?$:$/Math.abs($)},get(y){let T=this.types[y];return this.new[T]},index:y=>g.findIndex(T=>T===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}}Gr.remoteImpl=YT});var Ec=_(qr=>{"use strict";h();Object.defineProperty(qr,"__esModule",{value:!0});qr.typedImpl=qr.pass=void 0;var KT=t=>t;qr.pass=KT;function zT(t){function e(r){return typeof r=="function"?r(qr.pass):r}return{typed:e}}qr.typedImpl=zT});var gc=_(cr=>{"use strict";h();Object.defineProperty(cr,"__esModule",{value:!0});cr.unpack=cr.just=cr.constant=void 0;function Rd(t){return()=>t}cr.constant=Rd;cr.just=Rd;var XT=t=>t.payload;cr.unpack=XT});var vd=_(ur=>{"use strict";h();Object.defineProperty(ur,"__esModule",{value:!0});ur.matcherImpl=ur.Matcher=ur.tableToHandler=void 0;var ZT=gc(),QT=ar();function yc(t){return Object.keys(t).reduce((e,r)=>{let s=r;return Object.assign(Object.assign({},e),{[s]:ZT.just(t[s])})},{})}ur.tableToHandler=yc;var Gn=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),yc(e));return new t(this.target,this.key,r)}lookup(e){var r;let s=Object.assign(Object.assign({},this.handler),yc(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:QT.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))}};ur.Matcher=Gn;function JT(t){function e(r){let s=typeof r=="string"?{[t]:r}:r;return new Gn(s,t,{})}return{matcher:e}}ur.matcherImpl=JT});var Sc=_(qn=>{"use strict";h();Object.defineProperty(qn,"__esModule",{value:!0});qn.variantCosmos=void 0;var eA=fc(),tA=mc(),rA=ar(),sA=yd(),iA=_c(),nA=Sd(),oA=Od(),aA=Ec(),cA=vd();function uA({key:t}){let{isType:e}=eA.isTypeImpl(t),{flags:r}=iA.flagsImpl(t);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:t,isType:e,flags:r},nA.isOfVariantImpl(t)),tA.matchImpl(t)),cA.matcherImpl(t)),oA.remoteImpl(t)),aA.typedImpl(t)),sA.typesImpl(t)),rA.variantImpl(t))}qn.variantCosmos=uA});var Oc=_(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 lA=Sc();he=lA.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 Td=_(Hn=>{"use strict";h();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.augment=void 0;var hA=Oc(),fA=ar();function dA(t,e){return Object.keys(t).reduce((r,s)=>{let i=t[s],n=fA.isVariantCreator(i)?hA.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})},{})}Hn.augment=dA});var Ad=_(Wn=>{"use strict";h();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.constrained=void 0;function pA(t,e){return e}Wn.constrained=pA});var Id=_(Vn=>{"use strict";h();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.construct=void 0;function mA(t){return(...e)=>new t(e)}Vn.construct=mA});var bd=_(Hr=>{"use strict";h();Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Alpha=Hr.onTerms=void 0;var _A=_c(),EA=ar(),gA=Symbol("VARIANT GENERIC TEMPLATE");function yA(t){return Object.assign(Object.assign({},t(Hr.Alpha)),{[gA]:void 0})}Hr.onTerms=yA;var Nd="__term",SA=EA.variantImpl(Nd).variant,OA=_A.flagsImpl(Nd).flags,RA=SA(["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"]);Hr.Alpha=OA(Object.values(RA).map(t=>t()))});var wd=_(Is=>{"use strict";h();Object.defineProperty(Is,"__esModule",{value:!0});Is.typeMap=Is.typeCatalog=void 0;function vA(t){return Object.values(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r.output.type]:r.output.type}),{})}Is.typeCatalog=vA;function TA(t){return Object.keys(t).reduce((e,r)=>Object.assign(Object.assign({},e),{[r]:t[r].output.type}),{})}Is.typeMap=TA});var Pd=_(Ns=>{"use strict";h();Object.defineProperty(Ns,"__esModule",{value:!0});Ns.literalist=Ns.catalog=void 0;function Cd(t,e){return Array.isArray(t)?t.reduce((r,s,i)=>Object.assign(Object.assign({},r),{[s]:e!=null?e(s,i):s}),{}):t}Ns.catalog=Cd;Ns.literalist=Cd});var Dd=_($n=>{"use strict";h();Object.defineProperty($n,"__esModule",{value:!0});$n.patterned=void 0;function AA(t,e){return e}$n.patterned=AA});var xd=_(lr=>{"use strict";h();Object.defineProperty(lr,"__esModule",{value:!0});lr.nil=lr.payload=lr.fields=void 0;function IA(t={}){return(...e)=>{let[r]=e;return Object.assign(Object.assign({},t),r)}}lr.fields=IA;function NA(t){return e=>({payload:e})}lr.payload=NA;var bA=()=>({});lr.nil=bA});var Fd=_(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 wA=Td();Object.defineProperty(K,"augment",{enumerable:!0,get:function(){return wA.augment}});var CA=Ad();Object.defineProperty(K,"constrained",{enumerable:!0,get:function(){return CA.constrained}});var PA=Id();Object.defineProperty(K,"construct",{enumerable:!0,get:function(){return PA.construct}});var DA=Sc();Object.defineProperty(K,"variantCosmos",{enumerable:!0,get:function(){return DA.variantCosmos}});var xA=bd();Object.defineProperty(K,"onTerms",{enumerable:!0,get:function(){return xA.onTerms}});var Ld=wd();Object.defineProperty(K,"typeMap",{enumerable:!0,get:function(){return Ld.typeMap}});Object.defineProperty(K,"typeCatalog",{enumerable:!0,get:function(){return Ld.typeCatalog}});var Md=Pd();Object.defineProperty(K,"catalog",{enumerable:!0,get:function(){return Md.catalog}});Object.defineProperty(K,"literalist",{enumerable:!0,get:function(){return Md.literalist}});var Rc=gc();Object.defineProperty(K,"constant",{enumerable:!0,get:function(){return Rc.constant}});Object.defineProperty(K,"just",{enumerable:!0,get:function(){return Rc.just}});Object.defineProperty(K,"unpack",{enumerable:!0,get:function(){return Rc.unpack}});var LA=Dd();Object.defineProperty(K,"patterned",{enumerable:!0,get:function(){return LA.patterned}});var MA=Ec();Object.defineProperty(K,"pass",{enumerable:!0,get:function(){return MA.pass}});var FA=dc();Object.defineProperty(K,"HOI",{enumerable:!0,get:function(){return FA.HOI}});var vc=xd();Object.defineProperty(K,"fields",{enumerable:!0,get:function(){return vc.fields}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return vc.nil}});Object.defineProperty(K,"payload",{enumerable:!0,get:function(){return vc.payload}})});var fr=_(hr=>{"use strict";h();var kA=hr&&hr.__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]}),kd=hr&&hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kA(e,t,r)};Object.defineProperty(hr,"__esModule",{value:!0});kd(Fd(),hr);kd(Oc(),hr)});var Gs=_((ZU,Cm)=>{"use strict";h();var wm=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"]]);Cm.exports=t=>t?Object.keys(t).map(e=>[wm.has(e)?wm.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var lo=_(jm=>{"use strict";h();var Pm=typeof process=="object"&&process?process:{stdout:null,stderr:null},YI=v("events"),Dm=v("stream"),KI=v("string_decoder"),xm=KI.StringDecoder,Bt=Symbol("EOF"),jt=Symbol("maybeEmitEnd"),Er=Symbol("emittedEnd"),io=Symbol("emittingEnd"),Fi=Symbol("emittedError"),no=Symbol("closed"),Lm=Symbol("read"),oo=Symbol("flush"),Mm=Symbol("flushChunk"),We=Symbol("encoding"),Gt=Symbol("decoder"),ao=Symbol("flowing"),ki=Symbol("paused"),qs=Symbol("resume"),me=Symbol("buffer"),Tt=Symbol("pipes"),ve=Symbol("bufferLength"),Pc=Symbol("bufferPush"),Dc=Symbol("bufferShift"),we=Symbol("objectMode"),_e=Symbol("destroyed"),xc=Symbol("error"),Lc=Symbol("emitData"),Fm=Symbol("emitEnd"),Mc=Symbol("emitEnd2"),qt=Symbol("async"),Fc=Symbol("abort"),co=Symbol("aborted"),ns=Symbol("signal"),Ui=t=>Promise.resolve().then(t),Bm=global._MP_NO_ITERATOR_SYMBOLS_!=="1",km=Bm&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Um=Bm&&Symbol.iterator||Symbol("iterator not implemented"),zI=t=>t==="end"||t==="finish"||t==="prefinish",XI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,ZI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),uo=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[qs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},kc=class extends uo{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)}},Uc=class t extends Dm{constructor(e){super(),this[ao]=!1,this[ki]=!1,this[Tt]=[],this[me]=[],this[we]=e&&e.objectMode||!1,this[we]?this[We]=null:this[We]=e&&e.encoding||null,this[We]==="buffer"&&(this[We]=null),this[qt]=e&&!!e.async||!1,this[Gt]=this[We]?new xm(this[We]):null,this[Bt]=!1,this[Er]=!1,this[io]=!1,this[no]=!1,this[Fi]=null,this.writable=!0,this.readable=!0,this[ve]=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[Tt]}),this[ns]=e&&e.signal,this[co]=!1,this[ns]&&(this[ns].addEventListener("abort",()=>this[Fc]()),this[ns].aborted&&this[Fc]())}get bufferLength(){return this[ve]}get encoding(){return this[We]}set encoding(e){if(this[we])throw new Error("cannot set encoding in objectMode");if(this[We]&&e!==this[We]&&(this[Gt]&&this[Gt].lastNeed||this[ve]))throw new Error("cannot change encoding");this[We]!==e&&(this[Gt]=e?new xm(e):null,this[me].length&&(this[me]=this[me].map(r=>this[Gt].write(r)))),this[We]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[we]}set objectMode(e){this[we]=this[we]||!!e}get async(){return this[qt]}set async(e){this[qt]=this[qt]||!!e}[Fc](){this[co]=!0,this.emit("abort",this[ns].reason),this.destroy(this[ns].reason)}get aborted(){return this[co]}set aborted(e){}write(e,r,s){if(this[co])return!1;if(this[Bt])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[qt]?Ui:n=>n();return!this[we]&&!Buffer.isBuffer(e)&&(ZI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):XI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[we]?(this.flowing&&this[ve]!==0&&this[oo](!0),this.flowing?this.emit("data",e):this[Pc](e),this[ve]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[We]&&!this[Gt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[We]&&(e=this[Gt].write(e)),this.flowing&&this[ve]!==0&&this[oo](!0),this.flowing?this.emit("data",e):this[Pc](e),this[ve]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[ve]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[_e])return null;if(this[ve]===0||e===0||e>this[ve])return this[jt](),null;this[we]&&(e=null),this[me].length>1&&!this[we]&&(this.encoding?this[me]=[this[me].join("")]:this[me]=[Buffer.concat(this[me],this[ve])]);let r=this[Lm](e||null,this[me][0]);return this[jt](),r}[Lm](e,r){return e===r.length||e===null?this[Dc]():(this[me][0]=r.slice(e),r=r.slice(0,e),this[ve]-=e),this.emit("data",r),!this[me].length&&!this[Bt]&&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[Bt]=!0,this.writable=!1,(this.flowing||!this[ki])&&this[jt](),this}[qs](){this[_e]||(this[ki]=!1,this[ao]=!0,this.emit("resume"),this[me].length?this[oo]():this[Bt]?this[jt]():this.emit("drain"))}resume(){return this[qs]()}pause(){this[ao]=!1,this[ki]=!0}get destroyed(){return this[_e]}get flowing(){return this[ao]}get paused(){return this[ki]}[Pc](e){this[we]?this[ve]+=1:this[ve]+=e.length,this[me].push(e)}[Dc](){return this[we]?this[ve]-=1:this[ve]-=this[me][0].length,this[me].shift()}[oo](e){do;while(this[Mm](this[Dc]())&&this[me].length);!e&&!this[me].length&&!this[Bt]&&this.emit("drain")}[Mm](e){return this.emit("data",e),this.flowing}pipe(e,r){if(this[_e])return;let s=this[Er];return r=r||{},e===Pm.stdout||e===Pm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this[Tt].push(r.proxyErrors?new kc(this,e,r):new uo(this,e,r)),this[qt]?Ui(()=>this[qs]()):this[qs]()),e}unpipe(e){let r=this[Tt].find(s=>s.dest===e);r&&(this[Tt].splice(this[Tt].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[Tt].length&&!this.flowing?this[qs]():e==="readable"&&this[ve]!==0?super.emit("readable"):zI(e)&&this[Er]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Fi]&&(this[qt]?Ui(()=>r.call(this,this[Fi])):r.call(this,this[Fi])),s}get emittedEnd(){return this[Er]}[jt](){!this[io]&&!this[Er]&&!this[_e]&&this[me].length===0&&this[Bt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...s){if(e!=="error"&&e!=="close"&&e!==_e&&this[_e])return;if(e==="data")return!this[we]&&!r?!1:this[qt]?Ui(()=>this[Lc](r)):this[Lc](r);if(e==="end")return this[Fm]();if(e==="close"){if(this[no]=!0,!this[Er]&&!this[_e])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Fi]=r,super.emit(xc,r);let n=!this[ns]||this.listeners("error").length?super.emit("error",r):!1;return this[jt](),n}else if(e==="resume"){let n=super.emit("resume");return this[jt](),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[jt](),i}[Lc](e){for(let s of this[Tt])s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[jt](),r}[Fm](){this[Er]||(this[Er]=!0,this.readable=!1,this[qt]?Ui(()=>this[Mc]()):this[Mc]())}[Mc](){if(this[Gt]){let r=this[Gt].end();if(r){for(let s of this[Tt])s.dest.write(r);super.emit("data",r)}}for(let r of this[Tt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[we]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[we]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[we]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[we]?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(_e,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[km](){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[Bt])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[Bt]})},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,[km](){return this}}}[Um](){let e=!1,r=()=>(this.pause(),this.removeListener(xc,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(xc,r),this.once(_e,r),{next:s,throw:r,return:r,[Um](){return this}}}destroy(e){return this[_e]?(e?this.emit("error",e):this.emit(_e),this):(this[_e]=!0,this[me].length=0,this[ve]=0,typeof this.close=="function"&&!this[no]&&this.close(),e?this.emit("error",e):this.emit(_e),this)}static isStream(e){return!!e&&(e instanceof t||e instanceof Dm||e instanceof YI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};jm.Minipass=Uc});var qm=_((tB,Gm)=>{"use strict";h();var QI=v("zlib").constants||{ZLIB_VERNUM:4736};Gm.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},QI))});var Wc=_((sB,Zm)=>{"use strict";h();var Hm=typeof process=="object"&&process?process:{stdout:null,stderr:null},JI=v("events"),Wm=v("stream"),Vm=v("string_decoder").StringDecoder,Ht=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),gr=Symbol("emittedEnd"),ho=Symbol("emittingEnd"),Bi=Symbol("emittedError"),fo=Symbol("closed"),$m=Symbol("read"),po=Symbol("flush"),Ym=Symbol("flushChunk"),Ve=Symbol("encoding"),Vt=Symbol("decoder"),mo=Symbol("flowing"),ji=Symbol("paused"),Hs=Symbol("resume"),Te=Symbol("bufferLength"),Bc=Symbol("bufferPush"),jc=Symbol("bufferShift"),De=Symbol("objectMode"),xe=Symbol("destroyed"),Gc=Symbol("emitData"),Km=Symbol("emitEnd"),qc=Symbol("emitEnd2"),$t=Symbol("async"),Gi=t=>Promise.resolve().then(t),zm=global._MP_NO_ITERATOR_SYMBOLS_!=="1",eN=zm&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),tN=zm&&Symbol.iterator||Symbol("iterator not implemented"),rN=t=>t==="end"||t==="finish"||t==="prefinish",sN=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,iN=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),_o=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[Hs](),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 _o{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)}};Zm.exports=class Xm extends Wm{constructor(e){super(),this[mo]=!1,this[ji]=!1,this.pipes=[],this.buffer=[],this[De]=e&&e.objectMode||!1,this[De]?this[Ve]=null:this[Ve]=e&&e.encoding||null,this[Ve]==="buffer"&&(this[Ve]=null),this[$t]=e&&!!e.async||!1,this[Vt]=this[Ve]?new Vm(this[Ve]):null,this[Ht]=!1,this[gr]=!1,this[ho]=!1,this[fo]=!1,this[Bi]=null,this.writable=!0,this.readable=!0,this[Te]=0,this[xe]=!1}get bufferLength(){return this[Te]}get encoding(){return this[Ve]}set encoding(e){if(this[De])throw new Error("cannot set encoding in objectMode");if(this[Ve]&&e!==this[Ve]&&(this[Vt]&&this[Vt].lastNeed||this[Te]))throw new Error("cannot change encoding");this[Ve]!==e&&(this[Vt]=e?new Vm(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Vt].write(r)))),this[Ve]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[De]}set objectMode(e){this[De]=this[De]||!!e}get async(){return this[$t]}set async(e){this[$t]=this[$t]||!!e}write(e,r,s){if(this[Ht])throw new Error("write after end");if(this[xe])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[$t]?Gi:n=>n();return!this[De]&&!Buffer.isBuffer(e)&&(iN(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):sN(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[De]?(this.flowing&&this[Te]!==0&&this[po](!0),this.flowing?this.emit("data",e):this[Bc](e),this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ve]&&!this[Vt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ve]&&(e=this[Vt].write(e)),this.flowing&&this[Te]!==0&&this[po](!0),this.flowing?this.emit("data",e):this[Bc](e),this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing):(this[Te]!==0&&this.emit("readable"),s&&i(s),this.flowing)}read(e){if(this[xe])return null;if(this[Te]===0||e===0||e>this[Te])return this[Wt](),null;this[De]&&(e=null),this.buffer.length>1&&!this[De]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Te])]);let r=this[$m](e||null,this.buffer[0]);return this[Wt](),r}[$m](e,r){return e===r.length||e===null?this[jc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Te]-=e),this.emit("data",r),!this.buffer.length&&!this[Ht]&&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[Ht]=!0,this.writable=!1,(this.flowing||!this[ji])&&this[Wt](),this}[Hs](){this[xe]||(this[ji]=!1,this[mo]=!0,this.emit("resume"),this.buffer.length?this[po]():this[Ht]?this[Wt]():this.emit("drain"))}resume(){return this[Hs]()}pause(){this[mo]=!1,this[ji]=!0}get destroyed(){return this[xe]}get flowing(){return this[mo]}get paused(){return this[ji]}[Bc](e){this[De]?this[Te]+=1:this[Te]+=e.length,this.buffer.push(e)}[jc](){return this.buffer.length&&(this[De]?this[Te]-=1:this[Te]-=this.buffer[0].length),this.buffer.shift()}[po](e){do;while(this[Ym](this[jc]()));!e&&!this.buffer.length&&!this[Ht]&&this.emit("drain")}[Ym](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[xe])return;let s=this[gr];return r=r||{},e===Hm.stdout||e===Hm.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,s?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Hc(this,e,r):new _o(this,e,r)),this[$t]?Gi(()=>this[Hs]()):this[Hs]()),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[Hs]():e==="readable"&&this[Te]!==0?super.emit("readable"):rN(e)&&this[gr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Bi]&&(this[$t]?Gi(()=>r.call(this,this[Bi])):r.call(this,this[Bi])),s}get emittedEnd(){return this[gr]}[Wt](){!this[ho]&&!this[gr]&&!this[xe]&&this.buffer.length===0&&this[Ht]&&(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!==xe&&this[xe])return;if(e==="data")return r?this[$t]?Gi(()=>this[Gc](r)):this[Gc](r):!1;if(e==="end")return this[Km]();if(e==="close"){if(this[fo]=!0,!this[gr]&&!this[xe])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Bi]=r;let n=super.emit("error",r);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}[Gc](e){for(let s of this.pipes)s.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[Km](){this[gr]||(this[gr]=!0,this.readable=!1,this[$t]?Gi(()=>this[qc]()):this[qc]())}[qc](){if(this[Vt]){let r=this[Vt].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[De]||(e.dataLength=0);let r=this.promise();return this.on("data",s=>{e.push(s),this[De]||(e.dataLength+=s.length)}),r.then(()=>e)}concat(){return this[De]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[De]?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(xe,()=>r(new Error("stream destroyed"))),this.on("error",s=>r(s)),this.on("end",()=>e())})}[eN](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Ht])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[Ht]})},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(xe,c),this.once("error",n),this.once("end",a),this.once("data",o)})}}}[tN](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[xe]?(e?this.emit("error",e):this.emit(xe),this):(this[xe]=!0,this.buffer.length=0,this[Te]=0,typeof this.close=="function"&&!this[fo]&&this.close(),e?this.emit("error",e):this.emit(xe),this)}static isStream(e){return!!e&&(e instanceof Xm||e instanceof Wm||e instanceof JI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var ou=_(Ze=>{"use strict";h();var zc=v("assert"),yr=v("buffer").Buffer,e_=v("zlib"),os=Ze.constants=qm(),nN=Wc(),Qm=yr.concat,as=Symbol("_superWrite"),Vs=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"}},oN=Symbol("opts"),qi=Symbol("flushFlag"),Jm=Symbol("finishFlushFlag"),nu=Symbol("fullFlushFlag"),oe=Symbol("handle"),Eo=Symbol("onError"),Ws=Symbol("sawError"),Vc=Symbol("level"),$c=Symbol("strategy"),Yc=Symbol("ended"),nB=Symbol("_defaultFullFlush"),go=class extends nN{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ws]=!1,this[Yc]=!1,this[oN]=e,this[qi]=e.flush,this[Jm]=e.finishFlush;try{this[oe]=new e_[r](e)}catch(s){throw new Vs(s)}this[Eo]=s=>{this[Ws]||(this[Ws]=!0,this.close(),this.emit("error",s))},this[oe].on("error",s=>this[Eo](new Vs(s))),this.once("end",()=>this.close)}close(){this[oe]&&(this[oe].close(),this[oe]=null,this.emit("close"))}reset(){if(!this[Ws])return zc(this[oe],"zlib binding closed"),this[oe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[nu]),this.write(Object.assign(yr.alloc(0),{[qi]:e})))}end(e,r,s){return e&&this.write(e,r),this.flush(this[Jm]),this[Yc]=!0,super.end(null,null,s)}get ended(){return this[Yc]}write(e,r,s){if(typeof r=="function"&&(s=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[Ws])return;zc(this[oe],"zlib binding closed");let i=this[oe]._handle,n=i.close;i.close=()=>{};let o=this[oe].close;this[oe].close=()=>{},yr.concat=u=>u;let a;try{let u=typeof e[qi]=="number"?e[qi]:this[qi];a=this[oe]._processChunk(e,u),yr.concat=Qm}catch(u){yr.concat=Qm,this[Eo](new Vs(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[Eo](new Vs(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[as](yr.from(a[0]));for(let u=1;u<a.length;u++)c=this[as](a[u])}else c=this[as](yr.from(a));return s&&s(),c}[as](e){return super.write(e)}},Yt=class extends go{constructor(e,r){e=e||{},e.flush=e.flush||os.Z_NO_FLUSH,e.finishFlush=e.finishFlush||os.Z_FINISH,super(e,r),this[nu]=os.Z_FULL_FLUSH,this[Vc]=e.level,this[$c]=e.strategy}params(e,r){if(!this[Ws]){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[Vc]!==e||this[$c]!==r){this.flush(os.Z_SYNC_FLUSH),zc(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[Vc]=e,this[$c]=r)}}}},Xc=class extends Yt{constructor(e){super(e,"Deflate")}},Zc=class extends Yt{constructor(e){super(e,"Inflate")}},Kc=Symbol("_portable"),Qc=class extends Yt{constructor(e){super(e,"Gzip"),this[Kc]=e&&!!e.portable}[as](e){return this[Kc]?(this[Kc]=!1,e[9]=255,super[as](e)):super[as](e)}},Jc=class extends Yt{constructor(e){super(e,"Gunzip")}},eu=class extends Yt{constructor(e){super(e,"DeflateRaw")}},tu=class extends Yt{constructor(e){super(e,"InflateRaw")}},ru=class extends Yt{constructor(e){super(e,"Unzip")}},yo=class extends go{constructor(e,r){e=e||{},e.flush=e.flush||os.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||os.BROTLI_OPERATION_FINISH,super(e,r),this[nu]=os.BROTLI_OPERATION_FLUSH}},su=class extends yo{constructor(e){super(e,"BrotliCompress")}},iu=class extends yo{constructor(e){super(e,"BrotliDecompress")}};Ze.Deflate=Xc;Ze.Inflate=Zc;Ze.Gzip=Qc;Ze.Gunzip=Jc;Ze.DeflateRaw=eu;Ze.InflateRaw=tu;Ze.Unzip=ru;typeof e_.BrotliCompress=="function"?(Ze.BrotliCompress=su,Ze.BrotliDecompress=iu):Ze.BrotliCompress=Ze.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var $s=_((uB,t_)=>{"use strict";h();var aN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;t_.exports=aN!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var So=_((fB,r_)=>{"use strict";h();var{Minipass:cN}=lo(),au=$s(),cu=Symbol("slurp");r_.exports=class extends cN{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=au(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=au(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[cu](r),s&&this[cu](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))}[cu](e,r){for(let s in e)e[s]!==null&&e[s]!==void 0&&!(r&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?au(e[s]):e[s])}}});var uu=_(Oo=>{"use strict";h();Oo.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"]]);Oo.code=new Map(Array.from(Oo.name).map(t=>[t[1],t[0]]))});var o_=_((_B,n_)=>{"use strict";h();var uN=(t,e)=>{if(Number.isSafeInteger(t))t<0?hN(t,e):lN(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},lN=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},hN=(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]=s_(i):i===0?e[s-1]=0:(r=!0,e[s-1]=i_(i))}},fN=t=>{let e=t[0],r=e===128?pN(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=s_(n):n===0?o=n:(s=!0,o=i_(n)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},pN=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},s_=t=>(255^t)&255,i_=t=>(255^t)+1&255;n_.exports={encode:uN,parse:fN}});var Ks=_((gB,c_)=>{"use strict";h();var lu=uu(),Ys=v("path").posix,a_=o_(),hu=Symbol("slurp"),Qe=Symbol("type"),pu=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=cs(e,r,100),this.mode=Sr(e,r+100,8),this.uid=Sr(e,r+108,8),this.gid=Sr(e,r+116,8),this.size=Sr(e,r+124,12),this.mtime=fu(e,r+136,12),this.cksum=Sr(e,r+148,12),this[hu](s),this[hu](i,!0),this[Qe]=cs(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=cs(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=cs(e,r+265,32),this.gname=cs(e,r+297,32),this.devmaj=Sr(e,r+329,8),this.devmin=Sr(e,r+337,8),e[r+475]!==0){let o=cs(e,r+345,155);this.path=o+"/"+this.path}else{let o=cs(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=fu(e,r+476,12),this.ctime=fu(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)}[hu](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=mN(this.path||"",s),n=i[0],o=i[1];this.needPax=i[2],this.needPax=us(e,r,100,n)||this.needPax,this.needPax=Or(e,r+100,8,this.mode)||this.needPax,this.needPax=Or(e,r+108,8,this.uid)||this.needPax,this.needPax=Or(e,r+116,8,this.gid)||this.needPax,this.needPax=Or(e,r+124,12,this.size)||this.needPax,this.needPax=du(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Qe].charCodeAt(0),this.needPax=us(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=us(e,r+265,32,this.uname)||this.needPax,this.needPax=us(e,r+297,32,this.gname)||this.needPax,this.needPax=Or(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Or(e,r+337,8,this.devmin)||this.needPax,this.needPax=us(e,r+345,s,o)||this.needPax,e[r+475]!==0?this.needPax=us(e,r+345,155,o)||this.needPax:(this.needPax=us(e,r+345,130,o)||this.needPax,this.needPax=du(e,r+476,12,this.atime)||this.needPax,this.needPax=du(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,Or(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 lu.name.get(this[Qe])||this[Qe]}get typeKey(){return this[Qe]}set type(e){lu.code.has(e)?this[Qe]=lu.code.get(e):this[Qe]=e}},mN=(t,e)=>{let s=t,i="",n,o=Ys.parse(t).root||".";if(Buffer.byteLength(s)<100)n=[s,i,!1];else{i=Ys.dirname(s),s=Ys.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=Ys.join(Ys.basename(i),s),i=Ys.dirname(i));while(i!==o&&!n);n||(n=[t.slice(0,99),"",!0])}return n},cs=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),fu=(t,e,r)=>_N(Sr(t,e,r)),_N=t=>t===null?null:new Date(t*1e3),Sr=(t,e,r)=>t[e]&128?a_.parse(t.slice(e,e+r)):gN(t,e,r),EN=t=>isNaN(t)?null:t,gN=(t,e,r)=>EN(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),yN={12:8589934591,8:2097151},Or=(t,e,r,s)=>s===null?!1:s>yN[r]||s<0?(a_.encode(s,t.slice(e,e+r)),!0):(SN(t,e,r,s),!1),SN=(t,e,r,s)=>t.write(ON(s,r),e,r,"ascii"),ON=(t,e)=>RN(Math.floor(t).toString(8),e),RN=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",du=(t,e,r,s)=>s===null?!1:Or(t,e,r,s.getTime()/1e3),vN=new Array(156).join("\0"),us=(t,e,r,s)=>s===null?!1:(t.write(s+vN,e,r,"utf8"),s.length!==Buffer.byteLength(s)||s.length>r);c_.exports=pu});var Ro=_((SB,u_)=>{"use strict";h();var TN=Ks(),AN=v("path"),Hi=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 TN({path:("PaxHeader/"+AN.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}};Hi.parse=(t,e,r)=>new Hi(IN(NN(t),e),r);var IN=(t,e)=>e?Object.keys(t).reduce((r,s)=>(r[s]=t[s],r),e):t,NN=t=>t.replace(/\n$/,"").split(`
7
+ `).reduce(bN,Object.create(null)),bN=(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};u_.exports=Hi});var zs=_((RB,l_)=>{"use strict";h();l_.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 vo=_((TB,h_)=>{"use strict";h();h_.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 _u=_((NB,f_)=>{"use strict";h();var To=["|","<",">","?",":"],mu=To.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),wN=new Map(To.map((t,e)=>[t,mu[e]])),CN=new Map(mu.map((t,e)=>[t,To[e]]));f_.exports={encode:t=>To.reduce((e,r)=>e.split(r).join(wN.get(r)),t),decode:t=>mu.reduce((e,r)=>e.split(r).join(CN.get(r)),t)}});var Eu=_((wB,p_)=>{"use strict";h();var{isAbsolute:PN,parse:d_}=v("path").win32;p_.exports=t=>{let e="",r=d_(t);for(;PN(t)||r.root;){let s=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(s.length),e+=s,r=d_(t)}return[e,t]}});var __=_((PB,m_)=>{"use strict";h();m_.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 Nu=_((MB,C_)=>{"use strict";h();var{Minipass:v_}=lo(),T_=Ro(),A_=Ks(),It=v("fs"),E_=v("path"),At=$s(),DN=zs(),I_=(t,e)=>e?(t=At(t).replace(/^\.(\/|$)/,""),DN(e)+"/"+t):At(t),xN=16*1024*1024,g_=Symbol("process"),y_=Symbol("file"),S_=Symbol("directory"),yu=Symbol("symlink"),O_=Symbol("hardlink"),Wi=Symbol("header"),Ao=Symbol("read"),Su=Symbol("lstat"),Io=Symbol("onlstat"),Ou=Symbol("onread"),Ru=Symbol("onreadlink"),vu=Symbol("openfile"),Tu=Symbol("onopenfile"),Rr=Symbol("close"),No=Symbol("mode"),Au=Symbol("awaitDrain"),gu=Symbol("ondrain"),Nt=Symbol("prefix"),R_=Symbol("hadError"),N_=vo(),LN=_u(),b_=Eu(),w_=__(),bo=N_(class extends v_{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=At(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||xN,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=At(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?At(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]=b_(this.path);i&&(this.path=n,s=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=LN.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=At(r.absolute||E_.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[Io](this.statCache.get(this.absolute)):this[Su]()}emit(e,...r){return e==="error"&&(this[R_]=!0),super.emit(e,...r)}[Su](){It.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Io](r)})}[Io](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=FN(e),this.emit("stat",e),this[g_]()}[g_](){switch(this.type){case"File":return this[y_]();case"Directory":return this[S_]();case"SymbolicLink":return this[yu]();default:return this.end()}}[No](e){return w_(e,this.type==="Directory",this.portable)}[Nt](e){return I_(e,this.prefix)}[Wi](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new A_({path:this[Nt](this.path),linkpath:this.type==="Link"?this[Nt](this.linkpath):this.linkpath,mode:this[No](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 T_({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[Nt](this.path),linkpath:this.type==="Link"?this[Nt](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)}[S_](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Wi](),this.end()}[yu](){It.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ru](r)})}[Ru](e){this.linkpath=At(e),this[Wi](),this.end()}[O_](e){this.type="Link",this.linkpath=At(E_.relative(this.cwd,e)),this.stat.size=0,this[Wi](),this.end()}[y_](){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[O_](r)}this.linkCache.set(e,this.absolute)}if(this[Wi](),this.stat.size===0)return this.end();this[vu]()}[vu](){It.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Tu](r)})}[Tu](e){if(this.fd=e,this[R_])return this[Rr]();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[Ao]()}[Ao](){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[Rr](()=>this.emit("error",o));this[Ou](a)})}[Rr](e){It.close(this.fd,e)}[Ou](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[Rr](()=>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[Rr](()=>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[gu]():this[Au](()=>this[gu]())}[Au](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)}[gu](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Rr](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[Ao]()}}),Iu=class extends bo{[Su](){this[Io](It.lstatSync(this.absolute))}[yu](){this[Ru](It.readlinkSync(this.absolute))}[vu](){this[Tu](It.openSync(this.absolute,"r"))}[Ao](){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[Ou](a),e=!1}finally{if(e)try{this[Rr](()=>{})}catch{}}}[Au](e){e()}[Rr](e){It.closeSync(this.fd),e()}},MN=N_(class extends v_{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=At(e.path),this.mode=this[No](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=At(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let s=!1;if(!this.preservePaths){let[i,n]=b_(this.path);i&&(this.path=n,s=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new A_({path:this[Nt](this.path),linkpath:this.type==="Link"?this[Nt](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 T_({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[Nt](this.path),linkpath:this.type==="Link"?this[Nt](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)}[Nt](e){return I_(e,this.prefix)}[No](e){return w_(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()}});bo.Sync=Iu;bo.Tar=MN;var FN=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";C_.exports=bo});var D_=_((kB,P_)=>{"use strict";h();P_.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var bu=_((BB,x_)=>{"use strict";h();x_.exports=ee;ee.Node=ls;ee.create=ee;function ee(t){var e=this;if(e instanceof ee||(e=new ee),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}ee.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};ee.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++}};ee.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++}};ee.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)UN(this,arguments[t]);return this.length};ee.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)BN(this,arguments[t]);return this.length};ee.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}};ee.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}};ee.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};ee.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};ee.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};ee.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};ee.prototype.map=function(t,e){e=e||this;for(var r=new ee,s=this.head;s!==null;)r.push(t.call(e,s.value,this)),s=s.next;return r};ee.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ee,s=this.tail;s!==null;)r.push(t.call(e,s.value,this)),s=s.prev;return r};ee.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};ee.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};ee.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};ee.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};ee.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 ee;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};ee.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 ee;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};ee.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=kN(this,i,r[s]);return n};ee.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 kN(t,e,r){var s=e===t.head?new ls(r,null,e,t):new ls(r,e,e.next,t);return s.next===null&&(t.tail=s),s.prev===null&&(t.head=s),t.length++,s}function UN(t,e){t.tail=new ls(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function BN(t,e){t.head=new ls(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ls(t,e,r,s){if(!(this instanceof ls))return new ls(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{D_()(ee)}catch{}});var ko=_((qB,G_)=>{"use strict";h();var Mo=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:jN}=lo(),L_=ou(),GN=So(),ku=Nu(),qN=ku.Sync,HN=ku.Tar,WN=bu(),M_=Buffer.alloc(1024),Po=Symbol("onStat"),wo=Symbol("ended"),bt=Symbol("queue"),Xs=Symbol("current"),hs=Symbol("process"),Co=Symbol("processing"),F_=Symbol("processJob"),wt=Symbol("jobs"),wu=Symbol("jobDone"),Do=Symbol("addFSEntry"),k_=Symbol("addTarEntry"),xu=Symbol("stat"),Lu=Symbol("readdir"),xo=Symbol("onreaddir"),Lo=Symbol("pipe"),U_=Symbol("entry"),Cu=Symbol("entryOpt"),Mu=Symbol("writeEntryClass"),j_=Symbol("write"),Pu=Symbol("ondrain"),Fo=v("fs"),B_=v("path"),VN=vo(),Du=$s(),Uu=VN(class extends jN{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=Du(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Mu]=ku,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 L_.Gzip(e.gzip)),e.brotli&&(typeof e.brotli!="object"&&(e.brotli={}),this.zip=new L_.BrotliCompress(e.brotli)),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Pu]()),this.on("resume",r=>this.zip.resume())}else this.on("drain",this[Pu]);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[bt]=new WN,this[wt]=0,this.jobs=+e.jobs||4,this[Co]=!1,this[wo]=!1}[j_](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[wo]=!0,this[hs](),this}write(e){if(this[wo])throw new Error("write after end");return e instanceof GN?this[k_](e):this[Do](e),this.flowing}[k_](e){let r=Du(B_.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let s=new Mo(e.path,r,!1);s.entry=new HN(e,this[Cu](s)),s.entry.on("end",i=>this[wu](s)),this[wt]+=1,this[bt].push(s)}this[hs]()}[Do](e){let r=Du(B_.resolve(this.cwd,e));this[bt].push(new Mo(e,r)),this[hs]()}[xu](e){e.pending=!0,this[wt]+=1;let r=this.follow?"stat":"lstat";Fo[r](e.absolute,(s,i)=>{e.pending=!1,this[wt]-=1,s?this.emit("error",s):this[Po](e,i)})}[Po](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[hs]()}[Lu](e){e.pending=!0,this[wt]+=1,Fo.readdir(e.absolute,(r,s)=>{if(e.pending=!1,this[wt]-=1,r)return this.emit("error",r);this[xo](e,s)})}[xo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[hs]()}[hs](){if(!this[Co]){this[Co]=!0;for(let e=this[bt].head;e!==null&&this[wt]<this.jobs;e=e.next)if(this[F_](e.value),e.value.ignore){let r=e.next;this[bt].removeNode(e),e.next=r}this[Co]=!1,this[wo]&&!this[bt].length&&this[wt]===0&&(this.zip?this.zip.end(M_):(super.write(M_),super.end()))}}get[Xs](){return this[bt]&&this[bt].head&&this[bt].head.value}[wu](e){this[bt].shift(),this[wt]-=1,this[hs]()}[F_](e){if(!e.pending){if(e.entry){e===this[Xs]&&!e.piped&&this[Lo](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Po](e,this.statCache.get(e.absolute)):this[xu](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[xo](e,this.readdirCache.get(e.absolute)):this[Lu](e),!e.readdir))){if(e.entry=this[U_](e),!e.entry){e.ignore=!0;return}e===this[Xs]&&!e.piped&&this[Lo](e)}}}[Cu](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}}[U_](e){this[wt]+=1;try{return new this[Mu](e.path,this[Cu](e)).on("end",()=>this[wu](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Pu](){this[Xs]&&this[Xs].entry&&this[Xs].entry.resume()}[Lo](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Do](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()}}),Fu=class extends Uu{constructor(e){super(e),this[Mu]=qN}pause(){}resume(){}[xu](e){let r=this.follow?"statSync":"lstatSync";this[Po](e,Fo[r](e.absolute))}[Lu](e,r){this[xo](e,Fo.readdirSync(e.absolute))}[Lo](e){let r=e.entry,s=this.zip;e.readdir&&e.readdir.forEach(i=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[Do](o+i)}),s?r.on("data",i=>{s.write(i)}):r.on("data",i=>{super[j_](i)})}};Uu.Sync=Fu;G_.exports=Uu});var ii=_($i=>{"use strict";h();var $N=Wc(),YN=v("events").EventEmitter,$e=v("fs"),Gu=$e.writev;if(!Gu){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Gu=(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 ri=Symbol("_autoClose"),_t=Symbol("_close"),Vi=Symbol("_ended"),se=Symbol("_fd"),q_=Symbol("_finished"),Tr=Symbol("_flags"),Bu=Symbol("_flush"),qu=Symbol("_handleChunk"),Hu=Symbol("_makeBuf"),qo=Symbol("_mode"),Uo=Symbol("_needDrain"),ei=Symbol("_onerror"),si=Symbol("_onopen"),ju=Symbol("_onread"),Qs=Symbol("_onwrite"),Ar=Symbol("_open"),Kt=Symbol("_path"),fs=Symbol("_pos"),Ct=Symbol("_queue"),Js=Symbol("_read"),H_=Symbol("_readSize"),vr=Symbol("_reading"),Bo=Symbol("_remain"),W_=Symbol("_size"),jo=Symbol("_write"),Zs=Symbol("_writing"),Go=Symbol("_defaultFlag"),ti=Symbol("_errored"),Ho=class extends $N{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[ti]=!1,this[se]=typeof r.fd=="number"?r.fd:null,this[Kt]=e,this[H_]=r.readSize||16*1024*1024,this[vr]=!1,this[W_]=typeof r.size=="number"?r.size:1/0,this[Bo]=this[W_],this[ri]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[se]=="number"?this[Js]():this[Ar]()}get fd(){return this[se]}get path(){return this[Kt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ar](){$e.open(this[Kt],"r",(e,r)=>this[si](e,r))}[si](e,r){e?this[ei](e):(this[se]=r,this.emit("open",r),this[Js]())}[Hu](){return Buffer.allocUnsafe(Math.min(this[H_],this[Bo]))}[Js](){if(!this[vr]){this[vr]=!0;let e=this[Hu]();if(e.length===0)return process.nextTick(()=>this[ju](null,0,e));$e.read(this[se],e,0,e.length,null,(r,s,i)=>this[ju](r,s,i))}}[ju](e,r,s){this[vr]=!1,e?this[ei](e):this[qu](r,s)&&this[Js]()}[_t](){if(this[ri]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ei](e){this[vr]=!0,this[_t](),this.emit("error",e)}[qu](e,r){let s=!1;return this[Bo]-=e,e>0&&(s=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Bo]<=0)&&(s=!1,this[_t](),super.end()),s}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[se]=="number"&&this[Js]();break;case"error":return this[ti]?void 0:(this[ti]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Wu=class extends Ho{[Ar](){let e=!0;try{this[si](null,$e.openSync(this[Kt],"r")),e=!1}finally{e&&this[_t]()}}[Js](){let e=!0;try{if(!this[vr]){this[vr]=!0;do{let r=this[Hu](),s=r.length===0?0:$e.readSync(this[se],r,0,r.length,null);if(!this[qu](s,r))break}while(!0);this[vr]=!1}e=!1}finally{e&&this[_t]()}}[_t](){if(this[ri]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.closeSync(e),this.emit("close")}}},Wo=class extends YN{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[ti]=!1,this[Zs]=!1,this[Vi]=!1,this[Uo]=!1,this[Ct]=[],this[Kt]=e,this[se]=typeof r.fd=="number"?r.fd:null,this[qo]=r.mode===void 0?438:r.mode,this[fs]=typeof r.start=="number"?r.start:null,this[ri]=typeof r.autoClose=="boolean"?r.autoClose:!0;let s=this[fs]!==null?"r+":"w";this[Go]=r.flags===void 0,this[Tr]=this[Go]?s:r.flags,this[se]===null&&this[Ar]()}emit(e,r){if(e==="error"){if(this[ti])return;this[ti]=!0}return super.emit(e,r)}get fd(){return this[se]}get path(){return this[Kt]}[ei](e){this[_t](),this[Zs]=!0,this.emit("error",e)}[Ar](){$e.open(this[Kt],this[Tr],this[qo],(e,r)=>this[si](e,r))}[si](e,r){this[Go]&&this[Tr]==="r+"&&e&&e.code==="ENOENT"?(this[Tr]="w",this[Ar]()):e?this[ei](e):(this[se]=r,this.emit("open",r),this[Bu]())}end(e,r){return e&&this.write(e,r),this[Vi]=!0,!this[Zs]&&!this[Ct].length&&typeof this[se]=="number"&&this[Qs](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Vi]?(this.emit("error",new Error("write() after end()")),!1):this[se]===null||this[Zs]||this[Ct].length?(this[Ct].push(e),this[Uo]=!0,!1):(this[Zs]=!0,this[jo](e),!0)}[jo](e){$e.write(this[se],e,0,e.length,this[fs],(r,s)=>this[Qs](r,s))}[Qs](e,r){e?this[ei](e):(this[fs]!==null&&(this[fs]+=r),this[Ct].length?this[Bu]():(this[Zs]=!1,this[Vi]&&!this[q_]?(this[q_]=!0,this[_t](),this.emit("finish")):this[Uo]&&(this[Uo]=!1,this.emit("drain"))))}[Bu](){if(this[Ct].length===0)this[Vi]&&this[Qs](null,0);else if(this[Ct].length===1)this[jo](this[Ct].pop());else{let e=this[Ct];this[Ct]=[],Gu(this[se],e,this[fs],(r,s)=>this[Qs](r,s))}}[_t](){if(this[ri]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Vu=class extends Wo{[Ar](){let e;if(this[Go]&&this[Tr]==="r+")try{e=$e.openSync(this[Kt],this[Tr],this[qo])}catch(r){if(r.code==="ENOENT")return this[Tr]="w",this[Ar]();throw r}else e=$e.openSync(this[Kt],this[Tr],this[qo]);this[si](null,e)}[_t](){if(this[ri]&&typeof this[se]=="number"){let e=this[se];this[se]=null,$e.closeSync(e),this.emit("close")}}[jo](e){let r=!0;try{this[Qs](null,$e.writeSync(this[se],e,0,e.length,this[fs])),r=!1}finally{if(r)try{this[_t]()}catch{}}}};$i.ReadStream=Ho;$i.ReadStreamSync=Wu;$i.WriteStream=Wo;$i.WriteStreamSync=Vu});var Zo=_((YB,eE)=>{"use strict";h();var KN=vo(),V_=Ks(),zN=v("events"),XN=bu(),ZN=1024*1024,QN=So(),$_=Ro(),Y_=ou(),{nextTick:JN}=v("process"),$u=Buffer.from([31,139]),it=Symbol("state"),ds=Symbol("writeEntry"),zt=Symbol("readEntry"),Yu=Symbol("nextEntry"),K_=Symbol("processEntry"),nt=Symbol("extendedHeader"),Yi=Symbol("globalExtendedHeader"),Ir=Symbol("meta"),z_=Symbol("emitMeta"),ae=Symbol("buffer"),Xt=Symbol("queue"),Nr=Symbol("ended"),X_=Symbol("emittedEnd"),ps=Symbol("emit"),Ae=Symbol("unzip"),Vo=Symbol("consumeChunk"),$o=Symbol("consumeChunkSub"),Ku=Symbol("consumeBody"),Z_=Symbol("consumeMeta"),Q_=Symbol("consumeHeader"),Yo=Symbol("consuming"),zu=Symbol("bufferConcat"),Xu=Symbol("maybeEnd"),Ki=Symbol("writing"),br=Symbol("aborted"),Ko=Symbol("onDone"),ms=Symbol("sawValidEntry"),zo=Symbol("sawNullBlock"),Xo=Symbol("sawEOF"),J_=Symbol("closeStream"),eb=t=>!0;eE.exports=KN(class extends zN{constructor(e){e=e||{},super(e),this.file=e.file||"",this[ms]=null,this.on(Ko,s=>{(this[it]==="begin"||this[ms]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ko,e.ondone):this.on(Ko,s=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||ZN,this.filter=typeof e.filter=="function"?e.filter:eb;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[Xt]=new XN,this[ae]=null,this[zt]=null,this[ds]=null,this[it]="begin",this[Ir]="",this[nt]=null,this[Yi]=null,this[Nr]=!1,this[Ae]=null,this[br]=!1,this[zo]=!1,this[Xo]=!1,this.on("end",()=>this[J_]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Q_](e,r){this[ms]===null&&(this[ms]=!1);let s;try{s=new V_(e,r,this[nt],this[Yi])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(s.nullBlock)this[zo]?(this[Xo]=!0,this[it]==="begin"&&(this[it]="header"),this[ps]("eof")):(this[zo]=!0,this[ps]("nullBlock"));else if(this[zo]=!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[ds]=new QN(s,this[nt],this[Yi]);if(!this[ms])if(n.remain){let o=()=>{n.invalid||(this[ms]=!0)};n.on("end",o)}else this[ms]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[ps]("ignoredEntry",n),this[it]="ignore",n.resume()):n.size>0&&(this[Ir]="",n.on("data",o=>this[Ir]+=o),this[it]="meta"):(this[nt]=null,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[ps]("ignoredEntry",n),this[it]=n.remain?"ignore":"header",n.resume()):(n.remain?this[it]="body":(this[it]="header",n.end()),this[zt]?this[Xt].push(n):(this[Xt].push(n),this[Yu]())))}}}[J_](){JN(()=>this.emit("close"))}[K_](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[zt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",s=>this[Yu]()),r=!1)):(this[zt]=null,r=!1),r}[Yu](){do;while(this[K_](this[Xt].shift()));if(!this[Xt].length){let e=this[zt];!e||e.flowing||e.size===e.remain?this[Ki]||this.emit("drain"):e.once("drain",s=>this.emit("drain"))}}[Ku](e,r){let s=this[ds],i=s.blockRemain,n=i>=e.length&&r===0?e:e.slice(r,r+i);return s.write(n),s.blockRemain||(this[it]="header",this[ds]=null,s.end()),n.length}[Z_](e,r){let s=this[ds],i=this[Ku](e,r);return this[ds]||this[z_](s),i}[ps](e,r,s){!this[Xt].length&&!this[zt]?this.emit(e,r,s):this[Xt].push([e,r,s])}[z_](e){switch(this[ps]("meta",this[Ir]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[nt]=$_.parse(this[Ir],this[nt],!1);break;case"GlobalExtendedHeader":this[Yi]=$_.parse(this[Ir],this[Yi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[nt]=this[nt]||Object.create(null),this[nt].path=this[Ir].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[nt]=this[nt]||Object.create(null),this[nt].linkpath=this[Ir].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[br]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[br])return;if((this[Ae]===null||this.brotli===void 0&&this[Ae]===!1)&&e){if(this[ae]&&(e=Buffer.concat([this[ae],e]),this[ae]=null),e.length<$u.length)return this[ae]=e,!0;for(let n=0;this[Ae]===null&&n<$u.length;n++)e[n]!==$u[n]&&(this[Ae]=!1);let i=this.brotli===void 0;if(this[Ae]===!1&&i)if(e.length<512)if(this[Nr])this.brotli=!0;else return this[ae]=e,!0;else try{new V_(e.slice(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[Ae]===null||this[Ae]===!1&&this.brotli){let n=this[Nr];this[Nr]=!1,this[Ae]=this[Ae]===null?new Y_.Unzip:new Y_.BrotliDecompress,this[Ae].on("data",a=>this[Vo](a)),this[Ae].on("error",a=>this.abort(a)),this[Ae].on("end",a=>{this[Nr]=!0,this[Vo]()}),this[Ki]=!0;let o=this[Ae][n?"end":"write"](e);return this[Ki]=!1,o}}this[Ki]=!0,this[Ae]?this[Ae].write(e):this[Vo](e),this[Ki]=!1;let s=this[Xt].length?!1:this[zt]?this[zt].flowing:!0;return!s&&!this[Xt].length&&this[zt].once("drain",i=>this.emit("drain")),s}[zu](e){e&&!this[br]&&(this[ae]=this[ae]?Buffer.concat([this[ae],e]):e)}[Xu](){if(this[Nr]&&!this[X_]&&!this[br]&&!this[Yo]){this[X_]=!0;let e=this[ds];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[ps](Ko)}}[Vo](e){if(this[Yo])this[zu](e);else if(!e&&!this[ae])this[Xu]();else{if(this[Yo]=!0,this[ae]){this[zu](e);let r=this[ae];this[ae]=null,this[$o](r)}else this[$o](e);for(;this[ae]&&this[ae].length>=512&&!this[br]&&!this[Xo];){let r=this[ae];this[ae]=null,this[$o](r)}this[Yo]=!1}(!this[ae]||this[Nr])&&this[Xu]()}[$o](e){let r=0,s=e.length;for(;r+512<=s&&!this[br]&&!this[Xo];)switch(this[it]){case"begin":case"header":this[Q_](e,r),r+=512;break;case"ignore":case"body":r+=this[Ku](e,r);break;case"meta":r+=this[Z_](e,r);break;default:throw new Error("invalid state: "+this[it])}r<s&&(this[ae]?this[ae]=Buffer.concat([e.slice(r),this[ae]]):this[ae]=e.slice(r))}end(e){this[br]||(this[Ae]?this[Ae].end(e):(this[Nr]=!0,this.brotli===void 0&&(e=e||Buffer.alloc(0)),this.write(e)))}})});var Qo=_((zB,iE)=>{"use strict";h();var tb=Gs(),rE=Zo(),ni=v("fs"),rb=ii(),tE=v("path"),Zu=zs();iE.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=tb(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&&ib(s,e),s.noResume||sb(s),s.file&&s.sync?nb(s):s.file?ob(s,r):sE(s)};var sb=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},ib=(t,e)=>{let r=new Map(e.map(n=>[Zu(n),!0])),s=t.filter,i=(n,o)=>{let a=o||tE.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(tE.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(Zu(n)):n=>i(Zu(n))},nb=t=>{let e=sE(t),r=t.file,s=!0,i;try{let n=ni.statSync(r),o=t.maxReadSize||16*1024*1024;if(n.size<o)e.end(ni.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=ni.openSync(r,"r");a<n.size;){let u=ni.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}s=!1}finally{if(s&&i)try{ni.closeSync(i)}catch{}}},ob=(t,e)=>{let r=new rE(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("end",o),ni.stat(i,(c,u)=>{if(c)a(c);else{let l=new rb.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},sE=t=>new rE(t)});var lE=_((ZB,uE)=>{"use strict";h();var ab=Gs(),Jo=ko(),nE=ii(),oE=Qo(),aE=v("path");uE.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=ab(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?cb(s,e):s.file?ub(s,e,r):s.sync?lb(s,e):hb(s,e)};var cb=(t,e)=>{let r=new Jo.Sync(t),s=new nE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(s),cE(r,e)},ub=(t,e,r)=>{let s=new Jo(t),i=new nE.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 Qu(s,e),r?n.then(r,r):n},cE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?oE({file:aE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},Qu=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return oE({file:aE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>Qu(t,e));t.add(r)}t.end()},lb=(t,e)=>{let r=new Jo.Sync(t);return cE(r,e),r},hb=(t,e)=>{let r=new Jo(t);return Qu(r,e),r}});var Ju=_((JB,EE)=>{"use strict";h();var fb=Gs(),hE=ko(),Je=v("fs"),fE=ii(),dE=Qo(),pE=v("path"),mE=Ks();EE.exports=(t,e,r)=>{let s=fb(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?db(s,e):mb(s,e,r)};var db=(t,e)=>{let r=new hE.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 mE(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,pb(t,r,n,i,e)}finally{if(s)try{Je.closeSync(i)}catch{}}},pb=(t,e,r,s,i)=>{let n=new fE.WriteStreamSync(t.file,{fd:s,start:r});e.pipe(n),_b(e,i)},mb=(t,e,r)=>{e=Array.from(e);let s=new hE(t),i=(o,a,c)=>{let u=(g,y)=>{g?Je.close(o,T=>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 T=new mE(d);if(!T.cksumValid)return u(null,l);let A=512*Math.ceil(T.size/512);if(l+A+512>a||(l+=A+512,l>=a))return u(null,l);t.mtimeCache&&t.mtimeCache.set(T.path,T.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 T=new fE.WriteStream(t.file,{fd:f,start:y});s.pipe(T),T.on("error",a),T.on("close",o),_E(s,e)})})};Je.open(t.file,c,u)});return r?n.then(r,r):n},_b=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?dE({file:pE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},_E=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return dE({file:pE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>_E(t,e));t.add(r)}t.end()}});var yE=_((t1,gE)=>{"use strict";h();var Eb=Gs(),gb=Ju();gE.exports=(t,e,r)=>{let s=Eb(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),yb(s),gb(s,e,r)};var yb=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 RE=_((s1,OE)=>{"use strict";h();var{promisify:SE}=v("util"),wr=v("fs"),Sb=t=>{if(!t)t={mode:511,fs:wr};else if(typeof t=="object")t={mode:511,fs:wr,...t};else if(typeof t=="number")t={mode:t,fs:wr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:wr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||wr.mkdir,t.mkdirAsync=SE(t.mkdir),t.stat=t.stat||t.fs.stat||wr.stat,t.statAsync=SE(t.stat),t.statSync=t.statSync||t.fs.statSync||wr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||wr.mkdirSync,t};OE.exports=Sb});var TE=_((n1,vE)=>{"use strict";h();var Ob=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Rb,parse:vb}=v("path"),Tb=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=Rb(t),Ob==="win32"){let e=/[*|"<>?:]/,{root:r}=vb(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};vE.exports=Tb});var wE=_((a1,bE)=>{"use strict";h();var{dirname:AE}=v("path"),IE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(s=>s.isDirectory()?r:void 0,s=>s.code==="ENOENT"?IE(t,AE(e),e):void 0),NE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(s){return s.code==="ENOENT"?NE(t,AE(e),e):void 0}};bE.exports={findMade:IE,findMadeSync:NE}});var rl=_((u1,PE)=>{"use strict";h();var{dirname:CE}=v("path"),el=(t,e,r)=>{e.recursive=!1;let s=CE(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 el(s,e).then(n=>el(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})})},tl=(t,e,r)=>{let s=CE(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 tl(t,e,tl(s,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};PE.exports={mkdirpManual:el,mkdirpManualSync:tl}});var LE=_((h1,xE)=>{"use strict";h();var{dirname:DE}=v("path"),{findMade:Ab,findMadeSync:Ib}=wE(),{mkdirpManual:Nb,mkdirpManualSync:bb}=rl(),wb=(t,e)=>(e.recursive=!0,DE(t)===t?e.mkdirAsync(t,e):Ab(e,t).then(s=>e.mkdirAsync(t,e).then(()=>s).catch(i=>{if(i.code==="ENOENT")return Nb(t,e);throw i}))),Cb=(t,e)=>{if(e.recursive=!0,DE(t)===t)return e.mkdirSync(t,e);let s=Ib(e,t);try{return e.mkdirSync(t,e),s}catch(i){if(i.code==="ENOENT")return bb(t,e);throw i}};xE.exports={mkdirpNative:wb,mkdirpNativeSync:Cb}});var UE=_((d1,kE)=>{"use strict";h();var ME=v("fs"),Pb=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,sl=Pb.replace(/^v/,"").split("."),FE=+sl[0]>10||+sl[0]==10&&+sl[1]>=12,Db=FE?t=>t.mkdir===ME.mkdir:()=>!1,xb=FE?t=>t.mkdirSync===ME.mkdirSync:()=>!1;kE.exports={useNative:Db,useNativeSync:xb}});var WE=_((m1,HE)=>{"use strict";h();var oi=RE(),ai=TE(),{mkdirpNative:BE,mkdirpNativeSync:jE}=LE(),{mkdirpManual:GE,mkdirpManualSync:qE}=rl(),{useNative:Lb,useNativeSync:Mb}=UE(),ci=(t,e)=>(t=ai(t),e=oi(e),Lb(e)?BE(t,e):GE(t,e)),Fb=(t,e)=>(t=ai(t),e=oi(e),Mb(e)?jE(t,e):qE(t,e));ci.sync=Fb;ci.native=(t,e)=>BE(ai(t),oi(e));ci.manual=(t,e)=>GE(ai(t),oi(e));ci.nativeSync=(t,e)=>jE(ai(t),oi(e));ci.manualSync=(t,e)=>qE(ai(t),oi(e));HE.exports=ci});var ZE=_((E1,XE)=>{"use strict";h();var ot=v("fs"),_s=v("path"),kb=ot.lchown?"lchown":"chown",Ub=ot.lchownSync?"lchownSync":"chownSync",$E=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),VE=(t,e,r)=>{try{return ot[Ub](t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},Bb=(t,e,r)=>{try{return ot.chownSync(t,e,r)}catch(s){if(s.code!=="ENOENT")throw s}},jb=$E?(t,e,r,s)=>i=>{!i||i.code!=="EISDIR"?s(i):ot.chown(t,e,r,s)}:(t,e,r,s)=>s,il=$E?(t,e,r)=>{try{return VE(t,e,r)}catch(s){if(s.code!=="EISDIR")throw s;Bb(t,e,r)}}:(t,e,r)=>VE(t,e,r),Gb=process.version,YE=(t,e,r)=>ot.readdir(t,e,r),qb=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(Gb)&&(YE=(t,e,r)=>ot.readdir(t,r));var ea=(t,e,r,s)=>{ot[kb](t,e,r,jb(t,e,r,i=>{s(i&&i.code!=="ENOENT"?i:null)}))},KE=(t,e,r,s,i)=>{if(typeof e=="string")return ot.lstat(_s.resolve(t,e),(n,o)=>{if(n)return i(n.code!=="ENOENT"?n:null);o.name=e,KE(t,o,r,s,i)});if(e.isDirectory())nl(_s.resolve(t,e.name),r,s,n=>{if(n)return i(n);let o=_s.resolve(t,e.name);ea(o,r,s,i)});else{let n=_s.resolve(t,e.name);ea(n,r,s,i)}},nl=(t,e,r,s)=>{YE(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 ea(t,e,r,s);let o=n.length,a=null,c=u=>{if(!a){if(u)return s(a=u);if(--o===0)return ea(t,e,r,s)}};n.forEach(u=>KE(t,u,e,r,c))})},Hb=(t,e,r,s)=>{if(typeof e=="string")try{let i=ot.lstatSync(_s.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&zE(_s.resolve(t,e.name),r,s),il(_s.resolve(t,e.name),r,s)},zE=(t,e,r)=>{let s;try{s=qb(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return il(t,e,r);throw i}return s&&s.length&&s.forEach(i=>Hb(t,i,e,r)),il(t,e,r)};XE.exports=nl;nl.sync=zE});var tg=_((y1,ol)=>{"use strict";h();var QE=WE(),at=v("fs"),ta=v("path"),JE=ZE(),Et=$s(),ra=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},sa=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},ia=(t,e)=>t.get(Et(e)),zi=(t,e,r)=>t.set(Et(e),r),Wb=(t,e)=>{at.stat(t,(r,s)=>{(r||!s.isDirectory())&&(r=new sa(t,r&&r.code||"ENOTDIR")),e(r)})};ol.exports=(t,e,r)=>{t=Et(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=Et(e.cwd),E=(T,A)=>{T?r(T):(zi(f,t,!0),A&&c?JE(A,o,a,L=>E(L)):n?at.chmod(t,i,r):r())};if(f&&ia(f,t)===!0)return E();if(t===d)return Wb(t,E);if(u)return QE(t,{mode:i}).then(T=>E(null,T),E);let y=Et(ta.relative(d,t)).split("/");na(d,y,i,f,l,d,null,E)};var na=(t,e,r,s,i,n,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=Et(ta.resolve(t+"/"+c));if(ia(s,u))return na(u,e,r,s,i,n,o,a);at.mkdir(u,r,eg(u,e,r,s,i,n,o,a))},eg=(t,e,r,s,i,n,o,a)=>c=>{c?at.lstat(t,(u,l)=>{if(u)u.path=u.path&&Et(u.path),a(u);else if(l.isDirectory())na(t,e,r,s,i,n,o,a);else if(i)at.unlink(t,f=>{if(f)return a(f);at.mkdir(t,r,eg(t,e,r,s,i,n,o,a))});else{if(l.isSymbolicLink())return a(new ra(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,na(t,e,r,s,i,n,o,a))},Vb=t=>{let e=!1,r="ENOTDIR";try{e=at.statSync(t).isDirectory()}catch(s){r=s.code}finally{if(!e)throw new sa(t,r)}};ol.exports.sync=(t,e)=>{t=Et(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=Et(e.cwd),d=T=>{zi(l,t,!0),T&&a&&JE.sync(T,n,o),i&&at.chmodSync(t,s)};if(l&&ia(l,t)===!0)return d();if(t===f)return Vb(f),d();if(c)return d(QE.sync(t,s));let g=Et(ta.relative(f,t)).split("/"),y=null;for(let T=g.shift(),A=f;T&&(A+="/"+T);T=g.shift())if(A=Et(ta.resolve(A)),!ia(l,A))try{at.mkdirSync(A,s),y=y||A,zi(l,A,!0)}catch{let $=at.lstatSync(A);if($.isDirectory()){zi(l,A,!0);continue}else if(u){at.unlinkSync(A),at.mkdirSync(A,s),y=y||A,zi(l,A,!0);continue}else if($.isSymbolicLink())return new ra(A,A+"/"+g.join("/"))}return d(y)}});var cl=_((O1,rg)=>{"use strict";h();var al=Object.create(null),{hasOwnProperty:$b}=Object.prototype;rg.exports=t=>($b.call(al,t)||(al[t]=t.normalize("NFD")),al[t])});var og=_((v1,ng)=>{"use strict";h();var sg=v("assert"),Yb=cl(),Kb=zs(),{join:ig}=v("path"),zb=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Xb=zb==="win32";ng.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((f,d)=>(f.length&&(d=ig(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);sg.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);sg(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=Xb?["win32 parallelization disabled"]:u.map(d=>Kb(ig(Yb(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 ug=_((A1,cg)=>{"use strict";h();var Zb=process.env.__FAKE_PLATFORM__||process.platform,Qb=Zb==="win32",Jb=global.__FAKE_TESTING_FS__||v("fs"),{O_CREAT:ew,O_TRUNC:tw,O_WRONLY:rw,UV_FS_O_FILEMAP:ag=0}=Jb.constants,sw=Qb&&!!ag,iw=512*1024,nw=ag|tw|ew|rw;cg.exports=sw?t=>t<iw?nw:"w":()=>"w"});var El=_((N1,vg)=>{"use strict";h();var ow=v("assert"),aw=Zo(),te=v("fs"),cw=ii(),Zt=v("path"),Sg=tg(),lg=_u(),uw=og(),lw=Eu(),et=$s(),hw=zs(),fw=cl(),hg=Symbol("onEntry"),hl=Symbol("checkFs"),fg=Symbol("checkFs2"),ca=Symbol("pruneCache"),fl=Symbol("isReusable"),ct=Symbol("makeFs"),dl=Symbol("file"),pl=Symbol("directory"),ua=Symbol("link"),dg=Symbol("symlink"),pg=Symbol("hardlink"),mg=Symbol("unsupported"),_g=Symbol("checkPath"),Cr=Symbol("mkdir"),Le=Symbol("onError"),oa=Symbol("pending"),Eg=Symbol("pend"),ui=Symbol("unpend"),ul=Symbol("ended"),ll=Symbol("maybeClose"),ml=Symbol("skip"),Xi=Symbol("doChown"),Zi=Symbol("uid"),Qi=Symbol("gid"),Ji=Symbol("checkedCwd"),Og=v("crypto"),Rg=ug(),dw=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,en=dw==="win32",pw=(t,e)=>{if(!en)return te.unlink(t,e);let r=t+".DELETE."+Og.randomBytes(16).toString("hex");te.rename(t,r,s=>{if(s)return e(s);te.unlink(r,e)})},mw=t=>{if(!en)return te.unlinkSync(t);let e=t+".DELETE."+Og.randomBytes(16).toString("hex");te.renameSync(t,e),te.unlinkSync(e)},gg=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,yg=t=>hw(et(fw(t))).toLowerCase(),_w=(t,e)=>{e=yg(e);for(let r of t.keys()){let s=yg(r);(s===e||s.indexOf(e+"/")===0)&&t.delete(r)}},Ew=t=>{for(let e of t.keys())t.delete(e)},tn=class extends aw{constructor(e){if(e||(e={}),e.ondone=r=>{this[ul]=!0,this[ll]()},super(e),this[Ji]=!1,this.reservations=uw(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[oa]=0,this[ul]=!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.forceChown=e.forceChown===!0,this.win32=!!e.win32||en,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=et(Zt.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[hg](r))}warn(e,r,s={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(s.recoverable=!1),super.warn(e,r,s)}[ll](){this[ul]&&this[oa]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[_g](e){if(this.strip){let r=et(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let s=et(e.linkpath).split("/");if(s.length>=this.strip)e.linkpath=s.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=et(e.path),s=r.split("/");if(s.includes("..")||en&&/^[a-z]:\.\.$/i.test(s[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,n]=lw(r);i&&(e.path=n,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(Zt.isAbsolute(e.path)?e.absolute=et(Zt.resolve(e.path)):e.absolute=et(Zt.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:et(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:r}=Zt.win32.parse(e.absolute);e.absolute=r+lg.encode(e.absolute.slice(r.length));let{root:s}=Zt.win32.parse(e.path);e.path=s+lg.encode(e.path.slice(s.length))}return!0}[hg](e){if(!this[_g](e))return e.resume();switch(ow.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[hl](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[mg](e)}}[Le](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[ui](),r.resume())}[Cr](e,r,s){Sg(et(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)}[Xi](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}[Zi](e){return gg(this.uid,e.uid,this.processUid)}[Qi](e){return gg(this.gid,e.gid,this.processGid)}[dl](e,r){let s=e.mode&4095||this.fmode,i=new cw.WriteStream(e.absolute,{flags:Rg(e.size),mode:s,autoClose:!1});i.on("error",c=>{i.fd&&te.close(i.fd,()=>{}),i.write=()=>!0,this[Le](c,e),r()});let n=1,o=c=>{if(c){i.fd&&te.close(i.fd,()=>{}),this[Le](c,e),r();return}--n===0&&te.close(i.fd,u=>{u?this[Le](u,e):this[ui](),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;te.futimes(l,f,d,E=>E?te.utimes(u,f,d,g=>o(g&&E)):o())}if(this[Xi](e)){n++;let f=this[Zi](e),d=this[Qi](e);te.fchown(l,f,d,E=>E?te.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[Le](c,e),r()}),e.pipe(a)),a.pipe(i)}[pl](e,r){let s=e.mode&4095||this.dmode;this[Cr](e.absolute,s,i=>{if(i){this[Le](i,e),r();return}let n=1,o=a=>{--n===0&&(r(),this[ui](),e.resume())};e.mtime&&!this.noMtime&&(n++,te.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Xi](e)&&(n++,te.chown(e.absolute,this[Zi](e),this[Qi](e),o)),o()})}[mg](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[dg](e,r){this[ua](e,e.linkpath,"symlink",r)}[pg](e,r){let s=et(Zt.resolve(this.cwd,e.linkpath));this[ua](e,s,"link",r)}[Eg](){this[oa]++}[ui](){this[oa]--,this[ll]()}[ml](e){this[ui](),e.resume()}[fl](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!en}[hl](e){this[Eg]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,s=>this[fg](e,s))}[ca](e){e.type==="SymbolicLink"?Ew(this.dirCache):e.type!=="Directory"&&_w(this.dirCache,e.absolute)}[fg](e,r){this[ca](e);let s=a=>{this[ca](e),r(a)},i=()=>{this[Cr](this.cwd,this.dmode,a=>{if(a){this[Le](a,e),s();return}this[Ji]=!0,n()})},n=()=>{if(e.absolute!==this.cwd){let a=et(Zt.dirname(e.absolute));if(a!==this.cwd)return this[Cr](a,this.dmode,c=>{if(c){this[Le](c,e),s();return}o()})}o()},o=()=>{te.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[ml](e),s();return}if(a||this[fl](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?te.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return te.rmdir(e.absolute,u=>this[ct](u,e,s))}if(e.absolute===this.cwd)return this[ct](null,e,s);pw(e.absolute,u=>this[ct](u,e,s))})};this[Ji]?n():i()}[ct](e,r,s){if(e){this[Le](e,r),s();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[dl](r,s);case"Link":return this[pg](r,s);case"SymbolicLink":return this[dg](r,s);case"Directory":case"GNUDumpDir":return this[pl](r,s)}}[ua](e,r,s,i){te[s](r,e.absolute,n=>{n?this[Le](n,e):(this[ui](),e.resume()),i()})}},aa=t=>{try{return[null,t()]}catch(e){return[e,null]}},_l=class extends tn{[ct](e,r){return super[ct](e,r,()=>{})}[hl](e){if(this[ca](e),!this[Ji]){let n=this[Cr](this.cwd,this.dmode);if(n)return this[Le](n,e);this[Ji]=!0}if(e.absolute!==this.cwd){let n=et(Zt.dirname(e.absolute));if(n!==this.cwd){let o=this[Cr](n,this.dmode);if(o)return this[Le](o,e)}}let[r,s]=aa(()=>te.lstatSync(e.absolute));if(s&&(this.keep||this.newer&&s.mtime>e.mtime))return this[ml](e);if(r||this[fl](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?aa(()=>{te.chmodSync(e.absolute,e.mode)}):[];return this[ct](a,e)}let[n]=aa(()=>te.rmdirSync(e.absolute));this[ct](n,e)}let[i]=e.absolute===this.cwd?[]:aa(()=>mw(e.absolute));this[ct](i,e)}[dl](e,r){let s=e.mode&4095||this.fmode,i=a=>{let c;try{te.closeSync(n)}catch(u){c=u}(a||c)&&this[Le](a||c,e),r()},n;try{n=te.openSync(e.absolute,Rg(e.size),s)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Le](a,e)),e.pipe(o)),o.on("data",a=>{try{te.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{te.futimesSync(n,u,l)}catch(f){try{te.utimesSync(e.absolute,u,l)}catch{c=f}}}if(this[Xi](e)){let u=this[Zi](e),l=this[Qi](e);try{te.fchownSync(n,u,l)}catch(f){try{te.chownSync(e.absolute,u,l)}catch{c=c||f}}}i(c)})}[pl](e,r){let s=e.mode&4095||this.dmode,i=this[Cr](e.absolute,s);if(i){this[Le](i,e),r();return}if(e.mtime&&!this.noMtime)try{te.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Xi](e))try{te.chownSync(e.absolute,this[Zi](e),this[Qi](e))}catch{}r(),e.resume()}[Cr](e,r){try{return Sg.sync(et(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}}[ua](e,r,s,i){try{te[s+"Sync"](r,e.absolute),i(),e.resume()}catch(n){return this[Le](n,e)}}};tn.Sync=_l;vg.exports=tn});var bg=_((w1,Ng)=>{"use strict";h();var gw=Gs(),la=El(),Ag=v("fs"),Ig=ii(),Tg=v("path"),gl=zs();Ng.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=gw(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&&yw(s,e),s.file&&s.sync?Sw(s):s.file?Ow(s,r):s.sync?Rw(s):vw(s)};var yw=(t,e)=>{let r=new Map(e.map(n=>[gl(n),!0])),s=t.filter,i=(n,o)=>{let a=o||Tg.parse(n).root||".",c=n===a?!1:r.has(n)?r.get(n):i(Tg.dirname(n),a);return r.set(n,c),c};t.filter=s?(n,o)=>s(n,o)&&i(gl(n)):n=>i(gl(n))},Sw=t=>{let e=new la.Sync(t),r=t.file,s=Ag.statSync(r),i=t.maxReadSize||16*1024*1024;new Ig.ReadStreamSync(r,{readSize:i,size:s.size}).pipe(e)},Ow=(t,e)=>{let r=new la(t),s=t.maxReadSize||16*1024*1024,i=t.file,n=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Ag.stat(i,(c,u)=>{if(c)a(c);else{let l=new Ig.ReadStream(i,{readSize:s,size:u.size});l.on("error",a),l.pipe(r)}})});return e?n.then(e,e):n},Rw=t=>new la.Sync(t),vw=t=>new la(t)});var wg=_(Oe=>{"use strict";h();Oe.c=Oe.create=lE();Oe.r=Oe.replace=Ju();Oe.t=Oe.list=Qo();Oe.u=Oe.update=yE();Oe.x=Oe.extract=bg();Oe.Pack=ko();Oe.Unpack=El();Oe.Parse=Zo();Oe.ReadEntry=So();Oe.WriteEntry=Nu();Oe.Header=Ks();Oe.Pax=Ro();Oe.types=uu()});var yl=_((z1,Bg)=>{"use strict";h();var Pw=v("stream"),kg=Pw.PassThrough,Dw=Array.prototype.slice;Bg.exports=xw;function xw(){let t=[],e=Dw.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=kg(s);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push(Ug(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",T),d()}function T(A){o.emit("error",A)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",y),g.on("end",y),n&&g.on("error",T),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 Ug(t,e){if(Array.isArray(t))for(let r=0,s=t.length;r<s;r++)t[r]=Ug(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(kg(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var jg=_(li=>{"use strict";h();Object.defineProperty(li,"__esModule",{value:!0});li.splitWhen=li.flatten=void 0;function Lw(t){return t.reduce((e,r)=>[].concat(e,r),[])}li.flatten=Lw;function Mw(t,e){let r=[[]],s=0;for(let i of t)e(i)?(s++,r[s]=[]):r[s].push(i);return r}li.splitWhen=Mw});var Gg=_(ha=>{"use strict";h();Object.defineProperty(ha,"__esModule",{value:!0});ha.isEnoentCodeError=void 0;function Fw(t){return t.code==="ENOENT"}ha.isEnoentCodeError=Fw});var qg=_(fa=>{"use strict";h();Object.defineProperty(fa,"__esModule",{value:!0});fa.createDirentFromStats=void 0;var Sl=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 kw(t,e){return new Sl(t,e)}fa.createDirentFromStats=kw});var $g=_(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 Uw=v("os"),Bw=v("path"),Hg=Uw.platform()==="win32",jw=2,Gw=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,qw=/(\\?)([(){}]|^!|[!+@](?=\())/g,Hw=/^\\\\([.?])/,Ww=/\\(?![!()+@{}])/g;function Vw(t){return t.replace(/\\/g,"/")}ye.unixify=Vw;function $w(t,e){return Bw.resolve(t,e)}ye.makeAbsolute=$w;function Yw(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(jw)}return t}ye.removeLeadingDotSegment=Yw;ye.escape=Hg?Ol:Rl;function Ol(t){return t.replace(qw,"\\$2")}ye.escapeWindowsPath=Ol;function Rl(t){return t.replace(Gw,"\\$2")}ye.escapePosixPath=Rl;ye.convertPathToPattern=Hg?Wg:Vg;function Wg(t){return Ol(t).replace(Hw,"//$1").replace(Ww,"/")}ye.convertWindowsPathToPattern=Wg;function Vg(t){return Rl(t)}ye.convertPosixPathToPattern=Vg});var Kg=_((nj,Yg)=>{"use strict";h();Yg.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 vl=_((aj,Xg)=>{"use strict";h();var Kw=Kg(),zg={"{":"}","(":")","[":"]"},zw=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=zg[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},Xw=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=zg[r];if(s){var i=t.indexOf(s,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Xg.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Kw(e))return!0;var s=zw;return r&&r.strict===!1&&(s=Xw),s(e)}});var Al=_((uj,Zg)=>{"use strict";h();var Zw=vl(),Qw=v("path").posix.dirname,Jw=v("os").platform()==="win32",Tl="/",eC=/\\/g,tC=/[\{\[].*[\}\]]$/,rC=/(^|[^\\])([\{\[]|\([^\)]+$)/,sC=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Zg.exports=function(e,r){var s=Object.assign({flipBackslashes:!0},r);s.flipBackslashes&&Jw&&e.indexOf(Tl)<0&&(e=e.replace(eC,Tl)),tC.test(e)&&(e+=Tl),e+="a";do e=Qw(e);while(Zw(e)||rC.test(e));return e.replace(sC,"$1")}});var da=_(ut=>{"use strict";h();ut.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;ut.find=(t,e)=>t.nodes.find(r=>r.type===e);ut.exceedsLimit=(t,e,r=1,s)=>s===!1||!ut.isInteger(t)||!ut.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=s;ut.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)};ut.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);ut.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;ut.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;ut.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);ut.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 pa=_((dj,Jg)=>{"use strict";h();var Qg=da();Jg.exports=(t,e={})=>{let r=(s,i={})=>{let n=e.escapeInvalid&&Qg.isInvalidBrace(i),o=s.invalid===!0&&e.escapeInvalid===!0,a="";if(s.value)return(n||o)&&Qg.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 ty=_((mj,ey)=>{"use strict";h();ey.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var ly=_((Ej,uy)=>{"use strict";h();var ry=ty(),Es=(t,e,r)=>{if(ry(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(ry(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(Es.cache.hasOwnProperty(c))return Es.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=cy(t)||cy(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=sy(y,Math.abs(u),d,s),u=d.a=0}return l>=0&&(E=sy(u,l,d,s)),d.negatives=g,d.positives=E,d.result=iC(g,E,s),s.capture===!0?d.result=`(${d.result})`:s.wrap!==!1&&E.length+g.length>1&&(d.result=`(?:${d.result})`),Es.cache[c]=d,d.result};function iC(t,e,r){let s=Il(t,e,"-",!1,r)||[],i=Il(e,t,"",!1,r)||[],n=Il(t,e,"-?",!0,r)||[];return s.concat(n).concat(i).join("|")}function nC(t,e){let r=1,s=1,i=ny(t,r),n=new Set([e]);for(;t<=i&&i<=e;)n.add(i),r+=1,i=ny(t,r);for(i=oy(e+1,s)-1;t<i&&i<=e;)n.add(i),s+=1,i=oy(e+1,s)-1;return n=[...n],n.sort(cC),n}function oC(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let s=aC(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+=uC(c,u,r):o++}return o&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[o],digits:i}}function sy(t,e,r,s){let i=nC(t,e),n=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],l=oC(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+ay(a.count),o=u+1;continue}r.isPadded&&(f=lC(u,r,s)),l.string=f+l.pattern+ay(l.count),n.push(l),o=u+1,a=l}return n}function Il(t,e,r,s,i){let n=[];for(let o of t){let{string:a}=o;!s&&!iy(e,"string",a)&&n.push(r+a),s&&iy(e,"string",a)&&n.push(r+a)}return n}function aC(t,e){let r=[];for(let s=0;s<t.length;s++)r.push([t[s],e[s]]);return r}function cC(t,e){return t>e?1:e>t?-1:0}function iy(t,e,r){return t.some(s=>s[e]===r)}function ny(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function oy(t,e){return t-t%Math.pow(10,e)}function ay(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function uC(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function cy(t){return/^-?(0+)\d/.test(t)}function lC(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}}`}}Es.cache={};Es.clearCache=()=>Es.cache={};uy.exports=Es});var wl=_((yj,gy)=>{"use strict";h();var hC=v("util"),dy=ly(),hy=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),fC=t=>e=>t===!0?Number(e):String(e),Nl=t=>typeof t=="number"||typeof t=="string"&&t!=="",rn=t=>Number.isInteger(+t),bl=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},dC=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,pC=(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},fy=(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},py=(t,e,r,s)=>{if(r)return dy(t,e,{wrap:!1,...s});let i=String.fromCharCode(t);if(t===e)return i;let n=String.fromCharCode(e);return`[${i}-${n}]`},my=(t,e,r)=>{if(Array.isArray(t)){let s=r.wrap===!0,i=r.capture?"":"?:";return s?`(${i}${t.join("|")})`:t.join("|")}return dy(t,e,r)},_y=(...t)=>new RangeError("Invalid range arguments: "+hC.inspect(...t)),Ey=(t,e,r)=>{if(r.strictRanges===!0)throw _y([t,e]);return[]},_C=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},EC=(t,e,r=1,s={})=>{let i=Number(t),n=Number(e);if(!Number.isInteger(i)||!Number.isInteger(n)){if(s.strictRanges===!0)throw _y([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=bl(a)||bl(c)||bl(u),f=l?Math.max(a.length,c.length,u.length):0,d=l===!1&&dC(t,e,s)===!1,E=s.transform||fC(d);if(s.toRegex&&r===1)return py(fy(t,f),fy(e,f),!0,s);let g={negatives:[],positives:[]},y=L=>g[L<0?"negatives":"positives"].push(Math.abs(L)),T=[],A=0;for(;o?i>=n:i<=n;)s.toRegex===!0&&r>1?y(i):T.push(pC(E(i,A),f,d)),i=o?i-r:i+r,A++;return s.toRegex===!0?r>1?mC(g,s):my(T,null,{wrap:!1,...s}):T},gC=(t,e,r=1,s={})=>{if(!rn(t)&&t.length>1||!rn(e)&&e.length>1)return Ey(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 py(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?my(l,null,{wrap:!1,options:s}):l},ma=(t,e,r,s={})=>{if(e==null&&Nl(t))return[t];if(!Nl(t)||!Nl(e))return Ey(t,e,s);if(typeof r=="function")return ma(t,e,1,{transform:r});if(hy(r))return ma(t,e,0,r);let i={...s};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,rn(r)?rn(t)&&rn(e)?EC(t,e,r,i):gC(t,e,Math.max(Math.abs(r),1),i):r!=null&&!hy(r)?_C(r,i):ma(t,e,1,r)};gy.exports=ma});var Oy=_((Oj,Sy)=>{"use strict";h();var yC=wl(),yy=da(),SC=(t,e={})=>{let r=(s,i={})=>{let n=yy.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=yy.reduce(s.nodes),f=yC(...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)};Sy.exports=SC});var Ty=_((vj,vy)=>{"use strict";h();var OC=wl(),Ry=pa(),hi=da(),gs=(t="",e="",r=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?hi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let n of i)s.push(gs(n,e,r));else for(let n of e)r===!0&&typeof n=="string"&&(n=`{${n}}`),s.push(Array.isArray(n)?gs(i,n,r):i+n);return hi.flatten(s)},RC=(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(gs(a.pop(),Ry(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(gs(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=hi.reduce(i.nodes);if(hi.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=OC(...f,e);d.length===0&&(d=Ry(i,e)),a.push(gs(a.pop(),d)),i.nodes=[];return}let c=hi.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(gs(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(gs(u.pop(),d.value));continue}d.nodes&&s(d,i)}return u};return hi.flatten(s(t))};vy.exports=RC});var Iy=_((Aj,Ay)=>{"use strict";h();Ay.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 Py=_((Nj,Cy)=>{"use strict";h();var vC=pa(),{MAX_LENGTH:Ny,CHAR_BACKSLASH:Cl,CHAR_BACKTICK:TC,CHAR_COMMA:AC,CHAR_DOT:IC,CHAR_LEFT_PARENTHESES:NC,CHAR_RIGHT_PARENTHESES:bC,CHAR_LEFT_CURLY_BRACE:wC,CHAR_RIGHT_CURLY_BRACE:CC,CHAR_LEFT_SQUARE_BRACKET:by,CHAR_RIGHT_SQUARE_BRACKET:wy,CHAR_DOUBLE_QUOTE:PC,CHAR_SINGLE_QUOTE:DC,CHAR_NO_BREAK_SPACE:xC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:LC}=Iy(),MC=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},s=typeof r.maxLength=="number"?Math.min(Ny,r.maxLength):Ny;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=T=>{if(T.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&T.type==="text"){a.value+=T.value;return}return o.nodes.push(T),T.parent=o,T.prev=a,a=T,T};for(y({type:"bos"});l<u;)if(o=n[n.length-1],d=g(),!(d===LC||d===xC)){if(d===Cl){y({type:"text",value:(e.keepEscaping?d:"")+g()});continue}if(d===wy){y({type:"text",value:"\\"+d});continue}if(d===by){c++;let T=!0,A;for(;l<u&&(A=g());){if(d+=A,A===by){c++;continue}if(A===Cl){d+=g();continue}if(A===wy&&(c--,c===0))break}y({type:"text",value:d});continue}if(d===NC){o=y({type:"paren",nodes:[]}),n.push(o),y({type:"text",value:d});continue}if(d===bC){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===PC||d===DC||d===TC){let T=d,A;for(e.keepQuotes!==!0&&(d="");l<u&&(A=g());){if(A===Cl){d+=A+g();continue}if(A===T){e.keepQuotes===!0&&(d+=A);break}d+=A}y({type:"text",value:d});continue}if(d===wC){f++;let A={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(A),n.push(o),y({type:"open",value:d});continue}if(d===CC){if(o.type!=="brace"){y({type:"text",value:d});continue}let T="close";o=n.pop(),o.close=!0,y({type:T,value:d}),f--,o=n[n.length-1];continue}if(d===AC&&f>0){if(o.ranges>0){o.ranges=0;let T=o.nodes.shift();o.nodes=[T,{type:"text",value:vC(o)}]}y({type:"comma",value:d}),o.commas++;continue}if(d===IC&&f>0&&o.commas===0){let T=o.nodes;if(f===0||T.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"){T.pop();let A=T[T.length-1];A.value+=a.value+d,a=A,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(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let T=n[n.length-1],A=T.nodes.indexOf(o);T.nodes.splice(A,1,...o.nodes)}while(n.length>0);return y({type:"eos"}),i};Cy.exports=MC});var Pl=_((wj,xy)=>{"use strict";h();var Dy=pa(),FC=Oy(),kC=Ty(),UC=Py(),tt=(t,e={})=>{let r=[];if(Array.isArray(t))for(let s of t){let i=tt.create(s,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(tt.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};tt.parse=(t,e={})=>UC(t,e);tt.stringify=(t,e={})=>Dy(typeof t=="string"?tt.parse(t,e):t,e);tt.compile=(t,e={})=>(typeof t=="string"&&(t=tt.parse(t,e)),FC(t,e));tt.expand=(t,e={})=>{typeof t=="string"&&(t=tt.parse(t,e));let r=kC(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};tt.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?tt.compile(t,e):tt.expand(t,e);xy.exports=tt});var sn=_((Pj,Uy)=>{"use strict";h();var BC=v("path"),Pt="\\\\/",Ly=`[^${Pt}]`,Jt="\\.",jC="\\+",GC="\\?",_a="\\/",qC="(?=.)",My="[^/]",Dl=`(?:${_a}|$)`,Fy=`(?:^|${_a})`,xl=`${Jt}{1,2}${Dl}`,HC=`(?!${Jt})`,WC=`(?!${Fy}${xl})`,VC=`(?!${Jt}{0,1}${Dl})`,$C=`(?!${xl})`,YC=`[^.${_a}]`,KC=`${My}*?`,ky={DOT_LITERAL:Jt,PLUS_LITERAL:jC,QMARK_LITERAL:GC,SLASH_LITERAL:_a,ONE_CHAR:qC,QMARK:My,END_ANCHOR:Dl,DOTS_SLASH:xl,NO_DOT:HC,NO_DOTS:WC,NO_DOT_SLASH:VC,NO_DOTS_SLASH:$C,QMARK_NO_DOT:YC,STAR:KC,START_ANCHOR:Fy},zC={...ky,SLASH_LITERAL:`[${Pt}]`,QMARK:Ly,STAR:`${Ly}*?`,DOTS_SLASH:`${Jt}{1,2}(?:[${Pt}]|$)`,NO_DOT:`(?!${Jt})`,NO_DOTS:`(?!(?:^|[${Pt}])${Jt}{1,2}(?:[${Pt}]|$))`,NO_DOT_SLASH:`(?!${Jt}{0,1}(?:[${Pt}]|$))`,NO_DOTS_SLASH:`(?!${Jt}{1,2}(?:[${Pt}]|$))`,QMARK_NO_DOT:`[^.${Pt}]`,START_ANCHOR:`(?:^|[${Pt}])`,END_ANCHOR:`(?:[${Pt}]|$)`},XC={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"};Uy.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:XC,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:BC.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?zC:ky}}});var nn=_(Ye=>{"use strict";h();var ZC=v("path"),QC=process.platform==="win32",{REGEX_BACKSLASH:JC,REGEX_REMOVE_BACKSLASH:eP,REGEX_SPECIAL_CHARS:tP,REGEX_SPECIAL_CHARS_GLOBAL:rP}=sn();Ye.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ye.hasRegexChars=t=>tP.test(t);Ye.isRegexChar=t=>t.length===1&&Ye.hasRegexChars(t);Ye.escapeRegex=t=>t.replace(rP,"\\$1");Ye.toPosixSlashes=t=>t.replace(JC,"/");Ye.removeBackslashes=t=>t.replace(eP,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:QC===!0||ZC.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 $y=_((Mj,Vy)=>{"use strict";h();var By=nn(),{CHAR_ASTERISK:Ll,CHAR_AT:sP,CHAR_BACKWARD_SLASH:on,CHAR_COMMA:iP,CHAR_DOT:Ml,CHAR_EXCLAMATION_MARK:Fl,CHAR_FORWARD_SLASH:Wy,CHAR_LEFT_CURLY_BRACE:kl,CHAR_LEFT_PARENTHESES:Ul,CHAR_LEFT_SQUARE_BRACKET:nP,CHAR_PLUS:oP,CHAR_QUESTION_MARK:jy,CHAR_RIGHT_CURLY_BRACE:aP,CHAR_RIGHT_PARENTHESES:Gy,CHAR_RIGHT_SQUARE_BRACKET:cP}=sn(),qy=t=>t===Wy||t===on,Hy=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},uP=(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,T=!1,A=!1,L=!1,$=!1,de=!1,k=!1,j=0,U,D,Z={value:"",depth:0,isGlob:!1},be=()=>u>=s,R=()=>c.charCodeAt(u+1),le=()=>(U=D,c.charCodeAt(++u));for(;u<s;){D=le();let Ue;if(D===on){L=Z.backslashes=!0,D=le(),D===kl&&(A=!0);continue}if(A===!0||D===kl){for(j++;be()!==!0&&(D=le());){if(D===on){L=Z.backslashes=!0,le();continue}if(D===kl){j++;continue}if(A!==!0&&D===Ml&&(D=le())===Ml){if(d=Z.isBrace=!0,g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(A!==!0&&D===iP){if(d=Z.isBrace=!0,g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===aP&&(j--,j===0)){A=!1,d=Z.isBrace=!0,k=!0;break}}if(i===!0)continue;break}if(D===Wy){if(n.push(u),o.push(Z),Z={value:"",depth:0,isGlob:!1},k===!0)continue;if(U===Ml&&u===l+1){l+=2;continue}f=u+1;continue}if(r.noext!==!0&&(D===oP||D===sP||D===Ll||D===jy||D===Fl)===!0&&R()===Ul){if(g=Z.isGlob=!0,y=Z.isExtglob=!0,k=!0,D===Fl&&u===l&&(de=!0),i===!0){for(;be()!==!0&&(D=le());){if(D===on){L=Z.backslashes=!0,D=le();continue}if(D===Gy){g=Z.isGlob=!0,k=!0;break}}continue}break}if(D===Ll){if(U===Ll&&(T=Z.isGlobstar=!0),g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===jy){if(g=Z.isGlob=!0,k=!0,i===!0)continue;break}if(D===nP){for(;be()!==!0&&(Ue=le());){if(Ue===on){L=Z.backslashes=!0,le();continue}if(Ue===cP){E=Z.isBracket=!0,g=Z.isGlob=!0,k=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===Fl&&u===l){$=Z.negated=!0,l++;continue}if(r.noparen!==!0&&D===Ul){if(g=Z.isGlob=!0,i===!0){for(;be()!==!0&&(D=le());){if(D===Ul){L=Z.backslashes=!0,D=le();continue}if(D===Gy){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,sr="",S="";l>0&&(sr=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&&qy(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),r.unescape===!0&&(S&&(S=By.removeBackslashes(S)),ce&&L===!0&&(ce=By.removeBackslashes(ce)));let O={prefix:sr,input:t,start:l,base:ce,glob:S,isBrace:d,isBracket:E,isGlob:g,isExtglob:y,isGlobstar:T,negated:$,negatedExtglob:de};if(r.tokens===!0&&(O.maxDepth=0,qy(D)||o.push(Z),O.tokens=o),r.parts===!0||r.tokens===!0){let Ue;for(let Q=0;Q<n.length;Q++){let Ot=Ue?Ue+1:l,Rt=n[Q],Ke=t.slice(Ot,Rt);r.tokens&&(Q===0&&l!==0?(o[Q].isPrefix=!0,o[Q].value=sr):o[Q].value=Ke,Hy(o[Q]),O.maxDepth+=o[Q].depth),(Q!==0||Ke!=="")&&a.push(Ke),Ue=Rt}if(Ue&&Ue+1<t.length){let Q=t.slice(Ue+1);a.push(Q),r.tokens&&(o[o.length-1].value=Q,Hy(o[o.length-1]),O.maxDepth+=o[o.length-1].depth)}O.slashes=n,O.parts=a}return O};Vy.exports=uP});var zy=_((kj,Ky)=>{"use strict";h();var Ea=sn(),rt=nn(),{MAX_LENGTH:ga,POSIX_REGEX_SOURCE:lP,REGEX_NON_SPECIAL_CHARS:hP,REGEX_SPECIAL_CHARS_BACKREF:fP,REPLACEMENTS:Yy}=Ea,dP=(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=>rt.escapeRegex(i)).join("..")}return r},fi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Bl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Yy[t]||t;let r={...e},s=typeof r.maxLength=="number"?Math.min(ga,r.maxLength):ga,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=rt.isWindows(e),u=Ea.globChars(c),l=Ea.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:d,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:T,NO_DOT_SLASH:A,NO_DOTS_SLASH:L,QMARK:$,QMARK_NO_DOT:de,STAR:k,START_ANCHOR:j}=u,U=C=>`(${a}(?:(?!${j}${C.dot?y:f}).)*?)`,D=r.dot?"":T,Z=r.dot?$:de,be=r.bash===!0?U(r):k;r.capture&&(be=`(${be})`),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=rt.removePrefix(t,R),i=t.length;let le=[],ce=[],sr=[],S=n,O,Ue=()=>R.index===i-1,Q=R.peek=(C=1)=>t[R.index+C],Ot=R.advance=()=>t[++R.index]||"",Rt=()=>t.slice(R.index+1),Ke=(C="",ue=0)=>{R.consumed+=C,R.index+=ue},An=C=>{R.output+=C.output!=null?C.output:C.value,Ke(C.value)},oT=()=>{let C=1;for(;Q()==="!"&&(Q(2)!=="("||Q(3)==="?");)Ot(),R.start++,C++;return C%2===0?!1:(R.negated=!0,R.start++,!0)},In=C=>{R[C]++,sr.push(C)},jr=C=>{R[C]--,sr.pop()},z=C=>{if(S.type==="globstar"){let ue=R.braces>0&&(C.type==="comma"||C.type==="brace"),N=C.extglob===!0||le.length&&(C.type==="pipe"||C.type==="paren");C.type!=="slash"&&C.type!=="paren"&&!ue&&!N&&(R.output=R.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=be,R.output+=S.output)}if(le.length&&C.type!=="paren"&&(le[le.length-1].inner+=C.value),(C.value||C.output)&&An(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},Nn=(C,ue)=>{let N={...l[ue],conditions:1,inner:""};N.prev=S,N.parens=R.parens,N.output=R.output;let Y=(r.capture?"(":"")+N.open;In("parens"),z({type:C,value:ue,output:R.output?"":g}),z({type:"paren",extglob:!0,value:Ot(),output:Y}),le.push(N)},aT=C=>{let ue=C.close+(r.capture?")":""),N;if(C.type==="negate"){let Y=be;if(C.inner&&C.inner.length>1&&C.inner.includes("/")&&(Y=U(r)),(Y!==be||Ue()||/^\)+$/.test(Rt()))&&(ue=C.close=`)$))${Y}`),C.inner.includes("*")&&(N=Rt())&&/^\.[^\\/.]+$/.test(N)){let pe=Bl(N,{...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}),jr("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let C=!1,ue=t.replace(fP,(N,Y,pe,Be,Se,oc)=>Be==="\\"?(C=!0,N):Be==="?"?Y?Y+Be+(Se?$.repeat(Se.length):""):oc===0?Z+(Se?$.repeat(Se.length):""):$.repeat(pe.length):Be==="."?f.repeat(pe.length):Be==="*"?Y?Y+Be+(Se?be:""):be:Y?N:`\\${N}`);return C===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,N=>N.length%2===0?"\\\\":N?"\\":"")),ue===t&&r.contains===!0?(R.output=t,R):(R.output=rt.wrapOutput(ue,R,e),R)}for(;!Ue();){if(O=Ot(),O==="\0")continue;if(O==="\\"){let N=Q();if(N==="/"&&r.bash!==!0||N==="."||N===";")continue;if(!N){O+="\\",z({type:"text",value:O});continue}let Y=/^\\+/.exec(Rt()),pe=0;if(Y&&Y[0].length>2&&(pe=Y[0].length,R.index+=pe,pe%2!==0&&(O+="\\")),r.unescape===!0?O=Ot():O+=Ot(),R.brackets===0){z({type:"text",value:O});continue}}if(R.brackets>0&&(O!=="]"||S.value==="["||S.value==="[^")){if(r.posix!==!1&&O===":"){let N=S.value.slice(1);if(N.includes("[")&&(S.posix=!0,N.includes(":"))){let Y=S.value.lastIndexOf("["),pe=S.value.slice(0,Y),Be=S.value.slice(Y+2),Se=lP[Be];if(Se){S.value=pe+Se,R.backtrack=!0,Ot(),!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,An({value:O});continue}if(R.quotes===1&&O!=='"'){O=rt.escapeRegex(O),S.value+=O,An({value:O});continue}if(O==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:O});continue}if(O==="("){In("parens"),z({type:"paren",value:O});continue}if(O===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(fi("opening","("));let N=le[le.length-1];if(N&&R.parens===N.parens+1){aT(le.pop());continue}z({type:"paren",value:O,output:R.parens?")":"\\)"}),jr("parens");continue}if(O==="["){if(r.nobracket===!0||!Rt().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(fi("closing","]"));O=`\\${O}`}else In("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(fi("opening","["));z({type:"text",value:O,output:`\\${O}`});continue}jr("brackets");let N=S.value.slice(1);if(S.posix!==!0&&N[0]==="^"&&!N.includes("/")&&(O=`/${O}`),S.value+=O,An({value:O}),r.literalBrackets===!1||rt.hasRegexChars(N))continue;let Y=rt.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){In("braces");let N={type:"brace",value:O,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};ce.push(N),z(N);continue}if(O==="}"){let N=ce[ce.length-1];if(r.nobrace===!0||!N){z({type:"text",value:O,output:O});continue}let Y=")";if(N.dots===!0){let pe=o.slice(),Be=[];for(let Se=pe.length-1;Se>=0&&(o.pop(),pe[Se].type!=="brace");Se--)pe[Se].type!=="dots"&&Be.unshift(pe[Se].value);Y=dP(Be,r),R.backtrack=!0}if(N.comma!==!0&&N.dots!==!0){let pe=R.output.slice(0,N.outputIndex),Be=R.tokens.slice(N.tokensIndex);N.value=N.output="\\{",O=Y="\\}",R.output=pe;for(let Se of Be)R.output+=Se.output||Se.value}z({type:"brace",value:O,output:Y}),jr("braces"),ce.pop();continue}if(O==="|"){le.length>0&&le[le.length-1].conditions++,z({type:"text",value:O});continue}if(O===","){let N=O,Y=ce[ce.length-1];Y&&sr[sr.length-1]==="braces"&&(Y.comma=!0,N="|"),z({type:"comma",value:O,output:N});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 N=ce[ce.length-1];S.type="dots",S.output+=O,S.value+=O,N.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)!=="?"){Nn("qmark",O);continue}if(S&&S.type==="paren"){let Y=Q(),pe=O;if(Y==="<"&&!rt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(S.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(Rt()))&&(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)))){Nn("negate",O);continue}if(r.nonegate!==!0&&R.index===0){oT();continue}}if(O==="+"){if(r.noextglob!==!0&&Q()==="("&&Q(2)!=="?"){Nn("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 N=hP.exec(Rt());N&&(O+=N[0],R.index+=N[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=be,R.backtrack=!0,R.globstar=!0,Ke(O);continue}let C=Rt();if(r.noextglob!==!0&&/^\([^?]/.test(C)){Nn("star",O);continue}if(S.type==="star"){if(r.noglobstar===!0){Ke(O);continue}let N=S.prev,Y=N.prev,pe=N.type==="slash"||N.type==="bos",Be=Y&&(Y.type==="star"||Y.type==="globstar");if(r.bash===!0&&(!pe||C[0]&&C[0]!=="/")){z({type:"star",value:O,output:""});continue}let Se=R.braces>0&&(N.type==="comma"||N.type==="brace"),oc=le.length&&(N.type==="pipe"||N.type==="paren");if(!pe&&N.type!=="paren"&&!Se&&!oc){z({type:"star",value:O,output:""});continue}for(;C.slice(0,3)==="/**";){let bn=t[R.index+4];if(bn&&bn!=="/")break;C=C.slice(3),Ke("/**",3)}if(N.type==="bos"&&Ue()){S.type="globstar",S.value+=O,S.output=U(r),R.output=S.output,R.globstar=!0,Ke(O);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&!Be&&Ue()){R.output=R.output.slice(0,-(N.output+S.output).length),N.output=`(?:${N.output}`,S.type="globstar",S.output=U(r)+(r.strictSlashes?")":"|$)"),S.value+=O,R.globstar=!0,R.output+=N.output+S.output,Ke(O);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&C[0]==="/"){let bn=C[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(N.output+S.output).length),N.output=`(?:${N.output}`,S.type="globstar",S.output=`${U(r)}${E}|${E}${bn})`,S.value+=O,R.output+=N.output+S.output,R.globstar=!0,Ke(O+Ot()),z({type:"slash",value:"/",output:""});continue}if(N.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+Ot()),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:be};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+=A,S.output+=A):r.dot===!0?(R.output+=L,S.output+=L):(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(fi("closing","]"));R.output=rt.escapeLast(R.output,"["),jr("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(fi("closing",")"));R.output=rt.escapeLast(R.output,"("),jr("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(fi("closing","}"));R.output=rt.escapeLast(R.output,"{"),jr("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};Bl.fastpaths=(t,e)=>{let r={...e},s=typeof r.maxLength=="number"?Math.min(ga,r.maxLength):ga,i=t.length;if(i>s)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${s}`);t=Yy[t]||t;let n=rt.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}=Ea.globChars(n),y=r.dot?f:l,T=r.dot?d:l,A=r.capture?"":"?:",L={negated:!1,prefix:""},$=r.bash===!0?".*?":E;r.capture&&($=`(${$})`);let de=D=>D.noglobstar===!0?$:`(${A}(?:(?!${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}${T}${$}`;case"**":return y+de(r);case"**/*":return`(?:${y}${de(r)}${a})?${T}${c}${$}`;case"**/*.*":return`(?:${y}${de(r)}${a})?${T}${$}${o}${c}${$}`;case"**/.*":return`(?:${y}${de(r)}${a})?${o}${c}${$}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(D);if(!Z)return;let be=k(Z[1]);return be?be+o+Z[2]:void 0}}},j=rt.removePrefix(t,L),U=k(j);return U&&r.strictSlashes!==!0&&(U+=`${a}?`),U};Ky.exports=Bl});var Zy=_((Bj,Xy)=>{"use strict";h();var pP=v("path"),mP=$y(),jl=zy(),Gl=nn(),_P=sn(),EP=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=EP(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=Gl.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?Gl.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=Gl.isWindows(r))=>(e instanceof RegExp?e:Ee.makeRe(e,r)).test(pP.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)):jl(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=jl.fastpaths(t,e)),i.output||(i=jl(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=_P;Xy.exports=Ee});var ya=_((Gj,Qy)=>{"use strict";h();Qy.exports=Zy()});var sS=_((Hj,rS)=>{"use strict";h();var eS=v("util"),tS=Pl(),Dt=ya(),ql=nn(),Jy=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=Dt(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)=>Dt(t,e);fe.isMatch=(t,e,r)=>Dt(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: "${eS.inspect(t)}"`);if(Array.isArray(e))return e.some(s=>fe.contains(t,s,r));if(typeof e=="string"){if(Jy(t)||Jy(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(!ql.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=Dt(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=Dt(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: "${eS.inspect(t)}"`);return[].concat(e).every(s=>Dt(s,r)(t))};fe.capture=(t,e,r)=>{let s=ql.isWindows(r),n=Dt.makeRe(String(t),{...r,capture:!0}).exec(s?ql.toPosixSlashes(e):e);if(n)return n.slice(1).map(o=>o===void 0?"":o)};fe.makeRe=(...t)=>Dt.makeRe(...t);fe.scan=(...t)=>Dt.scan(...t);fe.parse=(t,e)=>{let r=[];for(let s of[].concat(t||[]))for(let i of tS(String(s),e))r.push(Dt.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]:tS(t,e)};fe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return fe.braces(t,{...e,expand:!0})};rS.exports=fe});var hS=_(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 gP=v("path"),yP=Al(),Hl=sS(),iS="**",SP="\\",OP=/[*?]|^!/,RP=/\[[^[]*]/,vP=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,TP=/[!*+?@]\([^(]*\)/,AP=/,|\.\./,IP=/(?!^)\/{2,}/g;function nS(t,e={}){return!oS(t,e)}q.isStaticPattern=nS;function oS(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(SP)||OP.test(t)||RP.test(t)||vP.test(t)||e.extglob!==!1&&TP.test(t)||e.braceExpansion!==!1&&NP(t))}q.isDynamicPattern=oS;function NP(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 AP.test(s)}function bP(t){return Sa(t)?t.slice(1):t}q.convertToPositivePattern=bP;function wP(t){return"!"+t}q.convertToNegativePattern=wP;function Sa(t){return t.startsWith("!")&&t[1]!=="("}q.isNegativePattern=Sa;function aS(t){return!Sa(t)}q.isPositivePattern=aS;function CP(t){return t.filter(Sa)}q.getNegativePatterns=CP;function PP(t){return t.filter(aS)}q.getPositivePatterns=PP;function DP(t){return t.filter(e=>!Wl(e))}q.getPatternsInsideCurrentDirectory=DP;function xP(t){return t.filter(Wl)}q.getPatternsOutsideCurrentDirectory=xP;function Wl(t){return t.startsWith("..")||t.startsWith("./..")}q.isPatternRelatedToParentDirectory=Wl;function LP(t){return yP(t,{flipBackslashes:!1})}q.getBaseDirectory=LP;function MP(t){return t.includes(iS)}q.hasGlobStar=MP;function cS(t){return t.endsWith("/"+iS)}q.endsWithSlashGlobStar=cS;function FP(t){let e=gP.basename(t);return cS(t)||nS(e)}q.isAffectDepthOfReadingPattern=FP;function kP(t){return t.reduce((e,r)=>e.concat(uS(r)),[])}q.expandPatternsWithBraceExpansion=kP;function uS(t){let e=Hl.braces(t,{expand:!0,nodupes:!0});return e.sort((r,s)=>r.length-s.length),e.filter(r=>r!=="")}q.expandBraceExpansion=uS;function UP(t,e){let{parts:r}=Hl.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=UP;function lS(t,e){return Hl.makeRe(t,e)}q.makeRe=lS;function BP(t,e){return t.map(r=>lS(r,e))}q.convertPatternsToRe=BP;function jP(t,e){return e.some(r=>r.test(t))}q.matchAny=jP;function GP(t){return t.replace(IP,"/")}q.removeDuplicateSlashes=GP});var dS=_(Oa=>{"use strict";h();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.merge=void 0;var qP=yl();function HP(t){let e=qP(t);return t.forEach(r=>{r.once("error",s=>e.emit("error",s))}),e.once("close",()=>fS(t)),e.once("end",()=>fS(t)),e}Oa.merge=HP;function fS(t){t.forEach(e=>e.emit("close"))}});var pS=_(di=>{"use strict";h();Object.defineProperty(di,"__esModule",{value:!0});di.isEmpty=di.isString=void 0;function WP(t){return typeof t=="string"}di.isString=WP;function VP(t){return t===""}di.isEmpty=VP});var er=_(Me=>{"use strict";h();Object.defineProperty(Me,"__esModule",{value:!0});Me.string=Me.stream=Me.pattern=Me.path=Me.fs=Me.errno=Me.array=void 0;var $P=jg();Me.array=$P;var YP=Gg();Me.errno=YP;var KP=qg();Me.fs=KP;var zP=$g();Me.path=zP;var XP=hS();Me.pattern=XP;var ZP=dS();Me.stream=ZP;var QP=pS();Me.string=QP});var gS=_(Fe=>{"use strict";h();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.convertPatternGroupToTask=Fe.convertPatternGroupsToTasks=Fe.groupPatternsByBaseDirectory=Fe.getNegativePatternsAsPositive=Fe.getPositivePatterns=Fe.convertPatternsToTasks=Fe.generate=void 0;var gt=er();function JP(t,e){let r=mS(t,e),s=mS(e.ignore,e),i=_S(r),n=ES(r,s),o=i.filter(l=>gt.pattern.isStaticPattern(l,e)),a=i.filter(l=>gt.pattern.isDynamicPattern(l,e)),c=Vl(o,n,!1),u=Vl(a,n,!0);return c.concat(u)}Fe.generate=JP;function mS(t,e){let r=t;return e.braceExpansion&&(r=gt.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(s=>s.includes("/")?s:`**/${s}`)),r.map(s=>gt.pattern.removeDuplicateSlashes(s))}function Vl(t,e,r){let s=[],i=gt.pattern.getPatternsOutsideCurrentDirectory(t),n=gt.pattern.getPatternsInsideCurrentDirectory(t),o=$l(i),a=$l(n);return s.push(...Yl(o,e,r)),"."in a?s.push(Kl(".",n,e,r)):s.push(...Yl(a,e,r)),s}Fe.convertPatternsToTasks=Vl;function _S(t){return gt.pattern.getPositivePatterns(t)}Fe.getPositivePatterns=_S;function ES(t,e){return gt.pattern.getNegativePatterns(t).concat(e).map(gt.pattern.convertToPositivePattern)}Fe.getNegativePatternsAsPositive=ES;function $l(t){let e={};return t.reduce((r,s)=>{let i=gt.pattern.getBaseDirectory(s);return i in r?r[i].push(s):r[i]=[s],r},e)}Fe.groupPatternsByBaseDirectory=$l;function Yl(t,e,r){return Object.keys(t).map(s=>Kl(s,t[s],e,r))}Fe.convertPatternGroupsToTasks=Yl;function Kl(t,e,r,s){return{dynamic:s,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(gt.pattern.convertToNegativePattern))}}Fe.convertPatternGroupToTask=Kl});var SS=_(Ra=>{"use strict";h();Object.defineProperty(Ra,"__esModule",{value:!0});Ra.read=void 0;function eD(t,e,r){e.fs.lstat(t,(s,i)=>{if(s!==null){yS(r,s);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){zl(r,i);return}e.fs.stat(t,(n,o)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){yS(r,n);return}zl(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),zl(r,o)})})}Ra.read=eD;function yS(t,e){t(e)}function zl(t,e){t(null,e)}});var OS=_(va=>{"use strict";h();Object.defineProperty(va,"__esModule",{value:!0});va.read=void 0;function tD(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}}va.read=tD});var RS=_(Dr=>{"use strict";h();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.createFileSystemAdapter=Dr.FILE_SYSTEM_ADAPTER=void 0;var Ta=v("fs");Dr.FILE_SYSTEM_ADAPTER={lstat:Ta.lstat,stat:Ta.stat,lstatSync:Ta.lstatSync,statSync:Ta.statSync};function rD(t){return t===void 0?Dr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Dr.FILE_SYSTEM_ADAPTER),t)}Dr.createFileSystemAdapter=rD});var vS=_(Zl=>{"use strict";h();Object.defineProperty(Zl,"__esModule",{value:!0});var sD=RS(),Xl=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=sD.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}};Zl.default=Xl});var ys=_(xr=>{"use strict";h();Object.defineProperty(xr,"__esModule",{value:!0});xr.statSync=xr.stat=xr.Settings=void 0;var TS=SS(),iD=OS(),Ql=vS();xr.Settings=Ql.default;function nD(t,e,r){if(typeof e=="function"){TS.read(t,Jl(),e);return}TS.read(t,Jl(e),r)}xr.stat=nD;function oD(t,e){let r=Jl(e);return iD.read(t,r)}xr.statSync=oD;function Jl(t={}){return t instanceof Ql.default?t:new Ql.default(t)}});var NS=_((hG,IS)=>{"use strict";h();var AS;IS.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(AS||(AS=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var wS=_((dG,bS)=>{"use strict";h();bS.exports=cD;var aD=NS();function cD(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?aD(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 eh=_(Ia=>{"use strict";h();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Aa=process.versions.node.split(".");if(Aa[0]===void 0||Aa[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var CS=Number.parseInt(Aa[0],10),uD=Number.parseInt(Aa[1],10),PS=10,lD=10,hD=CS>PS,fD=CS===PS&&uD>=lD;Ia.IS_SUPPORT_READDIR_WITH_FILE_TYPES=hD||fD});var DS=_(Na=>{"use strict";h();Object.defineProperty(Na,"__esModule",{value:!0});Na.createDirentFromStats=void 0;var th=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 dD(t,e){return new th(t,e)}Na.createDirentFromStats=dD});var rh=_(ba=>{"use strict";h();Object.defineProperty(ba,"__esModule",{value:!0});ba.fs=void 0;var pD=DS();ba.fs=pD});var sh=_(wa=>{"use strict";h();Object.defineProperty(wa,"__esModule",{value:!0});wa.joinPathSegments=void 0;function mD(t,e,r){return t.endsWith(r)?t+e:t+r+e}wa.joinPathSegments=mD});var US=_(Lr=>{"use strict";h();Object.defineProperty(Lr,"__esModule",{value:!0});Lr.readdir=Lr.readdirWithFileTypes=Lr.read=void 0;var _D=ys(),xS=wS(),ED=eh(),LS=rh(),MS=sh();function gD(t,e,r){if(!e.stats&&ED.IS_SUPPORT_READDIR_WITH_FILE_TYPES){FS(t,e,r);return}kS(t,e,r)}Lr.read=gD;function FS(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(s,i)=>{if(s!==null){Ca(r,s);return}let n=i.map(a=>({dirent:a,name:a.name,path:MS.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ih(r,n);return}let o=n.map(a=>yD(a,e));xS(o,(a,c)=>{if(a!==null){Ca(r,a);return}ih(r,c)})})}Lr.readdirWithFileTypes=FS;function yD(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=LS.fs.createDirentFromStats(t.name,i),r(null,t)})}}function kS(t,e,r){e.fs.readdir(t,(s,i)=>{if(s!==null){Ca(r,s);return}let n=i.map(o=>{let a=MS.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{_D.stat(a,e.fsStatSettings,(u,l)=>{if(u!==null){c(u);return}let f={name:o,path:a,dirent:LS.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),c(null,f)})}});xS(n,(o,a)=>{if(o!==null){Ca(r,o);return}ih(r,a)})})}Lr.readdir=kS;function Ca(t,e){t(e)}function ih(t,e){t(null,e)}});var HS=_(Mr=>{"use strict";h();Object.defineProperty(Mr,"__esModule",{value:!0});Mr.readdir=Mr.readdirWithFileTypes=Mr.read=void 0;var SD=ys(),OD=eh(),BS=rh(),jS=sh();function RD(t,e){return!e.stats&&OD.IS_SUPPORT_READDIR_WITH_FILE_TYPES?GS(t,e):qS(t,e)}Mr.read=RD;function GS(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(s=>{let i={dirent:s,name:s.name,path:jS.joinPathSegments(t,s.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let n=e.fs.statSync(i.path);i.dirent=BS.fs.createDirentFromStats(i.name,n)}catch(n){if(e.throwErrorOnBrokenSymbolicLink)throw n}return i})}Mr.readdirWithFileTypes=GS;function qS(t,e){return e.fs.readdirSync(t).map(s=>{let i=jS.joinPathSegments(t,s,e.pathSegmentSeparator),n=SD.statSync(i,e.fsStatSettings),o={name:s,path:i,dirent:BS.fs.createDirentFromStats(s,n)};return e.stats&&(o.stats=n),o})}Mr.readdir=qS});var WS=_(Fr=>{"use strict";h();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.createFileSystemAdapter=Fr.FILE_SYSTEM_ADAPTER=void 0;var pi=v("fs");Fr.FILE_SYSTEM_ADAPTER={lstat:pi.lstat,stat:pi.stat,lstatSync:pi.lstatSync,statSync:pi.statSync,readdir:pi.readdir,readdirSync:pi.readdirSync};function vD(t){return t===void 0?Fr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Fr.FILE_SYSTEM_ADAPTER),t)}Fr.createFileSystemAdapter=vD});var VS=_(oh=>{"use strict";h();Object.defineProperty(oh,"__esModule",{value:!0});var TD=v("path"),AD=ys(),ID=WS(),nh=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ID.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,TD.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new AD.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};oh.default=nh});var Pa=_(kr=>{"use strict";h();Object.defineProperty(kr,"__esModule",{value:!0});kr.Settings=kr.scandirSync=kr.scandir=void 0;var $S=US(),ND=HS(),ah=VS();kr.Settings=ah.default;function bD(t,e,r){if(typeof e=="function"){$S.read(t,ch(),e);return}$S.read(t,ch(e),r)}kr.scandir=bD;function wD(t,e){let r=ch(e);return ND.read(t,r)}kr.scandirSync=wD;function ch(t={}){return t instanceof ah.default?t:new ah.default(t)}});var KS=_((xG,YS)=>{"use strict";h();function CD(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}}YS.exports=CD});var XS=_((MG,uh)=>{"use strict";h();var PD=KS();function zS(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=PD(DD),i=null,n=null,o=0,a=null,c={push:y,drain:lt,saturated:lt,pause:l,paused:!1,concurrency:r,running:u,resume:E,idle:g,length:f,getQueue:d,unshift:T,empty:lt,kill:L,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++,A()}}function g(){return o===0&&c.length()===0}function y(k,j){var U=s.get();U.context=t,U.release=A,U.value=k,U.callback=j||lt,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 T(k,j){var U=s.get();U.context=t,U.release=A,U.value=k,U.callback=j||lt,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 A(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 L(){i=null,n=null,c.drain=lt}function $(){i=null,n=null,c.drain(),c.drain=lt}function de(k){a=k}}function lt(){}function DD(){this.value=null,this.callback=lt,this.next=null,this.release=lt,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=lt,t.errorHandler&&n(r,o),i.call(t.context,r,s),t.release(t)}}function xD(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=zS(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(lt),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(lt),f}function u(){var l=i.drain,f=new Promise(function(d){i.drain=function(){l(),d()}});return f}}uh.exports=zS;uh.exports.promise=xD});var Da=_(xt=>{"use strict";h();Object.defineProperty(xt,"__esModule",{value:!0});xt.joinPathSegments=xt.replacePathSegmentSeparator=xt.isAppliedFilter=xt.isFatalError=void 0;function LD(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}xt.isFatalError=LD;function MD(t,e){return t===null||t(e)}xt.isAppliedFilter=MD;function FD(t,e){return t.split(/[/\\]/).join(e)}xt.replacePathSegmentSeparator=FD;function kD(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}xt.joinPathSegments=kD});var fh=_(hh=>{"use strict";h();Object.defineProperty(hh,"__esModule",{value:!0});var UD=Da(),lh=class{constructor(e,r){this._root=e,this._settings=r,this._root=UD.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};hh.default=lh});var mh=_(ph=>{"use strict";h();Object.defineProperty(ph,"__esModule",{value:!0});var BD=v("events"),jD=Pa(),GD=XS(),xa=Da(),qD=fh(),dh=class extends qD.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=jD.scandir,this._emitter=new BD.EventEmitter,this._queue=GD(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||!xa.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=xa.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),xa.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&xa.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ph.default=dh});var ZS=_(Eh=>{"use strict";h();Object.defineProperty(Eh,"__esModule",{value:!0});var HD=mh(),_h=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new HD.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{WD(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{VD(e,this._storage)}),this._reader.read()}};Eh.default=_h;function WD(t,e){t(e)}function VD(t,e){t(null,e)}});var QS=_(yh=>{"use strict";h();Object.defineProperty(yh,"__esModule",{value:!0});var $D=v("stream"),YD=mh(),gh=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new YD.default(this._root,this._settings),this._stream=new $D.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}};yh.default=gh});var JS=_(Oh=>{"use strict";h();Object.defineProperty(Oh,"__esModule",{value:!0});var KD=Pa(),La=Da(),zD=fh(),Sh=class extends zD.default{constructor(){super(...arguments),this._scandir=KD.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(La.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let s=e.path;r!==void 0&&(e.path=La.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),La.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&La.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(s,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Oh.default=Sh});var eO=_(vh=>{"use strict";h();Object.defineProperty(vh,"__esModule",{value:!0});var XD=JS(),Rh=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new XD.default(this._root,this._settings)}read(){return this._reader.read()}};vh.default=Rh});var tO=_(Ah=>{"use strict";h();Object.defineProperty(Ah,"__esModule",{value:!0});var ZD=v("path"),QD=Pa(),Th=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,ZD.sep),this.fsScandirSettings=new QD.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}};Ah.default=Th});var Fa=_(Lt=>{"use strict";h();Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Settings=Lt.walkStream=Lt.walkSync=Lt.walk=void 0;var rO=ZS(),JD=QS(),ex=eO(),Ih=tO();Lt.Settings=Ih.default;function tx(t,e,r){if(typeof e=="function"){new rO.default(t,Ma()).read(e);return}new rO.default(t,Ma(e)).read(r)}Lt.walk=tx;function rx(t,e){let r=Ma(e);return new ex.default(t,r).read()}Lt.walkSync=rx;function sx(t,e){let r=Ma(e);return new JD.default(t,r).read()}Lt.walkStream=sx;function Ma(t={}){return t instanceof Ih.default?t:new Ih.default(t)}});var ka=_(bh=>{"use strict";h();Object.defineProperty(bh,"__esModule",{value:!0});var ix=v("path"),nx=ys(),sO=er(),Nh=class{constructor(e){this._settings=e,this._fsStatSettings=new nx.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return ix.resolve(this._settings.cwd,e)}_makeEntry(e,r){let s={name:r,path:r,dirent:sO.fs.createDirentFromStats(r,e)};return this._settings.stats&&(s.stats=e),s}_isFatalError(e){return!sO.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};bh.default=Nh});var Ph=_(Ch=>{"use strict";h();Object.defineProperty(Ch,"__esModule",{value:!0});var ox=v("stream"),ax=ys(),cx=Fa(),ux=ka(),wh=class extends ux.default{constructor(){super(...arguments),this._walkStream=cx.walkStream,this._stat=ax.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let s=e.map(this._getFullEntryPath,this),i=new ox.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))})}};Ch.default=wh});var iO=_(xh=>{"use strict";h();Object.defineProperty(xh,"__esModule",{value:!0});var lx=Fa(),hx=ka(),fx=Ph(),Dh=class extends hx.default{constructor(){super(...arguments),this._walkAsync=lx.walk,this._readerStream=new fx.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))})}};xh.default=Dh});var nO=_(Mh=>{"use strict";h();Object.defineProperty(Mh,"__esModule",{value:!0});var an=er(),Lh=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 an.pattern.getPatternParts(e,this._micromatchOptions).map(s=>an.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:an.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(e){return an.array.splitWhen(e,r=>r.dynamic&&an.pattern.hasGlobStar(r.pattern))}};Mh.default=Lh});var oO=_(kh=>{"use strict";h();Object.defineProperty(kh,"__esModule",{value:!0});var dx=nO(),Fh=class extends dx.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}};kh.default=Fh});var aO=_(Bh=>{"use strict";h();Object.defineProperty(Bh,"__esModule",{value:!0});var Ua=er(),px=oO(),Uh=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 px.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Ua.pattern.isAffectDepthOfReadingPattern);return Ua.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,s,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=Ua.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!Ua.pattern.matchAny(e,r)}};Bh.default=Uh});var cO=_(Gh=>{"use strict";h();Object.defineProperty(Gh,"__esModule",{value:!0});var Ss=er(),jh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let s=Ss.pattern.convertPatternsToRe(e,this._micromatchOptions),i=Ss.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return n=>this._filter(n,s,i)}_filter(e,r,s){let i=Ss.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=Ss.path.makeAbsolute(this._settings.cwd,e);return Ss.pattern.matchAny(s,r)}_isMatchToPatterns(e,r,s){let i=Ss.pattern.matchAny(e,r);return!i&&s?Ss.pattern.matchAny(e+"/",r):i}};Gh.default=jh});var uO=_(Hh=>{"use strict";h();Object.defineProperty(Hh,"__esModule",{value:!0});var mx=er(),qh=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return mx.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Hh.default=qh});var hO=_(Vh=>{"use strict";h();Object.defineProperty(Vh,"__esModule",{value:!0});var lO=er(),Wh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=lO.path.makeAbsolute(this._settings.cwd,r),r=lO.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Vh.default=Wh});var Ba=_(Yh=>{"use strict";h();Object.defineProperty(Yh,"__esModule",{value:!0});var _x=v("path"),Ex=aO(),gx=cO(),yx=uO(),Sx=hO(),$h=class{constructor(e){this._settings=e,this.errorFilter=new yx.default(this._settings),this.entryFilter=new gx.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Ex.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Sx.default(this._settings)}_getRootDirectory(e){return _x.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}}};Yh.default=$h});var fO=_(zh=>{"use strict";h();Object.defineProperty(zh,"__esModule",{value:!0});var Ox=iO(),Rx=Ba(),Kh=class extends Rx.default{constructor(){super(...arguments),this._reader=new Ox.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)}};zh.default=Kh});var dO=_(Zh=>{"use strict";h();Object.defineProperty(Zh,"__esModule",{value:!0});var vx=v("stream"),Tx=Ph(),Ax=Ba(),Xh=class extends Ax.default{constructor(){super(...arguments),this._reader=new Tx.default(this._settings)}read(e){let r=this._getRootDirectory(e),s=this._getReaderOptions(e),i=this.api(r,e,s),n=new vx.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)}};Zh.default=Xh});var pO=_(Jh=>{"use strict";h();Object.defineProperty(Jh,"__esModule",{value:!0});var Ix=ys(),Nx=Fa(),bx=ka(),Qh=class extends bx.default{constructor(){super(...arguments),this._walkSync=Nx.walkSync,this._statSync=Ix.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)}};Jh.default=Qh});var mO=_(tf=>{"use strict";h();Object.defineProperty(tf,"__esModule",{value:!0});var wx=pO(),Cx=Ba(),ef=class extends Cx.default{constructor(){super(...arguments),this._reader=new wx.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)}};tf.default=ef});var _O=_(_i=>{"use strict";h();Object.defineProperty(_i,"__esModule",{value:!0});_i.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var mi=v("fs"),Px=v("os"),Dx=Math.max(Px.cpus().length,1);_i.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:mi.lstat,lstatSync:mi.lstatSync,stat:mi.stat,statSync:mi.statSync,readdir:mi.readdir,readdirSync:mi.readdirSync};var rf=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,Dx),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({},_i.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};_i.default=rf});var af=_((Pq,gO)=>{"use strict";h();var EO=gS(),xx=fO(),Lx=dO(),Mx=mO(),sf=_O(),ht=er();async function nf(t,e){yt(t);let r=of(t,xx.default,e),s=await Promise.all(r);return ht.array.flatten(s)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(u,l){yt(u);let f=of(u,Mx.default,l);return ht.array.flatten(f)}t.sync=e;function r(u,l){yt(u);let f=of(u,Lx.default,l);return ht.stream.merge(f)}t.stream=r;function s(u,l){yt(u);let f=[].concat(u),d=new sf.default(l);return EO.generate(f,d)}t.generateTasks=s;function i(u,l){yt(u);let f=new sf.default(l);return ht.pattern.isDynamicPattern(u,f)}t.isDynamicPattern=i;function n(u){return yt(u),ht.path.escape(u)}t.escapePath=n;function o(u){return yt(u),ht.path.convertPathToPattern(u)}t.convertPathToPattern=o;let a;(function(u){function l(d){return yt(d),ht.path.escapePosixPath(d)}u.escapePath=l;function f(d){return yt(d),ht.path.convertPosixPathToPattern(d)}u.convertPathToPattern=f})(a=t.posix||(t.posix={}));let c;(function(u){function l(d){return yt(d),ht.path.escapeWindowsPath(d)}u.escapePath=l;function f(d){return yt(d),ht.path.convertWindowsPathToPattern(d)}u.convertPathToPattern=f})(c=t.win32||(t.win32={}))})(nf||(nf={}));function of(t,e,r){let s=[].concat(t),i=new sf.default(r),n=EO.generate(s,i),o=new e(i);return n.map(o.read,o)}function yt(t){if(![].concat(t).every(s=>ht.string.isString(s)&&!ht.string.isEmpty(s)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}gO.exports=nf});var SO=_(Os=>{"use strict";h();var{promisify:Fx}=v("util"),yO=v("fs");async function cf(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await Fx(yO[t])(r))[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}function uf(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return yO[t](r)[e]()}catch(s){if(s.code==="ENOENT")return!1;throw s}}Os.isFile=cf.bind(null,"stat","isFile");Os.isDirectory=cf.bind(null,"stat","isDirectory");Os.isSymlink=cf.bind(null,"lstat","isSymbolicLink");Os.isFileSync=uf.bind(null,"statSync","isFile");Os.isDirectorySync=uf.bind(null,"statSync","isDirectory");Os.isSymlinkSync=uf.bind(null,"lstatSync","isSymbolicLink")});var AO=_((Mq,lf)=>{"use strict";h();var Rs=v("path"),OO=SO(),RO=t=>t.length>1?`{${t.join(",")}}`:t[0],vO=(t,e)=>{let r=t[0]==="!"?t.slice(1):t;return Rs.isAbsolute(r)?r:Rs.join(e,r)},kx=(t,e)=>Rs.extname(t)?`**/${t}`:`**/${t}.${RO(e)}`,TO=(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=>Rs.posix.join(t,kx(r,e.extensions))):e.files?e.files.map(r=>Rs.posix.join(t,`**/${r}`)):e.extensions?[Rs.posix.join(t,`**/*.${RO(e.extensions)}`)]:[Rs.posix.join(t,"**")]};lf.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 OO.isDirectory(vO(s,e.cwd))?TO(s,e):s));return[].concat.apply([],r)};lf.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=>OO.isDirectorySync(vO(s,e.cwd))?TO(s,e):s);return[].concat.apply([],r)}});var MO=_((kq,LO)=>{"use strict";h();function IO(t){return Array.isArray(t)?t:[t]}var CO="",NO=" ",hf="\\",Ux=/^\s+$/,Bx=/(?:[^\\]|^)\\$/,jx=/^\\!/,Gx=/^\\#/,qx=/\r?\n/g,Hx=/^\.*\/|^\.+$/,ff="/",PO="node-ignore";typeof Symbol<"u"&&(PO=Symbol.for("node-ignore"));var bO=PO,Wx=(t,e,r)=>Object.defineProperty(t,e,{value:r}),Vx=/([0-z])-([0-z])/g,DO=()=>!1,$x=t=>t.replace(Vx,(e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:CO),Yx=t=>{let{length:e}=t;return t.slice(0,e-e%2)},Kx=[[/\\?\s+$/,t=>t.indexOf("\\")===0?NO:CO],[/\\\s/g,()=>NO],[/[\\$.|*+(){^]/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,()=>hf],[/\\\\/g,()=>hf],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>e===hf?`\\[${r}${Yx(s)}${i}`:i==="]"&&s.length%2===0?`[${$x(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],wO=Object.create(null),zx=(t,e)=>{let r=wO[t];return r||(r=Kx.reduce((s,i)=>s.replace(i[0],i[1].bind(t)),t),wO[t]=r),e?new RegExp(r,"i"):new RegExp(r)},mf=t=>typeof t=="string",Xx=t=>t&&mf(t)&&!Ux.test(t)&&!Bx.test(t)&&t.indexOf("#")!==0,Zx=t=>t.split(qx),df=class{constructor(e,r,s,i){this.origin=e,this.pattern=r,this.negative=s,this.regex=i}},Qx=(t,e)=>{let r=t,s=!1;t.indexOf("!")===0&&(s=!0,t=t.substr(1)),t=t.replace(jx,"!").replace(Gx,"#");let i=zx(t,e);return new df(r,t,s,i)},Jx=(t,e)=>{throw new e(t)},tr=(t,e,r)=>mf(t)?t?tr.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),xO=t=>Hx.test(t);tr.isNotRelative=xO;tr.convert=t=>t;var pf=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:s=!1}={}){Wx(this,bO,!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[bO]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(Xx(e)){let r=Qx(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,IO(mf(e)?Zx(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&&tr.convert(e);return tr(n,e,this._allowRelativePaths?DO:Jx),this._t(n,r,s,i)}_t(e,r,s,i){if(e in r)return r[e];if(i||(i=e.split(ff)),i.pop(),!i.length)return r[e]=this._testOne(e,s);let n=this._t(i.join(ff)+ff,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 IO(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},ja=t=>new pf(t),eL=t=>tr(t&&tr.convert(t),t,DO);ja.isPathValid=eL;ja.default=ja;LO.exports=ja;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,"/");tr.convert=t;let e=/^[a-z]:\//i;tr.isNotRelative=r=>e.test(r)||xO(r)}});var wR=_((OW,bR)=>{"use strict";h();var _n=v("fs"),{Readable:e0}=v("stream"),mn=v("path"),{promisify:Ka}=v("util"),vf=ya(),t0=Ka(_n.readdir),r0=Ka(_n.stat),RR=Ka(_n.lstat),s0=Ka(_n.realpath),i0="!",IR="READDIRP_RECURSIVE_ERROR",n0=new Set(["ENOENT","EPERM","EACCES","ELOOP",IR]),Tf="files",NR="directories",$a="files_directories",Va="all",vR=[Tf,NR,$a,Va],o0=t=>n0.has(t.code),[TR,a0]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),c0=process.platform==="win32"&&(TR>10||TR===10&&a0>=5),AR=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=vf(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)===i0?r.push(vf(i.slice(1))):e.push(vf(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))}}},Ya=class t extends e0{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Tf,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=AR(r.fileFilter),this._directoryFilter=AR(r.directoryFilter);let n=r.lstat?RR:r0;c0?this._stat=o=>n(o,{bigint:!0}):this._stat=n,this._maxDepth=r.depth,this._wantsDir=[NR,$a,Va].includes(i),this._wantsFile=[Tf,$a,Va].includes(i),this._wantsEverything=i===Va,this._root=mn.resolve(s),this._isDirent="Dirent"in _n&&!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 t0(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=mn.resolve(mn.join(r,i));s={path:mn.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){o0(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 s0(s),n=await RR(i);if(n.isFile())return"file";if(n.isDirectory()){let o=i.length;if(s.startsWith(i)&&s.substr(o,1)===mn.sep){let a=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return a.code=IR,this._onError(a)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(e){let r=e&&e[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},Ti=(t,e={})=>{let r=e.entryType||e.type;if(r==="both"&&(r=$a),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&&!vR.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${vR.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new Ya(e)},u0=(t,e={})=>new Promise((r,s)=>{let i=[];Ti(t,e).on("data",n=>i.push(n)).on("end",()=>r(i)).on("error",n=>s(n))});Ti.promise=u0;Ti.ReaddirpStream=Ya;Ti.default=Ti;bR.exports=Ti});var Af=_((vW,CR)=>{"use strict";h();CR.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 FR=_((LR,MR)=>{"use strict";h();Object.defineProperty(LR,"__esModule",{value:!0});var xR=ya(),l0=Af(),PR="!",h0={returnIndex:!1},f0=t=>Array.isArray(t)?t:[t],d0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=xR(t,e);return s=>t===s||r(s)}return t instanceof RegExp?r=>t.test(r):r=>!1},DR=(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=l0(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},If=(t,e,r=h0)=>{if(t==null)throw new TypeError("anymatch: specify first argument");let s=typeof r=="boolean"?{returnIndex:r}:r,i=s.returnIndex||!1,n=f0(t),o=n.filter(c=>typeof c=="string"&&c.charAt(0)===PR).map(c=>c.slice(1)).map(c=>xR(c,s)),a=n.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==PR).map(c=>d0(c,s));return e==null?(c,u=!1)=>DR(a,o,c,typeof u=="boolean"?u:!1):DR(a,o,e,i)};If.default=If;MR.exports=If});var kR=_((IW,p0)=>{p0.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 BR=_((NW,UR)=>{"use strict";h();UR.exports=kR()});var GR=_((wW,jR)=>{"use strict";h();var m0=v("path"),_0=BR(),E0=new Set(_0);jR.exports=t=>E0.has(m0.extname(t).slice(1).toLowerCase())});var za=_(x=>{"use strict";h();var{sep:g0}=v("path"),{platform:Nf}=process,y0=v("os");x.EV_ALL="all";x.EV_READY="ready";x.EV_ADD="add";x.EV_CHANGE="change";x.EV_ADD_DIR="addDir";x.EV_UNLINK="unlink";x.EV_UNLINK_DIR="unlinkDir";x.EV_RAW="raw";x.EV_ERROR="error";x.STR_DATA="data";x.STR_END="end";x.STR_CLOSE="close";x.FSEVENT_CREATED="created";x.FSEVENT_MODIFIED="modified";x.FSEVENT_DELETED="deleted";x.FSEVENT_MOVED="moved";x.FSEVENT_CLONED="cloned";x.FSEVENT_UNKNOWN="unknown";x.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;x.FSEVENT_TYPE_FILE="file";x.FSEVENT_TYPE_DIRECTORY="directory";x.FSEVENT_TYPE_SYMLINK="symlink";x.KEY_LISTENERS="listeners";x.KEY_ERR="errHandlers";x.KEY_RAW="rawEmitters";x.HANDLER_KEYS=[x.KEY_LISTENERS,x.KEY_ERR,x.KEY_RAW];x.DOT_SLASH=`.${g0}`;x.BACK_SLASH_RE=/\\/g;x.DOUBLE_SLASH_RE=/\/\//;x.SLASH_OR_BACK_SLASH_RE=/[/\\]/;x.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;x.REPLACER_RE=/^\.[/\\]/;x.SLASH="/";x.SLASH_SLASH="//";x.BRACE_START="{";x.BANG="!";x.ONE_DOT=".";x.TWO_DOTS="..";x.STAR="*";x.GLOBSTAR="**";x.ROOT_GLOBSTAR="/**/*";x.SLASH_GLOBSTAR="/**";x.DIR_SUFFIX="Dir";x.ANYMATCH_OPTS={dot:!0};x.STRING_TYPE="string";x.FUNCTION_TYPE="function";x.EMPTY_STR="";x.EMPTY_FN=()=>{};x.IDENTITY_FN=t=>t;x.isWindows=Nf==="win32";x.isMacos=Nf==="darwin";x.isLinux=Nf==="linux";x.isIBMi=y0.type()==="OS400"});var YR=_((xW,$R)=>{"use strict";h();var rr=v("fs"),Ie=v("path"),{promisify:Sn}=v("util"),S0=GR(),{isWindows:O0,isLinux:R0,EMPTY_FN:v0,EMPTY_STR:T0,KEY_LISTENERS:Ai,KEY_ERR:bf,KEY_RAW:En,HANDLER_KEYS:A0,EV_CHANGE:Za,EV_ADD:Xa,EV_ADD_DIR:I0,EV_ERROR:HR,STR_DATA:N0,STR_END:b0,BRACE_START:w0,STAR:C0}=za(),P0="watch",D0=Sn(rr.open),WR=Sn(rr.stat),x0=Sn(rr.lstat),L0=Sn(rr.close),wf=Sn(rr.realpath),M0={lstat:x0,stat:WR},Pf=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},gn=(t,e,r)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(r)},F0=t=>e=>{let r=t[e];r instanceof Set?r.clear():delete t[e]},yn=(t,e,r)=>{let s=t[e];s instanceof Set?s.delete(r):s===r&&delete t[e]},VR=t=>t instanceof Set?t.size===0:!t,Qa=new Map;function qR(t,e,r,s,i){let n=(o,a)=>{r(t),i(o,a,{watchedPath:t}),a&&t!==a&&Ja(Ie.resolve(t,a),Ai,Ie.join(t,a))};try{return rr.watch(t,e,n)}catch(o){s(o)}}var Ja=(t,e,r,s,i)=>{let n=Qa.get(t);n&&Pf(n[e],o=>{o(r,s,i)})},k0=(t,e,r,s)=>{let{listener:i,errHandler:n,rawEmitter:o}=s,a=Qa.get(e),c;if(!r.persistent)return c=qR(t,r,i,n,o),c.close.bind(c);if(a)gn(a,Ai,i),gn(a,bf,n),gn(a,En,o);else{if(c=qR(t,r,Ja.bind(null,e,Ai),n,Ja.bind(null,e,En)),!c)return;c.on(HR,async u=>{let l=Ja.bind(null,e,bf);if(a.watcherUnusable=!0,O0&&u.code==="EPERM")try{let f=await D0(t,"r");await L0(f),l(u)}catch{}else l(u)}),a={listeners:i,errHandlers:n,rawEmitters:o,watcher:c},Qa.set(e,a)}return()=>{yn(a,Ai,i),yn(a,bf,n),yn(a,En,o),VR(a.listeners)&&(a.watcher.close(),Qa.delete(e),A0.forEach(F0(a)),a.watcher=void 0,Object.freeze(a))}},Cf=new Map,U0=(t,e,r,s)=>{let{listener:i,rawEmitter:n}=s,o=Cf.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,rr.unwatchFile(e),o=void 0),o?(gn(o,Ai,i),gn(o,En,n)):(o={listeners:i,rawEmitters:n,options:r,watcher:rr.watchFile(e,r,(l,f)=>{Pf(o.rawEmitters,E=>{E(Za,e,{curr:l,prev:f})});let d=l.mtimeMs;(l.size!==f.size||d>f.mtimeMs||d===0)&&Pf(o.listeners,E=>E(t,l))})},Cf.set(e,o)),()=>{yn(o,Ai,i),yn(o,En,n),VR(o.listeners)&&(Cf.delete(e),rr.unwatchFile(e),o.options=o.watcher=void 0,Object.freeze(o))}},Df=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=v0);let u;return s.usePolling?(c.interval=s.enableBinaryInterval&&S0(n)?s.binaryInterval:s.interval,u=U0(e,a,c,{listener:r,rawEmitter:this.fsw._emitRaw})):u=k0(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(P0,e,5)){if(!f||f.mtimeMs===0)try{let d=await WR(e);if(this.fsw.closed)return;let E=d.atimeMs,g=d.mtimeMs;(!E||E<=g||g!==a.mtimeMs)&&this.fsw._emit(Za,e,d),R0&&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(Za,e,f),a=f}}},u=this._watchWithNodeFs(e,c);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Xa,e,0))return;this.fsw._emit(Xa,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 wf(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(Za,s,e.stats)):(o.add(i),this.fsw._symlinkPaths.set(n,a),this.fsw._emit(Xa,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,T0),!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(N0,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(HR,this._boundHandleError);return new Promise(f=>l.once(b0,()=>{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(I0,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 M0[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(C0)&&!e.includes(w0),l;if(c.isDirectory()){let f=Ie.resolve(e),d=u?await wf(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 wf(e):e;if(this.fsw.closed)return;let d=Ie.dirname(a.watchPath);if(this.fsw._getWatchedDir(d).add(a.watchPath),this.fsw._emit(Xa,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}}};$R.exports=Df});var ev=_((MW,jf)=>{"use strict";h();var Uf=v("fs"),Ne=v("path"),{promisify:Bf}=v("util"),Ii;try{Ii=v("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Ii){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&&(Ii=void 0)}}var{EV_ADD:xf,EV_CHANGE:B0,EV_ADD_DIR:KR,EV_UNLINK:ec,EV_ERROR:j0,STR_DATA:G0,STR_END:q0,FSEVENT_CREATED:H0,FSEVENT_MODIFIED:W0,FSEVENT_DELETED:V0,FSEVENT_MOVED:$0,FSEVENT_UNKNOWN:Y0,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:K0,FSEVENT_TYPE_FILE:z0,FSEVENT_TYPE_DIRECTORY:On,FSEVENT_TYPE_SYMLINK:JR,ROOT_GLOBSTAR:zR,DIR_SUFFIX:X0,DOT_SLASH:XR,FUNCTION_TYPE:Lf,EMPTY_FN:Z0,IDENTITY_FN:Q0}=za(),J0=t=>isNaN(t)?{}:{depth:t},Ff=Bf(Uf.stat),eM=Bf(Uf.lstat),ZR=Bf(Uf.realpath),tM={stat:Ff,lstat:eM},vs=new Map,rM=10,sM=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),iM=(t,e)=>({stop:Ii.watch(t,e)});function nM(t,e,r,s){let i=Ne.extname(e)?Ne.dirname(e):e,n=Ne.dirname(i),o=vs.get(i);oM(n)&&(i=n);let a=Ne.resolve(t),c=a!==e,u=(f,d,E)=>{c&&(f=f.replace(e,a)),(f===a||!f.indexOf(a+Ne.sep))&&r(f,d,E)},l=!1;for(let f of vs.keys())if(e.indexOf(Ne.resolve(f)+Ne.sep)===0){i=f,o=vs.get(i),l=!0;break}return o||l?o.listeners.add(u):(o={listeners:new Set([u]),rawEmitter:s,watcher:iM(i,(f,d)=>{if(!o.listeners.size||d&K0)return;let E=Ii.getInfo(f,d);o.listeners.forEach(g=>{g(f,d,E)}),o.rawEmitter(E.event,f,E)})},vs.set(i,o)),()=>{let f=o.listeners;if(f.delete(u),!f.size&&(vs.delete(i),o.watcher))return o.watcher.stop().then(()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o)})}}var oM=t=>{let e=0;for(let r of vs.keys())if(r.indexOf(t)===0&&(e++,e>=rM))return!0;return!1},aM=()=>Ii&&vs.size<128,Mf=(t,e)=>{let r=0;for(;!t.indexOf(e)&&(t=Ne.dirname(t))!==e;)r++;return r},QR=(t,e)=>t.type===On&&e.isDirectory()||t.type===JR&&e.isSymbolicLink()||t.type===z0&&e.isFile(),kf=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+zR),!0;s.delete(e),s.delete(e+zR)}addOrChange(e,r,s,i,n,o,a,c){let u=n.has(o)?B0:xf;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 Ff(e);if(this.fsw.closed)return;QR(a,u)?this.addOrChange(e,r,s,i,n,o,a,c):this.handleEvent(ec,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(ec,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===ec){let l=c.type===On;(l||o.has(a))&&this.fsw._remove(n,a,l)}else{if(e===xf){if(c.type===On&&this.fsw._getWatchedDir(r),c.type===JR&&u.followSymlinks){let f=u.depth===void 0?void 0:Mf(s,i)+1;return this._addToFsEvents(r,!1,!0,f)}this.fsw._getWatchedDir(n).add(a)}let l=c.type===On?e+X0:e;this.fsw._emit(l,r),l===KR&&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=nM(e,r,async(c,u,l)=>{if(this.fsw.closed||n.depth!==void 0&&Mf(c,r)>n.depth)return;let f=s(Ne.join(e,Ne.relative(e,c)));if(i&&!i(f))return;let d=Ne.dirname(f),E=Ne.basename(f),g=this.fsw._getWatchedDir(l.type===On?f:d);if(sM.has(u)||l.event===Y0)if(typeof n.ignored===Lf){let y;try{y=await Ff(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,y))return;QR(l,y)?this.addOrChange(f,c,r,d,g,E,l,n):this.handleEvent(ec,f,c,r,d,g,E,l,n)}else this.checkExists(f,c,r,d,g,E,l,n);else switch(l.event){case H0:case W0:return this.addOrChange(f,c,r,d,g,E,l,n);case V0:case $0: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 ZR(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!==XR?a=o.replace(n,e):o!==XR&&(a=Ne.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(Ne.dirname(o)),u=Ne.basename(o);a&&this.fsw._getWatchedDir(o),!c.has(u)&&(c.add(u),(!i.ignoreInitial||n===!0)&&this.fsw._emit(a?KR:xf,o,r))}initWatch(e,r,s,i){if(this.fsw.closed)return;let n=this._watchWithFsEvents(s.watchPath,Ne.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===Lf?r:Q0,a=this.fsw._getWatchHelpers(e);try{let c=await tM[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),...J0(n.depth-(i||0))}).on(G0,u=>{if(this.fsw.closed||u.stats.isDirectory()&&!a.filterPath(u))return;let l=Ne.join(a.watchPath,u.path),{fullPath:f}=u;if(a.followSymlinks&&u.stats.isSymbolicLink()){let d=n.depth===void 0?void 0:Mf(l,Ne.resolve(a.watchPath))+1;this._handleFsEventsSymlink(l,f,o,d)}else this.emitAdd(l,u.stats,o,n,s)}).on(j0,Z0).on(q0,()=>{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===Lf)this.initWatch(void 0,e,a,o);else{let c;try{c=await ZR(a.watchPath)}catch{}this.initWatch(c,e,a,o)}}};jf.exports=kf;jf.exports.canUse=aM});var hv=_(td=>{"use strict";h();var{EventEmitter:cM}=v("events"),Jf=v("fs"),re=v("path"),{promisify:av}=v("util"),uM=wR(),$f=FR().default,lM=Al(),Gf=vl(),hM=Pl(),fM=Af(),dM=YR(),tv=ev(),{EV_ALL:qf,EV_READY:pM,EV_ADD:tc,EV_CHANGE:Rn,EV_UNLINK:rv,EV_ADD_DIR:mM,EV_UNLINK_DIR:_M,EV_RAW:EM,EV_ERROR:Hf,STR_CLOSE:gM,STR_END:yM,BACK_SLASH_RE:SM,DOUBLE_SLASH_RE:sv,SLASH_OR_BACK_SLASH_RE:OM,DOT_RE:RM,REPLACER_RE:vM,SLASH:Wf,SLASH_SLASH:TM,BRACE_START:AM,BANG:Yf,ONE_DOT:cv,TWO_DOTS:IM,GLOBSTAR:NM,SLASH_GLOBSTAR:Vf,ANYMATCH_OPTS:Kf,STRING_TYPE:ed,FUNCTION_TYPE:bM,EMPTY_STR:zf,EMPTY_FN:wM,isWindows:CM,isMacos:PM,isIBMi:DM}=za(),xM=av(Jf.stat),LM=av(Jf.readdir),Xf=(t=[])=>Array.isArray(t)?t:[t],uv=(t,e=[])=>(t.forEach(r=>{Array.isArray(r)?uv(r,e):e.push(r)}),e),iv=t=>{let e=uv(Xf(t));if(!e.every(r=>typeof r===ed))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(lv)},nv=t=>{let e=t.replace(SM,Wf),r=!1;for(e.startsWith(TM)&&(r=!0);e.match(sv);)e=e.replace(sv,Wf);return r&&(e=Wf+e),e},lv=t=>nv(re.normalize(nv(t))),ov=(t=zf)=>e=>typeof e!==ed?e:lv(re.isAbsolute(e)?e:re.join(t,e)),MM=(t,e)=>re.isAbsolute(t)?t:t.startsWith(Yf)?Yf+re.join(e,t.slice(1)):re.join(e,t),St=(t,e)=>t[e]===void 0,Zf=class{constructor(e,r){this.path=e,this._removeWatcher=r,this.items=new Set}add(e){let{items:r}=this;r&&e!==cv&&e!==IM&&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 LM(s)}catch{this._removeWatcher&&this._removeWatcher(re.dirname(s),re.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)}},FM="stat",kM="lstat",Qf=class{constructor(e,r,s,i){this.fsw=i,this.path=e=e.replace(vM,zf),this.watchPath=r,this.fullWatchPath=re.resolve(r),this.hasGlob=r!==e,e===zf&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?$f(e,void 0,Kf):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(n=>{n.length>1&&n.pop()}),this.followSymlinks=s,this.statMethod=s?FM:kM}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 re.join(this.watchPath,re.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===bM?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,r)&&this.fsw._hasReadPermissions(r)}getDirParts(e){if(!this.hasGlob)return[];let r=[];return(e.includes(AM)?hM.expand(e):[e]).forEach(i=>{r.push(re.relative(this.watchPath,i).split(OM))}),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===NM&&(s=!0),s||!r[0][o]||$f(n,r[0][o],Kf))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},rc=class extends cM{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,St(r,"persistent")&&(r.persistent=!0),St(r,"ignoreInitial")&&(r.ignoreInitial=!1),St(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),St(r,"interval")&&(r.interval=100),St(r,"binaryInterval")&&(r.binaryInterval=300),St(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,St(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),tv.canUse()||(r.useFsEvents=!1),St(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=PM),DM&&(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)),St(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),St(r,"followSymlinks")&&(r.followSymlinks=!0),St(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=Xf(r.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=wM,this._readyEmitted=!0,process.nextTick(()=>this.emit(pM)))},this._emitRaw=(...c)=>this.emit(EM,...c),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new tv(this):this._nodeFsHandler=new dM(this),Object.freeze(r)}add(e,r,s){let{cwd:i,disableGlobbing:n}=this.options;this.closed=!1;let o=iv(e);return i&&(o=o.map(a=>{let c=MM(a,i);return n||!Gf(a)?c:fM(c)})),o=o.filter(a=>a.startsWith(Yf)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+Vf),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(re.dirname(c),re.basename(r||c))})})),this}unwatch(e){if(this.closed)return this;let r=iv(e),{cwd:s}=this.options;return r.forEach(i=>{!re.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=re.join(s,i)),i=re.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Vf),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?re.relative(this.options.cwd,s):s;e[i||cv]=r.getChildren().sort()}),e}emitWithAll(e,r){this.emit(...r),e!==Hf&&this.emit(qf,...r)}async _emit(e,r,s,i,n){if(this.closed)return;let o=this.options;CM&&(r=re.normalize(r)),o.cwd&&(r=re.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===rv)return this._pendingUnlinks.set(r,a),setTimeout(()=>{this._pendingUnlinks.forEach((l,f)=>{this.emit(...l),this.emit(qf,...l),this._pendingUnlinks.delete(f)})},typeof o.atomic=="number"?o.atomic:100),this;e===tc&&this._pendingUnlinks.has(r)&&(e=a[0]=Rn,this._pendingUnlinks.delete(r))}if(c&&(e===tc||e===Rn)&&this._readyEmitted){let l=(f,d)=>{f?(e=a[0]=Hf,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===Rn&&!this._throttle(Rn,r,50))return this;if(o.alwaysStat&&s===void 0&&(e===tc||e===mM||e===Rn)){let l=o.cwd?re.join(o.cwd,r):r,f;try{f=await xM(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(Hf,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&&!re.isAbsolute(e)&&(o=re.join(this.options.cwd,e));let a=new Date,c=u=>{Jf.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&&RM.test(e))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,n=i&&i.map(ov(s)),o=Xf(n).filter(c=>typeof c===ed&&!Gf(c)).map(c=>c+Vf),a=this._getGlobIgnored().map(ov(s)).concat(n,o);this._userIgnored=$f(a,void 0,Kf)}return this._userIgnored([e,r])}_isntIgnored(e,r){return!this._isIgnored(e,r)}_getWatchHelpers(e,r){let s=r||this.options.disableGlobbing||!Gf(e)?e:lM(e),i=this.options.followSymlinks;return new Qf(e,s,i,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=re.resolve(e);return this._watched.has(r)||this._watched.set(r,new Zf(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=re.join(e,r),n=re.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=re.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(l)&&this._pendingWrites.get(l).cancelWait()===tc)return;this._watched.delete(i),this._watched.delete(n);let f=s?_M:rv;u&&!this._isIgnored(i)&&this._emit(f,i),this.options.useFsEvents||this._closePath(i)}_closePath(e){this._closeFile(e);let r=re.dirname(e);this._getWatchedDir(r).remove(re.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:qf,alwaysStat:!0,lstat:!0,...r},i=uM(e,s);return this._streams.add(i),i.once(gM,()=>{i=void 0}),i.once(yM,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};td.FSWatcher=rc;var UM=(t,e)=>{let r=new rc(e);return r.add(t),r};td.watch=UM});var rd=_((BW,fv)=>{"use strict";h();function BM(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}fv.exports=BM});var pv=_((GW,dv)=>{"use strict";h();var jM=typeof global=="object"&&global&&global.Object===Object&&global;dv.exports=jM});var sd=_((HW,mv)=>{"use strict";h();var GM=pv(),qM=typeof self=="object"&&self&&self.Object===Object&&self,HM=GM||qM||Function("return this")();mv.exports=HM});var Ev=_((VW,_v)=>{"use strict";h();var WM=sd(),VM=function(){return WM.Date.now()};_v.exports=VM});var yv=_((YW,gv)=>{"use strict";h();var $M=/\s/;function YM(t){for(var e=t.length;e--&&$M.test(t.charAt(e)););return e}gv.exports=YM});var Ov=_((zW,Sv)=>{"use strict";h();var KM=yv(),zM=/^\s+/;function XM(t){return t&&t.slice(0,KM(t)+1).replace(zM,"")}Sv.exports=XM});var id=_((ZW,Rv)=>{"use strict";h();var ZM=sd(),QM=ZM.Symbol;Rv.exports=QM});var Iv=_((JW,Av)=>{"use strict";h();var vv=id(),Tv=Object.prototype,JM=Tv.hasOwnProperty,eF=Tv.toString,vn=vv?vv.toStringTag:void 0;function tF(t){var e=JM.call(t,vn),r=t[vn];try{t[vn]=void 0;var s=!0}catch{}var i=eF.call(t);return s&&(e?t[vn]=r:delete t[vn]),i}Av.exports=tF});var bv=_((tV,Nv)=>{"use strict";h();var rF=Object.prototype,sF=rF.toString;function iF(t){return sF.call(t)}Nv.exports=iF});var Dv=_((sV,Pv)=>{"use strict";h();var wv=id(),nF=Iv(),oF=bv(),aF="[object Null]",cF="[object Undefined]",Cv=wv?wv.toStringTag:void 0;function uF(t){return t==null?t===void 0?cF:aF:Cv&&Cv in Object(t)?nF(t):oF(t)}Pv.exports=uF});var Lv=_((nV,xv)=>{"use strict";h();function lF(t){return t!=null&&typeof t=="object"}xv.exports=lF});var Fv=_((aV,Mv)=>{"use strict";h();var hF=Dv(),fF=Lv(),dF="[object Symbol]";function pF(t){return typeof t=="symbol"||fF(t)&&hF(t)==dF}Mv.exports=pF});var jv=_((uV,Bv)=>{"use strict";h();var mF=Ov(),kv=rd(),_F=Fv(),Uv=NaN,EF=/^[-+]0x[0-9a-f]+$/i,gF=/^0b[01]+$/i,yF=/^0o[0-7]+$/i,SF=parseInt;function OF(t){if(typeof t=="number")return t;if(_F(t))return Uv;if(kv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=kv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=mF(t);var r=gF.test(t);return r||yF.test(t)?SF(t.slice(2),r?2:8):EF.test(t)?Uv:+t}Bv.exports=OF});var Hv=_((hV,qv)=>{"use strict";h();var RF=rd(),nd=Ev(),Gv=jv(),vF="Expected a function",TF=Math.max,AF=Math.min;function IF(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(vF);e=Gv(e)||0,RF(r)&&(l=!!r.leading,f="maxWait"in r,n=f?TF(Gv(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(A,e),l?E(j):o}function y(j){var U=j-c,D=j-u,Z=e-U;return f?AF(Z,n-D):Z}function T(j){var U=j-c,D=j-u;return c===void 0||U>=e||U<0||f&&D>=n}function A(){var j=nd();if(T(j))return L(j);a=setTimeout(A,y(j))}function L(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:L(nd())}function k(){var j=nd(),U=T(j);if(s=arguments,i=this,c=j,U){if(a===void 0)return g(c);if(f)return clearTimeout(a),a=setTimeout(A,e),E(c)}return a===void 0&&(a=setTimeout(A,e)),o}return k.cancel=$,k.flush=de,k}qv.exports=IF});h();var md=Re(xn(),1),{WError:wT}=md.default,ie=class extends wT{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 M=Re(fr(),1),Yn=(0,M.variant)({FailedToGetDeviceCode:{},FailedToGetAuthToken:{},FailedToRenewAuthToken:{},FailedToRefreshTokenForSite:{},FailedToRevokeRefreshToken:(0,M.fields)(),UnknownFailure:(0,M.fields)(),FailedToFetchPackageJson:{},FailedToGetDeveloperApps:{},FailedToUpdateTelemetryConfig:{},FailedToSyncToRevision:(0,M.fields)(),FailedToCreateVersion:{},FailedToReadCache:(0,M.fields)(),FailedToWriteCache:(0,M.fields)(),UploadApplicationFailed:{},FailedToCreateDevCenterApp:{},GridAppFailedToUpdateFiles:{},FailedToCreateGridApp:(0,M.fields)(),FailedToGetPackageDetails:{},InvalidCreateAppResponse:{},InvalidDeployAppResponse:{},FailedToGetPagesDiff:{},InvalidViteBuildOutput:{},ViteModuleBundleNotFound:{},ViteFileNotFoundInOutput:(0,M.fields)(),FailedToCreatePresignedUrl:{},FailedToUploadApplicationFiles:{},FailedToVerifyDeployment:{},FailedToGetUserInfo:{},FailedToCreateDevelopmentSite:{},FailedToGetDevelopmentSites:{},FailedToGetDevelopmentSitesLimit:{},FailedToGetAppValidity:{},FailedToQuerySites:{},FailedToGetSite:{},FailedToDeploySite:{},FailedToPublishDeployment:{},SiteNotFound:{},FailedToCheckIfAppInstalled:{},TypeErrorInvalidUrl:{},FailedToGenerateSelfsignedCertificate:{},FailedToResolveViteOrigin:{},FailedToCreateAppRelease:{},FailedToUpdateAppRelease:{},FailedToGetResolveNpmDependenciesResult:{},FailedToResolveNpmDependencies:{},FailedToCheckDeprecatedStatus:{},FailedToCreateSiteOverride:{}}),Tc=(0,M.variant)({InvalidCustomElementTagName:(0,M.fields)(),LatestVersionOfCreateAppRequired:(0,M.fields)(),EmptyDirectoryRequiredAppGeneration:(0,M.fields)(),InvalidNewPackageName:(0,M.fields)(),UnsupportedPackageManager:(0,M.fields)(),UnsupportedPackageManagerWorkspaces:(0,M.fields)(),FailedAddingPackageToWorkspace:{},SitePermissionDenied:(0,M.fields)(),AppPermissionDenied:(0,M.fields)(),BuiltProjectNeeded:{},UnsupportedWixInstallCommand:{},WixUninstallMissingPackageName:{},FailedToReadJson:(0,M.fields)(),FailedToWriteJson:(0,M.fields)(),InvalidJsonFile:(0,M.fields)(),FailedToWriteWixLock:{},InvalidVeloConfigJson:(0,M.fields)(),DashboardPageConfigNotFound:(0,M.fields)(),EmbeddedScriptConfigNotFound:(0,M.fields)(),NoExtensionsFound:{},CustomElementConfigNotFound:(0,M.fields)(),NoPagesDirectoryFound:(0,M.fields)(),DashboardWidgetConfigNotFound:(0,M.fields)(),InvalidConfigSchemaError:(0,M.fields)(),InvalidParamsOverrideSchemaError:(0,M.fields)(),PermissionDenied:{},SiteSelectorTimedout:{},FailedToReadProjectFiles:(0,M.fields)(),FailedToCreateVersionForSubmittedApp:{},GridAppFilesMaxLengthExcceeded:(0,M.fields)(),DeviceCodeTimedOut:{},DuplicateComponentIdsError:(0,M.fields)(),FailedToSaveDevelopmentSite:(0,M.fields)(),FailedToBuildApp:{},FailedToInitializeGitRepo:(0,M.fields)(),FailedToInstallDependencies:(0,M.fields)(),FailedToCommitChanges:(0,M.fields)(),FailedToDeleteAuthData:(0,M.fields)(),FailedToDeleteLegacyAuthData:(0,M.fields)(),FailedToSaveAuthData:(0,M.fields)(),FailedToRenewAuthTokenSiteNotFound:(0,M.fields)(),FailedToInstallPackage:(0,M.fields)(),FailedToInstallPackages:(0,M.fields)(),FailedToUninstallPackage:(0,M.fields)(),FailedMigrationToAnyNpm:{},DeprecatedVersion:(0,M.fields)(),TemplatePathNotFound:(0,M.fields)(),FailedToCloneRepo:(0,M.fields)(),InvalidGitUrl:(0,M.fields)(),AuthenticationRequired:{},SiteConfiguredRequired:{},NonInteractiveTerminal:{},FailedToWatchFiles:(0,M.fields)(),CliAppVersionMismatch:(0,M.fields)(),InvalidEmbeddedScriptParameterNames:(0,M.fields)(),InvalidEmbeddedScriptTemplate:(0,M.fields)()}),ne=(0,M.variant)({...Yn,...Tc});h();h();var Ac=Re(fr(),1);function Kn(t){return t&&typeof t=="object"&&"cliCode"in t?(0,Ac.isOfVariant)(t.cliCode,ne):!1}function UA(t){return(0,Ac.isOfVariant)(t.cliCode,Yn)}h();var Ud=Re(fr(),1),Bd=Re(xn(),1);function jd(t){if(Kn(t)&&(0,Ud.isOfVariant)(t.cliCode,Tc))return t;let e=Bd.default.cause(t);return e?jd(e):null}function BA(t){let e=Kn(t)?t:new ie({code:ne.UnknownFailure({error:t})});return jd(e)??e}h();import{join as GA}from"node:path";h();import{join as jA}from"node:path";function Gd(t=""){return jA(t,".wix")}var bs="wix.config.json";function LU(t){return GA(Gd(t),"debug.log")}h();import rk,{createContext as sk,useContext as ik,useState as iT,useEffect as nk}from"react";h();h();var so=Re(fr(),1);import{join as Ge}from"node:path";h();var J;(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})(J||(J={}));var Nc;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Nc||(Nc={}));var w=J.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=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}},I=J.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"]),qA=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,J.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 Di=(t,e)=>{let r;switch(t.code){case I.invalid_type:t.received===w.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case I.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,J.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:r=`Unrecognized key(s) in object: ${J.joinValues(t.keys,", ")}`;break;case I.invalid_union:r="Invalid input";break;case I.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${J.joinValues(t.options)}`;break;case I.invalid_enum_value:r=`Invalid enum value. Expected ${J.joinValues(t.options)}, received '${t.received}'`;break;case I.invalid_arguments:r="Invalid function arguments";break;case I.invalid_return_type:r="Invalid function return type";break;case I.invalid_date:r="Invalid date";break;case I.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}"`:J.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case I.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 I.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 I.custom:r="Invalid input";break;case I.invalid_intersection_types:r="Intersection results could not be merged";break;case I.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case I.not_finite:r="Number must be finite";break;default:r=e.defaultError,J.assertNever(t)}return{message:r}},Wd=Di;function HA(t){Wd=t}function Xn(){return Wd}var Zn=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}},WA=[];function P(t,e){let r=Zn({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Xn(),Di].filter(s=>!!s)});t.common.issues.push(r)}var Pe=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"}),Vd=t=>({status:"dirty",value:t}),je=t=>({status:"valid",value:t}),bc=t=>t.status==="aborted",wc=t=>t.status==="dirty",xi=t=>t.status==="valid",Qn=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 st=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}},qd=(t,e)=>{if(xi(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 W(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 V=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 dr(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Pe,ctx:{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Qn(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:dr(e)},n=this._parseSync({data:e,path:i.path,parent:i});return qd(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:dr(e)},i=this._parse({data:e,path:s.path,parent:s}),n=await(Qn(i)?i:Promise.resolve(i));return qd(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:I.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 pt.create(this,this._def)}nullable(){return Ut.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return kt.create(this,this._def)}promise(){return _r.create(this,this._def)}or(e){return Xr.create([this,e],this._def)}and(e){return Zr.create(this,e,this._def)}transform(e){return new Xe({...W(this._def),schema:this,typeName:B.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new rs({...W(this._def),innerType:this,defaultValue:r,typeName:B.ZodDefault})}brand(){return new ro({typeName:B.ZodBranded,type:this,...W(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Ls({...W(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 Li.create(this,e)}readonly(){return Fs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},VA=/^c[^\s-]{8,}$/i,$A=/^[a-z][a-z0-9]*$/,YA=/^[0-9A-HJKMNP-TV-Z]{26}$/,KA=/^[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,zA=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,XA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ic,ZA=/^(((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}))$/,QA=/^(([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})))$/,JA=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 eI(t,e){return!!((e==="v4"||!e)&&ZA.test(t)||(e==="v6"||!e)&&QA.test(t))}var pr=class t extends V{_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:I.invalid_type,expected:w.string,received:n.parsedType}),H}let s=new Pe,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:I.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:I.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:I.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):a&&P(i,{code:I.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")zA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"email",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")Ic||(Ic=new RegExp(XA,"u")),Ic.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"emoji",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")KA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"uuid",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")VA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"cuid",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")$A.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"cuid2",code:I.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")YA.test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"ulid",code:I.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:I.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:I.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:I.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:I.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:I.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?JA(n).test(e.data)||(i=this._getOrReturnCtx(e,i),P(i,{code:I.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="ip"?eI(e.data,n.version)||(i=this._getOrReturnCtx(e,i),P(i,{validation:"ip",code:I.invalid_string,message:n.message}),s.dirty()):J.assertNever(n);return{status:s.value,value:e.data}}_regex(e,r,s){return this.refinement(i=>e.test(i),{validation:r,code:I.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}};pr.create=t=>{var e;return new pr({checks:[],typeName:B.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...W(t)})};function tI(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 Wr=class t extends V{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:I.invalid_type,expected:w.number,received:n.parsedType}),H}let s,i=new Pe;for(let n of this._def.checks)n.kind==="int"?J.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),P(s,{code:I.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:I.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:I.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):n.kind==="multipleOf"?tI(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),P(s,{code:I.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:I.not_finite,message:n.message}),i.dirty()):J.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"&&J.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)}};Wr.create=t=>new Wr({checks:[],typeName:B.ZodNumber,coerce:t?.coerce||!1,...W(t)});var Vr=class t extends V{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:I.invalid_type,expected:w.bigint,received:n.parsedType}),H}let s,i=new Pe;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:I.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:I.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:I.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):J.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}};Vr.create=t=>{var e;return new Vr({checks:[],typeName:B.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...W(t)})};var $r=class extends V{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==w.boolean){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.boolean,received:s.parsedType}),H}return je(e.data)}};$r.create=t=>new $r({typeName:B.ZodBoolean,coerce:t?.coerce||!1,...W(t)});var Yr=class t extends V{_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:I.invalid_type,expected:w.date,received:n.parsedType}),H}if(isNaN(e.data.getTime())){let n=this._getOrReturnCtx(e);return P(n,{code:I.invalid_date}),H}let s=new Pe,i;for(let n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),P(i,{code:I.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:I.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):J.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}};Yr.create=t=>new Yr({checks:[],coerce:t?.coerce||!1,typeName:B.ZodDate,...W(t)});var Cs=class extends V{_parse(e){if(this._getType(e)!==w.symbol){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.symbol,received:s.parsedType}),H}return je(e.data)}};Cs.create=t=>new Cs({typeName:B.ZodSymbol,...W(t)});var Kr=class extends V{_parse(e){if(this._getType(e)!==w.undefined){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.undefined,received:s.parsedType}),H}return je(e.data)}};Kr.create=t=>new Kr({typeName:B.ZodUndefined,...W(t)});var zr=class extends V{_parse(e){if(this._getType(e)!==w.null){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.null,received:s.parsedType}),H}return je(e.data)}};zr.create=t=>new zr({typeName:B.ZodNull,...W(t)});var mr=class extends V{constructor(){super(...arguments),this._any=!0}_parse(e){return je(e.data)}};mr.create=t=>new mr({typeName:B.ZodAny,...W(t)});var Ft=class extends V{constructor(){super(...arguments),this._unknown=!0}_parse(e){return je(e.data)}};Ft.create=t=>new Ft({typeName:B.ZodUnknown,...W(t)});var mt=class extends V{_parse(e){let r=this._getOrReturnCtx(e);return P(r,{code:I.invalid_type,expected:w.never,received:r.parsedType}),H}};mt.create=t=>new mt({typeName:B.ZodNever,...W(t)});var Ps=class extends V{_parse(e){if(this._getType(e)!==w.undefined){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.void,received:s.parsedType}),H}return je(e.data)}};Ps.create=t=>new Ps({typeName:B.ZodVoid,...W(t)});var kt=class t extends V{_parse(e){let{ctx:r,status:s}=this._processInputParams(e),i=this._def;if(r.parsedType!==w.array)return P(r,{code:I.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?I.too_big:I.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:I.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:I.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 st(r,o,r.path,a)))).then(o=>Pe.mergeArray(s,o));let n=[...r.data].map((o,a)=>i.type._parseSync(new st(r,o,r.path,a)));return Pe.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)}};kt.create=(t,e)=>new kt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:B.ZodArray,...W(e)});function ws(t){if(t instanceof He){let e={};for(let r in t.shape){let s=t.shape[r];e[r]=pt.create(ws(s))}return new He({...t._def,shape:()=>e})}else return t instanceof kt?new kt({...t._def,type:ws(t.element)}):t instanceof pt?pt.create(ws(t.unwrap())):t instanceof Ut?Ut.create(ws(t.unwrap())):t instanceof vt?vt.create(t.items.map(e=>ws(e))):t}var He=class t extends V{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=J.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:I.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 mt&&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 st(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof mt){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:I.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 st(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=>Pe.mergeObjectSync(s,u)):Pe.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 J.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 J.objectKeys(this.shape).forEach(s=>{e[s]||(r[s]=this.shape[s])}),new t({...this._def,shape:()=>r})}deepPartial(){return ws(this)}partial(e){let r={};return J.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 J.objectKeys(this.shape).forEach(s=>{if(e&&!e[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof pt;)n=n._def.innerType;r[s]=n}}),new t({...this._def,shape:()=>r})}keyof(){return $d(J.objectKeys(this.shape))}};He.create=(t,e)=>new He({shape:()=>t,unknownKeys:"strip",catchall:mt.create(),typeName:B.ZodObject,...W(e)});He.strictCreate=(t,e)=>new He({shape:()=>t,unknownKeys:"strict",catchall:mt.create(),typeName:B.ZodObject,...W(e)});He.lazycreate=(t,e)=>new He({shape:t,unknownKeys:"strip",catchall:mt.create(),typeName:B.ZodObject,...W(e)});var Xr=class extends V{_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:I.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:I.invalid_union,unionErrors:a}),H}}get options(){return this._def.options}};Xr.create=(t,e)=>new Xr({options:t,typeName:B.ZodUnion,...W(e)});var zn=t=>t instanceof Qr?zn(t.schema):t instanceof Xe?zn(t.innerType()):t instanceof Jr?[t.value]:t instanceof es?t.options:t instanceof ts?Object.keys(t.enum):t instanceof rs?zn(t._def.innerType):t instanceof Kr?[void 0]:t instanceof zr?[null]:null,Jn=class t extends V{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.object)return P(r,{code:I.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:I.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=zn(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,...W(s)})}};function Cc(t,e){let r=dr(t),s=dr(e);if(t===e)return{valid:!0,data:t};if(r===w.object&&s===w.object){let i=J.objectKeys(e),n=J.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of n){let c=Cc(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=Cc(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 Zr=class extends V{_parse(e){let{status:r,ctx:s}=this._processInputParams(e),i=(n,o)=>{if(bc(n)||bc(o))return H;let a=Cc(n.value,o.value);return a.valid?((wc(n)||wc(o))&&r.dirty(),{status:r.value,value:a.data}):(P(s,{code:I.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}))}};Zr.create=(t,e,r)=>new Zr({left:t,right:e,typeName:B.ZodIntersection,...W(r)});var vt=class t extends V{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.array)return P(s,{code:I.invalid_type,expected:w.array,received:s.parsedType}),H;if(s.data.length<this._def.items.length)return P(s,{code:I.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:I.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 st(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(n).then(o=>Pe.mergeArray(r,o)):Pe.mergeArray(r,n)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};vt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vt({items:t,typeName:B.ZodTuple,rest:null,...W(e)})};var eo=class t extends V{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:I.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 st(s,a,s.path,a)),value:o._parse(new st(s,s.data[a],s.path,a))});return s.common.async?Pe.mergeObjectAsync(r,i):Pe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,s){return r instanceof V?new t({keyType:e,valueType:r,typeName:B.ZodRecord,...W(s)}):new t({keyType:pr.create(),valueType:e,typeName:B.ZodRecord,...W(r)})}},Ds=class extends V{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:I.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 st(s,a,s.path,[u,"key"])),value:n._parse(new st(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}}}};Ds.create=(t,e,r)=>new Ds({valueType:e,keyType:t,typeName:B.ZodMap,...W(r)});var xs=class t extends V{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==w.set)return P(s,{code:I.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:I.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:I.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 st(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)}};xs.create=(t,e)=>new xs({valueType:t,minSize:null,maxSize:null,typeName:B.ZodSet,...W(e)});var to=class t extends V{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.function)return P(r,{code:I.invalid_type,expected:w.function,received:r.parsedType}),H;function s(a,c){return Zn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xn(),Di].filter(u=>!!u),issueData:{code:I.invalid_arguments,argumentsError:c}})}function i(a,c){return Zn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Xn(),Di].filter(u=>!!u),issueData:{code:I.invalid_return_type,returnTypeError:c}})}let n={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof _r){let a=this;return je(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 je(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:vt.create(e).rest(Ft.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||vt.create([]).rest(Ft.create()),returns:r||Ft.create(),typeName:B.ZodFunction,...W(s)})}},Qr=class extends V{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})}};Qr.create=(t,e)=>new Qr({getter:t,typeName:B.ZodLazy,...W(e)});var Jr=class extends V{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return P(r,{received:r.data,code:I.invalid_literal,expected:this._def.value}),H}return{status:"valid",value:e.data}}get value(){return this._def.value}};Jr.create=(t,e)=>new Jr({value:t,typeName:B.ZodLiteral,...W(e)});function $d(t,e){return new es({values:t,typeName:B.ZodEnum,...W(e)})}var es=class t extends V{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),s=this._def.values;return P(r,{expected:J.joinValues(s),received:r.parsedType,code:I.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:I.invalid_enum_value,options:s}),H}return je(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)))}};es.create=$d;var ts=class extends V{_parse(e){let r=J.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==w.string&&s.parsedType!==w.number){let i=J.objectValues(r);return P(s,{expected:J.joinValues(i),received:s.parsedType,code:I.invalid_type}),H}if(r.indexOf(e.data)===-1){let i=J.objectValues(r);return P(s,{received:s.data,code:I.invalid_enum_value,options:i}),H}return je(e.data)}get enum(){return this._def.values}};ts.create=(t,e)=>new ts({values:t,typeName:B.ZodNativeEnum,...W(e)});var _r=class extends V{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:I.invalid_type,expected:w.promise,received:r.parsedType}),H;let s=r.parsedType===w.promise?r.data:Promise.resolve(r.data);return je(s.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};_r.create=(t,e)=>new _r({type:t,typeName:B.ZodPromise,...W(e)});var Xe=class extends V{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(!xi(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=>xi(o)?Promise.resolve(i.transform(o.value,n)).then(a=>({status:r.value,value:a})):o);J.assertNever(i)}};Xe.create=(t,e,r)=>new Xe({schema:t,typeName:B.ZodEffects,effect:e,...W(r)});Xe.createWithPreprocess=(t,e,r)=>new Xe({schema:e,effect:{type:"preprocess",transform:t},typeName:B.ZodEffects,...W(r)});var pt=class extends V{_parse(e){return this._getType(e)===w.undefined?je(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pt.create=(t,e)=>new pt({innerType:t,typeName:B.ZodOptional,...W(e)});var Ut=class extends V{_parse(e){return this._getType(e)===w.null?je(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ut.create=(t,e)=>new Ut({innerType:t,typeName:B.ZodNullable,...W(e)});var rs=class extends V{_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}};rs.create=(t,e)=>new rs({innerType:t,typeName:B.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...W(e)});var Ls=class extends V{_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 Qn(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}};Ls.create=(t,e)=>new Ls({innerType:t,typeName:B.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...W(e)});var Ms=class extends V{_parse(e){if(this._getType(e)!==w.nan){let s=this._getOrReturnCtx(e);return P(s,{code:I.invalid_type,expected:w.nan,received:s.parsedType}),H}return{status:"valid",value:e.data}}};Ms.create=t=>new Ms({typeName:B.ZodNaN,...W(t)});var rI=Symbol("zod_brand"),ro=class extends V{_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}},Li=class t extends V{_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(),Vd(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})}},Fs=class extends V{_parse(e){let r=this._def.innerType._parse(e);return xi(r)&&(r.value=Object.freeze(r.value)),r}};Fs.create=(t,e)=>new Fs({innerType:t,typeName:B.ZodReadonly,...W(e)});var Yd=(t,e={},r)=>t?mr.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})}}):mr.create(),sI={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 iI=(t,e={message:`Input not instance of ${t.name}`})=>Yd(r=>r instanceof t,e),Kd=pr.create,zd=Wr.create,nI=Ms.create,oI=Vr.create,Xd=$r.create,aI=Yr.create,cI=Cs.create,uI=Kr.create,lI=zr.create,hI=mr.create,fI=Ft.create,dI=mt.create,pI=Ps.create,mI=kt.create,_I=He.create,EI=He.strictCreate,gI=Xr.create,yI=Jn.create,SI=Zr.create,OI=vt.create,RI=eo.create,vI=Ds.create,TI=xs.create,AI=to.create,II=Qr.create,NI=Jr.create,bI=es.create,wI=ts.create,CI=_r.create,Hd=Xe.create,PI=pt.create,DI=Ut.create,xI=Xe.createWithPreprocess,LI=Li.create,MI=()=>Kd().optional(),FI=()=>zd().optional(),kI=()=>Xd().optional(),UI={string:t=>pr.create({...t,coerce:!0}),number:t=>Wr.create({...t,coerce:!0}),boolean:t=>$r.create({...t,coerce:!0}),bigint:t=>Vr.create({...t,coerce:!0}),date:t=>Yr.create({...t,coerce:!0})},BI=H,b=Object.freeze({__proto__:null,defaultErrorMap:Di,setErrorMap:HA,getErrorMap:Xn,makeIssue:Zn,EMPTY_PATH:WA,addIssueToContext:P,ParseStatus:Pe,INVALID:H,DIRTY:Vd,OK:je,isAborted:bc,isDirty:wc,isValid:xi,isAsync:Qn,get util(){return J},get objectUtil(){return Nc},ZodParsedType:w,getParsedType:dr,ZodType:V,ZodString:pr,ZodNumber:Wr,ZodBigInt:Vr,ZodBoolean:$r,ZodDate:Yr,ZodSymbol:Cs,ZodUndefined:Kr,ZodNull:zr,ZodAny:mr,ZodUnknown:Ft,ZodNever:mt,ZodVoid:Ps,ZodArray:kt,ZodObject:He,ZodUnion:Xr,ZodDiscriminatedUnion:Jn,ZodIntersection:Zr,ZodTuple:vt,ZodRecord:eo,ZodMap:Ds,ZodSet:xs,ZodFunction:to,ZodLazy:Qr,ZodLiteral:Jr,ZodEnum:es,ZodNativeEnum:ts,ZodPromise:_r,ZodEffects:Xe,ZodTransformer:Xe,ZodOptional:pt,ZodNullable:Ut,ZodDefault:rs,ZodCatch:Ls,ZodNaN:Ms,BRAND:rI,ZodBranded:ro,ZodPipeline:Li,ZodReadonly:Fs,custom:Yd,Schema:V,ZodSchema:V,late:sI,get ZodFirstPartyTypeKind(){return B},coerce:UI,any:hI,array:mI,bigint:oI,boolean:Xd,date:aI,discriminatedUnion:yI,effect:Hd,enum:bI,function:AI,instanceof:iI,intersection:SI,lazy:II,literal:NI,map:vI,nan:nI,nativeEnum:wI,never:dI,null:lI,nullable:DI,number:zd,object:_I,oboolean:kI,onumber:FI,optional:PI,ostring:MI,pipeline:LI,preprocess:xI,promise:CI,record:RI,set:TI,strictObject:EI,string:Kd,symbol:cI,transformer:Hd,tuple:OI,undefined:uI,union:gI,unknown:fI,void:pI,NEVER:BI,ZodIssueCode:I,quotelessJson:qA,ZodError:ze});h();var Zd;(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"})(Zd||(Zd={}));var Qd;(function(t){t.NONE_VERTICAL="NONE_VERTICAL",t.TOP="TOP",t.CENTER_VERTICAL="CENTER_VERTICAL",t.BOTTOM="BOTTOM"})(Qd||(Qd={}));var Jd;(function(t){t.NONE_HORIZONTAL="NONE_HORIZONTAL",t.LEFT="LEFT",t.CENTER_HORIZONTAL="CENTER_HORIZONTAL",t.RIGHT="RIGHT"})(Jd||(Jd={}));var ep;(function(t){t.NONE_TYPE="NONE_TYPE",t.CUSTOM="CUSTOM",t.FULL="FULL"})(ep||(ep={}));var tp;(function(t){t.no_region="no_region",t.header="header",t.pageContainer="pageContainer",t.footer="footer"})(tp||(tp={}));var rp;(function(t){t.NO_UNIT="NO_UNIT",t.AUTO="AUTO",t.PX="PX",t.VH="VH",t.VW="VW",t.PERCENTAGE="PERCENTAGE"})(rp||(rp={}));var sp;(function(t){t.NO_HDOCKING="NO_HDOCKING",t.LEFT_DOCKING="LEFT_DOCKING",t.HCENTER="HCENTER",t.RIGHT_DOCKING="RIGHT_DOCKING"})(sp||(sp={}));var ip;(function(t){t.NO_VDOCKING="NO_VDOCKING",t.TOP_DOCKING="TOP_DOCKING",t.VCENTER="VCENTER",t.BOTTOM_DOCKING="BOTTOM_DOCKING"})(ip||(ip={}));var np;(function(t){t.UNKNOWN_REPLACEMENT="UNKNOWN_REPLACEMENT",t.REPLACING="REPLACING",t.REPLACEABLE="REPLACEABLE"})(np||(np={}));var op;(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"})(op||(op={}));var ap;(function(t){t.NO_PAGE="NO_PAGE",t.CURRENT="CURRENT",t.PAGE="PAGE",t.LIGHTBOX="LIGHTBOX"})(ap||(ap={}));var cp;(function(t){t.HEADER="HEADER",t.BODY="BODY",t.FOOTER="FOOTER"})(cp||(cp={}));var up;(function(t){t.NONE_PAGES="NONE_PAGES",t.ONCE="ONCE",t.SPECIFIC_PAGES="SPECIFIC_PAGES"})(up||(up={}));var ks;(function(t){t.NONE_PLACEMENT="NONE_PLACEMENT",t.HEAD="HEAD",t.BODY_START="BODY_START",t.BODY_END="BODY_END"})(ks||(ks={}));var ss;(function(t){t.UNKNOWN="UNKNOWN",t.ESSENTIAL="ESSENTIAL",t.FUNCTIONAL="FUNCTIONAL",t.ANALYTICS="ANALYTICS",t.ADVERTISING="ADVERTISING"})(ss||(ss={}));var lp;(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"})(lp||(lp={}));var hp;(function(t){t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t.XLARGE="XLARGE"})(hp||(hp={}));var fp;(function(t){t.ALIGN_LEFT="ALIGN_LEFT",t.ALIGN_CENTER="ALIGN_CENTER",t.ALIGN_RIGHT="ALIGN_RIGHT"})(fp||(fp={}));var dp;(function(t){t.TITLE="TITLE",t.PARAGRAPH="PARAGRAPH",t.LOWER_HIERARCHY_TEXTS="LOWER_HIERARCHY_TEXTS"})(dp||(dp={}));var pp;(function(t){t.WIDGET="WIDGET",t.PAGE="PAGE"})(pp||(pp={}));var mp;(function(t){t.NO_SCRIPT_TYPE="NO_SCRIPT_TYPE",t.MODULE="MODULE"})(mp||(mp={}));var _p;(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"})(_p||(_p={}));var Ep;(function(t){t.UNKNOWN_PRIMITIVE_TYPE="UNKNOWN_PRIMITIVE_TYPE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER"})(Ep||(Ep={}));var gp;(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"})(gp||(gp={}));var yp;(function(t){t.UNKNOWN_EXPOSURE="UNKNOWN_EXPOSURE",t.SETUP="SETUP",t.HIDDEN="HIDDEN",t.EXPOSED="EXPOSED"})(yp||(yp={}));var Sp;(function(t){t.UNDEFINED="UNDEFINED",t.ALLOW="ALLOW",t.DISALLOW="DISALLOW"})(Sp||(Sp={}));var Op;(function(t){t.BUSINESS_MANAGER="BUSINESS_MANAGER",t.BUSINESS_DASHBOARD_HOST="BUSINESS_DASHBOARD_HOST",t.SIDEBAR_FOOTER="SIDEBAR_FOOTER"})(Op||(Op={}));var Rp;(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"})(Rp||(Rp={}));var vp;(function(t){t.Metric="Metric",t.Imperial="Imperial"})(vp||(vp={}));var Tp;(function(t){t.WIX="WIX",t.POS="POS"})(Tp||(Tp={}));var Ap;(function(t){t.UNDEFINED="UNDEFINED",t.BEFORE_BLOCKING="BEFORE_BLOCKING",t.BEFORE="BEFORE",t.AFTER="AFTER"})(Ap||(Ap={}));var Ip;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIDGET_COMPONENT="WIDGET_COMPONENT",t.GENERIC="GENERIC"})(Ip||(Ip={}));var Np;(function(t){t.UNKNOWN_EXECUTION_TYPE="UNKNOWN_EXECUTION_TYPE",t.SYNC="SYNC",t.ASYNC="ASYNC"})(Np||(Np={}));var bp;(function(t){t.INVALID="INVALID",t.BACK_OFFICE_MENU_ITEM="BACK_OFFICE_MENU_ITEM",t.BACK_OFFICE_EXTENSION_WIDGET="BACK_OFFICE_EXTENSION_WIDGET"})(bp||(bp={}));var wp;(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"})(wp||(wp={}));var Cp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.MODULE="MODULE"})(Cp||(Cp={}));var Pp;(function(t){t.PAGE="PAGE",t.MODAL="MODAL"})(Pp||(Pp={}));var Dp;(function(t){t.UNSPECIFIED="UNSPECIFIED",t.RELATED_ITEMS="RELATED_ITEMS",t.GLOBAL="GLOBAL"})(Dp||(Dp={}));var xp;(function(t){t.UNSPECIFIED_LOCKABLE="UNSPECIFIED_LOCKABLE",t.LOCKED="LOCKED",t.UNLOCKED="UNLOCKED"})(xp||(xp={}));var Lp;(function(t){t.UNSPECIFIED_RESTRICTED="UNSPECIFIED_RESTRICTED",t.ALLOW="ALLOW",t.WARN="WARN"})(Lp||(Lp={}));var Mp;(function(t){t.UNKNOWN="UNKNOWN",t.OR="OR",t.AND="AND"})(Mp||(Mp={}));var Fp;(function(t){t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE"})(Fp||(Fp={}));var kp;(function(t){t.TEXT="TEXT",t.PASSWORD="PASSWORD",t.CODE="CODE"})(kp||(kp={}));var Up;(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"})(Up||(Up={}));var Bp;(function(t){t.UNKNOWN_SELECTION="UNKNOWN_SELECTION",t.SINGLE_SELECTION="SINGLE_SELECTION"})(Bp||(Bp={}));var jp;(function(t){t.UNKNOWN_FILTER_OPTIONS="UNKNOWN_FILTER_OPTIONS",t.STATIC="STATIC"})(jp||(jp={}));var Gp;(function(t){t.UNKNOWN_CHANNEL_TYPE="UNKNOWN_CHANNEL_TYPE",t.DIRECT_MESSAGING="DIRECT_MESSAGING",t.EMAIL="EMAIL",t.SMS="SMS"})(Gp||(Gp={}));var qp;(function(t){t.TEXT="TEXT",t.MEDIA="MEDIA",t.CARD="CARD",t.ANNOUNCEMENT="ANNOUNCEMENT",t.FORM="FORM"})(qp||(qp={}));var Hp;(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"})(Hp||(Hp={}));var Wp;(function(t){t.SMS="SMS",t.MMS="MMS"})(Wp||(Wp={}));var Vp;(function(t){t.UNKNOWN_INIT_DIRECTION="UNKNOWN_INIT_DIRECTION",t.BUSINESS="BUSINESS",t.CUSTOMER="CUSTOMER",t.BOTH="BOTH"})(Vp||(Vp={}));var $p;(function(t){t.UNDEFINED="UNDEFINED",t.GOOGLE="GOOGLE",t.I_CAL="I_CAL",t.MICROSOFT="MICROSOFT",t.OTHER="OTHER"})($p||($p={}));var Yp;(function(t){t.OAUTH="OAUTH",t.CREDENTIALS="CREDENTIALS"})(Yp||(Yp={}));var Kp;(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"})(Kp||(Kp={}));var zp;(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"})(zp||(zp={}));var Xp;(function(t){t.NAVIGATE="NAVIGATE",t.MODAL="MODAL"})(Xp||(Xp={}));var Zp;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(Zp||(Zp={}));var Qp;(function(t){t.UNKNOWN_STATE="UNKNOWN_STATE",t.DEFAULT_ON="DEFAULT_ON",t.DEFAULT_OFF="DEFAULT_OFF",t.ALWAYS_ON="ALWAYS_ON"})(Qp||(Qp={}));var Jp;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.PROMOTIONAL="PROMOTIONAL",t.TRANSACTIONAL="TRANSACTIONAL"})(Jp||(Jp={}));var em;(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"})(em||(em={}));var tm;(function(t){t.UNDEFINED="UNDEFINED",t.DAY="DAY",t.WEEK="WEEK",t.MONTH="MONTH",t.YEAR="YEAR"})(tm||(tm={}));var rm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.STRING="STRING",t.ARRAY="ARRAY"})(rm||(rm={}));var sm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USERS="WIX_USERS",t.SITE_CONTRIBUTORS="SITE_CONTRIBUTORS"})(sm||(sm={}));var im;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.WIX_USER="WIX_USER",t.WIX_APP="WIX_APP"})(im||(im={}));var nm;(function(t){t.UNKNOWN_LEVEL="UNKNOWN_LEVEL",t.ACCOUNT="ACCOUNT",t.USER="USER",t.SITE="SITE"})(nm||(nm={}));var om;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.URL="URL",t.SPOUT="SPOUT",t.INITIATOR="INITIATOR"})(om||(om={}));var am;(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"})(am||(am={}));var cm;(function(t){t.UNKNOWN_ANDROID_STYLE="UNKNOWN_ANDROID_STYLE",t.BIG_TEXT="BIG_TEXT",t.MESSAGING="MESSAGING",t.INBOX="INBOX"})(cm||(cm={}));var um;(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"})(um||(um={}));var lm;(function(t){t.UNKNOWN_INTENT="UNKNOWN_INTENT",t.MARKETING="MARKETING",t.TRANSACTIONAL="TRANSACTIONAL"})(lm||(lm={}));var hm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACTS="CONTACTS"})(hm||(hm={}));var fm;(function(t){t.UNKNOWN_TYPE="UNKNOWN_TYPE",t.CONTACT="CONTACT",t.SITE_MEMBER="SITE_MEMBER"})(fm||(fm={}));var dm;(function(t){t.LIVE_SITE="LIVE_SITE",t.BUSINESS_MANAGER="BUSINESS_MANAGER"})(dm||(dm={}));var pm;(function(t){t.UNKNOWN_SCOPE="UNKNOWN_SCOPE",t.GLOBAL="GLOBAL",t.SITE="SITE"})(pm||(pm={}));var mm;(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"})(mm||(mm={}));var _m;(function(t){t.UNKNOWN="UNKNOWN",t.AUTO="AUTO",t.FIXED="FIXED"})(_m||(_m={}));var jI="dist",Em=".wix",gm="src",GI=Ge(Em,"app.config.json"),qI=Ge(Em,"dev.log"),ym=Ge(gm,"dashboard"),Us=Ge(ym,"pages"),Mi=Ge(ym,"widgets"),Sm=Ge(gm,"site"),HI=Ge(Sm,"widgets"),Bs=Ge(Sm,"embedded-scripts"),js=Ge(HI,"custom-elements");function Om(t){return Ge(t,Us)}function Rm(t){return Ge(t,jI)}function WU(t){return Ge(Rm(t),"statics")}function VU(t){return Ge(t,GI)}function $U(t){return Ge(t,qI)}function YU(t){return Ge(Rm(t),"devcenter","app-manifest.json")}var WI=b.object({id:b.string(),label:b.string(),priority:b.number().int().optional()}),VI=b.object({sidebar:b.object({categories:b.array(WI).optional()}).optional()}),vm=b.object({appId:b.string().uuid(),projectId:b.string().optional(),sentryDSN:b.string().optional(),trusted:b.boolean().default(!1),dashboard:VI.optional()}).strict(),KU=b.object({siteId:b.string().uuid().optional(),devArmTag:b.string().optional(),devSiteOverrideId:b.string().optional()}),$I=b.object({disabled:b.boolean().optional(),categoryId:b.string().uuid().optional(),priority:b.number().int().optional(),whenActive:b.object({selectedPageId:b.string().optional(),hideSidebar:b.boolean().optional()}).optional()}),Tm=b.object({id:b.string().uuid(),title:b.string().min(1),additionalRoutes:b.array(b.string()).optional(),requiredPermission:b.string().optional(),sidebar:$I.optional(),sentryDSN:b.string().optional(),experiments:b.object({enabledBy:b.string()}).optional()}).strict(),Am=b.object({id:b.string().uuid(),title:b.string().min(1),requiredPermission:b.string().optional(),width:b.number(),height:b.number(),containerId:b.string().uuid(),sentryDSN:b.string().optional()}),Im=b.object({id:b.string().uuid(),name:b.string().min(1),scriptType:b.enum([ss.FUNCTIONAL,ss.ESSENTIAL,ss.ANALYTICS,ss.ADVERTISING]),placement:b.enum([ks.HEAD,ks.BODY_START,ks.BODY_END])}),is=(0,so.variant)({Site:{},Editor:{},Dashboard:(0,so.fields)()}),Nm=b.object({id:b.string().uuid(),title:b.string().min(1),stretchable:b.boolean().optional(),height:b.number().optional(),width:b.number().optional(),showPageInMenu:b.boolean().optional(),installation:b.object({autoAddToSite:b.boolean().optional(),essential:b.boolean().optional(),maxInstances:b.number().optional()}).optional()}),bm=b.record(b.string());h();var xg=Re(wg(),1),Lg=Re(xn(),1);import{statSync as Tw}from"node:fs";import{access as Aw,readFile as Iw,writeFile as Cg,mkdir as Pg,stat as Nw}from"node:fs/promises";import{dirname as Dg,join as bw}from"node:path";import{EOL as ww}from"node:os";function Cw(t,e){return JSON.stringify(t,null,e?.spaces).concat(ww)}async function Mg(t,e,r){try{let s=Cw(e,r);await Pg(Dg(t),{recursive:!0}),await Cg(t,s,"utf-8")}catch(s){throw new ie({code:ne.FailedToWriteJson({filePath:t,cause:s}),cause:s})}}async function Qt(t){let e=null;try{e=await Iw(t,"utf-8")}catch(r){throw new ie({code:ne.FailedToReadJson({filePath:t,cause:r})})}try{return JSON.parse(e)}catch(r){throw new ie({code:ne.InvalidJsonFile({filePath:t,cause:r})})}}function Pr(t){return Aw(t).then(()=>!0).catch(()=>!1)}async function U1(t,e){await Pg(Dg(t),{recursive:!0}),await Cg(t,e,"utf-8")}async function B1(t,e){if(!await Pr(t))throw new Lg.default({name:"PathNotFound"},`Folder not found at '${t}'`);let r=0,s=0;await(0,xg.create)({strict:!0,gzip:!0,portable:!0,cwd:t,filter(n){let o=bw(t,n),a=Tw(o);return a.isFile()&&(r++,s+=a.size),!0},file:e},["."]);let i=(await Nw(e)).size/1024;return{fileCount:r,compressedSizeInKb:Math.round(i),uncompressedSizeInKb:Math.round(s/1024)}}async function Fg(){let t=await Qt(bs),e=vm.safeParse(t);if(e.success)return e.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:bs,zodError:e.error})})}async function $1(t){return Mg(bs,t,{spaces:2})}h();h();import{join as yf}from"node:path";h();var WO=Re(yl(),1),ln=Re(af(),1),un=Re(AO(),1);import aL from"node:fs";import cL from"node:path";h();var _f=Re(af(),1),kO=Re(MO(),1);import sL from"node:process";import FO from"node:fs";import gi from"node:path";h();function Ei(t){let e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}h();import{fileURLToPath as tL}from"node:url";import{Transform as rL}from"node:stream";var cn=t=>t instanceof URL?tL(t):t,Ga=class extends rL{constructor(e){super({objectMode:!0,transform(r,s,i){i(void 0,e(r)?r:void 0)}})}},qa=t=>t[0]==="!";var UO={ignore:["**/node_modules","**/flow-typed","**/coverage","**/.git"],absolute:!0,dot:!0},BO="**/.gitignore",iL=(t,e)=>qa(t)?"!"+gi.posix.join(e,t.slice(1)):gi.posix.join(e,t),nL=(t,e)=>{let r=Ei(gi.relative(e,gi.dirname(t.filePath)));return t.content.split(/\r?\n/).filter(s=>s&&!s.startsWith("#")).map(s=>iL(s,r))},oL=(t,e)=>{if(e=Ei(e),gi.isAbsolute(t)){if(Ei(t).startsWith(e))return gi.relative(e,t);throw new Error(`Path ${t} is not in cwd ${e}`)}return t},jO=(t,e)=>{let r=t.flatMap(i=>nL(i,e)),s=(0,kO.default)().add(r);return i=>(i=cn(i),i=oL(i,e),i?s.ignores(Ei(i)):!1)},GO=(t={})=>({cwd:cn(t.cwd)||sL.cwd(),suppressErrors:!!t.suppressErrors,deep:typeof t.deep=="number"?t.deep:Number.POSITIVE_INFINITY}),qO=async(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=GO(e),n=await(0,_f.default)(t,{cwd:r,suppressErrors:s,deep:i,...UO}),o=await Promise.all(n.map(async a=>({filePath:a,content:await FO.promises.readFile(a,"utf8")})));return jO(o,r)},HO=(t,e)=>{let{cwd:r,suppressErrors:s,deep:i}=GO(e),o=_f.default.sync(t,{cwd:r,suppressErrors:s,deep:i,...UO}).map(a=>({filePath:a,content:FO.readFileSync(a,"utf8")}));return jO(o,r)};var uL=t=>{if(t.some(e=>typeof e!="string"))throw new TypeError("Patterns must be a string or an array of strings")},Ef=t=>(t=[...new Set([t].flat())],uL(t),t),lL=t=>{if(!t.cwd)return;let e;try{e=aL.statSync(t.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},VO=(t={})=>(t={...t,ignore:t.ignore||[],expandDirectories:t.expandDirectories===void 0?!0:t.expandDirectories,cwd:cn(t.cwd)},lL(t),t),$O=t=>async(e,r)=>t(Ef(e),VO(r)),Ha=t=>(e,r)=>t(Ef(e),VO(r)),YO=t=>{let{ignoreFiles:e,gitignore:r}=t,s=e?Ef(e):[];return r&&s.push(BO),s},hL=async t=>{let e=YO(t);return zO(e.length>0&&await qO(e,t))},KO=t=>{let e=YO(t);return zO(e.length>0&&HO(e,t))},zO=t=>{let e=new Set;return r=>{let s=r.path||r,i=cL.normalize(s),n=e.has(i)||t&&t(s);return e.add(i),!n}},XO=(t,e)=>t.flat().filter(r=>e(r)),fL=(t,e)=>(0,WO.default)(t).pipe(new Ga(r=>e(r))),ZO=(t,e)=>{let r=[];for(;t.length>0;){let s=t.findIndex(n=>qa(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},QO=(t,e)=>({...e?{cwd:e}:{},...Array.isArray(t)?{files:t}:t}),JO=async(t,e)=>{let r=ZO(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=QO(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,un.default)(c,n),(0,un.default)(u.ignore,o)]),{patterns:c,options:u}}))},gf=(t,e)=>{let r=ZO(t,e),{cwd:s,expandDirectories:i}=e;if(!i)return r;let n=QO(i,s),o=s?{cwd:s}:void 0;return r.map(a=>{let{patterns:c,options:u}=a;return c=un.default.sync(c,n),u.ignore=un.default.sync(u.ignore,o),{patterns:c,options:u}})},yi=$O(async(t,e)=>{let[r,s]=await Promise.all([JO(t,e),hL(e)]),i=await Promise.all(r.map(n=>(0,ln.default)(n.patterns,n.options)));return XO(i,s)}),iH=Ha((t,e)=>{let r=gf(t,e),s=KO(e),i=r.map(n=>ln.default.sync(n.patterns,n.options));return XO(i,s)}),nH=Ha((t,e)=>{let r=gf(t,e),s=KO(e),i=r.map(n=>ln.default.stream(n.patterns,n.options));return fL(i,s)}),oH=Ha((t,e)=>t.some(r=>ln.default.isDynamicPattern(r,e))),aH=$O(JO),cH=Ha(gf);h();var Ur=Re(fr(),1),ke=(0,Ur.variant)({DashboardPage:(0,Ur.fields)(),DashboardWidget:(0,Ur.fields)(),DashboardSidebarCategory:(0,Ur.fields)(),EmbeddedScript:(0,Ur.fields)(),CustomElement:(0,Ur.fields)()});h();var hn=Re(fr(),1);h();import{dirname as tR,join as eR,parse as dL,relative as pL,sep as rR}from"node:path";import{platform as mL}from"node:os";function Si(t,e){let{dir:r,name:s}=dL(t);return e!==""?eR(r,`${s}.${e}`):eR(r,s)}function sR(t,e){return`/${pL(Om(t),tR(e)).split(rR).map(encodeURIComponent).join("/")}`}function iR(t){return tR(t).split(rR).at(-1)}function Oi(t){return mL()==="win32"?t.replace(/\\/g,"/"):t}async function nR(t){let e=Si(t,"json");if(!await Pr(e))throw new ie({code:ne.DashboardPageConfigNotFound({configPath:e})});let s=await Qt(e),i=Tm.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function oR(t){let e=Si(t,"json");if(!await Pr(e))throw new ie({code:ne.DashboardWidgetConfigNotFound({configPath:e})});let s=await Qt(e),i=Am.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}function _L(t){return`wix/html/dashboard-asset/${t}.html`}function TH(t){return new Map(t.components.filter(e=>(0,hn.isType)(e,ke.DashboardPage)||(0,hn.isType)(e,ke.DashboardWidget)).map(e=>[_L(e.id),e]))}function EL(t){return`wix/scripts/dashboard-asset/${t}.js`}function AH(t){return new Map(t.components.filter(e=>(0,hn.isType)(e,ke.DashboardPage)||(0,hn.isType)(e,ke.DashboardWidget)).map(e=>[EL(e.id),e]))}var gL=yf(Us,"**","page.{ts,tsx,js,jsx}"),yL=yf(Mi,"**","widget.{ts,tsx,js,jsx}");async function SL(t,e){let r=await nR(e);return ke.DashboardPage({...r,relativePath:e,route:sR(t,yf(t,e)),platforms:[is.Dashboard()]})}async function aR(t){let e=await yi(Oi(gL),{cwd:t});return await Promise.all(e.map(s=>SL(t,s)))}async function OL(t){let e=await oR(t);return ke.DashboardWidget({...e,relativePath:t,platforms:[is.Dashboard()]})}async function cR(t){let e=await yi(Oi(yL),{cwd:t});return await Promise.all(e.map(s=>OL(s)))}function uR(t){return t.dashboard?.sidebar?.categories?.map(e=>ke.DashboardSidebarCategory({...e,platforms:[]}))||[]}h();import{dirname as XL,join as pn}from"node:path";h();import{join as RL,dirname as vL}from"node:path";var Wa=Re(fr(),1);async function lR(t){let e=Si(t,"json");if(!await Pr(e))throw new ie({code:ne.EmbeddedScriptConfigNotFound({configPath:e})});let s=await Qt(e),i=Im.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}async function hR(t){let e=Si(t,"json");if(!await Pr(e))throw new ie({code:ne.CustomElementConfigNotFound({configPath:e})});let s=await Qt(e),i=Nm.safeParse(s);if(i.success)return i.data;throw new ie({code:ne.InvalidConfigSchemaError({configPath:e,zodError:i.error})})}function TL(t){return`wix/html/custom-element-asset/${t}.html`}function AL(t){return`wix/scripts/custom-element-asset/panel-${t}.js`}function IL(t){return`wix/scripts/custom-element-asset/${t}.js`}function qH(t){return new Map(t.components.filter(e=>(0,Wa.isType)(e,ke.CustomElement)).map(e=>[TL(e.id),e]))}function HH(t){return new Map(t.components.filter(e=>(0,Wa.isType)(e,ke.CustomElement)).map(e=>[IL(e.id),e]))}function WH(t){return new Map(t.components.filter(e=>(0,Wa.isType)(e,ke.CustomElement)).map(e=>[AL(e.id),e]))}async function fR(t){let e=RL(vL(t),"params.dev.json");if(!await Pr(e))return null;let s=await Qt(e),i=bm.safeParse(s);if(i.success)return i.data||null;throw new ie({code:ne.InvalidParamsOverrideSchemaError({paramsOverridePath:e,zodError:i.error})})}h();var NL=/^[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])*$/,bL=function(t){return NL.test(t)},wL=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),CL=t=>{if(!t)return"Missing element name.";if(/[A-Z]/.test(t))return"Custom element names must not contain uppercase ASCII characters.";if(!t.includes("-"))return"Custom element names must contain a hyphen. Example: unicorn-cake";if(/^\d/i.test(t))return"Custom element names must not start with a digit.";if(/^-/i.test(t))return"Custom element names must not start with a hyphen.";if(!bL(t))return"Invalid element name.";if(wL.has(t))return`The supplied element name is reserved and can't be used.
9
+ See: https://html.spec.whatwg.org/multipage/scripting.html#valid-custom-element-name`},PL=t=>{if(/^polymer-/i.test(t))return"Custom element names should not start with `polymer-`.\nSee: http://webcomponents.github.io/articles/how-should-i-name-my-element";if(/^x-/i.test(t))return"Custom element names should not start with `x-`.\nSee: http://webcomponents.github.io/articles/how-should-i-name-my-element/";if(/^ng-/i.test(t))return"Custom element names should not start with `ng-`.\nSee: http://docs.angularjs.org/guide/directive#creating-directives";if(/^xml/i.test(t))return"Custom element names should not start with `xml`.";if(/^[^a-z]/i.test(t))return"This element name is only valid in XHTML, not in HTML. First character should be in the range a-z.";if(t.endsWith("-"))return"Custom element names should not end with a hyphen.";if(/\./.test(t))return"Custom element names should not contain a dot character as it would need to be escaped in a CSS selector.";if(/[^\u0020-\u007E]/.test(t))return"Custom element names should not contain non-ASCII characters.";if(/--/.test(t))return"Custom element names should not contain consecutive hyphens.";if(/[^a-z\d]{2}/i.test(t))return"Custom element names should not contain consecutive non-alpha characters."};function dR(t){let e=CL(t);return e?{isValid:!1,errorMessage:e}:{isValid:!0,warningMessage:PL(t)}}h();h();var DL=Object.prototype.toString,vi=Array.isArray||function(e){return DL.call(e)==="[object Array]"};function Of(t){return typeof t=="function"}function xL(t){return vi(t)?"array":typeof t}function Sf(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function pR(t,e){return t!=null&&typeof t=="object"&&e in t}function LL(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var ML=RegExp.prototype.test;function FL(t,e){return ML.call(t,e)}var kL=/\S/;function UL(t){return!FL(kL,t)}var BL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function jL(t){return String(t).replace(/[&<>"'`=\/]/g,function(r){return BL[r]})}var GL=/\s*/,qL=/\s+/,mR=/\s*=/,HL=/\s*\}/,WL=/#|\^|\/|>|\{|&|=|!/;function VL(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(qL,2)),!vi(D)||D.length!==2)throw new Error("Invalid tags: "+D);f=new RegExp(Sf(D[0])+"\\s*"),d=new RegExp("\\s*"+Sf(D[1])),E=new RegExp("\\s*"+Sf("}"+D[1]))}g(e||ft.tags);for(var y=new dn(t),T,A,L,$,de,k;!y.eos();){if(T=y.pos,L=y.scanUntil(f),L)for(var j=0,U=L.length;j<U;++j)$=L.charAt(j),UL($)?(n.push(i.length),c+=$):(a=!0,r=!0,c+=" "),i.push(["text",$,T,T+1]),T+=1,$===`
10
+ `&&(l(),c="",u=0,r=!1);if(!y.scan(f))break;if(o=!0,A=y.scan(WL)||"name",y.scan(GL),A==="="?(L=y.scanUntil(mR),y.scan(mR),y.scanUntil(d)):A==="{"?(L=y.scanUntil(E),y.scan(HL),y.scanUntil(d),A="&"):L=y.scanUntil(d),!y.scan(d))throw new Error("Unclosed tag at "+y.pos);if(A==">"?de=[A,L,T,y.pos,c,u,r]:de=[A,L,T,y.pos],u++,i.push(de),A==="#"||A==="^")s.push(de);else if(A==="/"){if(k=s.pop(),!k)throw new Error('Unopened section "'+L+'" at '+T);if(k[1]!==L)throw new Error('Unclosed section "'+k[1]+'" at '+T)}else A==="name"||A==="{"||A==="&"?a=!0:A==="="&&g(L)}if(l(),k=s.pop(),k)throw new Error('Unclosed section "'+k[1]+'" at '+y.pos);return YL($L(i))}function $L(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 YL(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 dn(t){this.string=t,this.tail=t,this.pos=0}dn.prototype.eos=function(){return this.tail===""};dn.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};dn.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 Ri(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Ri.prototype.push=function(e){return new Ri(e,this)};Ri.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=pR(n,o[a])||LL(n,o[a])),n=n[o[a++]];else n=i.view[e],c=pR(i.view,e);if(c){s=n;break}i=i.parent}r[e]=s}return Of(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||ft.tags).join(":"),n=typeof s<"u",o=n?s.get(i):void 0;return o==null&&(o=VL(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 Ri?r:new Ri(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(vi(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(Of(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||vi(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(`
11
11
  `),o=0;o<n.length;o++)n[o].length&&(o>0||!s)&&(n[o]=i+n[o]);return n.join(`
12
- `)};qe.prototype.renderPartial=function(e,r,s,i){if(s){var n=this.getConfigTags(i),o=Of(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)||ft.escape,n=r.lookup(e[1]);if(n!=null)return typeof n=="number"&&i===ft.escape?String(n):i(n)};qe.prototype.rawValue=function(e){return e[1]};qe.prototype.getConfigTags=function(e){return Ri(e)?e:e&&typeof e=="object"?e.tags:void 0};qe.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Ri(e))return e.escape};var ft={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){fn.templateCache=t},get templateCache(){return fn.templateCache}},fn=new qe;ft.clearCache=function(){return fn.clearCache()};ft.parse=function(e,r){return fn.parse(e,r)};ft.render=function(e,r,s,i){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+DL(e)+'" was given as the first argument for mustache#render(template, view, partials)');return fn.render(e,r,s,i)};ft.escape=BL;ft.Scanner=dn;ft.Context=Oi;ft.Writer=qe;var fR=ft;import{readFile as YL}from"node:fs/promises";async function KL(t){try{let e=await YL(t,"utf-8");return fR.parse(e).filter(([r])=>r==="name")}catch(e){throw new ie({code:ne.InvalidEmbeddedScriptTemplate({templateFilename:t,errorMessage:e instanceof Error?e.message:"no error details"})})}}async function dR(t){let s=(await KL(t)).filter(([i])=>i==="name").filter(([,i])=>!/^[a-zA-Z]+$/.test(i)).map(([,i])=>i);if(s.length>0)throw new ie({code:ne.InvalidEmbeddedScriptParameterNames({templateFilename:t,invalidParameters:s})})}var Rf=pn(Us,"**","embedded.html"),XL=pn(Bs,"**","element.{ts,tsx,js,jsx}"),mW=pn(Bs,"**","panel.{ts,tsx,js,jsx}");async function ZL(t){let e=await aR(t),r=pn(zL(t),"panel.tsx"),s=eR(t),i=uR(s);if(!i.isValid)throw new ie({code:ne.InvalidCustomElementTagName({tagName:s,errorMessage:i.errorMessage})});return ke.CustomElement({...e,tagName:s,relativePath:t,relativePanelPath:r,platforms:[is.Site(),is.Editor()]})}async function pR(t){let e=await gi(Si(XL),{cwd:t});return await Promise.all(e.map(s=>ZL(s)))}var mR=pn(Us,"**","params.dev.json");async function QL(t){let e=await oR(t);await dR(t);let r=await cR(t);return ke.EmbeddedScript({...e,relativePath:t,platforms:[is.Site()],paramsOverride:r})}async function _R(t){let e=await gi(Si(Rf),{cwd:t});return await Promise.all(e.map(s=>QL(s)))}async function ER({projectFolder:t,config:e}){let r=await sR(t),s=await iR(t),i=await _R(t),n=nR(e),o=await pR(t);return[...r,...s,...i,...n,...o]}h();import{join as nc,basename as Zv}from"node:path";import{EventEmitter as XF}from"node:events";var od=Re(av(),1),Qv=Re(Bv(),1);h();var IF=Object.getOwnPropertyNames,NF=Object.getOwnPropertySymbols,bF=Object.prototype.hasOwnProperty;function jv(t,e){return function(s,i,n){return t(s,i,n)&&e(s,i,n)}}function sc(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 Gv(t){return IF(t).concat(NF(t))}var Kv=Object.hasOwn||function(t,e){return bF.call(t,e)};function Ii(t,e){return t||e?t===e:t===e||t!==t&&e!==e}var zv="_owner",qv=Object.getOwnPropertyDescriptor,Hv=Object.keys;function wF(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 CF(t,e){return Ii(t.getTime(),e.getTime())}function Wv(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],T=g[1];!u&&!s[l]&&(u=r.equals(d,y,n,l,t,e,r)&&r.equals(E,T,d,y,t,e,r))&&(s[l]=!0),l++}if(!u)return!1;n++}return!0}function PF(t,e,r){var s=Hv(t),i=s.length;if(Hv(e).length!==i)return!1;for(var n;i-- >0;)if(n=s[i],n===zv&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!Kv(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Tn(t,e,r){var s=Gv(t),i=s.length;if(Gv(e).length!==i)return!1;for(var n,o,a;i-- >0;)if(n=s[i],n===zv&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!Kv(e,n)||!r.equals(t[n],e[n],n,n,t,e,r)||(o=qv(t,n),a=qv(e,n),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function DF(t,e){return Ii(t.valueOf(),e.valueOf())}function xF(t,e){return t.source===e.source&&t.flags===e.flags}function Vv(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 LF(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 MF="[object Arguments]",FF="[object Boolean]",kF="[object Date]",UF="[object Map]",BF="[object Number]",jF="[object Object]",GF="[object RegExp]",qF="[object Set]",HF="[object String]",WF=Array.isArray,$v=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Yv=Object.assign,VF=Object.prototype.toString.call.bind(Object.prototype.toString);function $F(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(WF(l))return e(l,f,d);if($v!=null&&$v(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=VF(l);return g===kF?r(l,f,d):g===GF?o(l,f,d):g===UF?s(l,f,d):g===qF?a(l,f,d):g===jF?typeof l.then!="function"&&typeof f.then!="function"&&i(l,f,d):g===MF?i(l,f,d):g===FF||g===BF||g===HF?n(l,f,d):!1}}function YF(t){var e=t.circular,r=t.createCustomConfig,s=t.strict,i={areArraysEqual:s?Tn:wF,areDatesEqual:CF,areMapsEqual:s?jv(Wv,Tn):Wv,areObjectsEqual:s?Tn:PF,arePrimitiveWrappersEqual:DF,areRegExpsEqual:xF,areSetsEqual:s?jv(Vv,Tn):Vv,areTypedArraysEqual:s?Tn:LF};if(r&&(i=Yv({},i,r(i))),e){var n=sc(i.areArraysEqual),o=sc(i.areMapsEqual),a=sc(i.areObjectsEqual),c=sc(i.areSetsEqual);i=Yv({},i,{areArraysEqual:n,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:c})}return i}function KF(t){return function(e,r,s,i,n,o,a){return t(e,r,a)}}function zF(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 Xv=Br(),mV=Br({strict:!0}),_V=Br({circular:!0}),EV=Br({circular:!0,strict:!0}),gV=Br({createInternalComparator:function(){return Ii}}),yV=Br({strict:!0,createInternalComparator:function(){return Ii}}),SV=Br({circular:!0,createInternalComparator:function(){return Ii}}),OV=Br({circular:!0,createInternalComparator:function(){return Ii},strict:!0});function Br(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=YF(t),c=$F(a),u=s?s(c):KF(c);return zF({circular:r,comparator:c,createState:i,equals:u,strict:o})}var ZF=nc(ks,"**","page.json"),QF=nc(Mi,"**","widget.json"),JF=nc(Us,"**","embedded.json"),ek=nc(Bs,"**","element.json"),ic=class{emitter=new XF;fsWatchers=[];prevModel;constructor(e){this.prevModel=e}watch(){let e=od.default.watch([ZF,QF,JF,Rf,ek,mR,Pi],{ignoreInitial:!0}).on("add",this.emitConfigUpdate).on("change",this.emitConfigUpdate),r=od.default.watch([`${ks}/**`,`${Mi}/**`,`${Us}/**`,`${Bs}/**`],{ignoreInitial:!0}).on("unlink",async s=>{let i=Zv(s);(i==="page.json"||i==="widget.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,Qv.default)(async e=>{try{let r=await Jv(this.prevModel.projectFolder);this.emitter.emit("all",r,"change-received"),!Xv(r,this.prevModel)||Zv(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 Jv(t){let e=await Dg();return{projectFolder:t,config:e,components:await ER({projectFolder:t,config:e})}}var tT=rk(null),kV=t=>{let[e,r]=eT(t.value),[s]=eT(()=>{let i=new ic(e);return t.watchForChanges===!0&&i.watch().onChange((n,o)=>{o==="model-updated"&&r(n)}),i});return ik(()=>()=>{s.close()},[s]),tk.createElement(tT.Provider,{value:{model:e,watcher:s}},t.children)};function UV(){let t=sk(tT);if(t===null)throw new Error("useProjectModel() cannot be used without an <ProjectModelProvider>");return t}h();import nk from"node:process";var ok=b.object({biLoggerBaseUrl:b.string().url().optional(),devEditorBaseUrl:b.string().url().optional(),inkDebug:b.boolean().optional(),minRetryTimeout:b.number().optional(),sentryDsn:b.string().optional(),userBrowserTestEndpoint:b.string().url().optional(),dataDir:b.string().optional(),wixCliDependencyVersion:b.string().optional(),wixCliAppDependencyVersion:b.string().optional(),appInstallationPollInterval:b.number().optional(),disableTTY:b.boolean().optional(),waitForLoginInterval:b.number().optional(),registryUrl:b.string().optional(),fsCacheDir:b.string().optional()}),ak="WIX_CLI_TEST_OVERRIDES";function rT(){let t=nk.env[ak];return t?ok.parse(JSON.parse(t)):{}}h();import{mkdir as ck}from"node:fs/promises";import{resolve as uk}from"node:path";import{homedir as lk}from"node:os";function hk(){return rT().dataDir??uk(lk(),".wix")}async function zV(){await ck(hk(),{recursive:!0})}export{fr as a,xn as b,ie as c,ne as d,Kn as e,MA as f,FA as g,b as h,rT as i,hk as j,zV as k,bu as l,G1 as m,Qt as n,Pr as o,q1 as p,rd as q,Bv as r,Pi as s,kU as t,Zd as u,up as v,Fs as w,ss as x,pp as y,mp as z,bp as A,wp as B,Cp as C,UI as D,BI as E,YU as F,KU as G,zU as H,XU as I,ZU as J,is as K,ke as L,yi as M,eR as N,mL as O,IH as P,_L as Q,NH as R,EL as S,gL as T,vL as U,TL as V,AL as W,WH as X,VH as Y,$H as Z,XL as _,mW as $,Xv as aa,Jv as ba,kV as ca,UV as da};
12
+ `)};qe.prototype.renderPartial=function(e,r,s,i){if(s){var n=this.getConfigTags(i),o=Of(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)||ft.escape,n=r.lookup(e[1]);if(n!=null)return typeof n=="number"&&i===ft.escape?String(n):i(n)};qe.prototype.rawValue=function(e){return e[1]};qe.prototype.getConfigTags=function(e){return vi(e)?e:e&&typeof e=="object"?e.tags:void 0};qe.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!vi(e))return e.escape};var ft={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){fn.templateCache=t},get templateCache(){return fn.templateCache}},fn=new qe;ft.clearCache=function(){return fn.clearCache()};ft.parse=function(e,r){return fn.parse(e,r)};ft.render=function(e,r,s,i){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+xL(e)+'" was given as the first argument for mustache#render(template, view, partials)');return fn.render(e,r,s,i)};ft.escape=jL;ft.Scanner=dn;ft.Context=Ri;ft.Writer=qe;var _R=ft;import{readFile as KL}from"node:fs/promises";async function zL(t){try{let e=await KL(t,"utf-8");return _R.parse(e).filter(([r])=>r==="name")}catch(e){throw new ie({code:ne.InvalidEmbeddedScriptTemplate({templateFilename:t,errorMessage:e instanceof Error?e.message:"no error details"})})}}async function ER(t){let s=(await zL(t)).filter(([i])=>i==="name").filter(([,i])=>!/^[a-zA-Z]+$/.test(i)).map(([,i])=>i);if(s.length>0)throw new ie({code:ne.InvalidEmbeddedScriptParameterNames({templateFilename:t,invalidParameters:s})})}var Rf=pn(Bs,"**","embedded.html"),ZL=pn(js,"**","element.{ts,tsx,js,jsx}"),dW=pn(js,"**","panel.{ts,tsx,js,jsx}");async function QL(t){let e=await hR(t),r=pn(XL(t),"panel.tsx"),s=iR(t),i=dR(s);if(!i.isValid)throw new ie({code:ne.InvalidCustomElementTagName({tagName:s,errorMessage:i.errorMessage})});return ke.CustomElement({...e,tagName:s,relativePath:t,relativePanelPath:r,platforms:[is.Site(),is.Editor()]})}async function gR(t){let e=await yi(Oi(ZL),{cwd:t});return await Promise.all(e.map(s=>QL(s)))}var yR=pn(Bs,"**","params.dev.json");async function JL(t){let e=await lR(t);await ER(t);let r=await fR(t);return ke.EmbeddedScript({...e,relativePath:t,platforms:[is.Site()],paramsOverride:r})}async function SR(t){let e=await yi(Oi(Rf),{cwd:t});return await Promise.all(e.map(s=>JL(s)))}async function OR({projectFolder:t,config:e}){let r=await aR(t),s=await cR(t),i=await SR(t),n=uR(e),o=await gR(t);return[...r,...s,...i,...n,...o]}h();import{join as nc,basename as tT}from"node:path";import{EventEmitter as ZF}from"node:events";var od=Re(hv(),1),rT=Re(Hv(),1);h();var NF=Object.getOwnPropertyNames,bF=Object.getOwnPropertySymbols,wF=Object.prototype.hasOwnProperty;function Wv(t,e){return function(s,i,n){return t(s,i,n)&&e(s,i,n)}}function sc(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 Vv(t){return NF(t).concat(bF(t))}var Qv=Object.hasOwn||function(t,e){return wF.call(t,e)};function Ni(t,e){return t||e?t===e:t===e||t!==t&&e!==e}var Jv="_owner",$v=Object.getOwnPropertyDescriptor,Yv=Object.keys;function CF(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 PF(t,e){return Ni(t.getTime(),e.getTime())}function Kv(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],T=g[1];!u&&!s[l]&&(u=r.equals(d,y,n,l,t,e,r)&&r.equals(E,T,d,y,t,e,r))&&(s[l]=!0),l++}if(!u)return!1;n++}return!0}function DF(t,e,r){var s=Yv(t),i=s.length;if(Yv(e).length!==i)return!1;for(var n;i-- >0;)if(n=s[i],n===Jv&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!Qv(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Tn(t,e,r){var s=Vv(t),i=s.length;if(Vv(e).length!==i)return!1;for(var n,o,a;i-- >0;)if(n=s[i],n===Jv&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!Qv(e,n)||!r.equals(t[n],e[n],n,n,t,e,r)||(o=$v(t,n),a=$v(e,n),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function xF(t,e){return Ni(t.valueOf(),e.valueOf())}function LF(t,e){return t.source===e.source&&t.flags===e.flags}function zv(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 MF(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 FF="[object Arguments]",kF="[object Boolean]",UF="[object Date]",BF="[object Map]",jF="[object Number]",GF="[object Object]",qF="[object RegExp]",HF="[object Set]",WF="[object String]",VF=Array.isArray,Xv=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Zv=Object.assign,$F=Object.prototype.toString.call.bind(Object.prototype.toString);function YF(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(VF(l))return e(l,f,d);if(Xv!=null&&Xv(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=$F(l);return g===UF?r(l,f,d):g===qF?o(l,f,d):g===BF?s(l,f,d):g===HF?a(l,f,d):g===GF?typeof l.then!="function"&&typeof f.then!="function"&&i(l,f,d):g===FF?i(l,f,d):g===kF||g===jF||g===WF?n(l,f,d):!1}}function KF(t){var e=t.circular,r=t.createCustomConfig,s=t.strict,i={areArraysEqual:s?Tn:CF,areDatesEqual:PF,areMapsEqual:s?Wv(Kv,Tn):Kv,areObjectsEqual:s?Tn:DF,arePrimitiveWrappersEqual:xF,areRegExpsEqual:LF,areSetsEqual:s?Wv(zv,Tn):zv,areTypedArraysEqual:s?Tn:MF};if(r&&(i=Zv({},i,r(i))),e){var n=sc(i.areArraysEqual),o=sc(i.areMapsEqual),a=sc(i.areObjectsEqual),c=sc(i.areSetsEqual);i=Zv({},i,{areArraysEqual:n,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:c})}return i}function zF(t){return function(e,r,s,i,n,o,a){return t(e,r,a)}}function XF(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 eT=Br(),dV=Br({strict:!0}),pV=Br({circular:!0}),mV=Br({circular:!0,strict:!0}),_V=Br({createInternalComparator:function(){return Ni}}),EV=Br({strict:!0,createInternalComparator:function(){return Ni}}),gV=Br({circular:!0,createInternalComparator:function(){return Ni}}),yV=Br({circular:!0,createInternalComparator:function(){return Ni},strict:!0});function Br(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=KF(t),c=YF(a),u=s?s(c):zF(c);return XF({circular:r,comparator:c,createState:i,equals:u,strict:o})}var QF=nc(Us,"**","page.json"),JF=nc(Mi,"**","widget.json"),ek=nc(Bs,"**","embedded.json"),tk=nc(js,"**","element.json"),ic=class{emitter=new ZF;fsWatchers=[];prevModel;constructor(e){this.prevModel=e}watch(){let e=od.default.watch([QF,JF,ek,Rf,tk,yR,bs],{ignoreInitial:!0}).on("add",this.emitConfigUpdate).on("change",this.emitConfigUpdate),r=od.default.watch([`${Us}/**`,`${Mi}/**`,`${Bs}/**`,`${js}/**`],{ignoreInitial:!0}).on("unlink",async s=>{let i=tT(s);(i==="page.json"||i==="widget.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,rT.default)(async e=>{try{let r=await sT(this.prevModel.projectFolder);this.emitter.emit("all",r,"change-received"),!eT(r,this.prevModel)||tT(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 Fg();return{projectFolder:t,config:e,components:await OR({projectFolder:t,config:e})}}var nT=sk(null),MV=t=>{let[e,r]=iT(t.value),[s]=iT(()=>{let i=new ic(e);return t.watchForChanges===!0&&i.watch().onChange((n,o)=>{o==="model-updated"&&r(n)}),i});return nk(()=>()=>{s.close()},[s]),rk.createElement(nT.Provider,{value:{model:e,watcher:s}},t.children)};function FV(){let t=ik(nT);if(t===null)throw new Error("useProjectModel() cannot be used without an <ProjectModelProvider>");return t}h();import ok from"node:process";var ak=b.object({biLoggerBaseUrl:b.string().url().optional(),devEditorBaseUrl:b.string().url().optional(),inkDebug:b.boolean().optional(),minRetryTimeout:b.number().optional(),sentryDsn:b.string().optional(),userBrowserTestEndpoint:b.string().url().optional(),dataDir:b.string().optional(),wixCliDependencyVersion:b.string().optional(),wixCliAppDependencyVersion:b.string().optional(),appInstallationPollInterval:b.number().optional(),disableTTY:b.boolean().optional(),waitForLoginInterval:b.number().optional(),registryUrl:b.string().optional(),fsCacheDir:b.string().optional()}),ck="WIX_CLI_TEST_OVERRIDES";function GV(){let t=ok.env[ck];return t?ak.parse(JSON.parse(t)):{}}export{fr as a,xn as b,ie as c,ne as d,Kn as e,UA as f,BA as g,b as h,GV as i,bu as j,Cw as k,Mg as l,Qt as m,Pr as n,U1 as o,B1 as p,rd as q,Hv as r,bs as s,LU as t,Zd as u,up as v,ks as w,ss as x,pp as y,mp as z,bp as A,wp as B,Cp as C,GI as D,qI as E,Us as F,Om as G,WU as H,VU as I,$U as J,YU as K,KU as L,is as M,$1 as N,yi as O,ke as P,Si as Q,iR as R,_L as S,TH as T,EL as U,AH as V,gL as W,yL as X,TL as Y,AL as Z,IL as _,qH as $,HH as aa,WH as ba,ZL as ca,dW as da,eT as ea,sT as fa,MV as ga,FV as ha};
13
13
  /*! Bundled license information:
14
14
 
15
15
  is-extglob/index.js:
@@ -72,4 +72,4 @@ mustache/mustache.mjs:
72
72
  * http://github.com/janl/mustache.js
73
73
  *)
74
74
  */
75
- //# sourceMappingURL=chunk-VMFKU4BM.js.map
75
+ //# sourceMappingURL=chunk-SQ7GXOTK.js.map