@compass-labs/api-sdk 2.2.95 → 2.2.96

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 (79) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/models/components/chainmarketinfo.d.ts +5 -1
  4. package/dist/commonjs/models/components/chainmarketinfo.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/chainmarketinfo.js +2 -0
  6. package/dist/commonjs/models/components/chainmarketinfo.js.map +1 -1
  7. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +25 -3
  8. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/loopedpositioncurrentstate.js +8 -0
  10. package/dist/commonjs/models/components/loopedpositioncurrentstate.js.map +1 -1
  11. package/dist/commonjs/models/components/morpholendingmarket.d.ts +8 -0
  12. package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/morpholendingmarket.js +4 -0
  14. package/dist/commonjs/models/components/morpholendingmarket.js.map +1 -1
  15. package/dist/commonjs/models/components/reserveinfo.d.ts +5 -1
  16. package/dist/commonjs/models/components/reserveinfo.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/reserveinfo.js +2 -0
  18. package/dist/commonjs/models/components/reserveinfo.js.map +1 -1
  19. package/dist/esm/lib/config.d.ts +2 -2
  20. package/dist/esm/lib/config.js +2 -2
  21. package/dist/esm/models/components/chainmarketinfo.d.ts +5 -1
  22. package/dist/esm/models/components/chainmarketinfo.d.ts.map +1 -1
  23. package/dist/esm/models/components/chainmarketinfo.js +2 -0
  24. package/dist/esm/models/components/chainmarketinfo.js.map +1 -1
  25. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +25 -3
  26. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts.map +1 -1
  27. package/dist/esm/models/components/loopedpositioncurrentstate.js +8 -0
  28. package/dist/esm/models/components/loopedpositioncurrentstate.js.map +1 -1
  29. package/dist/esm/models/components/morpholendingmarket.d.ts +8 -0
  30. package/dist/esm/models/components/morpholendingmarket.d.ts.map +1 -1
  31. package/dist/esm/models/components/morpholendingmarket.js +4 -0
  32. package/dist/esm/models/components/morpholendingmarket.js.map +1 -1
  33. package/dist/esm/models/components/reserveinfo.d.ts +5 -1
  34. package/dist/esm/models/components/reserveinfo.d.ts.map +1 -1
  35. package/dist/esm/models/components/reserveinfo.js +2 -0
  36. package/dist/esm/models/components/reserveinfo.js.map +1 -1
  37. package/docs/models/components/chainmarketinfo.md +15 -14
  38. package/docs/models/components/loopedpositioncurrentstate.md +17 -13
  39. package/docs/models/components/morpholendingmarket.md +23 -21
  40. package/docs/models/components/reserveinfo.md +14 -13
  41. package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
  42. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
  43. package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
  44. package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
  45. package/examples/node_modules/tsx/dist/cli.cjs +2 -2
  46. package/examples/node_modules/tsx/dist/cli.mjs +2 -2
  47. package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
  48. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
  49. package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
  50. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
  51. package/examples/node_modules/tsx/dist/index-CVGQLgGk.mjs +14 -0
  52. package/examples/node_modules/tsx/dist/index-LWEOpzQe.cjs +14 -0
  53. package/examples/node_modules/tsx/dist/loader.cjs +1 -1
  54. package/examples/node_modules/tsx/dist/loader.mjs +1 -1
  55. package/examples/node_modules/tsx/dist/package-BUjYdoyo.mjs +1 -0
  56. package/examples/node_modules/tsx/dist/package-BqWb5wzm.cjs +1 -0
  57. package/examples/node_modules/tsx/dist/preflight.cjs +1 -1
  58. package/examples/node_modules/tsx/dist/preflight.mjs +1 -1
  59. package/examples/node_modules/tsx/dist/{register-HWZIKnmC.mjs → register-A6mos5aG.mjs} +1 -1
  60. package/examples/node_modules/tsx/dist/{register-zZ7SWseA.mjs → register-B_kKY3fL.mjs} +1 -1
  61. package/examples/node_modules/tsx/dist/{register-BoI6-WNn.cjs → register-CptX03bE.cjs} +1 -1
  62. package/examples/node_modules/tsx/dist/{register-DlUHyDDv.cjs → register-DQV4TtD3.cjs} +2 -2
  63. package/examples/node_modules/tsx/dist/repl.cjs +1 -1
  64. package/examples/node_modules/tsx/dist/repl.mjs +1 -1
  65. package/examples/node_modules/tsx/dist/{require-awuW45Q3.mjs → require-Cbdk4ZrE.mjs} +1 -1
  66. package/examples/node_modules/tsx/dist/{require-C7ivLNeu.cjs → require-bPEuCWoO.cjs} +1 -1
  67. package/examples/node_modules/tsx/package.json +1 -1
  68. package/examples/package-lock.json +3 -3
  69. package/openapi_prepped_for_speakeasy.json +101 -5
  70. package/package.json +1 -1
  71. package/src/lib/config.ts +2 -2
  72. package/src/models/components/chainmarketinfo.ts +7 -1
  73. package/src/models/components/loopedpositioncurrentstate.ts +33 -3
  74. package/src/models/components/morpholendingmarket.ts +12 -0
  75. package/src/models/components/reserveinfo.ts +7 -1
  76. package/examples/node_modules/tsx/dist/index-BN2t1Mfo.cjs +0 -14
  77. package/examples/node_modules/tsx/dist/index-CQhDiIsg.mjs +0 -14
  78. package/examples/node_modules/tsx/dist/package-CiRlP2hu.mjs +0 -1
  79. package/examples/node_modules/tsx/dist/package-DYbiKo1t.cjs +0 -1
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- var Bn=Object.defineProperty;var a=(t,e)=>Bn(t,"name",{value:e,configurable:!0});import{constants as ft}from"node:os";import $n from"tty";import{v as Tn}from"./package-CiRlP2hu.mjs";import{r as Ie,g as xn,i as On}from"./get-pipe-path-_tAJyU_v.mjs";import{pathToFileURL as Nn,fileURLToPath as Pn}from"node:url";import Hn from"child_process";import q from"path";import oe from"fs";import{i as yu,a as Ln,t as In}from"./node-features-JeyyvQz6.mjs";import ke from"node:path";import Me from"node:fs";import kn from"events";import ge from"util";import Mn from"stream";import wu from"os";import{g as Wn,l as Gn,y as me,e as jn,f as Un}from"./index-gbaejti9.mjs";import Kn from"node:net";import{t as Vn}from"./temporary-directory-BDDVQOvU.mjs";import"module";const zn="known-flag",Yn="unknown-flag",qn="argument",{stringify:_e}=JSON,Xn=/\B([A-Z])/g,Qn=a(t=>t.replace(Xn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Zn}=Object.prototype,Ae=a((t,e)=>Zn.call(t,e),"w$2"),Jn=a(t=>Array.isArray(t),"L$2"),Ru=a(t=>typeof t=="function"?[t,!1]:Jn(t)?[t[0],!0]:Ru(t.type),"b$2"),er=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),tr=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),ur=/[\s.:=]/,sr=a(t=>{const e=`Flag name ${_e(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(ur);if(u)throw new Error(`${e} cannot contain ${_e(u?.[0])}`)},"B"),nr=a(t=>{const e={},u=a((s,n)=>{if(Ae(e,s))throw new Error(`Duplicate flags named ${_e(s)}`);e[s]=n},"r");for(const s in t){if(!Ae(t,s))continue;sr(s);const n=t[s],r=[[],...Ru(n),n];u(s,r);const i=Qn(s);if(s!==i&&u(i,r),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${_e(o)} for flag ${_e(s)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,r)}}return e},"K$1"),rr=a((t,e)=>{const u={};for(const s in t){if(!Ae(t,s))continue;const[n,,r,i]=e[s];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[s]=o}else u[s]=r?n:n.pop()}return u},"_$2"),We="--",ir=/[.:=]/,or=/^-{1,2}\w/,Dr=a(t=>{if(!or.test(t))return;const e=!t.startsWith(We);let u=t.slice(e?1:2),s;const n=u.match(ir);if(n){const{index:r}=n;s=u.slice(r+1),u=u.slice(0,r)}return[u,s,e]},"N"),ar=a((t,{onFlag:e,onArgument:u})=>{let s;const n=a((r,i)=>{if(typeof s!="function")return!0;s(r,i),s=void 0},"o");for(let r=0;r<t.length;r+=1){const i=t[r];if(i===We){n();const D=t.slice(r+1);u?.(D,[r],!0);break}const o=Dr(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;s=e(D[h],c?l:void 0,[r,h+1,c])}else s=e(D,l,[r])}else n(i,[r])&&u?.([i],[r])}n()},"$$1"),lr=a((t,e)=>{for(const[u,s,n]of e.reverse()){if(s){const r=t[u];let i=r.slice(0,s);if(n||(i+=r.slice(s+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),bu=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const s=[],n=nr(t),r={},i=[];return i[We]=[],ar(e,{onFlag(o,D,l){const f=Ae(n,o);if(!u?.(f?zn:Yn,o,D)){if(f){const[h,c]=n[o],C=er(c,D),F=a((m,R)=>{s.push(l),R&&s.push(R),h.push(tr(c,m||""))},"p");return C===void 0?F:F(C)}Ae(r,o)||(r[o]=[]),r[o].push(D===void 0?!0:D),s.push(l)}},onArgument(o,D,l){u?.(qn,e[D[0]])||(i.push(...o),l?(i[We]=o,e.splice(D[0])):s.push(D))}}),lr(e,s),{flags:rr(t,n),unknownFlags:r,_:i}},"U$2");var cr=Object.create,Ge=Object.defineProperty,fr=Object.defineProperties,hr=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,pr=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Bu=a((t,e,u)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),je=a((t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Bu(t,u,e[u]);if(vu)for(var u of vu(e))Cr.call(e,u)&&Bu(t,u,e[u]);return t},"p"),ht=a((t,e)=>fr(t,dr(e)),"c"),Fr=a(t=>Ge(t,"__esModule",{value:!0}),"nD"),gr=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),mr=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),_r=a((t,e,u,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Er(e))!Su.call(t,n)&&n!=="default"&&Ge(t,n,{get:a(()=>e[n],"get"),enumerable:!(s=hr(e,n))||s.enumerable});return t},"oD"),Ar=a((t,e)=>_r(Fr(Ge(t!=null?cr(pr(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=gr(()=>{}),yr=mr((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var wr=a(t=>{var e,u,s;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(s=t.stdoutColumns)!=null?s:n}},"v");V(),V(),V(),V(),V();function Rr({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}a(Rr,"w$1");function $u(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Rr(),"")}a($u,"d$1"),V();function br(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}a(br,"y$1");var vr=Ar(yr());function De(t){if(typeof t!="string"||t.length===0||(t=$u(t),t.length===0))return 0;t=t.replace((0,vr.default)()," ");let e=0;for(let u=0;u<t.length;u++){let s=t.codePointAt(u);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&u++,e+=br(s)?2:1)}return e}a(De,"g");var Tu=a(t=>Math.max(...t.split(`
2
+ var Bn=Object.defineProperty;var a=(t,e)=>Bn(t,"name",{value:e,configurable:!0});import{constants as ft}from"node:os";import $n from"tty";import{v as Tn}from"./package-BUjYdoyo.mjs";import{r as Ie,g as xn,i as On}from"./get-pipe-path-_tAJyU_v.mjs";import{pathToFileURL as Nn,fileURLToPath as Pn}from"node:url";import Hn from"child_process";import q from"path";import oe from"fs";import{i as yu,a as Ln,t as In}from"./node-features-JeyyvQz6.mjs";import ke from"node:path";import Me from"node:fs";import kn from"events";import ge from"util";import Mn from"stream";import wu from"os";import{g as Wn,l as Gn,y as me,e as jn,f as Un}from"./index-gbaejti9.mjs";import Kn from"node:net";import{t as Vn}from"./temporary-directory-BDDVQOvU.mjs";import"module";const zn="known-flag",Yn="unknown-flag",qn="argument",{stringify:_e}=JSON,Xn=/\B([A-Z])/g,Qn=a(t=>t.replace(Xn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Zn}=Object.prototype,Ae=a((t,e)=>Zn.call(t,e),"w$2"),Jn=a(t=>Array.isArray(t),"L$2"),Ru=a(t=>typeof t=="function"?[t,!1]:Jn(t)?[t[0],!0]:Ru(t.type),"b$2"),er=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),tr=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),ur=/[\s.:=]/,sr=a(t=>{const e=`Flag name ${_e(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(ur);if(u)throw new Error(`${e} cannot contain ${_e(u?.[0])}`)},"B"),nr=a(t=>{const e={},u=a((s,n)=>{if(Ae(e,s))throw new Error(`Duplicate flags named ${_e(s)}`);e[s]=n},"r");for(const s in t){if(!Ae(t,s))continue;sr(s);const n=t[s],r=[[],...Ru(n),n];u(s,r);const i=Qn(s);if(s!==i&&u(i,r),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${_e(o)} for flag ${_e(s)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,r)}}return e},"K$1"),rr=a((t,e)=>{const u={};for(const s in t){if(!Ae(t,s))continue;const[n,,r,i]=e[s];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[s]=o}else u[s]=r?n:n.pop()}return u},"_$2"),We="--",ir=/[.:=]/,or=/^-{1,2}\w/,Dr=a(t=>{if(!or.test(t))return;const e=!t.startsWith(We);let u=t.slice(e?1:2),s;const n=u.match(ir);if(n){const{index:r}=n;s=u.slice(r+1),u=u.slice(0,r)}return[u,s,e]},"N"),ar=a((t,{onFlag:e,onArgument:u})=>{let s;const n=a((r,i)=>{if(typeof s!="function")return!0;s(r,i),s=void 0},"o");for(let r=0;r<t.length;r+=1){const i=t[r];if(i===We){n();const D=t.slice(r+1);u?.(D,[r],!0);break}const o=Dr(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;s=e(D[h],c?l:void 0,[r,h+1,c])}else s=e(D,l,[r])}else n(i,[r])&&u?.([i],[r])}n()},"$$1"),lr=a((t,e)=>{for(const[u,s,n]of e.reverse()){if(s){const r=t[u];let i=r.slice(0,s);if(n||(i+=r.slice(s+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),bu=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const s=[],n=nr(t),r={},i=[];return i[We]=[],ar(e,{onFlag(o,D,l){const f=Ae(n,o);if(!u?.(f?zn:Yn,o,D)){if(f){const[h,c]=n[o],C=er(c,D),F=a((m,R)=>{s.push(l),R&&s.push(R),h.push(tr(c,m||""))},"p");return C===void 0?F:F(C)}Ae(r,o)||(r[o]=[]),r[o].push(D===void 0?!0:D),s.push(l)}},onArgument(o,D,l){u?.(qn,e[D[0]])||(i.push(...o),l?(i[We]=o,e.splice(D[0])):s.push(D))}}),lr(e,s),{flags:rr(t,n),unknownFlags:r,_:i}},"U$2");var cr=Object.create,Ge=Object.defineProperty,fr=Object.defineProperties,hr=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,pr=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Bu=a((t,e,u)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),je=a((t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Bu(t,u,e[u]);if(vu)for(var u of vu(e))Cr.call(e,u)&&Bu(t,u,e[u]);return t},"p"),ht=a((t,e)=>fr(t,dr(e)),"c"),Fr=a(t=>Ge(t,"__esModule",{value:!0}),"nD"),gr=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),mr=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),_r=a((t,e,u,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Er(e))!Su.call(t,n)&&n!=="default"&&Ge(t,n,{get:a(()=>e[n],"get"),enumerable:!(s=hr(e,n))||s.enumerable});return t},"oD"),Ar=a((t,e)=>_r(Fr(Ge(t!=null?cr(pr(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=gr(()=>{}),yr=mr((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var wr=a(t=>{var e,u,s;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(s=t.stdoutColumns)!=null?s:n}},"v");V(),V(),V(),V(),V();function Rr({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}a(Rr,"w$1");function $u(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Rr(),"")}a($u,"d$1"),V();function br(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}a(br,"y$1");var vr=Ar(yr());function De(t){if(typeof t!="string"||t.length===0||(t=$u(t),t.length===0))return 0;t=t.replace((0,vr.default)()," ");let e=0;for(let u=0;u<t.length;u++){let s=t.codePointAt(u);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&u++,e+=br(s)?2:1)}return e}a(De,"g");var Tu=a(t=>Math.max(...t.split(`
3
3
  `).map(De)),"b$1"),Sr=a(t=>{let e=[];for(let u of t){let{length:s}=u,n=s-e.length;for(let r=0;r<n;r+=1)e.push(0);for(let r=0;r<s;r+=1){let i=Tu(u[r]);i>e[r]&&(e[r]=i)}}return e},"k$1");V();var xu=/^\d+%$/,Ou={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Br=a((t,e)=>{var u;let s=[];for(let n=0;n<t.length;n+=1){let r=(u=e[n])!=null?u:"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&&xu.test(r)){s.push(ht(je({},Ou),{width:r,contentWidth:t[n]}));continue}if(r&&typeof r=="object"){let i=ht(je(je({},Ou),r),{contentWidth:t[n]});i.horizontalPadding=i.paddingLeft+i.paddingRight,s.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return s},"sD");function $r(t,e){for(let u of t){let{width:s}=u;if(s==="content-width"&&(u.width=u.contentWidth),s==="auto"){let D=Math.min(20,u.contentWidth);u.width=D,u.autoOverflow=u.contentWidth-D}if(typeof s=="string"&&xu.test(s)){let D=Number.parseFloat(s.slice(0,-1))/100;u.width=Math.floor(e*D)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,r=1,i=r+n;if(i>=e){let D=i-e,l=Math.ceil(u.paddingLeft/n*D),f=D-l;u.paddingLeft-=l,u.paddingRight-=f,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let o=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,o),r)}}a($r,"aD");var Nu=a(()=>Object.assign([],{columns:0}),"G$1");function Tr(t,e){let u=[Nu()],[s]=u;for(let n of t){let r=n.width+n.horizontalPadding;s.columns+r>e&&(s=Nu(),u.push(s)),s.push(n),s.columns+=r}for(let n of u){let r=n.reduce((c,C)=>c+C.width+C.horizontalPadding,0),i=e-r;if(i===0)continue;let o=n.filter(c=>"autoOverflow"in c),D=o.filter(c=>c.autoOverflow>0),l=D.reduce((c,C)=>c+C.autoOverflow,0),f=Math.min(l,i);for(let c of D){let C=Math.floor(c.autoOverflow/l*f);c.width+=C,i-=C}let h=Math.floor(i/o.length);for(let c=0;c<o.length;c+=1){let C=o[c];c===o.length-1?C.width+=i:C.width+=h,i-=h}}return u}a(Tr,"lD");function xr(t,e,u){let s=Br(u,e);return $r(s,t),Tr(s,t)}a(xr,"Z$1"),V(),V(),V();var dt=10,Pu=a((t=0)=>e=>`\x1B[${e+t}m`,"U$1"),Hu=a((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"V$1"),Lu=a((t=0)=>(e,u,s)=>`\x1B[${38+t};2;${e};${u};${s}m`,"Y");function Or(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,s]of Object.entries(e)){for(let[n,r]of Object.entries(s))e[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},s[n]=e[n],t.set(r[0],r[1]);Object.defineProperty(e,u,{value:s,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Pu(),e.color.ansi256=Hu(),e.color.ansi16m=Lu(),e.bgColor.ansi=Pu(dt),e.bgColor.ansi256=Hu(dt),e.bgColor.ansi16m=Lu(dt),Object.defineProperties(e,{rgbToAnsi256:{value:a((u,s,n)=>u===s&&s===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(s/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:a(u=>{let s=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!s)return[0,0,0];let{colorString:n}=s.groups;n.length===3&&(n=n.split("").map(i=>i+i).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(u=>e.rgbToAnsi256(...e.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let s,n,r;if(u>=232)s=((u-232)*10+8)/255,n=s,r=s;else{u-=16;let D=u%36;s=Math.floor(u/36)/5,n=Math.floor(D/6)/5,r=D%6/5}let i=Math.max(s,n,r)*2;if(i===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(s));return i===2&&(o+=60),o},"value"),enumerable:!1},rgbToAnsi:{value:a((u,s,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,s,n)),"value"),enumerable:!1},hexToAnsi:{value:a(u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),"value"),enumerable:!1}}),e}a(Or,"AD");var Nr=Or(),Pr=Nr,Ue=new Set(["\x1B","\x9B"]),Hr=39,Et="\x07",Iu="[",Lr="]",ku="m",pt=`${Lr}8;;`,Mu=a(t=>`${Ue.values().next().value}${Iu}${t}${ku}`,"J$1"),Wu=a(t=>`${Ue.values().next().value}${pt}${t}${Et}`,"Q"),Ir=a(t=>t.split(" ").map(e=>De(e)),"hD"),Ct=a((t,e,u)=>{let s=[...e],n=!1,r=!1,i=De($u(t[t.length-1]));for(let[o,D]of s.entries()){let l=De(D);if(i+l<=u?t[t.length-1]+=D:(t.push(D),i=0),Ue.has(D)&&(n=!0,r=s.slice(o+1).join("").startsWith(pt)),n){r?D===Et&&(n=!1,r=!1):D===ku&&(n=!1);continue}i+=l,i===u&&o<s.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},"S$1"),kr=a(t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(De(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},"cD"),Mr=a((t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let s="",n,r,i=Ir(t),o=[""];for(let[l,f]of t.split(" ").entries()){u.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let h=De(o[o.length-1]);if(l!==0&&(h>=e&&(u.wordWrap===!1||u.trim===!1)&&(o.push(""),h=0),(h>0||u.trim===!1)&&(o[o.length-1]+=" ",h++)),u.hard&&i[l]>e){let c=e-h,C=1+Math.floor((i[l]-c-1)/e);Math.floor((i[l]-1)/e)<C&&o.push(""),Ct(o,f,e);continue}if(h+i[l]>e&&h>0&&i[l]>0){if(u.wordWrap===!1&&h<e){Ct(o,f,e);continue}o.push("")}if(h+i[l]>e&&u.wordWrap===!1){Ct(o,f,e);continue}o[o.length-1]+=f}u.trim!==!1&&(o=o.map(l=>kr(l)));let D=[...o.join(`
4
4
  `)];for(let[l,f]of D.entries()){if(s+=f,Ue.has(f)){let{groups:c}=new RegExp(`(?:\\${Iu}(?<code>\\d+)m|\\${pt}(?<uri>.*)${Et})`).exec(D.slice(l).join(""))||{groups:{}};if(c.code!==void 0){let C=Number.parseFloat(c.code);n=C===Hr?void 0:C}else c.uri!==void 0&&(r=c.uri.length===0?void 0:c.uri)}let h=Pr.codes.get(Number(n));D[l+1]===`
5
5
  `?(r&&(s+=Wu("")),n&&h&&(s+=Mu(h))):f===`
@@ -50,6 +50,6 @@ var Bn=Object.defineProperty;var a=(t,e)=>Bn(t,"name",{value:e,configurable:!0})
50
50
  * Copyright (c) 2014-present, Jon Schlinkert.
51
51
  * Licensed under the MIT License.
52
52
  */const DD=ge,Gs=oD,js=a(t=>t!==null&&typeof t=="object"&&!Array.isArray(t),"isObject"),aD=a(t=>e=>t===!0?Number(e):String(e),"transform"),Xt=a(t=>typeof t=="number"||typeof t=="string"&&t!=="","isValidValue"),be=a(t=>Number.isInteger(+t),"isNumber"),Qt=a(t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},"zeros"),lD=a((t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,"stringify$3"),cD=a((t,e,u)=>{if(e>0){let s=t[0]==="-"?"-":"";s&&(t=t.slice(1)),t=s+t.padStart(s?e-1:e,"0")}return u===!1?String(t):t},"pad"),Us=a((t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},"toMaxLen"),fD=a((t,e)=>{t.negatives.sort((i,o)=>i<o?-1:i>o?1:0),t.positives.sort((i,o)=>i<o?-1:i>o?1:0);let u=e.capture?"":"?:",s="",n="",r;return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(n=`-(${u}${t.negatives.join("|")})`),s&&n?r=`${s}|${n}`:r=s||n,e.wrap?`(${u}${r})`:r},"toSequence"),Ks=a((t,e,u,s)=>{if(u)return Gs(t,e,{wrap:!1,...s});let n=String.fromCharCode(t);if(t===e)return n;let r=String.fromCharCode(e);return`[${n}-${r}]`},"toRange"),Vs=a((t,e,u)=>{if(Array.isArray(t)){let s=u.wrap===!0,n=u.capture?"":"?:";return s?`(${n}${t.join("|")})`:t.join("|")}return Gs(t,e,u)},"toRegex"),zs=a((...t)=>new RangeError("Invalid range arguments: "+DD.inspect(...t)),"rangeError"),Ys=a((t,e,u)=>{if(u.strictRanges===!0)throw zs([t,e]);return[]},"invalidRange"),hD=a((t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},"invalidStep"),dD=a((t,e,u=1,s={})=>{let n=Number(t),r=Number(e);if(!Number.isInteger(n)||!Number.isInteger(r)){if(s.strictRanges===!0)throw zs([t,e]);return[]}n===0&&(n=0),r===0&&(r=0);let i=n>r,o=String(t),D=String(e),l=String(u);u=Math.max(Math.abs(u),1);let f=Qt(o)||Qt(D)||Qt(l),h=f?Math.max(o.length,D.length,l.length):0,c=f===!1&&lD(t,e,s)===!1,C=s.transform||aD(c);if(s.toRegex&&u===1)return Ks(Us(t,h),Us(e,h),!0,s);let F={negatives:[],positives:[]},m=a(H=>F[H<0?"negatives":"positives"].push(Math.abs(H)),"push"),R=[],T=0;for(;i?n>=r:n<=r;)s.toRegex===!0&&u>1?m(n):R.push(cD(C(n,T),h,c)),n=i?n-u:n+u,T++;return s.toRegex===!0?u>1?fD(F,s):Vs(R,null,{wrap:!1,...s}):R},"fillNumbers"),ED=a((t,e,u=1,s={})=>{if(!be(t)&&t.length>1||!be(e)&&e.length>1)return Ys(t,e,s);let n=s.transform||(c=>String.fromCharCode(c)),r=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),o=r>i,D=Math.min(r,i),l=Math.max(r,i);if(s.toRegex&&u===1)return Ks(D,l,!1,s);let f=[],h=0;for(;o?r>=i:r<=i;)f.push(n(r,h)),r=o?r-u:r+u,h++;return s.toRegex===!0?Vs(f,null,{wrap:!1,options:s}):f},"fillLetters"),tt=a((t,e,u,s={})=>{if(e==null&&Xt(t))return[t];if(!Xt(t)||!Xt(e))return Ys(t,e,s);if(typeof u=="function")return tt(t,e,1,{transform:u});if(js(u))return tt(t,e,0,u);let n={...s};return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,be(u)?be(t)&&be(e)?dD(t,e,u,n):ED(t,e,Math.max(Math.abs(u),1),n):u!=null&&!js(u)?hD(u,n):tt(t,e,1,u)},"fill$2");var qs=tt;const pD=qs,Xs=et,CD=a((t,e={})=>{let u=a((s,n={})=>{let r=Xs.isInvalidBrace(n),i=s.invalid===!0&&e.escapeInvalid===!0,o=r===!0||i===!0,D=e.escapeInvalid===!0?"\\":"",l="";if(s.isOpen===!0||s.isClose===!0)return D+s.value;if(s.type==="open")return o?D+s.value:"(";if(s.type==="close")return o?D+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":o?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let f=Xs.reduce(s.nodes),h=pD(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(s.nodes)for(let f of s.nodes)l+=u(f,s);return l},"walk");return u(t)},"compile$1");var FD=CD;const gD=qs,Qs=Yt,pe=et,le=a((t="",e="",u=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?pe.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let r of n)s.push(le(r,e,u));else for(let r of e)u===!0&&typeof r=="string"&&(r=`{${r}}`),s.push(Array.isArray(r)?le(n,r,u):n+r);return pe.flatten(s)},"append"),mD=a((t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,s=a((n,r={})=>{n.queue=[];let i=r,o=r.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,o=i.queue;if(n.invalid||n.dollar){o.push(le(o.pop(),Qs(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(le(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=pe.reduce(n.nodes);if(pe.exceedsLimit(...h,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=gD(...h,e);c.length===0&&(c=Qs(n,e)),o.push(le(o.pop(),c)),n.nodes=[];return}let D=pe.encloseBrace(n),l=n.queue,f=n;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let h=0;h<n.nodes.length;h++){let c=n.nodes[h];if(c.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(c.type==="close"){o.push(le(o.pop(),l,D));continue}if(c.value&&c.type!=="open"){l.push(le(l.pop(),c.value));continue}c.nodes&&s(c,n)}return l},"walk");return pe.flatten(s(t))},"expand$1");var _D=mD,AD={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
53
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const yD=Yt,{MAX_LENGTH:Zs,CHAR_BACKSLASH:Zt,CHAR_BACKTICK:wD,CHAR_COMMA:RD,CHAR_DOT:bD,CHAR_LEFT_PARENTHESES:vD,CHAR_RIGHT_PARENTHESES:SD,CHAR_LEFT_CURLY_BRACE:BD,CHAR_RIGHT_CURLY_BRACE:$D,CHAR_LEFT_SQUARE_BRACKET:Js,CHAR_RIGHT_SQUARE_BRACKET:en,CHAR_DOUBLE_QUOTE:TD,CHAR_SINGLE_QUOTE:xD,CHAR_NO_BREAK_SPACE:OD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ND}=AD,PD=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},s=typeof u.maxLength=="number"?Math.min(Zs,u.maxLength):Zs;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let n={type:"root",input:t,nodes:[]},r=[n],i=n,o=n,D=0,l=t.length,f=0,h=0,c;const C=a(()=>t[f++],"advance"),F=a(m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=o,o=m,m},"push");for(F({type:"bos"});f<l;)if(i=r[r.length-1],c=C(),!(c===ND||c===OD)){if(c===Zt){F({type:"text",value:(e.keepEscaping?c:"")+C()});continue}if(c===en){F({type:"text",value:"\\"+c});continue}if(c===Js){D++;let m;for(;f<l&&(m=C());){if(c+=m,m===Js){D++;continue}if(m===Zt){c+=C();continue}if(m===en&&(D--,D===0))break}F({type:"text",value:c});continue}if(c===vD){i=F({type:"paren",nodes:[]}),r.push(i),F({type:"text",value:c});continue}if(c===SD){if(i.type!=="paren"){F({type:"text",value:c});continue}i=r.pop(),F({type:"text",value:c}),i=r[r.length-1];continue}if(c===TD||c===xD||c===wD){let m=c,R;for(e.keepQuotes!==!0&&(c="");f<l&&(R=C());){if(R===Zt){c+=R+C();continue}if(R===m){e.keepQuotes===!0&&(c+=R);break}c+=R}F({type:"text",value:c});continue}if(c===BD){h++;let R={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=F(R),r.push(i),F({type:"open",value:c});continue}if(c===$D){if(i.type!=="brace"){F({type:"text",value:c});continue}let m="close";i=r.pop(),i.close=!0,F({type:m,value:c}),h--,i=r[r.length-1];continue}if(c===RD&&h>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:yD(i)}]}F({type:"comma",value:c}),i.commas++;continue}if(c===bD&&h>0&&i.commas===0){let m=i.nodes;if(h===0||m.length===0){F({type:"text",value:c});continue}if(o.type==="dot"){if(i.range=[],o.value+=c,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){m.pop();let R=m[m.length-1];R.value+=o.value+c,o=R,i.ranges--;continue}F({type:"dot",value:c});continue}F({type:"text",value:c})}do if(i=r.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let m=r[r.length-1],R=m.nodes.indexOf(i);m.nodes.splice(R,1,...i.nodes)}while(r.length>0);return F({type:"eos"}),n},"parse$1");var HD=PD;const tn=Yt,LD=FD,ID=_D,kD=HD,Q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let s of t){let n=Q.create(s,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");Q.parse=(t,e={})=>kD(t,e),Q.stringify=(t,e={})=>tn(typeof t=="string"?Q.parse(t,e):t,e),Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),LD(t,e)),Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let u=ID(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);var MD=Q,WD=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],GD=WD;const jD=q,UD=GD,KD=new Set(UD);var VD=a(t=>KD.has(jD.extname(t).slice(1).toLowerCase()),"isBinaryPath$1"),ut={};(function(t){const{sep:e}=q,{platform:u}=process,s=wu;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=s.type()==="OS400"})(ut);const re=oe,G=q,{promisify:ve}=ge,zD=VD,{isWindows:YD,isLinux:qD,EMPTY_FN:XD,EMPTY_STR:QD,KEY_LISTENERS:Ce,KEY_ERR:Jt,KEY_RAW:Se,HANDLER_KEYS:ZD,EV_CHANGE:st,EV_ADD:nt,EV_ADD_DIR:JD,EV_ERROR:un,STR_DATA:ea,STR_END:ta,BRACE_START:ua,STAR:sa}=ut,na="watch",ra=ve(re.open),sn=ve(re.stat),ia=ve(re.lstat),oa=ve(re.close),eu=ve(re.realpath),Da={lstat:ia,stat:sn},tu=a((t,e)=>{t instanceof Set?t.forEach(e):e(t)},"foreach"),Be=a((t,e,u)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(u)},"addAndConvert"),aa=a(t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},"clearItem"),$e=a((t,e,u)=>{const s=t[e];s instanceof Set?s.delete(u):s===u&&delete t[e]},"delFromSet"),nn=a(t=>t instanceof Set?t.size===0:!t,"isEmptySet"),rt=new Map;function rn(t,e,u,s,n){const r=a((i,o)=>{u(t),n(i,o,{watchedPath:t}),o&&t!==o&&it(G.resolve(t,o),Ce,G.join(t,o))},"handleEvent");try{return re.watch(t,e,r)}catch(i){s(i)}}a(rn,"createFsWatchInstance");const it=a((t,e,u,s,n)=>{const r=rt.get(t);r&&tu(r[e],i=>{i(u,s,n)})},"fsWatchBroadcast"),la=a((t,e,u,s)=>{const{listener:n,errHandler:r,rawEmitter:i}=s;let o=rt.get(e),D;if(!u.persistent)return D=rn(t,u,n,r,i),D.close.bind(D);if(o)Be(o,Ce,n),Be(o,Jt,r),Be(o,Se,i);else{if(D=rn(t,u,it.bind(null,e,Ce),r,it.bind(null,e,Se)),!D)return;D.on(un,async l=>{const f=it.bind(null,e,Jt);if(o.watcherUnusable=!0,YD&&l.code==="EPERM")try{const h=await ra(t,"r");await oa(h),f(l)}catch{}else f(l)}),o={listeners:n,errHandlers:r,rawEmitters:i,watcher:D},rt.set(e,o)}return()=>{$e(o,Ce,n),$e(o,Jt,r),$e(o,Se,i),nn(o.listeners)&&(o.watcher.close(),rt.delete(e),ZD.forEach(aa(o)),o.watcher=void 0,Object.freeze(o))}},"setFsWatchListener"),uu=new Map,ca=a((t,e,u,s)=>{const{listener:n,rawEmitter:r}=s;let i=uu.get(e);const o=i&&i.options;return o&&(o.persistent<u.persistent||o.interval>u.interval)&&(i.listeners,i.rawEmitters,re.unwatchFile(e),i=void 0),i?(Be(i,Ce,n),Be(i,Se,r)):(i={listeners:n,rawEmitters:r,options:u,watcher:re.watchFile(e,u,(D,l)=>{tu(i.rawEmitters,h=>{h(st,e,{curr:D,prev:l})});const f=D.mtimeMs;(D.size!==l.size||f>l.mtimeMs||f===0)&&tu(i.listeners,h=>h(t,D))})},uu.set(e,i)),()=>{$e(i,Ce,n),$e(i,Se,r),nn(i.listeners)&&(uu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},"setFsWatchFileListener");let fa=class{static{a(this,"NodeFsHandler")}constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const s=this.fsw.options,n=G.dirname(e),r=G.basename(e);this.fsw._getWatchedDir(n).add(r);const o=G.resolve(e),D={persistent:s.persistent};u||(u=XD);let l;return s.usePolling?(D.interval=s.enableBinaryInterval&&zD(r)?s.binaryInterval:s.interval,l=ca(e,o,D,{listener:u,rawEmitter:this.fsw._emitRaw})):l=la(e,o,D,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,u,s){if(this.fsw.closed)return;const n=G.dirname(e),r=G.basename(e),i=this.fsw._getWatchedDir(n);let o=u;if(i.has(r))return;const D=a(async(f,h)=>{if(this.fsw._throttle(na,e,5)){if(!h||h.mtimeMs===0)try{const c=await sn(e);if(this.fsw.closed)return;const C=c.atimeMs,F=c.mtimeMs;(!C||C<=F||F!==o.mtimeMs)&&this.fsw._emit(st,e,c),qD&&o.ino!==c.ino?(this.fsw._closeFile(f),o=c,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,D))):o=c}catch{this.fsw._remove(n,r)}else if(i.has(r)){const c=h.atimeMs,C=h.mtimeMs;(!c||c<=C||C!==o.mtimeMs)&&this.fsw._emit(st,e,h),o=h}}},"listener"),l=this._watchWithNodeFs(e,D);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(nt,e,0))return;this.fsw._emit(nt,e,u)}return l}async _handleSymlink(e,u,s,n){if(this.fsw.closed)return;const r=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await eu(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(r)!==o&&(this.fsw._symlinkPaths.set(r,o),this.fsw._emit(st,s,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(r,o),this.fsw._emit(nt,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,u,s,n,r,i,o){if(e=G.join(e,QD),!s.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;const D=this.fsw._getWatchedDir(s.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:a(h=>s.filterPath(h),"fileFilter"),directoryFilter:a(h=>s.filterDir(h),"directoryFilter"),depth:0}).on(ea,async h=>{if(this.fsw.closed){f=void 0;return}const c=h.path;let C=G.join(e,c);if(l.add(c),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,e,C,c))){if(this.fsw.closed){f=void 0;return}(c===n||!n&&!D.has(c))&&(this.fsw._incrReadyCount(),C=G.join(r,G.relative(r,C)),this._addToNodeFs(C,u,s,i+1))}}).on(un,this._boundHandleError);return new Promise(h=>f.once(ta,()=>{if(this.fsw.closed){f=void 0;return}const c=o?o.clear():!1;h(),D.getChildren().filter(C=>C!==e&&!l.has(C)&&(!s.hasGlob||s.filterPath({fullPath:G.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),f=void 0,c&&this._handleRead(e,!1,s,n,r,i,o)}))}async _handleDir(e,u,s,n,r,i,o){const D=this.fsw._getWatchedDir(G.dirname(e)),l=D.has(G.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!r&&!l&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(JD,e,u),D.add(G.basename(e)),this.fsw._getWatchedDir(e);let f,h;const c=this.fsw.options.depth;if((c==null||n<=c)&&!this.fsw._symlinkPaths.has(o)){if(!r&&(await this._handleRead(e,s,i,r,e,n,f),this.fsw.closed))return;h=this._watchWithNodeFs(e,(C,F)=>{F&&F.mtimeMs===0||this._handleRead(C,!1,i,r,e,n,f)})}return h}async _addToNodeFs(e,u,s,n,r){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&s&&(o.hasGlob=s.hasGlob,o.globFilter=s.globFilter,o.filterPath=D=>s.filterPath(D),o.filterDir=D=>s.filterDir(D));try{const D=await Da[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))return i(),!1;const l=this.fsw.options.followSymlinks&&!e.includes(sa)&&!e.includes(ua);let f;if(D.isDirectory()){const h=G.resolve(e),c=l?await eu(e):e;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,D,u,n,r,o,c),this.fsw.closed))return;h!==c&&c!==void 0&&this.fsw._symlinkPaths.set(h,c)}else if(D.isSymbolicLink()){const h=l?await eu(e):e;if(this.fsw.closed)return;const c=G.dirname(o.watchPath);if(this.fsw._getWatchedDir(c).add(o.watchPath),this.fsw._emit(nt,o.watchPath,D),f=await this._handleDir(c,D,u,n,e,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(G.resolve(e),h)}else f=this._handleFile(o.watchPath,D,u);return i(),this.fsw._addPathCloser(e,f),!1}catch(D){if(this.fsw._handleError(D))return i(),e}}};var ha=fa,su={exports:{}};const nu=oe,j=q,{promisify:ru}=ge;let Fe;try{Fe=Ie("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Fe){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(Fe=void 0)}}const{EV_ADD:iu,EV_CHANGE:da,EV_ADD_DIR:on,EV_UNLINK:ot,EV_ERROR:Ea,STR_DATA:pa,STR_END:Ca,FSEVENT_CREATED:Fa,FSEVENT_MODIFIED:ga,FSEVENT_DELETED:ma,FSEVENT_MOVED:_a,FSEVENT_UNKNOWN:Aa,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:ya,FSEVENT_TYPE_FILE:wa,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:Dn,ROOT_GLOBSTAR:an,DIR_SUFFIX:Ra,DOT_SLASH:ln,FUNCTION_TYPE:ou,EMPTY_FN:ba,IDENTITY_FN:va}=ut,Sa=a(t=>isNaN(t)?{}:{depth:t},"Depth"),Du=ru(nu.stat),Ba=ru(nu.lstat),cn=ru(nu.realpath),$a={stat:Du,lstat:Ba},ce=new Map,Ta=10,xa=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Oa=a((t,e)=>({stop:Fe.watch(t,e)}),"createFSEventsInstance");function Na(t,e,u,s){let n=j.extname(e)?j.dirname(e):e;const r=j.dirname(n);let i=ce.get(n);Pa(r)&&(n=r);const o=j.resolve(t),D=o!==e,l=a((h,c,C)=>{D&&(h=h.replace(e,o)),(h===o||!h.indexOf(o+j.sep))&&u(h,c,C)},"filteredListener");let f=!1;for(const h of ce.keys())if(e.indexOf(j.resolve(h)+j.sep)===0){n=h,i=ce.get(n),f=!0;break}return i||f?i.listeners.add(l):(i={listeners:new Set([l]),rawEmitter:s,watcher:Oa(n,(h,c)=>{if(!i.listeners.size||c&ya)return;const C=Fe.getInfo(h,c);i.listeners.forEach(F=>{F(h,c,C)}),i.rawEmitter(C.event,h,C)})},ce.set(n,i)),()=>{const h=i.listeners;if(h.delete(l),!h.size&&(ce.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}a(Na,"setFSEventsListener");const Pa=a(t=>{let e=0;for(const u of ce.keys())if(u.indexOf(t)===0&&(e++,e>=Ta))return!0;return!1},"couldConsolidate"),Ha=a(()=>Fe&&ce.size<128,"canUse"),au=a((t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=j.dirname(t))!==e;)u++;return u},"calcDepth"),fn=a((t,e)=>t.type===Te&&e.isDirectory()||t.type===Dn&&e.isSymbolicLink()||t.type===wa&&e.isFile(),"sameTypes");let La=class{static{a(this,"FsEventsHandler")}constructor(e){this.fsw=e}checkIgnored(e,u){const s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return s.add(e),u&&u.isDirectory()&&s.add(e+an),!0;s.delete(e),s.delete(e+an)}addOrChange(e,u,s,n,r,i,o,D){const l=r.has(i)?da:iu;this.handleEvent(l,e,u,s,n,r,i,o,D)}async checkExists(e,u,s,n,r,i,o,D){try{const l=await Du(e);if(this.fsw.closed)return;fn(o,l)?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}catch(l){l.code==="EACCES"?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}}handleEvent(e,u,s,n,r,i,o,D,l){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===ot){const f=D.type===Te;(f||i.has(o))&&this.fsw._remove(r,o,f)}else{if(e===iu){if(D.type===Te&&this.fsw._getWatchedDir(u),D.type===Dn&&l.followSymlinks){const h=l.depth===void 0?void 0:au(s,n)+1;return this._addToFsEvents(u,!1,!0,h)}this.fsw._getWatchedDir(r).add(o)}const f=D.type===Te?e+Ra:e;this.fsw._emit(f,u),f===on&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,s,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const r=this.fsw.options,o=Na(e,u,a(async(D,l,f)=>{if(this.fsw.closed||r.depth!==void 0&&au(D,u)>r.depth)return;const h=s(j.join(e,j.relative(e,D)));if(n&&!n(h))return;const c=j.dirname(h),C=j.basename(h),F=this.fsw._getWatchedDir(f.type===Te?h:c);if(xa.has(l)||f.event===Aa)if(typeof r.ignored===ou){let m;try{m=await Du(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,m))return;fn(f,m)?this.addOrChange(h,D,u,c,F,C,f,r):this.handleEvent(ot,h,D,u,c,F,C,f,r)}else this.checkExists(h,D,u,c,F,C,f,r);else switch(f.event){case Fa:case ga:return this.addOrChange(h,D,u,c,F,C,f,r);case ma:case _a:return this.checkExists(h,D,u,c,F,C,f,r)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,u,s,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const r=await cn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(r))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(r||e,i=>{let o=e;return r&&r!==ln?o=i.replace(r,e):i!==ln&&(o=j.join(e,i)),s(o)},!1,n)}catch(r){if(this.fsw._handleError(r))return this.fsw._emitReady()}}}emitAdd(e,u,s,n,r){const i=s(e),o=u.isDirectory(),D=this.fsw._getWatchedDir(j.dirname(i)),l=j.basename(i);o&&this.fsw._getWatchedDir(i),!D.has(l)&&(D.add(l),(!n.ignoreInitial||r===!0)&&this.fsw._emit(o?on:iu,i,u))}initWatch(e,u,s,n){if(this.fsw.closed)return;const r=this._watchWithFsEvents(s.watchPath,j.resolve(e||s.watchPath),n,s.globFilter);this.fsw._addPathCloser(u,r)}async _addToFsEvents(e,u,s,n){if(this.fsw.closed)return;const r=this.fsw.options,i=typeof u===ou?u:va,o=this.fsw._getWatchHelpers(e);try{const D=await $a[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))throw null;if(D.isDirectory()){if(o.globFilter||this.emitAdd(i(e),D,i,r,s),n&&n>r.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:a(l=>o.filterPath(l),"fileFilter"),directoryFilter:a(l=>o.filterDir(l),"directoryFilter"),...Sa(r.depth-(n||0))}).on(pa,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;const f=j.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){const c=r.depth===void 0?void 0:au(f,j.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,i,c)}else this.emitAdd(f,l.stats,i,r,s)}).on(Ea,ba).on(Ca,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,D,i,r,s),this.fsw._emitReady()}catch(D){(!D||this.fsw._handleError(D))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(r.persistent&&s!==!0)if(typeof u===ou)this.initWatch(void 0,e,o,i);else{let D;try{D=await cn(o.watchPath)}catch{}this.initWatch(D,e,o,i)}}};su.exports=La,su.exports.canUse=Ha;var Ia=su.exports;const{EventEmitter:ka}=kn,lu=oe,x=q,{promisify:hn}=ge,Ma=No,cu=Mo.default,Wa=Zo,fu=Vt,Ga=MD,ja=Ss,Ua=ha,dn=Ia,{EV_ALL:hu,EV_READY:Ka,EV_ADD:Dt,EV_CHANGE:xe,EV_UNLINK:En,EV_ADD_DIR:Va,EV_UNLINK_DIR:za,EV_RAW:Ya,EV_ERROR:du,STR_CLOSE:qa,STR_END:Xa,BACK_SLASH_RE:Qa,DOUBLE_SLASH_RE:pn,SLASH_OR_BACK_SLASH_RE:Za,DOT_RE:Ja,REPLACER_RE:el,SLASH:Eu,SLASH_SLASH:tl,BRACE_START:ul,BANG:pu,ONE_DOT:Cn,TWO_DOTS:sl,GLOBSTAR:nl,SLASH_GLOBSTAR:Cu,ANYMATCH_OPTS:Fu,STRING_TYPE:gu,FUNCTION_TYPE:rl,EMPTY_STR:mu,EMPTY_FN:il,isWindows:ol,isMacos:Dl,isIBMi:al}=ut,ll=hn(lu.stat),cl=hn(lu.readdir),_u=a((t=[])=>Array.isArray(t)?t:[t],"arrify"),Fn=a((t,e=[])=>(t.forEach(u=>{Array.isArray(u)?Fn(u,e):e.push(u)}),e),"flatten"),gn=a(t=>{const e=Fn(_u(t));if(!e.every(u=>typeof u===gu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(_n)},"unifyPaths"),mn=a(t=>{let e=t.replace(Qa,Eu),u=!1;for(e.startsWith(tl)&&(u=!0);e.match(pn);)e=e.replace(pn,Eu);return u&&(e=Eu+e),e},"toUnix"),_n=a(t=>mn(x.normalize(mn(t))),"normalizePathToUnix"),An=a((t=mu)=>e=>typeof e!==gu?e:_n(x.isAbsolute(e)?e:x.join(t,e)),"normalizeIgnored"),fl=a((t,e)=>x.isAbsolute(t)?t:t.startsWith(pu)?pu+x.join(e,t.slice(1)):x.join(e,t),"getAbsolutePath"),J=a((t,e)=>t[e]===void 0,"undef");class hl{static{a(this,"DirEntry")}constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==Cn&&e!==sl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const s=this.path;try{await cl(s)}catch{this._removeWatcher&&this._removeWatcher(x.dirname(s),x.basename(s))}}has(e){const{items:u}=this;if(u)return u.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const dl="stat",El="lstat";class pl{static{a(this,"WatchHelper")}constructor(e,u,s,n){this.fsw=n,this.path=e=e.replace(el,mu),this.watchPath=u,this.fullWatchPath=x.resolve(u),this.hasGlob=u!==e,e===mu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?cu(e,void 0,Fu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(r=>{r.length>1&&r.pop()}),this.followSymlinks=s,this.statMethod=s?dl:El}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return x.join(this.watchPath,x.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ul)?Ga.expand(e):[e]).forEach(n=>{u.push(x.relative(this.watchPath,n).split(Za))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let s=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((r,i)=>(r===nl&&(s=!0),s||!u[0][i]||cu(r,u[0][i],Fu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class Cl extends ka{static{a(this,"FSWatcher")}constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,J(u,"persistent")&&(u.persistent=!0),J(u,"ignoreInitial")&&(u.ignoreInitial=!1),J(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),J(u,"interval")&&(u.interval=100),J(u,"binaryInterval")&&(u.binaryInterval=300),J(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,J(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),dn.canUse()||(u.useFsEvents=!1),J(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=Dl),al&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const D=n.toLowerCase();D==="false"||D==="0"?u.usePolling=!1:D==="true"||D==="1"?u.usePolling=!0:u.usePolling=!!D}const r=process.env.CHOKIDAR_INTERVAL;r&&(u.interval=Number.parseInt(r,10)),J(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),J(u,"followSymlinks")&&(u.followSymlinks=!0),J(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=_u(u.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=il,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ka)))},this._emitRaw=(...D)=>this.emit(Ya,...D),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new dn(this):this._nodeFsHandler=new Ua(this),Object.freeze(u)}add(e,u,s){const{cwd:n,disableGlobbing:r}=this.options;this.closed=!1;let i=gn(e);return n&&(i=i.map(o=>{const D=fl(o,n);return r||!fu(o)?D:ja(D)})),i=i.filter(o=>o.startsWith(pu)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+Cu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async o=>{const D=await this._nodeFsHandler._addToNodeFs(o,!s,0,0,u);return D&&this._emitReady(),D})).then(o=>{this.closed||o.filter(D=>D).forEach(D=>{this.add(x.dirname(D),x.basename(u||D))})})),this}unwatch(e){if(this.closed)return this;const u=gn(e),{cwd:s}=this.options;return u.forEach(n=>{!x.isAbsolute(n)&&!this._closers.has(n)&&(s&&(n=x.join(s,n)),n=x.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+Cu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(s=>{const n=s();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,s)=>{const n=this.options.cwd?x.relative(this.options.cwd,s):s;e[n||Cn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==du&&this.emit(hu,...u)}async _emit(e,u,s,n,r){if(this.closed)return;const i=this.options;ol&&(u=x.normalize(u)),i.cwd&&(u=x.relative(i.cwd,u));const o=[e,u];r!==void 0?o.push(s,n,r):n!==void 0?o.push(s,n):s!==void 0&&o.push(s);const D=i.awaitWriteFinish;let l;if(D&&(l=this._pendingWrites.get(u)))return l.lastChange=new Date,this;if(i.atomic){if(e===En)return this._pendingUnlinks.set(u,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(hu,...f),this._pendingUnlinks.delete(h)})},typeof i.atomic=="number"?i.atomic:100),this;e===Dt&&this._pendingUnlinks.has(u)&&(e=o[0]=xe,this._pendingUnlinks.delete(u))}if(D&&(e===Dt||e===xe)&&this._readyEmitted){const f=a((h,c)=>{h?(e=o[0]=du,o[1]=h,this.emitWithAll(e,o)):c&&(o.length>2?o[2]=c:o.push(c),this.emitWithAll(e,o))},"awfEmit");return this._awaitWriteFinish(u,D.stabilityThreshold,e,f),this}if(e===xe&&!this._throttle(xe,u,50))return this;if(i.alwaysStat&&s===void 0&&(e===Dt||e===Va||e===xe)){const f=i.cwd?x.join(i.cwd,u):u;let h;try{h=await ll(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(e,o),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(du,e),e||this.closed}_throttle(e,u,s){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),r=n.get(u);if(r)return r.count++,!1;let i;const o=a(()=>{const l=n.get(u),f=l?l.count:0;return n.delete(u),clearTimeout(i),l&&clearTimeout(l.timeoutObject),f},"clear");i=setTimeout(o,s);const D={timeoutObject:i,clear:o,count:0};return n.set(u,D),D}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,s,n){let r,i=e;this.options.cwd&&!x.isAbsolute(e)&&(i=x.join(this.options.cwd,e));const o=new Date,D=a(l=>{lu.stat(i,(f,h)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}const c=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(e).lastChange=c);const C=this._pendingWrites.get(e);c-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,h)):r=setTimeout(D,this.options.awaitWriteFinish.pollInterval,h)})},"awaitWriteFinish");this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:a(()=>(this._pendingWrites.delete(e),clearTimeout(r),s),"cancelWait")}),r=setTimeout(D,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ja.test(e))return!0;if(!this._userIgnored){const{cwd:s}=this.options,n=this.options.ignored,r=n&&n.map(An(s)),i=_u(r).filter(D=>typeof D===gu&&!fu(D)).map(D=>D+Cu),o=this._getGlobIgnored().map(An(s)).concat(r,i);this._userIgnored=cu(o,void 0,Fu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const s=u||this.options.disableGlobbing||!fu(e)?e:Wa(e),n=this.options.followSymlinks;return new pl(e,s,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=x.resolve(e);return this._watched.has(u)||this._watched.set(u,new hl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const s=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(e,u,s){const n=x.join(e,u),r=x.resolve(n);if(s=s??(this._watched.has(n)||this._watched.has(r)),!this._throttle("remove",n,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(c=>this._remove(n,c));const D=this._getWatchedDir(e),l=D.has(u);D.remove(u),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let f=n;if(this.options.cwd&&(f=x.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===Dt)return;this._watched.delete(n),this._watched.delete(r);const h=s?za:En;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=x.dirname(e);this._getWatchedDir(u).remove(x.basename(e))}_closeFile(e){const u=this._closers.get(e);u&&(u.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(u)}_readdirp(e,u){if(this.closed)return;const s={type:hu,alwaysStat:!0,lstat:!0,...u};let n=Ma(e,s);return this._streams.add(n),n.once(qa,()=>{n=void 0}),n.once(Xa,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}var Au=Cl;const at=a((t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},"ignoreAfterArgument"),yn=a((t,e=process.argv.slice(2))=>(bu(t,e,{ignore:at()}),e),"removeArgvFlags"),Fl=a(t=>{let e=Buffer.alloc(0);return u=>{for(e=Buffer.concat([e,u]);e.length>4;){const s=e.readInt32BE(0);if(e.length>=4+s){const n=e.slice(4,4+s);t(n),e=e.slice(4+s)}else break}}},"bufferData"),wn=a(async()=>{const t=Kn.createServer(u=>{u.on("data",Fl(s=>{const n=JSON.parse(s.toString());t.emit("data",n)}))}),e=xn(process.pid);return await Me.promises.mkdir(Vn,{recursive:!0}),await Me.promises.rm(e,{force:!0}),await new Promise((u,s)=>{t.listen(e,u),t.on("error",s)}),t.unref(),process.on("exit",()=>{if(t.close(),!On)try{Me.rmSync(e)}catch{}}),t},"createIpcServer"),gl=a(()=>new Date().toLocaleTimeString(),"currentTime"),Oe=a((...t)=>console.log(Wn(gl()),Gn("[tsx]"),...t),"log"),ml="\x1Bc",_l=a((t,e)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(t,this,arguments),e)}},"debounce"),Rn={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},Al=li({name:"watch",parameters:["<script path>"],flags:Rn,help:{description:"Run the script and watch for changes"},ignoreArgv:at(!1)},async t=>{const e=yn(Rn,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,include:t.flags.include,exclude:[...t.flags.ignore,...t.flags.exclude],ipc:!0};let s,n=!1;const r=process.cwd(),i=new Map,o=a((g,w)=>{const d=ke.resolve(w),b=i.get(d);if(g==="add"||g==="addDir"||g==="unlink"||g==="unlinkDir")b&&(clearTimeout(b.expiration),i.delete(d));else if(b)return`${g}:${b.path}`;let v;try{v=Me.realpathSync.native(d)}catch{v=d}const W={path:v,expiration:setTimeout(()=>{i.get(d)===W&&i.delete(d)},1e3)};return W.expiration.unref(),i.set(d,W),`${g}:${v}`},"getEventKey"),D=t._.map(g=>ke.resolve(g));let l,f,h=!1;const c=new Map,C=a(g=>{const w=ke.resolve(g);return process.platform==="win32"?w.toLowerCase():w},"getPathKey"),F=new Set;for(const g of u.include)if(g.startsWith("!")){const w=g.slice(1);Os(w)||F.add(C(w))}else Os(g)||F.delete(C(g));(await wn()).on("data",g=>{if(g&&typeof g=="object"&&"type"in g&&g.type==="dependency"&&"path"in g&&typeof g.path=="string"){const w=g.path.startsWith("file:")?Pn(g.path):g.path;ke.isAbsolute(w)&&(F.has(C(w))?(f||(f=new Au({...I,disableGlobbing:!0}),f.on("all",(d,b)=>{Z("literal",d,b)})),f.add(w)):l.add(w))}});const R=a(()=>{if(!n)return as(e,u)},"spawnProcess");let T=!1;const H=a(async(g,w="SIGTERM",d=5e3)=>{let b=!1;const v=new Promise(W=>{g.on("exit",E=>{b=!0,T=!1,W(E)})});return T=!0,g.kill(w),setTimeout(()=>{b||(Oe(me(`Process didn't exit in ${Math.floor(d/1e3)}s. Force killing...`)),g.kill("SIGKILL"))},d),await v},"killProcess"),O=_l(async(g,w)=>{const d=g?`${g?jn(g):""}${w?` in ${Un(`./${w}`)}`:""}`:"";if(T){Oe(d,me("Process hasn't exited. Killing process...")),s.kill("SIGKILL");return}s&&(s.exitCode===null?(Oe(d,me("Restarting...")),await H(s)):Oe(d,me("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(ml)),s=R()},100),z=a(g=>{n=!0,s?.exitCode===null?(T&&Oe(me("Previous process hasn't exited yet. Force killing...")),H(s,T?"SIGKILL":g).then(w=>{process.exit(w??0)},()=>{})):process.exit(ft.signals[g])},"relaySignal");process.on("SIGINT",z),process.on("SIGTERM",z);const I={cwd:r,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},Z=a((g,w,d)=>{if(!h)return;const b=o(w,d),v=c.get(b);if(v&&v.source!==g){clearTimeout(v.expiration),c.delete(b);return}v&&clearTimeout(v.expiration);const W={source:g,expiration:setTimeout(()=>{c.get(b)===W&&c.delete(b)},1e3)};W.expiration.unref(),c.set(b,W),O(w,d)},"handleWatchEvent");l=new Au({...I,disableGlobbing:!0}),l.on("all",(g,w)=>{Z("literal",g,w)});const M=a(g=>new Promise(w=>{g.once("ready",w)}),"waitForReady"),y=[M(l)];if(l.add(D),u.include.some(g=>!g.startsWith("!"))){const g=new Au(I);g.on("all",(w,d)=>{Z("include",w,d)}),y.push(M(g)),g.add(u.include)}await Promise.all(y),l.add(u.include.filter(g=>g.startsWith("!"))),h=!0,s=R(),process.stdin.on("data",()=>O("Return key"))}),yl=a((t,e)=>{let u;e.on("data",r=>{r&&r.type==="signal"&&u&&u(r.signal)});const s=a(()=>{const r=new Promise(i=>{setTimeout(()=>i(void 0),30),u=i});return r.then(()=>{u=void 0},()=>{}),r},"waitForSignalFromChild"),n=a(async r=>{await s()!==r&&(t.kill(r),await s()!==r&&(t.on("exit",()=>{const D=ft.signals[r];process.exit(128+D)}),t.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",n),process.on("SIGTERM",n)},"relaySignals"),bn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Vu({name:"tsx",parameters:["[script path]"],commands:[Al],flags:{...bn,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:at()},async t=>{t.flags.version?process.stdout.write(`tsx v${Tn}
53
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const yD=Yt,{MAX_LENGTH:Zs,CHAR_BACKSLASH:Zt,CHAR_BACKTICK:wD,CHAR_COMMA:RD,CHAR_DOT:bD,CHAR_LEFT_PARENTHESES:vD,CHAR_RIGHT_PARENTHESES:SD,CHAR_LEFT_CURLY_BRACE:BD,CHAR_RIGHT_CURLY_BRACE:$D,CHAR_LEFT_SQUARE_BRACKET:Js,CHAR_RIGHT_SQUARE_BRACKET:en,CHAR_DOUBLE_QUOTE:TD,CHAR_SINGLE_QUOTE:xD,CHAR_NO_BREAK_SPACE:OD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ND}=AD,PD=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},s=typeof u.maxLength=="number"?Math.min(Zs,u.maxLength):Zs;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let n={type:"root",input:t,nodes:[]},r=[n],i=n,o=n,D=0,l=t.length,f=0,h=0,c;const C=a(()=>t[f++],"advance"),F=a(m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=o,o=m,m},"push");for(F({type:"bos"});f<l;)if(i=r[r.length-1],c=C(),!(c===ND||c===OD)){if(c===Zt){F({type:"text",value:(e.keepEscaping?c:"")+C()});continue}if(c===en){F({type:"text",value:"\\"+c});continue}if(c===Js){D++;let m;for(;f<l&&(m=C());){if(c+=m,m===Js){D++;continue}if(m===Zt){c+=C();continue}if(m===en&&(D--,D===0))break}F({type:"text",value:c});continue}if(c===vD){i=F({type:"paren",nodes:[]}),r.push(i),F({type:"text",value:c});continue}if(c===SD){if(i.type!=="paren"){F({type:"text",value:c});continue}i=r.pop(),F({type:"text",value:c}),i=r[r.length-1];continue}if(c===TD||c===xD||c===wD){let m=c,R;for(e.keepQuotes!==!0&&(c="");f<l&&(R=C());){if(R===Zt){c+=R+C();continue}if(R===m){e.keepQuotes===!0&&(c+=R);break}c+=R}F({type:"text",value:c});continue}if(c===BD){h++;let R={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=F(R),r.push(i),F({type:"open",value:c});continue}if(c===$D){if(i.type!=="brace"){F({type:"text",value:c});continue}let m="close";i=r.pop(),i.close=!0,F({type:m,value:c}),h--,i=r[r.length-1];continue}if(c===RD&&h>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:yD(i)}]}F({type:"comma",value:c}),i.commas++;continue}if(c===bD&&h>0&&i.commas===0){let m=i.nodes;if(h===0||m.length===0){F({type:"text",value:c});continue}if(o.type==="dot"){if(i.range=[],o.value+=c,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){m.pop();let R=m[m.length-1];R.value+=o.value+c,o=R,i.ranges--;continue}F({type:"dot",value:c});continue}F({type:"text",value:c})}do if(i=r.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let m=r[r.length-1],R=m.nodes.indexOf(i);m.nodes.splice(R,1,...i.nodes)}while(r.length>0);return F({type:"eos"}),n},"parse$1");var HD=PD;const tn=Yt,LD=FD,ID=_D,kD=HD,Q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let s of t){let n=Q.create(s,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");Q.parse=(t,e={})=>kD(t,e),Q.stringify=(t,e={})=>tn(typeof t=="string"?Q.parse(t,e):t,e),Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),LD(t,e)),Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let u=ID(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);var MD=Q,WD=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],GD=WD;const jD=q,UD=GD,KD=new Set(UD);var VD=a(t=>KD.has(jD.extname(t).slice(1).toLowerCase()),"isBinaryPath$1"),ut={};(function(t){const{sep:e}=q,{platform:u}=process,s=wu;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=s.type()==="OS400"})(ut);const re=oe,G=q,{promisify:ve}=ge,zD=VD,{isWindows:YD,isLinux:qD,EMPTY_FN:XD,EMPTY_STR:QD,KEY_LISTENERS:Ce,KEY_ERR:Jt,KEY_RAW:Se,HANDLER_KEYS:ZD,EV_CHANGE:st,EV_ADD:nt,EV_ADD_DIR:JD,EV_ERROR:un,STR_DATA:ea,STR_END:ta,BRACE_START:ua,STAR:sa}=ut,na="watch",ra=ve(re.open),sn=ve(re.stat),ia=ve(re.lstat),oa=ve(re.close),eu=ve(re.realpath),Da={lstat:ia,stat:sn},tu=a((t,e)=>{t instanceof Set?t.forEach(e):e(t)},"foreach"),Be=a((t,e,u)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(u)},"addAndConvert"),aa=a(t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},"clearItem"),$e=a((t,e,u)=>{const s=t[e];s instanceof Set?s.delete(u):s===u&&delete t[e]},"delFromSet"),nn=a(t=>t instanceof Set?t.size===0:!t,"isEmptySet"),rt=new Map;function rn(t,e,u,s,n){const r=a((i,o)=>{u(t),n(i,o,{watchedPath:t}),o&&t!==o&&it(G.resolve(t,o),Ce,G.join(t,o))},"handleEvent");try{return re.watch(t,e,r)}catch(i){s(i)}}a(rn,"createFsWatchInstance");const it=a((t,e,u,s,n)=>{const r=rt.get(t);r&&tu(r[e],i=>{i(u,s,n)})},"fsWatchBroadcast"),la=a((t,e,u,s)=>{const{listener:n,errHandler:r,rawEmitter:i}=s;let o=rt.get(e),D;if(!u.persistent)return D=rn(t,u,n,r,i),D.close.bind(D);if(o)Be(o,Ce,n),Be(o,Jt,r),Be(o,Se,i);else{if(D=rn(t,u,it.bind(null,e,Ce),r,it.bind(null,e,Se)),!D)return;D.on(un,async l=>{const f=it.bind(null,e,Jt);if(o.watcherUnusable=!0,YD&&l.code==="EPERM")try{const h=await ra(t,"r");await oa(h),f(l)}catch{}else f(l)}),o={listeners:n,errHandlers:r,rawEmitters:i,watcher:D},rt.set(e,o)}return()=>{$e(o,Ce,n),$e(o,Jt,r),$e(o,Se,i),nn(o.listeners)&&(o.watcher.close(),rt.delete(e),ZD.forEach(aa(o)),o.watcher=void 0,Object.freeze(o))}},"setFsWatchListener"),uu=new Map,ca=a((t,e,u,s)=>{const{listener:n,rawEmitter:r}=s;let i=uu.get(e);const o=i&&i.options;return o&&(o.persistent<u.persistent||o.interval>u.interval)&&(i.listeners,i.rawEmitters,re.unwatchFile(e),i=void 0),i?(Be(i,Ce,n),Be(i,Se,r)):(i={listeners:n,rawEmitters:r,options:u,watcher:re.watchFile(e,u,(D,l)=>{tu(i.rawEmitters,h=>{h(st,e,{curr:D,prev:l})});const f=D.mtimeMs;(D.size!==l.size||f>l.mtimeMs||f===0)&&tu(i.listeners,h=>h(t,D))})},uu.set(e,i)),()=>{$e(i,Ce,n),$e(i,Se,r),nn(i.listeners)&&(uu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},"setFsWatchFileListener");let fa=class{static{a(this,"NodeFsHandler")}constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const s=this.fsw.options,n=G.dirname(e),r=G.basename(e);this.fsw._getWatchedDir(n).add(r);const o=G.resolve(e),D={persistent:s.persistent};u||(u=XD);let l;return s.usePolling?(D.interval=s.enableBinaryInterval&&zD(r)?s.binaryInterval:s.interval,l=ca(e,o,D,{listener:u,rawEmitter:this.fsw._emitRaw})):l=la(e,o,D,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,u,s){if(this.fsw.closed)return;const n=G.dirname(e),r=G.basename(e),i=this.fsw._getWatchedDir(n);let o=u;if(i.has(r))return;const D=a(async(f,h)=>{if(this.fsw._throttle(na,e,5)){if(!h||h.mtimeMs===0)try{const c=await sn(e);if(this.fsw.closed)return;const C=c.atimeMs,F=c.mtimeMs;(!C||C<=F||F!==o.mtimeMs)&&this.fsw._emit(st,e,c),qD&&o.ino!==c.ino?(this.fsw._closeFile(f),o=c,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,D))):o=c}catch{this.fsw._remove(n,r)}else if(i.has(r)){const c=h.atimeMs,C=h.mtimeMs;(!c||c<=C||C!==o.mtimeMs)&&this.fsw._emit(st,e,h),o=h}}},"listener"),l=this._watchWithNodeFs(e,D);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(nt,e,0))return;this.fsw._emit(nt,e,u)}return l}async _handleSymlink(e,u,s,n){if(this.fsw.closed)return;const r=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await eu(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(r)!==o&&(this.fsw._symlinkPaths.set(r,o),this.fsw._emit(st,s,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(r,o),this.fsw._emit(nt,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,u,s,n,r,i,o){if(e=G.join(e,QD),!s.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;const D=this.fsw._getWatchedDir(s.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:a(h=>s.filterPath(h),"fileFilter"),directoryFilter:a(h=>s.filterDir(h),"directoryFilter"),depth:0}).on(ea,async h=>{if(this.fsw.closed){f=void 0;return}const c=h.path;let C=G.join(e,c);if(l.add(c),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,e,C,c))){if(this.fsw.closed){f=void 0;return}(c===n||!n&&!D.has(c))&&(this.fsw._incrReadyCount(),C=G.join(r,G.relative(r,C)),this._addToNodeFs(C,u,s,i+1))}}).on(un,this._boundHandleError);return new Promise(h=>f.once(ta,()=>{if(this.fsw.closed){f=void 0;return}const c=o?o.clear():!1;h(),D.getChildren().filter(C=>C!==e&&!l.has(C)&&(!s.hasGlob||s.filterPath({fullPath:G.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),f=void 0,c&&this._handleRead(e,!1,s,n,r,i,o)}))}async _handleDir(e,u,s,n,r,i,o){const D=this.fsw._getWatchedDir(G.dirname(e)),l=D.has(G.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!r&&!l&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(JD,e,u),D.add(G.basename(e)),this.fsw._getWatchedDir(e);let f,h;const c=this.fsw.options.depth;if((c==null||n<=c)&&!this.fsw._symlinkPaths.has(o)){if(!r&&(await this._handleRead(e,s,i,r,e,n,f),this.fsw.closed))return;h=this._watchWithNodeFs(e,(C,F)=>{F&&F.mtimeMs===0||this._handleRead(C,!1,i,r,e,n,f)})}return h}async _addToNodeFs(e,u,s,n,r){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&s&&(o.hasGlob=s.hasGlob,o.globFilter=s.globFilter,o.filterPath=D=>s.filterPath(D),o.filterDir=D=>s.filterDir(D));try{const D=await Da[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))return i(),!1;const l=this.fsw.options.followSymlinks&&!e.includes(sa)&&!e.includes(ua);let f;if(D.isDirectory()){const h=G.resolve(e),c=l?await eu(e):e;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,D,u,n,r,o,c),this.fsw.closed))return;h!==c&&c!==void 0&&this.fsw._symlinkPaths.set(h,c)}else if(D.isSymbolicLink()){const h=l?await eu(e):e;if(this.fsw.closed)return;const c=G.dirname(o.watchPath);if(this.fsw._getWatchedDir(c).add(o.watchPath),this.fsw._emit(nt,o.watchPath,D),f=await this._handleDir(c,D,u,n,e,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(G.resolve(e),h)}else f=this._handleFile(o.watchPath,D,u);return i(),this.fsw._addPathCloser(e,f),!1}catch(D){if(this.fsw._handleError(D))return i(),e}}};var ha=fa,su={exports:{}};const nu=oe,j=q,{promisify:ru}=ge;let Fe;try{Fe=Ie("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Fe){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(Fe=void 0)}}const{EV_ADD:iu,EV_CHANGE:da,EV_ADD_DIR:on,EV_UNLINK:ot,EV_ERROR:Ea,STR_DATA:pa,STR_END:Ca,FSEVENT_CREATED:Fa,FSEVENT_MODIFIED:ga,FSEVENT_DELETED:ma,FSEVENT_MOVED:_a,FSEVENT_UNKNOWN:Aa,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:ya,FSEVENT_TYPE_FILE:wa,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:Dn,ROOT_GLOBSTAR:an,DIR_SUFFIX:Ra,DOT_SLASH:ln,FUNCTION_TYPE:ou,EMPTY_FN:ba,IDENTITY_FN:va}=ut,Sa=a(t=>isNaN(t)?{}:{depth:t},"Depth"),Du=ru(nu.stat),Ba=ru(nu.lstat),cn=ru(nu.realpath),$a={stat:Du,lstat:Ba},ce=new Map,Ta=10,xa=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Oa=a((t,e)=>({stop:Fe.watch(t,e)}),"createFSEventsInstance");function Na(t,e,u,s){let n=j.extname(e)?j.dirname(e):e;const r=j.dirname(n);let i=ce.get(n);Pa(r)&&(n=r);const o=j.resolve(t),D=o!==e,l=a((h,c,C)=>{D&&(h=h.replace(e,o)),(h===o||!h.indexOf(o+j.sep))&&u(h,c,C)},"filteredListener");let f=!1;for(const h of ce.keys())if(e.indexOf(j.resolve(h)+j.sep)===0){n=h,i=ce.get(n),f=!0;break}return i||f?i.listeners.add(l):(i={listeners:new Set([l]),rawEmitter:s,watcher:Oa(n,(h,c)=>{if(!i.listeners.size||c&ya)return;const C=Fe.getInfo(h,c);i.listeners.forEach(F=>{F(h,c,C)}),i.rawEmitter(C.event,h,C)})},ce.set(n,i)),()=>{const h=i.listeners;if(h.delete(l),!h.size&&(ce.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}a(Na,"setFSEventsListener");const Pa=a(t=>{let e=0;for(const u of ce.keys())if(u.indexOf(t)===0&&(e++,e>=Ta))return!0;return!1},"couldConsolidate"),Ha=a(()=>Fe&&ce.size<128,"canUse"),au=a((t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=j.dirname(t))!==e;)u++;return u},"calcDepth"),fn=a((t,e)=>t.type===Te&&e.isDirectory()||t.type===Dn&&e.isSymbolicLink()||t.type===wa&&e.isFile(),"sameTypes");let La=class{static{a(this,"FsEventsHandler")}constructor(e){this.fsw=e}checkIgnored(e,u){const s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return s.add(e),u&&u.isDirectory()&&s.add(e+an),!0;s.delete(e),s.delete(e+an)}addOrChange(e,u,s,n,r,i,o,D){const l=r.has(i)?da:iu;this.handleEvent(l,e,u,s,n,r,i,o,D)}async checkExists(e,u,s,n,r,i,o,D){try{const l=await Du(e);if(this.fsw.closed)return;fn(o,l)?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}catch(l){l.code==="EACCES"?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}}handleEvent(e,u,s,n,r,i,o,D,l){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===ot){const f=D.type===Te;(f||i.has(o))&&this.fsw._remove(r,o,f)}else{if(e===iu){if(D.type===Te&&this.fsw._getWatchedDir(u),D.type===Dn&&l.followSymlinks){const h=l.depth===void 0?void 0:au(s,n)+1;return this._addToFsEvents(u,!1,!0,h)}this.fsw._getWatchedDir(r).add(o)}const f=D.type===Te?e+Ra:e;this.fsw._emit(f,u),f===on&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,s,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const r=this.fsw.options,o=Na(e,u,a(async(D,l,f)=>{if(this.fsw.closed||r.depth!==void 0&&au(D,u)>r.depth)return;const h=s(j.join(e,j.relative(e,D)));if(n&&!n(h))return;const c=j.dirname(h),C=j.basename(h),F=this.fsw._getWatchedDir(f.type===Te?h:c);if(xa.has(l)||f.event===Aa)if(typeof r.ignored===ou){let m;try{m=await Du(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,m))return;fn(f,m)?this.addOrChange(h,D,u,c,F,C,f,r):this.handleEvent(ot,h,D,u,c,F,C,f,r)}else this.checkExists(h,D,u,c,F,C,f,r);else switch(f.event){case Fa:case ga:return this.addOrChange(h,D,u,c,F,C,f,r);case ma:case _a:return this.checkExists(h,D,u,c,F,C,f,r)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,u,s,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const r=await cn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(r))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(r||e,i=>{let o=e;return r&&r!==ln?o=i.replace(r,e):i!==ln&&(o=j.join(e,i)),s(o)},!1,n)}catch(r){if(this.fsw._handleError(r))return this.fsw._emitReady()}}}emitAdd(e,u,s,n,r){const i=s(e),o=u.isDirectory(),D=this.fsw._getWatchedDir(j.dirname(i)),l=j.basename(i);o&&this.fsw._getWatchedDir(i),!D.has(l)&&(D.add(l),(!n.ignoreInitial||r===!0)&&this.fsw._emit(o?on:iu,i,u))}initWatch(e,u,s,n){if(this.fsw.closed)return;const r=this._watchWithFsEvents(s.watchPath,j.resolve(e||s.watchPath),n,s.globFilter);this.fsw._addPathCloser(u,r)}async _addToFsEvents(e,u,s,n){if(this.fsw.closed)return;const r=this.fsw.options,i=typeof u===ou?u:va,o=this.fsw._getWatchHelpers(e);try{const D=await $a[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))throw null;if(D.isDirectory()){if(o.globFilter||this.emitAdd(i(e),D,i,r,s),n&&n>r.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:a(l=>o.filterPath(l),"fileFilter"),directoryFilter:a(l=>o.filterDir(l),"directoryFilter"),...Sa(r.depth-(n||0))}).on(pa,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;const f=j.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){const c=r.depth===void 0?void 0:au(f,j.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,i,c)}else this.emitAdd(f,l.stats,i,r,s)}).on(Ea,ba).on(Ca,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,D,i,r,s),this.fsw._emitReady()}catch(D){(!D||this.fsw._handleError(D))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(r.persistent&&s!==!0)if(typeof u===ou)this.initWatch(void 0,e,o,i);else{let D;try{D=await cn(o.watchPath)}catch{}this.initWatch(D,e,o,i)}}};su.exports=La,su.exports.canUse=Ha;var Ia=su.exports;const{EventEmitter:ka}=kn,lu=oe,x=q,{promisify:hn}=ge,Ma=No,cu=Mo.default,Wa=Zo,fu=Vt,Ga=MD,ja=Ss,Ua=ha,dn=Ia,{EV_ALL:hu,EV_READY:Ka,EV_ADD:Dt,EV_CHANGE:xe,EV_UNLINK:En,EV_ADD_DIR:Va,EV_UNLINK_DIR:za,EV_RAW:Ya,EV_ERROR:du,STR_CLOSE:qa,STR_END:Xa,BACK_SLASH_RE:Qa,DOUBLE_SLASH_RE:pn,SLASH_OR_BACK_SLASH_RE:Za,DOT_RE:Ja,REPLACER_RE:el,SLASH:Eu,SLASH_SLASH:tl,BRACE_START:ul,BANG:pu,ONE_DOT:Cn,TWO_DOTS:sl,GLOBSTAR:nl,SLASH_GLOBSTAR:Cu,ANYMATCH_OPTS:Fu,STRING_TYPE:gu,FUNCTION_TYPE:rl,EMPTY_STR:mu,EMPTY_FN:il,isWindows:ol,isMacos:Dl,isIBMi:al}=ut,ll=hn(lu.stat),cl=hn(lu.readdir),_u=a((t=[])=>Array.isArray(t)?t:[t],"arrify"),Fn=a((t,e=[])=>(t.forEach(u=>{Array.isArray(u)?Fn(u,e):e.push(u)}),e),"flatten"),gn=a(t=>{const e=Fn(_u(t));if(!e.every(u=>typeof u===gu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(_n)},"unifyPaths"),mn=a(t=>{let e=t.replace(Qa,Eu),u=!1;for(e.startsWith(tl)&&(u=!0);e.match(pn);)e=e.replace(pn,Eu);return u&&(e=Eu+e),e},"toUnix"),_n=a(t=>mn(x.normalize(mn(t))),"normalizePathToUnix"),An=a((t=mu)=>e=>typeof e!==gu?e:_n(x.isAbsolute(e)?e:x.join(t,e)),"normalizeIgnored"),fl=a((t,e)=>x.isAbsolute(t)?t:t.startsWith(pu)?pu+x.join(e,t.slice(1)):x.join(e,t),"getAbsolutePath"),J=a((t,e)=>t[e]===void 0,"undef");class hl{static{a(this,"DirEntry")}constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==Cn&&e!==sl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const s=this.path;try{await cl(s)}catch{this._removeWatcher&&this._removeWatcher(x.dirname(s),x.basename(s))}}has(e){const{items:u}=this;if(u)return u.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const dl="stat",El="lstat";class pl{static{a(this,"WatchHelper")}constructor(e,u,s,n){this.fsw=n,this.path=e=e.replace(el,mu),this.watchPath=u,this.fullWatchPath=x.resolve(u),this.hasGlob=u!==e,e===mu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?cu(e,void 0,Fu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(r=>{r.length>1&&r.pop()}),this.followSymlinks=s,this.statMethod=s?dl:El}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return x.join(this.watchPath,x.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ul)?Ga.expand(e):[e]).forEach(n=>{u.push(x.relative(this.watchPath,n).split(Za))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let s=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((r,i)=>(r===nl&&(s=!0),s||!u[0][i]||cu(r,u[0][i],Fu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class Cl extends ka{static{a(this,"FSWatcher")}constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,J(u,"persistent")&&(u.persistent=!0),J(u,"ignoreInitial")&&(u.ignoreInitial=!1),J(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),J(u,"interval")&&(u.interval=100),J(u,"binaryInterval")&&(u.binaryInterval=300),J(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,J(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),dn.canUse()||(u.useFsEvents=!1),J(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=Dl),al&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const D=n.toLowerCase();D==="false"||D==="0"?u.usePolling=!1:D==="true"||D==="1"?u.usePolling=!0:u.usePolling=!!D}const r=process.env.CHOKIDAR_INTERVAL;r&&(u.interval=Number.parseInt(r,10)),J(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),J(u,"followSymlinks")&&(u.followSymlinks=!0),J(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=_u(u.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=il,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ka)))},this._emitRaw=(...D)=>this.emit(Ya,...D),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new dn(this):this._nodeFsHandler=new Ua(this),Object.freeze(u)}add(e,u,s){const{cwd:n,disableGlobbing:r}=this.options;this.closed=!1;let i=gn(e);return n&&(i=i.map(o=>{const D=fl(o,n);return r||!fu(o)?D:ja(D)})),i=i.filter(o=>o.startsWith(pu)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+Cu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async o=>{const D=await this._nodeFsHandler._addToNodeFs(o,!s,0,0,u);return D&&this._emitReady(),D})).then(o=>{this.closed||o.filter(D=>D).forEach(D=>{this.add(x.dirname(D),x.basename(u||D))})})),this}unwatch(e){if(this.closed)return this;const u=gn(e),{cwd:s}=this.options;return u.forEach(n=>{!x.isAbsolute(n)&&!this._closers.has(n)&&(s&&(n=x.join(s,n)),n=x.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+Cu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(s=>{const n=s();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,s)=>{const n=this.options.cwd?x.relative(this.options.cwd,s):s;e[n||Cn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==du&&this.emit(hu,...u)}async _emit(e,u,s,n,r){if(this.closed)return;const i=this.options;ol&&(u=x.normalize(u)),i.cwd&&(u=x.relative(i.cwd,u));const o=[e,u];r!==void 0?o.push(s,n,r):n!==void 0?o.push(s,n):s!==void 0&&o.push(s);const D=i.awaitWriteFinish;let l;if(D&&(l=this._pendingWrites.get(u)))return l.lastChange=new Date,this;if(i.atomic){if(e===En)return this._pendingUnlinks.set(u,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(hu,...f),this._pendingUnlinks.delete(h)})},typeof i.atomic=="number"?i.atomic:100),this;e===Dt&&this._pendingUnlinks.has(u)&&(e=o[0]=xe,this._pendingUnlinks.delete(u))}if(D&&(e===Dt||e===xe)&&this._readyEmitted){const f=a((h,c)=>{h?(e=o[0]=du,o[1]=h,this.emitWithAll(e,o)):c&&(o.length>2?o[2]=c:o.push(c),this.emitWithAll(e,o))},"awfEmit");return this._awaitWriteFinish(u,D.stabilityThreshold,e,f),this}if(e===xe&&!this._throttle(xe,u,50))return this;if(i.alwaysStat&&s===void 0&&(e===Dt||e===Va||e===xe)){const f=i.cwd?x.join(i.cwd,u):u;let h;try{h=await ll(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(e,o),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(du,e),e||this.closed}_throttle(e,u,s){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),r=n.get(u);if(r)return r.count++,!1;let i;const o=a(()=>{const l=n.get(u),f=l?l.count:0;return n.delete(u),clearTimeout(i),l&&clearTimeout(l.timeoutObject),f},"clear");i=setTimeout(o,s);const D={timeoutObject:i,clear:o,count:0};return n.set(u,D),D}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,s,n){let r,i=e;this.options.cwd&&!x.isAbsolute(e)&&(i=x.join(this.options.cwd,e));const o=new Date,D=a(l=>{lu.stat(i,(f,h)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}const c=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(e).lastChange=c);const C=this._pendingWrites.get(e);c-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,h)):r=setTimeout(D,this.options.awaitWriteFinish.pollInterval,h)})},"awaitWriteFinish");this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:a(()=>(this._pendingWrites.delete(e),clearTimeout(r),s),"cancelWait")}),r=setTimeout(D,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ja.test(e))return!0;if(!this._userIgnored){const{cwd:s}=this.options,n=this.options.ignored,r=n&&n.map(An(s)),i=_u(r).filter(D=>typeof D===gu&&!fu(D)).map(D=>D+Cu),o=this._getGlobIgnored().map(An(s)).concat(r,i);this._userIgnored=cu(o,void 0,Fu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const s=u||this.options.disableGlobbing||!fu(e)?e:Wa(e),n=this.options.followSymlinks;return new pl(e,s,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=x.resolve(e);return this._watched.has(u)||this._watched.set(u,new hl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const s=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(e,u,s){const n=x.join(e,u),r=x.resolve(n);if(s=s??(this._watched.has(n)||this._watched.has(r)),!this._throttle("remove",n,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(c=>this._remove(n,c));const D=this._getWatchedDir(e),l=D.has(u);D.remove(u),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let f=n;if(this.options.cwd&&(f=x.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===Dt)return;this._watched.delete(n),this._watched.delete(r);const h=s?za:En;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=x.dirname(e);this._getWatchedDir(u).remove(x.basename(e))}_closeFile(e){const u=this._closers.get(e);u&&(u.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(u)}_readdirp(e,u){if(this.closed)return;const s={type:hu,alwaysStat:!0,lstat:!0,...u};let n=Ma(e,s);return this._streams.add(n),n.once(qa,()=>{n=void 0}),n.once(Xa,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}var Au=Cl;const at=a((t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},"ignoreAfterArgument"),yn=a((t,e=process.argv.slice(2))=>(bu(t,e,{ignore:at()}),e),"removeArgvFlags"),Fl=a(t=>{let e=Buffer.alloc(0);return u=>{for(e=Buffer.concat([e,u]);e.length>4;){const s=e.readInt32BE(0);if(e.length>=4+s){const n=e.slice(4,4+s);t(n),e=e.slice(4+s)}else break}}},"bufferData"),wn=a(async()=>{const t=Kn.createServer(u=>{u.on("data",Fl(s=>{const n=JSON.parse(s.toString());t.emit("data",n)}))}),e=xn(process.pid);return await Me.promises.mkdir(Vn,{recursive:!0}),await Me.promises.rm(e,{force:!0}),await new Promise((u,s)=>{t.listen(e,u),t.on("error",s)}),t.unref(),process.on("exit",()=>{if(t.close(),!On)try{Me.rmSync(e)}catch{}}),t},"createIpcServer"),gl=a(()=>new Date().toLocaleTimeString(),"currentTime"),Oe=a((...t)=>console.log(Wn(gl()),Gn("[tsx]"),...t),"log"),ml="\x1Bc",_l=a((t,e)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(t,this,arguments),e)}},"debounce"),Rn={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},Al=li({name:"watch",parameters:["<script path>"],flags:Rn,help:{description:"Run the script and watch for changes"},ignoreArgv:at(!1)},async t=>{const e=yn(Rn,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,include:t.flags.include,exclude:[...t.flags.ignore,...t.flags.exclude],ipc:!0};let s,n=!1;const r=process.cwd(),i=new Map,o=a((g,w)=>{const d=ke.resolve(w),b=i.get(d);if(g==="add"||g==="addDir"||g==="unlink"||g==="unlinkDir")b&&(clearTimeout(b.expiration),i.delete(d));else if(b)return`${g}:${b.path}`;let v;try{v=Me.realpathSync.native(d)}catch{v=d}const W={path:v,expiration:setTimeout(()=>{i.get(d)===W&&i.delete(d)},1e3)};return W.expiration.unref(),i.set(d,W),`${g}:${v}`},"getEventKey"),D=t._.map(g=>ke.resolve(g));let l,f,h=!1;const c=new Map,C=a(g=>{const w=ke.resolve(g);return process.platform==="win32"?w.toLowerCase():w},"getPathKey"),F=new Set;for(const g of u.include)if(g.startsWith("!")){const w=g.slice(1);Os(w)||F.add(C(w))}else Os(g)||F.delete(C(g));(await wn()).on("data",g=>{if(g&&typeof g=="object"&&"type"in g&&g.type==="dependency"&&"path"in g&&typeof g.path=="string"){const w=g.path.startsWith("file:")?Pn(g.path):g.path;ke.isAbsolute(w)&&(F.has(C(w))?(f||(f=new Au({...I,disableGlobbing:!0}),f.on("all",(d,b)=>{Z("literal",d,b)})),f.add(w)):l.add(w))}});const R=a(()=>{if(!n)return as(e,u)},"spawnProcess");let T=!1;const H=a(async(g,w="SIGTERM",d=5e3)=>{let b=!1;const v=new Promise(W=>{g.on("exit",E=>{b=!0,T=!1,W(E)})});return T=!0,g.kill(w),setTimeout(()=>{b||(Oe(me(`Process didn't exit in ${Math.floor(d/1e3)}s. Force killing...`)),g.kill("SIGKILL"))},d),await v},"killProcess"),O=_l(async(g,w)=>{const d=g?`${g?jn(g):""}${w?` in ${Un(`./${w}`)}`:""}`:"";if(T){Oe(d,me("Process hasn't exited. Killing process...")),s.kill("SIGKILL");return}s&&(s.exitCode===null?(Oe(d,me("Restarting...")),await H(s)):Oe(d,me("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(ml)),s=R()},100),z=a(g=>{n=!0,s?.exitCode===null?(T&&Oe(me("Previous process hasn't exited yet. Force killing...")),H(s,T?"SIGKILL":g).then(w=>{process.exit(w??0)},()=>{})):process.exit(128+ft.signals[g])},"relaySignal");process.on("SIGINT",z),process.on("SIGTERM",z);const I={cwd:r,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},Z=a((g,w,d)=>{if(!h)return;const b=o(w,d),v=c.get(b);if(v&&v.source!==g){clearTimeout(v.expiration),c.delete(b);return}v&&clearTimeout(v.expiration);const W={source:g,expiration:setTimeout(()=>{c.get(b)===W&&c.delete(b)},1e3)};W.expiration.unref(),c.set(b,W),O(w,d)},"handleWatchEvent");l=new Au({...I,disableGlobbing:!0}),l.on("all",(g,w)=>{Z("literal",g,w)});const M=a(g=>new Promise(w=>{g.once("ready",w)}),"waitForReady"),y=[M(l)];if(l.add(D),u.include.some(g=>!g.startsWith("!"))){const g=new Au(I);g.on("all",(w,d)=>{Z("include",w,d)}),y.push(M(g)),g.add(u.include)}await Promise.all(y),l.add(u.include.filter(g=>g.startsWith("!"))),h=!0,s=R(),process.stdin.on("data",()=>O("Return key"))}),yl=a((t,e)=>{let u;e.on("data",r=>{r&&r.type==="signal"&&u&&u(r.signal)});const s=a(()=>{const r=new Promise(i=>{setTimeout(()=>i(void 0),30),u=i});return r.then(()=>{u=void 0},()=>{}),r},"waitForSignalFromChild"),n=a(async r=>{await s()!==r&&(t.kill(r),await s()!==r&&(t.on("exit",()=>{const D=ft.signals[r];process.exit(128+D)}),t.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",n),process.on("SIGTERM",n)},"relaySignals"),bn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Vu({name:"tsx",parameters:["[script path]"],commands:[Al],flags:{...bn,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:at()},async t=>{t.flags.version?process.stdout.write(`tsx v${Tn}
54
54
  node `):t.flags.help&&(t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"}),console.log(`${"-".repeat(45)}
55
55
  `));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:s}=Vu({flags:{...e,inputType:String,test:Boolean},help:!1,ignoreArgv:at(!1)}),n=yn({...bn,...e}),i=["print","eval"].find(l=>!!s[l]);if(i){const{inputType:l}=s,f=s[i],{transformSync:h}=await import("esbuild"),c=h(f,{loader:"default",sourcefile:"/eval.ts",format:l==="module"?"esm":"cjs"});n.unshift(`--${i}`,c.code)}yu(In)&&s.test&&u.length===0&&n.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s");const o=await wn(),D=as(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig});yl(D,o),process.send&&D.on("message",l=>{process.send(l)}),D.send&&process.on("message",l=>{D.send(l)}),D.on("close",l=>{l===null&&(l=ft.signals[D.signalCode]+128),process.exit(l)})});
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var s=(r,e)=>m(r,"name",{value:e,configurable:!0});var a=require("../../register-DlUHyDDv.cjs");require("../../get-pipe-path-D4YM6rQt.cjs");var t=require("../../register-BoI6-WNn.cjs");require("../../require-C7ivLNeu.cjs");var n=require("../../node-features-CEjg7cMX.cjs");require("node:module"),require("node:worker_threads"),require("node:url"),require("node:fs"),require("node:fs/promises"),require("../../index-BN2t1Mfo.cjs"),require("node:path"),require("esbuild"),require("node:crypto"),require("node:os"),require("../../temporary-directory-B83uKxJF.cjs"),require("../../client-D3mGB526.cjs"),require("node:net"),require("module"),require("fs"),require("os"),require("path"),require("node:util"),require("../../index-BWFBUo6r.cjs");const c=s((r,e)=>{if(!e||typeof e=="object"&&!e.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const i=typeof e=="string",u=i?e:e.parentURL,q=Date.now().toString(),o=t.register({namespace:q});return!n.isFeatureSupported(n.esmLoadReadFile)&&!t.isBarePackageNamePattern.test(r)&&t.cjsExtensionPattern.test(r)?Promise.resolve(o.require(r,u)):a.register({namespace:q,...i?{}:e}).import(r,u)},"tsImport");exports.register=a.register,exports.tsImport=c;
1
+ "use strict";var m=Object.defineProperty;var s=(r,e)=>m(r,"name",{value:e,configurable:!0});var a=require("../../register-DQV4TtD3.cjs");require("../../get-pipe-path-D4YM6rQt.cjs");var t=require("../../register-CptX03bE.cjs");require("../../require-bPEuCWoO.cjs");var n=require("../../node-features-CEjg7cMX.cjs");require("node:module"),require("node:worker_threads"),require("node:url"),require("node:fs"),require("node:fs/promises"),require("../../index-LWEOpzQe.cjs"),require("node:path"),require("esbuild"),require("node:crypto"),require("node:os"),require("../../temporary-directory-B83uKxJF.cjs"),require("../../client-D3mGB526.cjs"),require("node:net"),require("module"),require("fs"),require("os"),require("path"),require("node:util"),require("../../index-BWFBUo6r.cjs");const c=s((r,e)=>{if(!e||typeof e=="object"&&!e.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const i=typeof e=="string",u=i?e:e.parentURL,q=Date.now().toString(),o=t.register({namespace:q});return!n.isFeatureSupported(n.esmLoadReadFile)&&!t.isBarePackageNamePattern.test(r)&&t.cjsExtensionPattern.test(r)?Promise.resolve(o.require(r,u)):a.register({namespace:q,...i?{}:e}).import(r,u)},"tsImport");exports.register=a.register,exports.tsImport=c;
@@ -1 +1 @@
1
- var s=Object.defineProperty;var i=(r,t)=>s(r,"name",{value:t,configurable:!0});import{r as p}from"../../register-zZ7SWseA.mjs";import"../../get-pipe-path-_tAJyU_v.mjs";import{r as n,i as c,c as u}from"../../register-HWZIKnmC.mjs";import"../../require-awuW45Q3.mjs";import{i as g,e as d}from"../../node-features-JeyyvQz6.mjs";import"node:module";import"node:worker_threads";import"node:url";import"node:fs";import"node:fs/promises";import"../../index-CQhDiIsg.mjs";import"node:path";import"esbuild";import"node:crypto";import"node:os";import"../../temporary-directory-BDDVQOvU.mjs";import"../../client-D_mPDF5S.mjs";import"node:net";import"module";import"fs";import"os";import"path";import"node:util";import"../../index-gbaejti9.mjs";const f=i((r,t)=>{if(!t||typeof t=="object"&&!t.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const e=typeof t=="string",o=e?t:t.parentURL,m=Date.now().toString(),a=n({namespace:m});return!g(d)&&!c.test(r)&&u.test(r)?Promise.resolve(a.require(r,o)):p({namespace:m,...e?{}:t}).import(r,o)},"tsImport");export{p as register,f as tsImport};
1
+ var s=Object.defineProperty;var i=(r,t)=>s(r,"name",{value:t,configurable:!0});import{r as p}from"../../register-B_kKY3fL.mjs";import"../../get-pipe-path-_tAJyU_v.mjs";import{r as n,i as c,c as u}from"../../register-A6mos5aG.mjs";import"../../require-Cbdk4ZrE.mjs";import{i as g,e as d}from"../../node-features-JeyyvQz6.mjs";import"node:module";import"node:worker_threads";import"node:url";import"node:fs";import"node:fs/promises";import"../../index-CVGQLgGk.mjs";import"node:path";import"esbuild";import"node:crypto";import"node:os";import"../../temporary-directory-BDDVQOvU.mjs";import"../../client-D_mPDF5S.mjs";import"node:net";import"module";import"fs";import"os";import"path";import"node:util";import"../../index-gbaejti9.mjs";const f=i((r,t)=>{if(!t||typeof t=="object"&&!t.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const e=typeof t=="string",o=e?t:t.parentURL,m=Date.now().toString(),a=n({namespace:m});return!g(d)&&!c.test(r)&&u.test(r)?Promise.resolve(a.require(r,o)):p({namespace:m,...e?{}:t}).import(r,o)},"tsImport");export{p as register,f as tsImport};
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty;var o=(e,i)=>s(e,"name",{value:i,configurable:!0});var c=require("node:worker_threads"),a=require("../node-features-CEjg7cMX.cjs"),r=require("../register-DlUHyDDv.cjs");require("../get-pipe-path-D4YM6rQt.cjs"),require("node:module"),require("node:path"),require("node:url"),require("../register-BoI6-WNn.cjs"),require("node:fs"),require("esbuild"),require("node:crypto"),require("../index-BN2t1Mfo.cjs"),require("../client-D3mGB526.cjs"),require("../require-C7ivLNeu.cjs"),require("node:fs/promises"),require("module"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("fs"),require("os"),require("path"),require("node:util"),require("../index-BWFBUo6r.cjs"),require("node:net");function q(e){var i=Object.create(null);return e&&Object.keys(e).forEach(function(t){if(t!=="default"){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,l.get?l:{enumerable:!0,get:o(function(){return e[t]},"get")})}}),i.default=e,Object.freeze(i)}o(q,"_interopNamespaceDefault");var n=q(c);(a.isFeatureSupported(a.moduleRegisterHooksCjsReload)&&!n.isInternalThread||a.isFeatureSupported(a.moduleRegister)&&n.isMainThread)&&r.register();const u=r.createDefaultData(),d=r.createInitialize(u),f=r.createGlobalPreload(u),p=r.createLoad(u),b=r.createResolve(u);exports.globalPreload=f,exports.initialize=d,exports.load=p,exports.resolve=b;
1
+ "use strict";var s=Object.defineProperty;var o=(e,i)=>s(e,"name",{value:i,configurable:!0});var c=require("node:worker_threads"),a=require("../node-features-CEjg7cMX.cjs"),r=require("../register-DQV4TtD3.cjs");require("../get-pipe-path-D4YM6rQt.cjs"),require("node:module"),require("node:path"),require("node:url"),require("../register-CptX03bE.cjs"),require("node:fs"),require("esbuild"),require("node:crypto"),require("../index-LWEOpzQe.cjs"),require("../client-D3mGB526.cjs"),require("../require-bPEuCWoO.cjs"),require("node:fs/promises"),require("module"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("fs"),require("os"),require("path"),require("node:util"),require("../index-BWFBUo6r.cjs"),require("node:net");function q(e){var i=Object.create(null);return e&&Object.keys(e).forEach(function(t){if(t!=="default"){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,l.get?l:{enumerable:!0,get:o(function(){return e[t]},"get")})}}),i.default=e,Object.freeze(i)}o(q,"_interopNamespaceDefault");var n=q(c);(a.isFeatureSupported(a.moduleRegisterHooksCjsReload)&&!n.isInternalThread||a.isFeatureSupported(a.moduleRegister)&&n.isMainThread)&&r.register();const u=r.createDefaultData(),d=r.createInitialize(u),f=r.createGlobalPreload(u),p=r.createLoad(u),b=r.createResolve(u);exports.globalPreload=f,exports.initialize=d,exports.load=p,exports.resolve=b;
@@ -1 +1 @@
1
- import*as o from"node:worker_threads";import{i as t,m as i,a as e}from"../node-features-JeyyvQz6.mjs";import{r as a,c as m,a as p,b as s,d as l,e as d}from"../register-zZ7SWseA.mjs";import"../get-pipe-path-_tAJyU_v.mjs";import"node:module";import"node:path";import"node:url";import"../register-HWZIKnmC.mjs";import"node:fs";import"esbuild";import"node:crypto";import"../index-CQhDiIsg.mjs";import"../client-D_mPDF5S.mjs";import"../require-awuW45Q3.mjs";import"node:fs/promises";import"module";import"../temporary-directory-BDDVQOvU.mjs";import"node:os";import"fs";import"os";import"path";import"node:util";import"../index-gbaejti9.mjs";import"node:net";(t(i)&&!o.isInternalThread||t(e)&&o.isMainThread)&&a();const r=d(),c=m(r),n=p(r),f=s(r),u=l(r);export{n as globalPreload,c as initialize,f as load,u as resolve};
1
+ import*as o from"node:worker_threads";import{i as t,m as i,a as e}from"../node-features-JeyyvQz6.mjs";import{r as a,c as m,a as p,b as s,d as l,e as d}from"../register-B_kKY3fL.mjs";import"../get-pipe-path-_tAJyU_v.mjs";import"node:module";import"node:path";import"node:url";import"../register-A6mos5aG.mjs";import"node:fs";import"esbuild";import"node:crypto";import"../index-CVGQLgGk.mjs";import"../client-D_mPDF5S.mjs";import"../require-Cbdk4ZrE.mjs";import"node:fs/promises";import"module";import"../temporary-directory-BDDVQOvU.mjs";import"node:os";import"fs";import"os";import"path";import"node:util";import"../index-gbaejti9.mjs";import"node:net";(t(i)&&!o.isInternalThread||t(e)&&o.isMainThread)&&a();const r=d(),c=m(r),n=p(r),f=s(r),u=l(r);export{n as globalPreload,c as initialize,f as load,u as resolve};
@@ -0,0 +1,14 @@
1
+ var Xt=Object.defineProperty;var f=(s,e)=>Xt(s,"name",{value:e,configurable:!0});import J from"node:path";import{fileURLToPath as Yt,pathToFileURL as Qt}from"node:url";import{version as ye,transform as Zt,transformSync as Fe}from"esbuild";import Vt from"node:crypto";import{i as en,c as tn}from"./node-features-JeyyvQz6.mjs";import D from"node:fs";import nn from"node:os";import{t as rn}from"./temporary-directory-BDDVQOvU.mjs";const Se=f(s=>Vt.createHash("sha1").update(s).digest("hex"),"sha1");var sn=44,on=59,Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pe=new Uint8Array(64),an=new Uint8Array(128);for(let s=0;s<Be.length;s++){const e=Be.charCodeAt(s);Pe[s]=e,an[e]=s}function Y(s,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let o=i&31;i>>>=5,i>0&&(o|=32),s.write(Pe[o])}while(i>0);return e}f(Y,"encodeInteger$1");var We=1024*16,Je=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}},cn=class{static{f(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(We)}write(s){const{buffer:e}=this;e[this.pos++]=s,this.pos===We&&(this.out+=Je.decode(e),this.pos=0)}flush(){const{buffer:s,out:e,pos:n}=this;return n>0?e+Je.decode(s.subarray(0,n)):e}};function ln(s){const e=new cn;let n=0,i=0,o=0,a=0;for(let l=0;l<s.length;l++){const p=s[l];if(l>0&&e.write(on),p.length===0)continue;let g=0;for(let b=0;b<p.length;b++){const d=p[b];b>0&&e.write(sn),g=Y(e,d[0],g),d.length!==1&&(n=Y(e,d[1],n),i=Y(e,d[2],i),o=Y(e,d[3],o),d.length!==4&&(a=Y(e,d[4],a)))}}return e.flush()}f(ln,"encode$1");class ue{static{f(this,"BitSet")}constructor(e){this.bits=e instanceof ue?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class re{static{f(this,"Chunk")}constructor(e,n,i){this.start=e,this.end=n,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new re(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,i=this.original.slice(0,n),o=this.original.slice(n);this.original=i;const a=new re(e,this.end,o);return a.outro=this.outro,this.outro="",this.end=e,this.edited?(a.edit("",!1),this.content=""):this.content=i,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const i=this.split(this.end-n.length);this.edited&&i.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}function un(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?s=>globalThis.btoa(unescape(encodeURIComponent(s))):typeof Buffer=="function"?s=>Buffer.from(s,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}f(un,"getBtoa");const fn=un();let hn=class{static{f(this,"SourceMap")}constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ln(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+fn(this.toString())}};function dn(s){const e=s.split(`
2
+ `),n=e.filter(a=>/^\t+/.test(a)),i=e.filter(a=>/^ {2,}/.test(a));if(n.length===0&&i.length===0)return null;if(n.length>=i.length)return" ";const o=i.reduce((a,l)=>{const p=/^ +/.exec(l)[0].length;return Math.min(p,a)},1/0);return new Array(o+1).join(" ")}f(dn,"guessIndent");function gn(s,e){const n=s.split(/[/\\]/),i=e.split(/[/\\]/);for(n.pop();n[0]===i[0];)n.shift(),i.shift();if(n.length){let o=n.length;for(;o--;)n[o]=".."}return n.concat(i).join("/")}f(gn,"getRelativePath");const bn=Object.prototype.toString;function pn(s){return bn.call(s)==="[object Object]"}f(pn,"isObject");function qe(s){const e=s.split(`
3
+ `),n=[];for(let i=0,o=0;i<e.length;i++)n.push(o),o+=e[i].length+1;return f(function(o){let a=0,l=n.length;for(;a<l;){const b=a+l>>1;o<n[b]?l=b:a=b+1}const p=a-1,g=o-n[p];return{line:p,column:g}},"locate")}f(qe,"getLocator");const mn=/\w/;class wn{static{f(this,"Mappings")}constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,i,o){if(n.length){const a=n.length-1;let l=n.indexOf(`
4
+ `,0),p=-1;for(;l>=0&&a>l;){const b=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&b.push(o),this.rawSegments.push(b),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=l,l=n.indexOf(`
5
+ `,l+1)}const g=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&g.push(o),this.rawSegments.push(g),this.advance(n.slice(p+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(e,n,i,o,a){let l=n.start,p=!0,g=!1;for(;l<n.end;){if(i[l]===`
6
+ `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0,g=!1;else{if(this.hires||p||a.has(l)){const b=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?mn.test(i[l])?g||(this.rawSegments.push(b),g=!0):(this.rawSegments.push(b),g=!1):this.rawSegments.push(b)}o.column+=1,this.generatedCodeColumn+=1,p=!1}l+=1}this.pending=null}advance(e){if(!e)return;const n=e.split(`
7
+ `);if(n.length>1){for(let i=0;i<n.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}}const Q=`
8
+ `,q={insertLeft:!1,insertRight:!1,storeName:!1};class $e{static{f(this,"MagicString")}constructor(e,n={}){const i=new re(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ue},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=i,this.byEnd[e.length]=i}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.appendLeft(n):this.intro+=n,this}appendRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.appendRight(n):this.outro+=n,this}clone(){const e=new $e(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[i.start]=i,e.byEnd[i.end]=i;const o=n.next,a=o&&o.clone();a&&(i.next=a,a.previous=i,i=a),n=o}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new ue(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const n=0,i=Object.keys(this.storedNames),o=new wn(e.hires),a=qe(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(l=>{const p=a(l.start);l.intro.length&&o.advance(l.intro),l.edited?o.addEdit(n,l.content,p,l.storeName?i.indexOf(l.original):-1):o.addUneditedChunk(n,l,this.original,p,this.sourcemapLocations),l.outro.length&&o.advance(l.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?gn(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(e){return new hn(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=dn(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,n){const i=/^[^\r\n]/gm;if(pn(e)&&(n=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;n=n||{};const o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(d=>{for(let r=d[0];r<d[1];r+=1)o[r]=!0});let a=n.indentStart!==!1;const l=f(b=>a?`${e}${b}`:(a=!0,b),"replacer");this.intro=this.intro.replace(i,l);let p=0,g=this.firstChunk;for(;g;){const b=g.end;if(g.edited)o[p]||(g.content=g.content.replace(i,l),g.content.length&&(a=g.content[g.content.length-1]===`
9
+ `));else for(p=g.start;p<b;){if(!o[p]){const d=this.original[p];d===`
10
+ `?a=!0:d!=="\r"&&a&&(a=!1,p===g.start||(this._splitChunk(g,p),g=g.next),g.prependRight(e))}p+=1}p=g.end,g=g.next}return this.outro=this.outro.replace(i,l),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,n){return q.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),q.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return q.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),q.insertRight=!0),this.prependRight(e,n)}move(e,n,i){if(e=e+this.offset,n=n+this.offset,i=i+this.offset,i>=e&&i<=n)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(n),this._split(i);const o=this.byStart[e],a=this.byEnd[n],l=o.previous,p=a.next,g=this.byStart[i];if(!g&&a===this.lastChunk)return this;const b=g?g.previous:this.lastChunk;return l&&(l.next=p),p&&(p.previous=l),b&&(b.next=o),g&&(g.previous=a),o.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=b,a.next=g||null,b||(this.firstChunk=o),g||(this.lastChunk=a),this}overwrite(e,n,i,o){return o=o||{},this.update(e,n,i,{...o,overwrite:!o.contentOnly})}update(e,n,i,o){if(e=e+this.offset,n=n+this.offset,typeof i!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(e===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(n),o===!0&&(q.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),q.storeName=!0),o={storeName:!0});const a=o!==void 0?o.storeName:!1,l=o!==void 0?o.overwrite:!1;if(a){const b=this.original.slice(e,n);Object.defineProperty(this.storedNames,b,{writable:!0,value:!0,enumerable:!0})}const p=this.byStart[e],g=this.byEnd[n];if(p){let b=p;for(;b!==g;){if(b.next!==this.byStart[b.end])throw new Error("Cannot overwrite across a split point");b=b.next,b.edit("",!1)}p.edit(i,a,!l)}else{const b=new re(e,n,"").edit(i,a);g.next=b,b.previous=g}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(n):this.intro=n+this.intro,this}prependRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(n):this.outro=n+this.outro,this}remove(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=n>i.end?this.byStart[i.end]:null;return this}reset(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.reset(),i=n>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Q);if(e!==-1)return this.outro.substr(e+1);let n=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(Q),e!==-1)return i.outro.substr(e+1)+n;n=i.outro+n}if(i.content.length>0){if(e=i.content.lastIndexOf(Q),e!==-1)return i.content.substr(e+1)+n;n=i.content+n}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Q),e!==-1)return i.intro.substr(e+1)+n;n=i.intro+n}}while(i=i.previous);return e=this.intro.lastIndexOf(Q),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length-this.offset){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}let i="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<n&&o.end>=n)return i;o=o.next}if(o&&o.edited&&o.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const a=o;for(;o;){o.intro&&(a!==o||o.start===e)&&(i+=o.intro);const l=o.start<n&&o.end>=n;if(l&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const p=a===o?e-o.start:0,g=l?o.content.length+n-o.end:o.content.length;if(i+=o.content.slice(p,g),o.outro&&(!l||o.end===n)&&(i+=o.outro),l)break;o=o.next}return i}snip(e,n){const i=this.clone();return i.remove(0,e),i.remove(n,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let n=this.lastSearchedChunk,i=n;const o=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===i)return;i=n}}_splitChunk(e,n){if(e.edited&&e.content.length){const o=qe(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}const i=e.split(n);return this.byEnd[n]=e,this.byStart[n]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,n=this.firstChunk;for(;n;)e+=n.toString(),n=n.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,n=0;do n+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const n=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let i=this.lastChunk;do{const o=i.end,a=i.trimEnd(n);if(i.end!==o&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let i=this.firstChunk;do{const o=i.end,a=i.trimStart(n);if(i.end!==o&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,n){function i(a,l){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(p,g)=>g==="$"?"$":g==="&"?a[0]:+g<a.length?a[+g]:`$${g}`):n(...a,a.index,l,a.groups)}f(i,"getReplacement");function o(a,l){let p;const g=[];for(;p=a.exec(l);)g.push(p);return g}if(f(o,"matchAll"),e.global)o(e,this.original).forEach(l=>{if(l.index!=null){const p=i(l,this.original);p!==l[0]&&this.overwrite(l.index,l.index+l[0].length,p)}});else{const a=this.original.match(e);if(a&&a.index!=null){const l=i(a,this.original);l!==a[0]&&this.overwrite(a.index,a.index+a[0].length,l)}}return this}_replaceString(e,n){const{original:i}=this,o=i.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,n),this}replace(e,n){return typeof e=="string"?this._replaceString(e,n):this._replaceRegexp(e,n)}_replaceAllString(e,n){const{original:i}=this,o=e.length;for(let a=i.indexOf(e);a!==-1;a=i.indexOf(e,a+o))i.slice(a,a+o)!==n&&this.overwrite(a,a+o,n);return this}replaceAll(e,n){if(typeof e=="string")return this._replaceAllString(e,n);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,n)}}let E,oe,xe,Z=2<<19;const ze=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(s,e){const n=s.length;let i=0;for(;i<n;)e[i]=s.charCodeAt(i++)}:function(s,e){const n=s.length;let i=0;for(;i<n;){const o=s.charCodeAt(i);e[i++]=(255&o)<<8|o>>>8}},kn="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let L,He,C;function Cn(s,e="@"){L=s,He=e;const n=2*L.length+(2<<18);if(n>Z||!E){for(;n>Z;)Z*=2;oe=new ArrayBuffer(Z),ze(kn,new Uint16Array(oe,16,110)),E=function(l,p,g){var b=new l.Int8Array(g),d=new l.Int16Array(g),r=new l.Int32Array(g),S=new l.Uint8Array(g),O=new l.Uint16Array(g),_=1040;function N(){var t=0,c=0,h=0,u=0,m=0,w=0,y=0;y=_,_=_+10240|0,b[804]=1,b[803]=0,d[399]=0,d[400]=0,r[69]=r[2],b[805]=0,r[68]=0,b[802]=0,r[70]=y+2048,r[71]=y,b[806]=0,t=(r[3]|0)+-2|0,r[72]=t,c=t+(r[66]<<1)|0,r[73]=c;e:for(;;){if(h=t+2|0,r[72]=h,t>>>0>=c>>>0){u=18;break}t:do switch(d[h>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(d[400]|0)&&K(h)|0&&!(A(t+4|0,16,10)|0)&&($(),(b[804]|0)==0)){u=9;break e}else u=17;break}case 105:{K(h)|0&&!(A(t+4|0,26,10)|0)&&B(),u=17;break}case 59:{u=17;break}case 47:switch(d[t+4>>1]|0){case 47:{be();break t}case 42:{de(1);break t}default:{u=16;break e}}default:{u=16;break e}}while(!1);(u|0)==17&&(u=0,r[69]=r[72]),t=r[72]|0,c=r[73]|0}(u|0)==9?(t=r[72]|0,r[69]=t,u=19):(u|0)==16?(b[804]=0,r[72]=t,u=19):(u|0)==18&&(b[802]|0?t=0:(t=h,u=19));do if((u|0)==19){e:for(;;){if(c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){u=92;break}t:do switch(d[c>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(d[400]|0)&&K(c)|0&&!(A(t+4|0,16,10)|0)&&$(),u=91;break}case 105:{K(c)|0&&!(A(t+4|0,26,10)|0)&&B(),u=91;break}case 99:{K(c)|0&&!(A(t+4|0,36,8)|0)&&W(d[t+12>>1]|0)|0&&(b[806]=1),u=91;break}case 40:{h=r[70]|0,t=d[400]|0,u=t&65535,r[h+(u<<3)>>2]=1,c=r[69]|0,d[400]=t+1<<16>>16,r[h+(u<<3)+4>>2]=c,u=91;break}case 41:{if(c=d[400]|0,!(c<<16>>16)){u=36;break e}h=c+-1<<16>>16,d[400]=h,u=d[399]|0,c=u&65535,u<<16>>16&&(r[(r[70]|0)+((h&65535)<<3)>>2]|0)==5&&(c=r[(r[71]|0)+(c+-1<<2)>>2]|0,h=c+4|0,r[h>>2]|0||(r[h>>2]=(r[69]|0)+2),r[c+12>>2]=t+4,d[399]=u+-1<<16>>16),u=91;break}case 123:{u=r[69]|0,h=r[63]|0,t=u;do if((d[u>>1]|0)==41&(h|0)!=0&&(r[h+4>>2]|0)==(u|0))if(c=r[64]|0,r[63]=c,c){r[c+32>>2]=0;break}else{r[59]=0;break}while(!1);h=r[70]|0,c=d[400]|0,u=c&65535,r[h+(u<<3)>>2]=b[806]|0?6:2,d[400]=c+1<<16>>16,r[h+(u<<3)+4>>2]=t,b[806]=0,u=91;break}case 125:{if(t=d[400]|0,!(t<<16>>16)){u=49;break e}h=r[70]|0,u=t+-1<<16>>16,d[400]=u,(r[h+((u&65535)<<3)>>2]|0)==4&&De(),u=91;break}case 39:{R(39),u=91;break}case 34:{R(34),u=91;break}case 47:switch(d[t+4>>1]|0){case 47:{be();break t}case 42:{de(1);break t}default:{t=r[69]|0,c=d[t>>1]|0;n:do if(!(_t(c)|0))c<<16>>16==41?(h=d[400]|0,At(r[(r[70]|0)+((h&65535)<<3)+4>>2]|0)|0||(u=65)):u=64;else switch(c<<16>>16){case 46:if(((d[t+-2>>1]|0)+-48&65535)<10){u=64;break n}else break n;case 43:if((d[t+-2>>1]|0)==43){u=64;break n}else break n;case 45:if((d[t+-2>>1]|0)==45){u=64;break n}else break n;default:break n}while(!1);(u|0)==64&&(h=d[400]|0,u=65);n:do if((u|0)==65){if(u=0,h<<16>>16&&(m=r[70]|0,w=(h&65535)+-1|0,c<<16>>16==102?(r[m+(w<<3)>>2]|0)==1:0)){if((d[t+-2>>1]|0)==111&&I(r[m+(w<<3)+4>>2]|0,44,3)|0)break}else u=69;if((u|0)==69&&c<<16>>16==125&&(u=r[70]|0,h=h&65535,Et(r[u+(h<<3)+4>>2]|0)|0||(r[u+(h<<3)>>2]|0)==6))break;if(!(xt(t)|0)){switch(c<<16>>16){case 0:break n;case 47:{if(b[805]|0)break n;break}default:}if(u=r[65]|0,u|0&&t>>>0>=(r[u>>2]|0)>>>0&&t>>>0<=(r[u+4>>2]|0)>>>0){he(),b[805]=0,u=91;break t}h=r[3]|0;do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t,c=d[t>>1]|0}while(!(ge(c)|0));if(se(c)|0){do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t}while(se(d[t>>1]|0)|0);if(It(t)|0){he(),b[805]=0,u=91;break t}}b[805]=1,u=91;break t}}while(!1);he(),b[805]=0,u=91;break t}}case 96:{h=r[70]|0,c=d[400]|0,u=c&65535,r[h+(u<<3)+4>>2]=r[69],d[400]=c+1<<16>>16,r[h+(u<<3)>>2]=3,De(),u=91;break}default:u=91}while(!1);(u|0)==91&&(u=0,r[69]=r[72]),t=r[72]|0}if((u|0)==36){M(),t=0;break}else if((u|0)==49){M(),t=0;break}else if((u|0)==92){t=b[802]|0?0:(d[399]|d[400])<<16>>16==0;break}}while(!1);return _=y,t|0}f(N,"b");function $(){var t=0,c=0,h=0,u=0,m=0,w=0,y=0,T=0,me=0,we=0,ke=0,Ce=0,x=0,v=0;T=r[72]|0,me=r[65]|0,v=T+12|0,r[72]=v,h=k(1)|0,t=r[72]|0,(t|0)==(v|0)&&!(ie(h)|0)||(x=3);e:do if((x|0)==3){t:do switch(h<<16>>16){case 123:{for(r[72]=t+2,t=k(1)|0,c=r[72]|0;;){if(X(t)|0?(R(t),t=(r[72]|0)+2|0,r[72]=t):(j(t)|0,t=r[72]|0),k(1)|0,t=je(c,t)|0,t<<16>>16==44&&(r[72]=(r[72]|0)+2,t=k(1)|0),t<<16>>16==125){x=15;break}if(v=c,c=r[72]|0,(c|0)==(v|0)){x=12;break}if(c>>>0>(r[73]|0)>>>0){x=14;break}}if((x|0)==12){M();break e}else if((x|0)==14){M();break e}else if((x|0)==15){b[803]=1,r[72]=(r[72]|0)+2;break t}break}case 42:{r[72]=t+2,k(1)|0,v=r[72]|0,je(v,v)|0;break}default:{switch(b[804]=0,h<<16>>16){case 100:{switch(T=t+14|0,r[72]=T,(k(1)|0)<<16>>16){case 97:{c=r[72]|0,!(A(c+2|0,72,8)|0)&&(m=c+10|0,se(d[m>>1]|0)|0)&&(r[72]=m,k(0)|0,x=22);break}case 102:{x=22;break}case 99:{c=r[72]|0,!(A(c+2|0,36,8)|0)&&(u=c+10|0,v=d[u>>1]|0,W(v)|0|v<<16>>16==123)&&(r[72]=u,w=k(1)|0,w<<16>>16!=123)&&(Ce=w,x=31);break}default:}n:do if((x|0)==22&&(y=r[72]|0,(A(y+2|0,80,14)|0)==0)){if(h=y+16|0,c=d[h>>1]|0,!(W(c)|0))switch(c<<16>>16){case 40:case 42:break;default:break n}r[72]=h,c=k(1)|0,c<<16>>16==42&&(r[72]=(r[72]|0)+2,c=k(1)|0),c<<16>>16!=40&&(Ce=c,x=31)}while(!1);if((x|0)==31&&(we=r[72]|0,j(Ce)|0,ke=r[72]|0,ke>>>0>we>>>0)){P(t,T,we,ke),r[72]=(r[72]|0)+-2;break e}P(t,T,0,0),r[72]=t+12;break e}case 97:{r[72]=t+10,k(0)|0,t=r[72]|0,x=35;break}case 102:{x=35;break}case 99:{if(!(A(t+2|0,36,8)|0)&&(c=t+10|0,ge(d[c>>1]|0)|0)){r[72]=c,v=k(1)|0,x=r[72]|0,j(v)|0,v=r[72]|0,P(x,v,x,v),r[72]=(r[72]|0)+-2;break e}t=t+4|0,r[72]=t;break}case 108:case 118:break;default:break e}if((x|0)==35){r[72]=t+16,t=k(1)|0,t<<16>>16==42&&(r[72]=(r[72]|0)+2,t=k(1)|0),x=r[72]|0,j(t)|0,v=r[72]|0,P(x,v,x,v),r[72]=(r[72]|0)+-2;break e}r[72]=t+6,b[804]=0,h=k(1)|0,t=r[72]|0,h=(j(h)|0|32)<<16>>16==123,u=r[72]|0,h&&(r[72]=u+2,v=k(1)|0,t=r[72]|0,j(v)|0);n:for(;c=r[72]|0,(c|0)!=(t|0);){if(P(t,c,t,c),c=k(1)|0,h)switch(c<<16>>16){case 93:case 125:break e;default:}if(t=r[72]|0,c<<16>>16!=44){x=51;break}switch(r[72]=t+2,c=k(1)|0,t=r[72]|0,c<<16>>16){case 91:case 123:{x=51;break n}default:}j(c)|0}if((x|0)==51&&(r[72]=t+-2),!h)break e;r[72]=u+-2;break e}}while(!1);if(v=(k(1)|0)<<16>>16==102,t=r[72]|0,v&&!(A(t+2|0,66,6)|0))for(r[72]=t+8,H(T,k(1)|0,0),t=me|0?me+16|0:240;;){if(t=r[t>>2]|0,!t)break e;r[t+12>>2]=0,r[t+8>>2]=0,t=t+16|0}r[72]=t+-2}while(!1)}f($,"k");function B(){var t=0,c=0,h=0,u=0,m=0,w=0,y=0;m=r[72]|0,h=m+12|0,r[72]=h,u=k(1)|0,c=r[72]|0;e:do if(u<<16>>16!=46)u<<16>>16==115&c>>>0>h>>>0?!(A(c+2|0,56,10)|0)&&(t=c+12|0,W(d[t>>1]|0)|0)?w=14:(c=6,h=0,w=46):(t=u,h=0,w=15);else switch(r[72]=c+2,(k(1)|0)<<16>>16){case 109:{if(t=r[72]|0,A(t+2|0,50,6)|0||(c=r[69]|0,!(pe(c)|0)&&(d[c>>1]|0)==46))break e;fe(m,m,t+8|0,2);break e}case 115:{if(t=r[72]|0,A(t+2|0,56,10)|0||(c=r[69]|0,!(pe(c)|0)&&(d[c>>1]|0)==46))break e;t=t+12|0,w=14;break e}default:break e}while(!1);(w|0)==14&&(r[72]=t,t=k(1)|0,h=1,w=15);e:do if((w|0)==15)switch(t<<16>>16){case 40:{if(c=r[70]|0,y=d[400]|0,u=y&65535,r[c+(u<<3)>>2]=5,t=r[72]|0,d[400]=y+1<<16>>16,r[c+(u<<3)+4>>2]=t,(d[r[69]>>1]|0)==46)break e;switch(r[72]=t+2,c=k(1)|0,fe(m,r[72]|0,0,t),h?(t=r[63]|0,r[t+28>>2]=5):t=r[63]|0,m=r[71]|0,y=d[399]|0,d[399]=y+1<<16>>16,r[m+((y&65535)<<2)>>2]=t,c<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{r[72]=(r[72]|0)+-2;break e}}switch(t=(r[72]|0)+2|0,r[72]=t,(k(1)|0)<<16>>16){case 44:{r[72]=(r[72]|0)+2,k(1)|0,m=r[63]|0,r[m+4>>2]=t,y=r[72]|0,r[m+16>>2]=y,b[m+24>>0]=1,r[72]=y+-2;break e}case 41:{d[400]=(d[400]|0)+-1<<16>>16,y=r[63]|0,r[y+4>>2]=t,r[y+12>>2]=(r[72]|0)+2,b[y+24>>0]=1,d[399]=(d[399]|0)+-1<<16>>16;break e}default:{r[72]=(r[72]|0)+-2;break e}}}case 123:{if(h){c=12,h=1,w=46;break e}if(t=r[72]|0,d[400]|0){r[72]=t+-2;break e}for(;!(t>>>0>=(r[73]|0)>>>0);){if(t=k(1)|0,X(t)|0)R(t);else if(t<<16>>16==125){w=36;break}t=(r[72]|0)+2|0,r[72]=t}if((w|0)==36&&(r[72]=(r[72]|0)+2),y=(k(1)|0)<<16>>16==102,t=r[72]|0,y&&A(t+2|0,66,6)|0){M();break e}if(r[72]=t+8,t=k(1)|0,X(t)|0){H(m,t,0);break e}else{M();break e}}default:{if(h){c=12,h=1,w=46;break e}switch(t<<16>>16){case 42:case 39:case 34:{h=0,w=48;break e}default:{c=6,h=0,w=46;break e}}}}while(!1);(w|0)==46&&(t=r[72]|0,(t|0)==(m+(c<<1)|0)?r[72]=t+-2:w=48);do if((w|0)==48){if(d[400]|0){r[72]=(r[72]|0)+-2;break}for(t=r[73]|0,c=r[72]|0;;){if(c>>>0>=t>>>0){w=55;break}if(u=d[c>>1]|0,X(u)|0){w=53;break}y=c+2|0,r[72]=y,c=y}if((w|0)==53){H(m,u,h);break}else if((w|0)==55){M();break}}while(!1)}f(B,"l");function H(t,c,h){t=t|0,c=c|0,h=h|0;var u=0,m=0;switch(u=(r[72]|0)+2|0,c<<16>>16){case 39:{R(39),m=5;break}case 34:{R(34),m=5;break}default:M()}do if((m|0)==5){if(fe(t,u,r[72]|0,1),h&&(r[(r[63]|0)+28>>2]=4),r[72]=(r[72]|0)+2,c=k(0)|0,h=c<<16>>16==97,h?(u=r[72]|0,A(u+2|0,94,10)|0&&(m=13)):(u=r[72]|0,c<<16>>16==119&&(d[u+2>>1]|0)==105&&(d[u+4>>1]|0)==116&&(d[u+6>>1]|0)==104||(m=13)),(m|0)==13){r[72]=u+-2;break}if(r[72]=u+((h?6:4)<<1),(k(1)|0)<<16>>16!=123){r[72]=u;break}h=r[72]|0,c=h;e:for(;;){switch(r[72]=c+2,c=k(1)|0,c<<16>>16){case 39:{R(39),r[72]=(r[72]|0)+2,c=k(1)|0;break}case 34:{R(34),r[72]=(r[72]|0)+2,c=k(1)|0;break}default:c=j(c)|0}if(c<<16>>16!=58){m=22;break}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{m=26;break e}}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 125:{m=31;break e}case 44:break;default:{m=30;break e}}if(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16==125){m=31;break}c=r[72]|0}if((m|0)==22){r[72]=u;break}else if((m|0)==26){r[72]=u;break}else if((m|0)==30){r[72]=u;break}else if((m|0)==31){m=r[63]|0,r[m+16>>2]=h,r[m+12>>2]=(r[72]|0)+2;break}}while(!1)}f(H,"u");function xt(t){t=t|0;e:do switch(d[t>>1]|0){case 100:switch(d[t+-2>>1]|0){case 105:{t=I(t+-4|0,104,2)|0;break e}case 108:{t=I(t+-4|0,108,3)|0;break e}default:{t=0;break e}}case 101:switch(d[t+-2>>1]|0){case 115:switch(d[t+-4>>1]|0){case 108:{t=G(t+-6|0,101)|0;break e}case 97:{t=G(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=I(t+-4|0,114,4)|0;break e}case 117:{t=I(t+-4|0,122,6)|0;break e}default:{t=0;break e}}case 102:{if((d[t+-2>>1]|0)==111&&(d[t+-4>>1]|0)==101)switch(d[t+-6>>1]|0){case 99:{t=I(t+-8|0,134,6)|0;break e}case 112:{t=I(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=I(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,G(t,105)|0?t=1:t=I(t,158,5)|0;break}case 111:{t=G(t+-2|0,100)|0;break}case 114:{t=I(t+-2|0,168,7)|0;break}case 116:{t=I(t+-2|0,182,4)|0;break}case 119:switch(d[t+-2>>1]|0){case 101:{t=G(t+-4|0,110)|0;break e}case 111:{t=I(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}f(xt,"o");function De(){var t=0,c=0,h=0,u=0;c=r[73]|0,h=r[72]|0;e:for(;;){if(t=h+2|0,h>>>0>=c>>>0){c=10;break}switch(d[t>>1]|0){case 96:{c=7;break e}case 36:{if((d[h+4>>1]|0)==123){c=6;break e}break}case 92:{t=h+4|0;break}default:}h=t}(c|0)==6?(t=h+4|0,r[72]=t,c=r[70]|0,u=d[400]|0,h=u&65535,r[c+(h<<3)>>2]=4,d[400]=u+1<<16>>16,r[c+(h<<3)+4>>2]=t):(c|0)==7?(r[72]=t,h=r[70]|0,u=(d[400]|0)+-1<<16>>16,d[400]=u,(r[h+((u&65535)<<3)>>2]|0)!=3&&M()):(c|0)==10&&(r[72]=t,M())}f(De,"h");function k(t){t=t|0;var c=0,h=0,u=0;h=r[72]|0;e:do{c=d[h>>1]|0;t:do if(c<<16>>16!=47)if(t){if(W(c)|0)break;break e}else{if(se(c)|0)break;break e}else switch(d[h+2>>1]|0){case 47:{be();break t}case 42:{de(t);break t}default:{c=47;break e}}while(!1);u=r[72]|0,h=u+2|0,r[72]=h}while(u>>>0<(r[73]|0)>>>0);return c|0}f(k,"w");function fe(t,c,h,u){t=t|0,c=c|0,h=h|0,u=u|0;var m=0,w=0;w=r[67]|0,r[67]=w+36,m=r[63]|0,r[(m|0?m+32|0:236)>>2]=w,r[64]=m,r[63]=w,r[w+8>>2]=t,(u|0)==2?(t=3,m=h):(m=(u|0)==1,t=m?1:2,m=m?h+2|0:0),r[w+12>>2]=m,r[w+28>>2]=t,r[w>>2]=c,r[w+4>>2]=h,r[w+16>>2]=0,r[w+20>>2]=u,c=(u|0)==1,b[w+24>>0]=c&1,r[w+32>>2]=0,c|(u|0)==2&&(b[803]=1)}f(fe,"d");function R(t){t=t|0;var c=0,h=0,u=0,m=0;for(m=r[73]|0,c=r[72]|0;;){if(u=c+2|0,c>>>0>=m>>>0){c=9;break}if(h=d[u>>1]|0,h<<16>>16==t<<16>>16){c=10;break}if(h<<16>>16==92)h=c+4|0,(d[h>>1]|0)==13?(c=c+6|0,c=(d[c>>1]|0)==10?c:h):c=h;else if(Te(h)|0){c=9;break}else c=u}(c|0)==9?(r[72]=u,M()):(c|0)==10&&(r[72]=u)}f(R,"v");function je(t,c){t=t|0,c=c|0;var h=0,u=0,m=0,w=0;return h=r[72]|0,u=d[h>>1]|0,w=(t|0)==(c|0),m=w?0:t,w=w?0:c,u<<16>>16==97&&(r[72]=h+4,h=k(1)|0,t=r[72]|0,X(h)|0?(R(h),c=(r[72]|0)+2|0,r[72]=c):(j(h)|0,c=r[72]|0),u=k(1)|0,h=r[72]|0),(h|0)!=(t|0)&&P(t,c,m,w),u|0}f(je,"A");function vt(){var t=0,c=0,h=0;h=r[73]|0,c=r[72]|0;e:for(;;){if(t=c+2|0,c>>>0>=h>>>0){c=6;break}switch(d[t>>1]|0){case 13:case 10:{c=6;break e}case 93:{c=7;break e}case 92:{t=c+4|0;break}default:}c=t}return(c|0)==6?(r[72]=t,M(),t=0):(c|0)==7&&(r[72]=t,t=93),t|0}f(vt,"C");function he(){var t=0,c=0,h=0;e:for(;;){if(t=r[72]|0,c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){h=7;break}switch(d[c>>1]|0){case 13:case 10:{h=7;break e}case 47:break e;case 91:{vt()|0;break}case 92:{r[72]=t+4;break}default:}}(h|0)==7&&M()}f(he,"g");function Et(t){switch(t=t|0,d[t>>1]|0){case 62:{t=(d[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=I(t+-2|0,210,4)|0;break}case 121:{t=I(t+-2|0,218,6)|0;break}case 101:{t=I(t+-2|0,230,3)|0;break}default:t=0}return t|0}f(Et,"p");function de(t){t=t|0;var c=0,h=0,u=0,m=0,w=0;for(m=(r[72]|0)+2|0,r[72]=m,h=r[73]|0;c=m+2|0,!(m>>>0>=h>>>0||(u=d[c>>1]|0,!t&&Te(u)|0));){if(u<<16>>16==42&&(d[m+4>>1]|0)==47){w=8;break}m=c}(w|0)==8&&(r[72]=c,c=m+4|0),r[72]=c}f(de,"y");function A(t,c,h){t=t|0,c=c|0,h=h|0;var u=0,m=0;e:do if(!h)t=0;else{for(;u=b[t>>0]|0,m=b[c>>0]|0,u<<24>>24==m<<24>>24;)if(h=h+-1|0,h)t=t+1|0,c=c+1|0;else{t=0;break e}t=(u&255)-(m&255)|0}while(!1);return t|0}f(A,"m");function ie(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:{t=1;break}default:if((t&-8)<<16>>16==40|(t+-58&65535)<6)t=1;else{switch(t<<16>>16){case 91:case 93:case 94:{t=1;break e}default:}t=(t+-123&65535)<4}}while(!1);return t|0}f(ie,"I");function _t(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:break;default:if(!((t+-58&65535)<6|(t+-40&65535)<7&t<<16>>16!=41)){switch(t<<16>>16){case 91:case 94:break e;default:}return t<<16>>16!=125&(t+-123&65535)<4|0}}while(!1);return 1}f(_t,"U");function Ue(t){t=t|0;var c=0;c=d[t>>1]|0;e:do if((c+-9&65535)>=5){switch(c<<16>>16){case 160:case 32:{c=1;break e}default:}if(ie(c)|0)return c<<16>>16!=46|(pe(t)|0)|0;c=0}else c=1;while(!1);return c|0}f(Ue,"x");function Lt(t){t=t|0;var c=0,h=0,u=0,m=0;return h=_,_=_+16|0,u=h,r[u>>2]=0,r[66]=t,c=r[3]|0,m=c+(t<<1)|0,t=m+2|0,d[m>>1]=0,r[u>>2]=t,r[67]=t,r[59]=0,r[63]=0,r[61]=0,r[60]=0,r[65]=0,r[62]=0,_=h,c|0}f(Lt,"S");function P(t,c,h,u){t=t|0,c=c|0,h=h|0,u=u|0;var m=0,w=0;m=r[67]|0,r[67]=m+20,w=r[65]|0,r[(w|0?w+16|0:240)>>2]=m,r[65]=m,r[m>>2]=t,r[m+4>>2]=c,r[m+8>>2]=h,r[m+12>>2]=u,r[m+16>>2]=0,b[803]=1}f(P,"O");function I(t,c,h){t=t|0,c=c|0,h=h|0;var u=0,m=0;return u=t+(0-h<<1)|0,m=u+2|0,t=r[3]|0,m>>>0>=t>>>0&&!(A(m,c,h<<1)|0)?(m|0)==(t|0)?t=1:t=Ue(u)|0:t=0,t|0}f(I,"$");function It(t){switch(t=t|0,d[t>>1]|0){case 107:{t=I(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=I(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}f(It,"j");function G(t,c){t=t|0,c=c|0;var h=0;return h=r[3]|0,h>>>0<=t>>>0&&(d[t>>1]|0)==c<<16>>16?(h|0)==(t|0)?h=1:h=ge(d[t+-2>>1]|0)|0:h=0,h|0}f(G,"B");function ge(t){t=t|0;e:do if((t+-9&65535)<5)t=1;else{switch(t<<16>>16){case 32:case 160:{t=1;break e}default:}t=t<<16>>16!=46&(ie(t)|0)}while(!1);return t|0}f(ge,"E");function be(){var t=0,c=0,h=0;t=r[73]|0,h=r[72]|0;e:for(;c=h+2|0,!(h>>>0>=t>>>0);)switch(d[c>>1]|0){case 13:case 10:break e;default:h=c}r[72]=c}f(be,"P");function j(t){for(t=t|0;!(W(t)|0||ie(t)|0);)if(t=(r[72]|0)+2|0,r[72]=t,t=d[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}f(j,"q");function Ot(){var t=0;switch(t=r[(r[61]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(r[3]|0)>>1}return t|0}f(Ot,"z");function At(t){return t=t|0,!(I(t,196,5)|0)&&!(I(t,44,3)|0)?t=I(t,206,2)|0:t=1,t|0}f(At,"D");function se(t){switch(t=t|0,t<<16>>16){case 160:case 32:case 12:case 11:case 9:{t=1;break}default:t=0}return t|0}f(se,"F");function pe(t){return t=t|0,(d[t>>1]|0)==46&&(d[t+-2>>1]|0)==46?t=(d[t+-4>>1]|0)==46:t=0,t|0}f(pe,"G");function K(t){return t=t|0,(r[3]|0)==(t|0)?t=1:t=Ue(t+-2|0)|0,t|0}f(K,"H");function Nt(){var t=0;return t=r[(r[62]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Nt,"J");function Rt(){var t=0;return t=r[(r[61]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Rt,"K");function Mt(){var t=0;return t=r[(r[62]|0)+8>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Mt,"L");function $t(){var t=0;return t=r[(r[61]|0)+16>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f($t,"M");function Dt(){var t=0;return t=r[(r[61]|0)+4>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Dt,"N");function jt(){var t=0;return t=r[61]|0,t=r[(t|0?t+32|0:236)>>2]|0,r[61]=t,(t|0)!=0|0}f(jt,"Q");function Ut(){var t=0;return t=r[62]|0,t=r[(t|0?t+16|0:240)>>2]|0,r[62]=t,(t|0)!=0|0}f(Ut,"R");function M(){b[802]=1,r[68]=(r[72]|0)-(r[3]|0)>>1,r[72]=(r[73]|0)+2}f(M,"T");function W(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}f(W,"V");function X(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}f(X,"W");function Tt(){return(r[(r[61]|0)+8>>2]|0)-(r[3]|0)>>1|0}f(Tt,"X");function Ft(){return(r[(r[62]|0)+4>>2]|0)-(r[3]|0)>>1|0}f(Ft,"Y");function Te(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}f(Te,"Z");function Bt(){return(r[r[61]>>2]|0)-(r[3]|0)>>1|0}f(Bt,"_");function Pt(){return(r[r[62]>>2]|0)-(r[3]|0)>>1|0}f(Pt,"ee");function Wt(){return S[(r[61]|0)+24>>0]|0|0}f(Wt,"ae");function Jt(t){t=t|0,r[3]=t}f(Jt,"re");function qt(){return r[(r[61]|0)+28>>2]|0}f(qt,"ie");function zt(){return(b[803]|0)!=0|0}f(zt,"se");function Ht(){return(b[804]|0)!=0|0}f(Ht,"fe");function Gt(){return r[68]|0}f(Gt,"te");function Kt(t){return t=t|0,_=t+992+15&-16,992}return f(Kt,"ce"),{su:Kt,ai:$t,e:Gt,ee:Ft,ele:Nt,els:Mt,es:Pt,f:Ht,id:Ot,ie:Dt,ip:Wt,is:Bt,it:qt,ms:zt,p:N,re:Ut,ri:jt,sa:Lt,se:Rt,ses:Jt,ss:Tt}}(typeof self<"u"?self:global,{},oe),xe=E.su(Z-(2<<17))}const i=L.length+1;E.ses(xe),E.sa(i-1),ze(L,new Uint16Array(oe,xe,i)),E.p()||(C=E.e(),U());const o=[],a=[];for(;E.ri();){const l=E.is(),p=E.ie(),g=E.ai(),b=E.id(),d=E.ss(),r=E.se(),S=E.it();let O;E.ip()&&(O=ve(b===-1?l:l+1,L.charCodeAt(b===-1?l-1:l))),o.push({t:S,n:O,s:l,e:p,ss:d,se:r,d:b,a:g})}for(;E.re();){const l=E.es(),p=E.ee(),g=E.els(),b=E.ele(),d=L.charCodeAt(l),r=g>=0?L.charCodeAt(g):-1;a.push({s:l,e:p,ls:g,le:b,n:d===34||d===39?ve(l+1,d):L.slice(l,p),ln:g<0?void 0:r===34||r===39?ve(g+1,r):L.slice(g,b)})}return[o,a,!!E.f(),!!E.ms()]}f(Cn,"parse");function ve(s,e){C=s;let n="",i=C;for(;;){C>=L.length&&U();const o=L.charCodeAt(C);if(o===e)break;o===92?(n+=L.slice(i,C),n+=yn(),i=C):(o===8232||o===8233||Ge(o)&&U(),++C)}return n+=L.slice(i,C++),n}f(ve,"b");function yn(){let s=L.charCodeAt(++C);switch(++C,s){case 110:return`
11
+ `;case 114:return"\r";case 120:return String.fromCharCode(Ee(2));case 117:return function(){const e=L.charCodeAt(C);let n;return e===123?(++C,n=Ee(L.indexOf("}",C)-C),++C,n>1114111&&U()):n=Ee(4),n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(55296+(n>>10),56320+(1023&n)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:L.charCodeAt(C)===10&&++C;case 10:return"";case 56:case 57:U();default:if(s>=48&&s<=55){let e=L.substr(C-1,3).match(/^[0-7]+/)[0],n=parseInt(e,8);return n>255&&(e=e.slice(0,-1),n=parseInt(e,8)),C+=e.length-1,s=L.charCodeAt(C),e==="0"&&s!==56&&s!==57||U(),String.fromCharCode(n)}return Ge(s)?"":String.fromCharCode(s)}}f(yn,"k");function Ee(s){const e=C;let n=0,i=0;for(let o=0;o<s;++o,++C){let a,l=L.charCodeAt(C);if(l!==95){if(l>=97)a=l-97+10;else if(l>=65)a=l-65+10;else{if(!(l>=48&&l<=57))break;a=l-48}if(a>=16)break;i=l,n=16*n+a}else i!==95&&o!==0||U(),i=l}return i!==95&&C-e===s||U(),n}f(Ee,"l");function Ge(s){return s===13||s===10}f(Ge,"u");function U(){throw Object.assign(Error(`Parse error ${He}:${L.slice(0,C).split(`
12
+ `).length}:${C-L.lastIndexOf(`
13
+ `,C-1)}`),{idx:C})}f(U,"o");let _e;typeof WebAssembly<"u"&&(async()=>{const{parse:s,init:e}=await import("./lexer-DQCqS3nf.mjs");await e,_e=s})();const Le=f((s,e)=>_e?_e(s,e):Cn(s,e),"parseEsm"),Sn=f(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return Le(s)[3]}catch{return!0}},"isESM"),Ie="2",xn=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),vn=`.then(${xn})`,ae=f((s,e,n)=>{if(n){if(!e.includes("import("))return}else if(!e.includes("import"))return;const o=Le(e,s)[0].filter(g=>g.d>-1);if(o.length===0)return;const a=new $e(e);for(const g of o)a.appendRight(g.se,vn);const l=a.toString(),p=a.generateMap({source:s,includeContent:!1,hires:"boundary"});return{code:l,map:p}},"transformDynamicImport"),Ke=f(s=>{try{const e=D.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),V=f(()=>{},"noop"),Xe=f(()=>Math.floor(Date.now()/1e8),"getTime"),En=/^(\d+)-([^-]+)$/;class _n extends Map{static{f(this,"FileCache")}cacheDirectory;oldCacheDirectory;diskCacheIndex;diskCacheEntries;constructor(e=rn,n=J.join(nn.tmpdir(),"tsx")){super(),this.cacheDirectory=e,this.oldCacheDirectory=n}getDiskCacheIndex(){if(this.diskCacheIndex)return this.diskCacheIndex;D.mkdirSync(this.cacheDirectory,{recursive:!0});const e=new Map,n=[];for(const i of D.readdirSync(this.cacheDirectory)){const o=En.exec(i);if(!o)continue;const a=Number(o[1]);if(!Number.isSafeInteger(a))continue;const l=o[2],p={time:a,key:l,fileName:i};n.push(p);const g=e.get(l);(!g||g.time<a)&&e.set(l,p)}return this.diskCacheIndex=e,this.diskCacheEntries=n,setImmediate(()=>{this.expireDiskCache().catch(V),this.removeOldCacheDirectory().catch(V)}),e}removeDiskCacheEntry(e){const n=this.diskCacheEntries.indexOf(e);if(n!==-1&&this.diskCacheEntries.splice(n,1),this.diskCacheIndex.get(e.key)===e){let i;for(const o of this.diskCacheEntries)o.key===e.key&&(!i||o.time>i.time)&&(i=o);i?this.diskCacheIndex.set(e.key,i):this.diskCacheIndex.delete(e.key)}}get(e){const n=super.get(e);if(n)return n;const i=this.getDiskCacheIndex();let o=i.get(e);for(;o;){const a=J.join(this.cacheDirectory,o.fileName),l=Ke(a);if(l)return super.set(e,l),l;this.removeDiskCacheEntry(o),D.promises.unlink(a).catch(V),o=i.get(e)}}set(e,n){if(super.set(e,n),n){const i=Xe(),o=`${i}-${e}`,a=this.getDiskCacheIndex(),l={time:i,key:e,fileName:o};D.promises.writeFile(J.join(this.cacheDirectory,o),JSON.stringify(n)).then(()=>{const p=a.get(e);p?.fileName===o&&this.removeDiskCacheEntry(p),a.set(e,l),this.diskCacheEntries.push(l)},V)}return this}async expireDiskCache(){this.getDiskCacheIndex();const e=Xe(),n=[];for(const i of this.diskCacheEntries)e-i.time>7&&n.push(D.promises.unlink(J.join(this.cacheDirectory,i.fileName)).then(()=>this.removeDiskCacheEntry(i),V));await Promise.all(n)}async removeOldCacheDirectory(){try{await D.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in D.promises?await D.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await D.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var z=process.env.TSX_DISABLE_CACHE?new Map:new _n;const Ye=44,Ln=59,Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze=new Uint8Array(64),Ve=new Uint8Array(128);for(let s=0;s<Qe.length;s++){const e=Qe.charCodeAt(s);Ze[s]=e,Ve[e]=s}const Oe=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}};function In(s){const e=new Int32Array(5),n=[];let i=0;do{const o=On(s,i),a=[];let l=!0,p=0;e[0]=0;for(let g=i;g<o;g++){let b;g=ee(s,g,e,0);const d=e[0];d<p&&(l=!1),p=d,et(s,g,o)?(g=ee(s,g,e,1),g=ee(s,g,e,2),g=ee(s,g,e,3),et(s,g,o)?(g=ee(s,g,e,4),b=[d,e[1],e[2],e[3],e[4]]):b=[d,e[1],e[2],e[3]]):b=[d],a.push(b)}l||An(a),n.push(a),i=o+1}while(i<=s.length);return n}f(In,"decode");function On(s,e){const n=s.indexOf(";",e);return n===-1?s.length:n}f(On,"indexOf");function ee(s,e,n,i){let o=0,a=0,l=0;do{const g=s.charCodeAt(e++);l=Ve[g],o|=(l&31)<<a,a+=5}while(l&32);const p=o&1;return o>>>=1,p&&(o=-2147483648|-o),n[i]+=o,e}f(ee,"decodeInteger");function et(s,e,n){return e>=n?!1:s.charCodeAt(e)!==Ye}f(et,"hasMoreVlq");function An(s){s.sort(Nn)}f(An,"sort");function Nn(s,e){return s[0]-e[0]}f(Nn,"sortComparator$1");function Rn(s){const e=new Int32Array(5),n=1024*16,i=n-36,o=new Uint8Array(n),a=o.subarray(0,i);let l=0,p="";for(let g=0;g<s.length;g++){const b=s[g];if(g>0&&(l===n&&(p+=Oe.decode(o),l=0),o[l++]=Ln),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const r=b[d];l>i&&(p+=Oe.decode(a),o.copyWithin(0,i,l),l-=i),d>0&&(o[l++]=Ye),l=te(o,l,e,r,0),r.length!==1&&(l=te(o,l,e,r,1),l=te(o,l,e,r,2),l=te(o,l,e,r,3),r.length!==4&&(l=te(o,l,e,r,4)))}}}return p+Oe.decode(o.subarray(0,l))}f(Rn,"encode");function te(s,e,n,i,o){const a=i[o];let l=a-n[o];n[o]=a,l=l<0?-l<<1|1:l<<1;do{let p=l&31;l>>>=5,l>0&&(p|=32),s[e++]=Ze[p]}while(l>0);return e}f(te,"encodeInteger");const Mn=/^[\w+.-]+:\/\//,$n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Dn=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function jn(s){return Mn.test(s)}f(jn,"isAbsoluteUrl");function Un(s){return s.startsWith("//")}f(Un,"isSchemeRelativeUrl");function tt(s){return s.startsWith("/")}f(tt,"isAbsolutePath");function Tn(s){return s.startsWith("file:")}f(Tn,"isFileUrl");function nt(s){return/^[.?#]/.test(s)}f(nt,"isRelative");function ce(s){const e=$n.exec(s);return rt(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}f(ce,"parseAbsoluteUrl");function Fn(s){const e=Dn.exec(s),n=e[2];return rt("file:","",e[1]||"","",tt(n)?n:"/"+n,e[3]||"",e[4]||"")}f(Fn,"parseFileUrl");function rt(s,e,n,i,o,a,l){return{scheme:s,user:e,host:n,port:i,path:o,query:a,hash:l,type:7}}f(rt,"makeUrl");function it(s){if(Un(s)){const n=ce("http:"+s);return n.scheme="",n.type=6,n}if(tt(s)){const n=ce("http://foo.com"+s);return n.scheme="",n.host="",n.type=5,n}if(Tn(s))return Fn(s);if(jn(s))return ce(s);const e=ce("http://foo.com/"+s);return e.scheme="",e.host="",e.type=s?s.startsWith("?")?3:s.startsWith("#")?2:4:1,e}f(it,"parseUrl");function Bn(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(Bn,"stripPathFilename");function Pn(s,e){st(e,e.type),s.path==="/"?s.path=e.path:s.path=Bn(e.path)+s.path}f(Pn,"mergePaths");function st(s,e){const n=e<=4,i=s.path.split("/");let o=1,a=0,l=!1;for(let g=1;g<i.length;g++){const b=i[g];if(!b){l=!0;continue}if(l=!1,b!=="."){if(b===".."){a?(l=!0,a--,o--):n&&(i[o++]=b);continue}i[o++]=b,a++}}let p="";for(let g=1;g<o;g++)p+="/"+i[g];(!p||l&&!p.endsWith("/.."))&&(p+="/"),s.path=p}f(st,"normalizePath");function Wn(s,e){if(!s&&!e)return"";const n=it(s);let i=n.type;if(e&&i!==7){const a=it(e),l=a.type;switch(i){case 1:n.hash=a.hash;case 2:n.query=a.query;case 3:case 4:Pn(n,a);case 5:n.user=a.user,n.host=a.host,n.port=a.port;case 6:n.scheme=a.scheme}l>i&&(i=l)}st(n,i);const o=n.query+n.hash;switch(i){case 2:case 3:return o;case 4:{const a=n.path.slice(1);return a?nt(e||s)&&!nt(a)?"./"+a+o:a+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}f(Wn,"resolve$1");function ot(s,e){return e&&!e.endsWith("/")&&(e+="/"),Wn(s,e)}f(ot,"resolve");function Jn(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(Jn,"stripFilename");const F=0;function qn(s,e){const n=at(s,0);if(n===s.length)return s;e||(s=s.slice());for(let i=n;i<s.length;i=at(s,i+1))s[i]=Hn(s[i],e);return s}f(qn,"maybeSort");function at(s,e){for(let n=e;n<s.length;n++)if(!zn(s[n]))return n;return s.length}f(at,"nextUnsortedSegmentLine");function zn(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}f(zn,"isSorted");function Hn(s,e){return e||(s=s.slice()),s.sort(Gn)}f(Hn,"sortSegments");function Gn(s,e){return s[F]-e[F]}f(Gn,"sortComparator");let le=!1;function Kn(s,e,n,i){for(;n<=i;){const o=n+(i-n>>1),a=s[o][F]-e;if(a===0)return le=!0,o;a<0?n=o+1:i=o-1}return le=!1,n-1}f(Kn,"binarySearch");function Xn(s,e,n){for(let i=n-1;i>=0&&s[i][F]===e;n=i--);return n}f(Xn,"lowerBound");function Yn(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}f(Yn,"memoizedState");function Qn(s,e,n,i){const{lastKey:o,lastNeedle:a,lastIndex:l}=n;let p=0,g=s.length-1;if(i===o){if(e===a)return le=l!==-1&&s[l][F]===e,l;e>=a?p=l===-1?0:l:g=l}return n.lastKey=i,n.lastNeedle=e,n.lastIndex=Kn(s,e,p,g)}f(Qn,"memoizedBinarySearch");class ct{static{f(this,"TraceMap")}constructor(e,n){const i=typeof e=="string";if(!i&&e._decodedMemo)return e;const o=i?JSON.parse(e):e,{version:a,file:l,names:p,sourceRoot:g,sources:b,sourcesContent:d}=o;this.version=a,this.file=l,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const r=ot(g||"",Jn(n));this.resolvedSources=b.map(O=>ot(O||"",r));const{mappings:S}=o;typeof S=="string"?(this._encoded=S,this._decoded=void 0):(this._encoded=void 0,this._decoded=qn(S,i)),this._decodedMemo=Yn(),this._bySources=void 0,this._bySourceMemos=void 0}}function zr(s){return s}f(zr,"cast$2");function lt(s){var e;return(e=s)._decoded||(e._decoded=In(s._encoded))}f(lt,"decodedMappings");function Zn(s,e,n){const i=lt(s);if(e>=i.length)return null;const o=i[e],a=Vn(o,s._decodedMemo,e,n);return a===-1?null:o[a]}f(Zn,"traceSegment");function Vn(s,e,n,i,o){let a=Qn(s,i,e,n);return le&&(a=Xn(s,i,a)),a===-1||a===s.length?-1:a}f(Vn,"traceSegmentInternal");class Ae{static{f(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function Hr(s){return s}f(Hr,"cast$1");function ut(s,e){return s._indexes[e]}f(ut,"get");function ne(s,e){const n=ut(s,e);if(n!==void 0)return n;const{array:i,_indexes:o}=s,a=i.push(e);return o[e]=a-1}f(ne,"put");function er(s,e){const n=ut(s,e);if(n===void 0)return;const{array:i,_indexes:o}=s;for(let a=n+1;a<i.length;a++){const l=i[a];i[a-1]=l,o[l]--}o[e]=void 0,i.pop()}f(er,"remove");const tr=0,nr=1,rr=2,ir=3,sr=4,ft=-1;class or{static{f(this,"GenMapping")}constructor({file:e,sourceRoot:n}={}){this._names=new Ae,this._sources=new Ae,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new Ae}}function Gr(s){return s}f(Gr,"cast");const ar=f((s,e,n,i,o,a,l,p)=>fr(!0,s,e,n,i,o,a,l),"maybeAddSegment");function cr(s,e,n){const{_sources:i,_sourcesContent:o}=s,a=ne(i,e);o[a]=n}f(cr,"setSourceContent");function lr(s,e,n=!0){const{_sources:i,_sourcesContent:o,_ignoreList:a}=s,l=ne(i,e);l===o.length&&(o[l]=null),n?ne(a,l):er(a,l)}f(lr,"setIgnore");function ht(s){const{_mappings:e,_sources:n,_sourcesContent:i,_names:o,_ignoreList:a}=s;return gr(e),{version:3,file:s.file||void 0,names:o.array,sourceRoot:s.sourceRoot||void 0,sources:n.array,sourcesContent:i,mappings:e,ignoreList:a.array}}f(ht,"toDecodedMap");function ur(s){const e=ht(s);return Object.assign(Object.assign({},e),{mappings:Rn(e.mappings)})}f(ur,"toEncodedMap");function fr(s,e,n,i,o,a,l,p,g){const{_mappings:b,_sources:d,_sourcesContent:r,_names:S}=e,O=hr(b,n),_=dr(O,i);if(!o)return br(O,_)?void 0:dt(O,_,[i]);const N=ne(d,o),$=p?ne(S,p):ft;if(N===r.length&&(r[N]=null),!pr(O,_,N,a,l,$))return dt(O,_,p?[i,N,a,l,$]:[i,N,a,l])}f(fr,"addSegmentInternal");function hr(s,e){for(let n=s.length;n<=e;n++)s[n]=[];return s[e]}f(hr,"getLine");function dr(s,e){let n=s.length;for(let i=n-1;i>=0;n=i--){const o=s[i];if(e>=o[tr])break}return n}f(dr,"getColumnIndex");function dt(s,e,n){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=n}f(dt,"insert");function gr(s){const{length:e}=s;let n=e;for(let i=n-1;i>=0&&!(s[i].length>0);n=i,i--);n<e&&(s.length=n)}f(gr,"removeEmptyFinalLines");function br(s,e){return e===0?!0:s[e-1].length===1}f(br,"skipSourceless");function pr(s,e,n,i,o,a){if(e===0)return!1;const l=s[e-1];return l.length===1?!1:n===l[nr]&&i===l[rr]&&o===l[ir]&&a===(l.length===5?l[sr]:ft)}f(pr,"skipSource");const gt=bt("",-1,-1,"",null,!1),mr=[];function bt(s,e,n,i,o,a){return{source:s,line:e,column:n,name:i,content:o,ignore:a}}f(bt,"SegmentObject");function pt(s,e,n,i,o){return{map:s,sources:e,source:n,content:i,ignore:o}}f(pt,"Source");function mt(s,e){return pt(s,e,"",null,!1)}f(mt,"MapSource");function wr(s,e,n){return pt(null,mr,s,e,n)}f(wr,"OriginalSource");function kr(s){const e=new or({file:s.map.file}),{sources:n,map:i}=s,o=i.names,a=lt(i);for(let l=0;l<a.length;l++){const p=a[l];for(let g=0;g<p.length;g++){const b=p[g],d=b[0];let r=gt;if(b.length!==1){const H=n[b[1]];if(r=wt(H,b[2],b[3],b.length===5?o[b[4]]:""),r==null)continue}const{column:S,line:O,name:_,content:N,source:$,ignore:B}=r;ar(e,l,d,$,O,S,_),$&&N!=null&&cr(e,$,N),B&&lr(e,$,!0)}}return e}f(kr,"traceMappings");function wt(s,e,n,i){if(!s.map)return bt(s.source,e,n,i,s.content,s.ignore);const o=Zn(s.map,e,n);return o==null?null:o.length===1?gt:wt(s.sources[o[1]],o[2],o[3],o.length===5?s.map.names[o[4]]:i)}f(wt,"originalPositionFor");function Cr(s){return Array.isArray(s)?s:[s]}f(Cr,"asArray");function yr(s,e){const n=Cr(s).map(a=>new ct(a,"")),i=n.pop();for(let a=0;a<n.length;a++)if(n[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
14
+ Did you specify these with the most recent transformation maps first?`);let o=kt(i,e,"",0);for(let a=n.length-1;a>=0;a--)o=mt(n[a],[o]);return o}f(yr,"buildSourceMapTree");function kt(s,e,n,i){const{resolvedSources:o,sourcesContent:a,ignoreList:l}=s,p=i+1,g=o.map((b,d)=>{const r={importer:n,depth:p,source:b||"",content:void 0,ignore:void 0},S=e(r.source,r),{source:O,content:_,ignore:N}=r;if(S)return kt(new ct(S,O),e,O,p);const $=_!==void 0?_:a?a[d]:null,B=N!==void 0?N:l?l.includes(d):!1;return wr(O,$,B)});return mt(s,g)}f(kt,"build");class Sr{static{f(this,"SourceMap")}constructor(e,n){const i=n.decodedMappings?ht(e):ur(e);this.version=i.version,this.file=i.file,this.mappings=i.mappings,this.names=i.names,this.ignoreList=i.ignoreList,this.sourceRoot=i.sourceRoot,this.sources=i.sources,n.excludeContent||(this.sourcesContent=i.sourcesContent)}toString(){return JSON.stringify(this)}}function Ct(s,e,n){const i={excludeContent:!!n,decodedMappings:!1},o=yr(s,e);return new Sr(kr(o),i)}f(Ct,"remapping");const yt=f((s,e,n)=>{const i=[],o={code:e};for(const a of n){const l=a(s,o.code);l&&(Object.assign(o,l),i.unshift(l.map))}return{...o,map:Ct(i,()=>null)}},"applyTransformersSync"),xr=f(async(s,e,n)=>{const i=[],o={code:e};for(const a of n){const l=await a(s,o.code);l&&(Object.assign(o,l),i.unshift(l.map))}return{...o,map:Ct(i,()=>null)}},"applyTransformers"),vr=f(s=>{const e=[];let n=!1,i=!0;for(let o=0;o<s.length;o+=1){let a=s[o];if(a==="\\"&&n){if(o+1===s.length)return e;o+=1,a=s[o]}else if(a===" "&&!n){i=!0;continue}else if(a==='"'){n=!n;continue}i?(e.push(a),i=!1):e[e.length-1]+=a}return e},"tokenizeNodeOptionsEnv"),St=f((s,e,n)=>{for(let i=0;i<e.length;i+=1){const o=e[i];if(o.length<=1||o[0]!=="-")continue;const a=o[1]==="-"?o.indexOf("="):-1;let l=a===-1?o:o.slice(0,a);l.includes("_",2)&&(l=l.slice(0,2)+l.slice(2).replaceAll("_","-"));for(const p of s.forms){const[g,b]=p;if(l!==g||(b===3||b===5)&&a===-1)continue;const d=b===4||b===5,r=b>=3?0:b;let S=d?p[2]:"";r===0&&!d&&(a===-1?(i+=1,S=e[i]??"",S[0]==="\\"&&S[1]==="-"&&(S=S.slice(1))):S=o.slice(a+1)),n=s.fold(S,n,r);break}}return n},"scanSource"),Er=f(s=>{let e=s.init();const n=process.env.NODE_OPTIONS;return n&&(e=St(s,vr(n),e)),e=St(s,process.execArgv,e),e},"getOptionValue"),_r=f((s,e,n)=>n===1,"setByEffect"),Lr=f((s,e)=>({forms:e,init:f(()=>s,"init"),fold:_r}),"booleanFlag"),Ir=Lr(!1,[["--inspect-brk-node",1],["--inspect-brk",1],["--inspect-wait",1],["--inspect",1],["--no-inspect",2]]),Or=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),Ar=Er(Ir),Ne={...Or,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||Ar,minifyWhitespace:!0,keepNames:!0},Re=f(s=>{const e=s.sourcefile;if(e){const n=J.extname(e.split("?")[0]);n?n===".cts"||n===".mts"?s.sourcefile=`${e.slice(0,-3)}ts`:n===".mjs"&&(s.sourcefile=`${e.slice(0,-3)}js`):s.sourcefile+=".js"}return n=>(n.map&&(s.sourcefile!==e&&(n.map=n.map.replace(JSON.stringify(s.sourcefile),JSON.stringify(e))),n.map=JSON.parse(n.map)),n)},"patchOptions"),Me=f(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),Nr=f((s,e)=>({...en(tn)?{dirname:J.dirname(s),filename:s}:{},url:e}),"getImportMeta"),Rr=f((s,e,n)=>{let i,o,a;if(e.startsWith("file://")){i=e;const r=new URL(e);o=Yt(r)}else[o,a]=e.split("?"),i=Qt(o)+(a?`?${a}`:"");const{cjsBanner:l,...p}=n??{},g={...Ne,format:"cjs",sourcefile:o,banner:`__filename=${JSON.stringify(o)};(()=>{${l??""}`,footer:"})()",platform:"node",...p};s.includes("import.meta")&&g.format==="cjs"&&!o.endsWith(".cjs")&&!o.endsWith(".cts")&&(g.define={...g.define,"import.meta":JSON.stringify(Nr(o,i))});const b=Se([s,i,JSON.stringify(g),ye,Ie].join("-"));let d=z.get(b);return d||(d=yt(e,s,[(r,S)=>{const O=Re(g);let _;try{_=Fe(S,g)}catch(N){throw Me(N)}return O(_)},(r,S)=>ae(r,S,!0)]),z.set(b,d)),d},"transformSync"),Mr=f(async(s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=Se([s,JSON.stringify(i),ye,Ie].join("-"));let a=z.get(o);return a||(a=await xr(e,s,[async(l,p)=>{const g=Re(i);let b;try{b=await Zt(p,i)}catch(d){throw Me(d)}return g(b)},(l,p)=>ae(l,p,!0)]),z.set(o,a)),a},"transform"),$r=f((s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=Se([s,JSON.stringify(i),ye,Ie].join("-"));let a=z.get(o);return a||(a=yt(e,s,[(l,p)=>{const g=Re(i);let b;try{b=Fe(p,i)}catch(d){throw Me(d)}return g(b)},(l,p)=>ae(l,p,!0)]),z.set(o,a)),a},"transformEsmSync");export{Rr as a,ae as b,$r as c,Sn as i,Le as p,Ke as r,Mr as t};