@visulima/vis 2.0.1 → 3.0.0

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 (158) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/LICENSE.md +850 -128
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +1 -1
  5. package/dist/packem_chunks/CONFIG_FILES.js +3 -3
  6. package/dist/packem_chunks/bloom-status.js +1 -1
  7. package/dist/packem_chunks/bloom-sync.js +1 -1
  8. package/dist/packem_chunks/catalog.js +67 -67
  9. package/dist/packem_chunks/cli-exec.js +1 -1
  10. package/dist/packem_chunks/cli-main.js +150 -148
  11. package/dist/packem_chunks/dispatch.js +1 -1
  12. package/dist/packem_chunks/doctor-probe.js +1 -1
  13. package/dist/packem_chunks/fix.js +3 -3
  14. package/dist/packem_chunks/handler.js +1 -1
  15. package/dist/packem_chunks/handler10.js +3 -3
  16. package/dist/packem_chunks/handler11.js +1 -1
  17. package/dist/packem_chunks/handler12.js +3 -3
  18. package/dist/packem_chunks/handler13.js +1 -1
  19. package/dist/packem_chunks/handler14.js +1 -1
  20. package/dist/packem_chunks/handler15.js +1 -1
  21. package/dist/packem_chunks/handler16.js +1 -1
  22. package/dist/packem_chunks/handler17.js +1 -1
  23. package/dist/packem_chunks/handler18.js +1 -1
  24. package/dist/packem_chunks/handler19.js +1 -1
  25. package/dist/packem_chunks/handler2.js +1 -1
  26. package/dist/packem_chunks/handler20.js +2 -2
  27. package/dist/packem_chunks/handler21.js +1 -1
  28. package/dist/packem_chunks/handler22.js +1 -1
  29. package/dist/packem_chunks/handler23.js +1 -1
  30. package/dist/packem_chunks/handler24.js +1 -1
  31. package/dist/packem_chunks/handler26.js +1 -1
  32. package/dist/packem_chunks/handler27.js +1 -1
  33. package/dist/packem_chunks/handler28.js +1 -1
  34. package/dist/packem_chunks/handler29.js +1 -1
  35. package/dist/packem_chunks/handler3.js +1 -1
  36. package/dist/packem_chunks/handler30.js +1 -1
  37. package/dist/packem_chunks/handler4.js +4 -4
  38. package/dist/packem_chunks/handler5.js +1 -1
  39. package/dist/packem_chunks/handler50.js +5 -5
  40. package/dist/packem_chunks/handler51.js +2 -2
  41. package/dist/packem_chunks/handler53.js +1 -1
  42. package/dist/packem_chunks/handler54.js +2 -2
  43. package/dist/packem_chunks/handler55.js +1 -1
  44. package/dist/packem_chunks/handler58.js +4 -4
  45. package/dist/packem_chunks/handler59.js +1 -1
  46. package/dist/packem_chunks/handler6.js +7 -7
  47. package/dist/packem_chunks/handler60.js +2 -2
  48. package/dist/packem_chunks/handler61.js +13 -13
  49. package/dist/packem_chunks/handler62.js +3 -3
  50. package/dist/packem_chunks/handler63.js +2 -2
  51. package/dist/packem_chunks/handler64.js +4 -4
  52. package/dist/packem_chunks/handler66.js +1 -1
  53. package/dist/packem_chunks/handler67.js +13 -13
  54. package/dist/packem_chunks/handler68.js +1 -1
  55. package/dist/packem_chunks/handler69.js +15 -15
  56. package/dist/packem_chunks/handler7.js +1 -1
  57. package/dist/packem_chunks/handler70.js +5 -5
  58. package/dist/packem_chunks/handler71.js +1 -1
  59. package/dist/packem_chunks/handler72.js +23 -23
  60. package/dist/packem_chunks/handler73.js +5 -5
  61. package/dist/packem_chunks/handler74.js +24 -24
  62. package/dist/packem_chunks/handler75.js +2 -2
  63. package/dist/packem_chunks/handler76.js +5 -5
  64. package/dist/packem_chunks/handler77.js +18 -18
  65. package/dist/packem_chunks/handler78.js +25 -25
  66. package/dist/packem_chunks/handler8.js +1 -1
  67. package/dist/packem_chunks/handler9.js +1 -1
  68. package/dist/packem_chunks/heal-accept.js +2 -2
  69. package/dist/packem_chunks/heal.js +4 -4
  70. package/dist/packem_chunks/help-command.js +46 -46
  71. package/dist/packem_chunks/index2.js +6 -4
  72. package/dist/packem_chunks/index3.js +3 -3
  73. package/dist/packem_chunks/index4.js +49 -49
  74. package/dist/packem_chunks/keys-refresh.js +1 -1
  75. package/dist/packem_chunks/lean.js +2 -2
  76. package/dist/packem_chunks/list.js +1 -1
  77. package/dist/packem_chunks/loader.js +1 -1
  78. package/dist/packem_chunks/orchestrator.js +2 -2
  79. package/dist/packem_chunks/prompts.js +1 -1
  80. package/dist/packem_chunks/prune.js +1 -1
  81. package/dist/packem_chunks/registry.js +10 -10
  82. package/dist/packem_chunks/status.js +1 -1
  83. package/dist/packem_chunks/sync.js +1 -1
  84. package/dist/packem_chunks/sync2.js +1 -1
  85. package/dist/packem_chunks/tripwire.js +1 -1
  86. package/dist/packem_chunks/ts-loader.js +6 -6
  87. package/dist/packem_chunks/verify-lockfile.js +1 -1
  88. package/dist/packem_shared/{advisories-BGeuHJQg.js → advisories-DsXRmIA5.js} +1 -1
  89. package/dist/packem_shared/{affected-selection-B85ND6JV.js → affected-selection-BE6VFCDV.js} +1 -1
  90. package/dist/packem_shared/{affected-shas-BWRRAB47.js → affected-shas-BKEu4RZc.js} +1 -1
  91. package/dist/packem_shared/ai-analysis-DikAj6rX.js +68 -0
  92. package/dist/packem_shared/{ai-fix-BgBU0TOz.js → ai-fix-bfWo0cZX.js} +4 -4
  93. package/dist/packem_shared/{augment-HVeX6LpU.js → augment-BkJxi_GW.js} +1 -1
  94. package/dist/packem_shared/{bin-DKod8Iqo.js → bin-B-TytgzW.js} +1 -1
  95. package/dist/packem_shared/{build-scripts-CM8M1xcG.js → build-scripts-DWypBQ--.js} +1 -1
  96. package/dist/packem_shared/{command-runtime-BVi4lL8k.js → command-runtime-DQ7ZpLYL.js} +1 -1
  97. package/dist/packem_shared/{cyclonedx-y7VLI-1d.js → cyclonedx-DLBi65MV.js} +3 -3
  98. package/dist/packem_shared/dependency-scan-ZLOuLkGN.js +1 -0
  99. package/dist/packem_shared/{docker-D1LStSlH.js → docker-B4zAZCZG.js} +28 -28
  100. package/dist/packem_shared/{en-BxrK-n-J.js → en-BDYMmM2_.js} +13 -13
  101. package/dist/packem_shared/{failure-log-ChuFC-8f.js → failure-log-DyhWPqno.js} +2 -2
  102. package/dist/packem_shared/glob-BUjyjdE8-Dp_QcayW.js +1 -0
  103. package/dist/packem_shared/index-BLtnel38.js +35 -0
  104. package/dist/packem_shared/index-CuKDxOCI.js +1 -0
  105. package/dist/packem_shared/index-tNFGWxc0.js +39 -0
  106. package/dist/packem_shared/index.server-CusjRLCh.js +2 -0
  107. package/dist/packem_shared/{lifecycle-Db0qh6vR.js → lifecycle-KY9umOg6.js} +1 -1
  108. package/dist/packem_shared/{lockfile-CDQ0n4P5.js → lockfile-YAuZf1gh.js} +1 -1
  109. package/dist/packem_shared/{manifests-Da_no4ZH.js → manifests-BwTn_1ad.js} +1 -1
  110. package/dist/packem_shared/{min-release-age-V6L6dpiP.js → min-release-age-6avfn81h.js} +1 -1
  111. package/dist/packem_shared/missing-package-json-Cl0vdz6K.js +1 -0
  112. package/dist/packem_shared/{native-config-sync-C0pUePad.js → native-config-sync-CHMCJx7H.js} +7 -7
  113. package/dist/packem_shared/{osv-bloom-DNFpvSSO.js → osv-bloom-DdqDnLCt.js} +2 -2
  114. package/dist/packem_shared/package-version-BNRJ3o9C.js +4 -0
  115. package/dist/packem_shared/packument-B9-WqReu.js +1 -0
  116. package/dist/packem_shared/pm-runner-DRybtzOV.js +1 -0
  117. package/dist/packem_shared/{project-name-filter-u2Q7YpQH.js → project-name-filter-Dw0fC6IO.js} +1 -1
  118. package/dist/packem_shared/{provenance-9OT8sTqn.js → provenance-CLxuqCfL.js} +1 -1
  119. package/dist/packem_shared/{readJsonSync-BnWiH5-R-BpnwAB0Z.js → readJsonSync-DweZd5ZA-CtrDlqpb.js} +1 -1
  120. package/dist/packem_shared/{registry-keys-CYHd7qU2.js → registry-keys-cTN24144.js} +1 -1
  121. package/dist/packem_shared/{resolve-explicit-DC3XssJa.js → resolve-explicit-Uw6WQl9R.js} +1 -1
  122. package/dist/packem_shared/{resolve-runtime-f5l4ODsH.js → resolve-runtime-DztanwkZ.js} +1 -1
  123. package/dist/packem_shared/{run-file-zB4ACnUy.js → run-file-CaE5_xBY.js} +1 -1
  124. package/dist/packem_shared/{runtime-check-CWvAfu5u.js → runtime-check-C32yE57I.js} +1 -1
  125. package/dist/packem_shared/{s1ngularity-DsmC71xt.js → s1ngularity-BIYhg82u.js} +1 -1
  126. package/dist/packem_shared/scan-progress-DWfY4zkp.js +2 -0
  127. package/dist/packem_shared/{selectors-CtxnIT4X.js → selectors-D2j4M9Ul.js} +1 -1
  128. package/dist/packem_shared/{signatures-Dwx5fD4g.js → signatures-C8iQ5fUq.js} +1 -1
  129. package/dist/packem_shared/target-merge-DLxJTcxn.js +11 -0
  130. package/dist/packem_shared/{target-options-BO4Uxt0k.js → target-options-3t4-2F-F.js} +1 -1
  131. package/dist/packem_shared/{toolchain-BY8lJaSN.js → toolchain-BPzbahcQ.js} +1 -1
  132. package/dist/packem_shared/{typosquats-BUGgotNu.js → typosquats-BWrmhh36.js} +1 -1
  133. package/dist/packem_shared/{use-measured-height-BLZt9dW2.js → use-measured-height-BwAwGHjw.js} +1 -1
  134. package/dist/packem_shared/verify-CzUPT6Uk.js +1 -0
  135. package/dist/packem_shared/vis-update-app-D6Wq8ZHM.js +1 -0
  136. package/dist/packem_shared/vis-user-error-CfM4_ORo.js +30 -0
  137. package/dist/packem_shared/{watch-CGrUW_JD.js → watch-D_oAxW_Z.js} +1 -1
  138. package/dist/packem_shared/{watch-loop-DIwSMjlA.js → watch-loop-BrjblOz5.js} +4 -4
  139. package/dist/runtime/preload.js +1 -1
  140. package/index.d.ts +204 -204
  141. package/index.js +52 -52
  142. package/package.json +16 -16
  143. package/dist/packem_shared/ai-analysis-oNMAj1wd.js +0 -68
  144. package/dist/packem_shared/dependency-scan-BAzKpXdW.js +0 -1
  145. package/dist/packem_shared/glob-BUjyjdE8-BSrdzgma.js +0 -1
  146. package/dist/packem_shared/index-BJw7gKD1.js +0 -1
  147. package/dist/packem_shared/index-DND6ptxQ.js +0 -35
  148. package/dist/packem_shared/index.server-qvZ-cy29.js +0 -2
  149. package/dist/packem_shared/missing-package-json-Jw8IEHct.js +0 -1
  150. package/dist/packem_shared/package-version-DjHDww_5.js +0 -4
  151. package/dist/packem_shared/packument-N3EWbZpL.js +0 -1
  152. package/dist/packem_shared/pm-runner-Bssje5qH.js +0 -1
  153. package/dist/packem_shared/public-api-WqUCiyIe.js +0 -131
  154. package/dist/packem_shared/scan-progress-Ch8s3Uwl.js +0 -2
  155. package/dist/packem_shared/target-merge-b7bE1AEx.js +0 -11
  156. package/dist/packem_shared/verify-B0ztxKMa.js +0 -1
  157. package/dist/packem_shared/vis-update-app-D1gLJB1O.js +0 -1
  158. package/dist/packem_shared/vis-user-error-DjFv8uxy.js +0 -28
