@stacksjs/actions 0.70.73 → 0.70.74

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 (163) hide show
  1. package/dist/action.d.ts +8 -6
  2. package/dist/action.js +1 -1
  3. package/dist/actions.js +1 -1
  4. package/dist/add.js +1 -1
  5. package/dist/ai/request-model-access.d.ts +1 -1
  6. package/dist/ai/request-model-access.js +1 -1
  7. package/dist/auth/client.d.ts +1 -1
  8. package/dist/auth/prune.d.ts +1 -1
  9. package/dist/auth/setup.d.ts +1 -1
  10. package/dist/auth/token.d.ts +1 -1
  11. package/dist/blog.js +23 -23
  12. package/dist/build/cli.d.ts +1 -1
  13. package/dist/build/component-libs.d.ts +1 -1
  14. package/dist/build/core.d.ts +1 -1
  15. package/dist/build/desktop.d.ts +1 -1
  16. package/dist/build/docs.d.ts +1 -1
  17. package/dist/build/frontend-static.js +1 -1
  18. package/dist/build/server.d.ts +1 -1
  19. package/dist/build/stacks.d.ts +1 -1
  20. package/dist/build/views.d.ts +1 -1
  21. package/dist/build.js +1 -1
  22. package/dist/bump.d.ts +1 -1
  23. package/dist/bump.js +7 -2
  24. package/dist/changelog.d.ts +0 -1
  25. package/dist/changelog.js +2 -1
  26. package/dist/check/ports.d.ts +1 -1
  27. package/dist/{chunk-8tmc78d6.js → chunk-49ry9mgz.js} +1 -1
  28. package/dist/{chunk-qqth0x9w.js → chunk-73y0wp0s.js} +1 -1
  29. package/dist/{chunk-bbd6n9q2.js → chunk-8kvzjd10.js} +1 -1
  30. package/dist/{chunk-vn8sr2rt.js → chunk-dxvgx0r7.js} +1 -1
  31. package/dist/{chunk-jn81jcta.js → chunk-f8z1aft6.js} +1 -1
  32. package/dist/{chunk-29eg94q3.js → chunk-gcjrdkq7.js} +1 -1
  33. package/dist/{chunk-c0cs49hn.js → chunk-heh4x32p.js} +1 -1
  34. package/dist/{chunk-y5k9qbfd.js → chunk-hr9ndn21.js} +1 -1
  35. package/dist/{chunk-b10hy2vq.js → chunk-hv8tkjw2.js} +2 -2
  36. package/dist/{chunk-ckcjsw9a.js → chunk-n057zfgw.js} +1 -1
  37. package/dist/{chunk-j9vajggg.js → chunk-t5j470r2.js} +1 -1
  38. package/dist/chunk-v0hqskdk.js +3 -0
  39. package/dist/{chunk-r3t7shd4.js → chunk-v1dg1jp6.js} +1 -1
  40. package/dist/{chunk-prpycg7f.js → chunk-w4erevzw.js} +1 -1
  41. package/dist/{chunk-m0v346zb.js → chunk-x0cnhg3z.js} +1 -1
  42. package/dist/clean.d.ts +1 -1
  43. package/dist/commit.js +1 -1
  44. package/dist/copy-types.d.ts +1 -1
  45. package/dist/database/seed.d.ts +1 -1
  46. package/dist/deploy/create-receipt-rule.d.ts +1 -1
  47. package/dist/deploy/index.d.ts +1 -1
  48. package/dist/deploy/index.js +2 -2
  49. package/dist/dev/api.d.ts +1 -1
  50. package/dist/dev/api.js +1 -1
  51. package/dist/dev/components.d.ts +1 -1
  52. package/dist/dev/dashboard-globals.js +1 -1
  53. package/dist/dev/dashboard-utils.d.ts +59 -53
  54. package/dist/dev/dashboard-utils.js +1 -1
  55. package/dist/dev/dashboard.d.ts +10 -0
  56. package/dist/dev/dashboard.js +4 -4
  57. package/dist/dev/desktop.d.ts +1 -1
  58. package/dist/dev/docs.d.ts +1 -1
  59. package/dist/dev/docs.js +1 -1
  60. package/dist/dev/index.js +1 -1
  61. package/dist/dev/migrate-watcher.js +1 -1
  62. package/dist/dev/system-tray.d.ts +1 -1
  63. package/dist/dev/views.d.ts +1 -1
  64. package/dist/dev/views.js +1 -1
  65. package/dist/discover-packages.js +1 -1
  66. package/dist/domains/add.d.ts +1 -1
  67. package/dist/domains/remove.d.ts +1 -1
  68. package/dist/examples.js +1 -1
  69. package/dist/find-projects.d.ts +1 -1
  70. package/dist/fresh.d.ts +1 -1
  71. package/dist/generate/action-types.d.ts +1 -1
  72. package/dist/generate/component-meta.d.ts +1 -1
  73. package/dist/generate/component-meta.js +1 -1
  74. package/dist/generate/custom-cli-file.d.ts +1 -1
  75. package/dist/generate/env-files.d.ts +1 -1
  76. package/dist/generate/env-files.js +1 -1
  77. package/dist/generate/ide-helpers.d.ts +1 -1
  78. package/dist/generate/ide-helpers.js +1 -1
  79. package/dist/generate/index.js +1 -1
  80. package/dist/generate/lib-entries.js +1 -1
  81. package/dist/generate/pantry-file.d.ts +1 -1
  82. package/dist/generate/symlink-core.d.ts +1 -1
  83. package/dist/generate/types.d.ts +1 -1
  84. package/dist/generate/vscode-custom-data.d.ts +1 -1
  85. package/dist/generate/vscode-custom-data.js +1 -1
  86. package/dist/helpers/component-meta.js +1 -1
  87. package/dist/helpers/index.js +1 -1
  88. package/dist/helpers/lib-entries.js +1 -1
  89. package/dist/helpers/package-json.js +1 -1
  90. package/dist/helpers/utils.js +1 -1
  91. package/dist/helpers/vscode-custom-data.js +1 -1
  92. package/dist/index.js +1 -1
  93. package/dist/key-generate.d.ts +1 -1
  94. package/dist/lint/fix.d.ts +1 -1
  95. package/dist/lint/fix.js +1 -1
  96. package/dist/lint/index.d.ts +1 -1
  97. package/dist/lint/index.js +1 -1
  98. package/dist/lint/lint.js +1 -1
  99. package/dist/make-command.js +1 -1
  100. package/dist/make-job.js +1 -1
  101. package/dist/make-policy.js +1 -1
  102. package/dist/make-resource.js +1 -1
  103. package/dist/make.js +1 -1
  104. package/dist/migrate/database.d.ts +1 -1
  105. package/dist/migrate/fresh.d.ts +1 -1
  106. package/dist/orm/base.js +1 -1
  107. package/dist/prepublish.d.ts +1 -1
  108. package/dist/queue/clear.d.ts +1 -1
  109. package/dist/queue/dlq-purge.d.ts +1 -1
  110. package/dist/queue/dlq-retry.d.ts +1 -1
  111. package/dist/queue/dlq.d.ts +1 -1
  112. package/dist/queue/failed.d.ts +1 -1
  113. package/dist/queue/flush.d.ts +1 -1
  114. package/dist/queue/inspect.d.ts +1 -1
  115. package/dist/queue/list.d.ts +1 -1
  116. package/dist/queue/monitor.d.ts +1 -1
  117. package/dist/queue/pause.d.ts +1 -1
  118. package/dist/queue/quarantine.d.ts +1 -1
  119. package/dist/queue/resume.d.ts +1 -1
  120. package/dist/queue/retry.d.ts +1 -1
  121. package/dist/queue/schedule-list.d.ts +1 -1
  122. package/dist/queue/schedule.d.ts +1 -1
  123. package/dist/queue/status.d.ts +1 -1
  124. package/dist/queue/table.d.ts +1 -1
  125. package/dist/queue/unquarantine.d.ts +1 -1
  126. package/dist/queue/work.d.ts +1 -1
  127. package/dist/release.d.ts +1 -1
  128. package/dist/release.js +1 -1
  129. package/dist/route/list.d.ts +1 -1
  130. package/dist/run-action.js +1 -1
  131. package/dist/saas/setup.d.ts +1 -1
  132. package/dist/scaffold-crud.js +1 -1
  133. package/dist/schedule/run.d.ts +1 -1
  134. package/dist/search/flush.d.ts +1 -1
  135. package/dist/search/import.d.ts +1 -1
  136. package/dist/search/settings-list.d.ts +1 -1
  137. package/dist/search/settings.d.ts +1 -1
  138. package/dist/serve/api.d.ts +1 -1
  139. package/dist/setup/index.js +1 -1
  140. package/dist/setup/ssl.js +1 -1
  141. package/dist/stacks.js +1 -1
  142. package/dist/templates.d.ts +21 -1
  143. package/dist/templates.js +1 -1
  144. package/dist/test/feature.d.ts +1 -1
  145. package/dist/test/index.d.ts +1 -1
  146. package/dist/test/ui.d.ts +1 -1
  147. package/dist/test/unit.d.ts +1 -1
  148. package/dist/typecheck.d.ts +1 -1
  149. package/dist/types.js +1 -1
  150. package/dist/upgrade/binary.d.ts +1 -1
  151. package/dist/upgrade/dependencies.js +1 -1
  152. package/dist/upgrade/framework-utils.js +1 -1
  153. package/dist/upgrade/framework.d.ts +1 -1
  154. package/dist/upgrade/framework.js +1 -1
  155. package/dist/upgrade/index.d.ts +1 -1
  156. package/dist/upgrade/index.js +1 -1
  157. package/dist/upgrade/packages.js +8 -8
  158. package/dist/upgrade/shell.d.ts +1 -1
  159. package/dist/upgrade.js +1 -1
  160. package/package.json +22 -19
  161. package/dist/chunk-1ebgbeyr.js +0 -920
  162. package/dist/chunk-h3163h5z.js +0 -3
  163. package/dist/chunk-vntz6mtt.js +0 -16
@@ -1,16 +0,0 @@
1
- // @bun
2
- import{qb as N,sb as f}from"./chunk-h3163h5z.js";var bX=N((QS,uX)=>{var GB=typeof process==="object"&&process&&process.platform==="win32";uX.exports=GB?{sep:"\\"}:{sep:"/"}});var R4=N((JS,pX)=>{pX.exports=dX;function dX(X,Q,J){if(X instanceof RegExp)X=mX(X,J);if(Q instanceof RegExp)Q=mX(Q,J);var K=cX(X,Q,J);return K&&{start:K[0],end:K[1],pre:J.slice(0,K[0]),body:J.slice(K[0]+X.length,K[1]),post:J.slice(K[1]+Q.length)}}function mX(X,Q){var J=Q.match(X);return J?J[0]:null}dX.range=cX;function cX(X,Q,J){var K,Y,H,Z,q,V=J.indexOf(X),W=J.indexOf(Q,V+1),G=V;if(V>=0&&W>0){if(X===Q)return[V,W];K=[],H=J.length;while(G>=0&&!q){if(G==V)K.push(G),V=J.indexOf(X,G+1);else if(K.length==1)q=[K.pop(),W];else{if(Y=K.pop(),Y<H)H=Y,Z=W;W=J.indexOf(Q,G+1)}G=V<W&&V>=0?V:W}if(K.length)q=[H,Z]}return q}});var tX=N((KS,aX)=>{var lX=R4();aX.exports=BB;var nX="\x00SLASH"+Math.random()+"\x00",iX="\x00OPEN"+Math.random()+"\x00",S4="\x00CLOSE"+Math.random()+"\x00",oX="\x00COMMA"+Math.random()+"\x00",rX="\x00PERIOD"+Math.random()+"\x00";function E4(X){return parseInt(X,10)==X?parseInt(X,10):X.charCodeAt(0)}function WB(X){return X.split("\\\\").join(nX).split("\\{").join(iX).split("\\}").join(S4).split("\\,").join(oX).split("\\.").join(rX)}function zB(X){return X.split(nX).join("\\").split(iX).join("{").split(S4).join("}").split(oX).join(",").split(rX).join(".")}function sX(X){if(!X)return[""];var Q=[],J=lX("{","}",X);if(!J)return X.split(",");var{pre:K,body:Y,post:H}=J,Z=K.split(",");Z[Z.length-1]+="{"+Y+"}";var q=sX(H);if(H.length)Z[Z.length-1]+=q.shift(),Z.push.apply(Z,q);return Q.push.apply(Q,Z),Q}function BB(X,Q){if(!X)return[];Q=Q||{};var J=Q.max==null?1/0:Q.max;if(X.substr(0,2)==="{}")X="\\{\\}"+X.substr(2);return B8(WB(X),J,!0).map(zB)}function $B(X){return"{"+X+"}"}function MB(X){return/^-?0\d/.test(X)}function FB(X,Q){return X<=Q}function NB(X,Q){return X>=Q}function B8(X,Q,J){var K=[],Y=lX("{","}",X);if(!Y)return[X];var H=Y.pre,Z=Y.post.length?B8(Y.post,Q,!1):[""];if(/\$$/.test(Y.pre))for(var q=0;q<Z.length&&q<Q;q++){var V=H+"{"+Y.body+"}"+Z[q];K.push(V)}else{var W=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(Y.body),G=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(Y.body),B=W||G,F=Y.body.indexOf(",")>=0;if(!B&&!F){if(Y.post.match(/,(?!,).*\}/))return X=Y.pre+"{"+Y.body+S4+Y.post,B8(X,Q,!0);return[X]}var M;if(B)M=Y.body.split(/\.\./);else if(M=sX(Y.body),M.length===1){if(M=B8(M[0],Q,!1).map($B),M.length===1)return Z.map(function(y){return Y.pre+M[0]+y})}var I;if(B){var P=E4(M[0]),O=E4(M[1]),L=Math.max(M[0].length,M[1].length),x=M.length==3?Math.max(Math.abs(E4(M[2])),1):1,v=FB,g=O<P;if(g)x*=-1,v=NB;var n=M.some(MB);I=[];for(var k=P;v(k,O);k+=x){var D;if(G){if(D=String.fromCharCode(k),D==="\\")D=""}else if(D=String(k),n){var m=L-D.length;if(m>0){var T=Array(m+1).join("0");if(k<0)D="-"+T+D.slice(1);else D=T+D}}I.push(D)}}else{I=[];for(var S=0;S<M.length;S++)I.push.apply(I,B8(M[S],Q,!1))}for(var S=0;S<I.length;S++)for(var q=0;q<Z.length&&K.length<Q;q++){var V=H+I[S]+Z[q];if(!J||B||V)K.push(V)}}return K}});var YQ=N((YS,g4)=>{var i0=g4.exports=(X,Q,J={})=>{if(k3(Q),!J.nocomment&&Q.charAt(0)==="#")return!1;return new $8(Q,J).match(X)};g4.exports=i0;var y4=bX();i0.sep=y4.sep;var b0=Symbol("globstar **");i0.GLOBSTAR=b0;var LB=tX(),eX={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},k4="[^/]",x4=k4+"*?",CB="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",IB="(?:(?!(?:\\/|^)\\.).)*?",JQ=(X)=>X.split("").reduce((Q,J)=>{return Q[J]=!0,Q},{}),XQ=JQ("().*{}+?[]^$\\!"),OB=JQ("[.("),QQ=/\/+/;i0.filter=(X,Q={})=>(J,K,Y)=>i0(J,X,Q);var y1=(X,Q={})=>{let J={};return Object.keys(X).forEach((K)=>J[K]=X[K]),Object.keys(Q).forEach((K)=>J[K]=Q[K]),J};i0.defaults=(X)=>{if(!X||typeof X!=="object"||!Object.keys(X).length)return i0;let Q=i0,J=(K,Y,H)=>Q(K,Y,y1(X,H));return J.Minimatch=class extends Q.Minimatch{constructor(Y,H){super(Y,y1(X,H))}},J.Minimatch.defaults=(K)=>Q.defaults(y1(X,K)).Minimatch,J.filter=(K,Y)=>Q.filter(K,y1(X,Y)),J.defaults=(K)=>Q.defaults(y1(X,K)),J.makeRe=(K,Y)=>Q.makeRe(K,y1(X,Y)),J.braceExpand=(K,Y)=>Q.braceExpand(K,y1(X,Y)),J.match=(K,Y,H)=>Q.match(K,Y,y1(X,H)),J};i0.braceExpand=(X,Q)=>KQ(X,Q);var KQ=(X,Q={})=>{if(k3(X),Q.nobrace||!/\{(?:(?!\{).)*\}/.test(X))return[X];return LB(X)},PB=65536,k3=(X)=>{if(typeof X!=="string")throw TypeError("invalid pattern");if(X.length>PB)throw TypeError("pattern is too long")},v4=Symbol("subparse");i0.makeRe=(X,Q)=>new $8(X,Q||{}).makeRe();i0.match=(X,Q,J={})=>{let K=new $8(Q,J);if(X=X.filter((Y)=>K.match(Y)),K.options.nonull&&!X.length)X.push(Q);return X};var jB=(X)=>X.replace(/\\(.)/g,"$1"),wB=(X)=>X.replace(/\\([^-\]])/g,"$1"),DB=(X)=>X.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),TB=(X)=>X.replace(/[[\]\\]/g,"\\$&");class $8{constructor(X,Q){if(k3(X),!Q)Q={};if(this.options=Q,this.maxGlobstarRecursion=Q.maxGlobstarRecursion!==void 0?Q.maxGlobstarRecursion:200,this.set=[],this.pattern=X,this.windowsPathsNoEscape=!!Q.windowsPathsNoEscape||Q.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!Q.partial,this.make()}debug(){}make(){let X=this.pattern,Q=this.options;if(!Q.nocomment&&X.charAt(0)==="#"){this.comment=!0;return}if(!X){this.empty=!0;return}this.parseNegate();let J=this.globSet=this.braceExpand();if(Q.debug)this.debug=(...K)=>console.error(...K);this.debug(this.pattern,J),J=this.globParts=J.map((K)=>K.split(QQ)),this.debug(this.pattern,J),J=J.map((K,Y,H)=>K.map(this.parse,this)),this.debug(this.pattern,J),J=J.filter((K)=>K.indexOf(!1)===-1),this.debug(this.pattern,J),this.set=J}parseNegate(){if(this.options.nonegate)return;let X=this.pattern,Q=!1,J=0;for(let K=0;K<X.length&&X.charAt(K)==="!";K++)Q=!Q,J++;if(J)this.pattern=X.slice(J);this.negate=Q}matchOne(X,Q,J){if(Q.indexOf(b0)!==-1)return this._matchGlobstar(X,Q,J,0,0);return this._matchOne(X,Q,J,0,0)}_matchGlobstar(X,Q,J,K,Y){let H=-1;for(let L=Y;L<Q.length;L++)if(Q[L]===b0){H=L;break}let Z=-1;for(let L=Q.length-1;L>=0;L--)if(Q[L]===b0){Z=L;break}let q=Q.slice(Y,H),V=J?Q.slice(H+1):Q.slice(H+1,Z),W=J?[]:Q.slice(Z+1);if(q.length){let L=X.slice(K,K+q.length);if(!this._matchOne(L,q,J,0,0))return!1;K+=q.length}let G=0;if(W.length){if(W.length+K>X.length)return!1;let L=X.length-W.length;if(this._matchOne(X,W,J,L,0))G=W.length;else{if(X[X.length-1]!==""||K+W.length===X.length)return!1;if(!this._matchOne(X,W,J,L-1,0))return!1;G=W.length+1}}if(!V.length){let L=!!G;for(let x=K;x<X.length-G;x++){let v=String(X[x]);if(L=!0,v==="."||v===".."||!this.options.dot&&v.charAt(0)===".")return!1}return J||L}let B=[[[],0]],F=B[0],M=0,I=[0];for(let L of V)if(L===b0)I.push(M),F=[[],0],B.push(F);else F[0].push(L),M++;let P=B.length-1,O=X.length-G;for(let L of B)L[1]=O-(I[P--]+L[0].length);return!!this._matchGlobStarBodySections(X,B,K,0,J,0,!!G)}_matchGlobStarBodySections(X,Q,J,K,Y,H,Z){let q=Q[K];if(!q){for(let G=J;G<X.length;G++){Z=!0;let B=X[G];if(B==="."||B===".."||!this.options.dot&&B.charAt(0)===".")return!1}return Z}let[V,W]=q;while(J<=W){if(this._matchOne(X.slice(0,J+V.length),V,Y,J,0)&&H<this.maxGlobstarRecursion){let F=this._matchGlobStarBodySections(X,Q,J+V.length,K+1,Y,H+1,Z);if(F!==!1)return F}let B=X[J];if(B==="."||B===".."||!this.options.dot&&B.charAt(0)===".")return!1;J++}return Y||null}_matchOne(X,Q,J,K,Y){let H,Z,q,V;for(H=K,Z=Y,q=X.length,V=Q.length;H<q&&Z<V;H++,Z++){this.debug("matchOne loop");let W=Q[Z],G=X[H];if(this.debug(Q,W,G),W===!1||W===b0)return!1;let B;if(typeof W==="string")B=G===W,this.debug("string match",W,G,B);else B=G.match(W),this.debug("pattern match",W,G,B);if(!B)return!1}if(H===q&&Z===V)return!0;else if(H===q)return J;else if(Z===V)return H===q-1&&X[H]==="";throw Error("wtf?")}braceExpand(){return KQ(this.pattern,this.options)}parse(X,Q){k3(X);let J=this.options;if(X==="**")if(!J.noglobstar)return b0;else X="*";if(X==="")return"";let K="",Y=!1,H=!1,Z=[],q=[],V,W=!1,G=-1,B=-1,F,M,I,P=X.charAt(0)===".",O=J.dot||P,L=()=>P?"":O?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",x=(k)=>k.charAt(0)==="."?"":J.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=()=>{if(V){switch(V){case"*":K+=x4,Y=!0;break;case"?":K+=k4,Y=!0;break;default:K+="\\"+V;break}this.debug("clearStateChar %j %j",V,K),V=!1}};for(let k=0,D;k<X.length&&(D=X.charAt(k));k++){if(this.debug("%s\t%s %s %j",X,k,K,D),H){if(D==="/")return!1;if(XQ[D])K+="\\";K+=D,H=!1;continue}switch(D){case"/":return!1;case"\\":if(W&&X.charAt(k+1)==="-"){K+=D;continue}v(),H=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",X,k,K,D),W){if(this.debug(" in class"),D==="!"&&k===B+1)D="^";K+=D;continue}if(D==="*"&&V==="*")continue;if(this.debug("call clearStateChar %j",V),v(),V=D,J.noext)v();continue;case"(":{if(W){K+="(";continue}if(!V){K+="\\(";continue}let m={type:V,start:k-1,reStart:K.length,open:eX[V].open,close:eX[V].close};if(this.debug(this.pattern,"\t",m),Z.push(m),K+=m.open,m.start===0&&m.type!=="!")P=!0,K+=x(X.slice(k+1));this.debug("plType %j %j",V,K),V=!1;continue}case")":{let m=Z[Z.length-1];if(W||!m){K+="\\)";continue}if(Z.pop(),v(),Y=!0,M=m,K+=M.close,M.type==="!")q.push(Object.assign(M,{reEnd:K.length}));continue}case"|":{let m=Z[Z.length-1];if(W||!m){K+="\\|";continue}if(v(),K+="|",m.start===0&&m.type!=="!")P=!0,K+=x(X.slice(k+1));continue}case"[":if(v(),W){K+="\\"+D;continue}W=!0,B=k,G=K.length,K+=D;continue;case"]":if(k===B+1||!W){K+="\\"+D;continue}F=X.substring(B+1,k);try{RegExp("["+TB(wB(F))+"]"),K+=D}catch(m){K=K.substring(0,G)+"(?:$.)"}Y=!0,W=!1;continue;default:if(v(),XQ[D]&&!(D==="^"&&W))K+="\\";K+=D;break}}if(W)F=X.slice(B+1),I=this.parse(F,v4),K=K.substring(0,G)+"\\["+I[0],Y=Y||I[1];for(M=Z.pop();M;M=Z.pop()){let k;k=K.slice(M.reStart+M.open.length),this.debug("setting tail",K,M),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,(m,T,S)=>{if(!S)S="\\";return T+T+S+"|"}),this.debug(`tail=%j
3
- %s`,k,k,M,K);let D=M.type==="*"?x4:M.type==="?"?k4:"\\"+M.type;Y=!0,K=K.slice(0,M.reStart)+D+"\\("+k}if(v(),H)K+="\\\\";let g=OB[K.charAt(0)];for(let k=q.length-1;k>-1;k--){let D=q[k],m=K.slice(0,D.reStart),T=K.slice(D.reStart,D.reEnd-8),S=K.slice(D.reEnd),y=K.slice(D.reEnd-8,D.reEnd)+S,l=m.split(")").length,t=m.split("(").length-l,X0=S;for(let Y0=0;Y0<t;Y0++)X0=X0.replace(/\)[+*?]?/,"");S=X0;let z0=S===""&&Q!==v4?"(?:$|\\/)":"";K=m+T+S+z0+y}if(K!==""&&Y)K="(?=.)"+K;if(g)K=L()+K;if(Q===v4)return[K,Y];if(J.nocase&&!Y)Y=X.toUpperCase()!==X.toLowerCase();if(!Y)return jB(X);let n=J.nocase?"i":"";try{return Object.assign(new RegExp("^"+K+"$",n),{_glob:X,_src:K})}catch(k){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let X=this.set;if(!X.length)return this.regexp=!1,this.regexp;let Q=this.options,J=Q.noglobstar?x4:Q.dot?CB:IB,K=Q.nocase?"i":"",Y=X.map((H)=>{return H=H.map((Z)=>typeof Z==="string"?DB(Z):Z===b0?b0:Z._src).reduce((Z,q)=>{if(!(Z[Z.length-1]===b0&&q===b0))Z.push(q);return Z},[]),H.forEach((Z,q)=>{if(Z!==b0||H[q-1]===b0)return;if(q===0)if(H.length>1)H[q+1]="(?:\\/|"+J+"\\/)?"+H[q+1];else H[q]=J;else if(q===H.length-1)H[q-1]+="(?:\\/|"+J+")?";else H[q-1]+="(?:\\/|\\/"+J+"\\/)"+H[q+1],H[q+1]=b0}),H.filter((Z)=>Z!==b0).join("/")}).join("|");if(Y="^(?:"+Y+")$",this.negate)Y="^(?!"+Y+").*$";try{this.regexp=new RegExp(Y,K)}catch(H){this.regexp=!1}return this.regexp}match(X,Q=this.partial){if(this.debug("match",X,this.pattern),this.comment)return!1;if(this.empty)return X==="";if(X==="/"&&Q)return!0;let J=this.options;if(y4.sep!=="/")X=X.split(y4.sep).join("/");X=X.split(QQ),this.debug(this.pattern,"split",X);let K=this.set;this.debug(this.pattern,"set",K);let Y;for(let H=X.length-1;H>=0;H--)if(Y=X[H],Y)break;for(let H=0;H<K.length;H++){let Z=K[H],q=X;if(J.matchBase&&Z.length===1)q=[Y];if(this.matchOne(q,Z,Q)){if(J.flipNegate)return!0;return!this.negate}}if(J.flipNegate)return!1;return this.negate}static defaults(X){return i0.defaults(X).Minimatch}}i0.Minimatch=$8});var UQ=N((HS,VQ)=>{VQ.exports=qQ;var f4=f("fs"),{EventEmitter:_B}=f("events"),{Minimatch:h4}=YQ(),{resolve:AB}=f("path");function RB(X,Q){return new Promise((J,K)=>{f4.readdir(X,{withFileTypes:!0},(Y,H)=>{if(Y)switch(Y.code){case"ENOTDIR":if(Q)K(Y);else J([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":J([]);break;case"ELOOP":default:K(Y);break}else J(H)})})}function HQ(X,Q){return new Promise((J,K)=>{(Q?f4.stat:f4.lstat)(X,(H,Z)=>{if(H)switch(H.code){case"ENOENT":if(Q)J(HQ(X,!1));else J(null);break;default:J(null);break}else J(Z)})})}async function*ZQ(X,Q,J,K,Y,H){let Z=await RB(Q+X,H);for(let q of Z){let V=q.name;if(V===void 0)V=q,K=!0;let W=X+"/"+V,G=W.slice(1),B=Q+"/"+G,F=null;if(K||J)F=await HQ(B,J);if(!F&&q.name!==void 0)F=q;if(F===null)F={isDirectory:()=>!1};if(F.isDirectory()){if(!Y(G))yield{relative:G,absolute:B,stats:F},yield*ZQ(W,Q,J,K,Y,!1)}else yield{relative:G,absolute:B,stats:F}}}async function*EB(X,Q,J,K){yield*ZQ("",X,Q,J,K,!0)}function SB(X){return{pattern:X.pattern,dot:!!X.dot,noglobstar:!!X.noglobstar,matchBase:!!X.matchBase,nocase:!!X.nocase,ignore:X.ignore,skip:X.skip,follow:!!X.follow,stat:!!X.stat,nodir:!!X.nodir,mark:!!X.mark,silent:!!X.silent,absolute:!!X.absolute}}class u4 extends _B{constructor(X,Q,J){super();if(typeof Q==="function")J=Q,Q=null;if(this.options=SB(Q||{}),this.matchers=[],this.options.pattern){let K=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=K.map((Y)=>new h4(Y,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let K=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=K.map((Y)=>new h4(Y,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let K=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=K.map((Y)=>new h4(Y,{dot:!0}))}if(this.iterator=EB(AB(X||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,J)this._matches=[],this.on("match",(K)=>this._matches.push(this.options.absolute?K.absolute:K.relative)),this.on("error",(K)=>J(K)),this.on("end",()=>J(null,this._matches));setTimeout(()=>this._next(),0)}_shouldSkipDirectory(X){return this.skipMatchers.some((Q)=>Q.match(X))}_fileMatches(X,Q){let J=X+(Q?"/":"");return(this.matchers.length===0||this.matchers.some((K)=>K.match(J)))&&!this.ignoreMatchers.some((K)=>K.match(J))&&(!this.options.nodir||!Q)}_next(){if(!this.paused&&!this.aborted)this.iterator.next().then((X)=>{if(!X.done){let Q=X.value.stats.isDirectory();if(this._fileMatches(X.value.relative,Q)){let J=X.value.relative,K=X.value.absolute;if(this.options.mark&&Q)J+="/",K+="/";if(this.options.stat)this.emit("match",{relative:J,absolute:K,stat:X.value.stats});else this.emit("match",{relative:J,absolute:K})}this._next(this.iterator)}else this.emit("end")}).catch((X)=>{if(this.abort(),this.emit("error",X),!X.code&&!this.options.silent)console.error(X)});else this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){if(this.paused=!1,this.inactive)this.inactive=!1,this._next()}}function qQ(X,Q,J){return new u4(X,Q,J)}qQ.ReaddirGlob=u4});var WQ=N((g3,GQ)=>{(function(X,Q){typeof g3==="object"&&typeof GQ<"u"?Q(g3):typeof define==="function"&&define.amd?define(["exports"],Q):(X=typeof globalThis<"u"?globalThis:X||self,Q(X.async={}))})(g3,function(X){function Q(U,...z){return(...$)=>U(...z,...$)}function J(U){return function(...z){var $=z.pop();return U.call(this,z,$)}}var K=typeof queueMicrotask==="function"&&queueMicrotask,Y=typeof setImmediate==="function"&&setImmediate,H=typeof process==="object"&&typeof process.nextTick==="function";function Z(U){setTimeout(U,0)}function q(U){return(z,...$)=>U(()=>z(...$))}var V;if(K)V=queueMicrotask;else if(Y)V=setImmediate;else if(H)V=process.nextTick;else V=Z;var W=q(V);function G(U){if(M(U))return function(...z){let $=z.pop(),C=U.apply(this,z);return B(C,$)};return J(function(z,$){var C;try{C=U.apply(this,z)}catch(j){return $(j)}if(C&&typeof C.then==="function")return B(C,$);else $(null,C)})}function B(U,z){return U.then(($)=>{F(z,null,$)},($)=>{F(z,$&&($ instanceof Error||$.message)?$:Error($))})}function F(U,z,$){try{U(z,$)}catch(C){W((j)=>{throw j},C)}}function M(U){return U[Symbol.toStringTag]==="AsyncFunction"}function I(U){return U[Symbol.toStringTag]==="AsyncGenerator"}function P(U){return typeof U[Symbol.asyncIterator]==="function"}function O(U){if(typeof U!=="function")throw Error("expected a function");return M(U)?G(U):U}function L(U,z){if(!z)z=U.length;if(!z)throw Error("arity is undefined");function $(...C){if(typeof C[z-1]==="function")return U.apply(this,C);return new Promise((j,w)=>{C[z-1]=(A,...R)=>{if(A)return w(A);j(R.length>1?R:R[0])},U.apply(this,C)})}return $}function x(U){return function($,...C){return L(function(w){var A=this;return U($,(R,E)=>{O(R).apply(A,C.concat(E))},w)})}}function v(U,z,$,C){z=z||[];var j=[],w=0,A=O($);return U(z,(R,E,b)=>{var e=w++;A(R,(H0,Q0)=>{j[e]=Q0,b(H0)})},(R)=>{C(R,j)})}function g(U){return U&&typeof U.length==="number"&&U.length>=0&&U.length%1===0}let n={};function k(U){function z(...$){if(U===null)return;var C=U;U=null,C.apply(this,$)}return Object.assign(z,U),z}function D(U){return U[Symbol.iterator]&&U[Symbol.iterator]()}function m(U){var z=-1,$=U.length;return function(){return++z<$?{value:U[z],key:z}:null}}function T(U){var z=-1;return function(){var C=U.next();if(C.done)return null;return z++,{value:C.value,key:z}}}function S(U){var z=U?Object.keys(U):[],$=-1,C=z.length;return function j(){var w=z[++$];if(w==="__proto__")return j();return $<C?{value:U[w],key:w}:null}}function y(U){if(g(U))return m(U);var z=D(U);return z?T(z):S(U)}function l(U){return function(...z){if(U===null)throw Error("Callback was already called.");var $=U;U=null,$.apply(this,z)}}function t(U,z,$,C){let j=!1,w=!1,A=!1,R=0,E=0;function b(){if(R>=z||A||j)return;A=!0,U.next().then(({value:Q0,done:a0})=>{if(w||j)return;if(A=!1,a0){if(j=!0,R<=0)C(null);return}R++,$(Q0,E,e),E++,b()}).catch(H0)}function e(Q0,a0){if(R-=1,w)return;if(Q0)return H0(Q0);if(Q0===!1){j=!0,w=!0;return}if(a0===n||j&&R<=0)return j=!0,C(null);b()}function H0(Q0){if(w)return;A=!1,j=!0,C(Q0)}b()}var X0=(U)=>{return(z,$,C)=>{if(C=k(C),U<=0)throw RangeError("concurrency limit cannot be less than 1");if(!z)return C(null);if(I(z))return t(z,U,$,C);if(P(z))return t(z[Symbol.asyncIterator](),U,$,C);var j=y(z),w=!1,A=!1,R=0,E=!1;function b(H0,Q0){if(A)return;if(R-=1,H0)w=!0,C(H0);else if(H0===!1)w=!0,A=!0;else if(Q0===n||w&&R<=0)return w=!0,C(null);else if(!E)e()}function e(){E=!0;while(R<U&&!w){var H0=j();if(H0===null){if(w=!0,R<=0)C(null);return}R+=1,$(H0.value,H0.key,l(b))}E=!1}e()}};function z0(U,z,$,C){return X0(z)(U,O($),C)}var Y0=L(z0,4);function G0(U,z,$){$=k($);var C=0,j=0,{length:w}=U,A=!1;if(w===0)$(null);function R(E,b){if(E===!1)A=!0;if(A===!0)return;if(E)$(E);else if(++j===w||b===n)$(null)}for(;C<w;C++)z(U[C],C,l(R))}function w0(U,z,$){return Y0(U,1/0,z,$)}function B0(U,z,$){var C=g(U)?G0:w0;return C(U,O(z),$)}var l0=L(B0,3);function Nz(U,z,$){return v(l0,U,z,$)}var W3=L(Nz,3),r2=x(W3);function Lz(U,z,$){return Y0(U,1,z,$)}var Z1=L(Lz,3);function Cz(U,z,$){return v(Z1,U,z,$)}var C4=L(Cz,3),s2=x(C4);let N6=Symbol("promiseCallback");function L6(){let U,z;function $(C,...j){if(C)return z(C);U(j.length>1?j:j[0])}return $[N6]=new Promise((C,j)=>{U=C,z=j}),$}function I4(U,z,$){if(typeof z!=="number")$=z,z=null;$=k($||L6());var C=Object.keys(U).length;if(!C)return $(null);if(!z)z=C;var j={},w=0,A=!1,R=!1,E=Object.create(null),b=[],e=[],H0={};Object.keys(U).forEach((u)=>{var c=U[u];if(!Array.isArray(c)){Q0(u,[c]),e.push(u);return}var J0=c.slice(0,c.length-1),N0=J0.length;if(N0===0){Q0(u,c),e.push(u);return}H0[u]=N0,J0.forEach((_0)=>{if(!U[_0])throw Error("async.auto task `"+u+"` has a non-existent dependency `"+_0+"` in "+J0.join(", "));I6(_0,()=>{if(N0--,N0===0)Q0(u,c)})})}),Z0(),a0();function Q0(u,c){b.push(()=>W8(u,c))}function a0(){if(A)return;if(b.length===0&&w===0)return $(null,j);while(b.length&&w<z){var u=b.shift();u()}}function I6(u,c){var J0=E[u];if(!J0)J0=E[u]=[];J0.push(c)}function i1(u){var c=E[u]||[];c.forEach((J0)=>J0()),a0()}function W8(u,c){if(R)return;var J0=l((_0,...t0)=>{if(w--,_0===!1){A=!0;return}if(t0.length<2)[t0]=t0;if(_0){var O6={};if(Object.keys(j).forEach((o1)=>{O6[o1]=j[o1]}),O6[u]=t0,R=!0,E=Object.create(null),A)return;$(_0,O6)}else j[u]=t0,i1(u)});w++;var N0=O(c[c.length-1]);if(c.length>1)N0(j,J0);else N0(J0)}function Z0(){var u,c=0;while(e.length)u=e.pop(),c++,d(u).forEach((J0)=>{if(--H0[J0]===0)e.push(J0)});if(c!==C)throw Error("async.auto cannot execute tasks due to a recursive dependency")}function d(u){var c=[];return Object.keys(U).forEach((J0)=>{let N0=U[J0];if(Array.isArray(N0)&&N0.indexOf(u)>=0)c.push(J0)}),c}return $[N6]}var Iz=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Oz=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Pz=/,/,jz=/(=.+)?(\s*)$/;function wz(U){let z="",$=0,C=U.indexOf("*/");while($<U.length)if(U[$]==="/"&&U[$+1]==="/"){let j=U.indexOf(`
4
- `,$);$=j===-1?U.length:j}else if(C!==-1&&U[$]==="/"&&U[$+1]==="*"){let j=U.indexOf("*/",$);if(j!==-1)$=j+2,C=U.indexOf("*/",$);else z+=U[$],$++}else z+=U[$],$++;return z}function Dz(U){let z=wz(U.toString()),$=z.match(Iz);if(!$)$=z.match(Oz);if(!$)throw Error(`could not parse args in autoInject
5
- Source:
6
- `+z);let[,C]=$;return C.replace(/\s/g,"").split(Pz).map((j)=>j.replace(jz,"").trim())}function a2(U,z){var $={};return Object.keys(U).forEach((C)=>{var j=U[C],w,A=M(j),R=!A&&j.length===1||A&&j.length===0;if(Array.isArray(j))w=[...j],j=w.pop(),$[C]=w.concat(w.length>0?E:j);else if(R)$[C]=j;else{if(w=Dz(j),j.length===0&&!A&&w.length===0)throw Error("autoInject task functions require explicit parameters.");if(!A)w.pop();$[C]=w.concat(E)}function E(b,e){var H0=w.map((Q0)=>b[Q0]);H0.push(e),O(j)(...H0)}}),I4($,z)}class t2{constructor(){this.head=this.tail=null,this.length=0}removeLink(U){if(U.prev)U.prev.next=U.next;else this.head=U.next;if(U.next)U.next.prev=U.prev;else this.tail=U.prev;return U.prev=U.next=null,this.length-=1,U}empty(){while(this.head)this.shift();return this}insertAfter(U,z){if(z.prev=U,z.next=U.next,U.next)U.next.prev=z;else this.tail=z;U.next=z,this.length+=1}insertBefore(U,z){if(z.prev=U.prev,z.next=U,U.prev)U.prev.next=z;else this.head=z;U.prev=z,this.length+=1}unshift(U){if(this.head)this.insertBefore(this.head,U);else e2(this,U)}push(U){if(this.tail)this.insertAfter(this.tail,U);else e2(this,U)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var U=this.head;while(U)yield U.data,U=U.next}remove(U){var z=this.head;while(z){var{next:$}=z;if(U(z))this.removeLink(z);z=$}return this}}function e2(U,z){U.length=1,U.head=U.tail=z}function O4(U,z,$){if(z==null)z=1;else if(z===0)throw RangeError("Concurrency must not be zero");var C=O(U),j=0,w=[];let A={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function R(d,u){A[d].push(u)}function E(d,u){let c=(...J0)=>{b(d,c),u(...J0)};A[d].push(c)}function b(d,u){if(!d)return Object.keys(A).forEach((c)=>A[c]=[]);if(!u)return A[d]=[];A[d]=A[d].filter((c)=>c!==u)}function e(d,...u){A[d].forEach((c)=>c(...u))}var H0=!1;function Q0(d,u,c,J0){if(J0!=null&&typeof J0!=="function")throw Error("task callback must be a function");Z0.started=!0;var N0,_0;function t0(o1,...z8){if(o1)return c?_0(o1):N0();if(z8.length<=1)return N0(z8[0]);N0(z8)}var O6=Z0._createTaskItem(d,c?t0:J0||t0);if(u)Z0._tasks.unshift(O6);else Z0._tasks.push(O6);if(!H0)H0=!0,W(()=>{H0=!1,Z0.process()});if(c||!J0)return new Promise((o1,z8)=>{N0=o1,_0=z8})}function a0(d){return function(u,...c){j-=1;for(var J0=0,N0=d.length;J0<N0;J0++){var _0=d[J0],t0=w.indexOf(_0);if(t0===0)w.shift();else if(t0>0)w.splice(t0,1);if(_0.callback(u,...c),u!=null)e("error",u,_0.data)}if(j<=Z0.concurrency-Z0.buffer)e("unsaturated");if(Z0.idle())e("drain");Z0.process()}}function I6(d){if(d.length===0&&Z0.idle())return W(()=>e("drain")),!0;return!1}let i1=(d)=>(u)=>{if(!u)return new Promise((c,J0)=>{E(d,(N0,_0)=>{if(N0)return J0(N0);c(_0)})});b(d),R(d,u)};var W8=!1,Z0={_tasks:new t2,_createTaskItem(d,u){return{data:d,callback:u}},*[Symbol.iterator](){yield*Z0._tasks[Symbol.iterator]()},concurrency:z,payload:$,buffer:z/4,started:!1,paused:!1,push(d,u){if(Array.isArray(d)){if(I6(d))return;return d.map((c)=>Q0(c,!1,!1,u))}return Q0(d,!1,!1,u)},pushAsync(d,u){if(Array.isArray(d)){if(I6(d))return;return d.map((c)=>Q0(c,!1,!0,u))}return Q0(d,!1,!0,u)},kill(){b(),Z0._tasks.empty()},unshift(d,u){if(Array.isArray(d)){if(I6(d))return;return d.map((c)=>Q0(c,!0,!1,u))}return Q0(d,!0,!1,u)},unshiftAsync(d,u){if(Array.isArray(d)){if(I6(d))return;return d.map((c)=>Q0(c,!0,!0,u))}return Q0(d,!0,!0,u)},remove(d){Z0._tasks.remove(d)},process(){if(W8)return;W8=!0;while(!Z0.paused&&j<Z0.concurrency&&Z0._tasks.length){var d=[],u=[],c=Z0._tasks.length;if(Z0.payload)c=Math.min(c,Z0.payload);for(var J0=0;J0<c;J0++){var N0=Z0._tasks.shift();d.push(N0),w.push(N0),u.push(N0.data)}if(j+=1,Z0._tasks.length===0)e("empty");if(j===Z0.concurrency)e("saturated");var _0=l(a0(d));C(u,_0)}W8=!1},length(){return Z0._tasks.length},running(){return j},workersList(){return w},idle(){return Z0._tasks.length+j===0},pause(){Z0.paused=!0},resume(){if(Z0.paused===!1)return;Z0.paused=!1,W(Z0.process)}};return Object.defineProperties(Z0,{saturated:{writable:!1,value:i1("saturated")},unsaturated:{writable:!1,value:i1("unsaturated")},empty:{writable:!1,value:i1("empty")},drain:{writable:!1,value:i1("drain")},error:{writable:!1,value:i1("error")}}),Z0}function XX(U,z){return O4(U,1,z)}function QX(U,z,$){return O4(U,z,$)}function Tz(U,z,$,C){C=k(C);var j=O($);return Z1(U,(w,A,R)=>{j(z,w,(E,b)=>{z=b,R(E)})},(w)=>C(w,z))}var v1=L(Tz,4);function P4(...U){var z=U.map(O);return function(...$){var C=this,j=$[$.length-1];if(typeof j=="function")$.pop();else j=L6();return v1(z,$,(w,A,R)=>{A.apply(C,w.concat((E,...b)=>{R(E,b)}))},(w,A)=>j(w,...A)),j[N6]}}function JX(...U){return P4(...U.reverse())}function _z(U,z,$,C){return v(X0(z),U,$,C)}var Z8=L(_z,4);function Az(U,z,$,C){var j=O($);return Z8(U,z,(w,A)=>{j(w,(R,...E)=>{if(R)return A(R);return A(R,E)})},(w,A)=>{var R=[];for(var E=0;E<A.length;E++)if(A[E])R=R.concat(...A[E]);return C(w,R)})}var C6=L(Az,4);function Rz(U,z,$){return C6(U,1/0,z,$)}var z3=L(Rz,3);function Ez(U,z,$){return C6(U,1,z,$)}var B3=L(Ez,3);function KX(...U){return function(...z){var $=z.pop();return $(null,...U)}}function P1(U,z){return($,C,j,w)=>{var A=!1,R;let E=O(j);$(C,(b,e,H0)=>{E(b,(Q0,a0)=>{if(Q0||Q0===!1)return H0(Q0);if(U(a0)&&!R)return A=!0,R=z(!0,b),H0(null,n);H0()})},(b)=>{if(b)return w(b);w(null,A?R:z(!1))})}}function Sz(U,z,$){return P1((C)=>C,(C,j)=>j)(l0,U,z,$)}var $3=L(Sz,3);function xz(U,z,$,C){return P1((j)=>j,(j,w)=>w)(X0(z),U,$,C)}var M3=L(xz,4);function vz(U,z,$){return P1((C)=>C,(C,j)=>j)(X0(1),U,z,$)}var F3=L(vz,3);function YX(U){return(z,...$)=>O(z)(...$,(C,...j)=>{if(typeof console==="object"){if(C){if(console.error)console.error(C)}else if(console[U])j.forEach((w)=>console[U](w))}})}var HX=YX("dir");function yz(U,z,$){$=l($);var C=O(U),j=O(z),w;function A(E,...b){if(E)return $(E);if(E===!1)return;w=b,j(...b,R)}function R(E,b){if(E)return $(E);if(E===!1)return;if(!b)return $(null,...w);C(A)}return R(null,!0)}var q8=L(yz,3);function ZX(U,z,$){let C=O(z);return q8(U,(...j)=>{let w=j.pop();C(...j,(A,R)=>w(A,!R))},$)}function qX(U){return(z,$,C)=>U(z,C)}function kz(U,z,$){return l0(U,qX(O(z)),$)}var N3=L(kz,3);function gz(U,z,$,C){return X0(z)(U,qX(O($)),C)}var V8=L(gz,4);function hz(U,z,$){return V8(U,1,z,$)}var U8=L(hz,3);function j4(U){if(M(U))return U;return function(...z){var $=z.pop(),C=!0;z.push((...j)=>{if(C)W(()=>$(...j));else $(...j)}),U.apply(this,z),C=!1}}function fz(U,z,$){return P1((C)=>!C,(C)=>!C)(l0,U,z,$)}var L3=L(fz,3);function uz(U,z,$,C){return P1((j)=>!j,(j)=>!j)(X0(z),U,$,C)}var C3=L(uz,4);function bz(U,z,$){return P1((C)=>!C,(C)=>!C)(Z1,U,z,$)}var I3=L(bz,3);function mz(U,z,$,C){var j=Array(z.length);U(z,(w,A,R)=>{$(w,(E,b)=>{j[A]=!!b,R(E)})},(w)=>{if(w)return C(w);var A=[];for(var R=0;R<z.length;R++)if(j[R])A.push(z[R]);C(null,A)})}function dz(U,z,$,C){var j=[];U(z,(w,A,R)=>{$(w,(E,b)=>{if(E)return R(E);if(b)j.push({index:A,value:w});R(E)})},(w)=>{if(w)return C(w);C(null,j.sort((A,R)=>A.index-R.index).map((A)=>A.value))})}function O3(U,z,$,C){var j=g(z)?mz:dz;return j(U,z,O($),C)}function cz(U,z,$){return O3(l0,U,z,$)}var P3=L(cz,3);function pz(U,z,$,C){return O3(X0(z),U,$,C)}var j3=L(pz,4);function lz(U,z,$){return O3(Z1,U,z,$)}var w3=L(lz,3);function nz(U,z){var $=l(z),C=O(j4(U));function j(w){if(w)return $(w);if(w===!1)return;C(j)}return j()}var VX=L(nz,2);function iz(U,z,$,C){var j=O($);return Z8(U,z,(w,A)=>{j(w,(R,E)=>{if(R)return A(R);return A(R,{key:E,val:w})})},(w,A)=>{var R={},{hasOwnProperty:E}=Object.prototype;for(var b=0;b<A.length;b++)if(A[b]){var{key:e}=A[b],{val:H0}=A[b];if(E.call(R,e))R[e].push(H0);else R[e]=[H0]}return C(w,R)})}var D3=L(iz,4);function UX(U,z,$){return D3(U,1/0,z,$)}function GX(U,z,$){return D3(U,1,z,$)}var WX=YX("log");function oz(U,z,$,C){C=k(C);var j={},w=O($);return X0(z)(U,(A,R,E)=>{w(A,R,(b,e)=>{if(b)return E(b);j[R]=e,E(b)})},(A)=>C(A,j))}var T3=L(oz,4);function zX(U,z,$){return T3(U,1/0,z,$)}function BX(U,z,$){return T3(U,1,z,$)}function $X(U,z=($)=>$){var $=Object.create(null),C=Object.create(null),j=O(U),w=J((A,R)=>{var E=z(...A);if(E in $)W(()=>R(null,...$[E]));else if(E in C)C[E].push(R);else C[E]=[R],j(...A,(b,...e)=>{if(!b)$[E]=e;var H0=C[E];delete C[E];for(var Q0=0,a0=H0.length;Q0<a0;Q0++)H0[Q0](b,...e)})});return w.memo=$,w.unmemoized=U,w}var _3;if(H)_3=process.nextTick;else if(Y)_3=setImmediate;else _3=Z;var MX=q(_3),w4=L((U,z,$)=>{var C=g(z)?[]:{};U(z,(j,w,A)=>{O(j)((R,...E)=>{if(E.length<2)[E]=E;C[w]=E,A(R)})},(j)=>$(j,C))},3);function FX(U,z){return w4(l0,U,z)}function NX(U,z,$){return w4(X0(z),U,$)}function D4(U,z){var $=O(U);return O4((C,j)=>{$(C[0],j)},z,1)}class LX{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(U){let z;while(U>0&&T4(this.heap[U],this.heap[z=CX(U)])){let $=this.heap[U];this.heap[U]=this.heap[z],this.heap[z]=$,U=z}}percDown(U){let z;while((z=rz(U))<this.heap.length){if(z+1<this.heap.length&&T4(this.heap[z+1],this.heap[z]))z=z+1;if(T4(this.heap[U],this.heap[z]))break;let $=this.heap[U];this.heap[U]=this.heap[z],this.heap[z]=$,U=z}}push(U){U.pushCount=++this.pushCount,this.heap.push(U),this.percUp(this.heap.length-1)}unshift(U){return this.heap.push(U)}shift(){let[U]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),U}toArray(){return[...this]}*[Symbol.iterator](){for(let U=0;U<this.heap.length;U++)yield this.heap[U].data}remove(U){let z=0;for(let $=0;$<this.heap.length;$++)if(!U(this.heap[$]))this.heap[z]=this.heap[$],z++;this.heap.splice(z);for(let $=CX(this.heap.length-1);$>=0;$--)this.percDown($);return this}}function rz(U){return(U<<1)+1}function CX(U){return(U+1>>1)-1}function T4(U,z){if(U.priority!==z.priority)return U.priority<z.priority;else return U.pushCount<z.pushCount}function IX(U,z){var $=D4(U,z),{push:C,pushAsync:j}=$;$._tasks=new LX,$._createTaskItem=({data:A,priority:R},E)=>{return{data:A,priority:R,callback:E}};function w(A,R){if(!Array.isArray(A))return{data:A,priority:R};return A.map((E)=>{return{data:E,priority:R}})}return $.push=function(A,R=0,E){return C(w(A,R),E)},$.pushAsync=function(A,R=0,E){return j(w(A,R),E)},delete $.unshift,delete $.unshiftAsync,$}function sz(U,z){if(z=k(z),!Array.isArray(U))return z(TypeError("First argument to race must be an array of functions"));if(!U.length)return z();for(var $=0,C=U.length;$<C;$++)O(U[$])(z)}var OX=L(sz,2);function A3(U,z,$,C){var j=[...U].reverse();return v1(j,z,$,C)}function R3(U){var z=O(U);return J(function(C,j){return C.push((w,...A)=>{let R={};if(w)R.error=w;if(A.length>0){var E=A;if(A.length<=1)[E]=A;R.value=E}j(null,R)}),z.apply(this,C)})}function PX(U){var z;if(Array.isArray(U))z=U.map(R3);else z={},Object.keys(U).forEach(($)=>{z[$]=R3.call(this,U[$])});return z}function _4(U,z,$,C){let j=O($);return O3(U,z,(w,A)=>{j(w,(R,E)=>{A(R,!E)})},C)}function az(U,z,$){return _4(l0,U,z,$)}var jX=L(az,3);function tz(U,z,$,C){return _4(X0(z),U,$,C)}var wX=L(tz,4);function ez(U,z,$){return _4(Z1,U,z,$)}var DX=L(ez,3);function TX(U){return function(){return U}}let A4=5,_X=0;function E3(U,z,$){var C={times:A4,intervalFunc:TX(_X)};if(arguments.length<3&&typeof U==="function")$=z||L6(),z=U;else XB(C,U),$=$||L6();if(typeof z!=="function")throw Error("Invalid arguments for async.retry");var j=O(z),w=1;function A(){j((R,...E)=>{if(R===!1)return;if(R&&w++<C.times&&(typeof C.errorFilter!="function"||C.errorFilter(R)))setTimeout(A,C.intervalFunc(w-1));else $(R,...E)})}return A(),$[N6]}function XB(U,z){if(typeof z==="object")U.times=+z.times||A4,U.intervalFunc=typeof z.interval==="function"?z.interval:TX(+z.interval||_X),U.errorFilter=z.errorFilter;else if(typeof z==="number"||typeof z==="string")U.times=+z||A4;else throw Error("Invalid arguments for async.retry")}function AX(U,z){if(!z)z=U,U=null;let $=U&&U.arity||z.length;if(M(z))$+=1;var C=O(z);return J((j,w)=>{if(j.length<$-1||w==null)j.push(w),w=L6();function A(R){C(...j,R)}if(U)E3(U,A,w);else E3(A,w);return w[N6]})}function RX(U,z){return w4(Z1,U,z)}function QB(U,z,$){return P1(Boolean,(C)=>C)(l0,U,z,$)}var S3=L(QB,3);function JB(U,z,$,C){return P1(Boolean,(j)=>j)(X0(z),U,$,C)}var x3=L(JB,4);function KB(U,z,$){return P1(Boolean,(C)=>C)(Z1,U,z,$)}var v3=L(KB,3);function YB(U,z,$){var C=O(z);return W3(U,(w,A)=>{C(w,(R,E)=>{if(R)return A(R);A(R,{value:w,criteria:E})})},(w,A)=>{if(w)return $(w);$(null,A.sort(j).map((R)=>R.value))});function j(w,A){var R=w.criteria,E=A.criteria;return R<E?-1:R>E?1:0}}var EX=L(YB,3);function SX(U,z,$){var C=O(U);return J((j,w)=>{var A=!1,R;function E(){var b=U.name||"anonymous",e=Error('Callback function "'+b+'" timed out.');if(e.code="ETIMEDOUT",$)e.info=$;A=!0,w(e)}j.push((...b)=>{if(!A)w(...b),clearTimeout(R)}),R=setTimeout(E,z),C(...j)})}function HB(U){var z=Array(U);while(U--)z[U]=U;return z}function y3(U,z,$,C){var j=O($);return Z8(HB(U),z,j,C)}function xX(U,z,$){return y3(U,1/0,z,$)}function vX(U,z,$){return y3(U,1,z,$)}function yX(U,z,$,C){if(arguments.length<=3&&typeof z==="function")C=$,$=z,z=Array.isArray(U)?[]:{};C=k(C||L6());var j=O($);return l0(U,(w,A,R)=>{j(z,w,A,R)},(w)=>C(w,z)),C[N6]}function ZB(U,z){var $=null,C;return U8(U,(j,w)=>{O(j)((A,...R)=>{if(A===!1)return w(A);if(R.length<2)[C]=R;else C=R;$=A,w(A?null:{})})},()=>z($,C))}var kX=L(ZB);function gX(U){return(...z)=>{return(U.unmemoized||U)(...z)}}function qB(U,z,$){$=l($);var C=O(z),j=O(U),w=[];function A(E,...b){if(E)return $(E);if(w=b,E===!1)return;j(R)}function R(E,b){if(E)return $(E);if(E===!1)return;if(!b)return $(null,...w);C(A)}return j(R)}var G8=L(qB,3);function hX(U,z,$){let C=O(U);return G8((j)=>C((w,A)=>j(w,!A)),z,$)}function VB(U,z){if(z=k(z),!Array.isArray(U))return z(Error("First argument to waterfall must be an array of functions"));if(!U.length)return z();var $=0;function C(w){var A=O(U[$++]);A(...w,l(j))}function j(w,...A){if(w===!1)return;if(w||$===U.length)return z(w,...A);C(A)}C([])}var fX=L(VB),UB={apply:Q,applyEach:r2,applyEachSeries:s2,asyncify:G,auto:I4,autoInject:a2,cargo:XX,cargoQueue:QX,compose:JX,concat:z3,concatLimit:C6,concatSeries:B3,constant:KX,detect:$3,detectLimit:M3,detectSeries:F3,dir:HX,doUntil:ZX,doWhilst:q8,each:N3,eachLimit:V8,eachOf:l0,eachOfLimit:Y0,eachOfSeries:Z1,eachSeries:U8,ensureAsync:j4,every:L3,everyLimit:C3,everySeries:I3,filter:P3,filterLimit:j3,filterSeries:w3,forever:VX,groupBy:UX,groupByLimit:D3,groupBySeries:GX,log:WX,map:W3,mapLimit:Z8,mapSeries:C4,mapValues:zX,mapValuesLimit:T3,mapValuesSeries:BX,memoize:$X,nextTick:MX,parallel:FX,parallelLimit:NX,priorityQueue:IX,queue:D4,race:OX,reduce:v1,reduceRight:A3,reflect:R3,reflectAll:PX,reject:jX,rejectLimit:wX,rejectSeries:DX,retry:E3,retryable:AX,seq:P4,series:RX,setImmediate:W,some:S3,someLimit:x3,someSeries:v3,sortBy:EX,timeout:SX,times:xX,timesLimit:y3,timesSeries:vX,transform:yX,tryEach:kX,unmemoize:gX,until:hX,waterfall:fX,whilst:G8,all:L3,allLimit:C3,allSeries:I3,any:S3,anyLimit:x3,anySeries:v3,find:$3,findLimit:M3,findSeries:F3,flatMap:z3,flatMapLimit:C6,flatMapSeries:B3,forEach:N3,forEachSeries:U8,forEachLimit:V8,forEachOf:l0,forEachOfSeries:Z1,forEachOfLimit:Y0,inject:v1,foldl:v1,foldr:A3,select:P3,selectLimit:j3,selectSeries:w3,wrapSync:G,during:G8,doDuring:q8};X.all=L3,X.allLimit=C3,X.allSeries=I3,X.any=S3,X.anyLimit=x3,X.anySeries=v3,X.apply=Q,X.applyEach=r2,X.applyEachSeries=s2,X.asyncify=G,X.auto=I4,X.autoInject=a2,X.cargo=XX,X.cargoQueue=QX,X.compose=JX,X.concat=z3,X.concatLimit=C6,X.concatSeries=B3,X.constant=KX,X.default=UB,X.detect=$3,X.detectLimit=M3,X.detectSeries=F3,X.dir=HX,X.doDuring=q8,X.doUntil=ZX,X.doWhilst=q8,X.during=G8,X.each=N3,X.eachLimit=V8,X.eachOf=l0,X.eachOfLimit=Y0,X.eachOfSeries=Z1,X.eachSeries=U8,X.ensureAsync=j4,X.every=L3,X.everyLimit=C3,X.everySeries=I3,X.filter=P3,X.filterLimit=j3,X.filterSeries=w3,X.find=$3,X.findLimit=M3,X.findSeries=F3,X.flatMap=z3,X.flatMapLimit=C6,X.flatMapSeries=B3,X.foldl=v1,X.foldr=A3,X.forEach=N3,X.forEachLimit=V8,X.forEachOf=l0,X.forEachOfLimit=Y0,X.forEachOfSeries=Z1,X.forEachSeries=U8,X.forever=VX,X.groupBy=UX,X.groupByLimit=D3,X.groupBySeries=GX,X.inject=v1,X.log=WX,X.map=W3,X.mapLimit=Z8,X.mapSeries=C4,X.mapValues=zX,X.mapValuesLimit=T3,X.mapValuesSeries=BX,X.memoize=$X,X.nextTick=MX,X.parallel=FX,X.parallelLimit=NX,X.priorityQueue=IX,X.queue=D4,X.race=OX,X.reduce=v1,X.reduceRight=A3,X.reflect=R3,X.reflectAll=PX,X.reject=jX,X.rejectLimit=wX,X.rejectSeries=DX,X.retry=E3,X.retryable=AX,X.select=P3,X.selectLimit=j3,X.selectSeries=w3,X.seq=P4,X.series=RX,X.setImmediate=W,X.some=S3,X.someLimit=x3,X.someSeries=v3,X.sortBy=EX,X.timeout=SX,X.times=xX,X.timesLimit=y3,X.timesSeries=vX,X.transform=yX,X.tryEach=kX,X.unmemoize=gX,X.until=hX,X.waterfall=fX,X.whilst=G8,X.wrapSync=G,Object.defineProperty(X,"__esModule",{value:!0})})});var BQ=N((ZS,zQ)=>{var k1=f("constants"),xB=process.cwd,h3=null,vB=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!h3)h3=xB.call(process);return h3};try{process.cwd()}catch(X){}if(typeof process.chdir==="function"){if(f3=process.chdir,process.chdir=function(X){h3=null,f3.call(process,X)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,f3)}var f3;zQ.exports=yB;function yB(X){if(k1.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))Q(X);if(!X.lutimes)J(X);if(X.chown=H(X.chown),X.fchown=H(X.fchown),X.lchown=H(X.lchown),X.chmod=K(X.chmod),X.fchmod=K(X.fchmod),X.lchmod=K(X.lchmod),X.chownSync=Z(X.chownSync),X.fchownSync=Z(X.fchownSync),X.lchownSync=Z(X.lchownSync),X.chmodSync=Y(X.chmodSync),X.fchmodSync=Y(X.fchmodSync),X.lchmodSync=Y(X.lchmodSync),X.stat=q(X.stat),X.fstat=q(X.fstat),X.lstat=q(X.lstat),X.statSync=V(X.statSync),X.fstatSync=V(X.fstatSync),X.lstatSync=V(X.lstatSync),X.chmod&&!X.lchmod)X.lchmod=function(G,B,F){if(F)process.nextTick(F)},X.lchmodSync=function(){};if(X.chown&&!X.lchown)X.lchown=function(G,B,F,M){if(M)process.nextTick(M)},X.lchownSync=function(){};if(vB==="win32")X.rename=typeof X.rename!=="function"?X.rename:function(G){function B(F,M,I){var P=Date.now(),O=0;G(F,M,function L(x){if(x&&(x.code==="EACCES"||x.code==="EPERM"||x.code==="EBUSY")&&Date.now()-P<60000){if(setTimeout(function(){X.stat(M,function(v,g){if(v&&v.code==="ENOENT")G(F,M,L);else I(x)})},O),O<100)O+=10;return}if(I)I(x)})}if(Object.setPrototypeOf)Object.setPrototypeOf(B,G);return B}(X.rename);X.read=typeof X.read!=="function"?X.read:function(G){function B(F,M,I,P,O,L){var x;if(L&&typeof L==="function"){var v=0;x=function(g,n,k){if(g&&g.code==="EAGAIN"&&v<10)return v++,G.call(X,F,M,I,P,O,x);L.apply(this,arguments)}}return G.call(X,F,M,I,P,O,x)}if(Object.setPrototypeOf)Object.setPrototypeOf(B,G);return B}(X.read),X.readSync=typeof X.readSync!=="function"?X.readSync:function(G){return function(B,F,M,I,P){var O=0;while(!0)try{return G.call(X,B,F,M,I,P)}catch(L){if(L.code==="EAGAIN"&&O<10){O++;continue}throw L}}}(X.readSync);function Q(G){G.lchmod=function(B,F,M){G.open(B,k1.O_WRONLY|k1.O_SYMLINK,F,function(I,P){if(I){if(M)M(I);return}G.fchmod(P,F,function(O){G.close(P,function(L){if(M)M(O||L)})})})},G.lchmodSync=function(B,F){var M=G.openSync(B,k1.O_WRONLY|k1.O_SYMLINK,F),I=!0,P;try{P=G.fchmodSync(M,F),I=!1}finally{if(I)try{G.closeSync(M)}catch(O){}else G.closeSync(M)}return P}}function J(G){if(k1.hasOwnProperty("O_SYMLINK")&&G.futimes)G.lutimes=function(B,F,M,I){G.open(B,k1.O_SYMLINK,function(P,O){if(P){if(I)I(P);return}G.futimes(O,F,M,function(L){G.close(O,function(x){if(I)I(L||x)})})})},G.lutimesSync=function(B,F,M){var I=G.openSync(B,k1.O_SYMLINK),P,O=!0;try{P=G.futimesSync(I,F,M),O=!1}finally{if(O)try{G.closeSync(I)}catch(L){}else G.closeSync(I)}return P};else if(G.futimes)G.lutimes=function(B,F,M,I){if(I)process.nextTick(I)},G.lutimesSync=function(){}}function K(G){if(!G)return G;return function(B,F,M){return G.call(X,B,F,function(I){if(W(I))I=null;if(M)M.apply(this,arguments)})}}function Y(G){if(!G)return G;return function(B,F){try{return G.call(X,B,F)}catch(M){if(!W(M))throw M}}}function H(G){if(!G)return G;return function(B,F,M,I){return G.call(X,B,F,M,function(P){if(W(P))P=null;if(I)I.apply(this,arguments)})}}function Z(G){if(!G)return G;return function(B,F,M){try{return G.call(X,B,F,M)}catch(I){if(!W(I))throw I}}}function q(G){if(!G)return G;return function(B,F,M){if(typeof F==="function")M=F,F=null;function I(P,O){if(O){if(O.uid<0)O.uid+=4294967296;if(O.gid<0)O.gid+=4294967296}if(M)M.apply(this,arguments)}return F?G.call(X,B,F,I):G.call(X,B,I)}}function V(G){if(!G)return G;return function(B,F){var M=F?G.call(X,B,F):G.call(X,B);if(M){if(M.uid<0)M.uid+=4294967296;if(M.gid<0)M.gid+=4294967296}return M}}function W(G){if(!G)return!0;if(G.code==="ENOSYS")return!0;var B=!process.getuid||process.getuid()!==0;if(B){if(G.code==="EINVAL"||G.code==="EPERM")return!0}return!1}}});var FQ=N((qS,MQ)=>{var $Q=f("stream").Stream;MQ.exports=kB;function kB(X){return{ReadStream:Q,WriteStream:J};function Q(K,Y){if(!(this instanceof Q))return new Q(K,Y);$Q.call(this);var H=this;this.path=K,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,Y=Y||{};var Z=Object.keys(Y);for(var q=0,V=Z.length;q<V;q++){var W=Z[q];this[W]=Y[W]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){H._read()});return}X.open(this.path,this.flags,this.mode,function(G,B){if(G){H.emit("error",G),H.readable=!1;return}H.fd=B,H.emit("open",B),H._read()})}function J(K,Y){if(!(this instanceof J))return new J(K,Y);$Q.call(this),this.path=K,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,Y=Y||{};var H=Object.keys(Y);for(var Z=0,q=H.length;Z<q;Z++){var V=H[Z];this[V]=Y[V]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=X.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var LQ=N((VS,NQ)=>{NQ.exports=hB;var gB=Object.getPrototypeOf||function(X){return X.__proto__};function hB(X){if(X===null||typeof X!=="object")return X;if(X instanceof Object)var Q={__proto__:gB(X)};else var Q=Object.create(null);return Object.getOwnPropertyNames(X).forEach(function(J){Object.defineProperty(Q,J,Object.getOwnPropertyDescriptor(X,J))}),Q}});var p4=N((US,c4)=>{var C0=f("fs"),fB=BQ(),uB=FQ(),bB=LQ(),u3=f("util"),x0,m3;if(typeof Symbol==="function"&&typeof Symbol.for==="function")x0=Symbol.for("graceful-fs.queue"),m3=Symbol.for("graceful-fs.previous");else x0="___graceful-fs.queue",m3="___graceful-fs.previous";function mB(){}function IQ(X,Q){Object.defineProperty(X,x0,{get:function(){return Q}})}var r1=mB;if(u3.debuglog)r1=u3.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))r1=function(){var X=u3.format.apply(u3,arguments);X="GFS4: "+X.split(/\n/).join(`
7
- GFS4: `),console.error(X)};if(!C0[x0]){if(b4=global[x0]||[],IQ(C0,b4),C0.close=function(X){function Q(J,K){return X.call(C0,J,function(Y){if(!Y)CQ();if(typeof K==="function")K.apply(this,arguments)})}return Object.defineProperty(Q,m3,{value:X}),Q}(C0.close),C0.closeSync=function(X){function Q(J){X.apply(C0,arguments),CQ()}return Object.defineProperty(Q,m3,{value:X}),Q}(C0.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){r1(C0[x0]),f("assert").equal(C0[x0].length,0)})}var b4;if(!global[x0])IQ(global,C0[x0]);c4.exports=m4(bB(C0));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!C0.__patched)c4.exports=m4(C0),C0.__patched=!0;function m4(X){fB(X),X.gracefulify=m4,X.createReadStream=n,X.createWriteStream=k;var Q=X.readFile;X.readFile=J;function J(T,S,y){if(typeof S==="function")y=S,S=null;return l(T,S,y);function l(t,X0,z0,Y0){return Q(t,X0,function(G0){if(G0&&(G0.code==="EMFILE"||G0.code==="ENFILE"))P6([l,[t,X0,z0],G0,Y0||Date.now(),Date.now()]);else if(typeof z0==="function")z0.apply(this,arguments)})}}var K=X.writeFile;X.writeFile=Y;function Y(T,S,y,l){if(typeof y==="function")l=y,y=null;return t(T,S,y,l);function t(X0,z0,Y0,G0,w0){return K(X0,z0,Y0,function(B0){if(B0&&(B0.code==="EMFILE"||B0.code==="ENFILE"))P6([t,[X0,z0,Y0,G0],B0,w0||Date.now(),Date.now()]);else if(typeof G0==="function")G0.apply(this,arguments)})}}var H=X.appendFile;if(H)X.appendFile=Z;function Z(T,S,y,l){if(typeof y==="function")l=y,y=null;return t(T,S,y,l);function t(X0,z0,Y0,G0,w0){return H(X0,z0,Y0,function(B0){if(B0&&(B0.code==="EMFILE"||B0.code==="ENFILE"))P6([t,[X0,z0,Y0,G0],B0,w0||Date.now(),Date.now()]);else if(typeof G0==="function")G0.apply(this,arguments)})}}var q=X.copyFile;if(q)X.copyFile=V;function V(T,S,y,l){if(typeof y==="function")l=y,y=0;return t(T,S,y,l);function t(X0,z0,Y0,G0,w0){return q(X0,z0,Y0,function(B0){if(B0&&(B0.code==="EMFILE"||B0.code==="ENFILE"))P6([t,[X0,z0,Y0,G0],B0,w0||Date.now(),Date.now()]);else if(typeof G0==="function")G0.apply(this,arguments)})}}var W=X.readdir;X.readdir=B;var G=/^v[0-5]\./;function B(T,S,y){if(typeof S==="function")y=S,S=null;var l=G.test(process.version)?function(z0,Y0,G0,w0){return W(z0,t(z0,Y0,G0,w0))}:function(z0,Y0,G0,w0){return W(z0,Y0,t(z0,Y0,G0,w0))};return l(T,S,y);function t(X0,z0,Y0,G0){return function(w0,B0){if(w0&&(w0.code==="EMFILE"||w0.code==="ENFILE"))P6([l,[X0,z0,Y0],w0,G0||Date.now(),Date.now()]);else{if(B0&&B0.sort)B0.sort();if(typeof Y0==="function")Y0.call(this,w0,B0)}}}}if(process.version.substr(0,4)==="v0.8"){var F=uB(X);L=F.ReadStream,v=F.WriteStream}var M=X.ReadStream;if(M)L.prototype=Object.create(M.prototype),L.prototype.open=x;var I=X.WriteStream;if(I)v.prototype=Object.create(I.prototype),v.prototype.open=g;Object.defineProperty(X,"ReadStream",{get:function(){return L},set:function(T){L=T},enumerable:!0,configurable:!0}),Object.defineProperty(X,"WriteStream",{get:function(){return v},set:function(T){v=T},enumerable:!0,configurable:!0});var P=L;Object.defineProperty(X,"FileReadStream",{get:function(){return P},set:function(T){P=T},enumerable:!0,configurable:!0});var O=v;Object.defineProperty(X,"FileWriteStream",{get:function(){return O},set:function(T){O=T},enumerable:!0,configurable:!0});function L(T,S){if(this instanceof L)return M.apply(this,arguments),this;else return L.apply(Object.create(L.prototype),arguments)}function x(){var T=this;m(T.path,T.flags,T.mode,function(S,y){if(S){if(T.autoClose)T.destroy();T.emit("error",S)}else T.fd=y,T.emit("open",y),T.read()})}function v(T,S){if(this instanceof v)return I.apply(this,arguments),this;else return v.apply(Object.create(v.prototype),arguments)}function g(){var T=this;m(T.path,T.flags,T.mode,function(S,y){if(S)T.destroy(),T.emit("error",S);else T.fd=y,T.emit("open",y)})}function n(T,S){return new X.ReadStream(T,S)}function k(T,S){return new X.WriteStream(T,S)}var D=X.open;X.open=m;function m(T,S,y,l){if(typeof y==="function")l=y,y=null;return t(T,S,y,l);function t(X0,z0,Y0,G0,w0){return D(X0,z0,Y0,function(B0,l0){if(B0&&(B0.code==="EMFILE"||B0.code==="ENFILE"))P6([t,[X0,z0,Y0,G0],B0,w0||Date.now(),Date.now()]);else if(typeof G0==="function")G0.apply(this,arguments)})}}return X}function P6(X){r1("ENQUEUE",X[0].name,X[1]),C0[x0].push(X),d4()}var b3;function CQ(){var X=Date.now();for(var Q=0;Q<C0[x0].length;++Q)if(C0[x0][Q].length>2)C0[x0][Q][3]=X,C0[x0][Q][4]=X;d4()}function d4(){if(clearTimeout(b3),b3=void 0,C0[x0].length===0)return;var X=C0[x0].shift(),Q=X[0],J=X[1],K=X[2],Y=X[3],H=X[4];if(Y===void 0)r1("RETRY",Q.name,J),Q.apply(null,J);else if(Date.now()-Y>=60000){r1("TIMEOUT",Q.name,J);var Z=J.pop();if(typeof Z==="function")Z.call(null,K)}else{var q=Date.now()-H,V=Math.max(H-Y,1),W=Math.min(V*1.2,100);if(q>=W)r1("RETRY",Q.name,J),Q.apply(null,J.concat([Y]));else C0[x0].push(X)}if(b3===void 0)b3=setTimeout(d4,0)}});var d3=N((GS,OQ)=>{var W1=(X)=>X!==null&&typeof X==="object"&&typeof X.pipe==="function";W1.writable=(X)=>W1(X)&&X.writable!==!1&&typeof X._write==="function"&&typeof X._writableState==="object";W1.readable=(X)=>W1(X)&&X.readable!==!1&&typeof X._read==="function"&&typeof X._readableState==="object";W1.duplex=(X)=>W1.writable(X)&&W1.readable(X);W1.transform=(X)=>W1.duplex(X)&&typeof X._transform==="function";OQ.exports=W1});var M8=N((WS,l4)=>{if(typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)l4.exports={nextTick:dB};else l4.exports=process;function dB(X,Q,J,K){if(typeof X!=="function")throw TypeError('"callback" argument must be a function');var Y=arguments.length,H,Z;switch(Y){case 0:case 1:return process.nextTick(X);case 2:return process.nextTick(function(){X.call(null,Q)});case 3:return process.nextTick(function(){X.call(null,Q,J)});case 4:return process.nextTick(function(){X.call(null,Q,J,K)});default:H=Array(Y-1),Z=0;while(Z<H.length)H[Z++]=arguments[Z];return process.nextTick(function(){X.apply(null,H)})}}});var jQ=N((zS,PQ)=>{var cB={}.toString;PQ.exports=Array.isArray||function(X){return cB.call(X)=="[object Array]"}});var F8=N((n4,DQ)=>{var c3=f("buffer"),j1=c3.Buffer;function wQ(X,Q){for(var J in X)Q[J]=X[J]}if(j1.from&&j1.alloc&&j1.allocUnsafe&&j1.allocUnsafeSlow)DQ.exports=c3;else wQ(c3,n4),n4.Buffer=j6;function j6(X,Q,J){return j1(X,Q,J)}wQ(j1,j6);j6.from=function(X,Q,J){if(typeof X==="number")throw TypeError("Argument must not be a number");return j1(X,Q,J)};j6.alloc=function(X,Q,J){if(typeof X!=="number")throw TypeError("Argument must be a number");var K=j1(X);if(Q!==void 0)if(typeof J==="string")K.fill(Q,J);else K.fill(Q);else K.fill(0);return K};j6.allocUnsafe=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return j1(X)};j6.allocUnsafeSlow=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return c3.SlowBuffer(X)}});var w6=N((Y$)=>{function pB(X){if(Array.isArray)return Array.isArray(X);return p3(X)==="[object Array]"}Y$.isArray=pB;function lB(X){return typeof X==="boolean"}Y$.isBoolean=lB;function nB(X){return X===null}Y$.isNull=nB;function iB(X){return X==null}Y$.isNullOrUndefined=iB;function oB(X){return typeof X==="number"}Y$.isNumber=oB;function rB(X){return typeof X==="string"}Y$.isString=rB;function sB(X){return typeof X==="symbol"}Y$.isSymbol=sB;function aB(X){return X===void 0}Y$.isUndefined=aB;function tB(X){return p3(X)==="[object RegExp]"}Y$.isRegExp=tB;function eB(X){return typeof X==="object"&&X!==null}Y$.isObject=eB;function X$(X){return p3(X)==="[object Date]"}Y$.isDate=X$;function Q$(X){return p3(X)==="[object Error]"||X instanceof Error}Y$.isError=Q$;function J$(X){return typeof X==="function"}Y$.isFunction=J$;function K$(X){return X===null||typeof X==="boolean"||typeof X==="number"||typeof X==="string"||typeof X==="symbol"||typeof X>"u"}Y$.isPrimitive=K$;Y$.isBuffer=f("buffer").Buffer.isBuffer;function p3(X){return Object.prototype.toString.call(X)}});var TQ=N(($S,i4)=>{if(typeof Object.create==="function")i4.exports=function(Q,J){if(J)Q.super_=J,Q.prototype=Object.create(J.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}})};else i4.exports=function(Q,J){if(J){Q.super_=J;var K=function(){};K.prototype=J.prototype,Q.prototype=new K,Q.prototype.constructor=Q}}});var D6=N((MS,o4)=>{try{if(l3=f("util"),typeof l3.inherits!=="function")throw"";o4.exports=l3.inherits}catch(X){o4.exports=TQ()}var l3});var AQ=N((FS,r4)=>{function I$(X,Q){if(!(X instanceof Q))throw TypeError("Cannot call a class as a function")}var _Q=F8().Buffer,N8=f("util");function O$(X,Q,J){X.copy(Q,J)}r4.exports=function(){function X(){I$(this,X),this.head=null,this.tail=null,this.length=0}return X.prototype.push=function(J){var K={data:J,next:null};if(this.length>0)this.tail.next=K;else this.head=K;this.tail=K,++this.length},X.prototype.unshift=function(J){var K={data:J,next:this.head};if(this.length===0)this.tail=K;this.head=K,++this.length},X.prototype.shift=function(){if(this.length===0)return;var J=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,J},X.prototype.clear=function(){this.head=this.tail=null,this.length=0},X.prototype.join=function(J){if(this.length===0)return"";var K=this.head,Y=""+K.data;while(K=K.next)Y+=J+K.data;return Y},X.prototype.concat=function(J){if(this.length===0)return _Q.alloc(0);var K=_Q.allocUnsafe(J>>>0),Y=this.head,H=0;while(Y)O$(Y.data,K,H),H+=Y.data.length,Y=Y.next;return K},X}();if(N8&&N8.inspect&&N8.inspect.custom)r4.exports.prototype[N8.inspect.custom]=function(){var X=N8.inspect({length:this.length});return this.constructor.name+" "+X}});var s4=N((NS,RQ)=>{var n3=M8();function P$(X,Q){var J=this,K=this._readableState&&this._readableState.destroyed,Y=this._writableState&&this._writableState.destroyed;if(K||Y){if(Q)Q(X);else if(X){if(!this._writableState)n3.nextTick(i3,this,X);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,n3.nextTick(i3,this,X)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(X||null,function(H){if(!Q&&H){if(!J._writableState)n3.nextTick(i3,J,H);else if(!J._writableState.errorEmitted)J._writableState.errorEmitted=!0,n3.nextTick(i3,J,H)}else if(Q)Q(H)}),this}function j$(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function i3(X,Q){X.emit("error",Q)}RQ.exports={destroy:P$,undestroy:j$}});var SQ=N((LS,EQ)=>{EQ.exports=f("util").deprecate});var t4=N((CS,uQ)=>{var s1=M8();uQ.exports=j0;function vQ(X){var Q=this;this.next=null,this.entry=null,this.finish=function(){m$(Q,X)}}var w$=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:s1.nextTick,T6;j0.WritableState=C8;var yQ=Object.create(w6());yQ.inherits=D6();var D$={deprecate:SQ()},kQ=f("stream"),r3=F8().Buffer,T$=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _$(X){return r3.from(X)}function A$(X){return r3.isBuffer(X)||X instanceof T$}var gQ=s4();yQ.inherits(j0,kQ);function R$(){}function C8(X,Q){T6=T6||a1(),X=X||{};var J=Q instanceof T6;if(this.objectMode=!!X.objectMode,J)this.objectMode=this.objectMode||!!X.writableObjectMode;var{highWaterMark:K,writableHighWaterMark:Y}=X,H=this.objectMode?16:16384;if(K||K===0)this.highWaterMark=K;else if(J&&(Y||Y===0))this.highWaterMark=Y;else this.highWaterMark=H;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=X.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){g$(Q,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new vQ(this)}C8.prototype.getBuffer=function(){var Q=this.bufferedRequest,J=[];while(Q)J.push(Q),Q=Q.next;return J};(function(){try{Object.defineProperty(C8.prototype,"buffer",{get:D$.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(X){}})();var o3;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")o3=Function.prototype[Symbol.hasInstance],Object.defineProperty(j0,Symbol.hasInstance,{value:function(X){if(o3.call(this,X))return!0;if(this!==j0)return!1;return X&&X._writableState instanceof C8}});else o3=function(X){return X instanceof this};function j0(X){if(T6=T6||a1(),!o3.call(j0,this)&&!(this instanceof T6))return new j0(X);if(this._writableState=new C8(X,this),this.writable=!0,X){if(typeof X.write==="function")this._write=X.write;if(typeof X.writev==="function")this._writev=X.writev;if(typeof X.destroy==="function")this._destroy=X.destroy;if(typeof X.final==="function")this._final=X.final}kQ.call(this)}j0.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function E$(X,Q){var J=Error("write after end");X.emit("error",J),s1.nextTick(Q,J)}function S$(X,Q,J,K){var Y=!0,H=!1;if(J===null)H=TypeError("May not write null values to stream");else if(typeof J!=="string"&&J!==void 0&&!Q.objectMode)H=TypeError("Invalid non-string/buffer chunk");if(H)X.emit("error",H),s1.nextTick(K,H),Y=!1;return Y}j0.prototype.write=function(X,Q,J){var K=this._writableState,Y=!1,H=!K.objectMode&&A$(X);if(H&&!r3.isBuffer(X))X=_$(X);if(typeof Q==="function")J=Q,Q=null;if(H)Q="buffer";else if(!Q)Q=K.defaultEncoding;if(typeof J!=="function")J=R$;if(K.ended)E$(this,J);else if(H||S$(this,K,X,J))K.pendingcb++,Y=v$(this,K,H,X,Q,J);return Y};j0.prototype.cork=function(){var X=this._writableState;X.corked++};j0.prototype.uncork=function(){var X=this._writableState;if(X.corked){if(X.corked--,!X.writing&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest)hQ(this,X)}};j0.prototype.setDefaultEncoding=function(Q){if(typeof Q==="string")Q=Q.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+Q);return this._writableState.defaultEncoding=Q,this};function x$(X,Q,J){if(!X.objectMode&&X.decodeStrings!==!1&&typeof Q==="string")Q=r3.from(Q,J);return Q}Object.defineProperty(j0.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function v$(X,Q,J,K,Y,H){if(!J){var Z=x$(Q,K,Y);if(K!==Z)J=!0,Y="buffer",K=Z}var q=Q.objectMode?1:K.length;Q.length+=q;var V=Q.length<Q.highWaterMark;if(!V)Q.needDrain=!0;if(Q.writing||Q.corked){var W=Q.lastBufferedRequest;if(Q.lastBufferedRequest={chunk:K,encoding:Y,isBuf:J,callback:H,next:null},W)W.next=Q.lastBufferedRequest;else Q.bufferedRequest=Q.lastBufferedRequest;Q.bufferedRequestCount+=1}else a4(X,Q,!1,q,K,Y,H);return V}function a4(X,Q,J,K,Y,H,Z){if(Q.writelen=K,Q.writecb=Z,Q.writing=!0,Q.sync=!0,J)X._writev(Y,Q.onwrite);else X._write(Y,H,Q.onwrite);Q.sync=!1}function y$(X,Q,J,K,Y){if(--Q.pendingcb,J)s1.nextTick(Y,K),s1.nextTick(L8,X,Q),X._writableState.errorEmitted=!0,X.emit("error",K);else Y(K),X._writableState.errorEmitted=!0,X.emit("error",K),L8(X,Q)}function k$(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}function g$(X,Q){var J=X._writableState,K=J.sync,Y=J.writecb;if(k$(J),Q)y$(X,J,K,Q,Y);else{var H=fQ(J);if(!H&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest)hQ(X,J);if(K)w$(xQ,X,J,H,Y);else xQ(X,J,H,Y)}}function xQ(X,Q,J,K){if(!J)h$(X,Q);Q.pendingcb--,K(),L8(X,Q)}function h$(X,Q){if(Q.length===0&&Q.needDrain)Q.needDrain=!1,X.emit("drain")}function hQ(X,Q){Q.bufferProcessing=!0;var J=Q.bufferedRequest;if(X._writev&&J&&J.next){var K=Q.bufferedRequestCount,Y=Array(K),H=Q.corkedRequestsFree;H.entry=J;var Z=0,q=!0;while(J){if(Y[Z]=J,!J.isBuf)q=!1;J=J.next,Z+=1}if(Y.allBuffers=q,a4(X,Q,!0,Q.length,Y,"",H.finish),Q.pendingcb++,Q.lastBufferedRequest=null,H.next)Q.corkedRequestsFree=H.next,H.next=null;else Q.corkedRequestsFree=new vQ(Q);Q.bufferedRequestCount=0}else{while(J){var{chunk:V,encoding:W,callback:G}=J,B=Q.objectMode?1:V.length;if(a4(X,Q,!1,B,V,W,G),J=J.next,Q.bufferedRequestCount--,Q.writing)break}if(J===null)Q.lastBufferedRequest=null}Q.bufferedRequest=J,Q.bufferProcessing=!1}j0.prototype._write=function(X,Q,J){J(Error("_write() is not implemented"))};j0.prototype._writev=null;j0.prototype.end=function(X,Q,J){var K=this._writableState;if(typeof X==="function")J=X,X=null,Q=null;else if(typeof Q==="function")J=Q,Q=null;if(X!==null&&X!==void 0)this.write(X,Q);if(K.corked)K.corked=1,this.uncork();if(!K.ending)b$(this,K,J)};function fQ(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}function f$(X,Q){X._final(function(J){if(Q.pendingcb--,J)X.emit("error",J);Q.prefinished=!0,X.emit("prefinish"),L8(X,Q)})}function u$(X,Q){if(!Q.prefinished&&!Q.finalCalled)if(typeof X._final==="function")Q.pendingcb++,Q.finalCalled=!0,s1.nextTick(f$,X,Q);else Q.prefinished=!0,X.emit("prefinish")}function L8(X,Q){var J=fQ(Q);if(J){if(u$(X,Q),Q.pendingcb===0)Q.finished=!0,X.emit("finish")}return J}function b$(X,Q,J){if(Q.ending=!0,L8(X,Q),J)if(Q.finished)s1.nextTick(J);else X.once("finish",J);Q.ended=!0,X.writable=!1}function m$(X,Q,J){var K=X.entry;X.entry=null;while(K){var Y=K.callback;Q.pendingcb--,Y(J),K=K.next}Q.corkedRequestsFree.next=X}Object.defineProperty(j0.prototype,"destroyed",{get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(X){if(!this._writableState)return;this._writableState.destroyed=X}});j0.prototype.destroy=gQ.destroy;j0.prototype._undestroy=gQ.undestroy;j0.prototype._destroy=function(X,Q){this.end(),Q(X)}});var a1=N((IS,cQ)=>{var bQ=M8(),d$=Object.keys||function(X){var Q=[];for(var J in X)Q.push(J);return Q};cQ.exports=w1;var mQ=Object.create(w6());mQ.inherits=D6();var dQ=X5(),e4=t4();mQ.inherits(w1,dQ);{s3=d$(e4.prototype);for(I8=0;I8<s3.length;I8++)if(O8=s3[I8],!w1.prototype[O8])w1.prototype[O8]=e4.prototype[O8]}var s3,O8,I8;function w1(X){if(!(this instanceof w1))return new w1(X);if(dQ.call(this,X),e4.call(this,X),X&&X.readable===!1)this.readable=!1;if(X&&X.writable===!1)this.writable=!1;if(this.allowHalfOpen=!0,X&&X.allowHalfOpen===!1)this.allowHalfOpen=!1;this.once("end",c$)}Object.defineProperty(w1.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function c$(){if(this.allowHalfOpen||this._writableState.ended)return;bQ.nextTick(p$,this)}function p$(X){X.end()}Object.defineProperty(w1.prototype,"destroyed",{get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(X){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=X,this._writableState.destroyed=X}});w1.prototype._destroy=function(X,Q){this.push(null),this.end(),bQ.nextTick(Q,X)}});var K5=N((YM)=>{var J5=F8().Buffer,pQ=J5.isEncoding||function(X){switch(X=""+X,X&&X.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l$(X){if(!X)return"utf8";var Q;while(!0)switch(X){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return X;default:if(Q)return;X=(""+X).toLowerCase(),Q=!0}}function n$(X){var Q=l$(X);if(typeof Q!=="string"&&(J5.isEncoding===pQ||!pQ(X)))throw Error("Unknown encoding: "+X);return Q||X}YM.StringDecoder=P8;function P8(X){this.encoding=n$(X);var Q;switch(this.encoding){case"utf16le":this.text=t$,this.end=e$,Q=4;break;case"utf8":this.fillLast=r$,Q=4;break;case"base64":this.text=XM,this.end=QM,Q=3;break;default:this.write=JM,this.end=KM;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J5.allocUnsafe(Q)}P8.prototype.write=function(X){if(X.length===0)return"";var Q,J;if(this.lastNeed){if(Q=this.fillLast(X),Q===void 0)return"";J=this.lastNeed,this.lastNeed=0}else J=0;if(J<X.length)return Q?Q+this.text(X,J):this.text(X,J);return Q||""};P8.prototype.end=a$;P8.prototype.text=s$;P8.prototype.fillLast=function(X){if(this.lastNeed<=X.length)return X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,X.length),this.lastNeed-=X.length};function Q5(X){if(X<=127)return 0;else if(X>>5===6)return 2;else if(X>>4===14)return 3;else if(X>>3===30)return 4;return X>>6===2?-1:-2}function i$(X,Q,J){var K=Q.length-1;if(K<J)return 0;var Y=Q5(Q[K]);if(Y>=0){if(Y>0)X.lastNeed=Y-1;return Y}if(--K<J||Y===-2)return 0;if(Y=Q5(Q[K]),Y>=0){if(Y>0)X.lastNeed=Y-2;return Y}if(--K<J||Y===-2)return 0;if(Y=Q5(Q[K]),Y>=0){if(Y>0)if(Y===2)Y=0;else X.lastNeed=Y-3;return Y}return 0}function o$(X,Q,J){if((Q[0]&192)!==128)return X.lastNeed=0,"\uFFFD";if(X.lastNeed>1&&Q.length>1){if((Q[1]&192)!==128)return X.lastNeed=1,"\uFFFD";if(X.lastNeed>2&&Q.length>2){if((Q[2]&192)!==128)return X.lastNeed=2,"\uFFFD"}}}function r$(X){var Q=this.lastTotal-this.lastNeed,J=o$(this,X,Q);if(J!==void 0)return J;if(this.lastNeed<=X.length)return X.copy(this.lastChar,Q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,Q,0,X.length),this.lastNeed-=X.length}function s$(X,Q){var J=i$(this,X,Q);if(!this.lastNeed)return X.toString("utf8",Q);this.lastTotal=J;var K=X.length-(J-this.lastNeed);return X.copy(this.lastChar,0,K),X.toString("utf8",Q,K)}function a$(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed)return Q+"\uFFFD";return Q}function t$(X,Q){if((X.length-Q)%2===0){var J=X.toString("utf16le",Q);if(J){var K=J.charCodeAt(J.length-1);if(K>=55296&&K<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1],J.slice(0,-1)}return J}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=X[X.length-1],X.toString("utf16le",Q,X.length-1)}function e$(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed){var J=this.lastTotal-this.lastNeed;return Q+this.lastChar.toString("utf16le",0,J)}return Q}function XM(X,Q){var J=(X.length-Q)%3;if(J===0)return X.toString("base64",Q);if(this.lastNeed=3-J,this.lastTotal=3,J===1)this.lastChar[0]=X[X.length-1];else this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1];return X.toString("base64",Q,X.length-J)}function QM(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed)return Q+this.lastChar.toString("base64",0,3-this.lastNeed);return Q}function JM(X){return X.toString(this.encoding)}function KM(X){return X&&X.length?this.write(X):""}});var X5=N((jS,JJ)=>{var A6=M8();JJ.exports=$0;var ZM=jQ(),j8;$0.ReadableState=aQ;var PS=f("events").EventEmitter,oQ=function(X,Q){return X.listeners(Q).length},V5=f("stream"),w8=F8().Buffer,qM=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function VM(X){return w8.from(X)}function UM(X){return w8.isBuffer(X)||X instanceof qM}var rQ=Object.create(w6());rQ.inherits=D6();var Y5=f("util"),V0=void 0;if(Y5&&Y5.debuglog)V0=Y5.debuglog("stream");else V0=function(){};var GM=AQ(),sQ=s4(),_6;rQ.inherits($0,V5);var H5=["error","close","destroy","pause","resume"];function WM(X,Q,J){if(typeof X.prependListener==="function")return X.prependListener(Q,J);if(!X._events||!X._events[Q])X.on(Q,J);else if(ZM(X._events[Q]))X._events[Q].unshift(J);else X._events[Q]=[J,X._events[Q]]}function aQ(X,Q){j8=j8||a1(),X=X||{};var J=Q instanceof j8;if(this.objectMode=!!X.objectMode,J)this.objectMode=this.objectMode||!!X.readableObjectMode;var{highWaterMark:K,readableHighWaterMark:Y}=X,H=this.objectMode?16:16384;if(K||K===0)this.highWaterMark=K;else if(J&&(Y||Y===0))this.highWaterMark=Y;else this.highWaterMark=H;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new GM,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=X.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,X.encoding){if(!_6)_6=K5().StringDecoder;this.decoder=new _6(X.encoding),this.encoding=X.encoding}}function $0(X){if(j8=j8||a1(),!(this instanceof $0))return new $0(X);if(this._readableState=new aQ(X,this),this.readable=!0,X){if(typeof X.read==="function")this._read=X.read;if(typeof X.destroy==="function")this._destroy=X.destroy}V5.call(this)}Object.defineProperty($0.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(X){if(!this._readableState)return;this._readableState.destroyed=X}});$0.prototype.destroy=sQ.destroy;$0.prototype._undestroy=sQ.undestroy;$0.prototype._destroy=function(X,Q){this.push(null),Q(X)};$0.prototype.push=function(X,Q){var J=this._readableState,K;if(!J.objectMode){if(typeof X==="string"){if(Q=Q||J.defaultEncoding,Q!==J.encoding)X=w8.from(X,Q),Q="";K=!0}}else K=!0;return tQ(this,X,Q,!1,K)};$0.prototype.unshift=function(X){return tQ(this,X,null,!0,!1)};function tQ(X,Q,J,K,Y){var H=X._readableState;if(Q===null)H.reading=!1,MM(X,H);else{var Z;if(!Y)Z=zM(H,Q);if(Z)X.emit("error",Z);else if(H.objectMode||Q&&Q.length>0){if(typeof Q!=="string"&&!H.objectMode&&Object.getPrototypeOf(Q)!==w8.prototype)Q=VM(Q);if(K)if(H.endEmitted)X.emit("error",Error("stream.unshift() after end event"));else Z5(X,H,Q,!0);else if(H.ended)X.emit("error",Error("stream.push() after EOF"));else if(H.reading=!1,H.decoder&&!J)if(Q=H.decoder.write(Q),H.objectMode||Q.length!==0)Z5(X,H,Q,!1);else eQ(X,H);else Z5(X,H,Q,!1)}else if(!K)H.reading=!1}return BM(H)}function Z5(X,Q,J,K){if(Q.flowing&&Q.length===0&&!Q.sync)X.emit("data",J),X.read(0);else{if(Q.length+=Q.objectMode?1:J.length,K)Q.buffer.unshift(J);else Q.buffer.push(J);if(Q.needReadable)a3(X)}eQ(X,Q)}function zM(X,Q){var J;if(!UM(Q)&&typeof Q!=="string"&&Q!==void 0&&!X.objectMode)J=TypeError("Invalid non-string/buffer chunk");return J}function BM(X){return!X.ended&&(X.needReadable||X.length<X.highWaterMark||X.length===0)}$0.prototype.isPaused=function(){return this._readableState.flowing===!1};$0.prototype.setEncoding=function(X){if(!_6)_6=K5().StringDecoder;return this._readableState.decoder=new _6(X),this._readableState.encoding=X,this};var lQ=8388608;function $M(X){if(X>=lQ)X=lQ;else X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++;return X}function nQ(X,Q){if(X<=0||Q.length===0&&Q.ended)return 0;if(Q.objectMode)return 1;if(X!==X)if(Q.flowing&&Q.length)return Q.buffer.head.data.length;else return Q.length;if(X>Q.highWaterMark)Q.highWaterMark=$M(X);if(X<=Q.length)return X;if(!Q.ended)return Q.needReadable=!0,0;return Q.length}$0.prototype.read=function(X){V0("read",X),X=parseInt(X,10);var Q=this._readableState,J=X;if(X!==0)Q.emittedReadable=!1;if(X===0&&Q.needReadable&&(Q.length>=Q.highWaterMark||Q.ended)){if(V0("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended)q5(this);else a3(this);return null}if(X=nQ(X,Q),X===0&&Q.ended){if(Q.length===0)q5(this);return null}var K=Q.needReadable;if(V0("need readable",K),Q.length===0||Q.length-X<Q.highWaterMark)K=!0,V0("length less than watermark",K);if(Q.ended||Q.reading)K=!1,V0("reading or ended",K);else if(K){if(V0("do read"),Q.reading=!0,Q.sync=!0,Q.length===0)Q.needReadable=!0;if(this._read(Q.highWaterMark),Q.sync=!1,!Q.reading)X=nQ(J,Q)}var Y;if(X>0)Y=XJ(X,Q);else Y=null;if(Y===null)Q.needReadable=!0,X=0;else Q.length-=X;if(Q.length===0){if(!Q.ended)Q.needReadable=!0;if(J!==X&&Q.ended)q5(this)}if(Y!==null)this.emit("data",Y);return Y};function MM(X,Q){if(Q.ended)return;if(Q.decoder){var J=Q.decoder.end();if(J&&J.length)Q.buffer.push(J),Q.length+=Q.objectMode?1:J.length}Q.ended=!0,a3(X)}function a3(X){var Q=X._readableState;if(Q.needReadable=!1,!Q.emittedReadable)if(V0("emitReadable",Q.flowing),Q.emittedReadable=!0,Q.sync)A6.nextTick(iQ,X);else iQ(X)}function iQ(X){V0("emit readable"),X.emit("readable"),U5(X)}function eQ(X,Q){if(!Q.readingMore)Q.readingMore=!0,A6.nextTick(FM,X,Q)}function FM(X,Q){var J=Q.length;while(!Q.reading&&!Q.flowing&&!Q.ended&&Q.length<Q.highWaterMark)if(V0("maybeReadMore read 0"),X.read(0),J===Q.length)break;else J=Q.length;Q.readingMore=!1}$0.prototype._read=function(X){this.emit("error",Error("_read() is not implemented"))};$0.prototype.pipe=function(X,Q){var J=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=X;break;case 1:K.pipes=[K.pipes,X];break;default:K.pipes.push(X);break}K.pipesCount+=1,V0("pipe count=%d opts=%j",K.pipesCount,Q);var Y=(!Q||Q.end!==!1)&&X!==process.stdout&&X!==process.stderr,H=Y?q:O;if(K.endEmitted)A6.nextTick(H);else J.once("end",H);X.on("unpipe",Z);function Z(L,x){if(V0("onunpipe"),L===J){if(x&&x.hasUnpiped===!1)x.hasUnpiped=!0,G()}}function q(){V0("onend"),X.end()}var V=NM(J);X.on("drain",V);var W=!1;function G(){if(V0("cleanup"),X.removeListener("close",I),X.removeListener("finish",P),X.removeListener("drain",V),X.removeListener("error",M),X.removeListener("unpipe",Z),J.removeListener("end",q),J.removeListener("end",O),J.removeListener("data",F),W=!0,K.awaitDrain&&(!X._writableState||X._writableState.needDrain))V()}var B=!1;J.on("data",F);function F(L){V0("ondata"),B=!1;var x=X.write(L);if(x===!1&&!B){if((K.pipesCount===1&&K.pipes===X||K.pipesCount>1&&QJ(K.pipes,X)!==-1)&&!W)V0("false write response, pause",K.awaitDrain),K.awaitDrain++,B=!0;J.pause()}}function M(L){if(V0("onerror",L),O(),X.removeListener("error",M),oQ(X,"error")===0)X.emit("error",L)}WM(X,"error",M);function I(){X.removeListener("finish",P),O()}X.once("close",I);function P(){V0("onfinish"),X.removeListener("close",I),O()}X.once("finish",P);function O(){V0("unpipe"),J.unpipe(X)}if(X.emit("pipe",J),!K.flowing)V0("pipe resume"),J.resume();return X};function NM(X){return function(){var Q=X._readableState;if(V0("pipeOnDrain",Q.awaitDrain),Q.awaitDrain)Q.awaitDrain--;if(Q.awaitDrain===0&&oQ(X,"data"))Q.flowing=!0,U5(X)}}$0.prototype.unpipe=function(X){var Q=this._readableState,J={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1){if(X&&X!==Q.pipes)return this;if(!X)X=Q.pipes;if(Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,X)X.emit("unpipe",this,J);return this}if(!X){var{pipes:K,pipesCount:Y}=Q;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var H=0;H<Y;H++)K[H].emit("unpipe",this,{hasUnpiped:!1});return this}var Z=QJ(Q.pipes,X);if(Z===-1)return this;if(Q.pipes.splice(Z,1),Q.pipesCount-=1,Q.pipesCount===1)Q.pipes=Q.pipes[0];return X.emit("unpipe",this,J),this};$0.prototype.on=function(X,Q){var J=V5.prototype.on.call(this,X,Q);if(X==="data"){if(this._readableState.flowing!==!1)this.resume()}else if(X==="readable"){var K=this._readableState;if(!K.endEmitted&&!K.readableListening){if(K.readableListening=K.needReadable=!0,K.emittedReadable=!1,!K.reading)A6.nextTick(LM,this);else if(K.length)a3(this)}}return J};$0.prototype.addListener=$0.prototype.on;function LM(X){V0("readable nexttick read 0"),X.read(0)}$0.prototype.resume=function(){var X=this._readableState;if(!X.flowing)V0("resume"),X.flowing=!0,CM(this,X);return this};function CM(X,Q){if(!Q.resumeScheduled)Q.resumeScheduled=!0,A6.nextTick(IM,X,Q)}function IM(X,Q){if(!Q.reading)V0("resume read 0"),X.read(0);if(Q.resumeScheduled=!1,Q.awaitDrain=0,X.emit("resume"),U5(X),Q.flowing&&!Q.reading)X.read(0)}$0.prototype.pause=function(){if(V0("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)V0("pause"),this._readableState.flowing=!1,this.emit("pause");return this};function U5(X){var Q=X._readableState;V0("flow",Q.flowing);while(Q.flowing&&X.read()!==null);}$0.prototype.wrap=function(X){var Q=this,J=this._readableState,K=!1;X.on("end",function(){if(V0("wrapped end"),J.decoder&&!J.ended){var Z=J.decoder.end();if(Z&&Z.length)Q.push(Z)}Q.push(null)}),X.on("data",function(Z){if(V0("wrapped data"),J.decoder)Z=J.decoder.write(Z);if(J.objectMode&&(Z===null||Z===void 0))return;else if(!J.objectMode&&(!Z||!Z.length))return;var q=Q.push(Z);if(!q)K=!0,X.pause()});for(var Y in X)if(this[Y]===void 0&&typeof X[Y]==="function")this[Y]=function(Z){return function(){return X[Z].apply(X,arguments)}}(Y);for(var H=0;H<H5.length;H++)X.on(H5[H],this.emit.bind(this,H5[H]));return this._read=function(Z){if(V0("wrapped _read",Z),K)K=!1,X.resume()},this};Object.defineProperty($0.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});$0._fromList=XJ;function XJ(X,Q){if(Q.length===0)return null;var J;if(Q.objectMode)J=Q.buffer.shift();else if(!X||X>=Q.length){if(Q.decoder)J=Q.buffer.join("");else if(Q.buffer.length===1)J=Q.buffer.head.data;else J=Q.buffer.concat(Q.length);Q.buffer.clear()}else J=OM(X,Q.buffer,Q.decoder);return J}function OM(X,Q,J){var K;if(X<Q.head.data.length)K=Q.head.data.slice(0,X),Q.head.data=Q.head.data.slice(X);else if(X===Q.head.data.length)K=Q.shift();else K=J?PM(X,Q):jM(X,Q);return K}function PM(X,Q){var J=Q.head,K=1,Y=J.data;X-=Y.length;while(J=J.next){var H=J.data,Z=X>H.length?H.length:X;if(Z===H.length)Y+=H;else Y+=H.slice(0,X);if(X-=Z,X===0){if(Z===H.length)if(++K,J.next)Q.head=J.next;else Q.head=Q.tail=null;else Q.head=J,J.data=H.slice(Z);break}++K}return Q.length-=K,Y}function jM(X,Q){var J=w8.allocUnsafe(X),K=Q.head,Y=1;K.data.copy(J),X-=K.data.length;while(K=K.next){var H=K.data,Z=X>H.length?H.length:X;if(H.copy(J,J.length-X,0,Z),X-=Z,X===0){if(Z===H.length)if(++Y,K.next)Q.head=K.next;else Q.head=Q.tail=null;else Q.head=K,K.data=H.slice(Z);break}++Y}return Q.length-=Y,J}function q5(X){var Q=X._readableState;if(Q.length>0)throw Error('"endReadable()" called on non-empty stream');if(!Q.endEmitted)Q.ended=!0,A6.nextTick(wM,Q,X)}function wM(X,Q){if(!X.endEmitted&&X.length===0)X.endEmitted=!0,Q.readable=!1,Q.emit("end")}function QJ(X,Q){for(var J=0,K=X.length;J<K;J++)if(X[J]===Q)return J;return-1}});var G5=N((wS,HJ)=>{HJ.exports=D1;var t3=a1(),YJ=Object.create(w6());YJ.inherits=D6();YJ.inherits(D1,t3);function DM(X,Q){var J=this._transformState;J.transforming=!1;var K=J.writecb;if(!K)return this.emit("error",Error("write callback called multiple times"));if(J.writechunk=null,J.writecb=null,Q!=null)this.push(Q);K(X);var Y=this._readableState;if(Y.reading=!1,Y.needReadable||Y.length<Y.highWaterMark)this._read(Y.highWaterMark)}function D1(X){if(!(this instanceof D1))return new D1(X);if(t3.call(this,X),this._transformState={afterTransform:DM.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,X){if(typeof X.transform==="function")this._transform=X.transform;if(typeof X.flush==="function")this._flush=X.flush}this.on("prefinish",TM)}function TM(){var X=this;if(typeof this._flush==="function")this._flush(function(Q,J){KJ(X,Q,J)});else KJ(this,null,null)}D1.prototype.push=function(X,Q){return this._transformState.needTransform=!1,t3.prototype.push.call(this,X,Q)};D1.prototype._transform=function(X,Q,J){throw Error("_transform() is not implemented")};D1.prototype._write=function(X,Q,J){var K=this._transformState;if(K.writecb=J,K.writechunk=X,K.writeencoding=Q,!K.transforming){var Y=this._readableState;if(K.needTransform||Y.needReadable||Y.length<Y.highWaterMark)this._read(Y.highWaterMark)}};D1.prototype._read=function(X){var Q=this._transformState;if(Q.writechunk!==null&&Q.writecb&&!Q.transforming)Q.transforming=!0,this._transform(Q.writechunk,Q.writeencoding,Q.afterTransform);else Q.needTransform=!0};D1.prototype._destroy=function(X,Q){var J=this;t3.prototype._destroy.call(this,X,function(K){Q(K),J.emit("close")})};function KJ(X,Q,J){if(Q)return X.emit("error",Q);if(J!=null)X.push(J);if(X._writableState.length)throw Error("Calling transform done when ws.length != 0");if(X._transformState.transforming)throw Error("Calling transform done when still transforming");return X.push(null)}});var UJ=N((DS,VJ)=>{VJ.exports=D8;var ZJ=G5(),qJ=Object.create(w6());qJ.inherits=D6();qJ.inherits(D8,ZJ);function D8(X){if(!(this instanceof D8))return new D8(X);ZJ.call(this,X)}D8.prototype._transform=function(X,Q,J){J(null,X)}});var GJ=N((v0,e3)=>{var z1=f("stream");if(process.env.READABLE_STREAM==="disable"&&z1)e3.exports=z1,v0=e3.exports=z1.Readable,v0.Readable=z1.Readable,v0.Writable=z1.Writable,v0.Duplex=z1.Duplex,v0.Transform=z1.Transform,v0.PassThrough=z1.PassThrough,v0.Stream=z1;else v0=e3.exports=X5(),v0.Stream=z1||v0,v0.Readable=v0,v0.Writable=t4(),v0.Duplex=a1(),v0.Transform=G5(),v0.PassThrough=UJ()});var zJ=N((TS,WJ)=>{WJ.exports=GJ().PassThrough});var FJ=N((_S,MJ)=>{var BJ=f("util"),J7=zJ();MJ.exports={Readable:X7,Writable:Q7};BJ.inherits(X7,J7);BJ.inherits(Q7,J7);function $J(X,Q,J){X[Q]=function(){return delete X[Q],J.apply(this,arguments),this[Q].apply(this,arguments)}}function X7(X,Q){if(!(this instanceof X7))return new X7(X,Q);J7.call(this,Q),$J(this,"_read",function(){var J=X.call(this,Q),K=this.emit.bind(this,"error");J.on("error",K),J.pipe(this)}),this.emit("readable")}function Q7(X,Q){if(!(this instanceof Q7))return new Q7(X,Q);J7.call(this,Q),$J(this,"_write",function(){var J=X.call(this,Q),K=this.emit.bind(this,"error");J.on("error",K),this.pipe(J)}),this.emit("writable")}});var W5=N((AS,NJ)=>{/*!
8
- * normalize-path <https://github.com/jonschlinkert/normalize-path>
9
- *
10
- * Copyright (c) 2014-2018, Jon Schlinkert.
11
- * Released under the MIT License.
12
- */NJ.exports=function(X,Q){if(typeof X!=="string")throw TypeError("expected path to be a string");if(X==="\\"||X==="/")return"/";var J=X.length;if(J<=1)return X;var K="";if(J>4&&X[3]==="\\"){var Y=X[2];if((Y==="?"||Y===".")&&X.slice(0,2)==="\\\\")X=X.slice(2),K="//"}var H=X.split(/[/\\]+/);if(Q!==!1&&H[H.length-1]==="")H.pop();return K+H.join("/")}});var z5=N((RS,LJ)=>{function _M(X){return X}LJ.exports=_M});var IJ=N((ES,CJ)=>{function AM(X,Q,J){switch(J.length){case 0:return X.call(Q);case 1:return X.call(Q,J[0]);case 2:return X.call(Q,J[0],J[1]);case 3:return X.call(Q,J[0],J[1],J[2])}return X.apply(Q,J)}CJ.exports=AM});var jJ=N((SS,PJ)=>{var RM=IJ(),OJ=Math.max;function EM(X,Q,J){return Q=OJ(Q===void 0?X.length-1:Q,0),function(){var K=arguments,Y=-1,H=OJ(K.length-Q,0),Z=Array(H);while(++Y<H)Z[Y]=K[Q+Y];Y=-1;var q=Array(Q+1);while(++Y<Q)q[Y]=K[Y];return q[Q]=J(Z),RM(X,this,q)}}PJ.exports=EM});var DJ=N((xS,wJ)=>{function SM(X){return function(){return X}}wJ.exports=SM});var B5=N((vS,TJ)=>{var xM=typeof global=="object"&&global&&global.Object===Object&&global;TJ.exports=xM});var R6=N((yS,_J)=>{var vM=B5(),yM=typeof self=="object"&&self&&self.Object===Object&&self,kM=vM||yM||Function("return this")();_J.exports=kM});var K7=N((kS,AJ)=>{var gM=R6(),hM=gM.Symbol;AJ.exports=hM});var xJ=N((gS,SJ)=>{var RJ=K7(),EJ=Object.prototype,fM=EJ.hasOwnProperty,uM=EJ.toString,T8=RJ?RJ.toStringTag:void 0;function bM(X){var Q=fM.call(X,T8),J=X[T8];try{X[T8]=void 0;var K=!0}catch(H){}var Y=uM.call(X);if(K)if(Q)X[T8]=J;else delete X[T8];return Y}SJ.exports=bM});var yJ=N((hS,vJ)=>{var mM=Object.prototype,dM=mM.toString;function cM(X){return dM.call(X)}vJ.exports=cM});var _8=N((fS,hJ)=>{var kJ=K7(),pM=xJ(),lM=yJ(),nM="[object Null]",iM="[object Undefined]",gJ=kJ?kJ.toStringTag:void 0;function oM(X){if(X==null)return X===void 0?iM:nM;return gJ&&gJ in Object(X)?pM(X):lM(X)}hJ.exports=oM});var A8=N((uS,fJ)=>{function rM(X){var Q=typeof X;return X!=null&&(Q=="object"||Q=="function")}fJ.exports=rM});var $5=N((bS,uJ)=>{var sM=_8(),aM=A8(),tM="[object AsyncFunction]",eM="[object Function]",XF="[object GeneratorFunction]",QF="[object Proxy]";function JF(X){if(!aM(X))return!1;var Q=sM(X);return Q==eM||Q==XF||Q==tM||Q==QF}uJ.exports=JF});var mJ=N((mS,bJ)=>{var KF=R6(),YF=KF["__core-js_shared__"];bJ.exports=YF});var pJ=N((dS,cJ)=>{var M5=mJ(),dJ=function(){var X=/[^.]+$/.exec(M5&&M5.keys&&M5.keys.IE_PROTO||"");return X?"Symbol(src)_1."+X:""}();function HF(X){return!!dJ&&dJ in X}cJ.exports=HF});var nJ=N((cS,lJ)=>{var ZF=Function.prototype,qF=ZF.toString;function VF(X){if(X!=null){try{return qF.call(X)}catch(Q){}try{return X+""}catch(Q){}}return""}lJ.exports=VF});var oJ=N((pS,iJ)=>{var UF=$5(),GF=pJ(),WF=A8(),zF=nJ(),BF=/[\\^$.*+?()[\]{}|]/g,$F=/^\[object .+?Constructor\]$/,MF=Function.prototype,FF=Object.prototype,NF=MF.toString,LF=FF.hasOwnProperty,CF=RegExp("^"+NF.call(LF).replace(BF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IF(X){if(!WF(X)||GF(X))return!1;var Q=UF(X)?CF:$F;return Q.test(zF(X))}iJ.exports=IF});var sJ=N((lS,rJ)=>{function OF(X,Q){return X==null?void 0:X[Q]}rJ.exports=OF});var R8=N((nS,aJ)=>{var PF=oJ(),jF=sJ();function wF(X,Q){var J=jF(X,Q);return PF(J)?J:void 0}aJ.exports=wF});var eJ=N((iS,tJ)=>{var DF=R8(),TF=function(){try{var X=DF(Object,"defineProperty");return X({},"",{}),X}catch(Q){}}();tJ.exports=TF});var JK=N((oS,QK)=>{var _F=DJ(),XK=eJ(),AF=z5(),RF=!XK?AF:function(X,Q){return XK(X,"toString",{configurable:!0,enumerable:!1,value:_F(Q),writable:!0})};QK.exports=RF});var YK=N((rS,KK)=>{var EF=800,SF=16,xF=Date.now;function vF(X){var Q=0,J=0;return function(){var K=xF(),Y=SF-(K-J);if(J=K,Y>0){if(++Q>=EF)return arguments[0]}else Q=0;return X.apply(void 0,arguments)}}KK.exports=vF});var ZK=N((sS,HK)=>{var yF=JK(),kF=YK(),gF=kF(yF);HK.exports=gF});var Y7=N((aS,qK)=>{var hF=z5(),fF=jJ(),uF=ZK();function bF(X,Q){return uF(fF(X,Q,hF),X+"")}qK.exports=bF});var H7=N((tS,VK)=>{function mF(X,Q){return X===Q||X!==X&&Q!==Q}VK.exports=mF});var F5=N((eS,UK)=>{var dF=9007199254740991;function cF(X){return typeof X=="number"&&X>-1&&X%1==0&&X<=dF}UK.exports=cF});var Z7=N((Xx,GK)=>{var pF=$5(),lF=F5();function nF(X){return X!=null&&lF(X.length)&&!pF(X)}GK.exports=nF});var N5=N((Qx,WK)=>{var iF=9007199254740991,oF=/^(?:0|[1-9]\d*)$/;function rF(X,Q){var J=typeof X;return Q=Q==null?iF:Q,!!Q&&(J=="number"||J!="symbol"&&oF.test(X))&&(X>-1&&X%1==0&&X<Q)}WK.exports=rF});var BK=N((Jx,zK)=>{var sF=H7(),aF=Z7(),tF=N5(),eF=A8();function XN(X,Q,J){if(!eF(J))return!1;var K=typeof Q;if(K=="number"?aF(J)&&tF(Q,J.length):K=="string"&&(Q in J))return sF(J[Q],X);return!1}zK.exports=XN});var MK=N((Kx,$K)=>{function QN(X,Q){var J=-1,K=Array(X);while(++J<X)K[J]=Q(J);return K}$K.exports=QN});var E6=N((Yx,FK)=>{function JN(X){return X!=null&&typeof X=="object"}FK.exports=JN});var LK=N((Hx,NK)=>{var KN=_8(),YN=E6(),HN="[object Arguments]";function ZN(X){return YN(X)&&KN(X)==HN}NK.exports=ZN});var L5=N((Zx,OK)=>{var CK=LK(),qN=E6(),IK=Object.prototype,VN=IK.hasOwnProperty,UN=IK.propertyIsEnumerable,GN=CK(function(){return arguments}())?CK:function(X){return qN(X)&&VN.call(X,"callee")&&!UN.call(X,"callee")};OK.exports=GN});var C5=N((qx,PK)=>{var WN=Array.isArray;PK.exports=WN});var wK=N((Vx,jK)=>{function zN(){return!1}jK.exports=zN});var AK=N((q7,S6)=>{var BN=R6(),$N=wK(),_K=typeof q7=="object"&&q7&&!q7.nodeType&&q7,DK=_K&&typeof S6=="object"&&S6&&!S6.nodeType&&S6,MN=DK&&DK.exports===_K,TK=MN?BN.Buffer:void 0,FN=TK?TK.isBuffer:void 0,NN=FN||$N;S6.exports=NN});var EK=N((Gx,RK)=>{var LN=_8(),CN=F5(),IN=E6(),ON="[object Arguments]",PN="[object Array]",jN="[object Boolean]",wN="[object Date]",DN="[object Error]",TN="[object Function]",_N="[object Map]",AN="[object Number]",RN="[object Object]",EN="[object RegExp]",SN="[object Set]",xN="[object String]",vN="[object WeakMap]",yN="[object ArrayBuffer]",kN="[object DataView]",gN="[object Float32Array]",hN="[object Float64Array]",fN="[object Int8Array]",uN="[object Int16Array]",bN="[object Int32Array]",mN="[object Uint8Array]",dN="[object Uint8ClampedArray]",cN="[object Uint16Array]",pN="[object Uint32Array]",M0={};M0[gN]=M0[hN]=M0[fN]=M0[uN]=M0[bN]=M0[mN]=M0[dN]=M0[cN]=M0[pN]=!0;M0[ON]=M0[PN]=M0[yN]=M0[jN]=M0[kN]=M0[wN]=M0[DN]=M0[TN]=M0[_N]=M0[AN]=M0[RN]=M0[EN]=M0[SN]=M0[xN]=M0[vN]=!1;function lN(X){return IN(X)&&CN(X.length)&&!!M0[LN(X)]}RK.exports=lN});var I5=N((Wx,SK)=>{function nN(X){return function(Q){return X(Q)}}SK.exports=nN});var vK=N((V7,x6)=>{var iN=B5(),xK=typeof V7=="object"&&V7&&!V7.nodeType&&V7,E8=xK&&typeof x6=="object"&&x6&&!x6.nodeType&&x6,oN=E8&&E8.exports===xK,O5=oN&&iN.process,rN=function(){try{var X=E8&&E8.require&&E8.require("util").types;if(X)return X;return O5&&O5.binding&&O5.binding("util")}catch(Q){}}();x6.exports=rN});var hK=N((Bx,gK)=>{var sN=EK(),aN=I5(),yK=vK(),kK=yK&&yK.isTypedArray,tN=kK?aN(kK):sN;gK.exports=tN});var uK=N(($x,fK)=>{var eN=MK(),XL=L5(),QL=C5(),JL=AK(),KL=N5(),YL=hK(),HL=Object.prototype,ZL=HL.hasOwnProperty;function qL(X,Q){var J=QL(X),K=!J&&XL(X),Y=!J&&!K&&JL(X),H=!J&&!K&&!Y&&YL(X),Z=J||K||Y||H,q=Z?eN(X.length,String):[],V=q.length;for(var W in X)if((Q||ZL.call(X,W))&&!(Z&&(W=="length"||Y&&(W=="offset"||W=="parent")||H&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||KL(W,V))))q.push(W);return q}fK.exports=qL});var mK=N((Mx,bK)=>{var VL=Object.prototype;function UL(X){var Q=X&&X.constructor,J=typeof Q=="function"&&Q.prototype||VL;return X===J}bK.exports=UL});var cK=N((Fx,dK)=>{function GL(X){var Q=[];if(X!=null)for(var J in Object(X))Q.push(J);return Q}dK.exports=GL});var lK=N((Nx,pK)=>{var WL=A8(),zL=mK(),BL=cK(),$L=Object.prototype,ML=$L.hasOwnProperty;function FL(X){if(!WL(X))return BL(X);var Q=zL(X),J=[];for(var K in X)if(!(K=="constructor"&&(Q||!ML.call(X,K))))J.push(K);return J}pK.exports=FL});var iK=N((Lx,nK)=>{var NL=uK(),LL=lK(),CL=Z7();function IL(X){return CL(X)?NL(X,!0):LL(X)}nK.exports=IL});var sK=N((Cx,rK)=>{var OL=Y7(),PL=H7(),jL=BK(),wL=iK(),oK=Object.prototype,DL=oK.hasOwnProperty,TL=OL(function(X,Q){X=Object(X);var J=-1,K=Q.length,Y=K>2?Q[2]:void 0;if(Y&&jL(Q[0],Q[1],Y))K=1;while(++J<K){var H=Q[J],Z=wL(H),q=-1,V=Z.length;while(++q<V){var W=Z[q],G=X[W];if(G===void 0||PL(G,oK[W])&&!DL.call(X,W))X[W]=H[W]}}return X});rK.exports=TL});var L0=N((Ix,tK)=>{class aK extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let Q="";for(let J=0;J<X.length;J++)Q+=` ${X[J].stack}
13
- `;super(Q);this.name="AggregateError",this.errors=X}}tK.exports={AggregateError:aK,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,Q){return X.includes(Q)},ArrayPrototypeIndexOf(X,Q){return X.indexOf(Q)},ArrayPrototypeJoin(X,Q){return X.join(Q)},ArrayPrototypeMap(X,Q){return X.map(Q)},ArrayPrototypePop(X,Q){return X.pop(Q)},ArrayPrototypePush(X,Q){return X.push(Q)},ArrayPrototypeSlice(X,Q,J){return X.slice(Q,J)},Error,FunctionPrototypeCall(X,Q,...J){return X.call(Q,...J)},FunctionPrototypeSymbolHasInstance(X,Q){return Function.prototype[Symbol.hasInstance].call(X,Q)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,Q){return Object.defineProperties(X,Q)},ObjectDefineProperty(X,Q,J){return Object.defineProperty(X,Q,J)},ObjectGetOwnPropertyDescriptor(X,Q){return Object.getOwnPropertyDescriptor(X,Q)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,Q){return Object.setPrototypeOf(X,Q)},Promise,PromisePrototypeCatch(X,Q){return X.catch(Q)},PromisePrototypeThen(X,Q,J){return X.then(Q,J)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,Q){return X.test(Q)},SafeSet:Set,String,StringPrototypeSlice(X,Q,J){return X.slice(Q,J)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(X,Q,J){return X.set(Q,J)},Boolean,Uint8Array}});var P5=N((Ox,eK)=>{eK.exports={format(X,...Q){return X.replace(/%([sdifj])/g,function(...[J,K]){let Y=Q.shift();if(K==="f")return Y.toFixed(6);else if(K==="j")return JSON.stringify(Y);else if(K==="s"&&typeof Y==="object")return`${Y.constructor!==Object?Y.constructor.name:""} {}`.trim();else return Y.toString()})},inspect(X){switch(typeof X){case"string":if(X.includes("'")){if(!X.includes('"'))return`"${X}"`;else if(!X.includes("`")&&!X.includes("${"))return`\`${X}\``}return`'${X}'`;case"number":if(isNaN(X))return"NaN";else if(Object.is(X,-0))return String(X);return X;case"bigint":return`${String(X)}n`;case"boolean":case"undefined":return String(X);case"object":return"{}"}}}});var g0=N((Px,KY)=>{var{format:_L,inspect:U7}=P5(),{AggregateError:AL}=L0(),RL=globalThis.AggregateError||AL,EL=Symbol("kIsNodeError"),SL=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xL=/^([A-Z][a-z0-9]*)+$/,G7={};function t1(X,Q){if(!X)throw new G7.ERR_INTERNAL_ASSERTION(Q)}function XY(X){let Q="",J=X.length,K=X[0]==="-"?1:0;for(;J>=K+4;J-=3)Q=`_${X.slice(J-3,J)}${Q}`;return`${X.slice(0,J)}${Q}`}function vL(X,Q,J){if(typeof Q==="function")return t1(Q.length<=J.length,`Code: ${X}; The provided arguments length (${J.length}) does not match the required ones (${Q.length}).`),Q(...J);let K=(Q.match(/%[dfijoOs]/g)||[]).length;if(t1(K===J.length,`Code: ${X}; The provided arguments length (${J.length}) does not match the required ones (${K}).`),J.length===0)return Q;return _L(Q,...J)}function y0(X,Q,J){if(!J)J=Error;class K extends J{constructor(...Y){super(vL(X,Q,Y))}toString(){return`${this.name} [${X}]: ${this.message}`}}Object.defineProperties(K.prototype,{name:{value:J.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${X}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),K.prototype.code=X,K.prototype[EL]=!0,G7[X]=K}function QY(X){let Q="__node_internal_"+X.name;return Object.defineProperty(X,"name",{value:Q}),X}function yL(X,Q){if(X&&Q&&X!==Q){if(Array.isArray(Q.errors))return Q.errors.push(X),Q;let J=new RL([Q,X],Q.message);return J.code=Q.code,J}return X||Q}class JY extends Error{constructor(X="The operation was aborted",Q=void 0){if(Q!==void 0&&typeof Q!=="object")throw new G7.ERR_INVALID_ARG_TYPE("options","Object",Q);super(X,Q);this.code="ABORT_ERR",this.name="AbortError"}}y0("ERR_ASSERTION","%s",Error);y0("ERR_INVALID_ARG_TYPE",(X,Q,J)=>{if(t1(typeof X==="string","'name' must be a string"),!Array.isArray(Q))Q=[Q];let K="The ";if(X.endsWith(" argument"))K+=`${X} `;else K+=`"${X}" ${X.includes(".")?"property":"argument"} `;K+="must be ";let Y=[],H=[],Z=[];for(let V of Q)if(t1(typeof V==="string","All expected entries have to be of type string"),SL.includes(V))Y.push(V.toLowerCase());else if(xL.test(V))H.push(V);else t1(V!=="object",'The value "object" should be written as "Object"'),Z.push(V);if(H.length>0){let V=Y.indexOf("object");if(V!==-1)Y.splice(Y,V,1),H.push("Object")}if(Y.length>0){switch(Y.length){case 1:K+=`of type ${Y[0]}`;break;case 2:K+=`one of type ${Y[0]} or ${Y[1]}`;break;default:{let V=Y.pop();K+=`one of type ${Y.join(", ")}, or ${V}`}}if(H.length>0||Z.length>0)K+=" or "}if(H.length>0){switch(H.length){case 1:K+=`an instance of ${H[0]}`;break;case 2:K+=`an instance of ${H[0]} or ${H[1]}`;break;default:{let V=H.pop();K+=`an instance of ${H.join(", ")}, or ${V}`}}if(Z.length>0)K+=" or "}switch(Z.length){case 0:break;case 1:if(Z[0].toLowerCase()!==Z[0])K+="an ";K+=`${Z[0]}`;break;case 2:K+=`one of ${Z[0]} or ${Z[1]}`;break;default:{let V=Z.pop();K+=`one of ${Z.join(", ")}, or ${V}`}}if(J==null)K+=`. Received ${J}`;else if(typeof J==="function"&&J.name)K+=`. Received function ${J.name}`;else if(typeof J==="object"){var q;if((q=J.constructor)!==null&&q!==void 0&&q.name)K+=`. Received an instance of ${J.constructor.name}`;else{let V=U7(J,{depth:-1});K+=`. Received ${V}`}}else{let V=U7(J,{colors:!1});if(V.length>25)V=`${V.slice(0,25)}...`;K+=`. Received type ${typeof J} (${V})`}return K},TypeError);y0("ERR_INVALID_ARG_VALUE",(X,Q,J="is invalid")=>{let K=U7(Q);if(K.length>128)K=K.slice(0,128)+"...";return`The ${X.includes(".")?"property":"argument"} '${X}' ${J}. Received ${K}`},TypeError);y0("ERR_INVALID_RETURN_VALUE",(X,Q,J)=>{var K;let Y=J!==null&&J!==void 0&&(K=J.constructor)!==null&&K!==void 0&&K.name?`instance of ${J.constructor.name}`:`type ${typeof J}`;return`Expected ${X} to be returned from the "${Q}" function but got ${Y}.`},TypeError);y0("ERR_MISSING_ARGS",(...X)=>{t1(X.length>0,"At least one arg needs to be specified");let Q,J=X.length;switch(X=(Array.isArray(X)?X:[X]).map((K)=>`"${K}"`).join(" or "),J){case 1:Q+=`The ${X[0]} argument`;break;case 2:Q+=`The ${X[0]} and ${X[1]} arguments`;break;default:{let K=X.pop();Q+=`The ${X.join(", ")}, and ${K} arguments`}break}return`${Q} must be specified`},TypeError);y0("ERR_OUT_OF_RANGE",(X,Q,J)=>{t1(Q,'Missing "range" argument');let K;if(Number.isInteger(J)&&Math.abs(J)>4294967296)K=XY(String(J));else if(typeof J==="bigint"){K=String(J);let Y=BigInt(2)**BigInt(32);if(J>Y||J<-Y)K=XY(K);K+="n"}else K=U7(J);return`The value of "${X}" is out of range. It must be ${Q}. Received ${K}`},RangeError);y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);y0("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);y0("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);y0("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);y0("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);y0("ERR_STREAM_WRITE_AFTER_END","write after end",Error);y0("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);KY.exports={AbortError:JY,aggregateTwoErrors:QY(yL),hideStackFrames:QY,codes:G7}});var m0=N((jx,w5)=>{var kL=f("buffer"),{format:gL,inspect:hL}=P5(),{codes:{ERR_INVALID_ARG_TYPE:j5}}=g0(),{kResistStopPropagation:fL,AggregateError:uL,SymbolDispose:bL}=L0(),mL=globalThis.AbortSignal||f("abort-controller").AbortSignal,dL=globalThis.AbortController||f("abort-controller").AbortController,cL=Object.getPrototypeOf(async function(){}).constructor,YY=globalThis.Blob||kL.Blob,pL=typeof YY<"u"?function(Q){return Q instanceof YY}:function(Q){return!1},HY=(X,Q)=>{if(X!==void 0&&(X===null||typeof X!=="object"||!("aborted"in X)))throw new j5(Q,"AbortSignal",X)},lL=(X,Q)=>{if(typeof X!=="function")throw new j5(Q,"Function",X)};w5.exports={AggregateError:uL,kEmptyObject:Object.freeze({}),once(X){let Q=!1;return function(...J){if(Q)return;Q=!0,X.apply(this,J)}},createDeferredPromise:function(){let X,Q;return{promise:new Promise((K,Y)=>{X=K,Q=Y}),resolve:X,reject:Q}},promisify(X){return new Promise((Q,J)=>{X((K,...Y)=>{if(K)return J(K);return Q(...Y)})})},debuglog(){return function(){}},format:gL,inspect:hL,types:{isAsyncFunction(X){return X instanceof cL},isArrayBufferView(X){return ArrayBuffer.isView(X)}},isBlob:pL,deprecate(X,Q){return X},addAbortListener:f("events").addAbortListener||function(Q,J){if(Q===void 0)throw new j5("signal","AbortSignal",Q);HY(Q,"signal"),lL(J,"listener");let K;if(Q.aborted)queueMicrotask(()=>J());else Q.addEventListener("abort",J,{__proto__:null,once:!0,[fL]:!0}),K=()=>{Q.removeEventListener("abort",J)};return{__proto__:null,[bL](){var Y;(Y=K)===null||Y===void 0||Y()}}},AbortSignalAny:mL.any||function(Q){if(Q.length===1)return Q[0];let J=new dL,K=()=>J.abort();return Q.forEach((Y)=>{HY(Y,"signals"),Y.addEventListener("abort",K,{once:!0})}),J.signal.addEventListener("abort",()=>{Q.forEach((Y)=>Y.removeEventListener("abort",K))},{once:!0}),J.signal}};w5.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var y6=N((wx,MY)=>{var{ArrayIsArray:T5,ArrayPrototypeIncludes:UY,ArrayPrototypeJoin:GY,ArrayPrototypeMap:nL,NumberIsInteger:_5,NumberIsNaN:iL,NumberMAX_SAFE_INTEGER:oL,NumberMIN_SAFE_INTEGER:rL,NumberParseInt:sL,ObjectPrototypeHasOwnProperty:aL,RegExpPrototypeExec:WY,String:tL,StringPrototypeToUpperCase:eL,StringPrototypeTrim:XC}=L0(),{hideStackFrames:e0,codes:{ERR_SOCKET_BAD_PORT:QC,ERR_INVALID_ARG_TYPE:h0,ERR_INVALID_ARG_VALUE:v6,ERR_OUT_OF_RANGE:e1,ERR_UNKNOWN_SIGNAL:ZY}}=g0(),{normalizeEncoding:JC}=m0(),{isAsyncFunction:KC,isArrayBufferView:YC}=m0().types,qY={};function HC(X){return X===(X|0)}function ZC(X){return X===X>>>0}var qC=/^[0-7]+$/,VC="must be a 32-bit unsigned integer or an octal string";function UC(X,Q,J){if(typeof X>"u")X=J;if(typeof X==="string"){if(WY(qC,X)===null)throw new v6(Q,X,VC);X=sL(X,8)}return zY(X,Q),X}var GC=e0((X,Q,J=rL,K=oL)=>{if(typeof X!=="number")throw new h0(Q,"number",X);if(!_5(X))throw new e1(Q,"an integer",X);if(X<J||X>K)throw new e1(Q,`>= ${J} && <= ${K}`,X)}),WC=e0((X,Q,J=-2147483648,K=2147483647)=>{if(typeof X!=="number")throw new h0(Q,"number",X);if(!_5(X))throw new e1(Q,"an integer",X);if(X<J||X>K)throw new e1(Q,`>= ${J} && <= ${K}`,X)}),zY=e0((X,Q,J=!1)=>{if(typeof X!=="number")throw new h0(Q,"number",X);if(!_5(X))throw new e1(Q,"an integer",X);let K=J?1:0,Y=4294967295;if(X<K||X>Y)throw new e1(Q,`>= ${K} && <= ${Y}`,X)});function A5(X,Q){if(typeof X!=="string")throw new h0(Q,"string",X)}function zC(X,Q,J=void 0,K){if(typeof X!=="number")throw new h0(Q,"number",X);if(J!=null&&X<J||K!=null&&X>K||(J!=null||K!=null)&&iL(X))throw new e1(Q,`${J!=null?`>= ${J}`:""}${J!=null&&K!=null?" && ":""}${K!=null?`<= ${K}`:""}`,X)}var BC=e0((X,Q,J)=>{if(!UY(J,X)){let Y="must be one of: "+GY(nL(J,(H)=>typeof H==="string"?`'${H}'`:tL(H)),", ");throw new v6(Q,X,Y)}});function BY(X,Q){if(typeof X!=="boolean")throw new h0(Q,"boolean",X)}function D5(X,Q,J){return X==null||!aL(X,Q)?J:X[Q]}var $C=e0((X,Q,J=null)=>{let K=D5(J,"allowArray",!1),Y=D5(J,"allowFunction",!1);if(!D5(J,"nullable",!1)&&X===null||!K&&T5(X)||typeof X!=="object"&&(!Y||typeof X!=="function"))throw new h0(Q,"Object",X)}),MC=e0((X,Q)=>{if(X!=null&&typeof X!=="object"&&typeof X!=="function")throw new h0(Q,"a dictionary",X)}),W7=e0((X,Q,J=0)=>{if(!T5(X))throw new h0(Q,"Array",X);if(X.length<J){let K=`must be longer than ${J}`;throw new v6(Q,X,K)}});function FC(X,Q){W7(X,Q);for(let J=0;J<X.length;J++)A5(X[J],`${Q}[${J}]`)}function NC(X,Q){W7(X,Q);for(let J=0;J<X.length;J++)BY(X[J],`${Q}[${J}]`)}function LC(X,Q){W7(X,Q);for(let J=0;J<X.length;J++){let K=X[J],Y=`${Q}[${J}]`;if(K==null)throw new h0(Y,"AbortSignal",K);$Y(K,Y)}}function CC(X,Q="signal"){if(A5(X,Q),qY[X]===void 0){if(qY[eL(X)]!==void 0)throw new ZY(X+" (signals must use all capital letters)");throw new ZY(X)}}var IC=e0((X,Q="buffer")=>{if(!YC(X))throw new h0(Q,["Buffer","TypedArray","DataView"],X)});function OC(X,Q){let J=JC(Q),K=X.length;if(J==="hex"&&K%2!==0)throw new v6("encoding",Q,`is invalid for data of length ${K}`)}function PC(X,Q="Port",J=!0){if(typeof X!=="number"&&typeof X!=="string"||typeof X==="string"&&XC(X).length===0||+X!==+X>>>0||X>65535||X===0&&!J)throw new QC(Q,X,J);return X|0}var $Y=e0((X,Q)=>{if(X!==void 0&&(X===null||typeof X!=="object"||!("aborted"in X)))throw new h0(Q,"AbortSignal",X)}),jC=e0((X,Q)=>{if(typeof X!=="function")throw new h0(Q,"Function",X)}),wC=e0((X,Q)=>{if(typeof X!=="function"||KC(X))throw new h0(Q,"Function",X)}),DC=e0((X,Q)=>{if(X!==void 0)throw new h0(Q,"undefined",X)});function TC(X,Q,J){if(!UY(J,X))throw new h0(Q,`('${GY(J,"|")}')`,X)}var _C=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function VY(X,Q){if(typeof X>"u"||!WY(_C,X))throw new v6(Q,X,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function AC(X){if(typeof X==="string")return VY(X,"hints"),X;else if(T5(X)){let Q=X.length,J="";if(Q===0)return J;for(let K=0;K<Q;K++){let Y=X[K];if(VY(Y,"hints"),J+=Y,K!==Q-1)J+=", "}return J}throw new v6("hints",X,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}MY.exports={isInt32:HC,isUint32:ZC,parseFileMode:UC,validateArray:W7,validateStringArray:FC,validateBooleanArray:NC,validateAbortSignalArray:LC,validateBoolean:BY,validateBuffer:IC,validateDictionary:MC,validateEncoding:OC,validateFunction:jC,validateInt32:WC,validateInteger:GC,validateNumber:zC,validateObject:$C,validateOneOf:BC,validatePlainFunction:wC,validatePort:PC,validateSignalName:CC,validateString:A5,validateUint32:zY,validateUndefined:DC,validateUnion:TC,validateAbortSignal:$Y,validateLinkHeaderValue:AC}});var g1=N((Dx,FY)=>{FY.exports=global.process});var $1=N((Tx,SY)=>{var{SymbolAsyncIterator:NY,SymbolIterator:LY,SymbolFor:X6}=L0(),CY=X6("nodejs.stream.destroyed"),IY=X6("nodejs.stream.errored"),R5=X6("nodejs.stream.readable"),E5=X6("nodejs.stream.writable"),OY=X6("nodejs.stream.disturbed"),RC=X6("nodejs.webstream.isClosedPromise"),EC=X6("nodejs.webstream.controllerErrorFunction");function z7(X,Q=!1){var J;return!!(X&&typeof X.pipe==="function"&&typeof X.on==="function"&&(!Q||typeof X.pause==="function"&&typeof X.resume==="function")&&(!X._writableState||((J=X._readableState)===null||J===void 0?void 0:J.readable)!==!1)&&(!X._writableState||X._readableState))}function B7(X){var Q;return!!(X&&typeof X.write==="function"&&typeof X.on==="function"&&(!X._readableState||((Q=X._writableState)===null||Q===void 0?void 0:Q.writable)!==!1))}function SC(X){return!!(X&&typeof X.pipe==="function"&&X._readableState&&typeof X.on==="function"&&typeof X.write==="function")}function B1(X){return X&&(X._readableState||X._writableState||typeof X.write==="function"&&typeof X.on==="function"||typeof X.pipe==="function"&&typeof X.on==="function")}function PY(X){return!!(X&&!B1(X)&&typeof X.pipeThrough==="function"&&typeof X.getReader==="function"&&typeof X.cancel==="function")}function jY(X){return!!(X&&!B1(X)&&typeof X.getWriter==="function"&&typeof X.abort==="function")}function wY(X){return!!(X&&!B1(X)&&typeof X.readable==="object"&&typeof X.writable==="object")}function xC(X){return PY(X)||jY(X)||wY(X)}function vC(X,Q){if(X==null)return!1;if(Q===!0)return typeof X[NY]==="function";if(Q===!1)return typeof X[LY]==="function";return typeof X[NY]==="function"||typeof X[LY]==="function"}function $7(X){if(!B1(X))return null;let{_writableState:Q,_readableState:J}=X,K=Q||J;return!!(X.destroyed||X[CY]||K!==null&&K!==void 0&&K.destroyed)}function DY(X){if(!B7(X))return null;if(X.writableEnded===!0)return!0;let Q=X._writableState;if(Q!==null&&Q!==void 0&&Q.errored)return!1;if(typeof(Q===null||Q===void 0?void 0:Q.ended)!=="boolean")return null;return Q.ended}function yC(X,Q){if(!B7(X))return null;if(X.writableFinished===!0)return!0;let J=X._writableState;if(J!==null&&J!==void 0&&J.errored)return!1;if(typeof(J===null||J===void 0?void 0:J.finished)!=="boolean")return null;return!!(J.finished||Q===!1&&J.ended===!0&&J.length===0)}function kC(X){if(!z7(X))return null;if(X.readableEnded===!0)return!0;let Q=X._readableState;if(!Q||Q.errored)return!1;if(typeof(Q===null||Q===void 0?void 0:Q.ended)!=="boolean")return null;return Q.ended}function TY(X,Q){if(!z7(X))return null;let J=X._readableState;if(J!==null&&J!==void 0&&J.errored)return!1;if(typeof(J===null||J===void 0?void 0:J.endEmitted)!=="boolean")return null;return!!(J.endEmitted||Q===!1&&J.ended===!0&&J.length===0)}function _Y(X){if(X&&X[R5]!=null)return X[R5];if(typeof(X===null||X===void 0?void 0:X.readable)!=="boolean")return null;if($7(X))return!1;return z7(X)&&X.readable&&!TY(X)}function AY(X){if(X&&X[E5]!=null)return X[E5];if(typeof(X===null||X===void 0?void 0:X.writable)!=="boolean")return null;if($7(X))return!1;return B7(X)&&X.writable&&!DY(X)}function gC(X,Q){if(!B1(X))return null;if($7(X))return!0;if((Q===null||Q===void 0?void 0:Q.readable)!==!1&&_Y(X))return!1;if((Q===null||Q===void 0?void 0:Q.writable)!==!1&&AY(X))return!1;return!0}function hC(X){var Q,J;if(!B1(X))return null;if(X.writableErrored)return X.writableErrored;return(Q=(J=X._writableState)===null||J===void 0?void 0:J.errored)!==null&&Q!==void 0?Q:null}function fC(X){var Q,J;if(!B1(X))return null;if(X.readableErrored)return X.readableErrored;return(Q=(J=X._readableState)===null||J===void 0?void 0:J.errored)!==null&&Q!==void 0?Q:null}function uC(X){if(!B1(X))return null;if(typeof X.closed==="boolean")return X.closed;let{_writableState:Q,_readableState:J}=X;if(typeof(Q===null||Q===void 0?void 0:Q.closed)==="boolean"||typeof(J===null||J===void 0?void 0:J.closed)==="boolean")return(Q===null||Q===void 0?void 0:Q.closed)||(J===null||J===void 0?void 0:J.closed);if(typeof X._closed==="boolean"&&RY(X))return X._closed;return null}function RY(X){return typeof X._closed==="boolean"&&typeof X._defaultKeepAlive==="boolean"&&typeof X._removedConnection==="boolean"&&typeof X._removedContLen==="boolean"}function EY(X){return typeof X._sent100==="boolean"&&RY(X)}function bC(X){var Q;return typeof X._consuming==="boolean"&&typeof X._dumped==="boolean"&&((Q=X.req)===null||Q===void 0?void 0:Q.upgradeOrConnect)===void 0}function mC(X){if(!B1(X))return null;let{_writableState:Q,_readableState:J}=X,K=Q||J;return!K&&EY(X)||!!(K&&K.autoDestroy&&K.emitClose&&K.closed===!1)}function dC(X){var Q;return!!(X&&((Q=X[OY])!==null&&Q!==void 0?Q:X.readableDidRead||X.readableAborted))}function cC(X){var Q,J,K,Y,H,Z,q,V,W,G;return!!(X&&((Q=(J=(K=(Y=(H=(Z=X[IY])!==null&&Z!==void 0?Z:X.readableErrored)!==null&&H!==void 0?H:X.writableErrored)!==null&&Y!==void 0?Y:(q=X._readableState)===null||q===void 0?void 0:q.errorEmitted)!==null&&K!==void 0?K:(V=X._writableState)===null||V===void 0?void 0:V.errorEmitted)!==null&&J!==void 0?J:(W=X._readableState)===null||W===void 0?void 0:W.errored)!==null&&Q!==void 0?Q:(G=X._writableState)===null||G===void 0?void 0:G.errored))}SY.exports={isDestroyed:$7,kIsDestroyed:CY,isDisturbed:dC,kIsDisturbed:OY,isErrored:cC,kIsErrored:IY,isReadable:_Y,kIsReadable:R5,kIsClosedPromise:RC,kControllerErrorFunction:EC,kIsWritable:E5,isClosed:uC,isDuplexNodeStream:SC,isFinished:gC,isIterable:vC,isReadableNodeStream:z7,isReadableStream:PY,isReadableEnded:kC,isReadableFinished:TY,isReadableErrored:fC,isNodeStream:B1,isWebStream:xC,isWritable:AY,isWritableNodeStream:B7,isWritableStream:jY,isWritableEnded:DY,isWritableFinished:yC,isWritableErrored:hC,isServerRequest:bC,isServerResponse:EY,willEmitClose:mC,isTransformStream:wY}});var T1=N((_x,k5)=>{var h1=g1(),{AbortError:bY,codes:pC}=g0(),{ERR_INVALID_ARG_TYPE:lC,ERR_STREAM_PREMATURE_CLOSE:xY}=pC,{kEmptyObject:x5,once:v5}=m0(),{validateAbortSignal:nC,validateFunction:iC,validateObject:oC,validateBoolean:rC}=y6(),{Promise:sC,PromisePrototypeThen:aC,SymbolDispose:mY}=L0(),{isClosed:tC,isReadable:vY,isReadableNodeStream:S5,isReadableStream:eC,isReadableFinished:yY,isReadableErrored:kY,isWritable:gY,isWritableNodeStream:hY,isWritableStream:XI,isWritableFinished:fY,isWritableErrored:uY,isNodeStream:QI,willEmitClose:JI,kIsClosedPromise:KI}=$1(),k6;function YI(X){return X.setHeader&&typeof X.abort==="function"}var y5=()=>{};function dY(X,Q,J){var K,Y;if(arguments.length===2)J=Q,Q=x5;else if(Q==null)Q=x5;else oC(Q,"options");if(iC(J,"callback"),nC(Q.signal,"options.signal"),J=v5(J),eC(X)||XI(X))return HI(X,Q,J);if(!QI(X))throw new lC("stream",["ReadableStream","WritableStream","Stream"],X);let H=(K=Q.readable)!==null&&K!==void 0?K:S5(X),Z=(Y=Q.writable)!==null&&Y!==void 0?Y:hY(X),q=X._writableState,V=X._readableState,W=()=>{if(!X.writable)F()},G=JI(X)&&S5(X)===H&&hY(X)===Z,B=fY(X,!1),F=()=>{if(B=!0,X.destroyed)G=!1;if(G&&(!X.readable||H))return;if(!H||M)J.call(X)},M=yY(X,!1),I=()=>{if(M=!0,X.destroyed)G=!1;if(G&&(!X.writable||Z))return;if(!Z||B)J.call(X)},P=(n)=>{J.call(X,n)},O=tC(X),L=()=>{O=!0;let n=uY(X)||kY(X);if(n&&typeof n!=="boolean")return J.call(X,n);if(H&&!M&&S5(X,!0)){if(!yY(X,!1))return J.call(X,new xY)}if(Z&&!B){if(!fY(X,!1))return J.call(X,new xY)}J.call(X)},x=()=>{O=!0;let n=uY(X)||kY(X);if(n&&typeof n!=="boolean")return J.call(X,n);J.call(X)},v=()=>{X.req.on("finish",F)};if(YI(X)){if(X.on("complete",F),!G)X.on("abort",L);if(X.req)v();else X.on("request",v)}else if(Z&&!q)X.on("end",W),X.on("close",W);if(!G&&typeof X.aborted==="boolean")X.on("aborted",L);if(X.on("end",I),X.on("finish",F),Q.error!==!1)X.on("error",P);if(X.on("close",L),O)h1.nextTick(L);else if(q!==null&&q!==void 0&&q.errorEmitted||V!==null&&V!==void 0&&V.errorEmitted){if(!G)h1.nextTick(x)}else if(!H&&(!G||vY(X))&&(B||gY(X)===!1))h1.nextTick(x);else if(!Z&&(!G||gY(X))&&(M||vY(X)===!1))h1.nextTick(x);else if(V&&X.req&&X.aborted)h1.nextTick(x);let g=()=>{if(J=y5,X.removeListener("aborted",L),X.removeListener("complete",F),X.removeListener("abort",L),X.removeListener("request",v),X.req)X.req.removeListener("finish",F);X.removeListener("end",W),X.removeListener("close",W),X.removeListener("finish",F),X.removeListener("end",I),X.removeListener("error",P),X.removeListener("close",L)};if(Q.signal&&!O){let n=()=>{let k=J;g(),k.call(X,new bY(void 0,{cause:Q.signal.reason}))};if(Q.signal.aborted)h1.nextTick(n);else{k6=k6||m0().addAbortListener;let k=k6(Q.signal,n),D=J;J=v5((...m)=>{k[mY](),D.apply(X,m)})}}return g}function HI(X,Q,J){let K=!1,Y=y5;if(Q.signal)if(Y=()=>{K=!0,J.call(X,new bY(void 0,{cause:Q.signal.reason}))},Q.signal.aborted)h1.nextTick(Y);else{k6=k6||m0().addAbortListener;let Z=k6(Q.signal,Y),q=J;J=v5((...V)=>{Z[mY](),q.apply(X,V)})}let H=(...Z)=>{if(!K)h1.nextTick(()=>J.apply(X,Z))};return aC(X[KI].promise,H,H),y5}function ZI(X,Q){var J;let K=!1;if(Q===null)Q=x5;if((J=Q)!==null&&J!==void 0&&J.cleanup)rC(Q.cleanup,"cleanup"),K=Q.cleanup;return new sC((Y,H)=>{let Z=dY(X,Q,(q)=>{if(K)Z();if(q)H(q);else Y()})})}k5.exports=dY;k5.exports.finished=ZI});var Q6=N((Ax,sY)=>{var M1=g1(),{aggregateTwoErrors:qI,codes:{ERR_MULTIPLE_CALLBACK:VI},AbortError:UI}=g0(),{Symbol:lY}=L0(),{kIsDestroyed:GI,isDestroyed:WI,isFinished:zI,isServerRequest:BI}=$1(),nY=lY("kDestroy"),g5=lY("kConstruct");function iY(X,Q,J){if(X){if(X.stack,Q&&!Q.errored)Q.errored=X;if(J&&!J.errored)J.errored=X}}function $I(X,Q){let J=this._readableState,K=this._writableState,Y=K||J;if(K!==null&&K!==void 0&&K.destroyed||J!==null&&J!==void 0&&J.destroyed){if(typeof Q==="function")Q();return this}if(iY(X,K,J),K)K.destroyed=!0;if(J)J.destroyed=!0;if(!Y.constructed)this.once(nY,function(H){cY(this,qI(H,X),Q)});else cY(this,X,Q);return this}function cY(X,Q,J){let K=!1;function Y(H){if(K)return;K=!0;let{_readableState:Z,_writableState:q}=X;if(iY(H,q,Z),q)q.closed=!0;if(Z)Z.closed=!0;if(typeof J==="function")J(H);if(H)M1.nextTick(MI,X,H);else M1.nextTick(oY,X)}try{X._destroy(Q||null,Y)}catch(H){Y(H)}}function MI(X,Q){h5(X,Q),oY(X)}function oY(X){let{_readableState:Q,_writableState:J}=X;if(J)J.closeEmitted=!0;if(Q)Q.closeEmitted=!0;if(J!==null&&J!==void 0&&J.emitClose||Q!==null&&Q!==void 0&&Q.emitClose)X.emit("close")}function h5(X,Q){let{_readableState:J,_writableState:K}=X;if(K!==null&&K!==void 0&&K.errorEmitted||J!==null&&J!==void 0&&J.errorEmitted)return;if(K)K.errorEmitted=!0;if(J)J.errorEmitted=!0;X.emit("error",Q)}function FI(){let X=this._readableState,Q=this._writableState;if(X)X.constructed=!0,X.closed=!1,X.closeEmitted=!1,X.destroyed=!1,X.errored=null,X.errorEmitted=!1,X.reading=!1,X.ended=X.readable===!1,X.endEmitted=X.readable===!1;if(Q)Q.constructed=!0,Q.destroyed=!1,Q.closed=!1,Q.closeEmitted=!1,Q.errored=null,Q.errorEmitted=!1,Q.finalCalled=!1,Q.prefinished=!1,Q.ended=Q.writable===!1,Q.ending=Q.writable===!1,Q.finished=Q.writable===!1}function f5(X,Q,J){let{_readableState:K,_writableState:Y}=X;if(Y!==null&&Y!==void 0&&Y.destroyed||K!==null&&K!==void 0&&K.destroyed)return this;if(K!==null&&K!==void 0&&K.autoDestroy||Y!==null&&Y!==void 0&&Y.autoDestroy)X.destroy(Q);else if(Q){if(Q.stack,Y&&!Y.errored)Y.errored=Q;if(K&&!K.errored)K.errored=Q;if(J)M1.nextTick(h5,X,Q);else h5(X,Q)}}function NI(X,Q){if(typeof X._construct!=="function")return;let{_readableState:J,_writableState:K}=X;if(J)J.constructed=!1;if(K)K.constructed=!1;if(X.once(g5,Q),X.listenerCount(g5)>1)return;M1.nextTick(LI,X)}function LI(X){let Q=!1;function J(K){if(Q){f5(X,K!==null&&K!==void 0?K:new VI);return}Q=!0;let{_readableState:Y,_writableState:H}=X,Z=H||Y;if(Y)Y.constructed=!0;if(H)H.constructed=!0;if(Z.destroyed)X.emit(nY,K);else if(K)f5(X,K,!0);else M1.nextTick(CI,X)}try{X._construct((K)=>{M1.nextTick(J,K)})}catch(K){M1.nextTick(J,K)}}function CI(X){X.emit(g5)}function pY(X){return(X===null||X===void 0?void 0:X.setHeader)&&typeof X.abort==="function"}function rY(X){X.emit("close")}function II(X,Q){X.emit("error",Q),M1.nextTick(rY,X)}function OI(X,Q){if(!X||WI(X))return;if(!Q&&!zI(X))Q=new UI;if(BI(X))X.socket=null,X.destroy(Q);else if(pY(X))X.abort();else if(pY(X.req))X.req.abort();else if(typeof X.destroy==="function")X.destroy(Q);else if(typeof X.close==="function")X.close();else if(Q)M1.nextTick(II,X,Q);else M1.nextTick(rY,X);if(!X.destroyed)X[GI]=!0}sY.exports={construct:NI,destroyer:OI,destroy:$I,undestroy:FI,errorOrDestroy:f5}});var N7=N((Rx,tY)=>{var{ArrayIsArray:PI,ObjectSetPrototypeOf:aY}=L0(),{EventEmitter:M7}=f("events");function F7(X){M7.call(this,X)}aY(F7.prototype,M7.prototype);aY(F7,M7);F7.prototype.pipe=function(X,Q){let J=this;function K(G){if(X.writable&&X.write(G)===!1&&J.pause)J.pause()}J.on("data",K);function Y(){if(J.readable&&J.resume)J.resume()}if(X.on("drain",Y),!X._isStdio&&(!Q||Q.end!==!1))J.on("end",Z),J.on("close",q);let H=!1;function Z(){if(H)return;H=!0,X.end()}function q(){if(H)return;if(H=!0,typeof X.destroy==="function")X.destroy()}function V(G){if(W(),M7.listenerCount(this,"error")===0)this.emit("error",G)}u5(J,"error",V),u5(X,"error",V);function W(){J.removeListener("data",K),X.removeListener("drain",Y),J.removeListener("end",Z),J.removeListener("close",q),J.removeListener("error",V),X.removeListener("error",V),J.removeListener("end",W),J.removeListener("close",W),X.removeListener("close",W)}return J.on("end",W),J.on("close",W),X.on("close",W),X.emit("pipe",J),X};function u5(X,Q,J){if(typeof X.prependListener==="function")return X.prependListener(Q,J);if(!X._events||!X._events[Q])X.on(Q,J);else if(PI(X._events[Q]))X._events[Q].unshift(J);else X._events[Q]=[J,X._events[Q]]}tY.exports={Stream:F7,prependListener:u5}});var S8=N((RI,L7)=>{var{SymbolDispose:jI}=L0(),{AbortError:eY,codes:wI}=g0(),{isNodeStream:XH,isWebStream:DI,kControllerErrorFunction:TI}=$1(),_I=T1(),{ERR_INVALID_ARG_TYPE:QH}=wI,b5,AI=(X,Q)=>{if(typeof X!=="object"||!("aborted"in X))throw new QH(Q,"AbortSignal",X)};RI.addAbortSignal=function(Q,J){if(AI(Q,"signal"),!XH(J)&&!DI(J))throw new QH("stream",["ReadableStream","WritableStream","Stream"],J);return RI.addAbortSignalNoValidate(Q,J)};RI.addAbortSignalNoValidate=function(X,Q){if(typeof X!=="object"||!("aborted"in X))return Q;let J=XH(Q)?()=>{Q.destroy(new eY(void 0,{cause:X.reason}))}:()=>{Q[TI](new eY(void 0,{cause:X.reason}))};if(X.aborted)J();else{b5=b5||m0().addAbortListener;let K=b5(X,J);_I(Q,K[jI])}return Q}});var YH=N((Ex,KH)=>{var{StringPrototypeSlice:JH,SymbolIterator:xI,TypedArrayPrototypeSet:C7,Uint8Array:vI}=L0(),{Buffer:m5}=f("buffer"),{inspect:yI}=m0();KH.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(Q){let J={data:Q,next:null};if(this.length>0)this.tail.next=J;else this.head=J;this.tail=J,++this.length}unshift(Q){let J={data:Q,next:this.head};if(this.length===0)this.tail=J;this.head=J,++this.length}shift(){if(this.length===0)return;let Q=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,Q}clear(){this.head=this.tail=null,this.length=0}join(Q){if(this.length===0)return"";let J=this.head,K=""+J.data;while((J=J.next)!==null)K+=Q+J.data;return K}concat(Q){if(this.length===0)return m5.alloc(0);let J=m5.allocUnsafe(Q>>>0),K=this.head,Y=0;while(K)C7(J,K.data,Y),Y+=K.data.length,K=K.next;return J}consume(Q,J){let K=this.head.data;if(Q<K.length){let Y=K.slice(0,Q);return this.head.data=K.slice(Q),Y}if(Q===K.length)return this.shift();return J?this._getString(Q):this._getBuffer(Q)}first(){return this.head.data}*[xI](){for(let Q=this.head;Q;Q=Q.next)yield Q.data}_getString(Q){let J="",K=this.head,Y=0;do{let H=K.data;if(Q>H.length)J+=H,Q-=H.length;else{if(Q===H.length)if(J+=H,++Y,K.next)this.head=K.next;else this.head=this.tail=null;else J+=JH(H,0,Q),this.head=K,K.data=JH(H,Q);break}++Y}while((K=K.next)!==null);return this.length-=Y,J}_getBuffer(Q){let J=m5.allocUnsafe(Q),K=Q,Y=this.head,H=0;do{let Z=Y.data;if(Q>Z.length)C7(J,Z,K-Q),Q-=Z.length;else{if(Q===Z.length)if(C7(J,Z,K-Q),++H,Y.next)this.head=Y.next;else this.head=this.tail=null;else C7(J,new vI(Z.buffer,Z.byteOffset,Q),K-Q),this.head=Y,Y.data=Z.slice(Q);break}++H}while((Y=Y.next)!==null);return this.length-=H,J}[Symbol.for("nodejs.util.inspect.custom")](Q,J){return yI(this,{...J,depth:0,customInspect:!1})}}});var x8=N((Sx,VH)=>{var{MathFloor:kI,NumberIsInteger:gI}=L0(),{validateInteger:hI}=y6(),{ERR_INVALID_ARG_VALUE:fI}=g0().codes,HH=16384,ZH=16;function uI(X,Q,J){return X.highWaterMark!=null?X.highWaterMark:Q?X[J]:null}function qH(X){return X?ZH:HH}function bI(X,Q){if(hI(Q,"value",0),X)ZH=Q;else HH=Q}function mI(X,Q,J,K){let Y=uI(Q,K,J);if(Y!=null){if(!gI(Y)||Y<0){let H=K?`options.${J}`:"options.highWaterMark";throw new fI(H,Y)}return kI(Y)}return qH(X.objectMode)}VH.exports={getHighWaterMark:mI,getDefaultHighWaterMark:qH,setDefaultHighWaterMark:bI}});var WH=N((d5,GH)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var I7=f("buffer"),F1=I7.Buffer;function UH(X,Q){for(var J in X)Q[J]=X[J]}if(F1.from&&F1.alloc&&F1.allocUnsafe&&F1.allocUnsafeSlow)GH.exports=I7;else UH(I7,d5),d5.Buffer=J6;function J6(X,Q,J){return F1(X,Q,J)}J6.prototype=Object.create(F1.prototype);UH(F1,J6);J6.from=function(X,Q,J){if(typeof X==="number")throw TypeError("Argument must not be a number");return F1(X,Q,J)};J6.alloc=function(X,Q,J){if(typeof X!=="number")throw TypeError("Argument must be a number");var K=F1(X);if(Q!==void 0)if(typeof J==="string")K.fill(Q,J);else K.fill(Q);else K.fill(0);return K};J6.allocUnsafe=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return F1(X)};J6.allocUnsafeSlow=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return I7.SlowBuffer(X)}});var BH=N((QO)=>{var p5=WH().Buffer,zH=p5.isEncoding||function(X){switch(X=""+X,X&&X.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function dI(X){if(!X)return"utf8";var Q;while(!0)switch(X){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return X;default:if(Q)return;X=(""+X).toLowerCase(),Q=!0}}function cI(X){var Q=dI(X);if(typeof Q!=="string"&&(p5.isEncoding===zH||!zH(X)))throw Error("Unknown encoding: "+X);return Q||X}QO.StringDecoder=v8;function v8(X){this.encoding=cI(X);var Q;switch(this.encoding){case"utf16le":this.text=rI,this.end=sI,Q=4;break;case"utf8":this.fillLast=nI,Q=4;break;case"base64":this.text=aI,this.end=tI,Q=3;break;default:this.write=eI,this.end=XO;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=p5.allocUnsafe(Q)}v8.prototype.write=function(X){if(X.length===0)return"";var Q,J;if(this.lastNeed){if(Q=this.fillLast(X),Q===void 0)return"";J=this.lastNeed,this.lastNeed=0}else J=0;if(J<X.length)return Q?Q+this.text(X,J):this.text(X,J);return Q||""};v8.prototype.end=oI;v8.prototype.text=iI;v8.prototype.fillLast=function(X){if(this.lastNeed<=X.length)return X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,X.length),this.lastNeed-=X.length};function c5(X){if(X<=127)return 0;else if(X>>5===6)return 2;else if(X>>4===14)return 3;else if(X>>3===30)return 4;return X>>6===2?-1:-2}function pI(X,Q,J){var K=Q.length-1;if(K<J)return 0;var Y=c5(Q[K]);if(Y>=0){if(Y>0)X.lastNeed=Y-1;return Y}if(--K<J||Y===-2)return 0;if(Y=c5(Q[K]),Y>=0){if(Y>0)X.lastNeed=Y-2;return Y}if(--K<J||Y===-2)return 0;if(Y=c5(Q[K]),Y>=0){if(Y>0)if(Y===2)Y=0;else X.lastNeed=Y-3;return Y}return 0}function lI(X,Q,J){if((Q[0]&192)!==128)return X.lastNeed=0,"\uFFFD";if(X.lastNeed>1&&Q.length>1){if((Q[1]&192)!==128)return X.lastNeed=1,"\uFFFD";if(X.lastNeed>2&&Q.length>2){if((Q[2]&192)!==128)return X.lastNeed=2,"\uFFFD"}}}function nI(X){var Q=this.lastTotal-this.lastNeed,J=lI(this,X,Q);if(J!==void 0)return J;if(this.lastNeed<=X.length)return X.copy(this.lastChar,Q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,Q,0,X.length),this.lastNeed-=X.length}function iI(X,Q){var J=pI(this,X,Q);if(!this.lastNeed)return X.toString("utf8",Q);this.lastTotal=J;var K=X.length-(J-this.lastNeed);return X.copy(this.lastChar,0,K),X.toString("utf8",Q,K)}function oI(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed)return Q+"\uFFFD";return Q}function rI(X,Q){if((X.length-Q)%2===0){var J=X.toString("utf16le",Q);if(J){var K=J.charCodeAt(J.length-1);if(K>=55296&&K<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1],J.slice(0,-1)}return J}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=X[X.length-1],X.toString("utf16le",Q,X.length-1)}function sI(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed){var J=this.lastTotal-this.lastNeed;return Q+this.lastChar.toString("utf16le",0,J)}return Q}function aI(X,Q){var J=(X.length-Q)%3;if(J===0)return X.toString("base64",Q);if(this.lastNeed=3-J,this.lastTotal=3,J===1)this.lastChar[0]=X[X.length-1];else this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1];return X.toString("base64",Q,X.length-J)}function tI(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed)return Q+this.lastChar.toString("base64",0,3-this.lastNeed);return Q}function eI(X){return X.toString(this.encoding)}function XO(X){return X&&X.length?this.write(X):""}});var l5=N((vx,NH)=>{var $H=g1(),{PromisePrototypeThen:KO,SymbolAsyncIterator:MH,SymbolIterator:FH}=L0(),{Buffer:YO}=f("buffer"),{ERR_INVALID_ARG_TYPE:HO,ERR_STREAM_NULL_VALUES:ZO}=g0().codes;function qO(X,Q,J){let K;if(typeof Q==="string"||Q instanceof YO)return new X({objectMode:!0,...J,read(){this.push(Q),this.push(null)}});let Y;if(Q&&Q[MH])Y=!0,K=Q[MH]();else if(Q&&Q[FH])Y=!1,K=Q[FH]();else throw new HO("iterable",["Iterable"],Q);let H=new X({objectMode:!0,highWaterMark:1,...J}),Z=!1;H._read=function(){if(!Z)Z=!0,V()},H._destroy=function(W,G){KO(q(W),()=>$H.nextTick(G,W),(B)=>$H.nextTick(G,B||W))};async function q(W){let G=W!==void 0&&W!==null,B=typeof K.throw==="function";if(G&&B){let{value:F,done:M}=await K.throw(W);if(await F,M)return}if(typeof K.return==="function"){let{value:F}=await K.return();await F}}async function V(){for(;;){try{let{value:W,done:G}=Y?await K.next():K.next();if(G)H.push(null);else{let B=W&&typeof W.then==="function"?await W:W;if(B===null)throw Z=!1,new ZO;else if(H.push(B))continue;else Z=!1}}catch(W){H.destroy(W)}break}}return H}NH.exports=qO});var k8=N((yx,kH)=>{var q1=g1(),{ArrayPrototypeIndexOf:VO,NumberIsInteger:UO,NumberIsNaN:GO,NumberParseInt:WO,ObjectDefineProperties:e5,ObjectKeys:zO,ObjectSetPrototypeOf:IH,Promise:OH,SafeSet:BO,SymbolAsyncDispose:$O,SymbolAsyncIterator:MO,Symbol:FO}=L0();kH.exports=o;o.ReadableState=w7;var{EventEmitter:NO}=f("events"),{Stream:f1,prependListener:LO}=N7(),{Buffer:n5}=f("buffer"),{addAbortSignal:CO}=S8(),PH=T1(),a=m0().debuglog("stream",(X)=>{a=X}),IO=YH(),f6=Q6(),{getHighWaterMark:OO,getDefaultHighWaterMark:PO}=x8(),{aggregateTwoErrors:LH,codes:{ERR_INVALID_ARG_TYPE:jO,ERR_METHOD_NOT_IMPLEMENTED:wO,ERR_OUT_OF_RANGE:DO,ERR_STREAM_PUSH_AFTER_EOF:TO,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:_O},AbortError:AO}=g0(),{validateObject:RO}=y6(),K6=FO("kPaused"),{StringDecoder:jH}=BH(),EO=l5();IH(o.prototype,f1.prototype);IH(o,f1);var i5=()=>{},{errorOrDestroy:g6}=f6,h6=1,SO=2,wH=4,y8=8,DH=16,O7=32,P7=64,TH=128,xO=256,vO=512,yO=1024,a5=2048,t5=4096,kO=8192,gO=16384,hO=32768,_H=65536,fO=131072,uO=262144;function D0(X){return{enumerable:!1,get(){return(this.state&X)!==0},set(Q){if(Q)this.state|=X;else this.state&=~X}}}e5(w7.prototype,{objectMode:D0(h6),ended:D0(SO),endEmitted:D0(wH),reading:D0(y8),constructed:D0(DH),sync:D0(O7),needReadable:D0(P7),emittedReadable:D0(TH),readableListening:D0(xO),resumeScheduled:D0(vO),errorEmitted:D0(yO),emitClose:D0(a5),autoDestroy:D0(t5),destroyed:D0(kO),closed:D0(gO),closeEmitted:D0(hO),multiAwaitDrain:D0(_H),readingMore:D0(fO),dataEmitted:D0(uO)});function w7(X,Q,J){if(typeof J!=="boolean")J=Q instanceof N1();if(this.state=a5|t5|DH|O7,X&&X.objectMode)this.state|=h6;if(J&&X&&X.readableObjectMode)this.state|=h6;if(this.highWaterMark=X?OO(this,X,"readableHighWaterMark",J):PO(!1),this.buffer=new IO,this.length=0,this.pipes=[],this.flowing=null,this[K6]=null,X&&X.emitClose===!1)this.state&=~a5;if(X&&X.autoDestroy===!1)this.state&=~t5;if(this.errored=null,this.defaultEncoding=X&&X.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,X&&X.encoding)this.decoder=new jH(X.encoding),this.encoding=X.encoding}function o(X){if(!(this instanceof o))return new o(X);let Q=this instanceof N1();if(this._readableState=new w7(X,this,Q),X){if(typeof X.read==="function")this._read=X.read;if(typeof X.destroy==="function")this._destroy=X.destroy;if(typeof X.construct==="function")this._construct=X.construct;if(X.signal&&!Q)CO(X.signal,this)}f1.call(this,X),f6.construct(this,()=>{if(this._readableState.needReadable)j7(this,this._readableState)})}o.prototype.destroy=f6.destroy;o.prototype._undestroy=f6.undestroy;o.prototype._destroy=function(X,Q){Q(X)};o.prototype[NO.captureRejectionSymbol]=function(X){this.destroy(X)};o.prototype[$O]=function(){let X;if(!this.destroyed)X=this.readableEnded?null:new AO,this.destroy(X);return new OH((Q,J)=>PH(this,(K)=>K&&K!==X?J(K):Q(null)))};o.prototype.push=function(X,Q){return AH(this,X,Q,!1)};o.prototype.unshift=function(X,Q){return AH(this,X,Q,!0)};function AH(X,Q,J,K){a("readableAddChunk",Q);let Y=X._readableState,H;if((Y.state&h6)===0){if(typeof Q==="string"){if(J=J||Y.defaultEncoding,Y.encoding!==J)if(K&&Y.encoding)Q=n5.from(Q,J).toString(Y.encoding);else Q=n5.from(Q,J),J=""}else if(Q instanceof n5)J="";else if(f1._isUint8Array(Q))Q=f1._uint8ArrayToBuffer(Q),J="";else if(Q!=null)H=new jO("chunk",["string","Buffer","Uint8Array"],Q)}if(H)g6(X,H);else if(Q===null)Y.state&=~y8,dO(X,Y);else if((Y.state&h6)!==0||Q&&Q.length>0)if(K)if((Y.state&wH)!==0)g6(X,new _O);else if(Y.destroyed||Y.errored)return!1;else o5(X,Y,Q,!0);else if(Y.ended)g6(X,new TO);else if(Y.destroyed||Y.errored)return!1;else if(Y.state&=~y8,Y.decoder&&!J)if(Q=Y.decoder.write(Q),Y.objectMode||Q.length!==0)o5(X,Y,Q,!1);else j7(X,Y);else o5(X,Y,Q,!1);else if(!K)Y.state&=~y8,j7(X,Y);return!Y.ended&&(Y.length<Y.highWaterMark||Y.length===0)}function o5(X,Q,J,K){if(Q.flowing&&Q.length===0&&!Q.sync&&X.listenerCount("data")>0){if((Q.state&_H)!==0)Q.awaitDrainWriters.clear();else Q.awaitDrainWriters=null;Q.dataEmitted=!0,X.emit("data",J)}else{if(Q.length+=Q.objectMode?1:J.length,K)Q.buffer.unshift(J);else Q.buffer.push(J);if((Q.state&P7)!==0)D7(X)}j7(X,Q)}o.prototype.isPaused=function(){let X=this._readableState;return X[K6]===!0||X.flowing===!1};o.prototype.setEncoding=function(X){let Q=new jH(X);this._readableState.decoder=Q,this._readableState.encoding=this._readableState.decoder.encoding;let J=this._readableState.buffer,K="";for(let Y of J)K+=Q.write(Y);if(J.clear(),K!=="")J.push(K);return this._readableState.length=K.length,this};var bO=1073741824;function mO(X){if(X>bO)throw new DO("size","<= 1GiB",X);else X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++;return X}function CH(X,Q){if(X<=0||Q.length===0&&Q.ended)return 0;if((Q.state&h6)!==0)return 1;if(GO(X)){if(Q.flowing&&Q.length)return Q.buffer.first().length;return Q.length}if(X<=Q.length)return X;return Q.ended?Q.length:0}o.prototype.read=function(X){if(a("read",X),X===void 0)X=NaN;else if(!UO(X))X=WO(X,10);let Q=this._readableState,J=X;if(X>Q.highWaterMark)Q.highWaterMark=mO(X);if(X!==0)Q.state&=~TH;if(X===0&&Q.needReadable&&((Q.highWaterMark!==0?Q.length>=Q.highWaterMark:Q.length>0)||Q.ended)){if(a("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended)r5(this);else D7(this);return null}if(X=CH(X,Q),X===0&&Q.ended){if(Q.length===0)r5(this);return null}let K=(Q.state&P7)!==0;if(a("need readable",K),Q.length===0||Q.length-X<Q.highWaterMark)K=!0,a("length less than watermark",K);if(Q.ended||Q.reading||Q.destroyed||Q.errored||!Q.constructed)K=!1,a("reading, ended or constructing",K);else if(K){if(a("do read"),Q.state|=y8|O7,Q.length===0)Q.state|=P7;try{this._read(Q.highWaterMark)}catch(H){g6(this,H)}if(Q.state&=~O7,!Q.reading)X=CH(J,Q)}let Y;if(X>0)Y=vH(X,Q);else Y=null;if(Y===null)Q.needReadable=Q.length<=Q.highWaterMark,X=0;else if(Q.length-=X,Q.multiAwaitDrain)Q.awaitDrainWriters.clear();else Q.awaitDrainWriters=null;if(Q.length===0){if(!Q.ended)Q.needReadable=!0;if(J!==X&&Q.ended)r5(this)}if(Y!==null&&!Q.errorEmitted&&!Q.closeEmitted)Q.dataEmitted=!0,this.emit("data",Y);return Y};function dO(X,Q){if(a("onEofChunk"),Q.ended)return;if(Q.decoder){let J=Q.decoder.end();if(J&&J.length)Q.buffer.push(J),Q.length+=Q.objectMode?1:J.length}if(Q.ended=!0,Q.sync)D7(X);else Q.needReadable=!1,Q.emittedReadable=!0,RH(X)}function D7(X){let Q=X._readableState;if(a("emitReadable",Q.needReadable,Q.emittedReadable),Q.needReadable=!1,!Q.emittedReadable)a("emitReadable",Q.flowing),Q.emittedReadable=!0,q1.nextTick(RH,X)}function RH(X){let Q=X._readableState;if(a("emitReadable_",Q.destroyed,Q.length,Q.ended),!Q.destroyed&&!Q.errored&&(Q.length||Q.ended))X.emit("readable"),Q.emittedReadable=!1;Q.needReadable=!Q.flowing&&!Q.ended&&Q.length<=Q.highWaterMark,SH(X)}function j7(X,Q){if(!Q.readingMore&&Q.constructed)Q.readingMore=!0,q1.nextTick(cO,X,Q)}function cO(X,Q){while(!Q.reading&&!Q.ended&&(Q.length<Q.highWaterMark||Q.flowing&&Q.length===0)){let J=Q.length;if(a("maybeReadMore read 0"),X.read(0),J===Q.length)break}Q.readingMore=!1}o.prototype._read=function(X){throw new wO("_read()")};o.prototype.pipe=function(X,Q){let J=this,K=this._readableState;if(K.pipes.length===1){if(!K.multiAwaitDrain)K.multiAwaitDrain=!0,K.awaitDrainWriters=new BO(K.awaitDrainWriters?[K.awaitDrainWriters]:[])}K.pipes.push(X),a("pipe count=%d opts=%j",K.pipes.length,Q);let H=(!Q||Q.end!==!1)&&X!==q1.stdout&&X!==q1.stderr?q:O;if(K.endEmitted)q1.nextTick(H);else J.once("end",H);X.on("unpipe",Z);function Z(L,x){if(a("onunpipe"),L===J){if(x&&x.hasUnpiped===!1)x.hasUnpiped=!0,G()}}function q(){a("onend"),X.end()}let V,W=!1;function G(){if(a("cleanup"),X.removeListener("close",I),X.removeListener("finish",P),V)X.removeListener("drain",V);if(X.removeListener("error",M),X.removeListener("unpipe",Z),J.removeListener("end",q),J.removeListener("end",O),J.removeListener("data",F),W=!0,V&&K.awaitDrainWriters&&(!X._writableState||X._writableState.needDrain))V()}function B(){if(!W){if(K.pipes.length===1&&K.pipes[0]===X)a("false write response, pause",0),K.awaitDrainWriters=X,K.multiAwaitDrain=!1;else if(K.pipes.length>1&&K.pipes.includes(X))a("false write response, pause",K.awaitDrainWriters.size),K.awaitDrainWriters.add(X);J.pause()}if(!V)V=pO(J,X),X.on("drain",V)}J.on("data",F);function F(L){a("ondata");let x=X.write(L);if(a("dest.write",x),x===!1)B()}function M(L){if(a("onerror",L),O(),X.removeListener("error",M),X.listenerCount("error")===0){let x=X._writableState||X._readableState;if(x&&!x.errorEmitted)g6(X,L);else X.emit("error",L)}}LO(X,"error",M);function I(){X.removeListener("finish",P),O()}X.once("close",I);function P(){a("onfinish"),X.removeListener("close",I),O()}X.once("finish",P);function O(){a("unpipe"),J.unpipe(X)}if(X.emit("pipe",J),X.writableNeedDrain===!0)B();else if(!K.flowing)a("pipe resume"),J.resume();return X};function pO(X,Q){return function(){let K=X._readableState;if(K.awaitDrainWriters===Q)a("pipeOnDrain",1),K.awaitDrainWriters=null;else if(K.multiAwaitDrain)a("pipeOnDrain",K.awaitDrainWriters.size),K.awaitDrainWriters.delete(Q);if((!K.awaitDrainWriters||K.awaitDrainWriters.size===0)&&X.listenerCount("data"))X.resume()}}o.prototype.unpipe=function(X){let Q=this._readableState,J={hasUnpiped:!1};if(Q.pipes.length===0)return this;if(!X){let Y=Q.pipes;Q.pipes=[],this.pause();for(let H=0;H<Y.length;H++)Y[H].emit("unpipe",this,{hasUnpiped:!1});return this}let K=VO(Q.pipes,X);if(K===-1)return this;if(Q.pipes.splice(K,1),Q.pipes.length===0)this.pause();return X.emit("unpipe",this,J),this};o.prototype.on=function(X,Q){let J=f1.prototype.on.call(this,X,Q),K=this._readableState;if(X==="data"){if(K.readableListening=this.listenerCount("readable")>0,K.flowing!==!1)this.resume()}else if(X==="readable"){if(!K.endEmitted&&!K.readableListening){if(K.readableListening=K.needReadable=!0,K.flowing=!1,K.emittedReadable=!1,a("on readable",K.length,K.reading),K.length)D7(this);else if(!K.reading)q1.nextTick(lO,this)}}return J};o.prototype.addListener=o.prototype.on;o.prototype.removeListener=function(X,Q){let J=f1.prototype.removeListener.call(this,X,Q);if(X==="readable")q1.nextTick(EH,this);return J};o.prototype.off=o.prototype.removeListener;o.prototype.removeAllListeners=function(X){let Q=f1.prototype.removeAllListeners.apply(this,arguments);if(X==="readable"||X===void 0)q1.nextTick(EH,this);return Q};function EH(X){let Q=X._readableState;if(Q.readableListening=X.listenerCount("readable")>0,Q.resumeScheduled&&Q[K6]===!1)Q.flowing=!0;else if(X.listenerCount("data")>0)X.resume();else if(!Q.readableListening)Q.flowing=null}function lO(X){a("readable nexttick read 0"),X.read(0)}o.prototype.resume=function(){let X=this._readableState;if(!X.flowing)a("resume"),X.flowing=!X.readableListening,nO(this,X);return X[K6]=!1,this};function nO(X,Q){if(!Q.resumeScheduled)Q.resumeScheduled=!0,q1.nextTick(iO,X,Q)}function iO(X,Q){if(a("resume",Q.reading),!Q.reading)X.read(0);if(Q.resumeScheduled=!1,X.emit("resume"),SH(X),Q.flowing&&!Q.reading)X.read(0)}o.prototype.pause=function(){if(a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)a("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[K6]=!0,this};function SH(X){let Q=X._readableState;a("flow",Q.flowing);while(Q.flowing&&X.read()!==null);}o.prototype.wrap=function(X){let Q=!1;X.on("data",(K)=>{if(!this.push(K)&&X.pause)Q=!0,X.pause()}),X.on("end",()=>{this.push(null)}),X.on("error",(K)=>{g6(this,K)}),X.on("close",()=>{this.destroy()}),X.on("destroy",()=>{this.destroy()}),this._read=()=>{if(Q&&X.resume)Q=!1,X.resume()};let J=zO(X);for(let K=1;K<J.length;K++){let Y=J[K];if(this[Y]===void 0&&typeof X[Y]==="function")this[Y]=X[Y].bind(X)}return this};o.prototype[MO]=function(){return xH(this)};o.prototype.iterator=function(X){if(X!==void 0)RO(X,"options");return xH(this,X)};function xH(X,Q){if(typeof X.read!=="function")X=o.wrap(X,{objectMode:!0});let J=oO(X,Q);return J.stream=X,J}async function*oO(X,Q){let J=i5;function K(Z){if(this===X)J(),J=i5;else J=Z}X.on("readable",K);let Y,H=PH(X,{writable:!1},(Z)=>{Y=Z?LH(Y,Z):null,J(),J=i5});try{while(!0){let Z=X.destroyed?null:X.read();if(Z!==null)yield Z;else if(Y)throw Y;else if(Y===null)return;else await new OH(K)}}catch(Z){throw Y=LH(Y,Z),Y}finally{if((Y||(Q===null||Q===void 0?void 0:Q.destroyOnReturn)!==!1)&&(Y===void 0||X._readableState.autoDestroy))f6.destroyer(X,null);else X.off("readable",K),H()}}e5(o.prototype,{readable:{__proto__:null,get(){let X=this._readableState;return!!X&&X.readable!==!1&&!X.destroyed&&!X.errorEmitted&&!X.endEmitted},set(X){if(this._readableState)this._readableState.readable=!!X}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(X){if(this._readableState)this._readableState.flowing=X}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(X){if(!this._readableState)return;this._readableState.destroyed=X}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});e5(w7.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[K6]!==!1},set(X){this[K6]=!!X}}});o._fromList=vH;function vH(X,Q){if(Q.length===0)return null;let J;if(Q.objectMode)J=Q.buffer.shift();else if(!X||X>=Q.length){if(Q.decoder)J=Q.buffer.join("");else if(Q.buffer.length===1)J=Q.buffer.first();else J=Q.buffer.concat(Q.length);Q.buffer.clear()}else J=Q.buffer.consume(X,Q.decoder);return J}function r5(X){let Q=X._readableState;if(a("endReadable",Q.endEmitted),!Q.endEmitted)Q.ended=!0,q1.nextTick(rO,Q,X)}function rO(X,Q){if(a("endReadableNT",X.endEmitted,X.length),!X.errored&&!X.closeEmitted&&!X.endEmitted&&X.length===0){if(X.endEmitted=!0,Q.emit("end"),Q.writable&&Q.allowHalfOpen===!1)q1.nextTick(sO,Q);else if(X.autoDestroy){let J=Q._writableState;if(!J||J.autoDestroy&&(J.finished||J.writable===!1))Q.destroy()}}}function sO(X){if(X.writable&&!X.writableEnded&&!X.destroyed)X.end()}o.from=function(X,Q){return EO(o,X,Q)};var s5;function yH(){if(s5===void 0)s5={};return s5}o.fromWeb=function(X,Q){return yH().newStreamReadableFromReadableStream(X,Q)};o.toWeb=function(X,Q){return yH().newReadableStreamFromStreamReadable(X,Q)};o.wrap=function(X,Q){var J,K;return new o({objectMode:(J=(K=X.readableObjectMode)!==null&&K!==void 0?K:X.objectMode)!==null&&J!==void 0?J:!0,...Q,destroy(Y,H){f6.destroyer(X,Y),H(Y)}}).wrap(X)}});var E7=N((kx,iH)=>{var Y6=g1(),{ArrayPrototypeSlice:fH,Error:aO,FunctionPrototypeSymbolHasInstance:uH,ObjectDefineProperty:bH,ObjectDefineProperties:tO,ObjectSetPrototypeOf:mH,StringPrototypeToLowerCase:eO,Symbol:XP,SymbolHasInstance:QP}=L0();iH.exports=I0;I0.WritableState=f8;var{EventEmitter:JP}=f("events"),g8=N7().Stream,{Buffer:T7}=f("buffer"),R7=Q6(),{addAbortSignal:KP}=S8(),{getHighWaterMark:YP,getDefaultHighWaterMark:HP}=x8(),{ERR_INVALID_ARG_TYPE:ZP,ERR_METHOD_NOT_IMPLEMENTED:qP,ERR_MULTIPLE_CALLBACK:dH,ERR_STREAM_CANNOT_PIPE:VP,ERR_STREAM_DESTROYED:h8,ERR_STREAM_ALREADY_FINISHED:UP,ERR_STREAM_NULL_VALUES:GP,ERR_STREAM_WRITE_AFTER_END:WP,ERR_UNKNOWN_ENCODING:cH}=g0().codes,{errorOrDestroy:u6}=R7;mH(I0.prototype,g8.prototype);mH(I0,g8);function J9(){}var b6=XP("kOnFinished");function f8(X,Q,J){if(typeof J!=="boolean")J=Q instanceof N1();if(this.objectMode=!!(X&&X.objectMode),J)this.objectMode=this.objectMode||!!(X&&X.writableObjectMode);this.highWaterMark=X?YP(this,X,"writableHighWaterMark",J):HP(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let K=!!(X&&X.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=X&&X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=BP.bind(void 0,Q),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,A7(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!X||X.emitClose!==!1,this.autoDestroy=!X||X.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[b6]=[]}function A7(X){X.buffered=[],X.bufferedIndex=0,X.allBuffers=!0,X.allNoop=!0}f8.prototype.getBuffer=function(){return fH(this.buffered,this.bufferedIndex)};bH(f8.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function I0(X){let Q=this instanceof N1();if(!Q&&!uH(I0,this))return new I0(X);if(this._writableState=new f8(X,this,Q),X){if(typeof X.write==="function")this._write=X.write;if(typeof X.writev==="function")this._writev=X.writev;if(typeof X.destroy==="function")this._destroy=X.destroy;if(typeof X.final==="function")this._final=X.final;if(typeof X.construct==="function")this._construct=X.construct;if(X.signal)KP(X.signal,this)}g8.call(this,X),R7.construct(this,()=>{let J=this._writableState;if(!J.writing)Y9(this,J);H9(this,J)})}bH(I0,QP,{__proto__:null,value:function(X){if(uH(this,X))return!0;if(this!==I0)return!1;return X&&X._writableState instanceof f8}});I0.prototype.pipe=function(){u6(this,new VP)};function pH(X,Q,J,K){let Y=X._writableState;if(typeof J==="function")K=J,J=Y.defaultEncoding;else{if(!J)J=Y.defaultEncoding;else if(J!=="buffer"&&!T7.isEncoding(J))throw new cH(J);if(typeof K!=="function")K=J9}if(Q===null)throw new GP;else if(!Y.objectMode)if(typeof Q==="string"){if(Y.decodeStrings!==!1)Q=T7.from(Q,J),J="buffer"}else if(Q instanceof T7)J="buffer";else if(g8._isUint8Array(Q))Q=g8._uint8ArrayToBuffer(Q),J="buffer";else throw new ZP("chunk",["string","Buffer","Uint8Array"],Q);let H;if(Y.ending)H=new WP;else if(Y.destroyed)H=new h8("write");if(H)return Y6.nextTick(K,H),u6(X,H,!0),H;return Y.pendingcb++,zP(X,Y,Q,J,K)}I0.prototype.write=function(X,Q,J){return pH(this,X,Q,J)===!0};I0.prototype.cork=function(){this._writableState.corked++};I0.prototype.uncork=function(){let X=this._writableState;if(X.corked){if(X.corked--,!X.writing)Y9(this,X)}};I0.prototype.setDefaultEncoding=function(Q){if(typeof Q==="string")Q=eO(Q);if(!T7.isEncoding(Q))throw new cH(Q);return this._writableState.defaultEncoding=Q,this};function zP(X,Q,J,K,Y){let H=Q.objectMode?1:J.length;Q.length+=H;let Z=Q.length<Q.highWaterMark;if(!Z)Q.needDrain=!0;if(Q.writing||Q.corked||Q.errored||!Q.constructed){if(Q.buffered.push({chunk:J,encoding:K,callback:Y}),Q.allBuffers&&K!=="buffer")Q.allBuffers=!1;if(Q.allNoop&&Y!==J9)Q.allNoop=!1}else Q.writelen=H,Q.writecb=Y,Q.writing=!0,Q.sync=!0,X._write(J,K,Q.onwrite),Q.sync=!1;return Z&&!Q.errored&&!Q.destroyed}function gH(X,Q,J,K,Y,H,Z){if(Q.writelen=K,Q.writecb=Z,Q.writing=!0,Q.sync=!0,Q.destroyed)Q.onwrite(new h8("write"));else if(J)X._writev(Y,Q.onwrite);else X._write(Y,H,Q.onwrite);Q.sync=!1}function hH(X,Q,J,K){--Q.pendingcb,K(J),K9(Q),u6(X,J)}function BP(X,Q){let J=X._writableState,K=J.sync,Y=J.writecb;if(typeof Y!=="function"){u6(X,new dH);return}if(J.writing=!1,J.writecb=null,J.length-=J.writelen,J.writelen=0,Q){if(Q.stack,!J.errored)J.errored=Q;if(X._readableState&&!X._readableState.errored)X._readableState.errored=Q;if(K)Y6.nextTick(hH,X,J,Q,Y);else hH(X,J,Q,Y)}else{if(J.buffered.length>J.bufferedIndex)Y9(X,J);if(K)if(J.afterWriteTickInfo!==null&&J.afterWriteTickInfo.cb===Y)J.afterWriteTickInfo.count++;else J.afterWriteTickInfo={count:1,cb:Y,stream:X,state:J},Y6.nextTick($P,J.afterWriteTickInfo);else lH(X,J,1,Y)}}function $P({stream:X,state:Q,count:J,cb:K}){return Q.afterWriteTickInfo=null,lH(X,Q,J,K)}function lH(X,Q,J,K){if(!Q.ending&&!X.destroyed&&Q.length===0&&Q.needDrain)Q.needDrain=!1,X.emit("drain");while(J-- >0)Q.pendingcb--,K();if(Q.destroyed)K9(Q);H9(X,Q)}function K9(X){if(X.writing)return;for(let Y=X.bufferedIndex;Y<X.buffered.length;++Y){var Q;let{chunk:H,callback:Z}=X.buffered[Y],q=X.objectMode?1:H.length;X.length-=q,Z((Q=X.errored)!==null&&Q!==void 0?Q:new h8("write"))}let J=X[b6].splice(0);for(let Y=0;Y<J.length;Y++){var K;J[Y]((K=X.errored)!==null&&K!==void 0?K:new h8("end"))}A7(X)}function Y9(X,Q){if(Q.corked||Q.bufferProcessing||Q.destroyed||!Q.constructed)return;let{buffered:J,bufferedIndex:K,objectMode:Y}=Q,H=J.length-K;if(!H)return;let Z=K;if(Q.bufferProcessing=!0,H>1&&X._writev){Q.pendingcb-=H-1;let q=Q.allNoop?J9:(W)=>{for(let G=Z;G<J.length;++G)J[G].callback(W)},V=Q.allNoop&&Z===0?J:fH(J,Z);V.allBuffers=Q.allBuffers,gH(X,Q,!0,Q.length,V,"",q),A7(Q)}else{do{let{chunk:q,encoding:V,callback:W}=J[Z];J[Z++]=null;let G=Y?1:q.length;gH(X,Q,!1,G,q,V,W)}while(Z<J.length&&!Q.writing);if(Z===J.length)A7(Q);else if(Z>256)J.splice(0,Z),Q.bufferedIndex=0;else Q.bufferedIndex=Z}Q.bufferProcessing=!1}I0.prototype._write=function(X,Q,J){if(this._writev)this._writev([{chunk:X,encoding:Q}],J);else throw new qP("_write()")};I0.prototype._writev=null;I0.prototype.end=function(X,Q,J){let K=this._writableState;if(typeof X==="function")J=X,X=null,Q=null;else if(typeof Q==="function")J=Q,Q=null;let Y;if(X!==null&&X!==void 0){let H=pH(this,X,Q);if(H instanceof aO)Y=H}if(K.corked)K.corked=1,this.uncork();if(Y);else if(!K.errored&&!K.ending)K.ending=!0,H9(this,K,!0),K.ended=!0;else if(K.finished)Y=new UP("end");else if(K.destroyed)Y=new h8("end");if(typeof J==="function")if(Y||K.finished)Y6.nextTick(J,Y);else K[b6].push(J);return this};function _7(X){return X.ending&&!X.destroyed&&X.constructed&&X.length===0&&!X.errored&&X.buffered.length===0&&!X.finished&&!X.writing&&!X.errorEmitted&&!X.closeEmitted}function MP(X,Q){let J=!1;function K(Y){if(J){u6(X,Y!==null&&Y!==void 0?Y:dH());return}if(J=!0,Q.pendingcb--,Y){let H=Q[b6].splice(0);for(let Z=0;Z<H.length;Z++)H[Z](Y);u6(X,Y,Q.sync)}else if(_7(Q))Q.prefinished=!0,X.emit("prefinish"),Q.pendingcb++,Y6.nextTick(Q9,X,Q)}Q.sync=!0,Q.pendingcb++;try{X._final(K)}catch(Y){K(Y)}Q.sync=!1}function FP(X,Q){if(!Q.prefinished&&!Q.finalCalled)if(typeof X._final==="function"&&!Q.destroyed)Q.finalCalled=!0,MP(X,Q);else Q.prefinished=!0,X.emit("prefinish")}function H9(X,Q,J){if(_7(Q)){if(FP(X,Q),Q.pendingcb===0){if(J)Q.pendingcb++,Y6.nextTick((K,Y)=>{if(_7(Y))Q9(K,Y);else Y.pendingcb--},X,Q);else if(_7(Q))Q.pendingcb++,Q9(X,Q)}}}function Q9(X,Q){Q.pendingcb--,Q.finished=!0;let J=Q[b6].splice(0);for(let K=0;K<J.length;K++)J[K]();if(X.emit("finish"),Q.autoDestroy){let K=X._readableState;if(!K||K.autoDestroy&&(K.endEmitted||K.readable===!1))X.destroy()}}tO(I0.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(X){if(this._writableState)this._writableState.destroyed=X}},writable:{__proto__:null,get(){let X=this._writableState;return!!X&&X.writable!==!1&&!X.destroyed&&!X.errored&&!X.ending&&!X.ended},set(X){if(this._writableState)this._writableState.writable=!!X}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let X=this._writableState;if(!X)return!1;return!X.destroyed&&!X.ending&&X.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var NP=R7.destroy;I0.prototype.destroy=function(X,Q){let J=this._writableState;if(!J.destroyed&&(J.bufferedIndex<J.buffered.length||J[b6].length))Y6.nextTick(K9,J);return NP.call(this,X,Q),this};I0.prototype._undestroy=R7.undestroy;I0.prototype._destroy=function(X,Q){Q(X)};I0.prototype[JP.captureRejectionSymbol]=function(X){this.destroy(X)};var X9;function nH(){if(X9===void 0)X9={};return X9}I0.fromWeb=function(X,Q){return nH().newStreamWritableFromWritableStream(X,Q)};I0.toWeb=function(X){return nH().newWritableStreamFromStreamWritable(X)}});var VZ=N((gx,qZ)=>{var Z9=g1(),LP=f("buffer"),{isReadable:CP,isWritable:IP,isIterable:oH,isNodeStream:OP,isReadableNodeStream:rH,isWritableNodeStream:sH,isDuplexNodeStream:PP,isReadableStream:aH,isWritableStream:tH}=$1(),eH=T1(),{AbortError:HZ,codes:{ERR_INVALID_ARG_TYPE:jP,ERR_INVALID_RETURN_VALUE:XZ}}=g0(),{destroyer:d6}=Q6(),wP=N1(),ZZ=k8(),DP=E7(),{createDeferredPromise:QZ}=m0(),JZ=l5(),KZ=globalThis.Blob||LP.Blob,TP=typeof KZ<"u"?function(Q){return Q instanceof KZ}:function(Q){return!1},_P=globalThis.AbortController||f("abort-controller").AbortController,{FunctionPrototypeCall:YZ}=L0();class H6 extends wP{constructor(X){super(X);if((X===null||X===void 0?void 0:X.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((X===null||X===void 0?void 0:X.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}qZ.exports=function X(Q,J){if(PP(Q))return Q;if(rH(Q))return m6({readable:Q});if(sH(Q))return m6({writable:Q});if(OP(Q))return m6({writable:!1,readable:!1});if(aH(Q))return m6({readable:ZZ.fromWeb(Q)});if(tH(Q))return m6({writable:DP.fromWeb(Q)});if(typeof Q==="function"){let{value:Y,write:H,final:Z,destroy:q}=AP(Q);if(oH(Y))return JZ(H6,Y,{objectMode:!0,write:H,final:Z,destroy:q});let V=Y===null||Y===void 0?void 0:Y.then;if(typeof V==="function"){let W,G=YZ(V,Y,(B)=>{if(B!=null)throw new XZ("nully","body",B)},(B)=>{d6(W,B)});return W=new H6({objectMode:!0,readable:!1,write:H,final(B){Z(async()=>{try{await G,Z9.nextTick(B,null)}catch(F){Z9.nextTick(B,F)}})},destroy:q})}throw new XZ("Iterable, AsyncIterable or AsyncFunction",J,Y)}if(TP(Q))return X(Q.arrayBuffer());if(oH(Q))return JZ(H6,Q,{objectMode:!0,writable:!1});if(aH(Q===null||Q===void 0?void 0:Q.readable)&&tH(Q===null||Q===void 0?void 0:Q.writable))return H6.fromWeb(Q);if(typeof(Q===null||Q===void 0?void 0:Q.writable)==="object"||typeof(Q===null||Q===void 0?void 0:Q.readable)==="object"){let Y=Q!==null&&Q!==void 0&&Q.readable?rH(Q===null||Q===void 0?void 0:Q.readable)?Q===null||Q===void 0?void 0:Q.readable:X(Q.readable):void 0,H=Q!==null&&Q!==void 0&&Q.writable?sH(Q===null||Q===void 0?void 0:Q.writable)?Q===null||Q===void 0?void 0:Q.writable:X(Q.writable):void 0;return m6({readable:Y,writable:H})}let K=Q===null||Q===void 0?void 0:Q.then;if(typeof K==="function"){let Y;return YZ(K,Q,(H)=>{if(H!=null)Y.push(H);Y.push(null)},(H)=>{d6(Y,H)}),Y=new H6({objectMode:!0,writable:!1,read(){}})}throw new jP(J,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],Q)};function AP(X){let{promise:Q,resolve:J}=QZ(),K=new _P,Y=K.signal;return{value:X(async function*(){while(!0){let Z=Q;Q=null;let{chunk:q,done:V,cb:W}=await Z;if(Z9.nextTick(W),V)return;if(Y.aborted)throw new HZ(void 0,{cause:Y.reason});({promise:Q,resolve:J}=QZ()),yield q}}(),{signal:Y}),write(Z,q,V){let W=J;J=null,W({chunk:Z,done:!1,cb:V})},final(Z){let q=J;J=null,q({done:!0,cb:Z})},destroy(Z,q){K.abort(),q(Z)}}}function m6(X){let Q=X.readable&&typeof X.readable.read!=="function"?ZZ.wrap(X.readable):X.readable,J=X.writable,K=!!CP(Q),Y=!!IP(J),H,Z,q,V,W;function G(B){let F=V;if(V=null,F)F(B);else if(B)W.destroy(B)}if(W=new H6({readableObjectMode:!!(Q!==null&&Q!==void 0&&Q.readableObjectMode),writableObjectMode:!!(J!==null&&J!==void 0&&J.writableObjectMode),readable:K,writable:Y}),Y)eH(J,(B)=>{if(Y=!1,B)d6(Q,B);G(B)}),W._write=function(B,F,M){if(J.write(B,F))M();else H=M},W._final=function(B){J.end(),Z=B},J.on("drain",function(){if(H){let B=H;H=null,B()}}),J.on("finish",function(){if(Z){let B=Z;Z=null,B()}});if(K)eH(Q,(B)=>{if(K=!1,B)d6(Q,B);G(B)}),Q.on("readable",function(){if(q){let B=q;q=null,B()}}),Q.on("end",function(){W.push(null)}),W._read=function(){while(!0){let B=Q.read();if(B===null){q=W._read;return}if(!W.push(B))return}};return W._destroy=function(B,F){if(!B&&V!==null)B=new HZ;if(q=null,H=null,Z=null,V===null)F(B);else V=F,d6(J,B),d6(Q,B)},W}});var N1=N((hx,WZ)=>{var{ObjectDefineProperties:RP,ObjectGetOwnPropertyDescriptor:_1,ObjectKeys:EP,ObjectSetPrototypeOf:UZ}=L0();WZ.exports=V1;var U9=k8(),X1=E7();UZ(V1.prototype,U9.prototype);UZ(V1,U9);{let X=EP(X1.prototype);for(let Q=0;Q<X.length;Q++){let J=X[Q];if(!V1.prototype[J])V1.prototype[J]=X1.prototype[J]}}function V1(X){if(!(this instanceof V1))return new V1(X);if(U9.call(this,X),X1.call(this,X),X){if(this.allowHalfOpen=X.allowHalfOpen!==!1,X.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(X.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}RP(V1.prototype,{writable:{__proto__:null,..._1(X1.prototype,"writable")},writableHighWaterMark:{__proto__:null,..._1(X1.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,..._1(X1.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,..._1(X1.prototype,"writableBuffer")},writableLength:{__proto__:null,..._1(X1.prototype,"writableLength")},writableFinished:{__proto__:null,..._1(X1.prototype,"writableFinished")},writableCorked:{__proto__:null,..._1(X1.prototype,"writableCorked")},writableEnded:{__proto__:null,..._1(X1.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,..._1(X1.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(X){if(this._readableState&&this._writableState)this._readableState.destroyed=X,this._writableState.destroyed=X}}});var q9;function GZ(){if(q9===void 0)q9={};return q9}V1.fromWeb=function(X,Q){return GZ().newStreamDuplexFromReadableWritablePair(X,Q)};V1.toWeb=function(X){return GZ().newReadableWritablePairFromDuplex(X)};var V9;V1.from=function(X){if(!V9)V9=VZ();return V9(X,"body")}});var z9=N((fx,BZ)=>{var{ObjectSetPrototypeOf:zZ,Symbol:SP}=L0();BZ.exports=A1;var{ERR_METHOD_NOT_IMPLEMENTED:xP}=g0().codes,W9=N1(),{getHighWaterMark:vP}=x8();zZ(A1.prototype,W9.prototype);zZ(A1,W9);var u8=SP("kCallback");function A1(X){if(!(this instanceof A1))return new A1(X);let Q=X?vP(this,X,"readableHighWaterMark",!0):null;if(Q===0)X={...X,highWaterMark:null,readableHighWaterMark:Q,writableHighWaterMark:X.writableHighWaterMark||0};if(W9.call(this,X),this._readableState.sync=!1,this[u8]=null,X){if(typeof X.transform==="function")this._transform=X.transform;if(typeof X.flush==="function")this._flush=X.flush}this.on("prefinish",yP)}function G9(X){if(typeof this._flush==="function"&&!this.destroyed)this._flush((Q,J)=>{if(Q){if(X)X(Q);else this.destroy(Q);return}if(J!=null)this.push(J);if(this.push(null),X)X()});else if(this.push(null),X)X()}function yP(){if(this._final!==G9)G9.call(this)}A1.prototype._final=G9;A1.prototype._transform=function(X,Q,J){throw new xP("_transform()")};A1.prototype._write=function(X,Q,J){let K=this._readableState,Y=this._writableState,H=K.length;this._transform(X,Q,(Z,q)=>{if(Z){J(Z);return}if(q!=null)this.push(q);if(Y.ended||H===K.length||K.length<K.highWaterMark)J();else this[u8]=J})};A1.prototype._read=function(){if(this[u8]){let X=this[u8];this[u8]=null,X()}}});var $9=N((ux,MZ)=>{var{ObjectSetPrototypeOf:$Z}=L0();MZ.exports=c6;var B9=z9();$Z(c6.prototype,B9.prototype);$Z(c6,B9);function c6(X){if(!(this instanceof c6))return new c6(X);B9.call(this,X)}c6.prototype._transform=function(X,Q,J){J(null,X)}});var y7=N((bx,IZ)=>{var b8=g1(),{ArrayIsArray:kP,Promise:gP,SymbolAsyncIterator:hP,SymbolDispose:fP}=L0(),v7=T1(),{once:uP}=m0(),bP=Q6(),FZ=N1(),{aggregateTwoErrors:mP,codes:{ERR_INVALID_ARG_TYPE:j9,ERR_INVALID_RETURN_VALUE:M9,ERR_MISSING_ARGS:dP,ERR_STREAM_DESTROYED:cP,ERR_STREAM_PREMATURE_CLOSE:pP},AbortError:lP}=g0(),{validateFunction:nP,validateAbortSignal:iP}=y6(),{isIterable:Z6,isReadable:F9,isReadableNodeStream:x7,isNodeStream:NZ,isTransformStream:p6,isWebStream:oP,isReadableStream:N9,isReadableFinished:rP}=$1(),sP=globalThis.AbortController||f("abort-controller").AbortController,L9,C9,I9;function LZ(X,Q,J){let K=!1;X.on("close",()=>{K=!0});let Y=v7(X,{readable:Q,writable:J},(H)=>{K=!H});return{destroy:(H)=>{if(K)return;K=!0,bP.destroyer(X,H||new cP("pipe"))},cleanup:Y}}function aP(X){return nP(X[X.length-1],"streams[stream.length - 1]"),X.pop()}function O9(X){if(Z6(X))return X;else if(x7(X))return tP(X);throw new j9("val",["Readable","Iterable","AsyncIterable"],X)}async function*tP(X){if(!C9)C9=k8();yield*C9.prototype[hP].call(X)}async function S7(X,Q,J,{end:K}){let Y,H=null,Z=(W)=>{if(W)Y=W;if(H){let G=H;H=null,G()}},q=()=>new gP((W,G)=>{if(Y)G(Y);else H=()=>{if(Y)G(Y);else W()}});Q.on("drain",Z);let V=v7(Q,{readable:!1},Z);try{if(Q.writableNeedDrain)await q();for await(let W of X)if(!Q.write(W))await q();if(K)Q.end(),await q();J()}catch(W){J(Y!==W?mP(Y,W):W)}finally{V(),Q.off("drain",Z)}}async function P9(X,Q,J,{end:K}){if(p6(Q))Q=Q.writable;let Y=Q.getWriter();try{for await(let H of X)await Y.ready,Y.write(H).catch(()=>{});if(await Y.ready,K)await Y.close();J()}catch(H){try{await Y.abort(H),J(H)}catch(Z){J(Z)}}}function eP(...X){return CZ(X,uP(aP(X)))}function CZ(X,Q,J){if(X.length===1&&kP(X[0]))X=X[0];if(X.length<2)throw new dP("streams");let K=new sP,Y=K.signal,H=J===null||J===void 0?void 0:J.signal,Z=[];iP(H,"options.signal");function q(){I(new lP)}I9=I9||m0().addAbortListener;let V;if(H)V=I9(H,q);let W,G,B=[],F=0;function M(v){I(v,--F===0)}function I(v,g){var n;if(v&&(!W||W.code==="ERR_STREAM_PREMATURE_CLOSE"))W=v;if(!W&&!g)return;while(B.length)B.shift()(W);if((n=V)===null||n===void 0||n[fP](),K.abort(),g){if(!W)Z.forEach((k)=>k());b8.nextTick(Q,W,G)}}let P;for(let v=0;v<X.length;v++){let g=X[v],n=v<X.length-1,k=v>0,D=n||(J===null||J===void 0?void 0:J.end)!==!1,m=v===X.length-1;if(NZ(g)){let T=function(S){if(S&&S.name!=="AbortError"&&S.code!=="ERR_STREAM_PREMATURE_CLOSE")M(S)};var x=T;if(D){let{destroy:S,cleanup:y}=LZ(g,n,k);if(B.push(S),F9(g)&&m)Z.push(y)}if(g.on("error",T),F9(g)&&m)Z.push(()=>{g.removeListener("error",T)})}if(v===0)if(typeof g==="function"){if(P=g({signal:Y}),!Z6(P))throw new M9("Iterable, AsyncIterable or Stream","source",P)}else if(Z6(g)||x7(g)||p6(g))P=g;else P=FZ.from(g);else if(typeof g==="function"){if(p6(P)){var O;P=O9((O=P)===null||O===void 0?void 0:O.readable)}else P=O9(P);if(P=g(P,{signal:Y}),n){if(!Z6(P,!0))throw new M9("AsyncIterable",`transform[${v-1}]`,P)}else{var L;if(!L9)L9=$9();let T=new L9({objectMode:!0}),S=(L=P)===null||L===void 0?void 0:L.then;if(typeof S==="function")F++,S.call(P,(t)=>{if(G=t,t!=null)T.write(t);if(D)T.end();b8.nextTick(M)},(t)=>{T.destroy(t),b8.nextTick(M,t)});else if(Z6(P,!0))F++,S7(P,T,M,{end:D});else if(N9(P)||p6(P)){let t=P.readable||P;F++,S7(t,T,M,{end:D})}else throw new M9("AsyncIterable or Promise","destination",P);P=T;let{destroy:y,cleanup:l}=LZ(P,!1,!0);if(B.push(y),m)Z.push(l)}}else if(NZ(g)){if(x7(P)){F+=2;let T=Xj(P,g,M,{end:D});if(F9(g)&&m)Z.push(T)}else if(p6(P)||N9(P)){let T=P.readable||P;F++,S7(T,g,M,{end:D})}else if(Z6(P))F++,S7(P,g,M,{end:D});else throw new j9("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);P=g}else if(oP(g)){if(x7(P))F++,P9(O9(P),g,M,{end:D});else if(N9(P)||Z6(P))F++,P9(P,g,M,{end:D});else if(p6(P))F++,P9(P.readable,g,M,{end:D});else throw new j9("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],P);P=g}else P=FZ.from(g)}if(Y!==null&&Y!==void 0&&Y.aborted||H!==null&&H!==void 0&&H.aborted)b8.nextTick(q);return P}function Xj(X,Q,J,{end:K}){let Y=!1;if(Q.on("close",()=>{if(!Y)J(new pP)}),X.pipe(Q,{end:!1}),K){let Z=function(){Y=!0,Q.end()};var H=Z;if(rP(X))b8.nextTick(Z);else X.once("end",Z)}else J();return v7(X,{readable:!0,writable:!1},(Z)=>{let q=X._readableState;if(Z&&Z.code==="ERR_STREAM_PREMATURE_CLOSE"&&q&&q.ended&&!q.errored&&!q.errorEmitted)X.once("end",J).once("error",J);else J(Z)}),v7(Q,{readable:!1,writable:!0},J)}IZ.exports={pipelineImpl:CZ,pipeline:eP}});var D9=N((mx,TZ)=>{var{pipeline:Qj}=y7(),k7=N1(),{destroyer:Jj}=Q6(),{isNodeStream:g7,isReadable:OZ,isWritable:PZ,isWebStream:w9,isTransformStream:q6,isWritableStream:jZ,isReadableStream:wZ}=$1(),{AbortError:Kj,codes:{ERR_INVALID_ARG_VALUE:DZ,ERR_MISSING_ARGS:Yj}}=g0(),Hj=T1();TZ.exports=function(...Q){if(Q.length===0)throw new Yj("streams");if(Q.length===1)return k7.from(Q[0]);let J=[...Q];if(typeof Q[0]==="function")Q[0]=k7.from(Q[0]);if(typeof Q[Q.length-1]==="function"){let M=Q.length-1;Q[M]=k7.from(Q[M])}for(let M=0;M<Q.length;++M){if(!g7(Q[M])&&!w9(Q[M]))continue;if(M<Q.length-1&&!(OZ(Q[M])||wZ(Q[M])||q6(Q[M])))throw new DZ(`streams[${M}]`,J[M],"must be readable");if(M>0&&!(PZ(Q[M])||jZ(Q[M])||q6(Q[M])))throw new DZ(`streams[${M}]`,J[M],"must be writable")}let K,Y,H,Z,q;function V(M){let I=Z;if(Z=null,I)I(M);else if(M)q.destroy(M);else if(!F&&!B)q.destroy()}let W=Q[0],G=Qj(Q,V),B=!!(PZ(W)||jZ(W)||q6(W)),F=!!(OZ(G)||wZ(G)||q6(G));if(q=new k7({writableObjectMode:!!(W!==null&&W!==void 0&&W.writableObjectMode),readableObjectMode:!!(G!==null&&G!==void 0&&G.readableObjectMode),writable:B,readable:F}),B){if(g7(W))q._write=function(I,P,O){if(W.write(I,P))O();else K=O},q._final=function(I){W.end(),Y=I},W.on("drain",function(){if(K){let I=K;K=null,I()}});else if(w9(W)){let P=(q6(W)?W.writable:W).getWriter();q._write=async function(O,L,x){try{await P.ready,P.write(O).catch(()=>{}),x()}catch(v){x(v)}},q._final=async function(O){try{await P.ready,P.close().catch(()=>{}),Y=O}catch(L){O(L)}}}let M=q6(G)?G.readable:G;Hj(M,()=>{if(Y){let I=Y;Y=null,I()}})}if(F){if(g7(G))G.on("readable",function(){if(H){let M=H;H=null,M()}}),G.on("end",function(){q.push(null)}),q._read=function(){while(!0){let M=G.read();if(M===null){H=q._read;return}if(!q.push(M))return}};else if(w9(G)){let I=(q6(G)?G.readable:G).getReader();q._read=async function(){while(!0)try{let{value:P,done:O}=await I.read();if(!q.push(P))return;if(O){q.push(null);return}}catch{return}}}}return q._destroy=function(M,I){if(!M&&Z!==null)M=new Kj;if(H=null,K=null,Y=null,Z===null)I(M);else if(Z=I,g7(G))Jj(G,M)},q}});var hZ=N((vj,_9)=>{var Zj=globalThis.AbortController||f("abort-controller").AbortController,{codes:{ERR_INVALID_ARG_VALUE:qj,ERR_INVALID_ARG_TYPE:m8,ERR_MISSING_ARGS:Vj,ERR_OUT_OF_RANGE:Uj},AbortError:L1}=g0(),{validateAbortSignal:V6,validateInteger:_Z,validateObject:U6}=y6(),Gj=L0().Symbol("kWeak"),Wj=L0().Symbol("kResistStopPropagation"),{finished:zj}=T1(),Bj=D9(),{addAbortSignalNoValidate:$j}=S8(),{isWritable:Mj,isNodeStream:Fj}=$1(),{deprecate:Nj}=m0(),{ArrayPrototypePush:Lj,Boolean:Cj,MathFloor:AZ,Number:Ij,NumberIsNaN:Oj,Promise:RZ,PromiseReject:EZ,PromiseResolve:Pj,PromisePrototypeThen:SZ,Symbol:vZ}=L0(),h7=vZ("kEmpty"),xZ=vZ("kEof");function jj(X,Q){if(Q!=null)U6(Q,"options");if((Q===null||Q===void 0?void 0:Q.signal)!=null)V6(Q.signal,"options.signal");if(Fj(X)&&!Mj(X))throw new qj("stream",X,"must be writable");let J=Bj(this,X);if(Q!==null&&Q!==void 0&&Q.signal)$j(Q.signal,J);return J}function f7(X,Q){if(typeof X!=="function")throw new m8("fn",["Function","AsyncFunction"],X);if(Q!=null)U6(Q,"options");if((Q===null||Q===void 0?void 0:Q.signal)!=null)V6(Q.signal,"options.signal");let J=1;if((Q===null||Q===void 0?void 0:Q.concurrency)!=null)J=AZ(Q.concurrency);let K=J-1;if((Q===null||Q===void 0?void 0:Q.highWaterMark)!=null)K=AZ(Q.highWaterMark);return _Z(J,"options.concurrency",1),_Z(K,"options.highWaterMark",0),K+=J,async function*(){let H=m0().AbortSignalAny([Q===null||Q===void 0?void 0:Q.signal].filter(Cj)),Z=this,q=[],V={signal:H},W,G,B=!1,F=0;function M(){B=!0,I()}function I(){F-=1,P()}function P(){if(G&&!B&&F<J&&q.length<K)G(),G=null}async function O(){try{for await(let L of Z){if(B)return;if(H.aborted)throw new L1;try{if(L=X(L,V),L===h7)continue;L=Pj(L)}catch(x){L=EZ(x)}if(F+=1,SZ(L,I,M),q.push(L),W)W(),W=null;if(!B&&(q.length>=K||F>=J))await new RZ((x)=>{G=x})}q.push(xZ)}catch(L){let x=EZ(L);SZ(x,I,M),q.push(x)}finally{if(B=!0,W)W(),W=null}}O();try{while(!0){while(q.length>0){let L=await q[0];if(L===xZ)return;if(H.aborted)throw new L1;if(L!==h7)yield L;q.shift(),P()}await new RZ((L)=>{W=L})}}finally{if(B=!0,G)G(),G=null}}.call(this)}function wj(X=void 0){if(X!=null)U6(X,"options");if((X===null||X===void 0?void 0:X.signal)!=null)V6(X.signal,"options.signal");return async function*(){let J=0;for await(let Y of this){var K;if(X!==null&&X!==void 0&&(K=X.signal)!==null&&K!==void 0&&K.aborted)throw new L1({cause:X.signal.reason});yield[J++,Y]}}.call(this)}async function yZ(X,Q=void 0){for await(let J of T9.call(this,X,Q))return!0;return!1}async function Dj(X,Q=void 0){if(typeof X!=="function")throw new m8("fn",["Function","AsyncFunction"],X);return!await yZ.call(this,async(...J)=>{return!await X(...J)},Q)}async function Tj(X,Q){for await(let J of T9.call(this,X,Q))return J;return}async function _j(X,Q){if(typeof X!=="function")throw new m8("fn",["Function","AsyncFunction"],X);async function J(K,Y){return await X(K,Y),h7}for await(let K of f7.call(this,J,Q));}function T9(X,Q){if(typeof X!=="function")throw new m8("fn",["Function","AsyncFunction"],X);async function J(K,Y){if(await X(K,Y))return K;return h7}return f7.call(this,J,Q)}class kZ extends Vj{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function Aj(X,Q,J){var K;if(typeof X!=="function")throw new m8("reducer",["Function","AsyncFunction"],X);if(J!=null)U6(J,"options");if((J===null||J===void 0?void 0:J.signal)!=null)V6(J.signal,"options.signal");let Y=arguments.length>1;if(J!==null&&J!==void 0&&(K=J.signal)!==null&&K!==void 0&&K.aborted){let W=new L1(void 0,{cause:J.signal.reason});throw this.once("error",()=>{}),await zj(this.destroy(W)),W}let H=new Zj,Z=H.signal;if(J!==null&&J!==void 0&&J.signal){let W={once:!0,[Gj]:this,[Wj]:!0};J.signal.addEventListener("abort",()=>H.abort(),W)}let q=!1;try{for await(let W of this){var V;if(q=!0,J!==null&&J!==void 0&&(V=J.signal)!==null&&V!==void 0&&V.aborted)throw new L1;if(!Y)Q=W,Y=!0;else Q=await X(Q,W,{signal:Z})}if(!q&&!Y)throw new kZ}finally{H.abort()}return Q}async function Rj(X){if(X!=null)U6(X,"options");if((X===null||X===void 0?void 0:X.signal)!=null)V6(X.signal,"options.signal");let Q=[];for await(let K of this){var J;if(X!==null&&X!==void 0&&(J=X.signal)!==null&&J!==void 0&&J.aborted)throw new L1(void 0,{cause:X.signal.reason});Lj(Q,K)}return Q}function Ej(X,Q){let J=f7.call(this,X,Q);return async function*(){for await(let Y of J)yield*Y}.call(this)}function gZ(X){if(X=Ij(X),Oj(X))return 0;if(X<0)throw new Uj("number",">= 0",X);return X}function Sj(X,Q=void 0){if(Q!=null)U6(Q,"options");if((Q===null||Q===void 0?void 0:Q.signal)!=null)V6(Q.signal,"options.signal");return X=gZ(X),async function*(){var K;if(Q!==null&&Q!==void 0&&(K=Q.signal)!==null&&K!==void 0&&K.aborted)throw new L1;for await(let H of this){var Y;if(Q!==null&&Q!==void 0&&(Y=Q.signal)!==null&&Y!==void 0&&Y.aborted)throw new L1;if(X--<=0)yield H}}.call(this)}function xj(X,Q=void 0){if(Q!=null)U6(Q,"options");if((Q===null||Q===void 0?void 0:Q.signal)!=null)V6(Q.signal,"options.signal");return X=gZ(X),async function*(){var K;if(Q!==null&&Q!==void 0&&(K=Q.signal)!==null&&K!==void 0&&K.aborted)throw new L1;for await(let H of this){var Y;if(Q!==null&&Q!==void 0&&(Y=Q.signal)!==null&&Y!==void 0&&Y.aborted)throw new L1;if(X-- >0)yield H;if(X<=0)return}}.call(this)}vj.streamReturningOperators={asIndexedPairs:Nj(wj,"readable.asIndexedPairs will be removed in a future version."),drop:Sj,filter:T9,flatMap:Ej,map:f7,take:xj,compose:jj};vj.promiseReturningOperators={every:Dj,forEach:_j,reduce:Aj,toArray:Rj,some:yZ,find:Tj}});var A9=N((dx,fZ)=>{var{ArrayPrototypePop:gj,Promise:hj}=L0(),{isIterable:fj,isNodeStream:uj,isWebStream:bj}=$1(),{pipelineImpl:mj}=y7(),{finished:dj}=T1();R9();function cj(...X){return new hj((Q,J)=>{let K,Y,H=X[X.length-1];if(H&&typeof H==="object"&&!uj(H)&&!fj(H)&&!bj(H)){let Z=gj(X);K=Z.signal,Y=Z.end}mj(X,(Z,q)=>{if(Z)J(Z);else Q(q)},{signal:K,end:Y})})}fZ.exports={finished:dj,pipeline:cj}});var R9=N((cx,iZ)=>{var{Buffer:pj}=f("buffer"),{ObjectDefineProperty:R1,ObjectKeys:mZ,ReflectApply:dZ}=L0(),{promisify:{custom:cZ}}=m0(),{streamReturningOperators:uZ,promiseReturningOperators:bZ}=hZ(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:pZ}}=g0(),lj=D9(),{setDefaultHighWaterMark:nj,getDefaultHighWaterMark:ij}=x8(),{pipeline:lZ}=y7(),{destroyer:oj}=Q6(),nZ=T1(),E9=A9(),d8=$1(),F0=iZ.exports=N7().Stream;F0.isDestroyed=d8.isDestroyed;F0.isDisturbed=d8.isDisturbed;F0.isErrored=d8.isErrored;F0.isReadable=d8.isReadable;F0.isWritable=d8.isWritable;F0.Readable=k8();for(let X of mZ(uZ)){let J=function(...K){if(new.target)throw pZ();return F0.Readable.from(dZ(Q,this,K))},Q=uZ[X];R1(J,"name",{__proto__:null,value:Q.name}),R1(J,"length",{__proto__:null,value:Q.length}),R1(F0.Readable.prototype,X,{__proto__:null,value:J,enumerable:!1,configurable:!0,writable:!0})}for(let X of mZ(bZ)){let J=function(...K){if(new.target)throw pZ();return dZ(Q,this,K)},Q=bZ[X];R1(J,"name",{__proto__:null,value:Q.name}),R1(J,"length",{__proto__:null,value:Q.length}),R1(F0.Readable.prototype,X,{__proto__:null,value:J,enumerable:!1,configurable:!0,writable:!0})}F0.Writable=E7();F0.Duplex=N1();F0.Transform=z9();F0.PassThrough=$9();F0.pipeline=lZ;var{addAbortSignal:rj}=S8();F0.addAbortSignal=rj;F0.finished=nZ;F0.destroy=oj;F0.compose=lj;F0.setDefaultHighWaterMark=nj;F0.getDefaultHighWaterMark=ij;R1(F0,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return E9}});R1(lZ,cZ,{__proto__:null,enumerable:!0,get(){return E9.pipeline}});R1(nZ,cZ,{__proto__:null,enumerable:!0,get(){return E9.finished}});F0.Stream=F0;F0._isUint8Array=function(Q){return Q instanceof Uint8Array};F0._uint8ArrayToBuffer=function(Q){return pj.from(Q.buffer,Q.byteOffset,Q.byteLength)}});var G6=N((px,s)=>{var T0=f("stream");if(T0&&process.env.READABLE_STREAM==="disable"){let X=T0.promises;s.exports._uint8ArrayToBuffer=T0._uint8ArrayToBuffer,s.exports._isUint8Array=T0._isUint8Array,s.exports.isDisturbed=T0.isDisturbed,s.exports.isErrored=T0.isErrored,s.exports.isReadable=T0.isReadable,s.exports.Readable=T0.Readable,s.exports.Writable=T0.Writable,s.exports.Duplex=T0.Duplex,s.exports.Transform=T0.Transform,s.exports.PassThrough=T0.PassThrough,s.exports.addAbortSignal=T0.addAbortSignal,s.exports.finished=T0.finished,s.exports.destroy=T0.destroy,s.exports.pipeline=T0.pipeline,s.exports.compose=T0.compose,Object.defineProperty(T0,"promises",{configurable:!0,enumerable:!0,get(){return X}}),s.exports.Stream=T0.Stream}else{let X=R9(),Q=A9(),J=X.Readable.destroy;s.exports=X.Readable,s.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,s.exports._isUint8Array=X._isUint8Array,s.exports.isDisturbed=X.isDisturbed,s.exports.isErrored=X.isErrored,s.exports.isReadable=X.isReadable,s.exports.Readable=X.Readable,s.exports.Writable=X.Writable,s.exports.Duplex=X.Duplex,s.exports.Transform=X.Transform,s.exports.PassThrough=X.PassThrough,s.exports.addAbortSignal=X.addAbortSignal,s.exports.finished=X.finished,s.exports.destroy=X.destroy,s.exports.destroy=J,s.exports.pipeline=X.pipeline,s.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return Q}}),s.exports.Stream=X.Stream}s.exports.default=s.exports});var rZ=N((qv,oZ)=>{function sj(X,Q){var J=-1,K=Q.length,Y=X.length;while(++J<K)X[Y+J]=Q[J];return X}oZ.exports=sj});var eZ=N((Vv,tZ)=>{var sZ=K7(),aj=L5(),tj=C5(),aZ=sZ?sZ.isConcatSpreadable:void 0;function ej(X){return tj(X)||aj(X)||!!(aZ&&X&&X[aZ])}tZ.exports=ej});var u7=N((Uv,Qq)=>{var Xw=rZ(),Qw=eZ();function Xq(X,Q,J,K,Y){var H=-1,Z=X.length;J||(J=Qw),Y||(Y=[]);while(++H<Z){var q=X[H];if(Q>0&&J(q))if(Q>1)Xq(q,Q-1,J,K,Y);else Xw(Y,q);else if(!K)Y[Y.length]=q}return Y}Qq.exports=Xq});var Kq=N((Gv,Jq)=>{var Jw=u7();function Kw(X){var Q=X==null?0:X.length;return Q?Jw(X,1):[]}Jq.exports=Kw});var c8=N((Wv,Yq)=>{var Yw=R8(),Hw=Yw(Object,"create");Yq.exports=Hw});var qq=N((zv,Zq)=>{var Hq=c8();function Zw(){this.__data__=Hq?Hq(null):{},this.size=0}Zq.exports=Zw});var Uq=N((Bv,Vq)=>{function qw(X){var Q=this.has(X)&&delete this.__data__[X];return this.size-=Q?1:0,Q}Vq.exports=qw});var Wq=N(($v,Gq)=>{var Vw=c8(),Uw="__lodash_hash_undefined__",Gw=Object.prototype,Ww=Gw.hasOwnProperty;function zw(X){var Q=this.__data__;if(Vw){var J=Q[X];return J===Uw?void 0:J}return Ww.call(Q,X)?Q[X]:void 0}Gq.exports=zw});var Bq=N((Mv,zq)=>{var Bw=c8(),$w=Object.prototype,Mw=$w.hasOwnProperty;function Fw(X){var Q=this.__data__;return Bw?Q[X]!==void 0:Mw.call(Q,X)}zq.exports=Fw});var Mq=N((Fv,$q)=>{var Nw=c8(),Lw="__lodash_hash_undefined__";function Cw(X,Q){var J=this.__data__;return this.size+=this.has(X)?0:1,J[X]=Nw&&Q===void 0?Lw:Q,this}$q.exports=Cw});var Nq=N((Nv,Fq)=>{var Iw=qq(),Ow=Uq(),Pw=Wq(),jw=Bq(),ww=Mq();function l6(X){var Q=-1,J=X==null?0:X.length;this.clear();while(++Q<J){var K=X[Q];this.set(K[0],K[1])}}l6.prototype.clear=Iw;l6.prototype.delete=Ow;l6.prototype.get=Pw;l6.prototype.has=jw;l6.prototype.set=ww;Fq.exports=l6});var Cq=N((Lv,Lq)=>{function Dw(){this.__data__=[],this.size=0}Lq.exports=Dw});var p8=N((Cv,Iq)=>{var Tw=H7();function _w(X,Q){var J=X.length;while(J--)if(Tw(X[J][0],Q))return J;return-1}Iq.exports=_w});var Pq=N((Iv,Oq)=>{var Aw=p8(),Rw=Array.prototype,Ew=Rw.splice;function Sw(X){var Q=this.__data__,J=Aw(Q,X);if(J<0)return!1;var K=Q.length-1;if(J==K)Q.pop();else Ew.call(Q,J,1);return--this.size,!0}Oq.exports=Sw});var wq=N((Ov,jq)=>{var xw=p8();function vw(X){var Q=this.__data__,J=xw(Q,X);return J<0?void 0:Q[J][1]}jq.exports=vw});var Tq=N((Pv,Dq)=>{var yw=p8();function kw(X){return yw(this.__data__,X)>-1}Dq.exports=kw});var Aq=N((jv,_q)=>{var gw=p8();function hw(X,Q){var J=this.__data__,K=gw(J,X);if(K<0)++this.size,J.push([X,Q]);else J[K][1]=Q;return this}_q.exports=hw});var Eq=N((wv,Rq)=>{var fw=Cq(),uw=Pq(),bw=wq(),mw=Tq(),dw=Aq();function n6(X){var Q=-1,J=X==null?0:X.length;this.clear();while(++Q<J){var K=X[Q];this.set(K[0],K[1])}}n6.prototype.clear=fw;n6.prototype.delete=uw;n6.prototype.get=bw;n6.prototype.has=mw;n6.prototype.set=dw;Rq.exports=n6});var xq=N((Dv,Sq)=>{var cw=R8(),pw=R6(),lw=cw(pw,"Map");Sq.exports=lw});var kq=N((Tv,yq)=>{var vq=Nq(),nw=Eq(),iw=xq();function ow(){this.size=0,this.__data__={hash:new vq,map:new(iw||nw),string:new vq}}yq.exports=ow});var hq=N((_v,gq)=>{function rw(X){var Q=typeof X;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?X!=="__proto__":X===null}gq.exports=rw});var l8=N((Av,fq)=>{var sw=hq();function aw(X,Q){var J=X.__data__;return sw(Q)?J[typeof Q=="string"?"string":"hash"]:J.map}fq.exports=aw});var bq=N((Rv,uq)=>{var tw=l8();function ew(X){var Q=tw(this,X).delete(X);return this.size-=Q?1:0,Q}uq.exports=ew});var dq=N((Ev,mq)=>{var XD=l8();function QD(X){return XD(this,X).get(X)}mq.exports=QD});var pq=N((Sv,cq)=>{var JD=l8();function KD(X){return JD(this,X).has(X)}cq.exports=KD});var nq=N((xv,lq)=>{var YD=l8();function HD(X,Q){var J=YD(this,X),K=J.size;return J.set(X,Q),this.size+=J.size==K?0:1,this}lq.exports=HD});var oq=N((vv,iq)=>{var ZD=kq(),qD=bq(),VD=dq(),UD=pq(),GD=nq();function i6(X){var Q=-1,J=X==null?0:X.length;this.clear();while(++Q<J){var K=X[Q];this.set(K[0],K[1])}}i6.prototype.clear=ZD;i6.prototype.delete=qD;i6.prototype.get=VD;i6.prototype.has=UD;i6.prototype.set=GD;iq.exports=i6});var sq=N((yv,rq)=>{var WD="__lodash_hash_undefined__";function zD(X){return this.__data__.set(X,WD),this}rq.exports=zD});var tq=N((kv,aq)=>{function BD(X){return this.__data__.has(X)}aq.exports=BD});var S9=N((gv,eq)=>{var $D=oq(),MD=sq(),FD=tq();function b7(X){var Q=-1,J=X==null?0:X.length;this.__data__=new $D;while(++Q<J)this.add(X[Q])}b7.prototype.add=b7.prototype.push=MD;b7.prototype.has=FD;eq.exports=b7});var QV=N((hv,XV)=>{function ND(X,Q,J,K){var Y=X.length,H=J+(K?1:-1);while(K?H--:++H<Y)if(Q(X[H],H,X))return H;return-1}XV.exports=ND});var KV=N((fv,JV)=>{function LD(X){return X!==X}JV.exports=LD});var HV=N((uv,YV)=>{function CD(X,Q,J){var K=J-1,Y=X.length;while(++K<Y)if(X[K]===Q)return K;return-1}YV.exports=CD});var qV=N((bv,ZV)=>{var ID=QV(),OD=KV(),PD=HV();function jD(X,Q,J){return Q===Q?PD(X,Q,J):ID(X,OD,J)}ZV.exports=jD});var x9=N((mv,VV)=>{var wD=qV();function DD(X,Q){var J=X==null?0:X.length;return!!J&&wD(X,Q,0)>-1}VV.exports=DD});var v9=N((dv,UV)=>{function TD(X,Q,J){var K=-1,Y=X==null?0:X.length;while(++K<Y)if(J(Q,X[K]))return!0;return!1}UV.exports=TD});var WV=N((cv,GV)=>{function _D(X,Q){var J=-1,K=X==null?0:X.length,Y=Array(K);while(++J<K)Y[J]=Q(X[J],J,X);return Y}GV.exports=_D});var y9=N((pv,zV)=>{function AD(X,Q){return X.has(Q)}zV.exports=AD});var $V=N((lv,BV)=>{var RD=S9(),ED=x9(),SD=v9(),xD=WV(),vD=I5(),yD=y9(),kD=200;function gD(X,Q,J,K){var Y=-1,H=ED,Z=!0,q=X.length,V=[],W=Q.length;if(!q)return V;if(J)Q=xD(Q,vD(J));if(K)H=SD,Z=!1;else if(Q.length>=kD)H=yD,Z=!1,Q=new RD(Q);X:while(++Y<q){var G=X[Y],B=J==null?G:J(G);if(G=K||G!==0?G:0,Z&&B===B){var F=W;while(F--)if(Q[F]===B)continue X;V.push(G)}else if(!H(Q,B,K))V.push(G)}return V}BV.exports=gD});var k9=N((nv,MV)=>{var hD=Z7(),fD=E6();function uD(X){return fD(X)&&hD(X)}MV.exports=uD});var LV=N((iv,NV)=>{var bD=$V(),mD=u7(),dD=Y7(),FV=k9(),cD=dD(function(X,Q){return FV(X)?bD(X,mD(Q,1,FV,!0)):[]});NV.exports=cD});var IV=N((ov,CV)=>{var pD=R8(),lD=R6(),nD=pD(lD,"Set");CV.exports=nD});var PV=N((rv,OV)=>{function iD(){}OV.exports=iD});var g9=N((sv,jV)=>{function oD(X){var Q=-1,J=Array(X.size);return X.forEach(function(K){J[++Q]=K}),J}jV.exports=oD});var DV=N((av,wV)=>{var h9=IV(),rD=PV(),sD=g9(),aD=1/0,tD=!(h9&&1/sD(new h9([,-0]))[1]==aD)?rD:function(X){return new h9(X)};wV.exports=tD});var _V=N((tv,TV)=>{var eD=S9(),XT=x9(),QT=v9(),JT=y9(),KT=DV(),YT=g9(),HT=200;function ZT(X,Q,J){var K=-1,Y=XT,H=X.length,Z=!0,q=[],V=q;if(J)Z=!1,Y=QT;else if(H>=HT){var W=Q?null:KT(X);if(W)return YT(W);Z=!1,Y=JT,V=new eD}else V=Q?[]:q;X:while(++K<H){var G=X[K],B=Q?Q(G):G;if(G=J||G!==0?G:0,Z&&B===B){var F=V.length;while(F--)if(V[F]===B)continue X;if(Q)V.push(B);q.push(G)}else if(!Y(V,B,J)){if(V!==q)V.push(B);q.push(G)}}return q}TV.exports=ZT});var RV=N((ev,AV)=>{var qT=u7(),VT=Y7(),UT=_V(),GT=k9(),WT=VT(function(X){return UT(qT(X,1,GT,!0))});AV.exports=WT});var SV=N((Xy,EV)=>{function zT(X,Q){return function(J){return X(Q(J))}}EV.exports=zT});var vV=N((Qy,xV)=>{var BT=SV(),$T=BT(Object.getPrototypeOf,Object);xV.exports=$T});var gV=N((Jy,kV)=>{var MT=_8(),FT=vV(),NT=E6(),LT="[object Object]",CT=Function.prototype,IT=Object.prototype,yV=CT.toString,OT=IT.hasOwnProperty,PT=yV.call(Object);function jT(X){if(!NT(X)||MT(X)!=LT)return!1;var Q=FT(X);if(Q===null)return!0;var J=OT.call(Q,"constructor")&&Q.constructor;return typeof J=="function"&&J instanceof J&&yV.call(J)==PT}kV.exports=jT});var pV=N((Ky,cV)=>{var hV=R4();cV.exports=TT;var fV="\x00SLASH"+Math.random()+"\x00",uV="\x00OPEN"+Math.random()+"\x00",u9="\x00CLOSE"+Math.random()+"\x00",bV="\x00COMMA"+Math.random()+"\x00",mV="\x00PERIOD"+Math.random()+"\x00";function f9(X){return parseInt(X,10)==X?parseInt(X,10):X.charCodeAt(0)}function wT(X){return X.split("\\\\").join(fV).split("\\{").join(uV).split("\\}").join(u9).split("\\,").join(bV).split("\\.").join(mV)}function DT(X){return X.split(fV).join("\\").split(uV).join("{").split(u9).join("}").split(bV).join(",").split(mV).join(".")}function dV(X){if(!X)return[""];var Q=[],J=hV("{","}",X);if(!J)return X.split(",");var{pre:K,body:Y,post:H}=J,Z=K.split(",");Z[Z.length-1]+="{"+Y+"}";var q=dV(H);if(H.length)Z[Z.length-1]+=q.shift(),Z.push.apply(Z,q);return Q.push.apply(Q,Z),Q}function TT(X,Q){if(!X)return[];Q=Q||{};var J=Q.max==null?1/0:Q.max;if(X.substr(0,2)==="{}")X="\\{\\}"+X.substr(2);return n8(wT(X),J,!0).map(DT)}function _T(X){return"{"+X+"}"}function AT(X){return/^-?0\d/.test(X)}function RT(X,Q){return X<=Q}function ET(X,Q){return X>=Q}function n8(X,Q,J){var K=[],Y=hV("{","}",X);if(!Y)return[X];var H=Y.pre,Z=Y.post.length?n8(Y.post,Q,!1):[""];if(/\$$/.test(Y.pre))for(var q=0;q<Z.length&&q<Q;q++){var V=H+"{"+Y.body+"}"+Z[q];K.push(V)}else{var W=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(Y.body),G=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(Y.body),B=W||G,F=Y.body.indexOf(",")>=0;if(!B&&!F){if(Y.post.match(/,(?!,).*\}/))return X=Y.pre+"{"+Y.body+u9+Y.post,n8(X,Q,!0);return[X]}var M;if(B)M=Y.body.split(/\.\./);else if(M=dV(Y.body),M.length===1){if(M=n8(M[0],Q,!1).map(_T),M.length===1)return Z.map(function(y){return Y.pre+M[0]+y})}var I;if(B){var P=f9(M[0]),O=f9(M[1]),L=Math.max(M[0].length,M[1].length),x=M.length==3?Math.max(Math.abs(f9(M[2])),1):1,v=RT,g=O<P;if(g)x*=-1,v=ET;var n=M.some(AT);I=[];for(var k=P;v(k,O);k+=x){var D;if(G){if(D=String.fromCharCode(k),D==="\\")D=""}else if(D=String(k),n){var m=L-D.length;if(m>0){var T=Array(m+1).join("0");if(k<0)D="-"+T+D.slice(1);else D=T+D}}I.push(D)}}else{I=[];for(var S=0;S<M.length;S++)I.push.apply(I,n8(M[S],Q,!1))}for(var S=0;S<I.length;S++)for(var q=0;q<Z.length&&K.length<Q;q++){var V=H+I[S]+Z[q];if(!J||B||V)K.push(V)}}return K}});var iV=N((lV)=>{Object.defineProperty(lV,"__esModule",{value:!0});lV.assertValidPattern=void 0;var ST=65536,xT=(X)=>{if(typeof X!=="string")throw TypeError("invalid pattern");if(X.length>ST)throw TypeError("pattern is too long")};lV.assertValidPattern=xT});var aV=N((rV)=>{Object.defineProperty(rV,"__esModule",{value:!0});rV.parseClass=void 0;var vT={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},i8=(X)=>X.replace(/[[\]\\-]/g,"\\$&"),yT=(X)=>X.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),oV=(X)=>X.join(""),kT=(X,Q)=>{let J=Q;if(X.charAt(J)!=="[")throw Error("not in a brace expression");let K=[],Y=[],H=J+1,Z=!1,q=!1,V=!1,W=!1,G=J,B="";X:while(H<X.length){let P=X.charAt(H);if((P==="!"||P==="^")&&H===J+1){W=!0,H++;continue}if(P==="]"&&Z&&!V){G=H+1;break}if(Z=!0,P==="\\"){if(!V){V=!0,H++;continue}}if(P==="["&&!V){for(let[O,[L,x,v]]of Object.entries(vT))if(X.startsWith(O,H)){if(B)return["$.",!1,X.length-J,!0];if(H+=O.length,v)Y.push(L);else K.push(L);q=q||x;continue X}}if(V=!1,B){if(P>B)K.push(i8(B)+"-"+i8(P));else if(P===B)K.push(i8(P));B="",H++;continue}if(X.startsWith("-]",H+1)){K.push(i8(P+"-")),H+=2;continue}if(X.startsWith("-",H+1)){B=P,H+=2;continue}K.push(i8(P)),H++}if(G<H)return["",!1,0,!1];if(!K.length&&!Y.length)return["$.",!1,X.length-J,!0];if(Y.length===0&&K.length===1&&/^\\?.$/.test(K[0])&&!W){let P=K[0].length===2?K[0].slice(-1):K[0];return[yT(P),!1,G-J,!1]}let F="["+(W?"^":"")+oV(K)+"]",M="["+(W?"":"^")+oV(Y)+"]";return[K.length&&Y.length?"("+F+"|"+M+")":K.length?F:M,q,G-J,!0]};rV.parseClass=kT});var m7=N((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.unescape=void 0;var gT=(X,{windowsPathsNoEscape:Q=!1}={})=>{return Q?X.replace(/\[([^\/\\])\]/g,"$1"):X.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")};tV.unescape=gT});var c9=N((YU)=>{var n0;Object.defineProperty(YU,"__esModule",{value:!0});YU.AST=void 0;var hT=aV(),d7=m7(),fT=new Set(["!","?","+","*","@"]),b9=(X)=>fT.has(X),XU=(X)=>b9(X.type),uT=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),bT=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),mT=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),QU=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),dT="(?!(?:^|/)\\.\\.?(?:$|/))",c7="(?!\\.)",cT=new Set(["[","."]),pT=new Set(["..","."]),lT=new Set("().*{}+?[]^$\\!"),nT=(X)=>X.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),m9="[^/]",JU=m9+"*?",KU=m9+"+?";class d9{type;#X;#J;#Y=!1;#Q=[];#Z;#O;#U;#W=!1;#V;#q;#H=!1;constructor(X,Q,J={}){if(this.type=X,X)this.#J=!0;if(this.#Z=Q,this.#X=this.#Z?this.#Z.#X:this,this.#V=this.#X===this?J:this.#X.#V,this.#U=this.#X===this?[]:this.#X.#U,X==="!"&&!this.#X.#W)this.#U.push(this);this.#O=this.#Z?this.#Z.#Q.length:0}get hasMagic(){if(this.#J!==void 0)return this.#J;for(let X of this.#Q){if(typeof X==="string")continue;if(X.type||X.hasMagic)return this.#J=!0}return this.#J}toString(){if(this.#q!==void 0)return this.#q;if(!this.type)return this.#q=this.#Q.map((X)=>String(X)).join("");else return this.#q=this.type+"("+this.#Q.map((X)=>String(X)).join("|")+")"}#N(){if(this!==this.#X)throw Error("should only call on root");if(this.#W)return this;this.toString(),this.#W=!0;let X;while(X=this.#U.pop()){if(X.type!=="!")continue;let Q=X,J=Q.#Z;while(J){for(let K=Q.#O+1;!J.type&&K<J.#Q.length;K++)for(let Y of X.#Q){if(typeof Y==="string")throw Error("string part in extglob AST??");Y.copyIn(J.#Q[K])}Q=J,J=Q.#Z}}return this}push(...X){for(let Q of X){if(Q==="")continue;if(typeof Q!=="string"&&!(Q instanceof n0&&Q.#Z===this))throw Error("invalid part: "+Q);this.#Q.push(Q)}}toJSON(){let X=this.type===null?this.#Q.slice().map((Q)=>typeof Q==="string"?Q:Q.toJSON()):[this.type,...this.#Q.map((Q)=>Q.toJSON())];if(this.isStart()&&!this.type)X.unshift([]);if(this.isEnd()&&(this===this.#X||this.#X.#W&&this.#Z?.type==="!"))X.push({});return X}isStart(){if(this.#X===this)return!0;if(!this.#Z?.isStart())return!1;if(this.#O===0)return!0;let X=this.#Z;for(let Q=0;Q<this.#O;Q++){let J=X.#Q[Q];if(!(J instanceof n0&&J.type==="!"))return!1}return!0}isEnd(){if(this.#X===this)return!0;if(this.#Z?.type==="!")return!0;if(!this.#Z?.isEnd())return!1;if(!this.type)return this.#Z?.isEnd();let X=this.#Z?this.#Z.#Q.length:0;return this.#O===X-1}copyIn(X){if(typeof X==="string")this.push(X);else this.push(X.clone(this))}clone(X){let Q=new n0(this.type,X);for(let J of this.#Q)Q.copyIn(J);return Q}static#L(X,Q,J,K,Y){let H=K.maxExtglobRecursion??2,Z=!1,q=!1,V=-1,W=!1;if(Q.type===null){let I=J,P="";while(I<X.length){let O=X.charAt(I++);if(Z||O==="\\"){Z=!Z,P+=O;continue}if(q){if(I===V+1){if(O==="^"||O==="!")W=!0}else if(O==="]"&&!(I===V+2&&W))q=!1;P+=O;continue}else if(O==="["){q=!0,V=I,W=!1,P+=O;continue}if(!K.noext&&b9(O)&&X.charAt(I)==="("&&Y<=H){Q.push(P),P="";let x=new n0(O,Q);I=n0.#L(X,x,I,K,Y+1),Q.push(x);continue}P+=O}return Q.push(P),I}let G=J+1,B=new n0(null,Q),F=[],M="";while(G<X.length){let I=X.charAt(G++);if(Z||I==="\\"){Z=!Z,M+=I;continue}if(q){if(G===V+1){if(I==="^"||I==="!")W=!0}else if(I==="]"&&!(G===V+2&&W))q=!1;M+=I;continue}else if(I==="["){q=!0,V=G,W=!1,M+=I;continue}if(b9(I)&&X.charAt(G)==="("&&(Y<=H||Q&&Q.#P(I))){let O=Q&&Q.#P(I)?0:1;B.push(M),M="";let L=new n0(I,B);B.push(L),G=n0.#L(X,L,G,K,Y+O);continue}if(I==="|"){B.push(M),M="",F.push(B),B=new n0(null,Q);continue}if(I===")"){if(M===""&&Q.#Q.length===0)Q.#H=!0;return B.push(M),M="",Q.push(...F,B),G}M+=I}return Q.type=null,Q.#J=void 0,Q.#Q=[X.substring(J-1)],G}#M(X){return this.#B(X,bT)}#B(X,Q=uT){if(!X||typeof X!=="object"||X.type!==null||X.#Q.length!==1||this.type===null)return!1;let J=X.#Q[0];if(!J||typeof J!=="object"||J.type===null)return!1;return this.#P(J.type,Q)}#P(X,Q=mT){return!!Q.get(this.type)?.includes(X)}#$(X,Q){let J=X.#Q[0],K=new n0(null,J,this.options);K.#Q.push(""),J.push(K),this.#w(X,Q)}#w(X,Q){let J=X.#Q[0];this.#Q.splice(Q,1,...J.#Q);for(let K of J.#Q)if(typeof K==="object")K.#Z=this;this.#q=void 0}#D(X){return!!QU.get(this.type)?.has(X)}#F(X){if(!X||typeof X!=="object"||X.type!==null||X.#Q.length!==1||this.type===null||this.#Q.length!==1)return!1;let Q=X.#Q[0];if(!Q||typeof Q!=="object"||Q.type===null)return!1;return this.#D(Q.type)}#j(X){let Q=QU.get(this.type),J=X.#Q[0],K=Q?.get(J.type);if(!K)return!1;this.#Q=J.#Q;for(let Y of this.#Q)if(typeof Y==="object")Y.#Z=this;this.type=K,this.#q=void 0,this.#H=!1}#C(){if(!XU(this)){for(let X of this.#Q)if(typeof X==="object")X.#C()}else{let X=0,Q=!1;do{Q=!0;for(let J=0;J<this.#Q.length;J++){let K=this.#Q[J];if(typeof K==="object"){if(K.#C(),this.#B(K))Q=!1,this.#w(K,J);else if(this.#M(K))Q=!1,this.#$(K,J);else if(this.#F(K))Q=!1,this.#j(K)}}}while(!Q&&++X<10)}this.#q=void 0}static fromGlob(X,Q={}){let J=new n0(null,void 0,Q);return n0.#L(X,J,0,Q,0),J}toMMPattern(){if(this!==this.#X)return this.#X.toMMPattern();let X=this.toString(),[Q,J,K,Y]=this.toRegExpSource();if(!(K||this.#J||this.#V.nocase&&!this.#V.nocaseMagicOnly&&X.toUpperCase()!==X.toLowerCase()))return J;let Z=(this.#V.nocase?"i":"")+(Y?"u":"");return Object.assign(new RegExp(`^${Q}$`,Z),{_src:Q,_glob:X})}get options(){return this.#V}toRegExpSource(X){let Q=X??!!this.#V.dot;if(this.#X===this)this.#C(),this.#N();if(!XU(this)){let q=this.isStart()&&this.isEnd(),V=this.#Q.map((F)=>{let[M,I,P,O]=typeof F==="string"?n0.#T(F,this.#J,q):F.toRegExpSource(X);return this.#J=this.#J||P,this.#Y=this.#Y||O,M}).join(""),W="";if(this.isStart()){if(typeof this.#Q[0]==="string"){if(!(this.#Q.length===1&&pT.has(this.#Q[0]))){let M=cT,I=Q&&M.has(V.charAt(0))||V.startsWith("\\.")&&M.has(V.charAt(2))||V.startsWith("\\.\\.")&&M.has(V.charAt(4)),P=!Q&&!X&&M.has(V.charAt(0));W=I?dT:P?c7:""}}}let G="";if(this.isEnd()&&this.#X.#W&&this.#Z?.type==="!")G="(?:$|\\/)";return[W+V+G,(0,d7.unescape)(V),this.#J=!!this.#J,this.#Y]}let J=this.type==="*"||this.type==="+",K=this.type==="!"?"(?:(?!(?:":"(?:",Y=this.#z(Q);if(this.isStart()&&this.isEnd()&&!Y&&this.type!=="!"){let q=this.toString(),V=this;return V.#Q=[q],V.type=null,V.#J=void 0,[q,(0,d7.unescape)(this.toString()),!1,!1]}let H=!J||X||Q||!c7?"":this.#z(!0);if(H===Y)H="";if(H)Y=`(?:${Y})(?:${H})*?`;let Z="";if(this.type==="!"&&this.#H)Z=(this.isStart()&&!Q?c7:"")+KU;else{let q=this.type==="!"?"))"+(this.isStart()&&!Q&&!X?c7:"")+JU+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&H?")":this.type==="*"&&H?")?":`)${this.type}`;Z=K+Y+q}return[Z,(0,d7.unescape)(Y),this.#J=!!this.#J,this.#Y]}#z(X){return this.#Q.map((Q)=>{if(typeof Q==="string")throw Error("string type in extglob ast??");let[J,K,Y,H]=Q.toRegExpSource(X);return this.#Y=this.#Y||H,J}).filter((Q)=>!(this.isStart()&&this.isEnd())||!!Q).join("|")}static#T(X,Q,J=!1){let K=!1,Y="",H=!1,Z=!1;for(let q=0;q<X.length;q++){let V=X.charAt(q);if(K){K=!1,Y+=(lT.has(V)?"\\":"")+V,Z=!1;continue}if(V==="\\"){if(q===X.length-1)Y+="\\\\";else K=!0;continue}if(V==="["){let[W,G,B,F]=(0,hT.parseClass)(X,q);if(B){Y+=W,H=H||G,q+=B-1,Q=Q||F,Z=!1;continue}}if(V==="*"){if(Z)continue;Z=!0,Y+=J&&/^[*]+$/.test(X)?KU:JU,Q=!0;continue}else Z=!1;if(V==="?"){Y+=m9,Q=!0;continue}Y+=nT(V)}return[Y,(0,d7.unescape)(X),!!Q,H]}}YU.AST=d9;n0=d9});var p9=N((ZU)=>{Object.defineProperty(ZU,"__esModule",{value:!0});ZU.escape=void 0;var iT=(X,{windowsPathsNoEscape:Q=!1}={})=>{return Q?X.replace(/[?*()[\]]/g,"[$&]"):X.replace(/[?*()[\]\\]/g,"\\$&")};ZU.escape=iT});var u1=N((h)=>{var oT=h&&h.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(h,"__esModule",{value:!0});h.unescape=h.escape=h.AST=h.Minimatch=h.match=h.makeRe=h.braceExpand=h.defaults=h.filter=h.GLOBSTAR=h.sep=h.minimatch=void 0;var rT=oT(pV()),p7=iV(),GU=c9(),sT=p9(),aT=m7(),tT=(X,Q,J={})=>{if((0,p7.assertValidPattern)(Q),!J.nocomment&&Q.charAt(0)==="#")return!1;return new o6(Q,J).match(X)};h.minimatch=tT;var eT=/^\*+([^+@!?\*\[\(]*)$/,X_=(X)=>(Q)=>!Q.startsWith(".")&&Q.endsWith(X),Q_=(X)=>(Q)=>Q.endsWith(X),J_=(X)=>{return X=X.toLowerCase(),(Q)=>!Q.startsWith(".")&&Q.toLowerCase().endsWith(X)},K_=(X)=>{return X=X.toLowerCase(),(Q)=>Q.toLowerCase().endsWith(X)},Y_=/^\*+\.\*+$/,H_=(X)=>!X.startsWith(".")&&X.includes("."),Z_=(X)=>X!=="."&&X!==".."&&X.includes("."),q_=/^\.\*+$/,V_=(X)=>X!=="."&&X!==".."&&X.startsWith("."),U_=/^\*+$/,G_=(X)=>X.length!==0&&!X.startsWith("."),W_=(X)=>X.length!==0&&X!=="."&&X!=="..",z_=/^\?+([^+@!?\*\[\(]*)?$/,B_=([X,Q=""])=>{let J=WU([X]);if(!Q)return J;return Q=Q.toLowerCase(),(K)=>J(K)&&K.toLowerCase().endsWith(Q)},$_=([X,Q=""])=>{let J=zU([X]);if(!Q)return J;return Q=Q.toLowerCase(),(K)=>J(K)&&K.toLowerCase().endsWith(Q)},M_=([X,Q=""])=>{let J=zU([X]);return!Q?J:(K)=>J(K)&&K.endsWith(Q)},F_=([X,Q=""])=>{let J=WU([X]);return!Q?J:(K)=>J(K)&&K.endsWith(Q)},WU=([X])=>{let Q=X.length;return(J)=>J.length===Q&&!J.startsWith(".")},zU=([X])=>{let Q=X.length;return(J)=>J.length===Q&&J!=="."&&J!==".."},BU=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",VU={win32:{sep:"\\"},posix:{sep:"/"}};h.sep=BU==="win32"?VU.win32.sep:VU.posix.sep;h.minimatch.sep=h.sep;h.GLOBSTAR=Symbol("globstar **");h.minimatch.GLOBSTAR=h.GLOBSTAR;var N_="[^/]",L_=N_+"*?",C_="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",I_="(?:(?!(?:\\/|^)\\.).)*?",O_=(X,Q={})=>(J)=>(0,h.minimatch)(J,X,Q);h.filter=O_;h.minimatch.filter=h.filter;var Q1=(X,Q={})=>Object.assign({},X,Q),P_=(X)=>{if(!X||typeof X!=="object"||!Object.keys(X).length)return h.minimatch;let Q=h.minimatch;return Object.assign((K,Y,H={})=>Q(K,Y,Q1(X,H)),{Minimatch:class extends Q.Minimatch{constructor(Y,H={}){super(Y,Q1(X,H))}static defaults(Y){return Q.defaults(Q1(X,Y)).Minimatch}},AST:class extends Q.AST{constructor(Y,H,Z={}){super(Y,H,Q1(X,Z))}static fromGlob(Y,H={}){return Q.AST.fromGlob(Y,Q1(X,H))}},unescape:(K,Y={})=>Q.unescape(K,Q1(X,Y)),escape:(K,Y={})=>Q.escape(K,Q1(X,Y)),filter:(K,Y={})=>Q.filter(K,Q1(X,Y)),defaults:(K)=>Q.defaults(Q1(X,K)),makeRe:(K,Y={})=>Q.makeRe(K,Q1(X,Y)),braceExpand:(K,Y={})=>Q.braceExpand(K,Q1(X,Y)),match:(K,Y,H={})=>Q.match(K,Y,Q1(X,H)),sep:Q.sep,GLOBSTAR:h.GLOBSTAR})};h.defaults=P_;h.minimatch.defaults=h.defaults;var j_=(X,Q={})=>{if((0,p7.assertValidPattern)(X),Q.nobrace||!/\{(?:(?!\{).)*\}/.test(X))return[X];return(0,rT.default)(X)};h.braceExpand=j_;h.minimatch.braceExpand=h.braceExpand;var w_=(X,Q={})=>new o6(X,Q).makeRe();h.makeRe=w_;h.minimatch.makeRe=h.makeRe;var D_=(X,Q,J={})=>{let K=new o6(Q,J);if(X=X.filter((Y)=>K.match(Y)),K.options.nonull&&!X.length)X.push(Q);return X};h.match=D_;h.minimatch.match=h.match;var UU=/[?*]|[+@!]\(.*?\)|\[|\]/,T_=(X)=>X.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class o6{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(X,Q={}){if((0,p7.assertValidPattern)(X),Q=Q||{},this.options=Q,this.maxGlobstarRecursion=Q.maxGlobstarRecursion??200,this.pattern=X,this.platform=Q.platform||BU,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!Q.windowsPathsNoEscape||Q.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!Q.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!Q.nonegate,this.comment=!1,this.empty=!1,this.partial=!!Q.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=Q.windowsNoMagicRoot!==void 0?Q.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let X of this.set)for(let Q of X)if(typeof Q!=="string")return!0;return!1}debug(...X){}make(){let X=this.pattern,Q=this.options;if(!Q.nocomment&&X.charAt(0)==="#"){this.comment=!0;return}if(!X){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],Q.debug)this.debug=(...Y)=>console.error(...Y);this.debug(this.pattern,this.globSet);let J=this.globSet.map((Y)=>this.slashSplit(Y));this.globParts=this.preprocess(J),this.debug(this.pattern,this.globParts);let K=this.globParts.map((Y,H,Z)=>{if(this.isWindows&&this.windowsNoMagicRoot){let q=Y[0]===""&&Y[1]===""&&(Y[2]==="?"||!UU.test(Y[2]))&&!UU.test(Y[3]),V=/^[a-z]:/i.test(Y[0]);if(q)return[...Y.slice(0,4),...Y.slice(4).map((W)=>this.parse(W))];else if(V)return[Y[0],...Y.slice(1).map((W)=>this.parse(W))]}return Y.map((q)=>this.parse(q))});if(this.debug(this.pattern,K),this.set=K.filter((Y)=>Y.indexOf(!1)===-1),this.isWindows)for(let Y=0;Y<this.set.length;Y++){let H=this.set[Y];if(H[0]===""&&H[1]===""&&this.globParts[Y][2]==="?"&&typeof H[3]==="string"&&/^[a-z]:$/i.test(H[3]))H[2]="?"}this.debug(this.pattern,this.set)}preprocess(X){if(this.options.noglobstar){for(let J=0;J<X.length;J++)for(let K=0;K<X[J].length;K++)if(X[J][K]==="**")X[J][K]="*"}let{optimizationLevel:Q=1}=this.options;if(Q>=2)X=this.firstPhasePreProcess(X),X=this.secondPhasePreProcess(X);else if(Q>=1)X=this.levelOneOptimize(X);else X=this.adjascentGlobstarOptimize(X);return X}adjascentGlobstarOptimize(X){return X.map((Q)=>{let J=-1;while((J=Q.indexOf("**",J+1))!==-1){let K=J;while(Q[K+1]==="**")K++;if(K!==J)Q.splice(J,K-J)}return Q})}levelOneOptimize(X){return X.map((Q)=>{return Q=Q.reduce((J,K)=>{let Y=J[J.length-1];if(K==="**"&&Y==="**")return J;if(K===".."){if(Y&&Y!==".."&&Y!=="."&&Y!=="**")return J.pop(),J}return J.push(K),J},[]),Q.length===0?[""]:Q})}levelTwoFileOptimize(X){if(!Array.isArray(X))X=this.slashSplit(X);let Q=!1;do{if(Q=!1,!this.preserveMultipleSlashes){for(let K=1;K<X.length-1;K++){let Y=X[K];if(K===1&&Y===""&&X[0]==="")continue;if(Y==="."||Y==="")Q=!0,X.splice(K,1),K--}if(X[0]==="."&&X.length===2&&(X[1]==="."||X[1]===""))Q=!0,X.pop()}let J=0;while((J=X.indexOf("..",J+1))!==-1){let K=X[J-1];if(K&&K!=="."&&K!==".."&&K!=="**")Q=!0,X.splice(J-1,2),J-=2}}while(Q);return X.length===0?[""]:X}firstPhasePreProcess(X){let Q=!1;do{Q=!1;for(let J of X){let K=-1;while((K=J.indexOf("**",K+1))!==-1){let H=K;while(J[H+1]==="**")H++;if(H>K)J.splice(K+1,H-K);let Z=J[K+1],q=J[K+2],V=J[K+3];if(Z!=="..")continue;if(!q||q==="."||q===".."||!V||V==="."||V==="..")continue;Q=!0,J.splice(K,1);let W=J.slice(0);W[K]="**",X.push(W),K--}if(!this.preserveMultipleSlashes){for(let H=1;H<J.length-1;H++){let Z=J[H];if(H===1&&Z===""&&J[0]==="")continue;if(Z==="."||Z==="")Q=!0,J.splice(H,1),H--}if(J[0]==="."&&J.length===2&&(J[1]==="."||J[1]===""))Q=!0,J.pop()}let Y=0;while((Y=J.indexOf("..",Y+1))!==-1){let H=J[Y-1];if(H&&H!=="."&&H!==".."&&H!=="**"){Q=!0;let q=Y===1&&J[Y+1]==="**"?["."]:[];if(J.splice(Y-1,2,...q),J.length===0)J.push("");Y-=2}}}}while(Q);return X}secondPhasePreProcess(X){for(let Q=0;Q<X.length-1;Q++)for(let J=Q+1;J<X.length;J++){let K=this.partsMatch(X[Q],X[J],!this.preserveMultipleSlashes);if(K){X[Q]=[],X[J]=K;break}}return X.filter((Q)=>Q.length)}partsMatch(X,Q,J=!1){let K=0,Y=0,H=[],Z="";while(K<X.length&&Y<Q.length)if(X[K]===Q[Y])H.push(Z==="b"?Q[Y]:X[K]),K++,Y++;else if(J&&X[K]==="**"&&Q[Y]===X[K+1])H.push(X[K]),K++;else if(J&&Q[Y]==="**"&&X[K]===Q[Y+1])H.push(Q[Y]),Y++;else if(X[K]==="*"&&Q[Y]&&(this.options.dot||!Q[Y].startsWith("."))&&Q[Y]!=="**"){if(Z==="b")return!1;Z="a",H.push(X[K]),K++,Y++}else if(Q[Y]==="*"&&X[K]&&(this.options.dot||!X[K].startsWith("."))&&X[K]!=="**"){if(Z==="a")return!1;Z="b",H.push(Q[Y]),K++,Y++}else return!1;return X.length===Q.length&&H}parseNegate(){if(this.nonegate)return;let X=this.pattern,Q=!1,J=0;for(let K=0;K<X.length&&X.charAt(K)==="!";K++)Q=!Q,J++;if(J)this.pattern=X.slice(J);this.negate=Q}matchOne(X,Q,J=!1){let K=0,Y=0;if(this.isWindows){let Z=typeof X[0]==="string"&&/^[a-z]:$/i.test(X[0]),q=!Z&&X[0]===""&&X[1]===""&&X[2]==="?"&&/^[a-z]:$/i.test(X[3]),V=typeof Q[0]==="string"&&/^[a-z]:$/i.test(Q[0]),W=!V&&Q[0]===""&&Q[1]===""&&Q[2]==="?"&&typeof Q[3]==="string"&&/^[a-z]:$/i.test(Q[3]),G=q?3:Z?0:void 0,B=W?3:V?0:void 0;if(typeof G==="number"&&typeof B==="number"){let[F,M]=[X[G],Q[B]];if(F.toLowerCase()===M.toLowerCase())Q[B]=F,Y=B,K=G}}let{optimizationLevel:H=1}=this.options;if(H>=2)X=this.levelTwoFileOptimize(X);if(Q.includes(h.GLOBSTAR))return this.#X(X,Q,J,K,Y);return this.#Y(X,Q,J,K,Y)}#X(X,Q,J,K,Y){let H=Q.indexOf(h.GLOBSTAR,Y),Z=Q.lastIndexOf(h.GLOBSTAR),[q,V,W]=J?[Q.slice(Y,H),Q.slice(H+1),[]]:[Q.slice(Y,H),Q.slice(H+1,Z),Q.slice(Z+1)];if(q.length){let L=X.slice(K,K+q.length);if(!this.#Y(L,q,J,0,0))return!1;K+=q.length}let G=0;if(W.length){if(W.length+K>X.length)return!1;let L=X.length-W.length;if(this.#Y(X,W,J,L,0))G=W.length;else{if(X[X.length-1]!==""||K+W.length===X.length)return!1;if(L--,!this.#Y(X,W,J,L,0))return!1;G=W.length+1}}if(!V.length){let L=!!G;for(let x=K;x<X.length-G;x++){let v=String(X[x]);if(L=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return J||L}let B=[[[],0]],F=B[0],M=0,I=[0];for(let L of V)if(L===h.GLOBSTAR)I.push(M),F=[[],0],B.push(F);else F[0].push(L),M++;let P=B.length-1,O=X.length-G;for(let L of B)L[1]=O-(I[P--]+L[0].length);return!!this.#J(X,B,K,0,J,0,!!G)}#J(X,Q,J,K,Y,H,Z){let q=Q[K];if(!q){for(let G=J;G<X.length;G++){Z=!0;let B=X[G];if(B==="."||B===".."||!this.options.dot&&B.startsWith("."))return!1}return Z}let[V,W]=q;while(J<=W){if(this.#Y(X.slice(0,J+V.length),V,Y,J,0)&&H<this.maxGlobstarRecursion){let F=this.#J(X,Q,J+V.length,K+1,Y,H+1,Z);if(F!==!1)return F}let B=X[J];if(B==="."||B===".."||!this.options.dot&&B.startsWith("."))return!1;J++}return Y||null}#Y(X,Q,J,K,Y){let H,Z,q,V;for(H=K,Z=Y,V=X.length,q=Q.length;H<V&&Z<q;H++,Z++){this.debug("matchOne loop");let W=Q[Z],G=X[H];if(this.debug(Q,W,G),W===!1||W===h.GLOBSTAR)return!1;let B;if(typeof W==="string")B=G===W,this.debug("string match",W,G,B);else B=W.test(G),this.debug("pattern match",W,G,B);if(!B)return!1}if(H===V&&Z===q)return!0;else if(H===V)return J;else if(Z===q)return H===V-1&&X[H]==="";else throw Error("wtf?")}braceExpand(){return(0,h.braceExpand)(this.pattern,this.options)}parse(X){(0,p7.assertValidPattern)(X);let Q=this.options;if(X==="**")return h.GLOBSTAR;if(X==="")return"";let J,K=null;if(J=X.match(U_))K=Q.dot?W_:G_;else if(J=X.match(eT))K=(Q.nocase?Q.dot?K_:J_:Q.dot?Q_:X_)(J[1]);else if(J=X.match(z_))K=(Q.nocase?Q.dot?$_:B_:Q.dot?M_:F_)(J);else if(J=X.match(Y_))K=Q.dot?Z_:H_;else if(J=X.match(q_))K=V_;let Y=GU.AST.fromGlob(X,this.options).toMMPattern();if(K&&typeof Y==="object")Reflect.defineProperty(Y,"test",{value:K});return Y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let X=this.set;if(!X.length)return this.regexp=!1,this.regexp;let Q=this.options,J=Q.noglobstar?L_:Q.dot?C_:I_,K=new Set(Q.nocase?["i"]:[]),Y=X.map((q)=>{let V=q.map((W)=>{if(W instanceof RegExp)for(let G of W.flags.split(""))K.add(G);return typeof W==="string"?T_(W):W===h.GLOBSTAR?h.GLOBSTAR:W._src});return V.forEach((W,G)=>{let B=V[G+1],F=V[G-1];if(W!==h.GLOBSTAR||F===h.GLOBSTAR)return;if(F===void 0)if(B!==void 0&&B!==h.GLOBSTAR)V[G+1]="(?:\\/|"+J+"\\/)?"+B;else V[G]=J;else if(B===void 0)V[G-1]=F+"(?:\\/|"+J+")?";else if(B!==h.GLOBSTAR)V[G-1]=F+"(?:\\/|\\/"+J+"\\/)"+B,V[G+1]=h.GLOBSTAR}),V.filter((W)=>W!==h.GLOBSTAR).join("/")}).join("|"),[H,Z]=X.length>1?["(?:",")"]:["",""];if(Y="^"+H+Y+Z+"$",this.negate)Y="^(?!"+Y+").+$";try{this.regexp=new RegExp(Y,[...K].join(""))}catch(q){this.regexp=!1}return this.regexp}slashSplit(X){if(this.preserveMultipleSlashes)return X.split("/");else if(this.isWindows&&/^\/\/[^\/]+/.test(X))return["",...X.split(/\/+/)];else return X.split(/\/+/)}match(X,Q=this.partial){if(this.debug("match",X,this.pattern),this.comment)return!1;if(this.empty)return X==="";if(X==="/"&&Q)return!0;let J=this.options;if(this.isWindows)X=X.split("\\").join("/");let K=this.slashSplit(X);this.debug(this.pattern,"split",K);let Y=this.set;this.debug(this.pattern,"set",Y);let H=K[K.length-1];if(!H)for(let Z=K.length-2;!H&&Z>=0;Z--)H=K[Z];for(let Z=0;Z<Y.length;Z++){let q=Y[Z],V=K;if(J.matchBase&&q.length===1)V=[H];if(this.matchOne(V,q,Q)){if(J.flipNegate)return!0;return!this.negate}}if(J.flipNegate)return!1;return this.negate}static defaults(X){return h.minimatch.defaults(X).Minimatch}}h.Minimatch=o6;var __=c9();Object.defineProperty(h,"AST",{enumerable:!0,get:function(){return __.AST}});var A_=p9();Object.defineProperty(h,"escape",{enumerable:!0,get:function(){return A_.escape}});var R_=m7();Object.defineProperty(h,"unescape",{enumerable:!0,get:function(){return R_.unescape}});h.minimatch.AST=GU.AST;h.minimatch.Minimatch=o6;h.minimatch.escape=sT.escape;h.minimatch.unescape=aT.unescape});var IU=N((LU)=>{Object.defineProperty(LU,"__esModule",{value:!0});LU.LRUCache=void 0;var r6=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,MU=new Set,l9=typeof process==="object"&&!!process?process:{},FU=(X,Q,J,K)=>{typeof l9.emitWarning==="function"?l9.emitWarning(X,Q,J,K):console.error(`[${J}] ${Q}: ${X}`)},l7=globalThis.AbortController,$U=globalThis.AbortSignal;if(typeof l7>"u"){$U=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(K,Y){this._onabort.push(Y)}},l7=class{constructor(){Q()}signal=new $U;abort(K){if(this.signal.aborted)return;this.signal.reason=K,this.signal.aborted=!0;for(let Y of this.signal._onabort)Y(K);this.signal.onabort?.(K)}};let X=l9.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",Q=()=>{if(!X)return;X=!1,FU("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q)}}var E_=(X)=>!MU.has(X),Gy=Symbol("type"),b1=(X)=>X&&X===Math.floor(X)&&X>0&&isFinite(X),NU=(X)=>!b1(X)?null:X<=Math.pow(2,8)?Uint8Array:X<=Math.pow(2,16)?Uint16Array:X<=Math.pow(2,32)?Uint32Array:X<=Number.MAX_SAFE_INTEGER?o8:null;class o8 extends Array{constructor(X){super(X);this.fill(0)}}class s6{heap;length;static#X=!1;static create(X){let Q=NU(X);if(!Q)return[];s6.#X=!0;let J=new s6(X,Q);return s6.#X=!1,J}constructor(X,Q){if(!s6.#X)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(X),this.length=0}push(X){this.heap[this.length++]=X}pop(){return this.heap[--this.length]}}class n9{#X;#J;#Y;#Q;#Z;#O;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#U;#W;#V;#q;#H;#N;#L;#M;#B;#P;#$;#w;#D;#F;#j;#C;#z;static unsafeExposeInternals(X){return{starts:X.#D,ttls:X.#F,sizes:X.#w,keyMap:X.#V,keyList:X.#q,valList:X.#H,next:X.#N,prev:X.#L,get head(){return X.#M},get tail(){return X.#B},free:X.#P,isBackgroundFetch:(Q)=>X.#G(Q),backgroundFetch:(Q,J,K,Y)=>X.#f(Q,J,K,Y),moveToTail:(Q)=>X.#b(Q),indexes:(Q)=>X.#A(Q),rindexes:(Q)=>X.#R(Q),isStale:(Q)=>X.#I(Q)}}get max(){return this.#X}get maxSize(){return this.#J}get calculatedSize(){return this.#W}get size(){return this.#U}get fetchMethod(){return this.#Z}get memoMethod(){return this.#O}get dispose(){return this.#Y}get disposeAfter(){return this.#Q}constructor(X){let{max:Q=0,ttl:J,ttlResolution:K=1,ttlAutopurge:Y,updateAgeOnGet:H,updateAgeOnHas:Z,allowStale:q,dispose:V,disposeAfter:W,noDisposeOnSet:G,noUpdateTTL:B,maxSize:F=0,maxEntrySize:M=0,sizeCalculation:I,fetchMethod:P,memoMethod:O,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:g,ignoreFetchAbort:n}=X;if(Q!==0&&!b1(Q))throw TypeError("max option must be a nonnegative integer");let k=Q?NU(Q):Array;if(!k)throw Error("invalid max value: "+Q);if(this.#X=Q,this.#J=F,this.maxEntrySize=M||this.#J,this.sizeCalculation=I,this.sizeCalculation){if(!this.#J&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(O!==void 0&&typeof O!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#O=O,P!==void 0&&typeof P!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#Z=P,this.#C=!!P,this.#V=new Map,this.#q=Array(Q).fill(void 0),this.#H=Array(Q).fill(void 0),this.#N=new k(Q),this.#L=new k(Q),this.#M=0,this.#B=0,this.#P=s6.create(Q),this.#U=0,this.#W=0,typeof V==="function")this.#Y=V;if(typeof W==="function")this.#Q=W,this.#$=[];else this.#Q=void 0,this.#$=void 0;if(this.#j=!!this.#Y,this.#z=!!this.#Q,this.noDisposeOnSet=!!G,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!g,this.ignoreFetchAbort=!!n,this.maxEntrySize!==0){if(this.#J!==0){if(!b1(this.#J))throw TypeError("maxSize must be a positive integer if specified")}if(!b1(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#E()}if(this.allowStale=!!q,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!Z,this.ttlResolution=b1(K)||K===0?K:1,this.ttlAutopurge=!!Y,this.ttl=J||0,this.ttl){if(!b1(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#T()}if(this.#X===0&&this.ttl===0&&this.#J===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#X&&!this.#J){if(E_("LRU_CACHE_UNBOUNDED"))MU.add("LRU_CACHE_UNBOUNDED"),FU("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",n9)}}getRemainingTTL(X){return this.#V.has(X)?1/0:0}#T(){let X=new o8(this.#X),Q=new o8(this.#X);this.#F=X,this.#D=Q,this.#x=(Y,H,Z=r6.now())=>{if(Q[Y]=H!==0?Z:0,X[Y]=H,H!==0&&this.ttlAutopurge){let q=setTimeout(()=>{if(this.#I(Y))this.#S(this.#q[Y],"expire")},H+1);if(q.unref)q.unref()}},this.#_=(Y)=>{Q[Y]=X[Y]!==0?r6.now():0},this.#K=(Y,H)=>{if(X[H]){let Z=X[H],q=Q[H];if(!Z||!q)return;Y.ttl=Z,Y.start=q,Y.now=J||K();let V=Y.now-q;Y.remainingTTL=Z-V}};let J=0,K=()=>{let Y=r6.now();if(this.ttlResolution>0){J=Y;let H=setTimeout(()=>J=0,this.ttlResolution);if(H.unref)H.unref()}return Y};this.getRemainingTTL=(Y)=>{let H=this.#V.get(Y);if(H===void 0)return 0;let Z=X[H],q=Q[H];if(!Z||!q)return 1/0;let V=(J||K())-q;return Z-V},this.#I=(Y)=>{let H=Q[Y],Z=X[Y];return!!Z&&!!H&&(J||K())-H>Z}}#_=()=>{};#K=()=>{};#x=()=>{};#I=()=>!1;#E(){let X=new o8(this.#X);this.#W=0,this.#w=X,this.#v=(Q)=>{this.#W-=X[Q],X[Q]=0},this.#k=(Q,J,K,Y)=>{if(this.#G(J))return 0;if(!b1(K))if(Y){if(typeof Y!=="function")throw TypeError("sizeCalculation must be a function");if(K=Y(J,Q),!b1(K))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return K},this.#y=(Q,J,K)=>{if(X[Q]=J,this.#J){let Y=this.#J-X[Q];while(this.#W>Y)this.#h(!0)}if(this.#W+=X[Q],K)K.entrySize=J,K.totalCalculatedSize=this.#W}}#v=(X)=>{};#y=(X,Q,J)=>{};#k=(X,Q,J,K)=>{if(J||K)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#A({allowStale:X=this.allowStale}={}){if(this.#U)for(let Q=this.#B;;){if(!this.#g(Q))break;if(X||!this.#I(Q))yield Q;if(Q===this.#M)break;else Q=this.#L[Q]}}*#R({allowStale:X=this.allowStale}={}){if(this.#U)for(let Q=this.#M;;){if(!this.#g(Q))break;if(X||!this.#I(Q))yield Q;if(Q===this.#B)break;else Q=this.#N[Q]}}#g(X){return X!==void 0&&this.#V.get(this.#q[X])===X}*entries(){for(let X of this.#A())if(this.#H[X]!==void 0&&this.#q[X]!==void 0&&!this.#G(this.#H[X]))yield[this.#q[X],this.#H[X]]}*rentries(){for(let X of this.#R())if(this.#H[X]!==void 0&&this.#q[X]!==void 0&&!this.#G(this.#H[X]))yield[this.#q[X],this.#H[X]]}*keys(){for(let X of this.#A()){let Q=this.#q[X];if(Q!==void 0&&!this.#G(this.#H[X]))yield Q}}*rkeys(){for(let X of this.#R()){let Q=this.#q[X];if(Q!==void 0&&!this.#G(this.#H[X]))yield Q}}*values(){for(let X of this.#A())if(this.#H[X]!==void 0&&!this.#G(this.#H[X]))yield this.#H[X]}*rvalues(){for(let X of this.#R())if(this.#H[X]!==void 0&&!this.#G(this.#H[X]))yield this.#H[X]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(X,Q={}){for(let J of this.#A()){let K=this.#H[J],Y=this.#G(K)?K.__staleWhileFetching:K;if(Y===void 0)continue;if(X(Y,this.#q[J],this))return this.get(this.#q[J],Q)}}forEach(X,Q=this){for(let J of this.#A()){let K=this.#H[J],Y=this.#G(K)?K.__staleWhileFetching:K;if(Y===void 0)continue;X.call(Q,Y,this.#q[J],this)}}rforEach(X,Q=this){for(let J of this.#R()){let K=this.#H[J],Y=this.#G(K)?K.__staleWhileFetching:K;if(Y===void 0)continue;X.call(Q,Y,this.#q[J],this)}}purgeStale(){let X=!1;for(let Q of this.#R({allowStale:!0}))if(this.#I(Q))this.#S(this.#q[Q],"expire"),X=!0;return X}info(X){let Q=this.#V.get(X);if(Q===void 0)return;let J=this.#H[Q],K=this.#G(J)?J.__staleWhileFetching:J;if(K===void 0)return;let Y={value:K};if(this.#F&&this.#D){let H=this.#F[Q],Z=this.#D[Q];if(H&&Z){let q=H-(r6.now()-Z);Y.ttl=q,Y.start=Date.now()}}if(this.#w)Y.size=this.#w[Q];return Y}dump(){let X=[];for(let Q of this.#A({allowStale:!0})){let J=this.#q[Q],K=this.#H[Q],Y=this.#G(K)?K.__staleWhileFetching:K;if(Y===void 0||J===void 0)continue;let H={value:Y};if(this.#F&&this.#D){H.ttl=this.#F[Q];let Z=r6.now()-this.#D[Q];H.start=Math.floor(Date.now()-Z)}if(this.#w)H.size=this.#w[Q];X.unshift([J,H])}return X}load(X){this.clear();for(let[Q,J]of X){if(J.start){let K=Date.now()-J.start;J.start=r6.now()-K}this.set(Q,J.value,J)}}set(X,Q,J={}){if(Q===void 0)return this.delete(X),this;let{ttl:K=this.ttl,start:Y,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:Z=this.sizeCalculation,status:q}=J,{noUpdateTTL:V=this.noUpdateTTL}=J,W=this.#k(X,Q,J.size||0,Z);if(this.maxEntrySize&&W>this.maxEntrySize){if(q)q.set="miss",q.maxEntrySizeExceeded=!0;return this.#S(X,"set"),this}let G=this.#U===0?void 0:this.#V.get(X);if(G===void 0){if(G=this.#U===0?this.#B:this.#P.length!==0?this.#P.pop():this.#U===this.#X?this.#h(!1):this.#U,this.#q[G]=X,this.#H[G]=Q,this.#V.set(X,G),this.#N[this.#B]=G,this.#L[G]=this.#B,this.#B=G,this.#U++,this.#y(G,W,q),q)q.set="add";V=!1}else{this.#b(G);let B=this.#H[G];if(Q!==B){if(this.#C&&this.#G(B)){B.__abortController.abort(Error("replaced"));let{__staleWhileFetching:F}=B;if(F!==void 0&&!H){if(this.#j)this.#Y?.(F,X,"set");if(this.#z)this.#$?.push([F,X,"set"])}}else if(!H){if(this.#j)this.#Y?.(B,X,"set");if(this.#z)this.#$?.push([B,X,"set"])}if(this.#v(G),this.#y(G,W,q),this.#H[G]=Q,q){q.set="replace";let F=B&&this.#G(B)?B.__staleWhileFetching:B;if(F!==void 0)q.oldValue=F}}else if(q)q.set="update"}if(K!==0&&!this.#F)this.#T();if(this.#F){if(!V)this.#x(G,K,Y);if(q)this.#K(q,G)}if(!H&&this.#z&&this.#$){let B=this.#$,F;while(F=B?.shift())this.#Q?.(...F)}return this}pop(){try{while(this.#U){let X=this.#H[this.#M];if(this.#h(!0),this.#G(X)){if(X.__staleWhileFetching)return X.__staleWhileFetching}else if(X!==void 0)return X}}finally{if(this.#z&&this.#$){let X=this.#$,Q;while(Q=X?.shift())this.#Q?.(...Q)}}}#h(X){let Q=this.#M,J=this.#q[Q],K=this.#H[Q];if(this.#C&&this.#G(K))K.__abortController.abort(Error("evicted"));else if(this.#j||this.#z){if(this.#j)this.#Y?.(K,J,"evict");if(this.#z)this.#$?.push([K,J,"evict"])}if(this.#v(Q),X)this.#q[Q]=void 0,this.#H[Q]=void 0,this.#P.push(Q);if(this.#U===1)this.#M=this.#B=0,this.#P.length=0;else this.#M=this.#N[Q];return this.#V.delete(J),this.#U--,Q}has(X,Q={}){let{updateAgeOnHas:J=this.updateAgeOnHas,status:K}=Q,Y=this.#V.get(X);if(Y!==void 0){let H=this.#H[Y];if(this.#G(H)&&H.__staleWhileFetching===void 0)return!1;if(!this.#I(Y)){if(J)this.#_(Y);if(K)K.has="hit",this.#K(K,Y);return!0}else if(K)K.has="stale",this.#K(K,Y)}else if(K)K.has="miss";return!1}peek(X,Q={}){let{allowStale:J=this.allowStale}=Q,K=this.#V.get(X);if(K===void 0||!J&&this.#I(K))return;let Y=this.#H[K];return this.#G(Y)?Y.__staleWhileFetching:Y}#f(X,Q,J,K){let Y=Q===void 0?void 0:this.#H[Q];if(this.#G(Y))return Y;let H=new l7,{signal:Z}=J;Z?.addEventListener("abort",()=>H.abort(Z.reason),{signal:H.signal});let q={signal:H.signal,options:J,context:K},V=(I,P=!1)=>{let{aborted:O}=H.signal,L=J.ignoreFetchAbort&&I!==void 0;if(J.status)if(O&&!P){if(J.status.fetchAborted=!0,J.status.fetchError=H.signal.reason,L)J.status.fetchAbortIgnored=!0}else J.status.fetchResolved=!0;if(O&&!L&&!P)return G(H.signal.reason);let x=F;if(this.#H[Q]===F)if(I===void 0)if(x.__staleWhileFetching)this.#H[Q]=x.__staleWhileFetching;else this.#S(X,"fetch");else{if(J.status)J.status.fetchUpdated=!0;this.set(X,I,q.options)}return I},W=(I)=>{if(J.status)J.status.fetchRejected=!0,J.status.fetchError=I;return G(I)},G=(I)=>{let{aborted:P}=H.signal,O=P&&J.allowStaleOnFetchAbort,L=O||J.allowStaleOnFetchRejection,x=L||J.noDeleteOnFetchRejection,v=F;if(this.#H[Q]===F){if(!x||v.__staleWhileFetching===void 0)this.#S(X,"fetch");else if(!O)this.#H[Q]=v.__staleWhileFetching}if(L){if(J.status&&v.__staleWhileFetching!==void 0)J.status.returnedStale=!0;return v.__staleWhileFetching}else if(v.__returned===v)throw I},B=(I,P)=>{let O=this.#Z?.(X,Y,q);if(O&&O instanceof Promise)O.then((L)=>I(L===void 0?void 0:L),P);H.signal.addEventListener("abort",()=>{if(!J.ignoreFetchAbort||J.allowStaleOnFetchAbort){if(I(void 0),J.allowStaleOnFetchAbort)I=(L)=>V(L,!0)}})};if(J.status)J.status.fetchDispatched=!0;let F=new Promise(B).then(V,W),M=Object.assign(F,{__abortController:H,__staleWhileFetching:Y,__returned:void 0});if(Q===void 0)this.set(X,M,{...q.options,status:void 0}),Q=this.#V.get(X);else this.#H[Q]=M;return M}#G(X){if(!this.#C)return!1;let Q=X;return!!Q&&Q instanceof Promise&&Q.hasOwnProperty("__staleWhileFetching")&&Q.__abortController instanceof l7}async fetch(X,Q={}){let{allowStale:J=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:Z=this.noDisposeOnSet,size:q=0,sizeCalculation:V=this.sizeCalculation,noUpdateTTL:W=this.noUpdateTTL,noDeleteOnFetchRejection:G=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:B=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:I,forceRefresh:P=!1,status:O,signal:L}=Q;if(!this.#C){if(O)O.fetch="get";return this.get(X,{allowStale:J,updateAgeOnGet:K,noDeleteOnStaleGet:Y,status:O})}let x={allowStale:J,updateAgeOnGet:K,noDeleteOnStaleGet:Y,ttl:H,noDisposeOnSet:Z,size:q,sizeCalculation:V,noUpdateTTL:W,noDeleteOnFetchRejection:G,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:M,ignoreFetchAbort:F,status:O,signal:L},v=this.#V.get(X);if(v===void 0){if(O)O.fetch="miss";let g=this.#f(X,v,x,I);return g.__returned=g}else{let g=this.#H[v];if(this.#G(g)){let T=J&&g.__staleWhileFetching!==void 0;if(O){if(O.fetch="inflight",T)O.returnedStale=!0}return T?g.__staleWhileFetching:g.__returned=g}let n=this.#I(v);if(!P&&!n){if(O)O.fetch="hit";if(this.#b(v),K)this.#_(v);if(O)this.#K(O,v);return g}let k=this.#f(X,v,x,I),m=k.__staleWhileFetching!==void 0&&J;if(O){if(O.fetch=n?"stale":"refresh",m&&n)O.returnedStale=!0}return m?k.__staleWhileFetching:k.__returned=k}}async forceFetch(X,Q={}){let J=await this.fetch(X,Q);if(J===void 0)throw Error("fetch() returned undefined");return J}memo(X,Q={}){let J=this.#O;if(!J)throw Error("no memoMethod provided to constructor");let{context:K,forceRefresh:Y,...H}=Q,Z=this.get(X,H);if(!Y&&Z!==void 0)return Z;let q=J(X,Z,{options:H,context:K});return this.set(X,q,H),q}get(X,Q={}){let{allowStale:J=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,status:H}=Q,Z=this.#V.get(X);if(Z!==void 0){let q=this.#H[Z],V=this.#G(q);if(H)this.#K(H,Z);if(this.#I(Z)){if(H)H.get="stale";if(!V){if(!Y)this.#S(X,"expire");if(H&&J)H.returnedStale=!0;return J?q:void 0}else{if(H&&J&&q.__staleWhileFetching!==void 0)H.returnedStale=!0;return J?q.__staleWhileFetching:void 0}}else{if(H)H.get="hit";if(V)return q.__staleWhileFetching;if(this.#b(Z),K)this.#_(Z);return q}}else if(H)H.get="miss"}#u(X,Q){this.#L[Q]=X,this.#N[X]=Q}#b(X){if(X!==this.#B){if(X===this.#M)this.#M=this.#N[X];else this.#u(this.#L[X],this.#N[X]);this.#u(this.#B,X),this.#B=X}}delete(X){return this.#S(X,"delete")}#S(X,Q){let J=!1;if(this.#U!==0){let K=this.#V.get(X);if(K!==void 0)if(J=!0,this.#U===1)this.#m(Q);else{this.#v(K);let Y=this.#H[K];if(this.#G(Y))Y.__abortController.abort(Error("deleted"));else if(this.#j||this.#z){if(this.#j)this.#Y?.(Y,X,Q);if(this.#z)this.#$?.push([Y,X,Q])}if(this.#V.delete(X),this.#q[K]=void 0,this.#H[K]=void 0,K===this.#B)this.#B=this.#L[K];else if(K===this.#M)this.#M=this.#N[K];else{let H=this.#L[K];this.#N[H]=this.#N[K];let Z=this.#N[K];this.#L[Z]=this.#L[K]}this.#U--,this.#P.push(K)}}if(this.#z&&this.#$?.length){let K=this.#$,Y;while(Y=K?.shift())this.#Q?.(...Y)}return J}clear(){return this.#m("delete")}#m(X){for(let Q of this.#R({allowStale:!0})){let J=this.#H[Q];if(this.#G(J))J.__abortController.abort(Error("deleted"));else{let K=this.#q[Q];if(this.#j)this.#Y?.(J,K,X);if(this.#z)this.#$?.push([J,K,X])}}if(this.#V.clear(),this.#H.fill(void 0),this.#q.fill(void 0),this.#F&&this.#D)this.#F.fill(0),this.#D.fill(0);if(this.#w)this.#w.fill(0);if(this.#M=0,this.#B=0,this.#P.length=0,this.#W=0,this.#U=0,this.#z&&this.#$){let Q=this.#$,J;while(J=Q?.shift())this.#Q?.(...J)}}}LU.LRUCache=n9});var Q2=N((c0)=>{var S_=c0&&c0.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(c0,"__esModule",{value:!0});c0.Minipass=c0.isWritable=c0.isReadable=c0.isStream=void 0;var OU=typeof process==="object"&&process?process:{stdout:null,stderr:null},t9=f("events"),DU=S_(f("stream")),x_=f("string_decoder"),v_=(X)=>!!X&&typeof X==="object"&&(X instanceof X2||X instanceof DU.default||(0,c0.isReadable)(X)||(0,c0.isWritable)(X));c0.isStream=v_;var y_=(X)=>!!X&&typeof X==="object"&&X instanceof t9.EventEmitter&&typeof X.pipe==="function"&&X.pipe!==DU.default.Writable.prototype.pipe;c0.isReadable=y_;var k_=(X)=>!!X&&typeof X==="object"&&X instanceof t9.EventEmitter&&typeof X.write==="function"&&typeof X.end==="function";c0.isWritable=k_;var E1=Symbol("EOF"),S1=Symbol("maybeEmitEnd"),m1=Symbol("emittedEnd"),n7=Symbol("emittingEnd"),r8=Symbol("emittedError"),i7=Symbol("closed"),PU=Symbol("read"),o7=Symbol("flush"),jU=Symbol("flushChunk"),U1=Symbol("encoding"),a6=Symbol("decoder"),A0=Symbol("flowing"),s8=Symbol("paused"),t6=Symbol("resume"),R0=Symbol("buffer"),d0=Symbol("pipes"),E0=Symbol("bufferLength"),i9=Symbol("bufferPush"),r7=Symbol("bufferShift"),f0=Symbol("objectMode"),P0=Symbol("destroyed"),o9=Symbol("error"),r9=Symbol("emitData"),wU=Symbol("emitEnd"),s9=Symbol("emitEnd2"),C1=Symbol("async"),a9=Symbol("abort"),s7=Symbol("aborted"),a8=Symbol("signal"),W6=Symbol("dataListeners"),o0=Symbol("discarded"),t8=(X)=>Promise.resolve().then(X),g_=(X)=>X(),h_=(X)=>X==="end"||X==="finish"||X==="prefinish",f_=(X)=>X instanceof ArrayBuffer||!!X&&typeof X==="object"&&X.constructor&&X.constructor.name==="ArrayBuffer"&&X.byteLength>=0,u_=(X)=>!Buffer.isBuffer(X)&&ArrayBuffer.isView(X);class e9{src;dest;opts;ondrain;constructor(X,Q,J){this.src=X,this.dest=Q,this.opts=J,this.ondrain=()=>X[t6](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(X){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class TU extends e9{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(X,Q,J){super(X,Q,J);this.proxyErrors=(K)=>this.dest.emit("error",K),X.on("error",this.proxyErrors)}}var b_=(X)=>!!X.objectMode,m_=(X)=>!X.objectMode&&!!X.encoding&&X.encoding!=="buffer";class X2 extends t9.EventEmitter{[A0]=!1;[s8]=!1;[d0]=[];[R0]=[];[f0];[U1];[C1];[a6];[E1]=!1;[m1]=!1;[n7]=!1;[i7]=!1;[r8]=null;[E0]=0;[P0]=!1;[a8];[s7]=!1;[W6]=0;[o0]=!1;writable=!0;readable=!0;constructor(...X){let Q=X[0]||{};super();if(Q.objectMode&&typeof Q.encoding==="string")throw TypeError("Encoding and objectMode may not be used together");if(b_(Q))this[f0]=!0,this[U1]=null;else if(m_(Q))this[U1]=Q.encoding,this[f0]=!1;else this[f0]=!1,this[U1]=null;if(this[C1]=!!Q.async,this[a6]=this[U1]?new x_.StringDecoder(this[U1]):null,Q&&Q.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[R0]});if(Q&&Q.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[d0]});let{signal:J}=Q;if(J)if(this[a8]=J,J.aborted)this[a9]();else J.addEventListener("abort",()=>this[a9]())}get bufferLength(){return this[E0]}get encoding(){return this[U1]}set encoding(X){throw Error("Encoding must be set at instantiation time")}setEncoding(X){throw Error("Encoding must be set at instantiation time")}get objectMode(){return this[f0]}set objectMode(X){throw Error("objectMode must be set at instantiation time")}get["async"](){return this[C1]}set["async"](X){this[C1]=this[C1]||!!X}[a9](){this[s7]=!0,this.emit("abort",this[a8]?.reason),this.destroy(this[a8]?.reason)}get aborted(){return this[s7]}set aborted(X){}write(X,Q,J){if(this[s7])return!1;if(this[E1])throw Error("write after end");if(this[P0])return this.emit("error",Object.assign(Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof Q==="function")J=Q,Q="utf8";if(!Q)Q="utf8";let K=this[C1]?t8:g_;if(!this[f0]&&!Buffer.isBuffer(X)){if(u_(X))X=Buffer.from(X.buffer,X.byteOffset,X.byteLength);else if(f_(X))X=Buffer.from(X);else if(typeof X!=="string")throw Error("Non-contiguous data written to non-objectMode stream")}if(this[f0]){if(this[A0]&&this[E0]!==0)this[o7](!0);if(this[A0])this.emit("data",X);else this[i9](X);if(this[E0]!==0)this.emit("readable");if(J)K(J);return this[A0]}if(!X.length){if(this[E0]!==0)this.emit("readable");if(J)K(J);return this[A0]}if(typeof X==="string"&&!(Q===this[U1]&&!this[a6]?.lastNeed))X=Buffer.from(X,Q);if(Buffer.isBuffer(X)&&this[U1])X=this[a6].write(X);if(this[A0]&&this[E0]!==0)this[o7](!0);if(this[A0])this.emit("data",X);else this[i9](X);if(this[E0]!==0)this.emit("readable");if(J)K(J);return this[A0]}read(X){if(this[P0])return null;if(this[o0]=!1,this[E0]===0||X===0||X&&X>this[E0])return this[S1](),null;if(this[f0])X=null;if(this[R0].length>1&&!this[f0])this[R0]=[this[U1]?this[R0].join(""):Buffer.concat(this[R0],this[E0])];let Q=this[PU](X||null,this[R0][0]);return this[S1](),Q}[PU](X,Q){if(this[f0])this[r7]();else{let J=Q;if(X===J.length||X===null)this[r7]();else if(typeof J==="string")this[R0][0]=J.slice(X),Q=J.slice(0,X),this[E0]-=X;else this[R0][0]=J.subarray(X),Q=J.subarray(0,X),this[E0]-=X}if(this.emit("data",Q),!this[R0].length&&!this[E1])this.emit("drain");return Q}end(X,Q,J){if(typeof X==="function")J=X,X=void 0;if(typeof Q==="function")J=Q,Q="utf8";if(X!==void 0)this.write(X,Q);if(J)this.once("end",J);if(this[E1]=!0,this.writable=!1,this[A0]||!this[s8])this[S1]();return this}[t6](){if(this[P0])return;if(!this[W6]&&!this[d0].length)this[o0]=!0;if(this[s8]=!1,this[A0]=!0,this.emit("resume"),this[R0].length)this[o7]();else if(this[E1])this[S1]();else this.emit("drain")}resume(){return this[t6]()}pause(){this[A0]=!1,this[s8]=!0,this[o0]=!1}get destroyed(){return this[P0]}get flowing(){return this[A0]}get paused(){return this[s8]}[i9](X){if(this[f0])this[E0]+=1;else this[E0]+=X.length;this[R0].push(X)}[r7](){if(this[f0])this[E0]-=1;else this[E0]-=this[R0][0].length;return this[R0].shift()}[o7](X=!1){do;while(this[jU](this[r7]())&&this[R0].length);if(!X&&!this[R0].length&&!this[E1])this.emit("drain")}[jU](X){return this.emit("data",X),this[A0]}pipe(X,Q){if(this[P0])return X;this[o0]=!1;let J=this[m1];if(Q=Q||{},X===OU.stdout||X===OU.stderr)Q.end=!1;else Q.end=Q.end!==!1;if(Q.proxyErrors=!!Q.proxyErrors,J){if(Q.end)X.end()}else if(this[d0].push(!Q.proxyErrors?new e9(this,X,Q):new TU(this,X,Q)),this[C1])t8(()=>this[t6]());else this[t6]();return X}unpipe(X){let Q=this[d0].find((J)=>J.dest===X);if(Q){if(this[d0].length===1){if(this[A0]&&this[W6]===0)this[A0]=!1;this[d0]=[]}else this[d0].splice(this[d0].indexOf(Q),1);Q.unpipe()}}addListener(X,Q){return this.on(X,Q)}on(X,Q){let J=super.on(X,Q);if(X==="data"){if(this[o0]=!1,this[W6]++,!this[d0].length&&!this[A0])this[t6]()}else if(X==="readable"&&this[E0]!==0)super.emit("readable");else if(h_(X)&&this[m1])super.emit(X),this.removeAllListeners(X);else if(X==="error"&&this[r8]){let K=Q;if(this[C1])t8(()=>K.call(this,this[r8]));else K.call(this,this[r8])}return J}removeListener(X,Q){return this.off(X,Q)}off(X,Q){let J=super.off(X,Q);if(X==="data"){if(this[W6]=this.listeners("data").length,this[W6]===0&&!this[o0]&&!this[d0].length)this[A0]=!1}return J}removeAllListeners(X){let Q=super.removeAllListeners(X);if(X==="data"||X===void 0){if(this[W6]=0,!this[o0]&&!this[d0].length)this[A0]=!1}return Q}get emittedEnd(){return this[m1]}[S1](){if(!this[n7]&&!this[m1]&&!this[P0]&&this[R0].length===0&&this[E1]){if(this[n7]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[i7])this.emit("close");this[n7]=!1}}emit(X,...Q){let J=Q[0];if(X!=="error"&&X!=="close"&&X!==P0&&this[P0])return!1;else if(X==="data")return!this[f0]&&!J?!1:this[C1]?(t8(()=>this[r9](J)),!0):this[r9](J);else if(X==="end")return this[wU]();else if(X==="close"){if(this[i7]=!0,!this[m1]&&!this[P0])return!1;let Y=super.emit("close");return this.removeAllListeners("close"),Y}else if(X==="error"){this[r8]=J,super.emit(o9,J);let Y=!this[a8]||this.listeners("error").length?super.emit("error",J):!1;return this[S1](),Y}else if(X==="resume"){let Y=super.emit("resume");return this[S1](),Y}else if(X==="finish"||X==="prefinish"){let Y=super.emit(X);return this.removeAllListeners(X),Y}let K=super.emit(X,...Q);return this[S1](),K}[r9](X){for(let J of this[d0])if(J.dest.write(X)===!1)this.pause();let Q=this[o0]?!1:super.emit("data",X);return this[S1](),Q}[wU](){if(this[m1])return!1;return this[m1]=!0,this.readable=!1,this[C1]?(t8(()=>this[s9]()),!0):this[s9]()}[s9](){if(this[a6]){let Q=this[a6].end();if(Q){for(let J of this[d0])J.dest.write(Q);if(!this[o0])super.emit("data",Q)}}for(let Q of this[d0])Q.end();let X=super.emit("end");return this.removeAllListeners("end"),X}async collect(){let X=Object.assign([],{dataLength:0});if(!this[f0])X.dataLength=0;let Q=this.promise();return this.on("data",(J)=>{if(X.push(J),!this[f0])X.dataLength+=J.length}),await Q,X}async concat(){if(this[f0])throw Error("cannot concat in objectMode");let X=await this.collect();return this[U1]?X.join(""):Buffer.concat(X,X.dataLength)}async promise(){return new Promise((X,Q)=>{this.on(P0,()=>Q(Error("stream destroyed"))),this.on("error",(J)=>Q(J)),this.on("end",()=>X())})}[Symbol.asyncIterator](){this[o0]=!1;let X=!1,Q=async()=>{return this.pause(),X=!0,{value:void 0,done:!0}};return{next:()=>{if(X)return Q();let K=this.read();if(K!==null)return Promise.resolve({done:!1,value:K});if(this[E1])return Q();let Y,H,Z=(G)=>{this.off("data",q),this.off("end",V),this.off(P0,W),Q(),H(G)},q=(G)=>{this.off("error",Z),this.off("end",V),this.off(P0,W),this.pause(),Y({value:G,done:!!this[E1]})},V=()=>{this.off("error",Z),this.off("data",q),this.off(P0,W),Q(),Y({done:!0,value:void 0})},W=()=>Z(Error("stream destroyed"));return new Promise((G,B)=>{H=B,Y=G,this.once(P0,W),this.once("error",Z),this.once("end",V),this.once("data",q)})},throw:Q,return:Q,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[o0]=!1;let X=!1,Q=()=>{return this.pause(),this.off(o9,Q),this.off(P0,Q),this.off("end",Q),X=!0,{done:!0,value:void 0}},J=()=>{if(X)return Q();let K=this.read();return K===null?Q():{done:!1,value:K}};return this.once("end",Q),this.once(o9,Q),this.once(P0,Q),{next:J,throw:Q,return:Q,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(X){if(this[P0]){if(X)this.emit("error",X);else this.emit(P0);return this}this[P0]=!0,this[o0]=!0,this[R0].length=0,this[E0]=0;let Q=this;if(typeof Q.close==="function"&&!this[i7])Q.close();if(X)this.emit("error",X);else this.emit(P0);return this}static get isStream(){return c0.isStream}}c0.Minipass=X2});var mU=N((U0)=>{var d_=U0&&U0.__createBinding||(Object.create?function(X,Q,J,K){if(K===void 0)K=J;var Y=Object.getOwnPropertyDescriptor(Q,J);if(!Y||("get"in Y?!Q.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return Q[J]}};Object.defineProperty(X,K,Y)}:function(X,Q,J,K){if(K===void 0)K=J;X[K]=Q[J]}),c_=U0&&U0.__setModuleDefault||(Object.create?function(X,Q){Object.defineProperty(X,"default",{enumerable:!0,value:Q})}:function(X,Q){X.default=Q}),p_=U0&&U0.__importStar||function(X){if(X&&X.__esModule)return X;var Q={};if(X!=null){for(var J in X)if(J!=="default"&&Object.prototype.hasOwnProperty.call(X,J))d_(Q,X,J)}return c_(Q,X),Q};Object.defineProperty(U0,"__esModule",{value:!0});U0.PathScurry=U0.Path=U0.PathScurryDarwin=U0.PathScurryPosix=U0.PathScurryWin32=U0.PathScurryBase=U0.PathPosix=U0.PathWin32=U0.PathBase=U0.ChildrenCache=U0.ResolveCache=void 0;var xU=IU(),Q4=f("path"),l_=f("url"),X3=f("fs"),n_=p_(f("fs")),i_=X3.realpathSync.native,a7=f("fs/promises"),_U=Q2(),Q3={lstatSync:X3.lstatSync,readdir:X3.readdir,readdirSync:X3.readdirSync,readlinkSync:X3.readlinkSync,realpathSync:i_,promises:{lstat:a7.lstat,readdir:a7.readdir,readlink:a7.readlink,realpath:a7.realpath}},vU=(X)=>!X||X===Q3||X===n_?Q3:{...Q3,...X,promises:{...Q3.promises,...X.promises||{}}},yU=/^\\\\\?\\([a-z]:)\\?$/i,o_=(X)=>X.replace(/\//g,"\\").replace(yU,"$1\\"),r_=/[\\\/]/,K1=0,kU=1,gU=2,I1=4,hU=6,fU=8,z6=10,uU=12,J1=15,e8=~J1,J2=16,AU=32,J3=64,G1=128,t7=256,X4=512,RU=J3|G1|X4,s_=1023,K2=(X)=>X.isFile()?fU:X.isDirectory()?I1:X.isSymbolicLink()?z6:X.isCharacterDevice()?gU:X.isBlockDevice()?hU:X.isSocket()?uU:X.isFIFO()?kU:K1,EU=new Map,K3=(X)=>{let Q=EU.get(X);if(Q)return Q;let J=X.normalize("NFKD");return EU.set(X,J),J},SU=new Map,e7=(X)=>{let Q=SU.get(X);if(Q)return Q;let J=K3(X.toLowerCase());return SU.set(X,J),J};class J4 extends xU.LRUCache{constructor(){super({max:256})}}U0.ResolveCache=J4;class Y2 extends xU.LRUCache{constructor(X=16384){super({maxSize:X,sizeCalculation:(Q)=>Q.length+1})}}U0.ChildrenCache=Y2;var bU=Symbol("PathScurry setAsCwd");class u0{name;root;roots;parent;nocase;isCWD=!1;#X;#J;get dev(){return this.#J}#Y;get mode(){return this.#Y}#Q;get nlink(){return this.#Q}#Z;get uid(){return this.#Z}#O;get gid(){return this.#O}#U;get rdev(){return this.#U}#W;get blksize(){return this.#W}#V;get ino(){return this.#V}#q;get size(){return this.#q}#H;get blocks(){return this.#H}#N;get atimeMs(){return this.#N}#L;get mtimeMs(){return this.#L}#M;get ctimeMs(){return this.#M}#B;get birthtimeMs(){return this.#B}#P;get atime(){return this.#P}#$;get mtime(){return this.#$}#w;get ctime(){return this.#w}#D;get birthtime(){return this.#D}#F;#j;#C;#z;#T;#_;#K;#x;#I;#E;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(X,Q=K1,J,K,Y,H,Z){if(this.name=X,this.#F=Y?e7(X):K3(X),this.#K=Q&s_,this.nocase=Y,this.roots=K,this.root=J||this,this.#x=H,this.#C=Z.fullpath,this.#T=Z.relative,this.#_=Z.relativePosix,this.parent=Z.parent,this.parent)this.#X=this.parent.#X;else this.#X=vU(Z.fs)}depth(){if(this.#j!==void 0)return this.#j;if(!this.parent)return this.#j=0;return this.#j=this.parent.depth()+1}childrenCache(){return this.#x}resolve(X){if(!X)return this;let Q=this.getRootString(X),K=X.substring(Q.length).split(this.splitSep);return Q?this.getRoot(Q).#v(K):this.#v(K)}#v(X){let Q=this;for(let J of X)Q=Q.child(J);return Q}children(){let X=this.#x.get(this);if(X)return X;let Q=Object.assign([],{provisional:0});return this.#x.set(this,Q),this.#K&=~J2,Q}child(X,Q){if(X===""||X===".")return this;if(X==="..")return this.parent||this;let J=this.children(),K=this.nocase?e7(X):K3(X);for(let q of J)if(q.#F===K)return q;let Y=this.parent?this.sep:"",H=this.#C?this.#C+Y+X:void 0,Z=this.newChild(X,K1,{...Q,parent:this,fullpath:H});if(!this.canReaddir())Z.#K|=G1;return J.push(Z),Z}relative(){if(this.isCWD)return"";if(this.#T!==void 0)return this.#T;let X=this.name,Q=this.parent;if(!Q)return this.#T=this.name;let J=Q.relative();return J+(!J||!Q.parent?"":this.sep)+X}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let X=this.name,Q=this.parent;if(!Q)return this.#_=this.fullpathPosix();let J=Q.relativePosix();return J+(!J||!Q.parent?"":"/")+X}fullpath(){if(this.#C!==void 0)return this.#C;let X=this.name,Q=this.parent;if(!Q)return this.#C=this.name;let K=Q.fullpath()+(!Q.parent?"":this.sep)+X;return this.#C=K}fullpathPosix(){if(this.#z!==void 0)return this.#z;if(this.sep==="/")return this.#z=this.fullpath();if(!this.parent){let K=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(K))return this.#z=`//?/${K}`;else return this.#z=K}let X=this.parent,Q=X.fullpathPosix(),J=Q+(!Q||!X.parent?"":"/")+this.name;return this.#z=J}isUnknown(){return(this.#K&J1)===K1}isType(X){return this[`is${X}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#K&J1)===fU}isDirectory(){return(this.#K&J1)===I1}isCharacterDevice(){return(this.#K&J1)===gU}isBlockDevice(){return(this.#K&J1)===hU}isFIFO(){return(this.#K&J1)===kU}isSocket(){return(this.#K&J1)===uU}isSymbolicLink(){return(this.#K&z6)===z6}lstatCached(){return this.#K&AU?this:void 0}readlinkCached(){return this.#I}realpathCached(){return this.#E}readdirCached(){let X=this.children();return X.slice(0,X.provisional)}canReadlink(){if(this.#I)return!0;if(!this.parent)return!1;let X=this.#K&J1;return!(X!==K1&&X!==z6||this.#K&t7||this.#K&G1)}calledReaddir(){return!!(this.#K&J2)}isENOENT(){return!!(this.#K&G1)}isNamed(X){return!this.nocase?this.#F===K3(X):this.#F===e7(X)}async readlink(){let X=this.#I;if(X)return X;if(!this.canReadlink())return;if(!this.parent)return;try{let Q=await this.#X.promises.readlink(this.fullpath()),J=(await this.parent.realpath())?.resolve(Q);if(J)return this.#I=J}catch(Q){this.#G(Q.code);return}}readlinkSync(){let X=this.#I;if(X)return X;if(!this.canReadlink())return;if(!this.parent)return;try{let Q=this.#X.readlinkSync(this.fullpath()),J=this.parent.realpathSync()?.resolve(Q);if(J)return this.#I=J}catch(Q){this.#G(Q.code);return}}#y(X){this.#K|=J2;for(let Q=X.provisional;Q<X.length;Q++){let J=X[Q];if(J)J.#k()}}#k(){if(this.#K&G1)return;this.#K=(this.#K|G1)&e8,this.#A()}#A(){let X=this.children();X.provisional=0;for(let Q of X)Q.#k()}#R(){this.#K|=X4,this.#g()}#g(){if(this.#K&J3)return;let X=this.#K;if((X&J1)===I1)X&=e8;this.#K=X|J3,this.#A()}#h(X=""){if(X==="ENOTDIR"||X==="EPERM")this.#g();else if(X==="ENOENT")this.#k();else this.children().provisional=0}#f(X=""){if(X==="ENOTDIR")this.parent.#g();else if(X==="ENOENT")this.#k()}#G(X=""){let Q=this.#K;if(Q|=t7,X==="ENOENT")Q|=G1;if(X==="EINVAL"||X==="UNKNOWN")Q&=e8;if(this.#K=Q,X==="ENOTDIR"&&this.parent)this.parent.#g()}#u(X,Q){return this.#S(X,Q)||this.#b(X,Q)}#b(X,Q){let J=K2(X),K=this.newChild(X.name,J,{parent:this}),Y=K.#K&J1;if(Y!==I1&&Y!==z6&&Y!==K1)K.#K|=J3;return Q.unshift(K),Q.provisional++,K}#S(X,Q){for(let J=Q.provisional;J<Q.length;J++){let K=Q[J];if((this.nocase?e7(X.name):K3(X.name))!==K.#F)continue;return this.#m(X,K,J,Q)}}#m(X,Q,J,K){let Y=Q.name;if(Q.#K=Q.#K&e8|K2(X),Y!==X.name)Q.name=X.name;if(J!==K.provisional){if(J===K.length-1)K.pop();else K.splice(J,1);K.unshift(Q)}return K.provisional++,Q}async lstat(){if((this.#K&G1)===0)try{return this.#l(await this.#X.promises.lstat(this.fullpath())),this}catch(X){this.#f(X.code)}}lstatSync(){if((this.#K&G1)===0)try{return this.#l(this.#X.lstatSync(this.fullpath())),this}catch(X){this.#f(X.code)}}#l(X){let{atime:Q,atimeMs:J,birthtime:K,birthtimeMs:Y,blksize:H,blocks:Z,ctime:q,ctimeMs:V,dev:W,gid:G,ino:B,mode:F,mtime:M,mtimeMs:I,nlink:P,rdev:O,size:L,uid:x}=X;this.#P=Q,this.#N=J,this.#D=K,this.#B=Y,this.#W=H,this.#H=Z,this.#w=q,this.#M=V,this.#J=W,this.#O=G,this.#V=B,this.#Y=F,this.#$=M,this.#L=I,this.#Q=P,this.#U=O,this.#q=L,this.#Z=x;let v=K2(X);if(this.#K=this.#K&e8|v|AU,v!==K1&&v!==I1&&v!==z6)this.#K|=J3}#c=[];#p=!1;#n(X){this.#p=!1;let Q=this.#c.slice();this.#c.length=0,Q.forEach((J)=>J(null,X))}readdirCB(X,Q=!1){if(!this.canReaddir()){if(Q)X(null,[]);else queueMicrotask(()=>X(null,[]));return}let J=this.children();if(this.calledReaddir()){let Y=J.slice(0,J.provisional);if(Q)X(null,Y);else queueMicrotask(()=>X(null,Y));return}if(this.#c.push(X),this.#p)return;this.#p=!0;let K=this.fullpath();this.#X.readdir(K,{withFileTypes:!0},(Y,H)=>{if(Y)this.#h(Y.code),J.provisional=0;else{for(let Z of H)this.#u(Z,J);this.#y(J)}this.#n(J.slice(0,J.provisional));return})}#d;async readdir(){if(!this.canReaddir())return[];let X=this.children();if(this.calledReaddir())return X.slice(0,X.provisional);let Q=this.fullpath();if(this.#d)await this.#d;else{let J=()=>{};this.#d=new Promise((K)=>J=K);try{for(let K of await this.#X.promises.readdir(Q,{withFileTypes:!0}))this.#u(K,X);this.#y(X)}catch(K){this.#h(K.code),X.provisional=0}this.#d=void 0,J()}return X.slice(0,X.provisional)}readdirSync(){if(!this.canReaddir())return[];let X=this.children();if(this.calledReaddir())return X.slice(0,X.provisional);let Q=this.fullpath();try{for(let J of this.#X.readdirSync(Q,{withFileTypes:!0}))this.#u(J,X);this.#y(X)}catch(J){this.#h(J.code),X.provisional=0}return X.slice(0,X.provisional)}canReaddir(){if(this.#K&RU)return!1;let X=J1&this.#K;if(!(X===K1||X===I1||X===z6))return!1;return!0}shouldWalk(X,Q){return(this.#K&I1)===I1&&!(this.#K&RU)&&!X.has(this)&&(!Q||Q(this))}async realpath(){if(this.#E)return this.#E;if((X4|t7|G1)&this.#K)return;try{let X=await this.#X.promises.realpath(this.fullpath());return this.#E=this.resolve(X)}catch(X){this.#R()}}realpathSync(){if(this.#E)return this.#E;if((X4|t7|G1)&this.#K)return;try{let X=this.#X.realpathSync(this.fullpath());return this.#E=this.resolve(X)}catch(X){this.#R()}}[bU](X){if(X===this)return;X.isCWD=!1,this.isCWD=!0;let Q=new Set([]),J=[],K=this;while(K&&K.parent)Q.add(K),K.#T=J.join(this.sep),K.#_=J.join("/"),K=K.parent,J.push("..");K=X;while(K&&K.parent&&!Q.has(K))K.#T=void 0,K.#_=void 0,K=K.parent}}U0.PathBase=u0;class Y3 extends u0{sep="\\";splitSep=r_;constructor(X,Q=K1,J,K,Y,H,Z){super(X,Q,J,K,Y,H,Z)}newChild(X,Q=K1,J={}){return new Y3(X,Q,this.root,this.roots,this.nocase,this.childrenCache(),J)}getRootString(X){return Q4.win32.parse(X).root}getRoot(X){if(X=o_(X.toUpperCase()),X===this.root.name)return this.root;for(let[Q,J]of Object.entries(this.roots))if(this.sameRoot(X,Q))return this.roots[X]=J;return this.roots[X]=new Y4(X,this).root}sameRoot(X,Q=this.root.name){return X=X.toUpperCase().replace(/\//g,"\\").replace(yU,"$1\\"),X===Q}}U0.PathWin32=Y3;class H3 extends u0{splitSep="/";sep="/";constructor(X,Q=K1,J,K,Y,H,Z){super(X,Q,J,K,Y,H,Z)}getRootString(X){return X.startsWith("/")?"/":""}getRoot(X){return this.root}newChild(X,Q=K1,J={}){return new H3(X,Q,this.root,this.roots,this.nocase,this.childrenCache(),J)}}U0.PathPosix=H3;class K4{root;rootPath;roots;cwd;#X;#J;#Y;nocase;#Q;constructor(X=process.cwd(),Q,J,{nocase:K,childrenCacheSize:Y=16384,fs:H=Q3}={}){if(this.#Q=vU(H),X instanceof URL||X.startsWith("file://"))X=(0,l_.fileURLToPath)(X);let Z=Q.resolve(X);this.roots=Object.create(null),this.rootPath=this.parseRootPath(Z),this.#X=new J4,this.#J=new J4,this.#Y=new Y2(Y);let q=Z.substring(this.rootPath.length).split(J);if(q.length===1&&!q[0])q.pop();if(K===void 0)throw TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=K,this.root=this.newRoot(this.#Q),this.roots[this.rootPath]=this.root;let V=this.root,W=q.length-1,G=Q.sep,B=this.rootPath,F=!1;for(let M of q){let I=W--;V=V.child(M,{relative:Array(I).fill("..").join(G),relativePosix:Array(I).fill("..").join("/"),fullpath:B+=(F?"":G)+M}),F=!0}this.cwd=V}depth(X=this.cwd){if(typeof X==="string")X=this.cwd.resolve(X);return X.depth()}childrenCache(){return this.#Y}resolve(...X){let Q="";for(let Y=X.length-1;Y>=0;Y--){let H=X[Y];if(!H||H===".")continue;if(Q=Q?`${H}/${Q}`:H,this.isAbsolute(H))break}let J=this.#X.get(Q);if(J!==void 0)return J;let K=this.cwd.resolve(Q).fullpath();return this.#X.set(Q,K),K}resolvePosix(...X){let Q="";for(let Y=X.length-1;Y>=0;Y--){let H=X[Y];if(!H||H===".")continue;if(Q=Q?`${H}/${Q}`:H,this.isAbsolute(H))break}let J=this.#J.get(Q);if(J!==void 0)return J;let K=this.cwd.resolve(Q).fullpathPosix();return this.#J.set(Q,K),K}relative(X=this.cwd){if(typeof X==="string")X=this.cwd.resolve(X);return X.relative()}relativePosix(X=this.cwd){if(typeof X==="string")X=this.cwd.resolve(X);return X.relativePosix()}basename(X=this.cwd){if(typeof X==="string")X=this.cwd.resolve(X);return X.name}dirname(X=this.cwd){if(typeof X==="string")X=this.cwd.resolve(X);return(X.parent||X).fullpath()}async readdir(X=this.cwd,Q={withFileTypes:!0}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;let{withFileTypes:J}=Q;if(!X.canReaddir())return[];else{let K=await X.readdir();return J?K:K.map((Y)=>Y.name)}}readdirSync(X=this.cwd,Q={withFileTypes:!0}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;let{withFileTypes:J=!0}=Q;if(!X.canReaddir())return[];else if(J)return X.readdirSync();else return X.readdirSync().map((K)=>K.name)}async lstat(X=this.cwd){if(typeof X==="string")X=this.cwd.resolve(X);return X.lstat()}lstatSync(X=this.cwd){if(typeof X==="string")X=this.cwd.resolve(X);return X.lstatSync()}async readlink(X=this.cwd,{withFileTypes:Q}={withFileTypes:!1}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X.withFileTypes,X=this.cwd;let J=await X.readlink();return Q?J:J?.fullpath()}readlinkSync(X=this.cwd,{withFileTypes:Q}={withFileTypes:!1}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X.withFileTypes,X=this.cwd;let J=X.readlinkSync();return Q?J:J?.fullpath()}async realpath(X=this.cwd,{withFileTypes:Q}={withFileTypes:!1}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X.withFileTypes,X=this.cwd;let J=await X.realpath();return Q?J:J?.fullpath()}realpathSync(X=this.cwd,{withFileTypes:Q}={withFileTypes:!1}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X.withFileTypes,X=this.cwd;let J=X.realpathSync();return Q?J:J?.fullpath()}async walk(X=this.cwd,Q={}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;let{withFileTypes:J=!0,follow:K=!1,filter:Y,walkFilter:H}=Q,Z=[];if(!Y||Y(X))Z.push(J?X:X.fullpath());let q=new Set,V=(G,B)=>{q.add(G),G.readdirCB((F,M)=>{if(F)return B(F);let I=M.length;if(!I)return B();let P=()=>{if(--I===0)B()};for(let O of M){if(!Y||Y(O))Z.push(J?O:O.fullpath());if(K&&O.isSymbolicLink())O.realpath().then((L)=>L?.isUnknown()?L.lstat():L).then((L)=>L?.shouldWalk(q,H)?V(L,P):P());else if(O.shouldWalk(q,H))V(O,P);else P()}},!0)},W=X;return new Promise((G,B)=>{V(W,(F)=>{if(F)return B(F);G(Z)})})}walkSync(X=this.cwd,Q={}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;let{withFileTypes:J=!0,follow:K=!1,filter:Y,walkFilter:H}=Q,Z=[];if(!Y||Y(X))Z.push(J?X:X.fullpath());let q=new Set([X]);for(let V of q){let W=V.readdirSync();for(let G of W){if(!Y||Y(G))Z.push(J?G:G.fullpath());let B=G;if(G.isSymbolicLink()){if(!(K&&(B=G.realpathSync())))continue;if(B.isUnknown())B.lstatSync()}if(B.shouldWalk(q,H))q.add(B)}}return Z}[Symbol.asyncIterator](){return this.iterate()}iterate(X=this.cwd,Q={}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;return this.stream(X,Q)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(X=this.cwd,Q={}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;let{withFileTypes:J=!0,follow:K=!1,filter:Y,walkFilter:H}=Q;if(!Y||Y(X))yield J?X:X.fullpath();let Z=new Set([X]);for(let q of Z){let V=q.readdirSync();for(let W of V){if(!Y||Y(W))yield J?W:W.fullpath();let G=W;if(W.isSymbolicLink()){if(!(K&&(G=W.realpathSync())))continue;if(G.isUnknown())G.lstatSync()}if(G.shouldWalk(Z,H))Z.add(G)}}}stream(X=this.cwd,Q={}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;let{withFileTypes:J=!0,follow:K=!1,filter:Y,walkFilter:H}=Q,Z=new _U.Minipass({objectMode:!0});if(!Y||Y(X))Z.write(J?X:X.fullpath());let q=new Set,V=[X],W=0,G=()=>{let B=!1;while(!B){let F=V.shift();if(!F){if(W===0)Z.end();return}W++,q.add(F);let M=(P,O,L=!1)=>{if(P)return Z.emit("error",P);if(K&&!L){let x=[];for(let v of O)if(v.isSymbolicLink())x.push(v.realpath().then((g)=>g?.isUnknown()?g.lstat():g));if(x.length){Promise.all(x).then(()=>M(null,O,!0));return}}for(let x of O)if(x&&(!Y||Y(x))){if(!Z.write(J?x:x.fullpath()))B=!0}W--;for(let x of O){let v=x.realpathCached()||x;if(v.shouldWalk(q,H))V.push(v)}if(B&&!Z.flowing)Z.once("drain",G);else if(!I)G()},I=!0;F.readdirCB(M,!0),I=!1}};return G(),Z}streamSync(X=this.cwd,Q={}){if(typeof X==="string")X=this.cwd.resolve(X);else if(!(X instanceof u0))Q=X,X=this.cwd;let{withFileTypes:J=!0,follow:K=!1,filter:Y,walkFilter:H}=Q,Z=new _U.Minipass({objectMode:!0}),q=new Set;if(!Y||Y(X))Z.write(J?X:X.fullpath());let V=[X],W=0,G=()=>{let B=!1;while(!B){let F=V.shift();if(!F){if(W===0)Z.end();return}W++,q.add(F);let M=F.readdirSync();for(let I of M)if(!Y||Y(I)){if(!Z.write(J?I:I.fullpath()))B=!0}W--;for(let I of M){let P=I;if(I.isSymbolicLink()){if(!(K&&(P=I.realpathSync())))continue;if(P.isUnknown())P.lstatSync()}if(P.shouldWalk(q,H))V.push(P)}}if(B&&!Z.flowing)Z.once("drain",G)};return G(),Z}chdir(X=this.cwd){let Q=this.cwd;this.cwd=typeof X==="string"?this.cwd.resolve(X):X,this.cwd[bU](Q)}}U0.PathScurryBase=K4;class Y4 extends K4{sep="\\";constructor(X=process.cwd(),Q={}){let{nocase:J=!0}=Q;super(X,Q4.win32,"\\",{...Q,nocase:J});this.nocase=J;for(let K=this.cwd;K;K=K.parent)K.nocase=this.nocase}parseRootPath(X){return Q4.win32.parse(X).root.toUpperCase()}newRoot(X){return new Y3(this.rootPath,I1,void 0,this.roots,this.nocase,this.childrenCache(),{fs:X})}isAbsolute(X){return X.startsWith("/")||X.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(X)}}U0.PathScurryWin32=Y4;class H4 extends K4{sep="/";constructor(X=process.cwd(),Q={}){let{nocase:J=!1}=Q;super(X,Q4.posix,"/",{...Q,nocase:J});this.nocase=J}parseRootPath(X){return"/"}newRoot(X){return new H3(this.rootPath,I1,void 0,this.roots,this.nocase,this.childrenCache(),{fs:X})}isAbsolute(X){return X.startsWith("/")}}U0.PathScurryPosix=H4;class H2 extends H4{constructor(X=process.cwd(),Q={}){let{nocase:J=!0}=Q;super(X,{...Q,nocase:J})}}U0.PathScurryDarwin=H2;U0.Path=process.platform==="win32"?Y3:H3;U0.PathScurry=process.platform==="win32"?Y4:process.platform==="darwin"?H2:H4});var q2=N((dU)=>{Object.defineProperty(dU,"__esModule",{value:!0});dU.Pattern=void 0;var a_=u1(),t_=(X)=>X.length>=1,e_=(X)=>X.length>=1;class Z2{#X;#J;#Y;length;#Q;#Z;#O;#U;#W;#V;#q=!0;constructor(X,Q,J,K){if(!t_(X))throw TypeError("empty pattern list");if(!e_(Q))throw TypeError("empty glob list");if(Q.length!==X.length)throw TypeError("mismatched pattern list and glob list lengths");if(this.length=X.length,J<0||J>=this.length)throw TypeError("index out of range");if(this.#X=X,this.#J=Q,this.#Y=J,this.#Q=K,this.#Y===0){if(this.isUNC()){let[Y,H,Z,q,...V]=this.#X,[W,G,B,F,...M]=this.#J;if(V[0]==="")V.shift(),M.shift();let I=[Y,H,Z,q,""].join("/"),P=[W,G,B,F,""].join("/");this.#X=[I,...V],this.#J=[P,...M],this.length=this.#X.length}else if(this.isDrive()||this.isAbsolute()){let[Y,...H]=this.#X,[Z,...q]=this.#J;if(H[0]==="")H.shift(),q.shift();let V=Y+"/",W=Z+"/";this.#X=[V,...H],this.#J=[W,...q],this.length=this.#X.length}}}pattern(){return this.#X[this.#Y]}isString(){return typeof this.#X[this.#Y]==="string"}isGlobstar(){return this.#X[this.#Y]===a_.GLOBSTAR}isRegExp(){return this.#X[this.#Y]instanceof RegExp}globString(){return this.#O=this.#O||(this.#Y===0?this.isAbsolute()?this.#J[0]+this.#J.slice(1).join("/"):this.#J.join("/"):this.#J.slice(this.#Y).join("/"))}hasMore(){return this.length>this.#Y+1}rest(){if(this.#Z!==void 0)return this.#Z;if(!this.hasMore())return this.#Z=null;return this.#Z=new Z2(this.#X,this.#J,this.#Y+1,this.#Q),this.#Z.#V=this.#V,this.#Z.#W=this.#W,this.#Z.#U=this.#U,this.#Z}isUNC(){let X=this.#X;return this.#W!==void 0?this.#W:this.#W=this.#Q==="win32"&&this.#Y===0&&X[0]===""&&X[1]===""&&typeof X[2]==="string"&&!!X[2]&&typeof X[3]==="string"&&!!X[3]}isDrive(){let X=this.#X;return this.#U!==void 0?this.#U:this.#U=this.#Q==="win32"&&this.#Y===0&&this.length>1&&typeof X[0]==="string"&&/^[a-z]:$/i.test(X[0])}isAbsolute(){let X=this.#X;return this.#V!==void 0?this.#V:this.#V=X[0]===""&&X.length>1||this.isDrive()||this.isUNC()}root(){let X=this.#X[0];return typeof X==="string"&&this.isAbsolute()&&this.#Y===0?X:""}checkFollowGlobstar(){return!(this.#Y===0||!this.isGlobstar()||!this.#q)}markFollowGlobstar(){if(this.#Y===0||!this.isGlobstar()||!this.#q)return!1;return this.#q=!1,!0}}dU.Pattern=Z2});var V2=N((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.Ignore=void 0;var pU=u1(),XA=q2(),QA=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class lU{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(X,{nobrace:Q,nocase:J,noext:K,noglobstar:Y,platform:H=QA}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=H,this.mmopts={dot:!0,nobrace:Q,nocase:J,noext:K,noglobstar:Y,optimizationLevel:2,platform:H,nocomment:!0,nonegate:!0};for(let Z of X)this.add(Z)}add(X){let Q=new pU.Minimatch(X,this.mmopts);for(let J=0;J<Q.set.length;J++){let K=Q.set[J],Y=Q.globParts[J];if(!K||!Y)throw Error("invalid pattern object");while(K[0]==="."&&Y[0]===".")K.shift(),Y.shift();let H=new XA.Pattern(K,Y,0,this.platform),Z=new pU.Minimatch(H.globString(),this.mmopts),q=Y[Y.length-1]==="**",V=H.isAbsolute();if(V)this.absolute.push(Z);else this.relative.push(Z);if(q)if(V)this.absoluteChildren.push(Z);else this.relativeChildren.push(Z)}}ignored(X){let Q=X.fullpath(),J=`${Q}/`,K=X.relative()||".",Y=`${K}/`;for(let H of this.relative)if(H.match(K)||H.match(Y))return!0;for(let H of this.absolute)if(H.match(Q)||H.match(J))return!0;return!1}childrenIgnored(X){let Q=X.fullpath()+"/",J=(X.relative()||".")+"/";for(let K of this.relativeChildren)if(K.match(J))return!0;for(let K of this.absoluteChildren)if(K.match(Q))return!0;return!1}}nU.Ignore=lU});var aU=N((rU)=>{Object.defineProperty(rU,"__esModule",{value:!0});rU.Processor=rU.SubWalks=rU.MatchRecord=rU.HasWalkedCache=void 0;var oU=u1();class Z4{store;constructor(X=new Map){this.store=X}copy(){return new Z4(new Map(this.store))}hasWalked(X,Q){return this.store.get(X.fullpath())?.has(Q.globString())}storeWalked(X,Q){let J=X.fullpath(),K=this.store.get(J);if(K)K.add(Q.globString());else this.store.set(J,new Set([Q.globString()]))}}rU.HasWalkedCache=Z4;class U2{store=new Map;add(X,Q,J){let K=(Q?2:0)|(J?1:0),Y=this.store.get(X);this.store.set(X,Y===void 0?K:K&Y)}entries(){return[...this.store.entries()].map(([X,Q])=>[X,!!(Q&2),!!(Q&1)])}}rU.MatchRecord=U2;class G2{store=new Map;add(X,Q){if(!X.canReaddir())return;let J=this.store.get(X);if(J){if(!J.find((K)=>K.globString()===Q.globString()))J.push(Q)}else this.store.set(X,[Q])}get(X){let Q=this.store.get(X);if(!Q)throw Error("attempting to walk unknown path");return Q}entries(){return this.keys().map((X)=>[X,this.store.get(X)])}keys(){return[...this.store.keys()].filter((X)=>X.canReaddir())}}rU.SubWalks=G2;class W2{hasWalkedCache;matches=new U2;subwalks=new G2;patterns;follow;dot;opts;constructor(X,Q){this.opts=X,this.follow=!!X.follow,this.dot=!!X.dot,this.hasWalkedCache=Q?Q.copy():new Z4}processPatterns(X,Q){this.patterns=Q;let J=Q.map((K)=>[X,K]);for(let[K,Y]of J){this.hasWalkedCache.storeWalked(K,Y);let H=Y.root(),Z=Y.isAbsolute()&&this.opts.absolute!==!1;if(H){K=K.resolve(H==="/"&&this.opts.root!==void 0?this.opts.root:H);let G=Y.rest();if(!G){this.matches.add(K,!0,!1);continue}else Y=G}if(K.isENOENT())continue;let q,V,W=!1;while(typeof(q=Y.pattern())==="string"&&(V=Y.rest()))K=K.resolve(q),Y=V,W=!0;if(q=Y.pattern(),V=Y.rest(),W){if(this.hasWalkedCache.hasWalked(K,Y))continue;this.hasWalkedCache.storeWalked(K,Y)}if(typeof q==="string"){let G=q===".."||q===""||q===".";this.matches.add(K.resolve(q),Z,G);continue}else if(q===oU.GLOBSTAR){if(!K.isSymbolicLink()||this.follow||Y.checkFollowGlobstar())this.subwalks.add(K,Y);let G=V?.pattern(),B=V?.rest();if(!V||(G===""||G===".")&&!B)this.matches.add(K,Z,G===""||G===".");else if(G===".."){let F=K.parent||K;if(!B)this.matches.add(F,Z,!0);else if(!this.hasWalkedCache.hasWalked(F,B))this.subwalks.add(F,B)}}else if(q instanceof RegExp)this.subwalks.add(K,Y)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new W2(this.opts,this.hasWalkedCache)}filterEntries(X,Q){let J=this.subwalks.get(X),K=this.child();for(let Y of Q)for(let H of J){let Z=H.isAbsolute(),q=H.pattern(),V=H.rest();if(q===oU.GLOBSTAR)K.testGlobstar(Y,H,V,Z);else if(q instanceof RegExp)K.testRegExp(Y,q,V,Z);else K.testString(Y,q,V,Z)}return K}testGlobstar(X,Q,J,K){if(this.dot||!X.name.startsWith(".")){if(!Q.hasMore())this.matches.add(X,K,!1);if(X.canReaddir()){if(this.follow||!X.isSymbolicLink())this.subwalks.add(X,Q);else if(X.isSymbolicLink()){if(J&&Q.checkFollowGlobstar())this.subwalks.add(X,J);else if(Q.markFollowGlobstar())this.subwalks.add(X,Q)}}}if(J){let Y=J.pattern();if(typeof Y==="string"&&Y!==".."&&Y!==""&&Y!==".")this.testString(X,Y,J.rest(),K);else if(Y===".."){let H=X.parent||X;this.subwalks.add(H,J)}else if(Y instanceof RegExp)this.testRegExp(X,Y,J.rest(),K)}}testRegExp(X,Q,J,K){if(!Q.test(X.name))return;if(!J)this.matches.add(X,K,!1);else this.subwalks.add(X,J)}testString(X,Q,J,K){if(!X.isNamed(Q))return;if(!J)this.matches.add(X,K,!1);else this.subwalks.add(X,J)}}rU.Processor=W2});var YG=N((JG)=>{Object.defineProperty(JG,"__esModule",{value:!0});JG.GlobStream=JG.GlobWalker=JG.GlobUtil=void 0;var HA=Q2(),tU=V2(),eU=aU(),ZA=(X,Q)=>typeof X==="string"?new tU.Ignore([X],Q):Array.isArray(X)?new tU.Ignore(X,Q):X;class q4{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#X=[];#J;#Y;signal;maxDepth;includeChildMatches;constructor(X,Q,J){if(this.patterns=X,this.path=Q,this.opts=J,this.#Y=!J.posix&&J.platform==="win32"?"\\":"/",this.includeChildMatches=J.includeChildMatches!==!1,J.ignore||!this.includeChildMatches){if(this.#J=ZA(J.ignore??[],J),!this.includeChildMatches&&typeof this.#J.add!=="function")throw Error("cannot ignore child matches, ignore lacks add() method.")}if(this.maxDepth=J.maxDepth||1/0,J.signal)this.signal=J.signal,this.signal.addEventListener("abort",()=>{this.#X.length=0})}#Q(X){return this.seen.has(X)||!!this.#J?.ignored?.(X)}#Z(X){return!!this.#J?.childrenIgnored?.(X)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let X=void 0;while(!this.paused&&(X=this.#X.shift()))X()}onResume(X){if(this.signal?.aborted)return;if(!this.paused)X();else this.#X.push(X)}async matchCheck(X,Q){if(Q&&this.opts.nodir)return;let J;if(this.opts.realpath){if(J=X.realpathCached()||await X.realpath(),!J)return;X=J}let Y=X.isUnknown()||this.opts.stat?await X.lstat():X;if(this.opts.follow&&this.opts.nodir&&Y?.isSymbolicLink()){let H=await Y.realpath();if(H&&(H.isUnknown()||this.opts.stat))await H.lstat()}return this.matchCheckTest(Y,Q)}matchCheckTest(X,Q){return X&&(this.maxDepth===1/0||X.depth()<=this.maxDepth)&&(!Q||X.canReaddir())&&(!this.opts.nodir||!X.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!X.isSymbolicLink()||!X.realpathCached()?.isDirectory())&&!this.#Q(X)?X:void 0}matchCheckSync(X,Q){if(Q&&this.opts.nodir)return;let J;if(this.opts.realpath){if(J=X.realpathCached()||X.realpathSync(),!J)return;X=J}let Y=X.isUnknown()||this.opts.stat?X.lstatSync():X;if(this.opts.follow&&this.opts.nodir&&Y?.isSymbolicLink()){let H=Y.realpathSync();if(H&&(H?.isUnknown()||this.opts.stat))H.lstatSync()}return this.matchCheckTest(Y,Q)}matchFinish(X,Q){if(this.#Q(X))return;if(!this.includeChildMatches&&this.#J?.add){let Y=`${X.relativePosix()}/**`;this.#J.add(Y)}let J=this.opts.absolute===void 0?Q:this.opts.absolute;this.seen.add(X);let K=this.opts.mark&&X.isDirectory()?this.#Y:"";if(this.opts.withFileTypes)this.matchEmit(X);else if(J){let Y=this.opts.posix?X.fullpathPosix():X.fullpath();this.matchEmit(Y+K)}else{let Y=this.opts.posix?X.relativePosix():X.relative(),H=this.opts.dotRelative&&!Y.startsWith(".."+this.#Y)?"."+this.#Y:"";this.matchEmit(!Y?"."+K:H+Y+K)}}async match(X,Q,J){let K=await this.matchCheck(X,J);if(K)this.matchFinish(K,Q)}matchSync(X,Q,J){let K=this.matchCheckSync(X,J);if(K)this.matchFinish(K,Q)}walkCB(X,Q,J){if(this.signal?.aborted)J();this.walkCB2(X,Q,new eU.Processor(this.opts),J)}walkCB2(X,Q,J,K){if(this.#Z(X))return K();if(this.signal?.aborted)K();if(this.paused){this.onResume(()=>this.walkCB2(X,Q,J,K));return}J.processPatterns(X,Q);let Y=1,H=()=>{if(--Y===0)K()};for(let[Z,q,V]of J.matches.entries()){if(this.#Q(Z))continue;Y++,this.match(Z,q,V).then(()=>H())}for(let Z of J.subwalkTargets()){if(this.maxDepth!==1/0&&Z.depth()>=this.maxDepth)continue;Y++;let q=Z.readdirCached();if(Z.calledReaddir())this.walkCB3(Z,q,J,H);else Z.readdirCB((V,W)=>this.walkCB3(Z,W,J,H),!0)}H()}walkCB3(X,Q,J,K){J=J.filterEntries(X,Q);let Y=1,H=()=>{if(--Y===0)K()};for(let[Z,q,V]of J.matches.entries()){if(this.#Q(Z))continue;Y++,this.match(Z,q,V).then(()=>H())}for(let[Z,q]of J.subwalks.entries())Y++,this.walkCB2(Z,q,J.child(),H);H()}walkCBSync(X,Q,J){if(this.signal?.aborted)J();this.walkCB2Sync(X,Q,new eU.Processor(this.opts),J)}walkCB2Sync(X,Q,J,K){if(this.#Z(X))return K();if(this.signal?.aborted)K();if(this.paused){this.onResume(()=>this.walkCB2Sync(X,Q,J,K));return}J.processPatterns(X,Q);let Y=1,H=()=>{if(--Y===0)K()};for(let[Z,q,V]of J.matches.entries()){if(this.#Q(Z))continue;this.matchSync(Z,q,V)}for(let Z of J.subwalkTargets()){if(this.maxDepth!==1/0&&Z.depth()>=this.maxDepth)continue;Y++;let q=Z.readdirSync();this.walkCB3Sync(Z,q,J,H)}H()}walkCB3Sync(X,Q,J,K){J=J.filterEntries(X,Q);let Y=1,H=()=>{if(--Y===0)K()};for(let[Z,q,V]of J.matches.entries()){if(this.#Q(Z))continue;this.matchSync(Z,q,V)}for(let[Z,q]of J.subwalks.entries())Y++,this.walkCB2Sync(Z,q,J.child(),H);H()}}JG.GlobUtil=q4;class XG extends q4{matches=new Set;constructor(X,Q,J){super(X,Q,J)}matchEmit(X){this.matches.add(X)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())await this.path.lstat();return await new Promise((X,Q)=>{this.walkCB(this.path,this.patterns,()=>{if(this.signal?.aborted)Q(this.signal.reason);else X(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}JG.GlobWalker=XG;class QG extends q4{results;constructor(X,Q,J){super(X,Q,J);this.results=new HA.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(X){if(this.results.write(X),!this.results.flowing)this.pause()}stream(){let X=this.path;if(X.isUnknown())X.lstat().then(()=>{this.walkCB(X,this.patterns,()=>this.results.end())});else this.walkCB(X,this.patterns,()=>this.results.end());return this.results}streamSync(){if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}JG.GlobStream=QG});var z2=N((ZG)=>{Object.defineProperty(ZG,"__esModule",{value:!0});ZG.Glob=void 0;var UA=u1(),GA=f("url"),V4=mU(),WA=q2(),U4=YG(),zA=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class HG{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(X,Q){if(!Q)throw TypeError("glob options required");if(this.withFileTypes=!!Q.withFileTypes,this.signal=Q.signal,this.follow=!!Q.follow,this.dot=!!Q.dot,this.dotRelative=!!Q.dotRelative,this.nodir=!!Q.nodir,this.mark=!!Q.mark,!Q.cwd)this.cwd="";else if(Q.cwd instanceof URL||Q.cwd.startsWith("file://"))Q.cwd=(0,GA.fileURLToPath)(Q.cwd);if(this.cwd=Q.cwd||"",this.root=Q.root,this.magicalBraces=!!Q.magicalBraces,this.nobrace=!!Q.nobrace,this.noext=!!Q.noext,this.realpath=!!Q.realpath,this.absolute=Q.absolute,this.includeChildMatches=Q.includeChildMatches!==!1,this.noglobstar=!!Q.noglobstar,this.matchBase=!!Q.matchBase,this.maxDepth=typeof Q.maxDepth==="number"?Q.maxDepth:1/0,this.stat=!!Q.stat,this.ignore=Q.ignore,this.withFileTypes&&this.absolute!==void 0)throw Error("cannot set absolute and withFileTypes:true");if(typeof X==="string")X=[X];if(this.windowsPathsNoEscape=!!Q.windowsPathsNoEscape||Q.allowWindowsEscape===!1,this.windowsPathsNoEscape)X=X.map((q)=>q.replace(/\\/g,"/"));if(this.matchBase){if(Q.noglobstar)throw TypeError("base matching requires globstar");X=X.map((q)=>q.includes("/")?q:`./**/${q}`)}if(this.pattern=X,this.platform=Q.platform||zA,this.opts={...Q,platform:this.platform},Q.scurry){if(this.scurry=Q.scurry,Q.nocase!==void 0&&Q.nocase!==Q.scurry.nocase)throw Error("nocase option contradicts provided scurry option")}else{let q=Q.platform==="win32"?V4.PathScurryWin32:Q.platform==="darwin"?V4.PathScurryDarwin:Q.platform?V4.PathScurryPosix:V4.PathScurry;this.scurry=new q(this.cwd,{nocase:Q.nocase,fs:Q.fs})}this.nocase=this.scurry.nocase;let J=this.platform==="darwin"||this.platform==="win32",K={...Q,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:J,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},Y=this.pattern.map((q)=>new UA.Minimatch(q,K)),[H,Z]=Y.reduce((q,V)=>{return q[0].push(...V.set),q[1].push(...V.globParts),q},[[],[]]);this.patterns=H.map((q,V)=>{let W=Z[V];if(!W)throw Error("invalid pattern object");return new WA.Pattern(q,W,0,this.platform)})}async walk(){return[...await new U4.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new U4.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new U4.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new U4.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}ZG.Glob=HG});var B2=N((VG)=>{Object.defineProperty(VG,"__esModule",{value:!0});VG.hasMagic=void 0;var BA=u1(),$A=(X,Q={})=>{if(!Array.isArray(X))X=[X];for(let J of X)if(new BA.Minimatch(J,Q).hasMagic())return!0;return!1};VG.hasMagic=$A});var LG=N(($6)=>{Object.defineProperty($6,"__esModule",{value:!0});$6.glob=$6.sync=$6.iterate=$6.iterateSync=$6.stream=$6.streamSync=$6.Ignore=$6.hasMagic=$6.Glob=$6.unescape=$6.escape=void 0;$6.globStreamSync=Z3;$6.globStream=$2;$6.globSync=M2;$6.globIterateSync=q3;$6.globIterate=F2;var GG=u1(),B6=z2(),MA=B2(),zG=u1();Object.defineProperty($6,"escape",{enumerable:!0,get:function(){return zG.escape}});Object.defineProperty($6,"unescape",{enumerable:!0,get:function(){return zG.unescape}});var FA=z2();Object.defineProperty($6,"Glob",{enumerable:!0,get:function(){return FA.Glob}});var NA=B2();Object.defineProperty($6,"hasMagic",{enumerable:!0,get:function(){return NA.hasMagic}});var LA=V2();Object.defineProperty($6,"Ignore",{enumerable:!0,get:function(){return LA.Ignore}});function Z3(X,Q={}){return new B6.Glob(X,Q).streamSync()}function $2(X,Q={}){return new B6.Glob(X,Q).stream()}function M2(X,Q={}){return new B6.Glob(X,Q).walkSync()}async function WG(X,Q={}){return new B6.Glob(X,Q).walk()}function q3(X,Q={}){return new B6.Glob(X,Q).iterateSync()}function F2(X,Q={}){return new B6.Glob(X,Q).iterate()}$6.streamSync=Z3;$6.stream=Object.assign($2,{sync:Z3});$6.iterateSync=q3;$6.iterate=Object.assign(F2,{sync:q3});$6.sync=Object.assign(M2,{stream:Z3,iterate:q3});$6.glob=Object.assign(WG,{glob:WG,globSync:M2,sync:$6.sync,globStream:$2,stream:$6.stream,globStreamSync:Z3,streamSync:$6.streamSync,globIterate:F2,iterate:$6.iterate,globIterateSync:q3,iterateSync:$6.iterateSync,Glob:B6.Glob,hasMagic:MA.hasMagic,escape:GG.escape,unescape:GG.unescape});$6.glob.glob=$6.glob});var PG=N((Ty,OG)=>{var IG=p4(),e6=f("path"),N2=Kq(),wA=LV(),DA=RV(),TA=gV(),_A=LG(),M6=OG.exports={},CG=/[\/\\]/g,AA=function(X,Q){var J=[];return N2(X).forEach(function(K){var Y=K.indexOf("!")===0;if(Y)K=K.slice(1);var H=Q(K);if(Y)J=wA(J,H);else J=DA(J,H)}),J};M6.exists=function(){var X=e6.join.apply(e6,arguments);return IG.existsSync(X)};M6.expand=function(...X){var Q=TA(X[0])?X.shift():{},J=Array.isArray(X[0])?X[0]:X;if(J.length===0)return[];var K=AA(J,function(Y){return _A.sync(Y,Q)});if(Q.filter)K=K.filter(function(Y){Y=e6.join(Q.cwd||"",Y);try{if(typeof Q.filter==="function")return Q.filter(Y);else return IG.statSync(Y)[Q.filter]()}catch(H){return!1}});return K};M6.expandMapping=function(X,Q,J){J=Object.assign({rename:function(H,Z){return e6.join(H||"",Z)}},J);var K=[],Y={};return M6.expand(J,X).forEach(function(H){var Z=H;if(J.flatten)Z=e6.basename(Z);if(J.ext)Z=Z.replace(/(\.[^\/]*)?$/,J.ext);var q=J.rename(Q,Z,J);if(J.cwd)H=e6.join(J.cwd,H);if(q=q.replace(CG,"/"),H=H.replace(CG,"/"),Y[q])Y[q].src.push(H);else K.push({src:[H],dest:q}),Y[q]=K[K.length-1]}),K};M6.normalizeFilesArray=function(X){var Q=[];if(X.forEach(function(J){var K;if("src"in J||"dest"in J)Q.push(J)}),Q.length===0)return[];return Q=_(Q).chain().forEach(function(J){if(!("src"in J)||!J.src)return;if(Array.isArray(J.src))J.src=N2(J.src);else J.src=[J.src]}).map(function(J){var K=Object.assign({},J);if(delete K.src,delete K.dest,J.expand)return M6.expandMapping(J.src,J.dest,K).map(function(H){var Z=Object.assign({},J);return Z.orig=Object.assign({},J),Z.src=H.src,Z.dest=H.dest,["expand","cwd","flatten","rename","ext"].forEach(function(q){delete Z[q]}),Z});var Y=Object.assign({},J);if(Y.orig=Object.assign({},J),"src"in Y)Object.defineProperty(Y,"src",{enumerable:!0,get:function H(){var Z;if(!("result"in H))Z=J.src,Z=Array.isArray(Z)?N2(Z):[Z],H.result=M6.expand(K,Z);return H.result}});if("dest"in Y)Y.dest=J.dest;return Y}).flatten().value(),Q}});var X8=N((Ay,DG)=>{var L2=p4(),jG=f("path"),RA=d3(),EA=FJ(),wG=W5(),SA=sK(),_y=f("stream").Stream,xA=G6().PassThrough,r0=DG.exports={};r0.file=PG();r0.collectStream=function(X,Q){var J=[],K=0;X.on("error",Q),X.on("data",function(Y){J.push(Y),K+=Y.length}),X.on("end",function(){var Y=Buffer.alloc(K),H=0;J.forEach(function(Z){Z.copy(Y,H),H+=Z.length}),Q(null,Y)})};r0.dateify=function(X){if(X=X||new Date,X instanceof Date)X=X;else if(typeof X==="string")X=new Date(X);else X=new Date;return X};r0.defaults=function(X,Q,J){var K=arguments;return K[0]=K[0]||{},SA(...K)};r0.isStream=function(X){return RA(X)};r0.lazyReadStream=function(X){return new EA.Readable(function(){return L2.createReadStream(X)})};r0.normalizeInputSource=function(X){if(X===null)return Buffer.alloc(0);else if(typeof X==="string")return Buffer.from(X);else if(r0.isStream(X))return X.pipe(new xA);return X};r0.sanitizePath=function(X){return wG(X,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};r0.trailingSlashIt=function(X){return X.slice(-1)!=="/"?X+"/":X};r0.unixifyPath=function(X){return wG(X,!1).replace(/^\w+:/,"")};r0.walkdir=function(X,Q,J){var K=[];if(typeof Q==="function")J=Q,Q=X;L2.readdir(X,function(Y,H){var Z=0,q,V;if(Y)return J(Y);(function W(){if(q=H[Z++],!q)return J(null,K);V=jG.join(X,q),L2.stat(V,function(G,B){if(K.push({path:V,relative:jG.relative(Q,V).replace(/\\/g,"/"),stats:B}),B&&B.isDirectory())r0.walkdir(V,Q,function(F,M){if(F)return J(F);M.forEach(function(I){K.push(I)}),W()});else W()})})()})}});var RG=N((_G,AG)=>{var vA=f("util"),yA={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function TG(X,Q){Error.captureStackTrace(this,this.constructor),this.message=yA[X]||X,this.code=X,this.data=Q}vA.inherits(TG,Error);_G=AG.exports=TG});var yG=N((Ry,vG)=>{var O2=f("fs"),SG=UQ(),EG=WQ(),C2=f("path"),O1=X8(),kA=f("util").inherits,O0=RG(),xG=G6().Transform,I2=process.platform==="win32",q0=function(X,Q){if(!(this instanceof q0))return new q0(X,Q);if(typeof X!=="string")Q=X,X="zip";Q=this.options=O1.defaults(Q,{highWaterMark:1048576,statConcurrency:4}),xG.call(this,Q),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=EG.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=EG.queue(this._onStatQueueTask.bind(this),Q.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};kA(q0,xG);q0.prototype._abort=function(){if(this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle())this._shutdown()};q0.prototype._append=function(X,Q){Q=Q||{};var J={source:null,filepath:X};if(!Q.name)Q.name=X;if(Q.sourcePath=X,J.data=Q,this._entriesCount++,Q.stats&&Q.stats instanceof O2.Stats){if(J=this._updateQueueTaskWithStats(J,Q.stats),J){if(Q.stats.size)this._fsEntriesTotalBytes+=Q.stats.size;this._queue.push(J)}}else this._statQueue.push(J)};q0.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0};q0.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return!1;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())return this._finalize(),!0;return!1};q0.prototype._moduleAppend=function(X,Q,J){if(this._state.aborted){J();return}this._module.append(X,Q,function(K){if(this._task=null,this._state.aborted){this._shutdown();return}if(K){this.emit("error",K),setImmediate(J);return}if(this.emit("entry",Q),this._entriesProcessedCount++,Q.stats&&Q.stats.size)this._fsEntriesProcessedBytes+=Q.stats.size;this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(J)}.bind(this))};q0.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function")this._module.finalize();else if(typeof this._module.end==="function")this._module.end();else this.emit("error",new O0("NOENDMETHOD"))};q0.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};q0.prototype._moduleSupports=function(X){if(!this._module.supports||!this._module.supports[X])return!1;return this._module.supports[X]};q0.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};q0.prototype._normalizeEntryData=function(X,Q){if(X=O1.defaults(X,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),Q&&X.stats===!1)X.stats=Q;var J=X.type==="directory";if(X.name){if(typeof X.prefix==="string"&&X.prefix!=="")X.name=X.prefix+"/"+X.name,X.prefix=null;if(X.name=O1.sanitizePath(X.name),X.type!=="symlink"&&X.name.slice(-1)==="/")J=!0,X.type="directory";else if(J)X.name+="/"}if(typeof X.mode==="number")if(I2)X.mode&=511;else X.mode&=4095;else if(X.stats&&X.mode===null){if(I2)X.mode=X.stats.mode&511;else X.mode=X.stats.mode&4095;if(I2&&J)X.mode=493}else if(X.mode===null)X.mode=J?493:420;if(X.stats&&X.date===null)X.date=X.stats.mtime;else X.date=O1.dateify(X.date);return X};q0.prototype._onModuleError=function(X){this.emit("error",X)};q0.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize()};q0.prototype._onQueueTask=function(X,Q){var J=()=>{if(X.data.callback)X.data.callback();Q()};if(this._state.finalizing||this._state.finalized||this._state.aborted){J();return}this._task=X,this._moduleAppend(X.source,X.data,J)};q0.prototype._onStatQueueTask=function(X,Q){if(this._state.finalizing||this._state.finalized||this._state.aborted){Q();return}O2.lstat(X.filepath,function(J,K){if(this._state.aborted){setImmediate(Q);return}if(J){this._entriesCount--,this.emit("warning",J),setImmediate(Q);return}if(X=this._updateQueueTaskWithStats(X,K),X){if(K.size)this._fsEntriesTotalBytes+=K.size;this._queue.push(X)}setImmediate(Q)}.bind(this))};q0.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};q0.prototype._transform=function(X,Q,J){if(X)this._pointer+=X.length;J(null,X)};q0.prototype._updateQueueTaskWithStats=function(X,Q){if(Q.isFile())X.data.type="file",X.data.sourceType="stream",X.source=O1.lazyReadStream(X.filepath);else if(Q.isDirectory()&&this._moduleSupports("directory"))X.data.name=O1.trailingSlashIt(X.data.name),X.data.type="directory",X.data.sourcePath=O1.trailingSlashIt(X.filepath),X.data.sourceType="buffer",X.source=Buffer.concat([]);else if(Q.isSymbolicLink()&&this._moduleSupports("symlink")){var J=O2.readlinkSync(X.filepath),K=C2.dirname(X.filepath);X.data.type="symlink",X.data.linkname=C2.relative(K,C2.resolve(K,J)),X.data.sourceType="buffer",X.source=Buffer.concat([])}else{if(Q.isDirectory())this.emit("warning",new O0("DIRECTORYNOTSUPPORTED",X.data));else if(Q.isSymbolicLink())this.emit("warning",new O0("SYMLINKNOTSUPPORTED",X.data));else this.emit("warning",new O0("ENTRYNOTSUPPORTED",X.data));return null}return X.data=this._normalizeEntryData(X.data,Q),X};q0.prototype.abort=function(){if(this._state.aborted||this._state.finalized)return this;return this._abort(),this};q0.prototype.append=function(X,Q){if(this._state.finalize||this._state.aborted)return this.emit("error",new O0("QUEUECLOSED")),this;if(Q=this._normalizeEntryData(Q),typeof Q.name!=="string"||Q.name.length===0)return this.emit("error",new O0("ENTRYNAMEREQUIRED")),this;if(Q.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new O0("DIRECTORYNOTSUPPORTED",{name:Q.name})),this;if(X=O1.normalizeInputSource(X),Buffer.isBuffer(X))Q.sourceType="buffer";else if(O1.isStream(X))Q.sourceType="stream";else return this.emit("error",new O0("INPUTSTEAMBUFFERREQUIRED",{name:Q.name})),this;return this._entriesCount++,this._queue.push({data:Q,source:X}),this};q0.prototype.directory=function(X,Q,J){if(this._state.finalize||this._state.aborted)return this.emit("error",new O0("QUEUECLOSED")),this;if(typeof X!=="string"||X.length===0)return this.emit("error",new O0("DIRECTORYDIRPATHREQUIRED")),this;if(this._pending++,Q===!1)Q="";else if(typeof Q!=="string")Q=X;var K=!1;if(typeof J==="function")K=J,J={};else if(typeof J!=="object")J={};var Y={stat:!0,dot:!0};function H(){this._pending--,this._maybeFinalize()}function Z(W){this.emit("error",W)}function q(W){V.pause();var G=!1,B=Object.assign({},J);B.name=W.relative,B.prefix=Q,B.stats=W.stat,B.callback=V.resume.bind(V);try{if(K){if(B=K(B),B===!1)G=!0;else if(typeof B!=="object")throw new O0("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:X})}}catch(F){this.emit("error",F);return}if(G){V.resume();return}this._append(W.absolute,B)}var V=SG(X,Y);return V.on("error",Z.bind(this)),V.on("match",q.bind(this)),V.on("end",H.bind(this)),this};q0.prototype.file=function(X,Q){if(this._state.finalize||this._state.aborted)return this.emit("error",new O0("QUEUECLOSED")),this;if(typeof X!=="string"||X.length===0)return this.emit("error",new O0("FILEFILEPATHREQUIRED")),this;return this._append(X,Q),this};q0.prototype.glob=function(X,Q,J){this._pending++,Q=O1.defaults(Q,{stat:!0,pattern:X});function K(){this._pending--,this._maybeFinalize()}function Y(q){this.emit("error",q)}function H(q){Z.pause();var V=Object.assign({},J);V.callback=Z.resume.bind(Z),V.stats=q.stat,V.name=q.relative,this._append(q.absolute,V)}var Z=SG(Q.cwd||".",Q);return Z.on("error",Y.bind(this)),Z.on("match",H.bind(this)),Z.on("end",K.bind(this)),this};q0.prototype.finalize=function(){if(this._state.aborted){var X=new O0("ABORTED");return this.emit("error",X),Promise.reject(X)}if(this._state.finalize){var Q=new O0("FINALIZING");return this.emit("error",Q),Promise.reject(Q)}if(this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize();var J=this;return new Promise(function(K,Y){var H;J._module.on("end",function(){if(!H)K()}),J._module.on("error",function(Z){H=!0,Y(Z)})})};q0.prototype.setFormat=function(X){if(this._format)return this.emit("error",new O0("FORMATSET")),this;return this._format=X,this};q0.prototype.setModule=function(X){if(this._state.aborted)return this.emit("error",new O0("ABORTED")),this;if(this._state.module)return this.emit("error",new O0("MODULESET")),this;return this._module=X,this._modulePipe(),this};q0.prototype.symlink=function(X,Q,J){if(this._state.finalize||this._state.aborted)return this.emit("error",new O0("QUEUECLOSED")),this;if(typeof X!=="string"||X.length===0)return this.emit("error",new O0("SYMLINKFILEPATHREQUIRED")),this;if(typeof Q!=="string"||Q.length===0)return this.emit("error",new O0("SYMLINKTARGETREQUIRED",{filepath:X})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new O0("SYMLINKNOTSUPPORTED",{filepath:X})),this;var K={};if(K.type="symlink",K.name=X.replace(/\\/g,"/"),K.linkname=Q.replace(/\\/g,"/"),K.sourceType="buffer",typeof J==="number")K.mode=J;return this._entriesCount++,this._queue.push({data:K,source:Buffer.concat([])}),this};q0.prototype.pointer=function(){return this._pointer};q0.prototype.use=function(X){return this._streams.push(X),this};vG.exports=q0});var z4=N((Ey,kG)=>{var W4=kG.exports=function(){};W4.prototype.getName=function(){};W4.prototype.getSize=function(){};W4.prototype.getLastModifiedDate=function(){};W4.prototype.isDirectory=function(){}});var B4=N((Sy,gG)=>{var Y1=gG.exports={};Y1.dateToDos=function(X,Q){Q=Q||!1;var J=Q?X.getFullYear():X.getUTCFullYear();if(J<1980)return 2162688;else if(J>=2044)return 2141175677;var K={year:J,month:Q?X.getMonth():X.getUTCMonth(),date:Q?X.getDate():X.getUTCDate(),hours:Q?X.getHours():X.getUTCHours(),minutes:Q?X.getMinutes():X.getUTCMinutes(),seconds:Q?X.getSeconds():X.getUTCSeconds()};return K.year-1980<<25|K.month+1<<21|K.date<<16|K.hours<<11|K.minutes<<5|K.seconds/2};Y1.dosToDate=function(X){return new Date((X>>25&127)+1980,(X>>21&15)-1,X>>16&31,X>>11&31,X>>5&63,(X&31)<<1)};Y1.fromDosTime=function(X){return Y1.dosToDate(X.readUInt32LE(0))};Y1.getEightBytes=function(X){var Q=Buffer.alloc(8);return Q.writeUInt32LE(X%4294967296,0),Q.writeUInt32LE(X/4294967296|0,4),Q};Y1.getShortBytes=function(X){var Q=Buffer.alloc(2);return Q.writeUInt16LE((X&65535)>>>0,0),Q};Y1.getShortBytesValue=function(X,Q){return X.readUInt16LE(Q)};Y1.getLongBytes=function(X){var Q=Buffer.alloc(4);return Q.writeUInt32LE((X&4294967295)>>>0,0),Q};Y1.getLongBytesValue=function(X,Q){return X.readUInt32LE(Q)};Y1.toDosTime=function(X){return Y1.getLongBytes(Y1.dateToDos(X))}});var P2=N((xy,dG)=>{var hG=B4(),fG=8,uG=1,gA=4,hA=2,bG=64,mG=2048,k0=dG.exports=function(){if(!(this instanceof k0))return new k0;return this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this};k0.prototype.encode=function(){return hG.getShortBytes((this.descriptor?fG:0)|(this.utf8?mG:0)|(this.encryption?uG:0)|(this.strongEncryption?bG:0))};k0.prototype.parse=function(X,Q){var J=hG.getShortBytesValue(X,Q),K=new k0;return K.useDataDescriptor((J&fG)!==0),K.useUTF8ForNames((J&mG)!==0),K.useStrongEncryption((J&bG)!==0),K.useEncryption((J&uG)!==0),K.setSlidingDictionarySize((J&hA)!==0?8192:4096),K.setNumberOfShannonFanoTrees((J&gA)!==0?3:2),K};k0.prototype.setNumberOfShannonFanoTrees=function(X){this.numberOfShannonFanoTrees=X};k0.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};k0.prototype.setSlidingDictionarySize=function(X){this.slidingDictionarySize=X};k0.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};k0.prototype.useDataDescriptor=function(X){this.descriptor=X};k0.prototype.usesDataDescriptor=function(){return this.descriptor};k0.prototype.useEncryption=function(X){this.encryption=X};k0.prototype.usesEncryption=function(){return this.encryption};k0.prototype.useStrongEncryption=function(X){this.strongEncryption=X};k0.prototype.usesStrongEncryption=function(){return this.strongEncryption};k0.prototype.useUTF8ForNames=function(X){this.utf8=X};k0.prototype.usesUTF8ForNames=function(){return this.utf8}});var pG=N((vy,cG)=>{cG.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var j2=N((yy,lG)=>{lG.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var w2=N((ky,sG)=>{var fA=f("util").inherits,uA=W5(),iG=z4(),oG=P2(),nG=pG(),p0=j2(),rG=B4(),r=sG.exports=function(X){if(!(this instanceof r))return new r(X);if(iG.call(this),this.platform=p0.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new oG,this.crc=0,this.time=-1,this.minver=p0.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,X)this.setName(X)};fA(r,iG);r.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};r.prototype.getComment=function(){return this.comment!==null?this.comment:""};r.prototype.getCompressedSize=function(){return this.csize};r.prototype.getCrc=function(){return this.crc};r.prototype.getExternalAttributes=function(){return this.exattr};r.prototype.getExtra=function(){return this.extra!==null?this.extra:p0.EMPTY};r.prototype.getGeneralPurposeBit=function(){return this.gpb};r.prototype.getInternalAttributes=function(){return this.inattr};r.prototype.getLastModifiedDate=function(){return this.getTime()};r.prototype.getLocalFileDataExtra=function(){return this.getExtra()};r.prototype.getMethod=function(){return this.method};r.prototype.getName=function(){return this.name};r.prototype.getPlatform=function(){return this.platform};r.prototype.getSize=function(){return this.size};r.prototype.getTime=function(){return this.time!==-1?rG.dosToDate(this.time):-1};r.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};r.prototype.getUnixMode=function(){return this.platform!==p0.PLATFORM_UNIX?0:this.getExternalAttributes()>>p0.SHORT_SHIFT&p0.SHORT_MASK};r.prototype.getVersionNeededToExtract=function(){return this.minver};r.prototype.setComment=function(X){if(Buffer.byteLength(X)!==X.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.comment=X};r.prototype.setCompressedSize=function(X){if(X<0)throw Error("invalid entry compressed size");this.csize=X};r.prototype.setCrc=function(X){if(X<0)throw Error("invalid entry crc32");this.crc=X};r.prototype.setExternalAttributes=function(X){this.exattr=X>>>0};r.prototype.setExtra=function(X){this.extra=X};r.prototype.setGeneralPurposeBit=function(X){if(!(X instanceof oG))throw Error("invalid entry GeneralPurposeBit");this.gpb=X};r.prototype.setInternalAttributes=function(X){this.inattr=X};r.prototype.setMethod=function(X){if(X<0)throw Error("invalid entry compression method");this.method=X};r.prototype.setName=function(X,Q=!1){if(X=uA(X,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),Q)X=`/${X}`;if(Buffer.byteLength(X)!==X.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.name=X};r.prototype.setPlatform=function(X){this.platform=X};r.prototype.setSize=function(X){if(X<0)throw Error("invalid entry size");this.size=X};r.prototype.setTime=function(X,Q){if(!(X instanceof Date))throw Error("invalid entry time");this.time=rG.dateToDos(X,Q)};r.prototype.setUnixMode=function(X){X|=this.isDirectory()?p0.S_IFDIR:p0.S_IFREG;var Q=0;Q|=X<<p0.SHORT_SHIFT|(this.isDirectory()?p0.S_DOS_D:p0.S_DOS_A),this.setExternalAttributes(Q),this.mode=X&p0.MODE_MASK,this.platform=p0.PLATFORM_UNIX};r.prototype.setVersionNeededToExtract=function(X){this.minver=X};r.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};r.prototype.isUnixSymlink=function(){return(this.getUnixMode()&nG.FILE_TYPE_FLAG)===nG.LINK_FLAG};r.prototype.isZip64=function(){return this.csize>p0.ZIP64_MAGIC||this.size>p0.ZIP64_MAGIC}});var D2=N((hy,aG)=>{var gy=f("stream").Stream,bA=G6().PassThrough,mA=d3(),dA=aG.exports={};dA.normalizeInputSource=function(X){if(X===null)return Buffer.alloc(0);else if(typeof X==="string")return Buffer.from(X);else if(mA(X)&&!X._readableState){var Q=new bA;return X.pipe(Q),Q}return X}});var _2=N((fy,tG)=>{var cA=f("util").inherits,pA=d3(),T2=G6().Transform,lA=z4(),nA=D2(),s0=tG.exports=function(X){if(!(this instanceof s0))return new s0(X);T2.call(this,X),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};cA(s0,T2);s0.prototype._appendBuffer=function(X,Q,J){};s0.prototype._appendStream=function(X,Q,J){};s0.prototype._emitErrorCallback=function(X){if(X)this.emit("error",X)};s0.prototype._finish=function(X){};s0.prototype._normalizeEntry=function(X){};s0.prototype._transform=function(X,Q,J){J(null,X)};s0.prototype.entry=function(X,Q,J){if(Q=Q||null,typeof J!=="function")J=this._emitErrorCallback.bind(this);if(!(X instanceof lA)){J(Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){J(Error("unacceptable entry after finish"));return}if(this._archive.processing){J(Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(X),this._entry=X,Q=nA.normalizeInputSource(Q),Buffer.isBuffer(Q))this._appendBuffer(X,Q,J);else if(pA(Q))this._appendStream(X,Q,J);else{this._archive.processing=!1,J(Error("input source must be valid Stream or Buffer instance"));return}return this};s0.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};s0.prototype.getBytesWritten=function(){return this.offset};s0.prototype.write=function(X,Q){if(X)this.offset+=X.length;return T2.prototype.write.call(this,X,Q)}});var $4=N((A2)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var eG;(function(X){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof A2==="object")X(A2);else if(typeof define==="function"&&define.amd)define(function(){var Q={};return X(Q),Q});else X(eG={});else X(eG={})})(function(X){X.version="1.2.2";function Q(){var D=0,m=Array(256);for(var T=0;T!=256;++T)D=T,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,m[T]=D;return typeof Int32Array<"u"?new Int32Array(m):m}var J=Q();function K(D){var m=0,T=0,S=0,y=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(S=0;S!=256;++S)y[S]=D[S];for(S=0;S!=256;++S){T=D[S];for(m=256+S;m<4096;m+=256)T=y[m]=T>>>8^D[T&255]}var l=[];for(S=1;S!=16;++S)l[S-1]=typeof Int32Array<"u"?y.subarray(S*256,S*256+256):y.slice(S*256,S*256+256);return l}var Y=K(J),H=Y[0],Z=Y[1],q=Y[2],V=Y[3],W=Y[4],G=Y[5],B=Y[6],F=Y[7],M=Y[8],I=Y[9],P=Y[10],O=Y[11],L=Y[12],x=Y[13],v=Y[14];function g(D,m){var T=m^-1;for(var S=0,y=D.length;S<y;)T=T>>>8^J[(T^D.charCodeAt(S++))&255];return~T}function n(D,m){var T=m^-1,S=D.length-15,y=0;for(;y<S;)T=v[D[y++]^T&255]^x[D[y++]^T>>8&255]^L[D[y++]^T>>16&255]^O[D[y++]^T>>>24]^P[D[y++]]^I[D[y++]]^M[D[y++]]^F[D[y++]]^B[D[y++]]^G[D[y++]]^W[D[y++]]^V[D[y++]]^q[D[y++]]^Z[D[y++]]^H[D[y++]]^J[D[y++]];S+=15;while(y<S)T=T>>>8^J[(T^D[y++])&255];return~T}function k(D,m){var T=m^-1;for(var S=0,y=D.length,l=0,t=0;S<y;)if(l=D.charCodeAt(S++),l<128)T=T>>>8^J[(T^l)&255];else if(l<2048)T=T>>>8^J[(T^(192|l>>6&31))&255],T=T>>>8^J[(T^(128|l&63))&255];else if(l>=55296&&l<57344)l=(l&1023)+64,t=D.charCodeAt(S++)&1023,T=T>>>8^J[(T^(240|l>>8&7))&255],T=T>>>8^J[(T^(128|l>>2&63))&255],T=T>>>8^J[(T^(128|t>>6&15|(l&3)<<4))&255],T=T>>>8^J[(T^(128|t&63))&255];else T=T>>>8^J[(T^(224|l>>12&15))&255],T=T>>>8^J[(T^(128|l>>6&63))&255],T=T>>>8^J[(T^(128|l&63))&255];return~T}X.table=J,X.bstr=g,X.buf=n,X.str=k})});var JW=N((by,QW)=>{var{Transform:iA}=G6(),oA=$4();class XW extends iA{constructor(X){super(X);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(X,Q,J){if(X)this.checksum=oA.buf(X,this.checksum)>>>0,this.rawSize+=X.length;J(null,X)}digest(X){let Q=Buffer.allocUnsafe(4);return Q.writeUInt32BE(this.checksum>>>0,0),X?Q.toString(X):Q}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}QW.exports=XW});var HW=N((my,YW)=>{var{DeflateRaw:rA}=f("zlib"),sA=$4();class KW extends rA{constructor(X){super(X);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(X,Q){if(X)this.compressedSize+=X.length;return super.push(X,Q)}_transform(X,Q,J){if(X)this.checksum=sA.buf(X,this.checksum)>>>0,this.rawSize+=X.length;super._transform(X,Q,J)}digest(X){let Q=Buffer.allocUnsafe(4);return Q.writeUInt32BE(this.checksum>>>0,0),X?Q.toString(X):Q}hex(){return this.digest("hex").toUpperCase()}size(X=!1){if(X)return this.compressedSize;else return this.rawSize}}YW.exports=KW});var R2=N((dy,ZW)=>{ZW.exports={CRC32Stream:JW(),DeflateCRC32Stream:HW()}});var UW=N((ny,VW)=>{var aA=f("util").inherits,tA=$4(),{CRC32Stream:eA}=R2(),{DeflateCRC32Stream:XR}=R2(),qW=_2(),cy=w2(),py=P2(),i=j2(),ly=D2(),p=B4(),S0=VW.exports=function(X){if(!(this instanceof S0))return new S0(X);X=this.options=this._defaults(X),qW.call(this,X),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:X.forceZip64,forceLocalTime:X.forceLocalTime}};aA(S0,qW);S0.prototype._afterAppend=function(X){if(this._entries.push(X),X.getGeneralPurposeBit().usesDataDescriptor())this._writeDataDescriptor(X);if(this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished)this._finish()};S0.prototype._appendBuffer=function(X,Q,J){if(Q.length===0)X.setMethod(i.METHOD_STORED);var K=X.getMethod();if(K===i.METHOD_STORED)X.setSize(Q.length),X.setCompressedSize(Q.length),X.setCrc(tA.buf(Q)>>>0);if(this._writeLocalFileHeader(X),K===i.METHOD_STORED){this.write(Q),this._afterAppend(X),J(null,X);return}else if(K===i.METHOD_DEFLATED){this._smartStream(X,J).end(Q);return}else{J(Error("compression method "+K+" not implemented"));return}};S0.prototype._appendStream=function(X,Q,J){X.getGeneralPurposeBit().useDataDescriptor(!0),X.setVersionNeededToExtract(i.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(X);var K=this._smartStream(X,J);Q.once("error",function(Y){K.emit("error",Y),K.end()}),Q.pipe(K)};S0.prototype._defaults=function(X){if(typeof X!=="object")X={};if(typeof X.zlib!=="object")X.zlib={};if(typeof X.zlib.level!=="number")X.zlib.level=i.ZLIB_BEST_SPEED;return X.forceZip64=!!X.forceZip64,X.forceLocalTime=!!X.forceLocalTime,X};S0.prototype._finish=function(){if(this._archive.centralOffset=this.offset,this._entries.forEach(function(X){this._writeCentralFileHeader(X)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64())this._writeCentralDirectoryZip64();this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};S0.prototype._normalizeEntry=function(X){if(X.getMethod()===-1)X.setMethod(i.METHOD_DEFLATED);if(X.getMethod()===i.METHOD_DEFLATED)X.getGeneralPurposeBit().useDataDescriptor(!0),X.setVersionNeededToExtract(i.MIN_VERSION_DATA_DESCRIPTOR);if(X.getTime()===-1)X.setTime(new Date,this._archive.forceLocalTime);X._offsets={file:0,data:0,contents:0}};S0.prototype._smartStream=function(X,Q){var J=X.getMethod()===i.METHOD_DEFLATED,K=J?new XR(this.options.zlib):new eA,Y=null;function H(){var Z=K.digest().readUInt32BE(0);X.setCrc(Z),X.setSize(K.size()),X.setCompressedSize(K.size(!0)),this._afterAppend(X),Q(Y,X)}return K.once("end",H.bind(this)),K.once("error",function(Z){Y=Z}),K.pipe(this,{end:!1}),K};S0.prototype._writeCentralDirectoryEnd=function(){var X=this._entries.length,Q=this._archive.centralLength,J=this._archive.centralOffset;if(this.isZip64())X=i.ZIP64_MAGIC_SHORT,Q=i.ZIP64_MAGIC,J=i.ZIP64_MAGIC;this.write(p.getLongBytes(i.SIG_EOCD)),this.write(i.SHORT_ZERO),this.write(i.SHORT_ZERO),this.write(p.getShortBytes(X)),this.write(p.getShortBytes(X)),this.write(p.getLongBytes(Q)),this.write(p.getLongBytes(J));var K=this.getComment(),Y=Buffer.byteLength(K);this.write(p.getShortBytes(Y)),this.write(K)};S0.prototype._writeCentralDirectoryZip64=function(){this.write(p.getLongBytes(i.SIG_ZIP64_EOCD)),this.write(p.getEightBytes(44)),this.write(p.getShortBytes(i.MIN_VERSION_ZIP64)),this.write(p.getShortBytes(i.MIN_VERSION_ZIP64)),this.write(i.LONG_ZERO),this.write(i.LONG_ZERO),this.write(p.getEightBytes(this._entries.length)),this.write(p.getEightBytes(this._entries.length)),this.write(p.getEightBytes(this._archive.centralLength)),this.write(p.getEightBytes(this._archive.centralOffset)),this.write(p.getLongBytes(i.SIG_ZIP64_EOCD_LOC)),this.write(i.LONG_ZERO),this.write(p.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(p.getLongBytes(1))};S0.prototype._writeCentralFileHeader=function(X){var Q=X.getGeneralPurposeBit(),J=X.getMethod(),K=X._offsets.file,Y=X.getSize(),H=X.getCompressedSize();if(X.isZip64()||K>i.ZIP64_MAGIC){Y=i.ZIP64_MAGIC,H=i.ZIP64_MAGIC,K=i.ZIP64_MAGIC,X.setVersionNeededToExtract(i.MIN_VERSION_ZIP64);var Z=Buffer.concat([p.getShortBytes(i.ZIP64_EXTRA_ID),p.getShortBytes(24),p.getEightBytes(X.getSize()),p.getEightBytes(X.getCompressedSize()),p.getEightBytes(X._offsets.file)],28);X.setExtra(Z)}this.write(p.getLongBytes(i.SIG_CFH)),this.write(p.getShortBytes(X.getPlatform()<<8|i.VERSION_MADEBY)),this.write(p.getShortBytes(X.getVersionNeededToExtract())),this.write(Q.encode()),this.write(p.getShortBytes(J)),this.write(p.getLongBytes(X.getTimeDos())),this.write(p.getLongBytes(X.getCrc())),this.write(p.getLongBytes(H)),this.write(p.getLongBytes(Y));var q=X.getName(),V=X.getComment(),W=X.getCentralDirectoryExtra();if(Q.usesUTF8ForNames())q=Buffer.from(q),V=Buffer.from(V);this.write(p.getShortBytes(q.length)),this.write(p.getShortBytes(W.length)),this.write(p.getShortBytes(V.length)),this.write(i.SHORT_ZERO),this.write(p.getShortBytes(X.getInternalAttributes())),this.write(p.getLongBytes(X.getExternalAttributes())),this.write(p.getLongBytes(K)),this.write(q),this.write(W),this.write(V)};S0.prototype._writeDataDescriptor=function(X){if(this.write(p.getLongBytes(i.SIG_DD)),this.write(p.getLongBytes(X.getCrc())),X.isZip64())this.write(p.getEightBytes(X.getCompressedSize())),this.write(p.getEightBytes(X.getSize()));else this.write(p.getLongBytes(X.getCompressedSize())),this.write(p.getLongBytes(X.getSize()))};S0.prototype._writeLocalFileHeader=function(X){var Q=X.getGeneralPurposeBit(),J=X.getMethod(),K=X.getName(),Y=X.getLocalFileDataExtra();if(X.isZip64())Q.useDataDescriptor(!0),X.setVersionNeededToExtract(i.MIN_VERSION_ZIP64);if(Q.usesUTF8ForNames())K=Buffer.from(K);if(X._offsets.file=this.offset,this.write(p.getLongBytes(i.SIG_LFH)),this.write(p.getShortBytes(X.getVersionNeededToExtract())),this.write(Q.encode()),this.write(p.getShortBytes(J)),this.write(p.getLongBytes(X.getTimeDos())),X._offsets.data=this.offset,Q.usesDataDescriptor())this.write(i.LONG_ZERO),this.write(i.LONG_ZERO),this.write(i.LONG_ZERO);else this.write(p.getLongBytes(X.getCrc())),this.write(p.getLongBytes(X.getCompressedSize())),this.write(p.getLongBytes(X.getSize()));this.write(p.getShortBytes(K.length)),this.write(p.getShortBytes(Y.length)),this.write(K),this.write(Y),X._offsets.contents=this.offset};S0.prototype.getComment=function(X){return this._archive.comment!==null?this._archive.comment:""};S0.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>i.ZIP64_MAGIC_SHORT||this._archive.centralLength>i.ZIP64_MAGIC||this._archive.centralOffset>i.ZIP64_MAGIC};S0.prototype.setComment=function(X){this._archive.comment=X}});var E2=N((iy,GW)=>{GW.exports={ArchiveEntry:z4(),ZipArchiveEntry:w2(),ArchiveOutputStream:_2(),ZipArchiveOutputStream:UW()}});var zW=N((oy,WW)=>{var QR=f("util").inherits,x2=E2().ZipArchiveOutputStream,JR=E2().ZipArchiveEntry,S2=X8(),Q8=WW.exports=function(X){if(!(this instanceof Q8))return new Q8(X);if(X=this.options=X||{},X.zlib=X.zlib||{},x2.call(this,X),typeof X.level==="number"&&X.level>=0)X.zlib.level=X.level,delete X.level;if(!X.forceZip64&&typeof X.zlib.level==="number"&&X.zlib.level===0)X.store=!0;if(X.namePrependSlash=X.namePrependSlash||!1,X.comment&&X.comment.length>0)this.setComment(X.comment)};QR(Q8,x2);Q8.prototype._normalizeFileData=function(X){X=S2.defaults(X,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var Q=X.type==="directory",J=X.type==="symlink";if(X.name){if(X.name=S2.sanitizePath(X.name),!J&&X.name.slice(-1)==="/")Q=!0,X.type="directory";else if(Q)X.name+="/"}if(Q||J)X.store=!0;return X.date=S2.dateify(X.date),X};Q8.prototype.entry=function(X,Q,J){if(typeof J!=="function")J=this._emitErrorCallback.bind(this);if(Q=this._normalizeFileData(Q),Q.type!=="file"&&Q.type!=="directory"&&Q.type!=="symlink"){J(Error(Q.type+" entries not currently supported"));return}if(typeof Q.name!=="string"||Q.name.length===0){J(Error("entry name must be a non-empty string value"));return}if(Q.type==="symlink"&&typeof Q.linkname!=="string"){J(Error("entry linkname must be a non-empty string value when type equals symlink"));return}var K=new JR(Q.name);if(K.setTime(Q.date,this.options.forceLocalTime),Q.namePrependSlash)K.setName(Q.name,!0);if(Q.store)K.setMethod(0);if(Q.comment.length>0)K.setComment(Q.comment);if(Q.type==="symlink"&&typeof Q.mode!=="number")Q.mode=40960;if(typeof Q.mode==="number"){if(Q.type==="symlink")Q.mode|=40960;K.setUnixMode(Q.mode)}if(Q.type==="symlink"&&typeof Q.linkname==="string")X=Buffer.from(Q.linkname);return x2.prototype.entry.call(this,K,X,J)};Q8.prototype.finalize=function(){this.finish()}});var $W=N((ry,BW)=>{var KR=zW(),YR=X8(),d1=function(X){if(!(this instanceof d1))return new d1(X);X=this.options=YR.defaults(X,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new KR(X)};d1.prototype.append=function(X,Q,J){this.engine.entry(X,Q,J)};d1.prototype.finalize=function(){this.engine.finalize()};d1.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};d1.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};d1.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};BW.exports=d1});var FW=N((sy,MW)=>{MW.exports=class{constructor(Q){if(!(Q>0)||(Q-1&Q)!==0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(Q),this.mask=Q-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(Q){if(this.buffer[this.top]!==void 0)return!1;return this.buffer[this.top]=Q,this.top=this.top+1&this.mask,!0}shift(){let Q=this.buffer[this.btm];if(Q===void 0)return;return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,Q}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var v2=N((ay,LW)=>{var NW=FW();LW.exports=class{constructor(Q){this.hwm=Q||16,this.head=new NW(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(Q){if(this.length++,!this.head.push(Q)){let J=this.head;this.head=J.next=new NW(2*this.head.buffer.length),this.head.push(Q)}}shift(){if(this.length!==0)this.length--;let Q=this.tail.shift();if(Q===void 0&&this.tail.next){let J=this.tail.next;return this.tail.next=null,this.tail=J,this.tail.shift()}return Q}peek(){let Q=this.tail.peek();if(Q===void 0&&this.tail.next)return this.tail.next.peek();return Q}isEmpty(){return this.length===0}}});var J8=N((ty,CW)=>{function HR(X){return Buffer.isBuffer(X)||X instanceof Uint8Array}function ZR(X){return Buffer.isEncoding(X)}function qR(X,Q,J){return Buffer.alloc(X,Q,J)}function VR(X){return Buffer.allocUnsafe(X)}function UR(X){return Buffer.allocUnsafeSlow(X)}function GR(X,Q){return Buffer.byteLength(X,Q)}function WR(X,Q){return Buffer.compare(X,Q)}function zR(X,Q){return Buffer.concat(X,Q)}function BR(X,Q,J,K,Y){return W0(X).copy(Q,J,K,Y)}function $R(X,Q){return W0(X).equals(Q)}function MR(X,Q,J,K,Y){return W0(X).fill(Q,J,K,Y)}function FR(X,Q,J){return Buffer.from(X,Q,J)}function NR(X,Q,J,K){return W0(X).includes(Q,J,K)}function LR(X,Q,J,K){return W0(X).indexOf(Q,J,K)}function CR(X,Q,J,K){return W0(X).lastIndexOf(Q,J,K)}function IR(X){return W0(X).swap16()}function OR(X){return W0(X).swap32()}function PR(X){return W0(X).swap64()}function W0(X){if(Buffer.isBuffer(X))return X;return Buffer.from(X.buffer,X.byteOffset,X.byteLength)}function jR(X,Q,J,K){return W0(X).toString(Q,J,K)}function wR(X,Q,J,K,Y){return W0(X).write(Q,J,K,Y)}function DR(X,Q){return W0(X).readDoubleBE(Q)}function TR(X,Q){return W0(X).readDoubleLE(Q)}function _R(X,Q){return W0(X).readFloatBE(Q)}function AR(X,Q){return W0(X).readFloatLE(Q)}function RR(X,Q){return W0(X).readInt32BE(Q)}function ER(X,Q){return W0(X).readInt32LE(Q)}function SR(X,Q){return W0(X).readUInt32BE(Q)}function xR(X,Q){return W0(X).readUInt32LE(Q)}function vR(X,Q,J){return W0(X).writeDoubleBE(Q,J)}function yR(X,Q,J){return W0(X).writeDoubleLE(Q,J)}function kR(X,Q,J){return W0(X).writeFloatBE(Q,J)}function gR(X,Q,J){return W0(X).writeFloatLE(Q,J)}function hR(X,Q,J){return W0(X).writeInt32BE(Q,J)}function fR(X,Q,J){return W0(X).writeInt32LE(Q,J)}function uR(X,Q,J){return W0(X).writeUInt32BE(Q,J)}function bR(X,Q,J){return W0(X).writeUInt32LE(Q,J)}CW.exports={isBuffer:HR,isEncoding:ZR,alloc:qR,allocUnsafe:VR,allocUnsafeSlow:UR,byteLength:GR,compare:WR,concat:zR,copy:BR,equals:$R,fill:MR,from:FR,includes:NR,indexOf:LR,lastIndexOf:CR,swap16:IR,swap32:OR,swap64:PR,toBuffer:W0,toString:jR,write:wR,readDoubleBE:DR,readDoubleLE:TR,readFloatBE:_R,readFloatLE:AR,readInt32BE:RR,readInt32LE:ER,readUInt32BE:SR,readUInt32LE:xR,writeDoubleBE:vR,writeDoubleLE:yR,writeFloatBE:kR,writeFloatLE:gR,writeInt32BE:hR,writeInt32LE:fR,writeUInt32BE:uR,writeUInt32LE:bR}});var OW=N((ey,IW)=>{var mR=J8();IW.exports=class{constructor(Q){this.encoding=Q}get remaining(){return 0}decode(Q){return mR.toString(Q,this.encoding)}flush(){return""}}});var DW=N((Xk,wW)=>{var PW=J8();wW.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(Q){if(Q.byteLength===0)return"";if(this.bytesNeeded===0&&jW(Q,0)===0)return this.bytesSeen=dR(Q),PW.toString(Q,"utf8");let J="",K=0;if(this.bytesNeeded>0){while(K<Q.byteLength){let Z=Q[K];if(Z<this.lowerBoundary||Z>this.upperBoundary){J+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|Z&63,this.bytesSeen++,K++,this.bytesSeen===this.bytesNeeded){J+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return J}let Y=jW(Q,K),H=Q.byteLength-Y;if(H>K)J+=PW.toString(Q,"utf8",K,H);for(let Z=H;Z<Q.byteLength;Z++){let q=Q[Z];if(this.bytesNeeded===0){if(q<=127)this.bytesSeen=0,J+=String.fromCharCode(q);else if(q>=194&&q<=223)this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=q&31;else if(q>=224&&q<=239){if(q===224)this.lowerBoundary=160;else if(q===237)this.upperBoundary=159;this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=q&15}else if(q>=240&&q<=244){if(q===240)this.lowerBoundary=144;else if(q===244)this.upperBoundary=143;this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=q&7}else this.bytesSeen=1,J+="\uFFFD";continue}if(q<this.lowerBoundary||q>this.upperBoundary){J+="\uFFFD",Z--,this._reset();continue}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|q&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded)J+=String.fromCodePoint(this.codePoint),this._reset()}return J}flush(){let Q=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),Q}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function jW(X,Q){let J=X.byteLength;if(J<=Q)return 0;let K=Math.max(Q,J-4),Y=J-1;while(Y>K&&(X[Y]&192)===128)Y--;if(Y<Q)return 0;let H=X[Y],Z;if(H<=127)return 0;if(H>=194&&H<=223)Z=2;else if(H>=224&&H<=239)Z=3;else if(H>=240&&H<=244)Z=4;else return 0;let q=J-Y;return q<Z?q:0}function dR(X){let Q=X.byteLength;if(Q===0)return 0;let J=X[Q-1];if(J<=127)return 0;if((J&192)!==128)return 1;let K=Math.max(0,Q-4),Y=Q-2;while(Y>=K&&(X[Y]&192)===128)Y--;if(Y<0)return 1;let H=X[Y],Z;if(H>=194&&H<=223)Z=2;else if(H>=224&&H<=239)Z=3;else if(H>=240&&H<=244)Z=4;else return 1;if(Q-Y!==Z)return 1;if(Z>=3){let q=X[Y+1];if(H===224&&q<160)return 1;if(H===237&&q>159)return 1;if(H===240&&q<144)return 1;if(H===244&&q>143)return 1}return 0}});var _W=N((Qk,TW)=>{var cR=OW(),pR=DW();TW.exports=class{constructor(Q="utf8"){switch(this.encoding=lR(Q),this.encoding){case"utf8":this.decoder=new pR;break;case"utf16le":case"base64":throw Error("Unsupported encoding: "+this.encoding);default:this.decoder=new cR(this.encoding)}}get remaining(){return this.decoder.remaining}push(Q){if(typeof Q==="string")return Q;return this.decoder.decode(Q)}write(Q){return this.push(Q)}end(Q){let J="";if(Q)J=this.push(Q);return J+=this.decoder.flush(),J}};function lR(X){switch(X=X.toLowerCase(),X){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return X;default:throw Error("Unknown encoding: "+X)}}});var RW=N((Jk,AW)=>{AW.exports=class X extends Error{constructor(Q,J,K=X){super(Q);if(this.code=J,Error.captureStackTrace)Error.captureStackTrace(this,K)}static isStreamDestroyed(Q){return Q&&Q.code==="STREAM_DESTROYED"}static isPrematureClose(Q){return Q&&Q.code==="PREMATURE_CLOSE"}static isAborted(Q){return Q&&Q.code==="ABORTED"}static isBadArgument(Q){return Q&&Q.code==="BAD_ARGUMENT"}get name(){return"StreamError"}static STREAM_DESTROYED(){return new X("Stream was destroyed","STREAM_DESTROYED",X.STREAM_DESTROYED)}static PREMATURE_CLOSE(Q="Premature close"){return new X(Q,"PREMATURE_CLOSE",X.PREMATURE_CLOSE)}static ABORTED(){return new X("Stream aborted","ABORTED",X.ABORTED)}static BAD_ARGUMENT(Q="Bad argument"){return new X(Q,"BAD_ARGUMENT",X.BAD_ARGUMENT)}}});var m2=N((Kk,fW)=>{var{EventEmitter:nR}=f("events"),EW=v2(),iR=_W(),H1=RW(),y2=typeof queueMicrotask>"u"?(X)=>global.process.nextTick(X):queueMicrotask,M4=Symbol.asyncIterator||Symbol("asyncIterator");class g2{constructor(X,{highWaterMark:Q=16384,map:J=null,mapWritable:K,byteLength:Y,byteLengthWritable:H}={}){this.stream=X,this.queue=new EW,this.highWaterMark=Q,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=H||Y||hW,this.map=K||J,this.afterWrite=sR.bind(this),this.afterUpdateNextTick=eR.bind(this)}get ending(){return(this.stream._duplexState&134217728)!==0}get ended(){return(this.stream._duplexState&8388608)!==0}push(X){if((this.stream._duplexState&142606350)!==0)return!1;if(this.map!==null)X=this.map(X);if(this.buffered+=this.byteLength(X),this.queue.push(X),this.buffered<this.highWaterMark)return this.stream._duplexState|=2097152,!0;return this.stream._duplexState|=6291456,!1}shift(){let X=this.queue.shift();if(this.buffered-=this.byteLength(X),this.buffered===0)this.stream._duplexState&=534773759;return X}end(X){if(typeof X==="function")this.stream.once("finish",X);else if(X!==void 0&&X!==null)this.push(X);this.stream._duplexState=(this.stream._duplexState|134217728)&535822335}autoBatch(X,Q){let J=[],K=this.stream;J.push(X);while((K._duplexState&270794767)===2359296)J.push(K._writableState.shift());if((K._duplexState&15)!==0)return Q(null);K._writev(J,Q)}update(){let X=this.stream;X._duplexState|=524288;do{while((X._duplexState&270794767)===2097152){let Q=this.shift();X._duplexState|=67371008,X._write(Q,this.afterWrite)}if((X._duplexState&1310720)===0)this.updateNonPrimary()}while(this.continueUpdate()===!0);X._duplexState&=536346623}updateNonPrimary(){let X=this.stream;if((X._duplexState&144965647)===134217728){X._duplexState=X._duplexState|262144,X._final(rR.bind(this));return}if((X._duplexState&14)===4){if((X._duplexState&33587200)===0)X._duplexState|=262160,X._destroy(yW.bind(this));return}if((X._duplexState&33587215)===1)X._duplexState=(X._duplexState|262160)&536870910,X._open(kW.bind(this))}continueUpdate(){if((this.stream._duplexState&33554432)===0)return!1;return this.stream._duplexState&=503316479,!0}updateCallback(){if((this.stream._duplexState&35127311)===1048576)this.update();else this.updateNextTick()}updateNextTick(){if((this.stream._duplexState&33554432)!==0)return;if(this.stream._duplexState|=33554432,(this.stream._duplexState&524288)===0)y2(this.afterUpdateNextTick)}}class SW{constructor(X,{highWaterMark:Q=16384,map:J=null,mapReadable:K,byteLength:Y,byteLengthReadable:H}={}){this.stream=X,this.queue=new EW,this.highWaterMark=Q===0?1:Q,this.buffered=0,this.readAhead=Q>0,this.error=null,this.pipeline=null,this.byteLength=H||Y||hW,this.map=K||J,this.pipeTo=null,this.afterRead=aR.bind(this),this.afterUpdateNextTick=tR.bind(this)}get ending(){return(this.stream._duplexState&1024)!==0}get ended(){return(this.stream._duplexState&16384)!==0}pipe(X,Q){if(this.pipeTo!==null)throw H1.BAD_ARGUMENT("Can only pipe to one destination");if(typeof Q!=="function")Q=null;if(this.stream._duplexState|=512,this.pipeTo=X,this.pipeline=new vW(this.stream,X,Q),Q)this.stream.on("error",k2);if(U3(X)){if(X._writableState.pipeline=this.pipeline,Q)X.on("error",k2);X.on("finish",this.pipeline.finished.bind(this.pipeline))}else{let J=this.pipeline.done.bind(this.pipeline,X),K=this.pipeline.done.bind(this.pipeline,X,null);X.on("error",J),X.on("close",K),X.on("finish",this.pipeline.finished.bind(this.pipeline))}X.on("drain",oR.bind(this)),this.stream.emit("piping",X),X.emit("pipe",this.stream)}push(X){let Q=this.stream;if(X===null)return this.highWaterMark=0,Q._duplexState=(Q._duplexState|1024)&536805311,!1;if(this.map!==null){if(X=this.map(X),X===null)return Q._duplexState&=536805375,this.buffered<this.highWaterMark}return this.buffered+=this.byteLength(X),this.queue.push(X),Q._duplexState=(Q._duplexState|128)&536805375,this.buffered<this.highWaterMark}shift(){let X=this.queue.shift();if(this.buffered-=this.byteLength(X),this.buffered===0)this.stream._duplexState&=536862591;return X}unshift(X){let Q=[this.map!==null?this.map(X):X];while(this.buffered>0)Q.push(this.shift());for(let J=0;J<Q.length-1;J++){let K=Q[J];this.buffered+=this.byteLength(K),this.queue.push(K)}this.push(Q[Q.length-1])}read(){let X=this.stream;if((X._duplexState&16527)===128){let Q=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(Q)===!1)X._duplexState&=536870143;if((X._duplexState&2048)!==0)X.emit("data",Q);return Q}if(this.readAhead===!1)X._duplexState|=131072,this.updateNextTick();return null}drain(){let X=this.stream;while((X._duplexState&16527)===128&&(X._duplexState&768)!==0){let Q=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(Q)===!1)X._duplexState&=536870143;if((X._duplexState&2048)!==0)X.emit("data",Q)}}update(){let X=this.stream;X._duplexState|=32;do{this.drain();while(this.buffered<this.highWaterMark&&(X._duplexState&214047)===131072)X._duplexState|=65552,X._read(this.afterRead),this.drain();if((X._duplexState&12431)===4224)X._duplexState|=8192,X.emit("readable");if((X._duplexState&80)===0)this.updateNonPrimary()}while(this.continueUpdate()===!0);X._duplexState&=536870879}updateNonPrimary(){let X=this.stream;if((X._duplexState&1167)===1024){if(X._duplexState=(X._duplexState|16384)&536869887,X.emit("end"),(X._duplexState&8405006)===8404992)X._duplexState|=4;if(this.pipeTo!==null)this.pipeTo.end()}if((X._duplexState&14)===4){if((X._duplexState&33587200)===0)X._duplexState|=262160,X._destroy(yW.bind(this));return}if((X._duplexState&33587215)===1)X._duplexState=(X._duplexState|262160)&536870910,X._open(kW.bind(this))}continueUpdate(){if((this.stream._duplexState&32768)===0)return!1;return this.stream._duplexState&=536838143,!0}updateCallback(){if((this.stream._duplexState&32879)===64)this.update();else this.updateNextTick()}updateNextTickIfOpen(){if((this.stream._duplexState&32769)!==0)return;if(this.stream._duplexState|=32768,(this.stream._duplexState&32)===0)y2(this.afterUpdateNextTick)}updateNextTick(){if((this.stream._duplexState&32768)!==0)return;if(this.stream._duplexState|=32768,(this.stream._duplexState&32)===0)y2(this.afterUpdateNextTick)}}class xW{constructor(X){this.data=null,this.afterTransform=QE.bind(X),this.afterFinal=null}}class vW{constructor(X,Q,J){this.from=X,this.to=Q,this.afterPipe=J,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(X,Q){if(Q)this.error=Q;if(X===this.to){if(this.to=null,this.from!==null){if((this.from._duplexState&16384)===0||!this.pipeToFinished)this.from.destroy(this.error||H1.PREMATURE_CLOSE("Writable stream closed"));return}}if(X===this.from){if(this.from=null,this.to!==null){if((X._duplexState&16384)===0)this.to.destroy(this.error||H1.PREMATURE_CLOSE("Readable stream closed"));return}}if(this.afterPipe!==null)this.afterPipe(this.error);this.to=this.from=this.afterPipe=null}}function oR(){this.stream._duplexState|=512,this.updateCallback()}function rR(X){let Q=this.stream;if(X)Q.destroy(X);if((Q._duplexState&14)===0)Q._duplexState|=8388608,Q.emit("finish");if((Q._duplexState&8405006)===8404992)Q._duplexState|=4;if(Q._duplexState&=402391039,(Q._duplexState&524288)===0)this.update();else this.updateNextTick()}function yW(X){let Q=this.stream;if(!X&&!H1.isStreamDestroyed(this.error))X=this.error;if(X)Q.emit("error",X);Q._duplexState|=8,Q.emit("close");let{_readableState:J,_writableState:K}=Q;if(J!==null&&J.pipeline!==null)J.pipeline.done(Q,X);if(K!==null){while(K.drains!==null&&K.drains.length>0)K.drains.shift().resolve(!1);if(K.pipeline!==null)K.pipeline.done(Q,X)}}function sR(X){let Q=this.stream;if(X)Q.destroy(X);if(Q._duplexState&=469499903,this.drains!==null)XE(this.drains);if((Q._duplexState&6553615)===4194304){if(Q._duplexState&=532676607,(Q._duplexState&16777216)===16777216)Q.emit("drain")}this.updateCallback()}function aR(X){if(X)this.stream.destroy(X);if(this.stream._duplexState&=536870895,this.readAhead===!1&&(this.stream._duplexState&256)===0)this.stream._duplexState&=536739839;this.updateCallback()}function tR(){if((this.stream._duplexState&32)===0)this.stream._duplexState&=536838143,this.update()}function eR(){if((this.stream._duplexState&524288)===0)this.stream._duplexState&=503316479,this.update()}function XE(X){for(let Q=0;Q<X.length;Q++)if(--X[Q].writes===0)X.shift().resolve(!0),Q--}function kW(X){let Q=this.stream;if(X)Q.destroy(X);if((Q._duplexState&4)===0){if((Q._duplexState&17423)===0)Q._duplexState|=64;if((Q._duplexState&142606351)===0)Q._duplexState|=1048576;Q.emit("open")}if(Q._duplexState&=536608751,Q._writableState!==null)Q._writableState.updateCallback();if(Q._readableState!==null)Q._readableState.updateCallback()}function QE(X,Q){if(Q!==void 0&&Q!==null)this.push(Q);this._writableState.afterWrite(X)}function JE(X){if(this._readableState!==null){if(X==="data")this._duplexState|=133376,this._readableState.updateNextTick();if(X==="readable")this._duplexState|=4096,this._readableState.updateNextTick()}if(this._writableState!==null){if(X==="drain")this._duplexState|=16777216,this._writableState.updateNextTick()}}class F4 extends nR{constructor(X){super();if(this._duplexState=0,this._readableState=null,this._writableState=null,X){if(X.open)this._open=X.open;if(X.destroy)this._destroy=X.destroy;if(X.predestroy)this._predestroy=X.predestroy;if(X.signal)X.signal.addEventListener("abort",$E.bind(this))}this.on("newListener",JE)}_open(X){X(null)}_destroy(X){X(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&8)!==0}get destroying(){return(this._duplexState&14)!==0}destroy(X){if((this._duplexState&14)===0){if(!X)X=H1.STREAM_DESTROYED();if(this._duplexState=(this._duplexState|4)&535822271,this._readableState!==null)this._readableState.highWaterMark=0,this._readableState.error=X;if(this._writableState!==null)this._writableState.highWaterMark=0,this._writableState.error=X;if(this._duplexState|=2,this._predestroy(),this._duplexState&=536870909,this._readableState!==null)this._readableState.updateNextTick();if(this._writableState!==null)this._writableState.updateNextTick()}}}class V3 extends F4{constructor(X){super(X);if(this._duplexState|=8519681,this._readableState=new SW(this,X),X){if(this._readableState.readAhead===!1)this._duplexState&=536739839;if(X.read)this._read=X.read;if(X.eagerOpen)this._readableState.updateNextTick();if(X.encoding)this.setEncoding(X.encoding)}}static deferred(X,Q){let J=new u2(Q);return X().then((K)=>{if(K===null)return J.end();if(J.destroying)return;b2(K,J,k2)}).catch((K)=>J.destroy(K)),J}setEncoding(X){let Q=new iR(X),J=this._readableState.map||HE;return this._readableState.map=K,this;function K(Y){let H=Q.push(Y);return H===""&&(Y.byteLength!==0||Q.remaining>0)?null:J(H)}}_read(X){X(null)}pipe(X,Q){return this._readableState.updateNextTick(),this._readableState.pipe(X,Q),X}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(X){return this._readableState.updateNextTickIfOpen(),this._readableState.push(X)}unshift(X){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(X)}resume(){return this._duplexState|=131328,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?536739583:536870655,this}static _fromAsyncIterator(X,Q){let J,K=new V3({...Q,read(H){X.next().then(Y).then(H.bind(null,null)).catch(H)},predestroy(){J=X.return()},destroy(H){if(!J)return H(null);J.then(H.bind(null,null)).catch(H)}});return K;function Y(H){if(H.done)K.push(null);else K.push(H.value)}}static from(X,Q){if(WE(X))return X;if(X[M4])return this._fromAsyncIterator(X[M4](),Q);if(!Array.isArray(X))X=X===void 0?[]:[X];let J=0;return new V3({...Q,read(K){this.push(J===X.length?null:X[J++]),K(null)}})}static isBackpressured(X){return(X._duplexState&17422)!==0||X._readableState.buffered>=X._readableState.highWaterMark}static isPaused(X){return(X._duplexState&256)===0}[M4](){let X=this,Q=null,J=null,K=null;return this.on("error",(V)=>{Q=V}),this.on("readable",Y),this.on("close",H),{[M4](){return this},next(){return new Promise(function(V,W){J=V,K=W;let G=X.read();if(G!==null)Z(G);else if((X._duplexState&8)!==0)Z(null)})},return(){return q(null)},throw(V){return q(V)}};function Y(){if(J!==null)Z(X.read())}function H(){if(J!==null)Z(null)}function Z(V){if(K===null)return;if(Q)K(Q);else if(V===null&&(X._duplexState&16384)===0)K(H1.STREAM_DESTROYED());else J({value:V,done:V===null});K=J=null}function q(V){return X.destroy(V),new Promise((W,G)=>{if(X._duplexState&8)return W({value:void 0,done:!0});X.once("close",function(){if(V)G(V);else W({value:void 0,done:!0})})})}}}class h2 extends F4{constructor(X){super(X);if(this._duplexState|=16385,this._writableState=new g2(this,X),X){if(X.writev)this._writev=X.writev;if(X.write)this._write=X.write;if(X.final)this._final=X.final;if(X.eagerOpen)this._writableState.updateNextTick()}}cork(){this._duplexState|=268435456}uncork(){this._duplexState&=268435455,this._writableState.updateNextTick()}_writev(X,Q){Q(null)}_write(X,Q){this._writableState.autoBatch(X,Q)}_final(X){X(null)}static isBackpressured(X){return(X._duplexState&146800654)!==0}static drained(X){if(X.destroyed)return Promise.resolve(!1);let Q=X._writableState,K=(ME(X)?Math.min(1,Q.queue.length):Q.queue.length)+(X._duplexState&67108864?1:0);if(K===0)return Promise.resolve(!0);if(Q.drains===null)Q.drains=[];return new Promise((Y)=>{Q.drains.push({writes:K,resolve:Y})})}write(X){return this._writableState.updateNextTick(),this._writableState.push(X)}end(X){return this._writableState.updateNextTick(),this._writableState.end(X),this}}class N4 extends V3{constructor(X){super(X);if(this._duplexState=1|this._duplexState&131072,this._writableState=new g2(this,X),X){if(X.writev)this._writev=X.writev;if(X.write)this._write=X.write;if(X.final)this._final=X.final}}cork(){this._duplexState|=268435456}uncork(){this._duplexState&=268435455,this._writableState.updateNextTick()}_writev(X,Q){Q(null)}_write(X,Q){this._writableState.autoBatch(X,Q)}_final(X){X(null)}write(X){return this._writableState.updateNextTick(),this._writableState.push(X)}end(X){return this._writableState.updateNextTick(),this._writableState.end(X),this}}class f2 extends N4{constructor(X){super(X);if(this._transformState=new xW(this),X){if(X.transform)this._transform=X.transform;if(X.flush)this._flush=X.flush}}_write(X,Q){if(this._readableState.buffered>=this._readableState.highWaterMark)this._transformState.data=X;else this._transform(X,this._transformState.afterTransform)}_read(X){if(this._transformState.data!==null){let Q=this._transformState.data;this._transformState.data=null,X(null),this._transform(Q,this._transformState.afterTransform)}else X(null)}destroy(X){if(super.destroy(X),this._transformState.data!==null)this._transformState.data=null,this._transformState.afterTransform()}_transform(X,Q){Q(null,X)}_flush(X){X(null)}_final(X){this._transformState.afterFinal=X,this._flush(KE.bind(this))}}class u2 extends f2{}function KE(X,Q){let J=this._transformState.afterFinal;if(X)return J(X);if(Q!==null&&Q!==void 0)this.push(Q);this.push(null),J(null)}function YE(...X){return new Promise((Q,J)=>{return b2(...X,(K)=>{if(K)return J(K);Q()})})}function b2(X,...Q){let J=Array.isArray(X)?[...X,...Q]:[X,...Q],K=J.length&&typeof J[J.length-1]==="function"?J.pop():null;if(J.length<2)throw H1.BAD_ARGUMENT("Pipeline requires at least 2 streams");let Y=J[0],H=null,Z=null;for(let W=1;W<J.length;W++){if(H=J[W],U3(Y))Y.pipe(H,V);else q(Y,!0,W>1,V),Y.pipe(H);Y=H}if(K){let W=!1,G=U3(H)||!!(H._writableState&&H._writableState.autoDestroy);if(H.on("error",(B)=>{if(Z===null)Z=B}),H.on("finish",()=>{if(W=!0,!G)K(Z)}),G)H.on("close",()=>K(Z||(W?null:H1.PREMATURE_CLOSE())))}return H;function q(W,G,B,F){W.on("error",F),W.on("close",M);function M(){if(G&&W._readableState&&!W._readableState.ended)return F(H1.PREMATURE_CLOSE());if(B&&W._writableState&&!W._writableState.ended)return F(H1.PREMATURE_CLOSE())}}function V(W){if(!W||Z)return;Z=W;for(let G of J)G.destroy(W)}}function HE(X){return X}function gW(X){return!!X._readableState||!!X._writableState}function U3(X){return typeof X._duplexState==="number"&&gW(X)}function ZE(X){return!!X._readableState&&X._readableState.ending}function qE(X){return!!X._readableState&&X._readableState.ended}function VE(X){return!!X._writableState&&X._writableState.ending}function UE(X){return!!X._writableState&&X._writableState.ended}function GE(X,Q={}){let J=X._readableState&&X._readableState.error||X._writableState&&X._writableState.error;return!Q.all&&H1.isStreamDestroyed(J)?null:J}function WE(X){return U3(X)&&X.readable}function zE(X){return(X._duplexState&1)!==1||(X._duplexState&4)===4||(X._duplexState&33587200)!==0}function BE(X){return typeof X==="object"&&X!==null&&typeof X.byteLength==="number"}function hW(X){return BE(X)?X.byteLength:1024}function k2(){}function $E(){this.destroy(H1.ABORTED())}function ME(X){return X._writev!==h2.prototype._writev&&X._writev!==N4.prototype._writev}fW.exports={pipeline:b2,pipelinePromise:YE,isStream:gW,isStreamx:U3,isEnding:ZE,isEnded:qE,isFinishing:VE,isFinished:UE,isDisturbed:zE,getStreamError:GE,Stream:F4,Writable:h2,Readable:V3,Duplex:N4,Transform:f2,PassThrough:u2}});var c2=N((_E)=>{var K0=J8(),uW=K0.from([117,115,116,97,114,0]),FE=K0.from([48,48]),NE=K0.from([117,115,116,97,114,32]),LE=K0.from([32,0]);_E.decodeLongPath=function(Q,J){return K8(Q,0,Q.length,J)};_E.encodePax=function(Q){let J="";if(Q.name)J+=d2(" path="+Q.name+`
14
- `);if(Q.linkname)J+=d2(" linkpath="+Q.linkname+`
15
- `);let K=Q.pax;if(K)for(let Y in K)J+=d2(" "+Y+"="+K[Y]+`
16
- `);return K0.from(J)};_E.decodePax=function(Q){let J={};while(Q.length){let K=0;while(K<Q.length&&Q[K]!==32)K++;let Y=parseInt(K0.toString(Q.subarray(0,K)),10);if(!Y)return J;let H=K0.toString(Q.subarray(K+1,Y-1)),Z=H.indexOf("=");if(Z===-1)return J;J[H.slice(0,Z)]=H.slice(Z+1),Q=Q.subarray(Y)}return J};_E.encode=function(Q){let J=K0.alloc(512),K=Q.name,Y="";if(Q.typeflag===5&&K[K.length-1]!=="/")K+="/";if(K0.byteLength(K)!==K.length)return null;while(K0.byteLength(K)>100){let H=K.indexOf("/");if(H===-1)return null;Y+=Y?"/"+K.slice(0,H):K.slice(0,H),K=K.slice(H+1)}if(K0.byteLength(K)>100||K0.byteLength(Y)>155)return null;if(Q.linkname&&K0.byteLength(Q.linkname)>100)return null;if(K0.write(J,K),K0.write(J,p1(Q.mode&4095,6),100),K0.write(J,p1(Q.uid,6),108),K0.write(J,p1(Q.gid,6),116),DE(Q.size,J,124),K0.write(J,p1(Q.mtime.getTime()/1000|0,11),136),J[156]=48+jE(Q.type),Q.linkname)K0.write(J,Q.linkname,157);if(K0.copy(uW,J,257),K0.copy(FE,J,263),Q.uname)K0.write(J,Q.uname,265);if(Q.gname)K0.write(J,Q.gname,297);if(K0.write(J,p1(Q.devmajor||0,6),329),K0.write(J,p1(Q.devminor||0,6),337),Y)K0.write(J,Y,345);return K0.write(J,p1(mW(J),6),148),J};_E.decode=function(Q,J,K){let Y=Q[156]===0?0:Q[156]-48,H=K8(Q,0,100,J),Z=c1(Q,100,8),q=c1(Q,108,8),V=c1(Q,116,8),W=c1(Q,124,12),G=c1(Q,136,12),B=PE(Y),F=Q[157]===0?null:K8(Q,157,100,J),M=K8(Q,265,32),I=K8(Q,297,32),P=c1(Q,329,8),O=c1(Q,337,8),L=mW(Q);if(L===256)return null;if(L!==c1(Q,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(CE(Q)){if(Q[345])H=K8(Q,345,155,J)+"/"+H}else if(IE(Q));else if(!K)throw Error("Invalid tar header: unknown format.");if(Y===0&&H&&H[H.length-1]==="/")Y=5;return{name:H,mode:Z,uid:q,gid:V,size:W,byteOffset:0,mtime:new Date(1000*G),type:B,linkname:F,uname:M,gname:I,devmajor:P,devminor:O,pax:null}};function CE(X){return K0.equals(uW,X.subarray(257,263))}function IE(X){return K0.equals(NE,X.subarray(257,263))&&K0.equals(LE,X.subarray(263,265))}function OE(X,Q,J){if(typeof X!=="number")return J;if(X=~~X,X>=Q)return Q;if(X>=0)return X;if(X+=Q,X>=0)return X;return 0}function PE(X){switch(X){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function jE(X){switch(X){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function bW(X,Q,J,K){for(;J<K;J++)if(X[J]===Q)return J;return K}function mW(X){let Q=256;for(let J=0;J<148;J++)Q+=X[J];for(let J=156;J<512;J++)Q+=X[J];return Q}function p1(X,Q){if(X=X.toString(8),X.length>Q)return"7777777777777777777".slice(0,Q)+" ";return"0000000000000000000".slice(0,Q-X.length)+X+" "}function wE(X,Q,J){Q[J]=128;for(let K=11;K>0;K--)Q[J+K]=X&255,X=Math.floor(X/256)}function DE(X,Q,J){if(X.toString(8).length>11)wE(X,Q,J);else K0.write(Q,p1(X,11),J)}function TE(X){let Q;if(X[0]===128)Q=!0;else if(X[0]===255)Q=!1;else return null;let J=[],K;for(K=X.length-1;K>0;K--){let Z=X[K];if(Q)J.push(Z);else J.push(255-Z)}let Y=0,H=J.length;for(K=0;K<H;K++)Y+=J[K]*Math.pow(256,K);return Q?Y:-1*Y}function c1(X,Q,J){if(X=X.subarray(Q,Q+J),Q=0,X[Q]&128)return TE(X);else{while(Q<X.length&&X[Q]===32)Q++;let K=OE(bW(X,32,Q,X.length),X.length,X.length);while(Q<K&&X[Q]===0)Q++;if(K===Q)return 0;return parseInt(K0.toString(X.subarray(Q,K)),8)}}function K8(X,Q,J,K){return K0.toString(X.subarray(Q,bW(X,0,Q,Q+J)),K)}function d2(X){let Q=K0.byteLength(X),J=Math.floor(Math.log(Q)/Math.log(10))+1;if(Q+J>=Math.pow(10,J))J++;return Q+J+X}});var rW=N((Hk,oW)=>{var{Writable:vE,Readable:yE,getStreamError:dW}=m2(),kE=v2(),cW=J8(),Y8=c2(),gE=cW.alloc(0);class pW{constructor(){this.buffered=0,this.shifted=0,this.queue=new kE,this._offset=0}push(X){this.buffered+=X.byteLength,this.queue.push(X)}shiftFirst(X){return this.buffered===0?null:this._next(X)}shift(X){if(X>this.buffered)return null;if(X===0)return gE;let Q=this._next(X);if(X===Q.byteLength)return Q;let J=[Q];while((X-=Q.byteLength)>0)Q=this._next(X),J.push(Q);return cW.concat(J)}_next(X){let Q=this.queue.peek(),J=Q.byteLength-this._offset;if(X>=J){let K=this._offset?Q.subarray(this._offset,Q.byteLength):Q;return this.queue.shift(),this._offset=0,this.buffered-=J,this.shifted+=J,K}return this.buffered-=X,this.shifted+=X,Q.subarray(this._offset,this._offset+=X)}}class lW extends yE{constructor(X,Q,J){super();this.header=Q,this.offset=J,this._parent=X}_read(X){if(this.header.size===0)this.push(null);if(this._parent._stream===this)this._parent._update();X(null)}_predestroy(){this._parent.destroy(dW(this))}_detach(){if(this._parent._stream===this)this._parent._stream=null,this._parent._missing=iW(this.header.size),this._parent._update()}_destroy(X){this._detach(),X(null)}}class nW extends vE{constructor(X){super(X);if(!X)X={};this._buffer=new pW,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=p2,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=X.filenameEncoding||"utf-8",this._allowUnknownFormat=!!X.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(X){if(this._locked=!1,X){this.destroy(X),this._continueWrite(X);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Y8.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(X){return this._continueWrite(X),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":if(this._longHeader=!0,this._missing=this._header.size,this._missing>4194304)return this._continueWrite(Error("Header exceeds max size")),!1;return!0}if(this._locked=!0,this._applyLongHeaders(),!(this._header.size>=0))return this._continueWrite(Error("Invalid header")),!1;if(this._header.size===0||this._header.type==="directory")return this.emit("entry",this._header,this._createStream(),this._unlockBound),!0;return this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0}_applyLongHeaders(){if(this._gnuLongPath)this._header.name=this._gnuLongPath,this._gnuLongPath=null;if(this._gnuLongLinkPath)this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null;if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax,this._pax=null}}_decodeLongHeader(X){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Y8.decodeLongPath(X,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Y8.decodeLongPath(X,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Y8.decodePax(X);break;case"pax-header":this._pax=this._paxGlobal===null?Y8.decodePax(X):Object.assign({},this._paxGlobal,Y8.decodePax(X));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=iW(this._header.size);let X=this._buffer.shift(this._header.size);try{this._decodeLongHeader(X)}catch(Q){return this._continueWrite(Q),!1}return!0}_consumeStream(){let X=this._buffer.shiftFirst(this._missing);if(X===null)return!1;this._missing-=X.byteLength;let Q=this._stream.push(X);if(this._missing===0){if(this._stream.push(null),Q)this._stream._detach();return Q&&this._locked===!1}return Q}_createStream(){return new lW(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let X=this._buffer.shiftFirst(this._missing);if(X!==null)this._missing-=X.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(X){let Q=this._callback;this._callback=p2,Q(X)}_write(X,Q){this._callback=Q,this._buffer.push(X),this._update()}_final(X){this._finished=this._missing===0&&this._buffer.buffered===0,X(this._finished?null:Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(X){if(this._stream)this._stream.destroy(dW(this));X(null)}[Symbol.asyncIterator](){let X=null,Q=null,J=null,K=null,Y=null,H=this;return this.on("entry",V),this.on("error",(B)=>{X=B}),this.on("close",W),{[Symbol.asyncIterator](){return this},next(){return new Promise(q)},return(){return G(null)},throw(B){return G(B)}};function Z(B){if(!Y)return;let F=Y;Y=null,F(B)}function q(B,F){if(X)return F(X);if(K){B({value:K,done:!1}),K=null;return}if(Q=B,J=F,Z(null),H._finished&&Q)Q({value:void 0,done:!0}),Q=J=null}function V(B,F,M){if(Y=M,F.on("error",p2),Q)Q({value:F,done:!1}),Q=J=null;else K=F}function W(){if(Z(X),!Q)return;if(X)J(X);else Q({value:void 0,done:!0});Q=J=null}function G(B){return H.destroy(B),Z(B),new Promise((F,M)=>{if(H.destroyed)return F({value:void 0,done:!0});H.once("close",function(){if(B)M(B);else F({value:void 0,done:!0})})})}}}oW.exports=function(Q){return new nW(Q)};function p2(){}function iW(X){return X&=511,X&&512-X}});var aW=N((Zk,l2)=>{var sW={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{l2.exports=f("fs").constants||sW}catch{l2.exports=sW}});var Yz=N((qk,Kz)=>{var{Readable:hE,Writable:fE,getStreamError:tW}=m2(),F6=J8(),H8=aW(),L4=c2(),eW=F6.alloc(1024);class Xz extends fE{constructor(X,Q,J){super({mapWritable:bE,eagerOpen:!0});if(this.written=0,this.header=Q,this._callback=J,this._linkname=null,this._isLinkname=Q.type==="symlink"&&!Q.linkname,this._isVoid=Q.type!=="file"&&Q.type!=="contiguous-file",this._finished=!1,this._pack=X,this._openCallback=null,this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(X){if(this._openCallback=X,this._pack._stream===this)this._continueOpen()}_continuePack(X){if(this._callback===null)return;let Q=this._callback;this._callback=null,Q(X)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;let X=this._openCallback;if(this._openCallback=null,X===null)return;if(this._pack.destroying)return X(Error("pack stream destroyed"));if(this._pack._finalized)return X(Error("pack stream is already finalized"));if(this._pack._stream=this,!this._isLinkname)this._pack._encode(this.header);if(this._isVoid)this._finish(),this._continuePack(null);X(null)}_write(X,Q){if(this._isLinkname)return this._linkname=this._linkname?F6.concat([this._linkname,X]):X,Q(null);if(this._isVoid){if(X.byteLength>0)return Q(Error("No body allowed for this entry"));return Q()}if(this.written+=X.byteLength,this._pack.push(X))return Q();this._pack._drain=Q}_finish(){if(this._finished)return;if(this._finished=!0,this._isLinkname)this.header.linkname=this._linkname?F6.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header);Jz(this._pack,this.header.size),this._pack._done(this)}_final(X){if(this.written!==this.header.size)return X(Error("Size mismatch"));this._finish(),X(null)}_getError(){return tW(this)||Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(X){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),X()}}class Qz extends hE{constructor(X){super(X);this._drain=n2,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(X,Q,J){if(this._finalized||this.destroying)throw Error("already finalized or destroyed");if(typeof Q==="function")J=Q,Q=null;if(!J)J=n2;if(!X.size||X.type==="symlink")X.size=0;if(!X.type)X.type=uE(X.mode);if(!X.mode)X.mode=X.type==="directory"?493:420;if(!X.uid)X.uid=0;if(!X.gid)X.gid=0;if(!X.mtime)X.mtime=new Date;if(typeof Q==="string")Q=F6.from(Q);let K=new Xz(this,X,J);if(F6.isBuffer(Q))return X.size=Q.byteLength,K.write(Q),K.end(),K;if(K._isVoid)return K;return K}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}if(this._finalized)return;this._finalized=!0,this.push(eW),this.push(null)}_done(X){if(X!==this._stream)return;if(this._stream=null,this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(X){if(!X.pax){let Q=L4.encode(X);if(Q){this.push(Q);return}}this._encodePax(X)}_encodePax(X){let Q=L4.encodePax({name:X.name,linkname:X.linkname,pax:X.pax}),J={name:"PaxHeader",mode:X.mode,uid:X.uid,gid:X.gid,size:Q.byteLength,mtime:X.mtime,type:"pax-header",linkname:X.linkname&&"PaxHeader",uname:X.uname,gname:X.gname,devmajor:X.devmajor,devminor:X.devminor};this.push(L4.encode(J)),this.push(Q),Jz(this,Q.byteLength),J.size=X.size,J.type=X.type,this.push(L4.encode(J))}_doDrain(){let X=this._drain;this._drain=n2,X()}_predestroy(){let X=tW(this);if(this._stream)this._stream.destroy(X);while(this._pending.length){let Q=this._pending.shift();Q.destroy(X),Q._continueOpen()}this._doDrain()}_read(X){this._doDrain(),X()}}Kz.exports=function(Q){return new Qz(Q)};function uE(X){switch(X&H8.S_IFMT){case H8.S_IFBLK:return"block-device";case H8.S_IFCHR:return"character-device";case H8.S_IFDIR:return"directory";case H8.S_IFIFO:return"fifo";case H8.S_IFLNK:return"symlink"}return"file"}function n2(){}function Jz(X,Q){if(Q&=511,Q)X.push(eW.subarray(0,512-Q))}function bE(X){return F6.isBuffer(X)?X:F6.from(X)}});var Hz=N((mE)=>{mE.extract=rW();mE.pack=Yz()});var Vz=N((Uk,qz)=>{var pE=f("zlib"),lE=Hz(),Zz=X8(),x1=function(X){if(!(this instanceof x1))return new x1(X);if(X=this.options=Zz.defaults(X,{gzip:!1}),typeof X.gzipOptions!=="object")X.gzipOptions={};if(this.supports={directory:!0,symlink:!0},this.engine=lE.pack(X),this.compressor=!1,X.gzip)this.compressor=pE.createGzip(X.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this))};x1.prototype._onCompressorError=function(X){this.engine.emit("error",X)};x1.prototype.append=function(X,Q,J){var K=this;Q.mtime=Q.date;function Y(Z,q){if(Z){J(Z);return}K.engine.entry(Q,q,function(V){J(V,Q)})}if(Q.sourceType==="buffer")Y(null,X);else if(Q.sourceType==="stream"&&Q.stats){Q.size=Q.stats.size;var H=K.engine.entry(Q,function(Z){J(Z,Q)});X.pipe(H)}else if(Q.sourceType==="stream")Zz.collectStream(X,Y)};x1.prototype.finalize=function(){this.engine.finalize()};x1.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};x1.prototype.pipe=function(X,Q){if(this.compressor)return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(X,Q);else return this.engine.pipe.apply(this.engine,arguments)};x1.prototype.unpipe=function(){if(this.compressor)return this.compressor.unpipe.apply(this.compressor,arguments);else return this.engine.unpipe.apply(this.engine,arguments)};qz.exports=x1});var Wz=N((Gk,Gz)=>{function nE(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}var iE=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function Uz(X){if(Buffer.isBuffer(X))return X;if(typeof X==="number")return Buffer.alloc(X);else if(typeof X==="string")return Buffer.from(X);else throw Error("input must be buffer, number, or string, received "+typeof X)}function oE(X){let Q=Uz(4);return Q.writeInt32BE(X,0),Q}function i2(X,Q){if(X=Uz(X),Buffer.isBuffer(Q))Q=Q.readUInt32BE(0);let J=~~Q^-1;for(var K=0;K<X.length;K++)J=iE[(J^X[K])&255]^J>>>8;return J^-1}function o2(){return oE(i2.apply(null,arguments))}o2.signed=function(){return i2.apply(null,arguments)};o2.unsigned=function(){return i2.apply(null,arguments)>>>0};var rE=o2,sE=nE(rE);Gz.exports=sE});var Mz=N((Wk,$z)=>{var aE=f("util").inherits,zz=G6().Transform,tE=Wz(),Bz=X8(),l1=function(X){if(!(this instanceof l1))return new l1(X);X=this.options=Bz.defaults(X,{}),zz.call(this,X),this.supports={directory:!0,symlink:!0},this.files=[]};aE(l1,zz);l1.prototype._transform=function(X,Q,J){J(null,X)};l1.prototype._writeStringified=function(){var X=JSON.stringify(this.files);this.write(X)};l1.prototype.append=function(X,Q,J){var K=this;Q.crc32=0;function Y(H,Z){if(H){J(H);return}Q.size=Z.length||0,Q.crc32=tE.unsigned(Z),K.files.push(Q),J(null,Q)}if(Q.sourceType==="buffer")Y(null,X);else if(Q.sourceType==="stream")Bz.collectStream(X,Y)};l1.prototype.finalize=function(){this._writeStringified(),this.end()};$z.exports=l1});var XS=N((zk,Fz)=>{var eE=yG(),G3={},n1=function(X,Q){return n1.create(X,Q)};n1.create=function(X,Q){if(G3[X]){var J=new eE(X,Q);return J.setFormat(X),J.setModule(new G3[X](Q)),J}else throw Error("create("+X+"): format not registered")};n1.registerFormat=function(X,Q){if(G3[X])throw Error("register("+X+"): format already registered");if(typeof Q!=="function")throw Error("register("+X+"): format module invalid");if(typeof Q.prototype.append!=="function"||typeof Q.prototype.finalize!=="function")throw Error("register("+X+"): format module missing methods");G3[X]=Q};n1.isRegisteredFormat=function(X){if(G3[X])return!0;return!1};n1.registerFormat("zip",$W());n1.registerFormat("tar",Vz());n1.registerFormat("json",Mz());Fz.exports=n1});export default XS();