@@ -1,35 +0,0 @@
1
- import{createRequire as hr}from"node:module";import{E as it}from"./public-api-WqUCiyIe.js";let Er;const Cr=u=>(Er??=hr(import.meta.url))(u),Pu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fr=u=>{if(typeof Pu<"u"&&Pu.versions&&Pu.versions.node){const[e,t]=Pu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Pu.getBuiltinModule(u)}return Cr(u)},{createRequire:I}=Fr("node:module"),ut=0,gr=4,dr=Symbol("findUpStop"),wa=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,mr=/^[A-Z]:\//i,Ou=(u="")=>u&&u.replaceAll("\\","/").replace(mr,e=>e.toUpperCase()),yr=/^[/\\]{2}/,Br=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Mt=/^[A-Z]:$/i,at=/^\/([A-Z]:)?$/i,br=/.(\.[^./]+)$/,$r=/^[/\\]|^[a-z]:[/\\]/i,vr=/\/$/,wr=()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/",xa="/",jt=(u,e)=>{let t="",s=0,n=-1,r=0,o;for(let i=0;i<=u.length;++i){if(i<u.length)o=u[i];else{if(o==="/")break;o="/"}if(o==="/"){if(!(n===i-1||r===1))if(r===2){if(t.length<2||s!==2||!t.endsWith(".")||t.at(-2)!=="."){if(t.length>2){const l=t.lastIndexOf("/");l===-1?(t="",s=0):(t=t.slice(0,l),s=t.length-1-t.lastIndexOf("/")),n=i,r=0;continue}else if(t.length>0){t="",s=0,n=i,r=0;continue}}e&&(t+=t.length>0?"/..":"..",s=2)}else t.length>0?t+=`/${u.slice(n+1,i)}`:t=u.slice(n+1,i),s=i-n-1;n=i,r=0}else o==="."&&r!==-1?++r:r=-1}return t},Nu=u=>Br.test(u),Se=function(u){if(u.length===0)return".";u=Ou(u);const e=yr.exec(u),t=Nu(u),s=u.at(-1)==="/";return u=jt(u,!t),u.length===0?t?"/":s?"./":".":(s&&(u+="/"),Mt.test(u)&&(u+="/"),e?t?`//${u}`:`//./${u}`:t&&!Nu(u)?`/${u}`:u)},xr=(...u)=>{let e="";for(const t of u)if(t)if(e.length>0){const s=e.at(-1)==="/",n=t[0]==="/";s&&n?e+=t.slice(1):e+=s||n?t:`/${t}`}else e+=t;return Se(e)},Lu=function(...u){u=u.map(s=>Ou(s));let e="",t=!1;for(let s=u.length-1;s>=-1&&!t;s--){const n=s>=0?u[s]:wr();!n||n.length===0||(e=`${n}/${e}`,t=Nu(n))}return e=jt(e,!t),t&&!Nu(e)?`/${e}`:e.length>0?e:"."},Sa=function(u){return Ou(u)},Sr=function(u){return br.exec(Ou(u))?.[1]??""},_a=function(u,e){const t=Lu(u).replace(at,"$1").split("/"),s=Lu(e).replace(at,"$1").split("/");if(s[0][1]===":"&&t[0][1]===":"&&t[0]!==s[0])return s.join("/");const n=Math.min(t.length,s.length);let r=0;for(;r<n&&t[r]===s[r];)r+=1;const o=t.length-r;return[...Array.from({length:o}).fill(".."),...s.slice(r)].join("/")},et=u=>{const e=Ou(u).replace(vr,""),t=e.lastIndexOf("/");if(t===-1)return Nu(u)?"/":".";const s=e.slice(0,t);return Mt.test(s)?`${s}/`:s||(Nu(u)?"/":".")},Gt=(u,e)=>{const t=Ou(u),s=t.slice(t.lastIndexOf("/")+1);if(e&&s.endsWith(e)){if(e===t)return"";const n=s.slice(0,-e.length);if(n.length>0)return n}return s},_r=function(u){const e=$r.exec(u)?.[0]?.replaceAll("\\","/")??"",t=Gt(u),s=Sr(t);return{base:t,dir:et(u),ext:s,name:t.slice(0,t.length-s.length),root:e}};let Tr;const Rr=u=>(Tr??=I(import.meta.url))(u),Hu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,kr=u=>{if(typeof Hu<"u"&&Hu.versions&&Hu.versions.node){const[e,t]=Hu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Hu.getBuiltinModule(u)}return Rr(u)},{fileURLToPath:Nr}=kr("node:url");function Or(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var lt,ct;function Lr(){return ct||(ct=1,lt=["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","cr3","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"]),lt}var Pr=Lr();const Hr=Or(Pr);new Set(Hr);const Ir=/^(?:\.?\.[/\\]|\.\.\B)/,Ta=u=>Ir.test(u)||u==="..",yu=u=>Ou(u instanceof URL?Nr(u):u);let Mr=class extends Error{constructor(e){super(`EEXIST: ${e}`)}get code(){return"EEXIST"}set code(e){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(e){throw new Error("Cannot overwrite name of AlreadyExistsError")}};const bu=u=>{if(!u||!(u instanceof URL)&&typeof u!="string")throw new TypeError("Path must be a non-empty string or URL.")};let jr;const Gr=u=>(jr??=I(import.meta.url))(u),Iu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ur=u=>{if(typeof Iu<"u"&&Iu.versions&&Iu.versions.node){const[e,t]=Iu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Iu.getBuiltinModule(u)}return Gr(u)};Ur("node:fs/promises");let zr;const Wr=u=>(zr??=I(import.meta.url))(u),Mu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qr=u=>{if(typeof Mu<"u"&&Mu.versions&&Mu.versions.node){const[e,t]=Mu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Mu.getBuiltinModule(u)}return Wr(u)};qr("node:fs");const _e=u=>{if(u.isFile())return"file";if(u.isDirectory())return"dir";if(u.isSymbolicLink())return"symlink"};let Xr;const Kr=u=>(Xr??=I(import.meta.url))(u),ju=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vr=u=>{if(typeof ju<"u"&&ju.versions&&ju.versions.node){const[e,t]=ju.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ju.getBuiltinModule(u)}return Kr(u)},{lstat:Dt,mkdir:Qr}=Vr("node:fs/promises"),ka=async u=>{bu(u);try{const e=await Dt(u);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(_e(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await Qr(u,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=await Dt(u);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(_e(t))}'`,{cause:e})}};let Jr;const Zr=u=>(Jr??=I(import.meta.url))(u),Gu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Yr=u=>{if(typeof Gu<"u"&&Gu.versions&&Gu.versions.node){const[e,t]=Gu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Gu.getBuiltinModule(u)}return Zr(u)},{lstatSync:pt,mkdirSync:us}=Yr("node:fs"),Na=u=>{bu(u);try{const e=pt(u);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(_e(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{us(u,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=pt(u);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(_e(t))}'`,{cause:e})}};let es;const ts=u=>(es??=I(import.meta.url))(u),Uu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,rs=u=>{if(typeof Uu<"u"&&Uu.versions&&Uu.versions.node){const[e,t]=Uu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Uu.getBuiltinModule(u)}return ts(u)};rs("node:fs/promises");let ss;const ns=u=>(ss??=I(import.meta.url))(u),zu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,os=u=>{if(typeof zu<"u"&&zu.versions&&zu.versions.node){const[e,t]=zu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return zu.getBuiltinModule(u)}return ns(u)};os("node:fs");let is;const as=u=>(is??=I(import.meta.url))(u),Wu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ls=u=>{if(typeof Wu<"u"&&Wu.versions&&Wu.versions.node){const[e,t]=Wu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Wu.getBuiltinModule(u)}return as(u)};ls("node:fs/promises");let cs;const Ds=u=>(cs??=I(import.meta.url))(u),qu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ps=u=>{if(typeof qu<"u"&&qu.versions&&qu.versions.node){const[e,t]=qu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return qu.getBuiltinModule(u)}return Ds(u)};ps("node:fs");let fs;const As=u=>(fs??=I(import.meta.url))(u),Xu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,hs=u=>{if(typeof Xu<"u"&&Xu.versions&&Xu.versions.node){const[e,t]=Xu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Xu.getBuiltinModule(u)}return As(u)};hs("node:fs/promises");let Es;const Cs=u=>(Es??=I(import.meta.url))(u),Ku=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fs=u=>{if(typeof Ku<"u"&&Ku.versions&&Ku.versions.node){const[e,t]=Ku.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ku.getBuiltinModule(u)}return Cs(u)};Fs("node:fs");let ft=class extends Error{root;constructor(e,t){super(`${e instanceof Error?e.message:String(e)} for path "${t}"`),this.cause=e,this.root=t}get name(){return"WalkError"}set name(e){throw new Error("Cannot overwrite name of WalkError")}};const At=u=>{const e=u.replace(/[$()+\\^]/g,String.raw`\$&`).replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");try{return new RegExp(`^${e}$`)}catch(t){throw new Error(`Invalid glob pattern: ${u}`,{cause:t})}};let gs=class{name;path;#u;constructor(e,t,s){this.#u=e,this.name=t,this.path=s}isDirectory(){return this.#u.isDirectory()}isFile(){return this.#u.isFile()}isSymbolicLink(){return this.#u.isSymbolicLink()}};const Ke=(u,e,t)=>new gs(u,e,t),we=(u,e,t,s)=>{if(Array.isArray(e)&&e.length>0&&!e.some(r=>u.endsWith(r)))return!1;const n=u.includes("\\")?u.replaceAll("\\","/"):u;return t&&!t.some(r=>r.test(n))?!1:!s?.some(r=>r.test(n))};let ds;const ms=u=>(ds??=I(import.meta.url))(u),Vu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ys=u=>{if(typeof Vu<"u"&&Vu.versions&&Vu.versions.node){const[e,t]=Vu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Vu.getBuiltinModule(u)}return ms(u)};ys("node:fs/promises");let Bs;const bs=u=>(Bs??=I(import.meta.url))(u),Qu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$s=u=>{if(typeof Qu<"u"&&Qu.versions&&Qu.versions.node){const[e,t]=Qu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Qu.getBuiltinModule(u)}return bs(u)},{readdirSync:vs,realpathSync:ws,statSync:Ut}=$s("node:fs"),xs=u=>{const e=Se(u),t=Ut(e);return Ke(t,Gt(e),e)};function*Ss(u,e={}){const{extensions:t,followSymlinks:s=!1,includeDirs:n=!0,includeFiles:r=!0,includeSymlinks:o=!0,match:i,maxDepth:l=Number.POSITIVE_INFINITY,skip:d}=e;if(bu(u),l<0)return;const p=e.visited??new Set,m=i?i.map(C=>typeof C=="string"?At(C):C):void 0,b=d?d.map(C=>typeof C=="string"?At(C):C):void 0;if(u=Lu(yu(u)),n&&we(u,t,m,b)&&(yield xs(u)),!(l<1||!we(u,void 0,void 0,b)))try{const C=vs(u,{withFileTypes:!0});for(const f of C){let $=xr(u,f.name),F=f.isDirectory(),w=f.isFile();if(f.isSymbolicLink())if(s){const _=ws($);if(p.has(_))continue;$=_;const h=Ut(_);F=h.isDirectory(),w=h.isFile()}else if(o&&we($,t,m,b)){yield Ke(f,f.name,Se($));continue}else continue;F?(s&&p.add($),yield*Ss($,{extensions:t,followSymlinks:s,includeDirs:n,includeFiles:r,includeSymlinks:o,match:m,maxDepth:l-1,skip:b,visited:p})):w&&r&&we($,t,m,b)&&(yield Ke(f,f.name,Se($)))}}catch(C){throw C instanceof ft?C:new ft(C,u)}}let _s;const Ts=u=>(_s??=I(import.meta.url))(u),Ju=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Rs=u=>{if(typeof Ju<"u"&&Ju.versions&&Ju.versions.node){const[e,t]=Ju.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ju.getBuiltinModule(u)}return Ts(u)};Rs("node:fs/promises");let ks;const Ns=u=>(ks??=I(import.meta.url))(u),Zu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Os=u=>{if(typeof Zu<"u"&&Zu.versions&&Zu.versions.node){const[e,t]=Zu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Zu.getBuiltinModule(u)}return Ns(u)},{statSync:Ls,lstatSync:Ps}=Os("node:fs"),Pa=(u,e={})=>{if(typeof u!="string"&&!Array.isArray(u)&&typeof u!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const t=e.cwd?yu(e.cwd):process.cwd();let s=Lu(t);const{root:n}=_r(s),r=yu(e.stopAt??n),o=Lu(s,r),i=e.type??"file",l=function(p){return typeof u=="function"?[u(p)]:typeof u=="string"?[u]:Array.isArray(u)?u:[u]};e.allowSymlinks??=!0;const d=e.allowSymlinks?Ls:Ps;for(;s&&s!==o&&s!==n;){for(let p of l(s)){if(p===dr)return;if(p===void 0)continue;Buffer.isBuffer(p)?p=p.toString():p instanceof URL&&(p=yu(p));const m=Nu(p)?p:Lu(s,p);try{const b=d(m);if(i==="file"&&b.isFile()||i==="directory"&&b.isDirectory())return m}catch{}}s=et(s)}};function tt(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var ht={},Oe,Et;function Re(){if(Et)return Oe;Et=1;const u="[^\\\\/]",e=Symbol("unignore"),t="\\.",s="\\+",n="\\?",r="\\/",o="(?=.)",i="[^/]",l=`(?:${r}|$)`,d=`(?:^|${r})`,p=`${t}{1,2}${l}`,m=`(?!${t})`,b=`(?!${d}${p})`,C=`(?!${t}{0,1}${l})`,f=`(?!${p})`,$=`[^.${r}]`,F=`${i}*?`,w="/",_={DOT_LITERAL:t,PLUS_LITERAL:s,QMARK_LITERAL:n,SLASH_LITERAL:r,ONE_CHAR:o,QMARK:i,END_ANCHOR:l,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:b,NO_DOT_SLASH:C,NO_DOTS_SLASH:f,QMARK_NO_DOT:$,STAR:F,START_ANCHOR:d,SEP:w},h={..._,SLASH_LITERAL:"[\\\\/]",QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${t}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${t})`,NO_DOTS:`(?!(?:^|[\\\\/])${t}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${t}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${t}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},g={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return Oe={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:g,UNIGNORE:e,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(a){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${a.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(a){return a===!0?h:_}},Oe}var Ct;function ke(){return Ct||(Ct=1,(function(u){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:t,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:n}=Re();u.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),u.hasRegexChars=r=>s.test(r),u.isRegexChar=r=>r.length===1&&u.hasRegexChars(r),u.escapeRegex=r=>r.replace(n,"\\$1"),u.toPosixSlashes=r=>r.replace(e,"/"),u.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const r=navigator.platform.toLowerCase();return r==="win32"||r==="windows"}return process.platform?process.platform==="win32":!1},u.removeBackslashes=r=>r.replace(t,o=>o==="\\"?"":o),u.escapeLast=(r,o,i)=>{const l=r.lastIndexOf(o,i);return l===-1?r:r[l-1]==="\\"?u.escapeLast(r,o,l-1):`${r.slice(0,l)}\\${r.slice(l)}`},u.removePrefix=(r,o={})=>{let i=r;return i.startsWith("./")&&(i=i.slice(2),o.prefix="./"),i},u.wrapOutput=(r,o={},i={})=>{const l=i.contains?"":"^",d=i.contains?"":"$";let p=`${l}(?:${r})${d}`;return o.negated===!0&&(p=`(?:^(?!${p}).*$)`),p},u.basename=(r,{windows:o}={})=>{const i=r.split(o?/[\\/]/:"/"),l=i[i.length-1];return l===""?i[i.length-2]:l}})(ht)),ht}var Le,Ft;function Hs(){if(Ft)return Le;Ft=1;const u=ke(),{CHAR_ASTERISK:e,CHAR_AT:t,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:n,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:i,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:m,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:$}=Re(),F=_=>_===i||_===s,w=_=>{_.isPrefix!==!0&&(_.depth=_.isGlobstar?1/0:1)};return Le=(_,h)=>{const g=h||{},a=_.length-1,T=g.parts===!0||g.scanToEnd===!0,O=[],x=[],S=[];let v=_,j=-1,q=0,au=0,gu=!1,lu=!1,Z=!1,cu=!1,$u=!1,Au=!1,Du=!1,Q=!1,hu=!1,ru=!1,vu=0,su,R,G={value:"",depth:0,isGlob:!1};const tu=()=>j>=a,A=()=>v.charCodeAt(j+1),X=()=>(su=R,v.charCodeAt(++j));for(;j<a;){R=X();let nu;if(R===s){Du=G.backslashes=!0,R=X(),R===l&&(Au=!0);continue}if(Au===!0||R===l){for(vu++;tu()!==!0&&(R=X());){if(R===s){Du=G.backslashes=!0,X();continue}if(R===l){vu++;continue}if(Au!==!0&&R===r&&(R=X())===r){if(gu=G.isBrace=!0,Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(Au!==!0&&R===n){if(gu=G.isBrace=!0,Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(R===C&&(vu--,vu===0)){Au=!1,gu=G.isBrace=!0,ru=!0;break}}if(T===!0)continue;break}if(R===i){if(O.push(j),x.push(G),G={value:"",depth:0,isGlob:!1},ru===!0)continue;if(su===r&&j===q+1){q+=2;continue}au=j+1;continue}if(g.noext!==!0&&(R===m||R===t||R===e||R===b||R===o)&&A()===d){if(Z=G.isGlob=!0,cu=G.isExtglob=!0,ru=!0,R===o&&j===q&&(hu=!0),T===!0){for(;tu()!==!0&&(R=X());){if(R===s){Du=G.backslashes=!0,R=X();continue}if(R===f){Z=G.isGlob=!0,ru=!0;break}}continue}break}if(R===e){if(su===e&&($u=G.isGlobstar=!0),Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(R===b){if(Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(R===p){for(;tu()!==!0&&(nu=X());){if(nu===s){Du=G.backslashes=!0,X();continue}if(nu===$){lu=G.isBracket=!0,Z=G.isGlob=!0,ru=!0;break}}if(T===!0)continue;break}if(g.nonegate!==!0&&R===o&&j===q){Q=G.negated=!0,q++;continue}if(g.noparen!==!0&&R===d){if(Z=G.isGlob=!0,T===!0){for(;tu()!==!0&&(R=X());){if(R===d){Du=G.backslashes=!0,R=X();continue}if(R===f){ru=!0;break}}continue}break}if(Z===!0){if(ru=!0,T===!0)continue;break}}g.noext===!0&&(cu=!1,Z=!1);let z=v,wu="",c="";q>0&&(wu=v.slice(0,q),v=v.slice(q),au-=q),z&&Z===!0&&au>0?(z=v.slice(0,au),c=v.slice(au)):Z===!0?(z="",c=v):z=v,z&&z!==""&&z!=="/"&&z!==v&&F(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),g.unescape===!0&&(c&&(c=u.removeBackslashes(c)),z&&Du===!0&&(z=u.removeBackslashes(z)));const D={prefix:wu,input:_,start:q,base:z,glob:c,isBrace:gu,isBracket:lu,isGlob:Z,isExtglob:cu,isGlobstar:$u,negated:Q,negatedExtglob:hu};if(g.tokens===!0&&(D.maxDepth=0,F(R)||x.push(G),D.tokens=x),g.parts===!0||g.tokens===!0){let nu;for(let M=0;M<O.length;M++){const pu=nu?nu+1:q,Eu=O[M],iu=_.slice(pu,Eu);g.tokens&&(M===0&&q!==0?(x[M].isPrefix=!0,x[M].value=wu):x[M].value=iu,w(x[M]),D.maxDepth+=x[M].depth),(M!==0||iu!=="")&&S.push(iu),nu=Eu}if(nu&&nu+1<_.length){const M=_.slice(nu+1);S.push(M),g.tokens&&(x[x.length-1].value=M,w(x[x.length-1]),D.maxDepth+=x[x.length-1].depth)}D.slashes=O,D.parts=S}return D},Le}var Pe,gt;function Is(){if(gt)return Pe;gt=1;const u=Re(),e=ke(),{MAX_LENGTH:t,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:o}=u,i=(h,g)=>typeof g.expandRange=="function"?g.expandRange(...h,g):(h.sort(),`[${h.join("-")}]`),l=(h,g)=>`Missing ${h}: "${g}" - use "\\\\${g}" to match literal characters`,d=h=>{const g=[];let a=0,T=0,O=0,x="",S=!1;for(const v of h){if(S===!0){x+=v,S=!1;continue}if(v==="\\"){x+=v,S=!0;continue}if(v==='"'){O=O===1?0:1,x+=v;continue}if(O===0){if(v==="[")a++;else if(v==="]"&&a>0)a--;else if(a===0){if(v==="(")T++;else if(v===")"&&T>0)T--;else if(v==="|"&&T===0){g.push(x),x="";continue}}}x+=v}return g.push(x),g},p=h=>{let g=!1;for(const a of h){if(g===!0){g=!1;continue}if(a==="\\"){g=!0;continue}if(/[?*+@!()[\]{}]/.test(a))return!1}return!0},m=h=>{let g=h.trim(),a=!0;for(;a===!0;)a=!1,/^@\([^\\()[\]{}|]+\)$/.test(g)&&(g=g.slice(2,-1),a=!0);if(p(g))return g.replace(/\\(.)/g,"$1")},b=h=>{const g=h.map(m).filter(Boolean);for(let a=0;a<g.length;a++)for(let T=a+1;T<g.length;T++){const O=g[a],x=g[T],S=O[0];if(!(!S||O!==S.repeat(O.length)||x!==S.repeat(x.length))&&(O===x||O.startsWith(x)||x.startsWith(O)))return!0}return!1},C=(h,g=!0)=>{if(h[0]!=="+"&&h[0]!=="*"||h[1]!=="(")return;let a=0,T=0,O=0,x=!1;for(let S=1;S<h.length;S++){const v=h[S];if(x===!0){x=!1;continue}if(v==="\\"){x=!0;continue}if(v==='"'){O=O===1?0:1;continue}if(O!==1){if(v==="["){a++;continue}if(v==="]"&&a>0){a--;continue}if(!(a>0)){if(v==="("){T++;continue}if(v===")"&&(T--,T===0))return g===!0&&S!==h.length-1?void 0:{type:h[0],body:h.slice(2,S),end:S}}}}},f=h=>`${h.length===1?e.escapeRegex(h[0]):`[${h.map(g=>e.escapeRegex(g)).join("")}]`}*`,$=h=>{let g=0;const a=[];for(;g<h.length;){const T=C(h.slice(g),!1);if(!T||T.type!=="*")return;const O=d(T.body).map(S=>S.trim());if(O.length!==1)return;const x=m(O[0]);if(!x||x.length!==1)return;a.push(x),g+=T.end+1}if(!(a.length<1))return a},F=h=>{let g=0,a=h.trim(),T=C(a);for(;T;)g++,a=T.body.trim(),T=C(a);return g},w=(h,g)=>{if(g.maxExtglobRecursion===!1)return{risky:!1};const a=typeof g.maxExtglobRecursion=="number"?g.maxExtglobRecursion:u.DEFAULT_MAX_EXTGLOB_RECURSION,T=d(h).map(v=>v.trim());if(T.length>1&&(T.some(v=>v==="")||T.some(v=>/^[*?]+$/.test(v))||b(T)))return{risky:!0};const O=[];let x=!1,S=!0;for(const v of T){const j=$(v);if(j){x=!0,O.push(...j);continue}const q=m(v);if(q&&q.length===1){O.push(q);continue}if(S=!1,F(v)>a)return{risky:!0}}return x?S?{risky:!0,safeOutput:f([...new Set(O)])}:{risky:!0}:{risky:!1}},_=(h,g)=>{if(typeof h!="string")throw new TypeError("Expected a string");h=o[h]||h;const a={...g},T=typeof a.maxLength=="number"?Math.min(t,a.maxLength):t;let O=h.length;if(O>T)throw new SyntaxError(`Input length: ${O}, exceeds maximum allowed length: ${T}`);const x={type:"bos",value:"",output:a.prepend||""},S=[x],v=a.capture?"":"?:",j=u.globChars(a.windows),q=u.extglobChars(j),{DOT_LITERAL:au,PLUS_LITERAL:gu,SLASH_LITERAL:lu,ONE_CHAR:Z,DOTS_SLASH:cu,NO_DOT:$u,NO_DOT_SLASH:Au,NO_DOTS_SLASH:Du,QMARK:Q,QMARK_NO_DOT:hu,STAR:ru,START_ANCHOR:vu}=j,su=B=>`(${v}(?:(?!${vu}${B.dot?cu:au}).)*?)`,R=a.dot?"":$u,G=a.dot?Q:hu;let tu=a.bash===!0?su(a):ru;a.capture&&(tu=`(${tu})`),typeof a.noext=="boolean"&&(a.noextglob=a.noext);const A={input:h,index:-1,start:0,dot:a.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};h=e.removePrefix(h,A),O=h.length;const X=[],z=[],wu=[];let c=x,D;const nu=()=>A.index===O-1,M=A.peek=(B=1)=>h[A.index+B],pu=A.advance=()=>h[++A.index]||"",Eu=()=>h.slice(A.index+1),iu=(B="",K=0)=>{A.consumed+=B,A.index+=K},be=B=>{A.output+=B.output!=null?B.output:B.value,iu(B.value)},fr=()=>{let B=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)pu(),A.start++,B++;return B%2===0?!1:(A.negated=!0,A.start++,!0)},$e=B=>{A[B]++,wu.push(B)},xu=B=>{A[B]--,wu.pop()},L=B=>{if(c.type==="globstar"){const K=A.braces>0&&(B.type==="comma"||B.type==="brace"),y=B.extglob===!0||X.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!K&&!y&&(A.output=A.output.slice(0,-c.output.length),c.type="star",c.value="*",c.output=tu,A.output+=c.output)}if(X.length&&B.type!=="paren"&&(X[X.length-1].inner+=B.value),(B.value||B.output)&&be(B),c&&c.type==="text"&&B.type==="text"){c.output=(c.output||c.value)+B.value,c.value+=B.value;return}B.prev=c,S.push(B),c=B},ve=(B,K)=>{const y={...q[K],conditions:1,inner:""};y.prev=c,y.parens=A.parens,y.output=A.output,y.startIndex=A.index,y.tokensIndex=S.length;const P=(a.capture?"(":"")+y.open;$e("parens"),L({type:B,value:K,output:A.output?"":Z}),L({type:"paren",extglob:!0,value:pu(),output:P}),X.push(y)},Ar=B=>{const K=h.slice(B.startIndex,A.index+1),y=h.slice(B.startIndex+2,A.index),P=w(y,a);if((B.type==="plus"||B.type==="star")&&P.risky){const U=P.safeOutput?(B.output?"":Z)+(a.capture?`(${P.safeOutput})`:P.safeOutput):void 0,Cu=S[B.tokensIndex];Cu.type="text",Cu.value=K,Cu.output=U||e.escapeRegex(K);for(let Fu=B.tokensIndex+1;Fu<S.length;Fu++)S[Fu].value="",S[Fu].output="",delete S[Fu].suffix;A.output=B.output+Cu.output,A.backtrack=!0,L({type:"paren",extglob:!0,value:D,output:""}),xu("parens");return}let J=B.close+(a.capture?")":""),uu;if(B.type==="negate"){let U=tu;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(U=su(a)),(U!==tu||nu()||/^\)+$/.test(Eu()))&&(J=B.close=`)$))${U}`),B.inner.includes("*")&&(uu=Eu())&&/^\.[^\\/.]+$/.test(uu)){const Cu=_(uu,{...g,fastpaths:!1}).output;J=B.close=`)${Cu})${U})`}B.prev.type==="bos"&&(A.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:D,output:J}),xu("parens")};if(a.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(h)){let B=!1,K=h.replace(r,(y,P,J,uu,U,Cu)=>uu==="\\"?(B=!0,y):uu==="?"?P?P+uu+(U?Q.repeat(U.length):""):Cu===0?G+(U?Q.repeat(U.length):""):Q.repeat(J.length):uu==="."?au.repeat(J.length):uu==="*"?P?P+uu+(U?tu:""):tu:P?y:`\\${y}`);return B===!0&&(a.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,y=>y.length%2===0?"\\\\":y?"\\":"")),K===h&&a.contains===!0?(A.output=h,A):(A.output=e.wrapOutput(K,A,g),A)}for(;!nu();){if(D=pu(),D==="\0")continue;if(D==="\\"){const y=M();if(y==="/"&&a.bash!==!0||y==="."||y===";")continue;if(!y){D+="\\",L({type:"text",value:D});continue}const P=/^\\+/.exec(Eu());let J=0;if(P&&P[0].length>2&&(J=P[0].length,A.index+=J,J%2!==0&&(D+="\\")),a.unescape===!0?D=pu():D+=pu(),A.brackets===0){L({type:"text",value:D});continue}}if(A.brackets>0&&(D!=="]"||c.value==="["||c.value==="[^")){if(a.posix!==!1&&D===":"){const y=c.value.slice(1);if(y.includes("[")&&(c.posix=!0,y.includes(":"))){const P=c.value.lastIndexOf("["),J=c.value.slice(0,P),uu=c.value.slice(P+2),U=s[uu];if(U){c.value=J+U,A.backtrack=!0,pu(),!x.output&&S.indexOf(c)===1&&(x.output=Z);continue}}}(D==="["&&M()!==":"||D==="-"&&M()==="]")&&(D=`\\${D}`),D==="]"&&(c.value==="["||c.value==="[^")&&(D=`\\${D}`),a.posix===!0&&D==="!"&&c.value==="["&&(D="^"),c.value+=D,be({value:D});continue}if(A.quotes===1&&D!=='"'){D=e.escapeRegex(D),c.value+=D,be({value:D});continue}if(D==='"'){A.quotes=A.quotes===1?0:1,a.keepQuotes===!0&&L({type:"text",value:D});continue}if(D==="("){$e("parens"),L({type:"paren",value:D});continue}if(D===")"){if(A.parens===0&&a.strictBrackets===!0)throw new SyntaxError(l("opening","("));const y=X[X.length-1];if(y&&A.parens===y.parens+1){Ar(X.pop());continue}L({type:"paren",value:D,output:A.parens?")":"\\)"}),xu("parens");continue}if(D==="["){if(a.nobracket===!0||!Eu().includes("]")){if(a.nobracket!==!0&&a.strictBrackets===!0)throw new SyntaxError(l("closing","]"));D=`\\${D}`}else $e("brackets");L({type:"bracket",value:D});continue}if(D==="]"){if(a.nobracket===!0||c&&c.type==="bracket"&&c.value.length===1){L({type:"text",value:D,output:`\\${D}`});continue}if(A.brackets===0){if(a.strictBrackets===!0)throw new SyntaxError(l("opening","["));L({type:"text",value:D,output:`\\${D}`});continue}xu("brackets");const y=c.value.slice(1);if(c.posix!==!0&&y[0]==="^"&&!y.includes("/")&&(D=`/${D}`),c.value+=D,be({value:D}),a.literalBrackets===!1||e.hasRegexChars(y))continue;const P=e.escapeRegex(c.value);if(A.output=A.output.slice(0,-c.value.length),a.literalBrackets===!0){A.output+=P,c.value=P;continue}c.value=`(${v}${P}|${c.value})`,A.output+=c.value;continue}if(D==="{"&&a.nobrace!==!0){$e("braces");const y={type:"brace",value:D,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};z.push(y),L(y);continue}if(D==="}"){const y=z[z.length-1];if(a.nobrace===!0||!y){L({type:"text",value:D,output:D});continue}let P=")";if(y.dots===!0){const J=S.slice(),uu=[];for(let U=J.length-1;U>=0&&(S.pop(),J[U].type!=="brace");U--)J[U].type!=="dots"&&uu.unshift(J[U].value);P=i(uu,a),A.backtrack=!0}if(y.comma!==!0&&y.dots!==!0){const J=A.output.slice(0,y.outputIndex),uu=A.tokens.slice(y.tokensIndex);y.value=y.output="\\{",D=P="\\}",A.output=J;for(const U of uu)A.output+=U.output||U.value}L({type:"brace",value:D,output:P}),xu("braces"),z.pop();continue}if(D==="|"){X.length>0&&X[X.length-1].conditions++,L({type:"text",value:D});continue}if(D===","){let y=D;const P=z[z.length-1];P&&wu[wu.length-1]==="braces"&&(P.comma=!0,y="|"),L({type:"comma",value:D,output:y});continue}if(D==="/"){if(c.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",S.pop(),c=x;continue}L({type:"slash",value:D,output:lu});continue}if(D==="."){if(A.braces>0&&c.type==="dot"){c.value==="."&&(c.output=au);const y=z[z.length-1];c.type="dots",c.output+=D,c.value+=D,y.dots=!0;continue}if(A.braces+A.parens===0&&c.type!=="bos"&&c.type!=="slash"){L({type:"text",value:D,output:au});continue}L({type:"dot",value:D,output:au});continue}if(D==="?"){if(!(c&&c.value==="(")&&a.noextglob!==!0&&M()==="("&&M(2)!=="?"){ve("qmark",D);continue}if(c&&c.type==="paren"){const y=M();let P=D;(c.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(Eu()))&&(P=`\\${D}`),L({type:"text",value:D,output:P});continue}if(a.dot!==!0&&(c.type==="slash"||c.type==="bos")){L({type:"qmark",value:D,output:hu});continue}L({type:"qmark",value:D,output:Q});continue}if(D==="!"){if(a.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){ve("negate",D);continue}if(a.nonegate!==!0&&A.index===0){fr();continue}}if(D==="+"){if(a.noextglob!==!0&&M()==="("&&M(2)!=="?"){ve("plus",D);continue}if(c&&c.value==="("||a.regex===!1){L({type:"plus",value:D,output:gu});continue}if(c&&(c.type==="bracket"||c.type==="paren"||c.type==="brace")||A.parens>0){L({type:"plus",value:D});continue}L({type:"plus",value:gu});continue}if(D==="@"){if(a.noextglob!==!0&&M()==="("&&M(2)!=="?"){L({type:"at",extglob:!0,value:D,output:""});continue}L({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);const y=n.exec(Eu());y&&(D+=y[0],A.index+=y[0].length),L({type:"text",value:D});continue}if(c&&(c.type==="globstar"||c.star===!0)){c.type="star",c.star=!0,c.value+=D,c.output=tu,A.backtrack=!0,A.globstar=!0,iu(D);continue}let B=Eu();if(a.noextglob!==!0&&/^\([^?]/.test(B)){ve("star",D);continue}if(c.type==="star"){if(a.noglobstar===!0){iu(D);continue}const y=c.prev,P=y.prev,J=y.type==="slash"||y.type==="bos",uu=P&&(P.type==="star"||P.type==="globstar");if(a.bash===!0&&(!J||B[0]&&B[0]!=="/")){L({type:"star",value:D,output:""});continue}const U=A.braces>0&&(y.type==="comma"||y.type==="brace"),Cu=X.length&&(y.type==="pipe"||y.type==="paren");if(!J&&y.type!=="paren"&&!U&&!Cu){L({type:"star",value:D,output:""});continue}for(;B.slice(0,3)==="/**";){const Fu=h[A.index+4];if(Fu&&Fu!=="/")break;B=B.slice(3),iu("/**",3)}if(y.type==="bos"&&nu()){c.type="globstar",c.value+=D,c.output=su(a),A.output=c.output,A.globstar=!0,iu(D);continue}if(y.type==="slash"&&y.prev.type!=="bos"&&!uu&&nu()){A.output=A.output.slice(0,-(y.output+c.output).length),y.output=`(?:${y.output}`,c.type="globstar",c.output=su(a)+(a.strictSlashes?")":"|$)"),c.value+=D,A.globstar=!0,A.output+=y.output+c.output,iu(D);continue}if(y.type==="slash"&&y.prev.type!=="bos"&&B[0]==="/"){const Fu=B[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(y.output+c.output).length),y.output=`(?:${y.output}`,c.type="globstar",c.output=`${su(a)}${lu}|${lu}${Fu})`,c.value+=D,A.output+=y.output+c.output,A.globstar=!0,iu(D+pu()),L({type:"slash",value:"/",output:""});continue}if(y.type==="bos"&&B[0]==="/"){c.type="globstar",c.value+=D,c.output=`(?:^|${lu}|${su(a)}${lu})`,A.output=c.output,A.globstar=!0,iu(D+pu()),L({type:"slash",value:"/",output:""});continue}if(U&&B[0]==="/"){c.type="globstar",c.value+=D,c.output=`(?:^|${lu}|${su(a)}${lu})`,A.output+=c.output,A.globstar=!0,iu(D+pu()),L({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-c.output.length),c.type="globstar",c.output=su(a),c.value+=D,A.output+=c.output,A.globstar=!0,iu(D);continue}const K={type:"star",value:D,output:tu};if(a.bash===!0){K.output=".*?",(c.type==="bos"||c.type==="slash")&&(K.output=R+K.output),L(K);continue}if(c&&(c.type==="bracket"||c.type==="paren")&&a.regex===!0){K.output=D,L(K);continue}(A.index===A.start||c.type==="slash"||c.type==="dot")&&(c.type==="dot"?(A.output+=Au,c.output+=Au):a.dot===!0?(A.output+=Du,c.output+=Du):(A.output+=R,c.output+=R),M()!=="*"&&(A.output+=Z,c.output+=Z)),L(K)}for(;A.brackets>0;){if(a.strictBrackets===!0)throw new SyntaxError(l("closing","]"));A.output=e.escapeLast(A.output,"["),xu("brackets")}for(;A.parens>0;){if(a.strictBrackets===!0)throw new SyntaxError(l("closing",")"));A.output=e.escapeLast(A.output,"("),xu("parens")}for(;A.braces>0;){if(a.strictBrackets===!0)throw new SyntaxError(l("closing","}"));A.output=e.escapeLast(A.output,"{"),xu("braces")}if(a.strictSlashes!==!0&&(c.type==="star"||c.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${lu}?`}),A.backtrack===!0){A.output="";for(const B of A.tokens)A.output+=B.output!=null?B.output:B.value,B.suffix&&(A.output+=B.suffix)}return A};return _.fastpaths=(h,g)=>{const a={...g},T=typeof a.maxLength=="number"?Math.min(t,a.maxLength):t,O=h.length;if(O>T)throw new SyntaxError(`Input length: ${O}, exceeds maximum allowed length: ${T}`);h=o[h]||h;const{DOT_LITERAL:x,SLASH_LITERAL:S,ONE_CHAR:v,DOTS_SLASH:j,NO_DOT:q,NO_DOTS:au,NO_DOTS_SLASH:gu,STAR:lu,START_ANCHOR:Z}=u.globChars(a.windows),cu=a.dot?au:q,$u=a.dot?gu:q,Au=a.capture?"":"?:",Du={negated:!1,prefix:""};let Q=a.bash===!0?".*?":lu;a.capture&&(Q=`(${Q})`);const hu=R=>R.noglobstar===!0?Q:`(${Au}(?:(?!${Z}${R.dot?j:x}).)*?)`,ru=R=>{switch(R){case"*":return`${cu}${v}${Q}`;case".*":return`${x}${v}${Q}`;case"*.*":return`${cu}${Q}${x}${v}${Q}`;case"*/*":return`${cu}${Q}${S}${v}${$u}${Q}`;case"**":return cu+hu(a);case"**/*":return`(?:${cu}${hu(a)}${S})?${$u}${v}${Q}`;case"**/*.*":return`(?:${cu}${hu(a)}${S})?${$u}${Q}${x}${v}${Q}`;case"**/.*":return`(?:${cu}${hu(a)}${S})?${x}${v}${Q}`;default:{const G=/^(.*?)\.(\w+)$/.exec(R);if(!G)return;const tu=ru(G[1]);return tu?tu+x+G[2]:void 0}}},vu=e.removePrefix(h,Du);let su=ru(vu);return su&&a.strictSlashes!==!0&&(su+=`${S}?`),su},Pe=_,Pe}var He,dt;function Ms(){if(dt)return He;dt=1;const u=Hs(),e=Is(),t=ke(),s=Re(),n=o=>o&&typeof o=="object"&&!Array.isArray(o),r=(o,i,l=!1)=>{if(Array.isArray(o)){const F=o.map(w=>r(w,i,l));return w=>{for(const _ of F){const h=_(w);if(h)return h}return!1}}const d=n(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!d)throw new TypeError("Expected pattern to be a non-empty string");const p=i||{},m=p.windows,b=d?r.compileRe(o,i):r.makeRe(o,i,!1,!0),C=b.state;delete b.state;let f=()=>!1;if(p.ignore){const F={...i,ignore:null,onMatch:null,onResult:null};f=r(p.ignore,F,l)}const $=(F,w=!1)=>{const{isMatch:_,match:h,output:g}=r.test(F,b,i,{glob:o,posix:m}),a={glob:o,state:C,regex:b,posix:m,input:F,output:g,match:h,isMatch:_};if(typeof p.onResult=="function"&&p.onResult(a),_===!1)return a.isMatch=!1,w?a:!1;u:if(f(F)){if(typeof p.onIgnore=="function"&&p.onIgnore(a)===s.UNIGNORE){a.isMatch=!0;break u}return a.isMatch=!1,w?a:!1}return typeof p.onMatch=="function"&&p.onMatch(a),w?a:!0};return l&&($.state=C),$};return r.test=(o,i,l,{glob:d,posix:p}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};const m=l||{},b=m.format||(p?t.toPosixSlashes:null);let C=o===d,f=C&&b?b(o):o;return C===!1&&(f=b?b(o):o,C=f===d),(C===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?C=r.matchBase(o,i,l,p):C=i.exec(f)),{isMatch:!!C,match:C,output:f}},r.matchBase=(o,i,l,d=l&&l.windows)=>(i instanceof RegExp?i:r.makeRe(i,l)).test(t.basename(o,{windows:d})),r.isMatch=(o,i,l)=>r(i,l)(o),r.parse=(o,i)=>Array.isArray(o)?o.map(l=>r.parse(l,i)):e(o,{...i,fastpaths:!1}),r.scan=(o,i)=>u(o,i),r.compileRe=(o,i,l=!1,d=!1)=>{if(l===!0)return o.output;const p=i||{},m=p.contains?"":"^",b=p.contains?"":"$";let C=`${m}(?:${o.output})${b}`;o&&o.negated===!0&&(C=`^(?!${C}).*$`);const f=r.toRegex(C,i);return d===!0&&(f.state=o),f},r.makeRe=(o,i={},l=!1,d=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let p={negated:!1,fastpaths:!0};return i.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&(p.output=e.fastpaths(o,i)),p.output||(p=e(o,i)),r.compileRe(p,i,l,d)},r.toRegex=(o,i)=>{try{const l=i||{};return new RegExp(o,l.flags||(l.nocase?"i":""))}catch(l){if(i&&i.debug===!0)throw l;return/$^/}},r.constants=s,He=r,He}var Ie,mt;function js(){if(mt)return Ie;mt=1;const u=Ms(),e=ke();function t(s,n,r=!1){return n&&(n.windows===null||n.windows===void 0)&&(n={...n,windows:e.isWindows()}),u(s,n,r)}return Object.assign(t,u),Ie=t,Ie}var Gs=js();const Ru=tt(Gs);let Us;const zs=u=>(Us??=I(import.meta.url))(u),Yu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ye=u=>{if(typeof Yu<"u"&&Yu.versions&&Yu.versions.node){const[e,t]=Yu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Yu.getBuiltinModule(u)}return zs(u)},yt=ye("fs"),Ws={...yt,default:yt},{statSync:qs,stat:Xs,realpathSync:Ks,realpath:Vs,readdirSync:Qs,readdir:Js}=ye("fs"),{sep:zt,basename:Zs,dirname:Ve,resolve:Wt,normalize:Ys,relative:un,posix:ku,isAbsolute:en}=ye("path"),{fileURLToPath:tn}=ye("url"),{createRequire:rn}=ye("module");var Bt=rn(import.meta.url);function sn(u){let e=Ys(u);return e.length>1&&e[e.length-1]===zt&&(e=e.substring(0,e.length-1)),e}const nn=/[\\/]/g;function qt(u,e){return u.replace(nn,e)}const on=/^[a-z]:[\\/]$/i;function an(u){return u==="/"||on.test(u)}function Me(u,e){const{resolvePaths:t,normalizePath:s,pathSeparator:n}=e,r=process.platform==="win32"&&u.includes("/")||u.startsWith(".");if(t&&(u=Wt(u)),(s||r)&&(u=sn(u)),u===".")return"";const o=u[u.length-1]!==n;return qt(o?u+n:u,n)}function Xt(u,e){return e+u}function ln(u,e){return function(t,s){return s.startsWith(u)?s.slice(u.length)+t:qt(un(u,s),e.pathSeparator)+e.pathSeparator+t}}function cn(u){return u}function Dn(u,e,t){return e+u+t}function pn(u,e){const{relativePaths:t,includeBasePath:s}=e;return t&&u?ln(u,e):s?Xt:cn}function fn(u){return function(e,t){t.push(e.substring(u.length)||".")}}function An(u){return function(e,t,s){const n=e.substring(u.length)||".";s.every(r=>r(n,!0))&&t.push(n)}}const hn=(u,e)=>{e.push(u||".")},En=(u,e,t)=>{const s=u||".";t.every(n=>n(s,!0))&&e.push(s)},Cn=()=>{};function Fn(u,e){const{includeDirs:t,filters:s,relativePaths:n}=e;return t?n?s&&s.length?An(u):fn(u):s&&s.length?En:hn:Cn}const gn=(u,e,t,s)=>{s.every(n=>n(u,!1))&&t.files++},dn=(u,e,t,s)=>{s.every(n=>n(u,!1))&&e.push(u)},mn=(u,e,t,s)=>{t.files++},yn=(u,e)=>{e.push(u)},Bn=()=>{};function bn(u){const{excludeFiles:e,filters:t,onlyCounts:s}=u;return e?Bn:t&&t.length?s?gn:dn:s?mn:yn}const $n=u=>u,vn=()=>[""].slice(0,0);function wn(u){return u.group?vn:$n}const xn=(u,e,t)=>{u.push({directory:e,files:t,dir:e})},Sn=()=>{};function _n(u){return u.group?xn:Sn}const Tn=function(u,e,t){const{queue:s,fs:n,options:{suppressErrors:r}}=e;s.enqueue(),n.realpath(u,(o,i)=>{if(o)return s.dequeue(r?null:o,e);n.stat(i,(l,d)=>{if(l)return s.dequeue(r?null:l,e);if(d.isDirectory()&&Kt(u,i,e))return s.dequeue(null,e);t(d,i),s.dequeue(null,e)})})},Rn=function(u,e,t){const{queue:s,fs:n,options:{suppressErrors:r}}=e;s.enqueue();try{const o=n.realpathSync(u),i=n.statSync(o);if(i.isDirectory()&&Kt(u,o,e))return;t(i,o)}catch(o){if(!r)throw o}};function kn(u,e){return!u.resolveSymlinks||u.excludeSymlinks?null:e?Rn:Tn}function Kt(u,e,t){if(t.options.useRealPaths)return Nn(e,t);let s=Ve(u),n=1;for(;s!==t.root&&n<2;){const r=t.symlinks.get(s);r&&(r===e||r.startsWith(e)||e.startsWith(r))?n++:s=Ve(s)}return t.symlinks.set(u,e),n>1}function Nn(u,e){return e.visited.includes(u+e.options.pathSeparator)}const On=u=>u.counts,Ln=u=>u.groups,Pn=u=>u.paths,Hn=u=>u.paths.slice(0,u.options.maxFiles),In=(u,e,t)=>(Ne(e,t,u.counts,u.options.suppressErrors),null),Mn=(u,e,t)=>(Ne(e,t,u.paths,u.options.suppressErrors),null),jn=(u,e,t)=>(Ne(e,t,u.paths.slice(0,u.options.maxFiles),u.options.suppressErrors),null),Gn=(u,e,t)=>(Ne(e,t,u.groups,u.options.suppressErrors),null);function Ne(u,e,t,s){e(u&&!s?u:null,t)}function Un(u,e){const{onlyCounts:t,group:s,maxFiles:n}=u;return t?e?On:In:s?e?Ln:Gn:n?e?Hn:jn:e?Pn:Mn}const Vt={withFileTypes:!0},zn=(u,e,t,s,n)=>{if(u.queue.enqueue(),s<0)return u.queue.dequeue(null,u);const{fs:r}=u;u.visited.push(e),u.counts.directories++,r.readdir(e||".",Vt,(o,i=[])=>{n(i,t,s),u.queue.dequeue(u.options.suppressErrors?null:o,u)})},Wn=(u,e,t,s,n)=>{const{fs:r}=u;if(s<0)return;u.visited.push(e),u.counts.directories++;let o=[];try{o=r.readdirSync(e||".",Vt)}catch(i){if(!u.options.suppressErrors)throw i}n(o,t,s)};function qn(u){return u?Wn:zn}var Xn=class{count=0;constructor(u){this.onQueueEmpty=u}enqueue(){return this.count++,this.count}dequeue(u,e){this.onQueueEmpty&&(--this.count<=0||u)&&(this.onQueueEmpty(u,e),u&&(e.controller.abort(),this.onQueueEmpty=void 0))}},Kn=class{_files=0;_directories=0;set files(u){this._files=u}get files(){return this._files}set directories(u){this._directories=u}get directories(){return this._directories}get dirs(){return this._directories}},Vn=class{aborted=!1;abort(){this.aborted=!0}},Qt=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,s){this.isSynchronous=!s,this.callbackInvoker=Un(t,this.isSynchronous),this.root=Me(e,t),this.state={root:an(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Kn,options:t,queue:new Xn((n,r)=>this.callbackInvoker(r,n,s)),symlinks:new Map,visited:[""].slice(0,0),controller:new Vn,fs:t.fs||Ws},this.joinPath=pn(this.root,t),this.pushDirectory=Fn(this.root,t),this.pushFile=bn(t),this.getArray=wn(t),this.groupFiles=_n(t),this.resolveSymlink=kn(t,this.isSynchronous),this.walkDirectory=qn(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,s)=>{const{paths:n,options:{filters:r,resolveSymlinks:o,excludeSymlinks:i,exclude:l,maxFiles:d,signal:p,useRealPaths:m,pathSeparator:b},controller:C}=this.state;if(C.aborted||p&&p.aborted||d&&n.length>d)return;const f=this.getArray(this.state.paths);for(let $=0;$<e.length;++$){const F=e[$];if(F.isFile()||F.isSymbolicLink()&&!o&&!i){const w=this.joinPath(F.name,t);this.pushFile(w,f,this.state.counts,r)}else if(F.isDirectory()){let w=Dn(F.name,t,this.state.options.pathSeparator);if(l&&l(F.name,w))continue;this.pushDirectory(w,n,r),this.walkDirectory(this.state,w,w,s-1,this.walk)}else if(this.resolveSymlink&&F.isSymbolicLink()){let w=Xt(F.name,t);this.resolveSymlink(w,this.state,(_,h)=>{if(_.isDirectory()){if(h=Me(h,this.state.options),l&&l(F.name,m?h:w+b))return;this.walkDirectory(this.state,h,m?h:w+b,s-1,this.walk)}else{h=m?h:w;const g=Zs(h),a=Me(Ve(h),this.state.options);h=this.joinPath(g,a),this.pushFile(h,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function Qn(u,e){return new Promise((t,s)=>{Jt(u,e,(n,r)=>{if(n)return s(n);t(r)})})}function Jt(u,e,t){new Qt(u,e,t).start()}function Jn(u,e){return new Qt(u,e).start()}var bt=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return Qn(this.root,this.options)}withCallback(e){Jt(this.root,this.options,e)}sync(){return Jn(this.root,this.options)}};let Zt=null;try{Bt.resolve("picomatch"),Zt=Bt("picomatch")}catch{}var Zn=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:zt,filters:[]};globFunction;constructor(u){this.options={...this.options,...u},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(u){return this.options.pathSeparator=u,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(u){return this.options.maxDepth=u,this}withMaxFiles(u){return this.options.maxFiles=u,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:u=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=u,this.withFullPaths()}withAbortSignal(u){return this.options.signal=u,this}normalize(){return this.options.normalizePath=!0,this}filter(u){return this.options.filters.push(u),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(u){return this.options.exclude=u,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(u){return new bt(u||".",this.options)}withGlobFunction(u){return this.globFunction=u,this}crawlWithOptions(u,e){return this.options={...this.options,...e},new bt(u||".",this.options)}glob(...u){return this.globFunction?this.globWithOptions(u):this.globWithOptions(u,{dot:!0})}globWithOptions(u,...e){const t=this.globFunction||Zt;if(!t)throw new Error("Please specify a glob function to use glob matching.");var s=this.globCache[u.join("\0")];return s||(s=t(u,...e),this.globCache[u.join("\0")]=s),this.options.filters.push(n=>s(n)),this}};const Yn=Array.isArray,Yt=/\\/g,uo=/^[A-Za-z]:$/,ur=process.platform==="win32",eo=/^(\/?\.\.)+$/;function $t(u,e={}){const t=u.length,s=Array(t),n=Array(t);let r,o;for(r=0;r<t;r++){const i=er(u[r]);s[r]=i;const l=i.length,d=Array(l);for(o=0;o<l;o++)d[o]=Ru(i[o],e);n[r]=d}return i=>{const l=i.split("/");if(l[0]===".."&&eo.test(i))return!0;for(r=0;r<t;r++){const d=s[r],p=n[r],m=l.length,b=Math.min(m,d.length);for(o=0;o<b;){const C=d[o];if(C.includes("/"))return!0;if(!p[o](l[o]))break;if(!e.noglobstar&&C==="**")return!0;o++}if(o===m)return!0}return!1}}const to=/^[A-Z]:\/$/i,ro=ur?u=>to.test(u):u=>u==="/";function vt(u,e,t){if(u===e||e.startsWith(`${u}/`)){if(t){const n=u.length+ +!ro(u);return(r,o)=>r.slice(n,o?-1:void 0)||"."}const s=e.slice(u.length+1);return s?(n,r)=>{if(n===".")return s;const o=`${s}/${n}`;return r?o.slice(0,-1):o}:(n,r)=>r&&n!=="."?n.slice(0,-1):n}return t?s=>ku.relative(u,s)||".":s=>ku.relative(u,`${e}/${s}`)||"."}function so(u,e){if(e.startsWith(`${u}/`)){const t=e.slice(u.length+1);return s=>`${t}/${s}`}return t=>{const s=ku.relative(u,`${e}/${t}`);return t[t.length-1]==="/"&&s!==""?`${s}/`:s||"."}}function wt(u){return u.replace(uo,e=>`${e}/`)}const no={parts:!0};function er(u){var e;const t=Ru.scan(u,no);return!((e=t.parts)===null||e===void 0)&&e.length?t.parts:[u]}const oo=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,io=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,ao=u=>u.replace(oo,"\\$&"),lo=u=>u.replace(io,"\\$&"),co=ur?lo:ao;function Do(u,e){const t=Ru.scan(u);return t.isGlob||t.negated}function ge(...u){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...u)}function tr(u){return typeof u=="string"?[u]:u??[]}const po=/^(\/?\.\.)+/,fo=/\\(?=[()[\]{}!*+?@|])/g;function je(u,e,t,s){var n;const r=e.cwd;let o=u;u[u.length-1]==="/"&&(o=u.slice(0,-1));const i=o.lastIndexOf("/"),l=(i===-1?o:o.slice(i+1)).startsWith("!(");o[o.length-1]!=="*"&&!l&&e.expandDirectories&&(o+="/**");const d=co(r);o=en(o.replace(fo,""))?ku.relative(d,o):ku.normalize(o);const p=(n=po.exec(o))===null||n===void 0?void 0:n[0],m=er(o);if(p){const C=(p.length+1)/3;let f=0;const $=d.split("/");for(;f<C&&m[f+C]===$[$.length+f-C];)o=o.slice(0,(C-f-1)*3)+o.slice((C-f)*3+m[f+C].length+1)||".",f++;const F=ku.join(r,p.slice(f*3));F[0]!=="."&&t.root.length>F.length&&(t.root=wt(F),t.depthOffset=-C+f)}if(!s&&t.depthOffset>=0){var b;(b=t.commonPath)!==null&&b!==void 0||(t.commonPath=m);const C=[],f=Math.min(t.commonPath.length,m.length);for(let $=0;$<f;$++){const F=m[$];if(F==="**"&&!m[$+1]){C.pop();break}if($===m.length-1||F!==t.commonPath[$]||Do(F))break;C.push(F)}t.depthOffset=C.length,t.commonPath=C,t.root=wt(C.length>0?ku.join(r,...C):r)}return o}function Ao(u,e,t){const s=[],n=[],r=[];for(const o of u.ignore)o&&(o[0]!=="!"||o[1]==="("?n.push(je(o,u,t,!0)):r.push(o.slice(1)));for(const o of e)o&&(o[0]!=="!"||o[1]==="("?s.push(je(o,u,t,!1)):(o[1]!=="!"||o[2]==="(")&&n.push(je(o.slice(1),u,t,!0)));return{match:s,ignore:n,unignore:r}}function ho(u,e){const t=u.cwd,s={root:t,depthOffset:0},n=Ao(u,e,s);u.debug&&ge("internal processing patterns:",n);const{absolute:r,caseSensitiveMatch:o,debug:i,dot:l,followSymbolicLinks:d,onlyDirectories:p}=u,m=s.root.replace(Yt,""),b={dot:l,nobrace:u.braceExpansion===!1,nocase:!o,noextglob:u.extglob===!1,noglobstar:u.globstar===!1,posix:!0},C=n.unignore.length>0,f=C?Ru(n.unignore,b):void 0,$=C?$t(n.unignore,b):void 0,F=Ru(n.match,{...b,ignore:n.ignore,onIgnore:f?S=>f(S.output)&&Ru.constants.UNIGNORE:void 0}),w=Ru(n.ignore,b),_=$t(n.match,b),h=vt(t,m,r),g=r?h:vt(t,m,!0),a=n.match.length>0&&n.match.every(S=>S==="**"||S==="**/*"),T=n.ignore.length>0||C||!a?(S,v)=>{const j=g(v,!0);return j==="."||$&&$(j)?!1:!_(j)||w(j)}:void 0;let O;u.deep!==void 0&&(O=Math.round(u.deep-s.depthOffset));const x=new Zn({filters:[i?(S,v)=>{const j=h(S,v),q=F(j);return q&&ge(`matched ${j}`),q}:(S,v)=>{const j=h(S,v);return F(j)}],exclude:i&&T?(S,v)=>{const j=T(S,v);return ge(`${j?"skipped":"crawling"} ${v}`),j}:T,fs:u.fs,pathSeparator:"/",relativePaths:!r,resolvePaths:r,includeBasePath:r,resolveSymlinks:d,excludeSymlinks:!d,excludeFiles:p,includeDirs:p||!u.onlyFiles,maxDepth:O,signal:u.signal}).crawl(m);return u.debug&&ge("internal properties:",{...s,root:m}),[x,t!==m&&!r&&so(t,m)]}function Eo(u,e){if(e)for(let t=u.length-1;t>=0;t--)u[t]=e(u[t]);return u}const xt={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Co(u){const e=Object.assign({},u);for(const t in xt)e[t]===void 0&&Object.assign(e,{[t]:xt[t]});return e.cwd=(e.cwd instanceof URL?tn(e.cwd):Wt(e.cwd||process.cwd())).replace(Yt,"/"),e.ignore=tr(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||Js,readdirSync:e.fs.readdirSync||Qs,realpath:e.fs.realpath||Vs,realpathSync:e.fs.realpathSync||Ks,stat:e.fs.stat||Xs,statSync:e.fs.statSync||qs}),e.debug&&ge("globbing with options:",e),e}function Fo(u,e={}){var t;if(u&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const s=Yn(u)||typeof u=="string",n=tr((t=s?u:u.patterns)!==null&&t!==void 0?t:"**/*"),r=Co(s?e:u);return n.length>0?ho(r,n):[]}async function Ma(u,e){const[t,s]=Fo(u,e);return t?Eo(await t.withPromise(),s):[]}var Ge,St;function go(){if(St)return Ge;St=1;/*!
2
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
3
- *
4
- * Copyright (c) 2014-2016, Jon Schlinkert.
5
- * Licensed under the MIT License.
6
- */return Ge=function(u){if(typeof u!="string"||u==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(u);){if(e[2])return!0;u=u.slice(e.index+e[0].length)}return!1},Ge}var Ue,_t;function rr(){if(_t)return Ue;_t=1;/*!
7
- * is-glob <https://github.com/jonschlinkert/is-glob>
8
- *
9
- * Copyright (c) 2014-2017, Jon Schlinkert.
10
- * Released under the MIT License.
11
- */var u=go(),e={"{":"}","(":")","[":"]"},t=function(n){if(n[0]==="!")return!0;for(var r=0,o=-2,i=-2,l=-2,d=-2,p=-2;r<n.length;){if(n[r]==="*"||n[r+1]==="?"&&/[\].+)]/.test(n[r])||i!==-1&&n[r]==="["&&n[r+1]!=="]"&&(i<r&&(i=n.indexOf("]",r)),i>r&&(p===-1||p>i||(p=n.indexOf("\\",r),p===-1||p>i)))||l!==-1&&n[r]==="{"&&n[r+1]!=="}"&&(l=n.indexOf("}",r),l>r&&(p=n.indexOf("\\",r),p===-1||p>l))||d!==-1&&n[r]==="("&&n[r+1]==="?"&&/[:!=]/.test(n[r+2])&&n[r+3]!==")"&&(d=n.indexOf(")",r),d>r&&(p=n.indexOf("\\",r),p===-1||p>d))||o!==-1&&n[r]==="("&&n[r+1]!=="|"&&(o<r&&(o=n.indexOf("|",r)),o!==-1&&n[o+1]!==")"&&(d=n.indexOf(")",o),d>o&&(p=n.indexOf("\\",o),p===-1||p>d))))return!0;if(n[r]==="\\"){var m=n[r+1];r+=2;var b=e[m];if(b){var C=n.indexOf(b,r);C!==-1&&(r=C+1)}if(n[r]==="!")return!0}else r++}return!1},s=function(n){if(n[0]==="!")return!0;for(var r=0;r<n.length;){if(/[*?{}()[\]]/.test(n[r]))return!0;if(n[r]==="\\"){var o=n[r+1];r+=2;var i=e[o];if(i){var l=n.indexOf(i,r);l!==-1&&(r=l+1)}if(n[r]==="!")return!0}else r++}return!1};return Ue=function(n,r){if(typeof n!="string"||n==="")return!1;if(u(n))return!0;var o=t;return r&&r.strict===!1&&(o=s),o(n)},Ue}let mo;const yo=u=>(mo??=I(import.meta.url))(u),ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,sr=u=>{if(typeof ue<"u"&&ue.versions&&ue.versions.node){const[e,t]=ue.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ue.getBuiltinModule(u)}return yo(u)},Bo=sr("path"),bo=sr("os");var ze,Tt;function $o(){if(Tt)return ze;Tt=1;var u=rr(),e=Bo.posix.dirname,t=bo.platform()==="win32",s="/",n=/\\/g,r=/\\([!*?|[\](){}])/g;ze=function(l,d){var p=Object.assign({flipBackslashes:!0},d);p.flipBackslashes&&t&&l.indexOf(s)<0&&(l=l.replace(n,s)),o(l)&&(l+=s),l+="a";do l=e(l);while(i(l));return l.replace(r,"$1")};function o(l){var d=l.slice(-1),p;switch(d){case"}":p="{";break;case"]":p="[";break;default:return!1}var m=l.indexOf(p);return m<0?!1:l.slice(m+1,-1).includes(s)}function i(l){return/\([^()]+$/.test(l)||l[0]==="{"||l[0]==="["||/[^\\][{[]/.test(l)?!0:u(l)}return ze}var vo=$o();tt(vo);let wo;const xo=u=>(wo??=I(import.meta.url))(u),ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,So=u=>{if(typeof ee<"u"&&ee.versions&&ee.versions.node){const[e,t]=ee.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ee.getBuiltinModule(u)}return xo(u)},{access:_o}=So("node:fs/promises");async function ja(u,e=ut){bu(u),u=yu(u);try{return await _o(u,e),!0}catch{return!1}}let To;const Ro=u=>(To??=I(import.meta.url))(u),te=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ko=u=>{if(typeof te<"u"&&te.versions&&te.versions.node){const[e,t]=te.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return te.getBuiltinModule(u)}return Ro(u)},{accessSync:No}=ko("node:fs");function Qe(u,e=ut){bu(u),u=yu(u);try{return No(u,e),!0}catch{return!1}}var Oo=rr();tt(Oo);let Lo;const Po=u=>(Lo??=I(import.meta.url))(u),re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nr=u=>{if(typeof re<"u"&&re.versions&&re.versions.node){const[e,t]=re.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return re.getBuiltinModule(u)}return Po(u)};nr("node:fs/promises");nr("node:fs");let Ho=class extends Error{constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}},Io=class extends Error{constructor(e){super(`EPERM: Operation not permitted, ${e}`)}get code(){return"EPERM"}set code(e){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(e){throw new Error("Cannot overwrite name of PermissionError")}};const or=(u,e)=>{const t=u?.code;return t==="ENOENT"?new Ho(`no such file or directory, open '${e}'`):t==="EACCES"||t==="EPERM"?new Io(`unable to read the non-readable file: ${e}`):u};let Mo;const jo=u=>(Mo??=I(import.meta.url))(u),se=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ir=u=>{if(typeof se<"u"&&se.versions&&se.versions.node){const[e,t]=se.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return se.getBuiltinModule(u)}return jo(u)},{readFile:Go}=ir("node:fs/promises"),{unzip:Uo,brotliDecompress:zo}=ir("node:zlib"),Wo={brotli:zo,gzip:Uo,none:(u,e)=>{e(null,u)}},za=async(u,e)=>{bu(u),u=yu(u);const{buffer:t,compression:s,encoding:n,flag:r}=e??{};let o;try{o=await Go(u,r?{flag:r}:{})}catch(i){throw or(i,u)}return await new Promise((i,l)=>{Wo[s??"none"](o,(d,p)=>{d?l(d):i(t?p:p.toString(n??"utf8"))})})};let qo;const Xo=u=>(qo??=I(import.meta.url))(u),ne=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ar=u=>{if(typeof ne<"u"&&ne.versions&&ne.versions.node){const[e,t]=ne.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ne.getBuiltinModule(u)}return Xo(u)},{readFileSync:Ko}=ar("node:fs"),{unzipSync:Vo,brotliDecompressSync:Qo}=ar("node:zlib"),Jo={brotli:Qo,gzip:Vo,none:u=>u},Zo=(u,e)=>{bu(u),u=yu(u);const{buffer:t,compression:s,encoding:n,flag:r}=e??{};let o;try{o=Ko(u,r?{flag:r}:{})}catch(d){throw or(d,u)}const i=Jo[s??"none"],l=i(o);return t?l:l.toString(n??"utf8")};let Yo;const ui=u=>(Yo??=I(import.meta.url))(u),oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ei=u=>{if(typeof oe<"u"&&oe.versions&&oe.versions.node){const[e,t]=oe.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return oe.getBuiltinModule(u)}return ui(u)},{createRequire:lr}=ei("node:module"),ti=globalThis.process??Object.create(null),Rt={versions:{}},kt=new Proxy(ti,{get(u,e){if(e in u)return u[e];if(e in Rt)return Rt[e]}}),ri=u=>u.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
12
- `),si=(u,e,t,s)=>{const n={column:0,line:-1,...u.start},r={...n,...u.end},o=n.line,i=n.column,l=r.line,d=r.column;let p=Math.max(o-(t+1),0),m=Math.min(e.length,l+s);o===-1&&(p=0),l===-1&&(m=e.length);const b=l-o,C={};if(b)for(let f=0;f<=b;f++){const $=f+o;if(!i)C[$]=!0;else if(f===0){const F=e[$-1]?.length;C[$]=[i,(F??0)-i+1]}else if(f===b)C[$]=[0,d];else{const F=e[$-f]?.length;C[$]=[0,F]}}else i===d?C[o]=i?[i,0]:!0:C[o]=[i,(d??0)-(i??0)];return{end:m,markerLines:C,start:p}},ni=kt.platform==="win32"&&!kt.env?.WT_SESSION?">":"❯",Wa=(u,e,t)=>{const s={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...t,color:{gutter:f=>f,marker:f=>f,message:f=>f,...t?.color}},n=typeof e.start.column=="number";let r=(u.includes("\r")?ri(u):u).split(`
13
- `);typeof s.tabWidth=="number"&&u.includes(" ")&&(r=r.map(f=>f.replaceAll(" "," ".repeat(s.tabWidth))));const{end:o,markerLines:i,start:l}=si(e,r,s.linesAbove,s.linesBelow),d=String(o).length,{gutter:p,marker:m,message:b}=s.color;let C=r.slice(l,o).map((f,$)=>{const F=l+1+$,w=i[F],_=String(F).padStart(d),h=!i[F+1],g=` ${_}${s.showGutter?" |":""}`;if(w){let a="";if(Array.isArray(w)){const T=f.replaceAll(/[^\t]/g," ").slice(0,Math.max(w[0]-1,0)),O=w[1]||1;a=[`
14
- `,s.prefix+p(g.replaceAll(/\d/g," "))," ",T,m("^").repeat(O)].join(""),h&&s.message&&(a+=` ${b(s.message)}`)}return[s.prefix+m(ni),p(g),f.length>0?` ${f}`:"",a].join("")}return`${s.prefix} ${p(g)}${f.length>0?` ${f}`:""}`}).join(`
15
- `);return s.message&&!n&&(C=`${s.prefix+" ".repeat(d+1)+s.message}
16
- ${C}`),C},Nt=(u,e)=>{let t=0,s=e.length-2;for(;t<s;){const n=t+(s-t>>1);if(u<e[n])s=n-1;else if(u>=e[n+1])t=n+1;else{t=n;break}}return t},oi=/\n|\r(?!\n)/,ii=u=>u.split(oi).reduce((e,t)=>(e.push(e.at(-1)+t.length+1),e),[0]),qa=(u,e,t)=>{if(!Array.isArray(u)&&typeof u!="string"||(typeof u=="string"||Array.isArray(u))&&u.length===0)return{column:0,line:0};if(typeof e!="number"||typeof u=="string"&&e>=u.length||Array.isArray(u)&&e+1>=u.at(-1))return{column:0,line:0};if(typeof u=="string"){const n=ii(u),r=Nt(e,n);return{column:e-n[r]+1,line:r+1}}const s=Nt(e,u);return{column:e-u[s]+1,line:s+1}},ai=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);typeof AggregateError<"u"&&ai.set("AggregateError",AggregateError);let li;const ci=u=>(li??=lr(import.meta.url))(u),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Di=u=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[e,t]=ie.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ie.getBuiltinModule(u)}return ci(u)};Di("node:util");let pi;const fi=u=>(pi??=lr(import.meta.url))(u),ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,rt=u=>{if(typeof ae<"u"&&ae.versions&&ae.versions.node){const[e,t]=ae.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ae.getBuiltinModule(u)}return fi(u)};rt("node:fs");rt("node:path");rt("node:url");let Xa=class extends Error{fileName;codeFrame;name="JSONError";#u;constructor(e){super(),this.#u=e}get message(){return`${this.#u}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
17
-
18
- ${this.codeFrame}
19
- `:""}`}set message(e){this.#u=e}};const Ai=u=>{const e={force:!0,recursive:!0};return u?.maxRetries!==void 0&&(e.maxRetries=u.maxRetries),u?.retryDelay!==void 0&&(e.retryDelay=u.retryDelay),e};let hi;const Ei=u=>(hi??=I(import.meta.url))(u),le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cr=u=>{if(typeof le<"u"&&le.versions&&le.versions.node){const[e,t]=le.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return le.getBuiltinModule(u)}return Ei(u)};cr("node:fs");cr("node:fs/promises");let Ci;const Fi=u=>(Ci??=I(import.meta.url))(u),ce=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gi=u=>{if(typeof ce<"u"&&ce.versions&&ce.versions.node){const[e,t]=ce.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ce.getBuiltinModule(u)}return Fi(u)};gi("node:fs");let di;const mi=u=>(di??=I(import.meta.url))(u),De=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yi=u=>{if(typeof De<"u"&&De.versions&&De.versions.node){const[e,t]=De.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return De.getBuiltinModule(u)}return mi(u)};yi("node:fs/promises");let Bi;const bi=u=>(Bi??=I(import.meta.url))(u),pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$i=u=>{if(typeof pe<"u"&&pe.versions&&pe.versions.node){const[e,t]=pe.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return pe.getBuiltinModule(u)}return bi(u)},{rmSync:vi}=$i("node:fs"),Va=(u,e={})=>{bu(u),vi(u,Ai(e))},wi=u=>{if(typeof u!="string"&&!(u instanceof ArrayBuffer)&&!ArrayBuffer.isView(u))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")};let xi;const Si=u=>(xi??=I(import.meta.url))(u),fe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_i=u=>{if(typeof fe<"u"&&fe.versions&&fe.versions.node){const[e,t]=fe.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return fe.getBuiltinModule(u)}return Si(u)},{randomBytes:Ti}=_i("node:crypto"),Ri=u=>`${u}.${process.pid.toString(36)}.${Ti(6).toString("hex")}.tmp`,ki=new TextEncoder,Ni=u=>{if(u instanceof Uint8Array)return u;if(typeof u=="string")return ki.encode(u);if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u)){const e=u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")};let Oi;const Li=u=>(Oi??=I(import.meta.url))(u),Ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Pi=u=>{if(typeof Ae<"u"&&Ae.versions&&Ae.versions.node){const[e,t]=Ae.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ae.getBuiltinModule(u)}return Li(u)};Pi("node:fs/promises");let Hi;const Ii=u=>(Hi??=I(import.meta.url))(u),he=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Mi=u=>{if(typeof he<"u"&&he.versions&&he.versions.node){const[e,t]=he.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return he.getBuiltinModule(u)}return Ii(u)},{mkdirSync:ji,writeFileSync:Gi,statSync:Ui,renameSync:Ot,chownSync:zi,chmodSync:Wi,unlinkSync:qi}=Mi("node:fs"),Xi=(u,e,t)=>{t={backup:!1,encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...t},bu(u),wi(e),u=yu(u);const s=Qe(u,ut);if(s&&!t.overwrite)throw new Mr(`file already exists, open '${u}'`);const n=Ri(u);try{!s&&t.recursive&&ji(et(u),{recursive:!0});let r;if(Gi(n,typeof e=="string"?Buffer.from(e,t.encoding??"utf8"):Ni(e),{flag:"wx"}),s&&t.backup&&(r=Ui(u),t.chown??={gid:r.gid,uid:r.uid},Ot(u,`${u}.bak`)),t.chown)try{zi(n,t.chown.uid,t.chown.gid)}catch{}Wi(n,r&&!t.mode?r.mode:t.mode??438),Ot(n,u)}catch(r){throw new Error(`Failed to write file at: ${u} - ${r.message}`,{cause:r})}finally{Qe(n)&&qi(n)}},Ki=/^(?:( )+|\t+)/,Be="space";function Lt(u,e,t){return u&&e===Be&&t===1}function Pt(u,e){const t=new Map;let s=0,n,r;for(const o of u.split(/\n/g)){if(!o)continue;const i=o.match(Ki);if(i===null)s=0,n="";else{const l=i[0].length,d=i[1]?Be:"tab";if(Lt(e,d,l))continue;d!==n&&(s=0),n=d;let p=1,m=0;const b=l-s;if(s=l,b===0)p=0,m=1;else{const f=Math.abs(b);if(Lt(e,d,f))continue;r=Vi(d,f)}const C=t.get(r);t.set(r,C===void 0?[1,0]:[C[0]+p,C[1]+m])}}return t}function Vi(u,e){return(u===Be?"s":"t")+String(e)}function Qi(u){const e=u[0]==="s"?Be:"tab",t=Number(u.slice(1));return{type:e,amount:t}}function Ji(u){let e,t=0,s=0;for(const[n,[r,o]]of u)(r>t||r===t&&o>s)&&(t=r,s=o,e=n);return e}function Zi(u,e){return(u===Be?" ":" ").repeat(e)}function Yi(u){if(typeof u!="string")throw new TypeError("Expected a string");let e=Pt(u,!0);e.size===0&&(e=Pt(u,!1));const t=Ji(e);let s,n=0,r="";return t!==void 0&&({type:s,amount:n}=Qi(t),r=Zi(s,n)),{amount:n,type:s,indent:r}}let ua;const ea=u=>(ua??=I(import.meta.url))(u),Ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ta=u=>{if(typeof Ee<"u"&&Ee.versions&&Ee.versions.node){const[e,t]=Ee.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ee.getBuiltinModule(u)}return ea(u)};ta("node:fs/promises");let ra;const sa=u=>(ra??=I(import.meta.url))(u),Ce=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,na=u=>{if(typeof Ce<"u"&&Ce.versions&&Ce.versions.node){const[e,t]=Ce.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ce.getBuiltinModule(u)}return sa(u)},{readFileSync:oa}=na("node:fs"),Qa=(u,e,t={})=>{const{detectIndent:s,indent:n,replacer:r,stringify:o=JSON.stringify,...i}={indent:" ",...t};let l=n,d=`
20
- `;if(Qe(u,gr))try{const m=oa(u,"utf8");if(s){const{indent:b}=Yi(m);l=b}d=m.endsWith(`
21
- `)?`
22
- `:""}catch(m){if(m.code!=="ENOENT")throw m}const p=o(e,r,l);Xi(u,`${p}${d}`,i)};let ia;const aa=u=>(ia??=I(import.meta.url))(u),Fe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,st=u=>{if(typeof Fe<"u"&&Fe.versions&&Fe.versions.node){const[e,t]=Fe.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Fe.getBuiltinModule(u)}return aa(u)},la=st("fs"),ca=st("os"),Da=st("path");var We={},Ht;function pa(){if(Ht)return We;Ht=1;var u=Object.defineProperty,e=(p,m)=>u(p,"name",{value:m,configurable:!0}),t=la,s=ca,n=Da;const r=e(p=>{let m="";for(let b=0;b<p.length;b+=1){const C=p[b],f=C.toUpperCase();m+=C===f?C.toLowerCase():f}return m},"invertCase"),o=new Map,i=e((p,m)=>{const b=n.join(p,`.is-fs-case-sensitive-test-${process.pid}`);try{return m.writeFileSync(b,""),!m.existsSync(r(b))}finally{try{m.unlinkSync(b)}catch{}}},"checkDirectoryCaseWithWrite"),l=e((p,m,b)=>{try{return i(p,b)}catch(C){if(m===void 0)return i(s.tmpdir(),b);throw C}},"checkDirectoryCaseWithFallback"),d=e((p,m=t,b=!0)=>{const C=p??process.cwd();if(b&&o.has(C))return o.get(C);let f;const $=r(C);return $!==C&&m.existsSync(C)?f=!m.existsSync($):f=l(C,p,m),b&&o.set(C,f),f},"isFsCaseSensitive");return We.isFsCaseSensitive=d,We}var fa=pa();const Ja=fa.isFsCaseSensitive;function Za(u,e,t){const{buffer:s,compression:n,encoding:r="utf8",flag:o,...i}={},l=Zo(u,{buffer:s,compression:n,encoding:r,flag:o});return typeof e=="function"?it(l,e,i):it(l,i)}var Aa=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ha=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Ea=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,qe={Space_Separator:Aa,ID_Start:ha,ID_Continue:Ea},Y={isSpaceSeparator(u){return typeof u=="string"&&qe.Space_Separator.test(u)},isIdStartChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||qe.ID_Start.test(u))},isIdContinueChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u==="‌"||u==="‍"||qe.ID_Continue.test(u))},isDigit(u){return typeof u=="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u=="string"&&/[0-9A-Fa-f]/.test(u)}};let Je,ou,mu,Te,Su,fu,eu,nt,me;var Ca=function(u,e){Je=String(u),ou="start",mu=[],Te=0,Su=1,fu=0,eu=void 0,nt=void 0,me=void 0;do eu=Fa(),ma[ou]();while(eu.type!=="eof");return typeof e=="function"?Ze({"":me},"",e):me};function Ze(u,e,t){const s=u[e];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(let n=0;n<s.length;n++){const r=String(n),o=Ze(s,r,t);o===void 0?delete s[r]:Object.defineProperty(s,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const n in s){const r=Ze(s,n,t);r===void 0?delete s[n]:Object.defineProperty(s,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}return t.call(u,e,s)}let N,k,de,du,H;function Fa(){for(N="default",k="",de=!1,du=1;;){H=Bu();const u=Dr[N]();if(u)return u}}function Bu(){if(Je[Te])return String.fromCodePoint(Je.codePointAt(Te))}function E(){const u=Bu();return u===`
23
- `?(Su++,fu=0):u?fu+=u.length:fu++,u&&(Te+=u.length),u}const Dr={default(){switch(H){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
24
- `:case"\r":case"\u2028":case"\u2029":E();return;case"/":E(),N="comment";return;case void 0:return E(),W("eof")}if(Y.isSpaceSeparator(H)){E();return}return Dr[ou]()},comment(){switch(H){case"*":E(),N="multiLineComment";return;case"/":E(),N="singleLineComment";return}throw V(E())},multiLineComment(){switch(H){case"*":E(),N="multiLineCommentAsterisk";return;case void 0:throw V(E())}E()},multiLineCommentAsterisk(){switch(H){case"*":E();return;case"/":E(),N="default";return;case void 0:throw V(E())}E(),N="multiLineComment"},singleLineComment(){switch(H){case`
25
- `:case"\r":case"\u2028":case"\u2029":E(),N="default";return;case void 0:return E(),W("eof")}E()},value(){switch(H){case"{":case"[":return W("punctuator",E());case"n":return E(),_u("ull"),W("null",null);case"t":return E(),_u("rue"),W("boolean",!0);case"f":return E(),_u("alse"),W("boolean",!1);case"-":case"+":E()==="-"&&(du=-1),N="sign";return;case".":k=E(),N="decimalPointLeading";return;case"0":k=E(),N="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":k=E(),N="decimalInteger";return;case"I":return E(),_u("nfinity"),W("numeric",1/0);case"N":return E(),_u("aN"),W("numeric",NaN);case'"':case"'":de=E()==='"',k="",N="string";return}throw V(E())},identifierNameStartEscape(){if(H!=="u")throw V(E());E();const u=Ye();switch(u){case"$":case"_":break;default:if(!Y.isIdStartChar(u))throw It();break}k+=u,N="identifierName"},identifierName(){switch(H){case"$":case"_":case"‌":case"‍":k+=E();return;case"\\":E(),N="identifierNameEscape";return}if(Y.isIdContinueChar(H)){k+=E();return}return W("identifier",k)},identifierNameEscape(){if(H!=="u")throw V(E());E();const u=Ye();switch(u){case"$":case"_":case"‌":case"‍":break;default:if(!Y.isIdContinueChar(u))throw It();break}k+=u,N="identifierName"},sign(){switch(H){case".":k=E(),N="decimalPointLeading";return;case"0":k=E(),N="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":k=E(),N="decimalInteger";return;case"I":return E(),_u("nfinity"),W("numeric",du*(1/0));case"N":return E(),_u("aN"),W("numeric",NaN)}throw V(E())},zero(){switch(H){case".":k+=E(),N="decimalPoint";return;case"e":case"E":k+=E(),N="decimalExponent";return;case"x":case"X":k+=E(),N="hexadecimal";return}return W("numeric",du*0)},decimalInteger(){switch(H){case".":k+=E(),N="decimalPoint";return;case"e":case"E":k+=E(),N="decimalExponent";return}if(Y.isDigit(H)){k+=E();return}return W("numeric",du*Number(k))},decimalPointLeading(){if(Y.isDigit(H)){k+=E(),N="decimalFraction";return}throw V(E())},decimalPoint(){switch(H){case"e":case"E":k+=E(),N="decimalExponent";return}if(Y.isDigit(H)){k+=E(),N="decimalFraction";return}return W("numeric",du*Number(k))},decimalFraction(){switch(H){case"e":case"E":k+=E(),N="decimalExponent";return}if(Y.isDigit(H)){k+=E();return}return W("numeric",du*Number(k))},decimalExponent(){switch(H){case"+":case"-":k+=E(),N="decimalExponentSign";return}if(Y.isDigit(H)){k+=E(),N="decimalExponentInteger";return}throw V(E())},decimalExponentSign(){if(Y.isDigit(H)){k+=E(),N="decimalExponentInteger";return}throw V(E())},decimalExponentInteger(){if(Y.isDigit(H)){k+=E();return}return W("numeric",du*Number(k))},hexadecimal(){if(Y.isHexDigit(H)){k+=E(),N="hexadecimalInteger";return}throw V(E())},hexadecimalInteger(){if(Y.isHexDigit(H)){k+=E();return}return W("numeric",du*Number(k))},string(){switch(H){case"\\":E(),k+=ga();return;case'"':if(de)return E(),W("string",k);k+=E();return;case"'":if(!de)return E(),W("string",k);k+=E();return;case`
26
- `:case"\r":throw V(E());case"\u2028":case"\u2029":ya(H);break;case void 0:throw V(E())}k+=E()},start(){switch(H){case"{":case"[":return W("punctuator",E())}N="value"},beforePropertyName(){switch(H){case"$":case"_":k=E(),N="identifierName";return;case"\\":E(),N="identifierNameStartEscape";return;case"}":return W("punctuator",E());case'"':case"'":de=E()==='"',N="string";return}if(Y.isIdStartChar(H)){k+=E(),N="identifierName";return}throw V(E())},afterPropertyName(){if(H===":")return W("punctuator",E());throw V(E())},beforePropertyValue(){N="value"},afterPropertyValue(){switch(H){case",":case"}":return W("punctuator",E())}throw V(E())},beforeArrayValue(){if(H==="]")return W("punctuator",E());N="value"},afterArrayValue(){switch(H){case",":case"]":return W("punctuator",E())}throw V(E())},end(){throw V(E())}};function W(u,e){return{type:u,value:e,line:Su,column:fu}}function _u(u){for(const e of u){if(Bu()!==e)throw V(E());E()}}function ga(){switch(Bu()){case"b":return E(),"\b";case"f":return E(),"\f";case"n":return E(),`
27
- `;case"r":return E(),"\r";case"t":return E()," ";case"v":return E(),"\v";case"0":if(E(),Y.isDigit(Bu()))throw V(E());return"\0";case"x":return E(),da();case"u":return E(),Ye();case`
28
- `:case"\u2028":case"\u2029":return E(),"";case"\r":return E(),Bu()===`
29
- `&&E(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw V(E());case void 0:throw V(E())}return E()}function da(){let u="",e=Bu();if(!Y.isHexDigit(e)||(u+=E(),e=Bu(),!Y.isHexDigit(e)))throw V(E());return u+=E(),String.fromCodePoint(parseInt(u,16))}function Ye(){let u="",e=4;for(;e-- >0;){const t=Bu();if(!Y.isHexDigit(t))throw V(E());u+=E()}return String.fromCodePoint(parseInt(u,16))}const ma={start(){if(eu.type==="eof")throw Tu();Xe()},beforePropertyName(){switch(eu.type){case"identifier":case"string":nt=eu.value,ou="afterPropertyName";return;case"punctuator":xe();return;case"eof":throw Tu()}},afterPropertyName(){if(eu.type==="eof")throw Tu();ou="beforePropertyValue"},beforePropertyValue(){if(eu.type==="eof")throw Tu();Xe()},beforeArrayValue(){if(eu.type==="eof")throw Tu();if(eu.type==="punctuator"&&eu.value==="]"){xe();return}Xe()},afterPropertyValue(){if(eu.type==="eof")throw Tu();switch(eu.value){case",":ou="beforePropertyName";return;case"}":xe()}},afterArrayValue(){if(eu.type==="eof")throw Tu();switch(eu.value){case",":ou="beforeArrayValue";return;case"]":xe()}},end(){}};function Xe(){let u;switch(eu.type){case"punctuator":switch(eu.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=eu.value;break}if(me===void 0)me=u;else{const e=mu[mu.length-1];Array.isArray(e)?e.push(u):Object.defineProperty(e,nt,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")mu.push(u),Array.isArray(u)?ou="beforeArrayValue":ou="beforePropertyName";else{const e=mu[mu.length-1];e==null?ou="end":Array.isArray(e)?ou="afterArrayValue":ou="afterPropertyValue"}}function xe(){mu.pop();const u=mu[mu.length-1];u==null?ou="end":Array.isArray(u)?ou="afterArrayValue":ou="afterPropertyValue"}function V(u){return ot(u===void 0?`JSON5: invalid end of input at ${Su}:${fu}`:`JSON5: invalid character '${pr(u)}' at ${Su}:${fu}`)}function Tu(){return ot(`JSON5: invalid end of input at ${Su}:${fu}`)}function It(){return fu-=5,ot(`JSON5: invalid identifier character at ${Su}:${fu}`)}function ya(u){console.warn(`JSON5: '${pr(u)}' in strings is not valid ECMAScript; consider escaping`)}function pr(u){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[u])return e[u];if(u<" "){const t=u.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return u}function ot(u){const e=new SyntaxError(u);return e.lineNumber=Su,e.columnNumber=fu,e}var Ba=function(u,e,t){const s=[];let n="",r,o,i="",l;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(t=e.space,l=e.quote,e=e.replacer),typeof e=="function")o=e;else if(Array.isArray(e)){r=[];for(const f of e){let $;typeof f=="string"?$=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&($=String(f)),$!==void 0&&r.indexOf($)<0&&r.push($)}}return t instanceof Number?t=Number(t):t instanceof String&&(t=String(t)),typeof t=="number"?t>0&&(t=Math.min(10,Math.floor(t)),i=" ".substr(0,t)):typeof t=="string"&&(i=t.substr(0,10)),d("",{"":u});function d(f,$){let F=$[f];switch(F!=null&&(typeof F.toJSON5=="function"?F=F.toJSON5(f):typeof F.toJSON=="function"&&(F=F.toJSON(f))),o&&(F=o.call($,f,F)),F instanceof Number?F=Number(F):F instanceof String?F=String(F):F instanceof Boolean&&(F=F.valueOf()),F){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof F=="string")return p(F);if(typeof F=="number")return String(F);if(typeof F=="object")return Array.isArray(F)?C(F):m(F)}function p(f){const $={"'":.1,'"':.2},F={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let w="";for(let h=0;h<f.length;h++){const g=f[h];switch(g){case"'":case'"':$[g]++,w+=g;continue;case"\0":if(Y.isDigit(f[h+1])){w+="\\x00";continue}}if(F[g]){w+=F[g];continue}if(g<" "){let a=g.charCodeAt(0).toString(16);w+="\\x"+("00"+a).substring(a.length);continue}w+=g}const _=l||Object.keys($).reduce((h,g)=>$[h]<$[g]?h:g);return w=w.replace(new RegExp(_,"g"),F[_]),_+w+_}function m(f){if(s.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");s.push(f);let $=n;n=n+i;let F=r||Object.keys(f),w=[];for(const h of F){const g=d(h,f);if(g!==void 0){let a=b(h)+":";i!==""&&(a+=" "),a+=g,w.push(a)}}let _;if(w.length===0)_="{}";else{let h;if(i==="")h=w.join(","),_="{"+h+"}";else{let g=`,
30
- `+n;h=w.join(g),_=`{
31
- `+n+h+`,
32
- `+$+"}"}}return s.pop(),n=$,_}function b(f){if(f.length===0)return p(f);const $=String.fromCodePoint(f.codePointAt(0));if(!Y.isIdStartChar($))return p(f);for(let F=$.length;F<f.length;F++)if(!Y.isIdContinueChar(String.fromCodePoint(f.codePointAt(F))))return p(f);return f}function C(f){if(s.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");s.push(f);let $=n;n=n+i;let F=[];for(let _=0;_<f.length;_++){const h=d(String(_),f);F.push(h!==void 0?h:"null")}let w;if(F.length===0)w="[]";else if(i==="")w="["+F.join(",")+"]";else{let _=`,
33
- `+n,h=F.join(_);w=`[
34
- `+n+h+`,
35
- `+$+"]"}return s.pop(),n=$,w}};const ba={parse:Ca,stringify:Ba};var Ya=ba;export{Nu as A,Lu as B,Ma as C,et as H,Ss as I,Gt as J,Wa as P,Se as W,yu as _,ja as a,qa as b,Qa as c,Na as d,za as e,ka as f,Ho as g,Ta as h,Ya as i,_r as j,Pa as k,Qe as l,xr as m,wa as n,xa as o,Ja as p,Xi as q,Va as r,Xa as s,Za as u,Sa as w,_a as y,Zo as z};
@@ -1,2 +0,0 @@
1
- const G=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,P=/^-{1,2}(color=256)$/,L=/^-{1,2}(color=16m|color=full|color=truecolor)$/,D=/^-{1,2}(color|colors|color=true|color=always)$/,j=/-mono|dumb/i,F=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,V=/-256(color)?$/i,Y=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,U=()=>{const t=globalThis.process?.getBuiltinModule;return typeof t!="function"?"":t("node:os").release()},_=(t,e={})=>{const{isTTY:i,sniffFlags:o=!0}=e,l=globalThis,u=l.Deno!=null,c=l.process??l.Deno??{},m=c.argv??c.args??[],O=o?m.indexOf("--"):-1,a=d=>{if(!o)return!1;const R=m.findIndex(w=>d.test(w));return R!==-1&&(O===-1||R<O)};let r={};try{r=u?c.env.toObject():c.env??{}}catch{}const n="FORCE_COLOR",g=n in r,s=r[n]??void 0,p=typeof s=="string",S=typeof s=="number";let h;if(s==="true")h=1;else if(s==="false")h=0;else if(p&&s.length===0)h=1;else if(p&&s.length>0){const d=Number.parseInt(s,10);h=Number.isNaN(d)?void 0:Math.min(d,3)}else S&&(h=Number.isNaN(s)?void 0:Math.min(s,3));if(s!=="true"&&s!=="false"&&h!==void 0&&h<4)return h;const k=g&&h!==void 0&&h>0;if(g&&h===0||a(G)||!k&&"NO_COLOR"in r)return 0;if(a(P))return 2;if(a(L))return 3;if(a(D))return 1;const N=h??0;if("TF_BUILD"in r&&"AGENT_NAME"in r)return 1;if(r.TERM&&j.test(r.TERM))return N;if((u?l.Deno.build.os:c.platform)==="win32"){if("WT_SESSION"in r)return 3;if("ANSICON"in r)return 1;try{let d;u?d=l.Deno.osRelease():typeof c.os?.release=="function"?d=c.os.release():d=U();const R=d.split(".");return Number(R[0])>=10&&Number(R[2])>=10586?Number(R[2])>=14931?3:2:1}catch{}}if("CI"in r)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(d=>d in r)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(d=>d in r)||r.CI_NAME==="codeship"?1:N;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return 3;if("TEAMCITY_VERSION"in r)return F.test(r.TEAMCITY_VERSION)?1:0;if(r.COLORTERM==="truecolor"||r.TERM==="xterm-kitty"||r.TERM==="xterm-ghostty"||r.TERM==="wezterm")return 3;if("TERM_PROGRAM"in r){const d=Number.parseInt((r.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(r.TERM_PROGRAM==="iTerm.app")return d>=3?3:2;if(r.TERM_PROGRAM==="Apple_Terminal")return 2}if(V.test(r.TERM))return 2;let T;return i!==void 0?T=i:u?T=t==="out"?l.Deno.stdout.isTerminal():l.Deno.stderr.isTerminal():"PM2_HOME"in r&&"pm_id"in r?T=!0:T=!!c[`std${t}`]?.isTTY,T&&Y.test(r.TERM)||"COLORTERM"in r?1:N},W=()=>_("out"),H=()=>_("err");function q({onlyFirst:t=!1}={}){const e="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(e,t?void 0:"g")}const M=(t,e,i)=>e>t?e:Math.min(t,i),z=/^#?([a-f\d]{3}|[a-f\d]{6})$/i,K=t=>{let[,e]=z.exec(t)??[];const i=e?e.length:0;if(i===3){const l=e.charAt(0),u=e.charAt(1),c=e.charAt(2);e=l+l+u+u+c+c}else if(i!==6)return globalThis.process?.env?.NODE_ENV!=="production"&&console.warn(`[@visulima/colorize] Invalid hex color "${t}"; expected a 3- or 6-digit hex string (e.g. "#96C" or "#E0115F"). Falling back to black.`),[0,0,0];const o=Number.parseInt(e,16);return[o>>16&255,o>>8&255,o&255]},I=(t,e,i)=>t===e&&e===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/51)+6*Math.round(e/51)+Math.round(i/51),E=t=>{let e,i,o;if(t<8)return 30+t;if(t<16)return 90+(t-8);if(t>=232)e=i=o=((t-232)*10+8)/255;else{t-=16;const c=t%36;e=Math.floor(t/36)/5,i=Math.floor(c/6)/5,o=c%6/5}const l=Math.max(e,i,o)*2;if(l===0)return 30;const u=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(e));return l===2?u+60:u},y=(t,e,i)=>E(I(t,e,i)),f=39,b=49,B=10,C={close:"",open:""},v=t=>{const e=t>0?(n,g)=>({close:`\x1B[${String(g)}m`,open:`\x1B[${String(n)}m`}):()=>C,i=n=>(g,s,p)=>n(I(Number(g),Number(s),Number(p))),o=n=>g=>{const[s,p,S]=K(g);return n(s,p,S)};let l=n=>e(`38;5;${String(n)}`,f),u=n=>e(`48;5;${String(n)}`,b),c=(n,g,s)=>e(`38;2;${String(n)};${String(g)};${String(s)}`,f),m=(n,g,s)=>e(`48;2;${String(n)};${String(g)};${String(s)}`,b);t===1?(l=n=>e(E(Number(n)),f),u=n=>e(E(Number(n))+B,b),c=(n,g,s)=>e(y(Number(n),Number(g),Number(s)),f),m=(n,g,s)=>e(y(Number(n),Number(g),Number(s))+B,b)):t===2&&(c=i(l),m=i(u));const O={bold:e(1,22),dim:e(2,22),hidden:e(8,28),inverse:e(7,27),italic:e(3,23),overline:e(53,55),reset:e(0,0),strike:e(9,29),strikethrough:e(9,29),underline:e(4,24),visible:C},a={bgBlack:e(40,b),bgBlackBright:e(100,b),bgBlue:e(44,b),bgBlueBright:e(104,b),bgCyan:e(46,b),bgCyanBright:e(106,b),bgGray:e(100,b),bgGreen:e(42,b),bgGreenBright:e(102,b),bgGrey:e(100,b),bgMagenta:e(45,b),bgMagentaBright:e(105,b),bgRed:e(41,b),bgRedBright:e(101,b),bgWhite:e(47,b),bgWhiteBright:e(107,b),bgYellow:e(43,b),bgYellowBright:e(103,b),black:e(30,f),blackBright:e(90,f),blue:e(34,f),blueBright:e(94,f),cyan:e(36,f),cyanBright:e(96,f),gray:e(90,f),green:e(32,f),greenBright:e(92,f),grey:e(90,f),magenta:e(35,f),magentaBright:e(95,f),red:e(31,f),redBright:e(91,f),white:e(37,f),whiteBright:e(97,f),yellow:e(33,f),yellowBright:e(93,f)},r={bg:n=>u(M(n,0,255)),bgHex:o(m),bgRgb:(n,g,s)=>m(M(n,0,255),M(g,0,255),M(s,0,255)),fg:n=>l(M(n,0,255)),hex:o(c),rgb:(n,g,s)=>c(M(n,0,255),M(g,0,255),M(s,0,255))};return{baseColors:a,baseStyles:O,styleMethods:r}},A=W(),J=H();v(A);const Q=(t,e,i)=>{if(e==="")return t;let o=t.indexOf(e);if(o<0)return t;const l=e.length;let u=0,c="";for(;~o;)c+=t.slice(u,o)+i,u=o+l,o=t.indexOf(e,u);return c+t.slice(u)},Z=(t,e,i)=>{if(!t)return"";let o;if(t.raw===void 0?o=String(t):o=String.raw(t,...e),o.includes("\x1B"))for(let l=i;l;l=l.props)o=Q(o,l.close,l.open);return o.includes(`
2
- `)&&(o=o.replace(/(\r*\n)/g,`${i.closeStack}$1${i.openStack}`)),i.openStack+o+i.closeStack},x=function(t){const e=t?.level??A,{baseColors:i,baseStyles:o,styleMethods:l}=v(e),u={};let c=null;const m=({props:a},{close:r,open:n})=>{const g=(a?.openStack??"")+n,s=r+(a?.closeStack??""),p=(S,...h)=>Z(S,h,p.props);return Object.setPrototypeOf(p,c),p.props={close:r,closeStack:s,open:n,openStack:g,props:a},p.open=g,p.close=s,p},O=a=>String(a);O.strip=a=>a.replaceAll(q(),"");for(const a in i)u[a]={get(){const r=m(this,i[a]);return Object.defineProperty(this,a,{value:r}),r}};for(const a in o)u[a]={get(){const r=m(this,o[a]);return Object.defineProperty(this,a,{value:r}),r}};for(const a in l)u[a]={get(){return(...r)=>m(this,l[a](...r))}};return u.ansi256=u.fg,u.bgAnsi256=u.bg,c=Object.defineProperties({},u),Object.setPrototypeOf(O,c),O},$=new x;new x({level:J});const X=$.bold,ee=$.cyan,te=$.dim,re=$.green,ne=$.inverse,oe=$.magenta,ie=$.red,se=$.underline,le=$.yellow;export{H as $,te as E,re as I,ne as O,oe as Q,W as U,ie as V,$ as a,se as e,X as j,ee as q,le as s};
@@ -1 +0,0 @@
1
- import{l as c,m as h,B as a,I as f}from"./index-DND6ptxQ.js";import{x as d,P as g}from"../packem_chunks/catalog.js";const k=/\/+$/,p=/node_modules/,u=/\.git/,$=/[$()+.?[\\\]^{|}]/g,S=/\/\*\*$|\/\*\/\*$/,x=(i,l)=>{const e=l.replace(k,"");if(e.startsWith("!"))return[];const n=[];if(e.endsWith("/*")){const s=e.slice(0,-2),t=a(i,s);if(!c(t))return[];for(const r of f(t,{includeFiles:!1,includeSymlinks:!1,maxDepth:1,skip:[p,u]}))r.path===t||r.name.startsWith(".")||n.push(h(s,r.name));return n}if(e.endsWith("/**")||e.endsWith("/*/*")){const s=e.replace(S,""),t=a(i,s);if(!c(t))return[];for(const r of f(t,{includeFiles:!1,includeSymlinks:!1,skip:[p,u]})){if(r.path===t)continue;const m=r.path.slice(t.length+1);n.push(`${s}/${m}`)}return n}if(!e.includes("/")&&e.includes("*")){const s=e.replaceAll($,String.raw`\$&`).replaceAll("*",".*"),t=new RegExp(`^${s}$`);for(const r of f(i,{includeFiles:!1,includeSymlinks:!1,maxDepth:1,skip:[p,u]}))r.path!==i&&t.test(r.name)&&n.push(r.name);return n}const o=a(i,e);return c(o)&&n.push(e),n},w=i=>{const l=d(i)??g(i)??[],e=new Set,n=[];for(const o of l)for(const s of x(i,o))s==="."||e.has(s)||(e.add(s),c(h(i,s,"package.json"))||n.push({packageDir:s}));return n};export{w as l};
@@ -1,4 +0,0 @@
1
- import{createRequire as Bt}from"node:module";import{k as X,m as B,g as K,H as $,u as He,y as Mt,z as jt,i as Wt}from"./index-DND6ptxQ.js";import{N as _t,a as ze}from"./readJsonSync-BnWiH5-R-BpnwAB0Z.js";import"./public-api-WqUCiyIe.js";import{a as ve,g as Ht}from"./_commonjsHelpers-B5Y90VFO.js";import{r as zt,a as Yt}from"./clean-DWjQl14S.js";let Rt;const It=o=>(Rt??=Bt(import.meta.url))(o),I=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,J=o=>{if(typeof I<"u"&&I.versions&&I.versions.node){const[e,t]=I.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return I.getBuiltinModule(o)}return It(o)},{dirname:kt}=J("node:path"),We=J("node:url"),{fileURLToPath:Ut}=We,_e=J("node:module"),{createRequire:Y}=_e,qt=J("util"),O=o=>"Deno"in o,N=o=>"Bun"in o,ws=()=>{if(O(globalThis)){const o=globalThis.Deno,e=o.execPath();let t=e;try{const{importMeta:i}=globalThis;i?.url&&(t=i.url)}catch{}return[e,t,...o.args]}return N(globalThis)?globalThis.Bun.process.argv:process.argv},xs=()=>O(globalThis)?globalThis.Deno.cwd():N(globalThis)?globalThis.Bun.process.cwd():process.cwd(),As=()=>{if(O(globalThis)){const o=globalThis.Deno;return new Proxy(o.env.toObject(),{get:(e,t)=>typeof t=="string"?o.env.get(t):e[t],has:(e,t)=>typeof t=="string"?o.env.has(t):t in e,set:(e,t,i)=>typeof t=="string"?(i===void 0||o.env.set(t,i),!0):!1})}return N(globalThis)?globalThis.Bun.process.env:process.env},Es=()=>O(globalThis)?[]:N(globalThis)?globalThis.Bun.process.execArgv:process.execArgv,$s=()=>O(globalThis)?globalThis.Deno.execPath():N(globalThis)?globalThis.Bun.process.execPath:process.execPath,Os=()=>{if(O(globalThis)){const o=globalThis.Deno.build?.os??"unknown";return o==="windows"?"win32":o}return N(globalThis)?globalThis.Bun.platform??"unknown":process.platform},Ns=()=>{if(O(globalThis)){const o=globalThis.Deno.build?.arch??"unknown";return o==="x86_64"?"x64":o==="aarch64"?"arm64":o}return N(globalThis)?globalThis.Bun.process.arch:process.arch},Fs=(o=0)=>{if(O(globalThis))throw globalThis.Deno.exit(o),new Error("Deno exit failed");if(N(globalThis))throw globalThis.Bun.process.exit(o),new Error("Bun exit failed");process.exit(o)},Ts=(o,e)=>{if(O(globalThis))return()=>{};if(N(globalThis)){try{const i=globalThis.Bun;if(i.process?.on)return i.process.on(o,e),()=>{i.process?.removeListener&&i.process.removeListener(o,e)}}catch{}return()=>{}}const t=process;return t.on(o,e),()=>{t.removeListener(o,e)}};let Vt;const Kt=o=>(Vt??=Y(import.meta.url))(o),k=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ye=o=>{if(typeof k<"u"&&k.versions&&k.versions.node){const[e,t]=k.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return k.getBuiltinModule(o)}return Kt(o)},{execFileSync:Jt}=Ye("node:child_process"),{existsSync:be,readFileSync:Xt}=Ye("node:fs"),Zt=["yarn.lock","package-lock.json","pnpm-lock.yaml","npm-shrinkwrap.json","bun.lock","bun.lockb"],Ce=new Set(["bun","npm","pnpm","yarn"]),qe=o=>{const e=_t(Xt(o,"utf8"));return typeof e?.packageManager=="string"?e.packageManager:void 0},Qt=o=>{let e;if(Zt.forEach(i=>{!e&&be(B(o,i))&&(e=B(o,i))}),e)return e;const t=B(o,"package.json");if(be(t)&&qe(t)!==void 0)return t},ei=o=>{if(!o)throw new K("Could not find a package manager");if(o.endsWith("package.json")){const e=qe(o);if(e){const t=["npm","yarn","pnpm","bun"].find(i=>e.startsWith(i));if(t)return{packageManager:t,path:$(o)}}}if(o.endsWith("yarn.lock"))return{packageManager:"yarn",path:$(o)};if(o.endsWith("package-lock.json")||o.endsWith("npm-shrinkwrap.json"))return{packageManager:"npm",path:$(o)};if(o.endsWith("pnpm-lock.yaml"))return{packageManager:"pnpm",path:$(o)};if(o.endsWith("bun.lock")||o.endsWith("bun.lockb"))return{packageManager:"bun",path:$(o)};throw new K("Could not find a package manager")},ti=o=>{const e=X(Qt,{...o&&{cwd:o}});return ei(e)},Gs=o=>{if(!Ce.has(o))throw new Error(`Unsupported package manager "${o}". Expected one of: ${[...Ce].join(", ")}.`);return Jt(o,["--version"]).toString("utf8").trim()};let ii;const si=o=>(ii??=Y(import.meta.url))(o),U=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ve=o=>{if(typeof U<"u"&&U.versions&&U.versions.node){const[e,t]=U.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return U.getBuiltinModule(o)}return si(o)};Ve("node:fs");Ve("node:fs/promises");const ri={sha256:"sha256",sha384:"sha384",sha512:"sha512"},ni=1024,oi=/^[A-Z0-9+/]+={0,2}$/i,Pe="node_modules/",H=/^['"]/,z=/['"]$/,ai=/^[a-z][a-zA-Z0-9]*:\s*$/m,li=/resolution:\s*\{[^}]*integrity:\s*([^,}\s]+)/,ci=/^["']?((?:@[^/@"']+\/)?[^@"'\n]+)@[^\n]+\n((?:[\t ][^\n]*(?:\n|$))+)/gm,hi=/^\s+version:?\s+"?([^"\n]+)"?/m,ui=/^\s+integrity[\s:]+"?([^"\s]+)"?/m,Z=o=>{if(o.length>ni)return;const e=o.indexOf("-");if(e<=0)return;const t=ri[o.slice(0,e).toLowerCase()];if(!t)return;const i=o.slice(e+1);if(oi.test(i))try{const r=Buffer.from(i,"base64");return r.length===0?void 0:{algorithm:t,hex:r.toString("hex")}}catch{return}},Q=(o,e,t)=>{const i=`${t.name}@${t.version}`;e.has(i)||(e.add(i),o.push(t))},x=(o,e,t)=>{t&&Object.keys(t).length>0&&(o[e]={...t})},R=o=>{if(!o)return;const e={};for(const[t,i]of Object.entries(o))e[t]=[i];return Object.keys(e).length>0?e:void 0},pi=o=>{const e=[],t=new Set;let i;try{i=JSON.parse(o)}catch{return e}if(!i.packages)return e;for(const[r,s]of Object.entries(i.packages)){if(!r||!s.version)continue;const a=r.lastIndexOf(Pe);if(a===-1)continue;const n=r.slice(a+Pe.length);if(n.length===0)continue;const l=n.split("/"),u=n.startsWith("@")?2:1;if(l.length!==u||l.some(v=>v.length===0))continue;const f=s.name??n;if(f.startsWith("."))continue;const g={name:f,version:s.version};if(s.integrity){const v=Z(s.integrity);v&&(g.integrity=v)}x(g,"dependencies",R(s.dependencies)),x(g,"peerDependencies",R(s.peerDependencies)),x(g,"optionalDependencies",R(s.optionalDependencies)),Q(e,t,g)}return e},Ke=o=>{let e=o.trim();e.startsWith("/")&&(e=e.slice(1)),e=e.replace(H,"").replace(z,"");const t=e.indexOf("(");t>0&&(e=e.slice(0,t));const i=e.lastIndexOf("@");if(i<=0)return;const r=e.slice(0,i),s=e.slice(i+1);if(!(!r||!s||s.startsWith("link:")||s.startsWith("workspace:")||s.startsWith("file:")))return{name:r,version:s}},Je=(o,e)=>{const t=new RegExp(String.raw`^${e}:\s*$`,"m").exec(o);if(!t)return;const i=t.index+t[0].length,r=ai.exec(o.slice(i));return o.slice(i,r?i+r.index:o.length)},fi=o=>{const e=new Map,t=Je(o,"snapshots");if(!t)return e;const i=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let r;for(;(r=i.exec(t)??void 0)!==void 0;){const s=Ke(r[1]);if(!s)continue;const a=`${s.name}@${s.version}`,n=r[2],l=e.get(a)??{};for(const u of["dependencies","peerDependencies","optionalDependencies"]){const f=q(n,u);if(!f)continue;const g=l[u]??{};for(const[v,y]of Object.entries(f)){const b=g[v]??[];for(const m of y)b.includes(m)||b.push(m);g[v]=b}l[u]=g}e.set(a,l)}return e},di=o=>{const e=[],t=new Set,i=Je(o,"packages");if(!i)return e;const r=fi(o),s=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let a;for(;(a=s.exec(i)??void 0)!==void 0;){const n=Ke(a[1]);if(!n)continue;const l=a[2],u=li.exec(l),f={name:n.name,version:n.version};if(u?.[1]){const v=Z(u[1]);v&&(f.integrity=v)}const g=r.get(`${n.name}@${n.version}`);x(f,"dependencies",g?.dependencies??q(l,"dependencies")),x(f,"peerDependencies",g?.peerDependencies??q(l,"peerDependencies")),x(f,"optionalDependencies",g?.optionalDependencies??q(l,"optionalDependencies")),Q(e,t,f)}return e},q=(o,e)=>{const t=new RegExp(String.raw`^ {4}${e}:\s*\n((?: {6,}[^\n]*\n?)+)`,"m").exec(o);if(!t?.[1])return;const i={},r=/^ {6}([^\s:]+):\s*([^\n]+)/gm;let s;for(;(s=r.exec(t[1])??void 0)!==void 0;){const a=s[1].replace(H,"").replace(z,"");let n=s[2].trim();n=n.replace(H,"").replace(z,"");const l=n.indexOf("(");if(l>0&&(n=n.slice(0,l).trim()),!a||!n)continue;const u=i[a]??[];u.includes(n)||u.push(n),i[a]=u}return Object.keys(i).length>0?i:void 0},mi=o=>{const e=[],t=new Set,i=ci;i.lastIndex=0;let r;for(;(r=i.exec(o)??void 0)!==void 0;){const s=r[1].replace(H,"").replace(z,"");if(!s)continue;const a=r[2],n=hi.exec(a);if(!n?.[1])continue;const l={name:s,version:n[1].trim()},u=ui.exec(a);if(u?.[1]){const f=Z(u[1]);f&&(l.integrity=f)}x(l,"dependencies",te(a,"dependencies")),x(l,"peerDependencies",te(a,"peerDependencies")),x(l,"optionalDependencies",te(a,"optionalDependencies")),Q(e,t,l)}return e},te=(o,e)=>{const t=new RegExp(String.raw`^ {2}${e}:\s*\n((?: {4,}[^\n]*\n?)+)`,"m").exec(o);if(!t?.[1])return;const i={},r=/^ {4}(['"]?[^\s:'"]+['"]?)\s*(?::\s*)?['"]([^'"\n]+)['"]/gm;let s;for(;(s=r.exec(t[1])??void 0)!==void 0;){const a=s[1].replace(H,"").replace(z,""),n=s[2];if(a&&n){const l=i[a]??[];l.includes(n)||l.push(n),i[a]=l}}return Object.keys(i).length>0?i:void 0},gi=/,(?=\s*[}\]])/g,Li=o=>{const e=[],t=new Set;let i;try{i=JSON.parse(o.replaceAll(gi,""))}catch{return e}if(!i.packages)return e;for(const r of Object.values(i.packages)){const s=r[0];if(typeof s!="string")continue;const a=s.indexOf("@",1);if(a<=0)continue;const n=s.slice(0,a),l=s.slice(a+1);if(!n||!l||l.startsWith("workspace:")||l.startsWith("link:")||l.startsWith("file:"))continue;const u={name:n,version:l},f=r[3];if(typeof f=="string"&&f.length>0){const v=Z(f);v&&(u.integrity=v)}const g=r[2];if(g&&typeof g=="object"&&!Array.isArray(g)){const v=g;x(u,"dependencies",R(v.dependencies)),x(u,"peerDependencies",R(v.peerDependencies)),x(u,"optionalDependencies",R(v.optionalDependencies))}Q(e,t,u)}return e},Bs=(o,e)=>{switch(e){case"bun":return Li(o);case"npm":return pi(o);case"pnpm":return di(o);case"yarn":return mi(o);default:return[]}};let Si;const vi=o=>(Si??=Y(import.meta.url))(o),M=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yi=o=>{if(typeof M<"u"&&M.versions&&M.versions.node){const[e,t]=M.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return M.getBuiltinModule(o)}return vi(o)},{existsSync:De,readFileSync:bi}=yi("node:fs"),Rs=o=>{const e=X(["lerna.json","turbo.json"],{type:"file",...o&&{cwd:o}});if(e?.endsWith("lerna.json")){const i=ze(e);if(i.useWorkspaces||i.packages)return{path:$(e),strategy:"lerna"}}const t=e?.endsWith("turbo.json");try{const{packageManager:i,path:r}=ti(o);if(["npm","yarn"].includes(i)){const s=B(r,"package.json");if(De(s)&&bi(B(r,"package.json"),"utf8").includes("workspaces"))return{path:r,strategy:t?"turbo":i}}else if(i==="pnpm"){const s=B(r,"pnpm-workspace.yaml");if(De(s))return{path:r,strategy:t?"turbo":"pnpm"}}}catch(i){if(!(i instanceof K))throw i}throw new Error(`No monorepo root could be found upwards from the directory ${String(o??process.cwd())} using lerna, yarn, pnpm, or npm as indicators.`)};let Ci;const Pi=o=>(Ci??=Y(import.meta.url))(o),j=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Di=o=>{if(typeof j<"u"&&j.versions&&j.versions.node){const[e,t]=j.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return j.getBuiltinModule(o)}return Pi(o)};Di("node:fs");var ie,we;function Xe(){return we||(we=1,ie=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","ALGLIB-Documentation","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Advanced-Cryptics-Dictionary","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BOLA-1.1","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-Tso","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Mark-Modifications","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","Buddy","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CAPEC-tou","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","ESA-PL-permissive-2.4","ESA-PL-strong-copyleft-2.4","ESA-PL-weak-copyleft-2.4","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-SMC","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-sell-variant-critical-systems","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ISO-permission","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-STK","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MMPL-1.0.1","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-TNT","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSC-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OSSP","OpenMDW-1.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","ParaType-Free-Font-1.3","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGMLUG-PM","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TekHVC","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","UnRAR","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","Vixie-Cron","W3C","W3C-19980720","W3C-20150513","WTFNMFPL","WTFPL","Watcom-1.0","Widget-Workshop","WordNet","Wsuipa","X11","X11-distribute-modifications-variant","X11-no-permit-persons","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","hyphen-bulgarian","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]),ie}var se,xe;function wi(){return xe||(xe=1,se=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]),se}var re,Ae;function xi(){return Ae||(Ae=1,re=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]),re}var ne,Ee;function Ai(){if(Ee)return ne;Ee=1;var o=[].concat(Xe()).concat(wi()),e=xi();return ne=function(t){var i=0;function r(){return i<t.length}function s(L){if(L instanceof RegExp){var h=t.slice(i),S=h.match(L);if(S)return i+=S[0].length,S[0]}else if(t.indexOf(L,i)===i)return i+=L.length,L}function a(){s(/[ ]*/)}function n(){for(var L,h=["WITH","AND","OR","(",")",":","+"],S=0;S<h.length&&(L=s(h[S]),!L);S++);if(L==="+"&&i>1&&t[i-2]===" ")throw new Error("Space before `+`");return L&&{type:"OPERATOR",string:L}}function l(){return s(/[A-Za-z0-9-.]+/)}function u(){var L=l();if(!L)throw new Error("Expected idstring at offset "+i);return L}function f(){if(s("DocumentRef-")){var L=u();return{type:"DOCUMENTREF",string:L}}}function g(){if(s("LicenseRef-")){var L=u();return{type:"LICENSEREF",string:L}}}function v(){var L=i,h=l();if(o.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(e.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};i=L}function y(){return n()||f()||g()||v()}for(var b=[];r()&&(a(),!!r());){var m=y();if(!m)throw new Error("Unexpected `"+t[i]+"` at offset "+i);b.push(m)}return b},ne}var oe,$e;function Ei(){return $e||($e=1,oe=function(o){var e=0;function t(){return e<o.length}function i(){return t()?o[e]:null}function r(){if(!t())throw new Error;e++}function s(m){var L=i();if(L&&L.type==="OPERATOR"&&m===L.string)return r(),L.string}function a(){if(s("WITH")){var m=i();if(m&&m.type==="EXCEPTION")return r(),m.string;throw new Error("Expected exception after `WITH`")}}function n(){var m=e,L="",h=i();if(h.type==="DOCUMENTREF"&&(r(),L+="DocumentRef-"+h.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(h=i(),h.type==="LICENSEREF")return r(),L+="LicenseRef-"+h.string,{license:L};e=m}function l(){var m=i();if(m&&m.type==="LICENSE"){r();var L={license:m.string};s("+")&&(L.plus=!0);var h=a();return h&&(L.exception=h),L}}function u(){var m=s("(");if(m){var L=y();if(!s(")"))throw new Error("Expected `)`");return L}}function f(){return u()||n()||l()}function g(m,L){return function h(){var S=L();if(S){if(!s(m))return S;var C=h();if(!C)throw new Error("Expected expression");return{left:S,conjunction:m.toLowerCase(),right:C}}}}var v=g("AND",f),y=g("OR",v),b=y();if(!b||t())throw new Error("Syntax error");return b}),oe}var ae,Oe;function Ze(){if(Oe)return ae;Oe=1;var o=Ai(),e=Ei();return ae=function(t){return e(o(t))},ae}var le,Ne;function $i(){if(Ne)return le;Ne=1;var o=Ze(),e=Xe();function t(h){try{return o(h),!0}catch{return!1}}function i(h,S){var C=S[0].length-h[0].length;return C!==0?C:h[0].toUpperCase().localeCompare(S[0].toUpperCase())}var r=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(i),s=0,a=1,n=[function(h){return h.toUpperCase()},function(h){return h.trim()},function(h){return h.replace(/\./g,"")},function(h){return h.replace(/\s+/g,"")},function(h){return h.replace(/\s+/g,"-")},function(h){return h.replace("v","-")},function(h){return h.replace(/,?\s*(\d)/,"-$1")},function(h){return h.replace(/,?\s*(\d)/,"-$1.0")},function(h){return h.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(h){return h.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(h){return h[0].toUpperCase()+h.slice(1)},function(h){return h.replace("/","-")},function(h){return h.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(h){return h.indexOf("3.0")!==-1?h+"-or-later":h+"-only"},function(h){return h+"only"},function(h){return h.replace(/(\d)$/,"-$1.0")},function(h){return h.replace(/(-| )?(\d)$/,"-$2-Clause")},function(h){return h.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(h){return h.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(h){return h.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(h){return h.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(h){return h.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(h){return h.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(h){return"CC-"+h},function(h){return"CC-"+h+"-4.0"},function(h){return h.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(h){return"CC-"+h.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],l=e.map(function(h){var S=/^(.*)-\d+\.\d+$/.exec(h);return S?[S[0],S[1]]:[h,null]}).reduce(function(h,S){var C=S[1];return h[C]=h[C]||[],h[C].push(S[0]),h},{}),u=Object.keys(l).map(function(h){return[h,l[h]]}).filter(function(h){return h[1].length===1&&h[0]!==null&&h[0]!=="APL"}).map(function(h){return[h[0],h[1][0]]});l=void 0;var f=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(u).sort(i),g=0,v=1,y=function(h){for(var S=0;S<n.length;S++){var C=n[S](h).trim();if(C!==h&&t(C))return C}return null},b=function(h){for(var S=h.toUpperCase(),C=0;C<f.length;C++){var c=f[C];if(S.indexOf(c[g])>-1)return c[v]}return null},m=function(h,S){for(var C=0;C<r.length;C++){var c=r[C],p=c[s];if(h.indexOf(p)>-1){var d=h.replace(p,c[a]),P=S(d);if(P!==null)return P}}return null};le=function(h,S){S=S||{};var C=S.upgrade===void 0?!0:!!S.upgrade;function c(D){return C?L(D):D}var p=typeof h=="string"&&h.trim().length!==0;if(!p)throw Error("Invalid argument. Expected non-empty string.");if(h=h.trim(),t(h))return c(h);var d=h.replace(/\+$/,"").trim();if(t(d))return c(d);var P=y(h);return P!==null||(P=m(h,function(D){return t(D)?D:y(D)}),P!==null)||(P=b(h),P!==null)||(P=m(h,b),P!==null)?c(P):null};function L(h){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(h)!==-1?h+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(h)!==-1?h.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(h)!==-1?h+"-or-later":h}return le}var ce,Fe;function Oi(){if(Fe)return ce;Fe=1;var o=Ze(),e=$i(),t='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',i=/^SEE LICEN[CS]E IN (.+)$/;function r(a,n){return n.slice(0,a.length)===a}function s(a){if(a.hasOwnProperty("license")){var n=a.license;return r("LicenseRef",n)||r("DocumentRef",n)}else return s(a.left)||s(a.right)}return ce=function(a){var n;try{n=o(a)}catch{var l;if(a==="UNLICENSED"||a==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(l=i.exec(a))return{validForOldPackages:!0,validForNewPackages:!0,inFile:l[1]};var u={validForOldPackages:!1,validForNewPackages:!1,warnings:[t]};if(a.trim().length!==0){var f=e(a);f&&u.warnings.push('license is similar to the valid expression "'+f+'"')}return u}return s(n)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[t]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},ce}var Qe={hasSubscribers:!1},w=Qe,G=Qe;import("node:diagnostics_channel").then(o=>{w=o.channel("lru-cache:metrics"),G=o.tracingChannel("lru-cache")}).catch(()=>{});var Ni=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,he=()=>w.hasSubscribers||G.hasSubscribers,et=new Set,Te=process||{},Fi=(o,e,t,i)=>{typeof Te.emitWarning=="function"?Te.emitWarning(o,e,t,i):console.error(`[${t}] ${e}: ${o}`)},Ti=o=>!et.has(o),T=o=>!!o&&o===Math.floor(o)&&o>0&&isFinite(o),tt=o=>T(o)?o<=Math.pow(2,8)?Uint8Array:o<=Math.pow(2,16)?Uint16Array:o<=Math.pow(2,32)?Uint32Array:o<=Number.MAX_SAFE_INTEGER?V:null:null,V=class extends Array{constructor(o){super(o),this.fill(0)}},Gi=class _{heap;length;static#r=!1;static create(e){let t=tt(e);if(!t)return[];_.#r=!0;let i=new _(e,t);return _.#r=!1,i}constructor(e,t){if(!_.#r)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Bi=class it{#r;#c;#t;#$;#L;#B;#R;#S;get perf(){return this.#S}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#o;#v;#n;#s;#e;#u;#f;#h;#a;#y;#l;#b;#C;#d;#m;#P;#I;#p;#O;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#d,autopurgeTimers:e.#m,sizes:e.#b,keyMap:e.#n,keyList:e.#s,valList:e.#e,next:e.#u,prev:e.#f,get head(){return e.#h},get tail(){return e.#a},free:e.#y,isBackgroundFetch:t=>e.#i(t),backgroundFetch:(t,i,r,s)=>e.#M(t,i,r,s),moveToTail:t=>e.#G(t),indexes:t=>e.#D(t),rindexes:t=>e.#w(t),isStale:t=>e.#g(t)}}get max(){return this.#r}get maxSize(){return this.#c}get calculatedSize(){return this.#v}get size(){return this.#o}get fetchMethod(){return this.#B}get memoMethod(){return this.#R}get dispose(){return this.#t}get onInsert(){return this.#$}get disposeAfter(){return this.#L}constructor(e){let{max:t=0,ttl:i,ttlResolution:r=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:n,allowStale:l,dispose:u,onInsert:f,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:y,maxSize:b=0,maxEntrySize:m=0,sizeCalculation:L,fetchMethod:h,memoMethod:S,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:c,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:d,ignoreFetchAbort:P,backgroundFetchSize:D=1,perf:A}=e;if(this.backgroundFetchSize=D,A!==void 0&&typeof A?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#S=A??Ni,t!==0&&!T(t))throw new TypeError("max option must be a nonnegative integer");let E=t?tt(t):Array;if(!E)throw new Error("invalid max value: "+t);if(this.#r=t,this.#c=b,this.maxEntrySize=m||this.#c,this.sizeCalculation=L,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#R=S,h!==void 0&&typeof h!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#B=h,this.#I=!!h,this.#n=new Map,this.#s=Array.from({length:t}).fill(void 0),this.#e=Array.from({length:t}).fill(void 0),this.#u=new E(t),this.#f=new E(t),this.#h=0,this.#a=0,this.#y=Gi.create(t),this.#o=0,this.#v=0,typeof u=="function"&&(this.#t=u),typeof f=="function"&&(this.#$=f),typeof g=="function"?(this.#L=g,this.#l=[]):(this.#L=void 0,this.#l=void 0),this.#P=!!this.#t,this.#O=!!this.#$,this.#p=!!this.#L,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!C,this.allowStaleOnFetchRejection=!!p,this.allowStaleOnFetchAbort=!!d,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#c!==0&&!T(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!T(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#V()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!c,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!n,this.ttlResolution=T(r)||r===0?r:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!T(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#r===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#r&&!this.#c){let ee="LRU_CACHE_UNBOUNDED";Ti(ee)&&(et.add(ee),Fi("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ee,it))}}getRemainingTTL(e){return this.#n.has(e)?1/0:0}#j(){let e=new V(this.#r),t=new V(this.#r);this.#d=e,this.#C=t;let i=this.ttlAutopurge?Array.from({length:this.#r}):void 0;this.#m=i,this.#W=(n,l,u=this.#S.now())=>{t[n]=l!==0?u:0,e[n]=l,r(n,l)},this.#N=n=>{t[n]=e[n]!==0?this.#S.now():0,r(n,e[n])};let r=this.ttlAutopurge?(n,l)=>{if(i?.[n]&&(clearTimeout(i[n]),i[n]=void 0),l&&l!==0&&i){let u=setTimeout(()=>{this.#g(n)&&this.#x(this.#s[n],"expire")},l+1);u.unref&&u.unref(),i[n]=u}}:()=>{};this.#A=(n,l)=>{if(e[l]){let u=e[l],f=t[l];if(!u||!f)return;n.ttl=u,n.start=f,n.now=s||a();let g=n.now-f;n.remainingTTL=u-g}};let s=0,a=()=>{let n=this.#S.now();if(this.ttlResolution>0){s=n;let l=setTimeout(()=>s=0,this.ttlResolution);l.unref&&l.unref()}return n};this.getRemainingTTL=n=>{let l=this.#n.get(n);if(l===void 0)return 0;let u=e[l],f=t[l];if(!u||!f)return 1/0;let g=(s||a())-f;return u-g},this.#g=n=>{let l=t[n],u=e[n];return!!u&&!!l&&(s||a())-l>u}}#N=()=>{};#A=()=>{};#W=()=>{};#g=()=>!1;#V(){let e=new V(this.#r);this.#v=0,this.#b=e,this.#F=t=>{this.#v-=e[t],e[t]=0},this.#_=(t,i,r,s)=>{if(!T(r)){if(this.#i(i))return this.backgroundFetchSize;if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(i,t),!T(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return r},this.#k=(t,i,r)=>{if(e[t]=i,this.#c){let s=this.#c-e[t];for(;this.#v>s;)this.#U(!0)}this.#v+=e[t],r&&(r.entrySize=i,r.totalCalculatedSize=this.#v)}}#F=e=>{};#k=(e,t,i)=>{};#_=(e,t,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#D({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#a;this.#H(t)&&((e||!this.#g(t))&&(yield t),t!==this.#h);)t=this.#f[t]}*#w({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#h;this.#H(t)&&((e||!this.#g(t))&&(yield t),t!==this.#a);)t=this.#u[t]}#H(e){return e!==void 0&&this.#n.get(this.#s[e])===e}*entries(){for(let e of this.#D())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*rentries(){for(let e of this.#w())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*keys(){for(let e of this.#D()){let t=this.#s[e];t!==void 0&&!this.#i(this.#e[e])&&(yield t)}}*rkeys(){for(let e of this.#w()){let t=this.#s[e];t!==void 0&&!this.#i(this.#e[e])&&(yield t)}}*values(){for(let e of this.#D())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#w())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#D()){let r=this.#e[i],s=this.#i(r)?r.__staleWhileFetching:r;if(s!==void 0&&e(s,this.#s[i],this))return this.#T(this.#s[i],t)}}forEach(e,t=this){for(let i of this.#D()){let r=this.#e[i],s=this.#i(r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,this.#s[i],this)}}rforEach(e,t=this){for(let i of this.#w()){let r=this.#e[i],s=this.#i(r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,this.#s[i],this)}}purgeStale(){let e=!1;for(let t of this.#w({allowStale:!0}))this.#g(t)&&(this.#x(this.#s[t],"expire"),e=!0);return e}info(e){let t=this.#n.get(e);if(t===void 0)return;let i=this.#e[t],r=this.#i(i)?i.__staleWhileFetching:i;if(r===void 0)return;let s={value:r};if(this.#d&&this.#C){let a=this.#d[t],n=this.#C[t];if(a&&n){let l=a-(this.#S.now()-n);s.ttl=l,s.start=Date.now()}}return this.#b&&(s.size=this.#b[t]),s}dump(){let e=[];for(let t of this.#D({allowStale:!0})){let i=this.#s[t],r=this.#e[t],s=this.#i(r)?r.__staleWhileFetching:r;if(s===void 0||i===void 0)continue;let a={value:s};if(this.#d&&this.#C){a.ttl=this.#d[t];let n=this.#S.now()-this.#C[t];a.start=Math.floor(Date.now()-n)}this.#b&&(a.size=this.#b[t]),e.unshift([i,a])}return e}load(e){this.clear();for(let[t,i]of e){if(i.start){let r=Date.now()-i.start;i.start=this.#S.now()-r}this.#E(t,i.value,i)}}set(e,t,i={}){let{status:r=w.hasSubscribers?{}:void 0}=i;i.status=r,r&&(r.op="set",r.key=e,t!==void 0&&(r.value=t),r.cache=this);let s=this.#E(e,t,i);return r&&w.hasSubscribers&&w.publish(r),s}#E(e,t,i,r){let{ttl:s=this.ttl,start:a,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:u}=i,f=this.#i(t);if(t===void 0)return u&&(u.set="deleted"),this.delete(e),this;let{noUpdateTTL:g=this.noUpdateTTL}=i;u&&!f&&(u.value=t);let v=this.#_(e,t,i.size||0,l,u);if(this.maxEntrySize&&v>this.maxEntrySize)return this.#x(e,"set"),u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this;let y=this.#o===0?void 0:this.#n.get(e);if(y===void 0)y=this.#o===0?this.#a:this.#y.length!==0?this.#y.pop():this.#o===this.#r?this.#U(!1):this.#o,this.#s[y]=e,this.#e[y]=t,this.#n.set(e,y),this.#u[this.#a]=y,this.#f[y]=this.#a,this.#a=y,this.#o++,this.#k(y,v,u),u&&(u.set="add"),g=!1,this.#O&&!f&&this.#$?.(t,e,"add");else{this.#G(y);let b=this.#e[y];if(t!==b){if(!n)if(this.#i(b)){b!==r&&b.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:m}=b;m!==void 0&&m!==t&&(this.#P&&this.#t?.(m,e,"set"),this.#p&&this.#l?.push([m,e,"set"]))}else this.#P&&this.#t?.(b,e,"set"),this.#p&&this.#l?.push([b,e,"set"]);if(this.#F(y),this.#k(y,v,u),this.#e[y]=t,!f){let m=b&&this.#i(b)?b.__staleWhileFetching:b,L=m===void 0?"add":t!==m?"replace":"update";u&&(u.set=L,m!==void 0&&(u.oldValue=m)),this.#O&&this.onInsert?.(t,e,L)}}else f||(u&&(u.set="update"),this.#O&&this.onInsert?.(t,e,"update"))}if(s!==0&&!this.#d&&this.#j(),this.#d&&(g||this.#W(y,s,a),u&&this.#A(u,y)),!n&&this.#p&&this.#l){let b=this.#l,m;for(;m=b?.shift();)this.#L?.(...m)}return this}pop(){try{for(;this.#o;){let e=this.#e[this.#h];if(this.#U(!0),this.#i(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#p&&this.#l){let e=this.#l,t;for(;t=e?.shift();)this.#L?.(...t)}}}#U(e){let t=this.#h,i=this.#s[t],r=this.#e[t],s=this.#i(r);s&&r.__abortController.abort(new Error("evicted"));let a=s?r.__staleWhileFetching:r;return(this.#P||this.#p)&&a!==void 0&&(this.#P&&this.#t?.(a,i,"evict"),this.#p&&this.#l?.push([a,i,"evict"])),this.#F(t),this.#m?.[t]&&(clearTimeout(this.#m[t]),this.#m[t]=void 0),e&&(this.#s[t]=void 0,this.#e[t]=void 0,this.#y.push(t)),this.#o===1?(this.#h=this.#a=0,this.#y.length=0):this.#h=this.#u[t],this.#n.delete(i),this.#o--,t}has(e,t={}){let{status:i=w.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="has",i.key=e,i.cache=this);let r=this.#K(e,t);return w.hasSubscribers&&w.publish(i),r}#K(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=t,s=this.#n.get(e);if(s!==void 0){let a=this.#e[s];if(this.#i(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#g(s))r&&(r.has="stale",this.#A(r,s));else return i&&this.#N(s),r&&(r.has="hit",this.#A(r,s)),!0}else r&&(r.has="miss");return!1}peek(e,t={}){let{status:i=he()?{}:void 0}=t;i&&(i.op="peek",i.key=e,i.cache=this),t.status=i;let r=this.#J(e,t);return w.hasSubscribers&&w.publish(i),r}#J(e,t){let{status:i,allowStale:r=this.allowStale}=t,s=this.#n.get(e);if(s===void 0||!r&&this.#g(s)){i&&(i.peek=s===void 0?"miss":"stale");return}let a=this.#e[s],n=this.#i(a)?a.__staleWhileFetching:a;return i&&(n!==void 0?(i.peek="hit",i.value=n):i.peek="miss"),n}#M(e,t,i,r){let s=t===void 0?void 0:this.#e[t];if(this.#i(s))return s;let a=new AbortController,{signal:n}=i;n?.addEventListener("abort",()=>a.abort(n.reason),{signal:a.signal});let l={signal:a.signal,options:i,context:r},u=(m,L=!1)=>{let{aborted:h}=a.signal,S=i.ignoreFetchAbort&&m!==void 0,C=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&m!==void 0);if(i.status&&(h&&!L?(i.status.fetchAborted=!0,i.status.fetchError=a.signal.reason,S&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),h&&!S&&!L)return g(a.signal.reason,C);let c=y,p=this.#e[t];return(p===y||p===void 0&&S&&L)&&(m===void 0?c.__staleWhileFetching!==void 0?this.#e[t]=c.__staleWhileFetching:this.#x(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.#E(e,m,l.options,c))),m},f=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),g(m,!1)),g=(m,L)=>{let{aborted:h}=a.signal,S=h&&i.allowStaleOnFetchAbort,C=S||i.allowStaleOnFetchRejection,c=C||i.noDeleteOnFetchRejection,p=y;if(this.#e[t]===y&&(!c||!L&&p.__staleWhileFetching===void 0?this.#x(e,"fetch"):S||(this.#e[t]=p.__staleWhileFetching)),C)return i.status&&p.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),p.__staleWhileFetching;if(p.__returned===p)throw m},v=(m,L)=>{let h=this.#B?.(e,s,l);a.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=S=>u(S,!0)))}),h&&h instanceof Promise?h.then(S=>m(S===void 0?void 0:S),L):h!==void 0&&m(h)};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(v).then(u,f),b=Object.assign(y,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.#E(e,b,{...l.options,status:void 0}),t=this.#n.get(e)):this.#e[t]=b,b}#i(e){if(!this.#I)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController}fetch(e,t={}){let i=G.hasSubscribers,{status:r=he()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let s=this.#z(e,t);return r&&i&&(r.trace=!0,G.tracePromise(()=>s,r).catch(()=>{})),s}async#z(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:v=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:m,forceRefresh:L=!1,status:h,signal:S}=t;if(h&&(h.op="fetch",h.key=e,L&&(h.forceRefresh=!0),h.cache=this),!this.#I)return h&&(h.fetch="get"),this.#T(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:h});let C={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:a,noDisposeOnSet:n,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:b,ignoreFetchAbort:y,status:h,signal:S},c=this.#n.get(e);if(c===void 0){h&&(h.fetch="miss");let p=this.#M(e,c,C,m);return p.__returned=p}else{let p=this.#e[c];if(this.#i(p)){let A=i&&p.__staleWhileFetching!==void 0;return h&&(h.fetch="inflight",A&&(h.returnedStale=!0)),A?p.__staleWhileFetching:p.__returned=p}let d=this.#g(c);if(!L&&!d)return h&&(h.fetch="hit"),this.#G(c),r&&this.#N(c),h&&this.#A(h,c),p;let P=this.#M(e,c,C,m),D=P.__staleWhileFetching!==void 0&&i;return h&&(h.fetch=d?"stale":"refresh",D&&d&&(h.returnedStale=!0)),D?P.__staleWhileFetching:P.__returned=P}}forceFetch(e,t={}){let i=G.hasSubscribers,{status:r=he()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let s=this.#X(e,t);return r&&i&&(r.trace=!0,G.tracePromise(()=>s,r).catch(()=>{})),s}async#X(e,t={}){let i=await this.#z(e,t);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,t={}){let{status:i=w.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="memo",i.key=e,t.context&&(i.context=t.context),i.cache=this);let r=this.#Z(e,t);return i&&(i.value=r),w.hasSubscribers&&w.publish(i),r}#Z(e,t={}){let i=this.#R;if(!i)throw new Error("no memoMethod provided to constructor");let{context:r,status:s,forceRefresh:a,...n}=t;s&&a&&(s.forceRefresh=!0);let l=this.#T(e,n),u=a||l===void 0;if(s&&(s.memo=u?"miss":"hit",u||(s.value=l)),!u)return l;let f=i(e,l,{options:n,context:r});return s&&(s.value=f),this.#E(e,f,n),f}get(e,t={}){let{status:i=w.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="get",i.key=e,i.cache=this);let r=this.#T(e,t);return i&&(r!==void 0&&(i.value=r),w.hasSubscribers&&w.publish(i)),r}#T(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:a}=t,n=this.#n.get(e);if(n===void 0){a&&(a.get="miss");return}let l=this.#e[n],u=this.#i(l);return a&&this.#A(a,n),this.#g(n)?u?(a&&(a.get="stale-fetching"),i&&l.__staleWhileFetching!==void 0?(a&&(a.returnedStale=!0),l.__staleWhileFetching):void 0):(s||this.#x(e,"expire"),a&&(a.get="stale"),i?(a&&(a.returnedStale=!0),l):void 0):(a&&(a.get=u?"fetching":"hit"),this.#G(n),r&&this.#N(n),u?l.__staleWhileFetching:l)}#Y(e,t){this.#f[t]=e,this.#u[e]=t}#G(e){e!==this.#a&&(e===this.#h?this.#h=this.#u[e]:this.#Y(this.#f[e],this.#u[e]),this.#Y(this.#a,e),this.#a=e)}delete(e){return this.#x(e,"delete")}#x(e,t){w.hasSubscribers&&w.publish({op:"delete",delete:t,key:e,cache:this});let i=!1;if(this.#o!==0){let r=this.#n.get(e);if(r!==void 0)if(this.#m?.[r]&&(clearTimeout(this.#m?.[r]),this.#m[r]=void 0),i=!0,this.#o===1)this.#q(t);else{this.#F(r);let s=this.#e[r];if(this.#i(s)?s.__abortController.abort(new Error("deleted")):(this.#P||this.#p)&&(this.#P&&this.#t?.(s,e,t),this.#p&&this.#l?.push([s,e,t])),this.#n.delete(e),this.#s[r]=void 0,this.#e[r]=void 0,r===this.#a)this.#a=this.#f[r];else if(r===this.#h)this.#h=this.#u[r];else{let a=this.#f[r];this.#u[a]=this.#u[r];let n=this.#u[r];this.#f[n]=this.#f[r]}this.#o--,this.#y.push(r)}}if(this.#p&&this.#l?.length){let r=this.#l,s;for(;s=r?.shift();)this.#L?.(...s)}return i}clear(){return this.#q("delete")}#q(e){for(let t of this.#w({allowStale:!0})){let i=this.#e[t];if(this.#i(i))i.__abortController.abort(new Error("deleted"));else{let r=this.#s[t];this.#P&&this.#t?.(i,r,e),this.#p&&this.#l?.push([i,r,e])}}if(this.#n.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#d&&this.#C){this.#d.fill(0),this.#C.fill(0);for(let t of this.#m??[])t!==void 0&&clearTimeout(t);this.#m?.fill(void 0)}if(this.#b&&this.#b.fill(0),this.#h=0,this.#a=0,this.#y.length=0,this.#v=0,this.#o=0,this.#p&&this.#l){let t=this.#l,i;for(;i=t?.shift();)this.#L?.(...i)}}};const Ri=Object.defineProperty({__proto__:null,LRUCache:Bi},Symbol.toStringTag,{value:"Module"}),Ii=ve(Ri);var ue,Ge;function ki(){if(Ge)return ue;Ge=1;const o=(...s)=>s.every(a=>a)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",t=s=>s.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),i={sshtemplate:({domain:s,user:a,project:n,committish:l})=>`git@${s}:${a}/${n}.git${o("#",l)}`,sshurltemplate:({domain:s,user:a,project:n,committish:l})=>`git+ssh://git@${s}/${a}/${n}.git${o("#",l)}`,edittemplate:({domain:s,user:a,project:n,committish:l,editpath:u,path:f})=>`https://${s}/${a}/${n}${o("/",u,"/",e(l||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:a,project:n,committish:l,treepath:u})=>`https://${s}/${a}/${n}${o("/",u,"/",e(l))}`,browsetreetemplate:({domain:s,user:a,project:n,committish:l,treepath:u,path:f,fragment:g,hashformat:v})=>`https://${s}/${a}/${n}/${u}/${e(l||"HEAD")}/${f}${o("#",v(g||""))}`,browseblobtemplate:({domain:s,user:a,project:n,committish:l,blobpath:u,path:f,fragment:g,hashformat:v})=>`https://${s}/${a}/${n}/${u}/${e(l||"HEAD")}/${f}${o("#",v(g||""))}`,docstemplate:({domain:s,user:a,project:n,treepath:l,committish:u})=>`https://${s}/${a}/${n}${o("/",l,"/",e(u))}#readme`,httpstemplate:({auth:s,domain:a,user:n,project:l,committish:u})=>`git+https://${o(s,"@")}${a}/${n}/${l}.git${o("#",u)}`,filetemplate:({domain:s,user:a,project:n,committish:l,path:u})=>`https://${s}/${a}/${n}/raw/${e(l||"HEAD")}/${u}`,shortcuttemplate:({type:s,user:a,project:n,committish:l})=>`${s}:${a}/${n}${o("#",l)}`,pathtemplate:({user:s,project:a,committish:n})=>`${s}/${a}${o("#",n)}`,bugstemplate:({domain:s,user:a,project:n})=>`https://${s}/${a}/${n}/issues`,hashformat:t},r={};r.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:a,project:n,committish:l,path:u})=>`https://${o(s,"@")}raw.githubusercontent.com/${a}/${n}/${e(l||"HEAD")}/${u}`,gittemplate:({auth:s,domain:a,user:n,project:l,committish:u})=>`git://${o(s,"@")}${a}/${n}/${l}.git${o("#",u)}`,tarballtemplate:({domain:s,user:a,project:n,committish:l})=>`https://codeload.${s}/${a}/${n}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,a,n,l,u]=s.pathname.split("/",5);if(!(l&&l!=="tree")&&(l||(u=s.hash.slice(1)),n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!a||!n)))return{user:a,project:n,committish:u}}},r.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:a,project:n,committish:l,treepath:u,path:f,editpath:g})=>`https://${s}/${a}/${n}${o("/",u,"/",e(l||"HEAD"),"/",f,g)}`,tarballtemplate:({domain:s,user:a,project:n,committish:l})=>`https://${s}/${a}/${n}/get/${e(l||"HEAD")}.tar.gz`,extract:s=>{let[,a,n,l]=s.pathname.split("/",4);if(!["get"].includes(l)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!a||!n)))return{user:a,project:n,committish:s.hash.slice(1)}}},r.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:s,user:a,project:n,committish:l})=>`https://${s}/api/v4/projects/${e(a+"/"+n)}/repository/archive.tar.gz?sha=${e(l||"HEAD")}`,extract:s=>{const a=s.pathname.slice(1);if(a.includes("/-/")||a.includes("/archive.tar.gz"))return;const n=a.split("/");let l=n.pop();l.endsWith(".git")&&(l=l.slice(0,-4));const u=n.join("/");if(!(!u||!l))return{user:u,project:l,committish:s.hash.slice(1)}}},r.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:a,committish:n})=>`git@${s}:${a}.git${o("#",n)}`,sshurltemplate:({domain:s,project:a,committish:n})=>`git+ssh://git@${s}/${a}.git${o("#",n)}`,edittemplate:({domain:s,user:a,project:n,committish:l,editpath:u})=>`https://${s}/${a}/${n}${o("/",e(l))}/${u}`,browsetemplate:({domain:s,project:a,committish:n})=>`https://${s}/${a}${o("/",e(n))}`,browsetreetemplate:({domain:s,project:a,committish:n,path:l,hashformat:u})=>`https://${s}/${a}${o("/",e(n))}${o("#",u(l))}`,browseblobtemplate:({domain:s,project:a,committish:n,path:l,hashformat:u})=>`https://${s}/${a}${o("/",e(n))}${o("#",u(l))}`,docstemplate:({domain:s,project:a,committish:n})=>`https://${s}/${a}${o("/",e(n))}`,httpstemplate:({domain:s,project:a,committish:n})=>`git+https://${s}/${a}.git${o("#",n)}`,filetemplate:({user:s,project:a,committish:n,path:l})=>`https://gist.githubusercontent.com/${s}/${a}/raw${o("/",e(n))}/${l}`,shortcuttemplate:({type:s,project:a,committish:n})=>`${s}:${a}${o("#",n)}`,pathtemplate:({project:s,committish:a})=>`${s}${o("#",a)}`,bugstemplate:({domain:s,project:a})=>`https://${s}/${a}`,gittemplate:({domain:s,project:a,committish:n})=>`git://${s}/${a}.git${o("#",n)}`,tarballtemplate:({project:s,committish:a})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(a||"HEAD")}`,extract:s=>{let[,a,n,l]=s.pathname.split("/",4);if(l!=="raw"){if(!n){if(!a)return;n=a,a=null}return n.endsWith(".git")&&(n=n.slice(0,-4)),{user:a,project:n,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+t(s)}},r.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:a,project:n,committish:l,path:u})=>`https://${s}/${a}/${n}/blob/${e(l)||"HEAD"}/${u}`,httpstemplate:({domain:s,user:a,project:n,committish:l})=>`https://${s}/${a}/${n}${o("#",l)}`,tarballtemplate:({domain:s,user:a,project:n,committish:l})=>`https://${s}/${a}/${n}/archive/${e(l)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,a,n,l]=s.pathname.split("/",4);if(!["archive"].includes(l)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!a||!n)))return{user:a,project:n,committish:s.hash.slice(1)}}};for(const[s,a]of Object.entries(r))r[s]=Object.assign({},i,a);return ue=r,ue}var pe,Be;function st(){if(Be)return pe;Be=1;const o=(r,s,a)=>{const n=r.indexOf(a);return r.lastIndexOf(s,n>-1?n:1/0)},e=r=>{try{return new URL(r)}catch{}},t=(r,s)=>{const a=r.indexOf(":"),n=r.slice(0,a+1);if(Object.prototype.hasOwnProperty.call(s,n)||r.substr(a,3)==="://")return r;const l=r.indexOf("@");return l>-1?l>a?`git+ssh://${r}`:r:`${r.slice(0,a+1)}//${r.slice(a+1)}`},i=r=>{const s=o(r,"@","#"),a=o(r,":","#");return a>s&&(r=r.slice(0,a)+"/"+r.slice(a+1)),o(r,":","#")===-1&&r.indexOf("//")===-1&&(r=`git+ssh://${r}`),r};return pe=(r,s)=>{const a=s?t(r,s):r;return e(a)||e(i(a))},pe}var fe,Re;function Ui(){if(Re)return fe;Re=1;const o=st(),e=t=>{const i=t.indexOf("#"),r=t.indexOf("/"),s=t.indexOf("/",r+1),a=t.indexOf(":"),n=/\s/.exec(t),l=t.indexOf("@"),u=!n||i>-1&&n.index>i,f=l===-1||i>-1&&l>i,g=a===-1||i>-1&&a>i,v=s===-1||i>-1&&s>i,y=r>0,b=i>-1?t[i-1]!=="/":!t.endsWith("/"),m=!t.startsWith(".");return u&&y&&b&&m&&f&&g&&v};return fe=(t,i,{gitHosts:r,protocols:s})=>{if(!t)return;const a=e(t)?`github:${t}`:t,n=o(a,s);if(!n)return;const l=r.byShortcut[n.protocol],u=r.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],f=l||u;if(!f)return;const g=r[l||u];let v=null;s[n.protocol]?.auth&&(n.username||n.password)&&(v=`${n.username}${n.password?":"+n.password:""}`);let y=null,b=null,m=null,L=null;try{if(l){let h=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname;const S=h.indexOf("@");S>-1&&(h=h.slice(S+1));const C=h.lastIndexOf("/");C>-1?(b=decodeURIComponent(h.slice(0,C)),b||(b=null),m=decodeURIComponent(h.slice(C+1))):m=decodeURIComponent(h),m.endsWith(".git")&&(m=m.slice(0,-4)),n.hash&&(y=decodeURIComponent(n.hash.slice(1))),L="shortcut"}else{if(!g.protocols.includes(n.protocol))return;const h=g.extract(n);if(!h)return;b=h.user&&decodeURIComponent(h.user),m=decodeURIComponent(h.project),y=decodeURIComponent(h.committish),L=s[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[f,b,v,m,y,L,i]},fe}var de,Ie;function Mi(){if(Ie)return de;Ie=1;const{LRUCache:o}=Ii,e=ki(),t=Ui(),i=st(),r=new o({max:1e3});function s(n){try{const{protocol:l,hostname:u,pathname:f}=new URL(n);if(!u)return null;const g=/(?:git\+)http:$/.test(l)?"http:":"https:",v=f.replace(/\.git$/,"");return`${g}//${u}${v}`}catch{return null}}class a{constructor(l,u,f,g,v,y,b={}){Object.assign(this,a.#r[l],{type:l,user:u,auth:f,project:g,committish:v,default:y,opts:b})}static#r={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(l,u){a.#r[l]=u,a.#r.byDomain[u.domain]=l,a.#r.byShortcut[`${l}:`]=l,a.#c[`${l}:`]={name:l}}static fromUrl(l,u){if(typeof l!="string")return;const f=l+JSON.stringify(u||{});if(!r.has(f)){const g=t(l,u,{gitHosts:a.#r,protocols:a.#c});r.set(f,g?new a(...g):void 0)}return r.get(f)}static fromManifest(l,u={}){if(!l||typeof l!="object")return;const f=l.repository,g=f&&(typeof f=="string"?f:typeof f=="object"&&typeof f.url=="string"?f.url:null);if(!g)throw new Error("no repository");const v=g&&a.fromUrl(g.replace(/^git\+/,""),u)||null;if(v)return v;const y=s(g);return a.fromUrl(y,u)||y}static parseUrl(l){return i(l)}#t(l,u){if(typeof l!="function")return null;const f={...this,...this.opts,...u};f.path||(f.path=""),f.path.startsWith("/")&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);const g=l(f);return f.noGitPlus&&g.startsWith("git+")?g.slice(4):g}hash(){return this.committish?`#${this.committish}`:""}ssh(l){return this.#t(this.sshtemplate,l)}sshurl(l){return this.#t(this.sshurltemplate,l)}browse(l,...u){return typeof l!="string"?this.#t(this.browsetemplate,l):typeof u[0]!="string"?this.#t(this.browsetreetemplate,{...u[0],path:l}):this.#t(this.browsetreetemplate,{...u[1],fragment:u[0],path:l})}browseFile(l,...u){return typeof u[0]!="string"?this.#t(this.browseblobtemplate,{...u[0],path:l}):this.#t(this.browseblobtemplate,{...u[1],fragment:u[0],path:l})}docs(l){return this.#t(this.docstemplate,l)}bugs(l){return this.#t(this.bugstemplate,l)}https(l){return this.#t(this.httpstemplate,l)}git(l){return this.#t(this.gittemplate,l)}shortcut(l){return this.#t(this.shortcuttemplate,l)}path(l){return this.#t(this.pathtemplate,l)}tarball(l){return this.#t(this.tarballtemplate,{...l,noCommittish:!1})}file(l,u){return this.#t(this.filetemplate,{...u,path:l})}edit(l,u){return this.#t(this.edittemplate,{...u,path:l})}getDefaultRepresentation(){return this.default}toString(l){return this.default&&typeof this[this.default]=="function"?this[this.default](l):this.sshurl(l)}}for(const[n,l]of Object.entries(e))a.addHost(n,l);return de=a,de}var me,ke;function ji(){if(ke)return me;ke=1,me=o;function o(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
2
- `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;const i=e.length;let r=t+1;for(;r<i&&e[r].trim();)r++;return e.slice(t,r).join(" ").trim()}return me}var rt={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},nt={web:"url",name:"url"},ot={server:"start",tests:"test"};const Wi={topLevel:rt,bugs:nt,script:ot},_i=Object.defineProperty({__proto__:null,bugs:nt,default:Wi,script:ot,topLevel:rt},Symbol.toStringTag,{value:"Module"}),Hi=ve(_i);var ge,Ue;function zi(){if(Ue)return ge;Ue=1;var{URL:o}=We,e=zt(),t=Yt(),i=Oi(),r=Mi(),{isBuiltin:s}=_e,a=["dependencies","devDependencies","optionalDependencies"],n=ji(),l=Hi,u=c=>c.includes("@")&&c.indexOf("@")<c.lastIndexOf(".");ge={warn:function(){},fixRepositoryField:function(c){if(c.repositories&&(this.warn("repositories"),c.repository=c.repositories[0]),!c.repository)return this.warn("missingRepository");typeof c.repository=="string"&&(c.repository={type:"git",url:c.repository});var p=c.repository.url||"";if(p){var d=r.fromUrl(p);d&&(p=c.repository.url=d.getDefaultRepresentation()==="shortcut"?d.https():d.toString())}p.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",p)},fixTypos:function(c){Object.keys(l.topLevel).forEach(function(p){Object.prototype.hasOwnProperty.call(c,p)&&this.warn("typo",p,l.topLevel[p])},this)},fixScriptsField:function(c){if(c.scripts){if(typeof c.scripts!="object"){this.warn("nonObjectScripts"),delete c.scripts;return}Object.keys(c.scripts).forEach(function(p){typeof c.scripts[p]!="string"?(this.warn("nonStringScript"),delete c.scripts[p]):l.script[p]&&!c.scripts[l.script[p]]&&this.warn("typo",p,l.script[p],"scripts")},this)}},fixFilesField:function(c){var p=c.files;p&&!Array.isArray(p)?(this.warn("nonArrayFiles"),delete c.files):c.files&&(c.files=c.files.filter(function(d){return!d||typeof d!="string"?(this.warn("invalidFilename",d),!1):!0},this))},fixBinField:function(c){if(c.bin&&typeof c.bin=="string"){var p={},d;(d=c.name.match(/^@[^/]+[/](.*)$/))?p[d[1]]=c.bin:p[c.name]=c.bin,c.bin=p}},fixManField:function(c){c.man&&typeof c.man=="string"&&(c.man=[c.man])},fixBundleDependenciesField:function(c){var p="bundledDependencies",d="bundleDependencies";c[p]&&!c[d]&&(c[d]=c[p],delete c[p]),c[d]&&!Array.isArray(c[d])?(this.warn("nonArrayBundleDependencies"),delete c[d]):c[d]&&(c[d]=c[d].filter(function(P){return!P||typeof P!="string"?(this.warn("nonStringBundleDependency",P),!1):(c.dependencies||(c.dependencies={}),Object.prototype.hasOwnProperty.call(c.dependencies,P)||(this.warn("nonDependencyBundleDependency",P),c.dependencies[P]="*"),!0)},this))},fixDependencies:function(c){S(c,this.warn),L(c),this.fixBundleDependenciesField(c),["dependencies","devDependencies"].forEach(function(p){if(p in c){if(!c[p]||typeof c[p]!="object"){this.warn("nonObjectDependencies",p),delete c[p];return}Object.keys(c[p]).forEach(function(d){var P=c[p][d];typeof P!="string"&&(this.warn("nonStringDependency",d,JSON.stringify(P)),delete c[p][d]);var D=r.fromUrl(c[p][d]);D&&(c[p][d]=D.toString())},this)}},this)},fixModulesField:function(c){c.modules&&(this.warn("deprecatedModules"),delete c.modules)},fixKeywordsField:function(c){typeof c.keywords=="string"&&(c.keywords=c.keywords.split(/,\s+/)),c.keywords&&!Array.isArray(c.keywords)?(delete c.keywords,this.warn("nonArrayKeywords")):c.keywords&&(c.keywords=c.keywords.filter(function(p){return typeof p!="string"||!p?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(c,p){var d=!p;if(!c.version)return c.version="",!0;if(!e(c.version,d))throw new Error('Invalid version: "'+c.version+'"');return c.version=t(c.version,d),!0},fixPeople:function(c){y(c,b),y(c,m)},fixNameField:function(c,p){typeof p=="boolean"?p={strict:p}:typeof p>"u"&&(p={});var d=p.strict;if(!c.name&&!d){c.name="";return}if(typeof c.name!="string")throw new Error("name field must be a string.");d||(c.name=c.name.trim()),v(c.name,d,p.allowLegacyCase),s(c.name)&&this.warn("conflictingName",c.name)},fixDescriptionField:function(c){c.description&&typeof c.description!="string"&&(this.warn("nonStringDescription"),delete c.description),c.readme&&!c.description&&(c.description=n(c.readme)),c.description===void 0&&delete c.description,c.description||this.warn("missingDescription")},fixReadmeField:function(c){c.readme||(this.warn("missingReadme"),c.readme="ERROR: No README data found!")},fixBugsField:function(c){if(!c.bugs&&c.repository&&c.repository.url){var p=r.fromUrl(c.repository.url);p&&p.bugs()&&(c.bugs={url:p.bugs()})}else if(c.bugs){if(typeof c.bugs=="string")u(c.bugs)?c.bugs={email:c.bugs}:o.canParse(c.bugs)?c.bugs={url:c.bugs}:this.warn("nonEmailUrlBugsString");else{C(c.bugs,this.warn);var d=c.bugs;c.bugs={},d.url&&(o.canParse(d.url)?c.bugs.url=d.url:this.warn("nonUrlBugsUrlField")),d.email&&(typeof d.email=="string"&&u(d.email)?c.bugs.email=d.email:this.warn("nonEmailBugsEmailField"))}!c.bugs.email&&!c.bugs.url&&(delete c.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(c){if(!c.homepage&&c.repository&&c.repository.url){var p=r.fromUrl(c.repository.url);p&&p.docs()&&(c.homepage=p.docs())}if(c.homepage){if(typeof c.homepage!="string")return this.warn("nonUrlHomepage"),delete c.homepage;o.canParse(c.homepage)||(c.homepage="http://"+c.homepage)}},fixLicenseField:function(c){const p=c.license||c.licence;if(!p)return this.warn("missingLicense");if(typeof p!="string"||p.length<1||p.trim()==="")return this.warn("invalidLicense");if(!i(p).validForNewPackages)return this.warn("invalidLicense")}};function f(c){if(c.charAt(0)!=="@")return!1;var p=c.slice(1).split("/");return p.length!==2?!1:p[0]&&p[1]&&p[0]===encodeURIComponent(p[0])&&p[1]===encodeURIComponent(p[1])}function g(c){return!c.match(/[/@\s+%:]/)&&c===encodeURIComponent(c)}function v(c,p,d){if(c.charAt(0)==="."||!(f(c)||g(c))||p&&!d&&c!==c.toLowerCase()||c.toLowerCase()==="node_modules"||c.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(c))}function y(c,p){return c.author&&(c.author=p(c.author)),["maintainers","contributors"].forEach(function(d){Array.isArray(c[d])&&(c[d]=c[d].map(p))}),c}function b(c){if(typeof c=="string")return c;var p=c.name||"",d=c.url||c.web,P=d?" ("+d+")":"",D=c.email||c.mail,A=D?" <"+D+">":"";return p+A+P}function m(c){if(typeof c!="string")return c;var p=c.match(/^([^(<]+)/),d=c.match(/\(([^()]+)\)/),P=c.match(/<([^<>]+)>/),D={};return p&&p[0].trim()&&(D.name=p[0].trim()),P&&(D.email=P[1]),d&&(D.url=d[1]),D}function L(c){var p=c.optionalDependencies;if(p){var d=c.dependencies||{};Object.keys(p).forEach(function(P){d[P]=p[P]}),c.dependencies=d}}function h(c,p,d){if(!c)return{};if(typeof c=="string"&&(c=c.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(c))return c;d("deprecatedArrayDependencies",p);var P={};return c.filter(function(D){return typeof D=="string"}).forEach(function(D){D=D.trim().split(/(:?[@\s><=])/);var A=D.shift(),E=D.join("");E=E.trim(),E=E.replace(/^@/,""),P[A]=E}),P}function S(c,p){a.forEach(function(d){c[d]&&(c[d]=h(c[d],d,p))})}function C(c,p){c&&Object.keys(c).forEach(function(d){l.bugs[d]&&(p("typo",d,l.bugs[d],"bugs"),c[l.bugs[d]]=c[d],delete c[d])})}return ge}var at="'repositories' (plural) Not supported. Please pick one as the 'repository' field",lt="No repository field.",ct="Probably broken git url: %s",ht="scripts must be an object",ut="script values must be string commands",pt="Invalid 'files' member",ft="Invalid filename in 'files' list: %s",dt="Invalid 'bundleDependencies' list. Must be array of package names",mt="Invalid bundleDependencies member: %s",gt="Non-dependency in bundleDependencies: %s",Lt="%s field must be an object",St="Invalid dependency: %s %s",vt="specifying %s as array is deprecated",yt="modules field is deprecated",bt="keywords should be an array of strings",Ct="keywords should be an array of strings",Pt="%s is also the name of a node core module.",Dt="'description' field should be a string",wt="No description",xt="No README data",At="No license field.",Et="Bug string field must be url, email, or {email,url}",$t="bugs.url field must be a string url. Deleted.",Ot="bugs.email field must be a string email. Deleted.",Nt="Normalized value of bugs field is an empty object. Deleted.",Ft="homepage field must be a string url. Deleted.",Tt="license should be a valid SPDX license expression",Gt="%s should probably be %s.";const Yi={repositories:at,missingRepository:lt,brokenGitUrl:ct,nonObjectScripts:ht,nonStringScript:ut,nonArrayFiles:pt,invalidFilename:ft,nonArrayBundleDependencies:dt,nonStringBundleDependency:mt,nonDependencyBundleDependency:gt,nonObjectDependencies:Lt,nonStringDependency:St,deprecatedArrayDependencies:vt,deprecatedModules:yt,nonArrayKeywords:bt,nonStringKeyword:Ct,conflictingName:Pt,nonStringDescription:Dt,missingDescription:wt,missingReadme:xt,missingLicense:At,nonEmailUrlBugsString:Et,nonUrlBugsUrlField:$t,nonEmailBugsEmailField:Ot,emptyNormalizedBugs:Nt,nonUrlHomepage:Ft,invalidLicense:Tt,typo:Gt},qi=Object.defineProperty({__proto__:null,brokenGitUrl:ct,conflictingName:Pt,default:Yi,deprecatedArrayDependencies:vt,deprecatedModules:yt,emptyNormalizedBugs:Nt,invalidFilename:ft,invalidLicense:Tt,missingDescription:wt,missingLicense:At,missingReadme:xt,missingRepository:lt,nonArrayBundleDependencies:dt,nonArrayFiles:pt,nonArrayKeywords:bt,nonDependencyBundleDependency:gt,nonEmailBugsEmailField:Ot,nonEmailUrlBugsString:Et,nonObjectDependencies:Lt,nonObjectScripts:ht,nonStringBundleDependency:mt,nonStringDependency:St,nonStringDescription:Dt,nonStringKeyword:Ct,nonStringScript:ut,nonUrlBugsUrlField:$t,nonUrlHomepage:Ft,repositories:at,typo:Gt},Symbol.toStringTag,{value:"Module"}),Vi=ve(qi);var Le,Me;function Ki(){if(Me)return Le;Me=1;var o=qt,e=Vi;Le=function(){var i=Array.prototype.slice.call(arguments,0),r=i.shift();if(r==="typo")return t.apply(null,i);var s=e[r]?e[r]:r+": '%s'";return i.unshift(s),o.format.apply(null,i)};function t(i,r,s){return s&&(i=s+"['"+i+"']",r=s+"['"+r+"']"),o.format(e.typo,i,r)}return Le}var Se,je;function Ji(){if(je)return Se;je=1,Se=s;var o=zi();s.fixer=o;var e=Ki(),t=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],r=t.map(function(n){return a(n)+"Field"});r=r.concat(i);function s(n,l,u){l===!0&&(l=null,u=!0),u||(u=!1),(!l||n.private)&&(l=function(){}),n.scripts&&n.scripts.install==="node-gyp rebuild"&&!n.scripts.preinstall&&(n.gypfile=!0),o.warn=function(){l(e.apply(null,arguments))},r.forEach(function(f){o["fix"+a(f)](n,u)}),n._id=n.name+"@"+n.version}function a(n){return n.charAt(0).toUpperCase()+n.slice(1)}return Se}var Xi=Ji();const Zi=Ht(Xi),Qi=(o,e,t)=>{const i=$(o),r=$(e),s=r===i?".":Mt(i,r);return t.some(a=>{const n=a.startsWith("./")?a.slice(2):a,l=s.startsWith("./")?s.slice(2):s;if(n==="."&&l===".")return!0;if(n.endsWith("/**")){const u=n.slice(0,-3);return l===u||l.startsWith(`${u}/`)}if(n.endsWith("/*")){const u=n.slice(0,-2);return u===""?l!=="."&&!l.includes("/"):l.startsWith(`${u}/`)||l===u}return l===n||l.startsWith(`${n}/`)})},es=o=>{const e=X("pnpm-workspace.yaml",{cwd:$(o),type:"file"});if(!e)return;const t=He(e),i=Array.isArray(t.packages)?t.packages:[];if(!Qi(e,o,i))return;const r={};return t.catalog&&typeof t.catalog=="object"&&(r.catalog=t.catalog),t.catalogs&&typeof t.catalogs=="object"&&(r.catalogs=t.catalogs),Object.keys(r).length>0?r:void 0},ts=(o,e,t)=>{if(e==="catalog:")return t.catalog?.[o];if(e.startsWith("catalog:")){const i=e.slice(8);return t.catalogs?.[i]?.[o]}},is=(o,e)=>{for(const[t,i]of Object.entries(o)){if(typeof i!="string")continue;const r=ts(t,i,e);r&&(o[t]=r)}},ss=(o,e)=>{const t=["dependencies","devDependencies","peerDependencies","optionalDependencies"];for(const i of t){if(!o[i]||typeof o[i]!="object")continue;const r=o[i];is(r,e)}};let rs;const ns=o=>(rs??=Y(import.meta.url))(o),W=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ye=o=>{if(typeof W<"u"&&W.versions&&W.versions.node){const[e,t]=W.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return W.getBuiltinModule(o)}return ns(o)};ye("node:fs");ye("node:readline");ye("node:util");const os=/, ([^,]*)$/,as=new Map,ls=(o,e={})=>`${o}|s${String(e.strict?1:0)}|c${String(e.resolveCatalogs?1:0)}|j${String(e.json5===!1?0:1)}|y${String(e.yaml===!1?0:1)}|w${String(e.ignoreWarnings?1:0)}`;class cs extends Error{constructor(e){super(`The following warnings were encountered while normalizing package data:
3
- - ${e.join(`
4
- - `)}`),this.name="PackageJsonValidationError"}}const hs=(o,e,t=[])=>{const i=[];if(Zi(o,r=>{i.push(r)},e),e&&i.length>0){const r=i.filter(s=>!t.some(a=>a instanceof RegExp?a.test(s):a===s));if(r.length>0)throw new cs(r)}return o},us=o=>He(o),ps=o=>{const e=jt(o);return Wt.parse(e)},fs=(o,e)=>e?.yaml!==!1&&(o.endsWith(".yaml")||o.endsWith(".yml"))?us(o):e?.json5!==!1&&o.endsWith(".json5")?ps(o):ze(o),ds=(o,e={})=>{const t={type:"file"};o&&(t.cwd=o);const i=["package.json"];e.yaml!==!1&&i.push("package.yaml","package.yml"),e.json5!==!1&&i.push("package.json5");const r=X(i,t);if(!r)throw new K(`No such file or directory, for ${i.join(", ").replace(os," or $1")} found.`);const s=e.cache&&typeof e.cache!="boolean"?e.cache:as,a=ls(r,e);if(e.cache&&s.has(a))return s.get(a);const n=fs(r,e);if(e.resolveCatalogs){const u=es(r);u&&ss(n,u)}hs(n,e.strict??!1,e.ignoreWarnings);const l={packageJson:n,path:r};return e.cache&&s.set(a,l),l};var ms="2.0.0";const gs={version:ms},Ls=gs.version,Ss="@visulima/vis";let F;const Is=()=>{if(F!==void 0)return F;const o=process.env.VIS_VERSION;if(o)return F=o,F;try{const{packageJson:e}=ds(kt(Ut(import.meta.url)),{json5:!1,yaml:!1});if(e.name===Ss&&typeof e.version=="string")return F=e.version,F}catch{}return F=Ls,F};export{Bs as D,Rs as M,ti as T,Gs as U,xs as a,Ns as b,Es as c,Os as g,$s as h,ws as i,Is as m,Fs as p,As as t,Ts as u};
@@ -1 +0,0 @@
1
- import{createRequire as h}from"node:module";import{l as w,d as T,m}from"./index-DND6ptxQ.js";import{s as S}from"./index-BAe6e0XE.js";import{g as R}from"./en-BxrK-n-J.js";import{a as C}from"./readJsonSync-BnWiH5-R-BpnwAB0Z.js";let b;const k=t=>(b??=h(import.meta.url))(t),u=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=t=>{if(typeof u<"u"&&u.versions&&u.versions.node){const[e,s]=u.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return u.getBuiltinModule(t)}return k(t)},{rmSync:l,writeFileSync:j}=_("node:fs"),f=3,U=1800*1e3,z=15e3,g=()=>m(R(),"packuments"),y=t=>m(g(),`${encodeURIComponent(t)}.json`),F=t=>{const e=y(t);if(w(e))try{const s=C(e);if(s.cacheVersion!==f){l(e,{force:!0});return}if(Date.now()-s.createdAt>s.ttlMs){l(e,{force:!0});return}return s.packument}catch{l(e,{force:!0});return}},M=(t,e,s)=>{T(g());const n={cacheVersion:f,createdAt:Date.now(),packument:e,ttlMs:s};j(y(t),JSON.stringify(n),"utf8")},$=t=>{const e={},s=t.versions??{};for(const[c,r]of Object.entries(s)){const i=r.dist,o={version:c};if(r._npmUser!==void 0&&(o._npmUser=r._npmUser),r.maintainers!==void 0&&(o.maintainers=r.maintainers),r.bin!==void 0&&(o.bin=r.bin),i!==void 0){const a={};i.signatures!==void 0&&(a.signatures=i.signatures),i.attestations!==void 0&&(a.attestations=i.attestations),typeof i.integrity=="string"&&(a.integrity=i.integrity),typeof i.tarball=="string"&&(a.tarball=i.tarball),typeof i.unpackedSize=="number"&&Number.isFinite(i.unpackedSize)&&i.unpackedSize>=0&&(a.unpackedSize=i.unpackedSize),typeof i.fileCount=="number"&&Number.isInteger(i.fileCount)&&i.fileCount>=0&&(a.fileCount=i.fileCount),o.dist=a}r.repository!==void 0&&(o.repository=r.repository),r.license!==void 0&&(o.license=r.license),typeof r.readme=="string"&&(o.readme=r.readme),typeof r.readmeFilename=="string"&&(o.readmeFilename=r.readmeFilename),typeof r.private=="boolean"&&(o.private=r.private),typeof r.deprecated=="string"&&(o.deprecated=r.deprecated),r.scripts!==void 0&&typeof r.scripts=="object"&&(o.scripts=r.scripts),e[c]=o}const n={name:typeof t.name=="string"?t.name:"",versions:e};return t["dist-tags"]!==void 0&&(n["dist-tags"]=t["dist-tags"]),t.time!==void 0&&(n.time=t.time),typeof t.readme=="string"&&(n.readme=t.readme),n},A=t=>{const e={Accept:"application/json"};return t!==void 0&&t!==""&&(e.Authorization=`Bearer ${t}`),e},N=async(t,e)=>{if(e.registryUrl!==void 0)return{authToken:e.authToken,url:e.registryUrl};if(e.workspaceRoot!==void 0){const{getRegistryForPackage:s,loadNpmrc:n}=await import("../packem_chunks/catalog.js").then(o=>o.a0),c=n(e.workspaceRoot),{token:r,url:i}=s(t,c);return{authToken:e.authToken??r,url:i}}return{authToken:e.authToken,url:"https://registry.npmjs.org"}},P=async(t,e={})=>{const s=e.cacheTtlMs??U,n=F(t);if(n!==void 0)return n;if(e.offline)return;const c=await N(t,e),r=`${c.url.endsWith("/")?c.url.slice(0,-1):c.url}/${t.replace("/","%2f")}`,i=new AbortController,o=setTimeout(()=>{i.abort()},z),a=()=>{i.abort()};e.signal?.addEventListener("abort",a,{once:!0});try{const d=await fetch(r,{headers:A(c.authToken),signal:i.signal});if(d.status===404)return;if(!d.ok)throw new Error(`Registry returned ${String(d.status)} for ${t}`);const v=await d.json(),p=$(v);return M(t,p,s),p}finally{clearTimeout(o),e.signal?.removeEventListener("abort",a)}},x=(t,e)=>{const s=Object.keys(t.versions);if(s.length===0)return;if(e===void 0||e===""||e==="latest")return t["dist-tags"]?.latest??s.at(-1);const n=t["dist-tags"]?.[e];return n!==void 0?n:Object.hasOwn(t.versions,e)?e:S.maxSatisfying(s,e)??void 0};export{P as g,x as r};