@maincode-ai/matilda-code 0.21.12 → 0.21.13-nightly.20261027.e00306cd3

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 (269) hide show
  1. package/chunks/agent-H5JE3RJQ.js +3 -0
  2. package/chunks/agent-headless-H2JZZ7UV.js +3 -0
  3. package/chunks/{askUserQuestion-2QI4NSFJ.js → askUserQuestion-L3WDL2T4.js} +3 -3
  4. package/chunks/ca-UBWUTZVZ.js +25 -0
  5. package/chunks/chunk-4CVGYUEL.js +3 -0
  6. package/chunks/{chunk-RNKDFE2S.js → chunk-5B2QERWR.js} +1 -1
  7. package/chunks/chunk-62GTGPTP.js +8 -0
  8. package/chunks/chunk-6365AZBW.js +56 -0
  9. package/chunks/chunk-6PFK4XTH.js +207 -0
  10. package/chunks/chunk-7ZODGQO6.js +4 -0
  11. package/chunks/chunk-DB5LMKXU.js +31 -0
  12. package/chunks/chunk-EYZPVR7N.js +13 -0
  13. package/chunks/chunk-FKHUEFMK.js +8 -0
  14. package/chunks/{chunk-6T2GIM76.js → chunk-GILXFDEG.js} +1 -1
  15. package/chunks/{chunk-VTGICC67.js → chunk-GKEUZTOB.js} +1 -1
  16. package/chunks/chunk-GSRXW64P.js +120 -0
  17. package/chunks/chunk-GT6MSEK4.js +3 -0
  18. package/chunks/chunk-HEJO7OBH.js +3 -0
  19. package/chunks/chunk-HPO2YWG4.js +78 -0
  20. package/chunks/chunk-I3CV4LOD.js +8 -0
  21. package/chunks/{chunk-DOOFGSRV.js → chunk-J3AMKDX6.js} +1 -1
  22. package/chunks/chunk-JU7QTSKS.js +14 -0
  23. package/chunks/chunk-LBQNFSZ2.js +9 -0
  24. package/chunks/chunk-LOB42ODE.js +9 -0
  25. package/chunks/chunk-LVDDFAK4.js +89 -0
  26. package/chunks/{chunk-27Q5KW3A.js → chunk-NK2QMGCC.js} +13 -13
  27. package/chunks/{chunk-YRQP3SLC.js → chunk-O7VPFJ3R.js} +1 -1
  28. package/chunks/chunk-OBE5S4GG.js +9 -0
  29. package/chunks/{chunk-CZGZ3KK7.js → chunk-ONANBLIE.js} +1 -1
  30. package/chunks/chunk-QXSBPCBA.js +8 -0
  31. package/chunks/chunk-TUKNB5CQ.js +33 -0
  32. package/chunks/chunk-UM6CLO7D.js +7 -0
  33. package/chunks/chunk-V4D3LER3.js +2615 -0
  34. package/chunks/{chunk-HYVP4472.js → chunk-V6UPUMP3.js} +1 -1
  35. package/chunks/chunk-VUJRLLGL.js +8 -0
  36. package/chunks/{chunk-MCQUPLRE.js → chunk-WTU6GSZH.js} +1 -1
  37. package/chunks/chunk-XBTBZHRC.js +8 -0
  38. package/chunks/{chunk-WV3IUPZS.js → chunk-YTB3OFTT.js} +1 -1
  39. package/chunks/chunk-ZQKABJBB.js +8 -0
  40. package/chunks/chunk-ZSGBDQXU.js +11 -0
  41. package/chunks/{computer-use-WKDNUTLD.js → computer-use-N6KGNST6.js} +1 -1
  42. package/chunks/{cron-create-F2LXM2OA.js → cron-create-4XBY5RVI.js} +1 -1
  43. package/chunks/cron-delete-BH4VP3LX.js +3 -0
  44. package/chunks/cron-list-XXRFKNGM.js +5 -0
  45. package/chunks/de-LEEHWWJ2.js +25 -0
  46. package/chunks/{devtools-5JRKK3E7.js → devtools-7YNCRYZV.js} +1 -1
  47. package/chunks/{chunk-OOEH6ZSV.js → dist-UWUWLWTO.js} +2 -2
  48. package/chunks/{edit-QQNJZ55P.js → edit-6ULTLTJQ.js} +1 -1
  49. package/chunks/{en-EJLDYIBM.js → en-LNOIHFSQ.js} +4 -4
  50. package/chunks/{enter-worktree-5X5SAMBJ.js → enter-worktree-V2VANZYJ.js} +1 -1
  51. package/chunks/enterPlanMode-75H54S3Z.js +18 -0
  52. package/chunks/{exit-worktree-SRKZBEYF.js → exit-worktree-KPB32K6P.js} +1 -1
  53. package/chunks/{exitPlanMode-WSPTGGVN.js → exitPlanMode-K7JRP22Y.js} +2 -2
  54. package/chunks/fr-4TA2AIU6.js +25 -0
  55. package/chunks/{getMachineId-bsd-ZYBNK2JG.js → getMachineId-bsd-ETKQTB6C.js} +1 -1
  56. package/chunks/{getMachineId-darwin-CM2MQGUI.js → getMachineId-darwin-AKNRWOWB.js} +1 -1
  57. package/chunks/{getMachineId-linux-SYE2KMCW.js → getMachineId-linux-2QSD7FTP.js} +1 -1
  58. package/chunks/{getMachineId-unsupported-6IHVG2XO.js → getMachineId-unsupported-UXSV7I24.js} +1 -1
  59. package/chunks/{getMachineId-win-S3J3JSUM.js → getMachineId-win-4MTFXGP3.js} +1 -1
  60. package/chunks/glob-ACAIHWST.js +22 -0
  61. package/chunks/{goal-tools-C6BSBHCF.js → goal-tools-VPFXBI6M.js} +3 -3
  62. package/chunks/{grep-MVCOBUYW.js → grep-R4K75RXS.js} +1 -1
  63. package/chunks/{ja-GGNJR7AR.js → ja-VXDMQKRW.js} +5 -5
  64. package/chunks/keychain-token-storage-7VYNARRB.js +3 -0
  65. package/chunks/ls-4ZEICYPK.js +15 -0
  66. package/chunks/{lsp-DYDK6XCS.js → lsp-4US2RIIV.js} +1 -1
  67. package/chunks/mcp-client-ZKQFYCFN.js +3 -0
  68. package/chunks/monitor-KSNFIY54.js +32 -0
  69. package/chunks/{multipart-parser-JI75T2O5.js → multipart-parser-FKHYAVGR.js} +1 -1
  70. package/chunks/notebook-edit-655ZNV6Q.js +17 -0
  71. package/chunks/openaiContentGenerator-BG3OM453.js +52 -0
  72. package/chunks/pt-WEIMCOKI.js +25 -0
  73. package/chunks/read-file-4VSUKSRB.js +3 -0
  74. package/chunks/ripGrep-PNALN2GG.js +3 -0
  75. package/chunks/ru-WFLK34ZL.js +25 -0
  76. package/chunks/scheduler-AVYCIBEK.js +8 -0
  77. package/chunks/send-message-ND2SRKX5.js +8 -0
  78. package/chunks/shell-GUHQNOMZ.js +3 -0
  79. package/chunks/{skill-HZPFEAPF.js → skill-AB2X2DTC.js} +1 -1
  80. package/chunks/src-LZEU4AYF.js +5 -0
  81. package/chunks/symbol-search-VICSUEZH.js +19 -0
  82. package/chunks/{syntheticOutput-432LXITX.js → syntheticOutput-Z7DQKMRI.js} +1 -1
  83. package/chunks/task-create-BQ73FRTH.js +3 -0
  84. package/chunks/{task-detach-XMSJ3HBM.js → task-detach-JCHSLUOR.js} +1 -1
  85. package/chunks/task-list-6ESRFO5F.js +9 -0
  86. package/chunks/{task-stop-NTS62FLG.js → task-stop-74H2CPAJ.js} +1 -1
  87. package/chunks/{task-update-AR26UFYZ.js → task-update-R3BN6KPQ.js} +1 -1
  88. package/chunks/{team-create-PYXFVIR5.js → team-create-UTKRPUPZ.js} +3 -3
  89. package/chunks/team-delete-PCCGTLGL.js +8 -0
  90. package/chunks/todoWrite-BZI75DFV.js +3 -0
  91. package/chunks/{tool-search-RKZDSRYS.js → tool-search-FJ5MAPQ6.js} +1 -1
  92. package/chunks/{web-fetch-VW3SVDQ6.js → web-fetch-DEUGZQZS.js} +17 -17
  93. package/chunks/{web-search-XQUIZARL.js → web-search-PUUIEFJO.js} +3 -3
  94. package/chunks/{workflow-YXNXDRWZ.js → workflow-CBADL3IM.js} +2 -2
  95. package/chunks/write-file-QGCL2AJL.js +15 -0
  96. package/cli.js +644 -679
  97. package/examples/starter/README.md +0 -3
  98. package/locales/ca.js +1 -37
  99. package/locales/de.js +1 -42
  100. package/locales/en.js +1 -43
  101. package/locales/fr.js +1 -39
  102. package/locales/ja.js +1 -42
  103. package/locales/pt.js +1 -42
  104. package/locales/ru.js +1 -42
  105. package/package.json +2 -2
  106. package/sandbox-macos-permissive-closed.sb +0 -1
  107. package/sandbox-macos-permissive-open.sb +0 -1
  108. package/sandbox-macos-permissive-proxied.sb +1 -2
  109. package/sandbox-macos-restrictive-closed.sb +14 -2
  110. package/sandbox-macos-restrictive-open.sb +14 -2
  111. package/sandbox-macos-restrictive-proxied.sb +15 -3
  112. package/bundled/mainy/SKILL.md +0 -157
  113. package/bundled/mainy/docs/_meta.ts +0 -32
  114. package/bundled/mainy/docs/common-workflow.md +0 -571
  115. package/bundled/mainy/docs/configuration/_meta.ts +0 -7
  116. package/bundled/mainy/docs/configuration/auth.md +0 -82
  117. package/bundled/mainy/docs/configuration/matilda-ignore.md +0 -55
  118. package/bundled/mainy/docs/configuration/model-providers.md +0 -598
  119. package/bundled/mainy/docs/configuration/settings.md +0 -790
  120. package/bundled/mainy/docs/configuration/themes.md +0 -199
  121. package/bundled/mainy/docs/configuration/trusted-folders.md +0 -67
  122. package/bundled/mainy/docs/extension/_meta.ts +0 -9
  123. package/bundled/mainy/docs/extension/extension-releasing.md +0 -204
  124. package/bundled/mainy/docs/extension/getting-started-extensions.md +0 -299
  125. package/bundled/mainy/docs/extension/introduction.md +0 -338
  126. package/bundled/mainy/docs/features/_meta.ts +0 -27
  127. package/bundled/mainy/docs/features/approval-mode.md +0 -388
  128. package/bundled/mainy/docs/features/arena.md +0 -219
  129. package/bundled/mainy/docs/features/auto-mode.md +0 -308
  130. package/bundled/mainy/docs/features/channels/_meta.ts +0 -8
  131. package/bundled/mainy/docs/features/channels/dingtalk.md +0 -134
  132. package/bundled/mainy/docs/features/channels/feishu.md +0 -186
  133. package/bundled/mainy/docs/features/channels/overview.md +0 -336
  134. package/bundled/mainy/docs/features/channels/plugins.md +0 -87
  135. package/bundled/mainy/docs/features/channels/telegram.md +0 -120
  136. package/bundled/mainy/docs/features/channels/weixin.md +0 -106
  137. package/bundled/mainy/docs/features/code-review.md +0 -291
  138. package/bundled/mainy/docs/features/commands.md +0 -528
  139. package/bundled/mainy/docs/features/dual-output.md +0 -627
  140. package/bundled/mainy/docs/features/followup-suggestions.md +0 -109
  141. package/bundled/mainy/docs/features/headless.md +0 -448
  142. package/bundled/mainy/docs/features/hooks.md +0 -1306
  143. package/bundled/mainy/docs/features/language.md +0 -171
  144. package/bundled/mainy/docs/features/lsp.md +0 -496
  145. package/bundled/mainy/docs/features/markdown-rendering.md +0 -183
  146. package/bundled/mainy/docs/features/mcp.md +0 -423
  147. package/bundled/mainy/docs/features/memory.md +0 -185
  148. package/bundled/mainy/docs/features/sandbox.md +0 -249
  149. package/bundled/mainy/docs/features/scheduled-tasks.md +0 -139
  150. package/bundled/mainy/docs/features/skills.md +0 -347
  151. package/bundled/mainy/docs/features/status-line.md +0 -397
  152. package/bundled/mainy/docs/features/structured-output.md +0 -309
  153. package/bundled/mainy/docs/features/sub-agents.md +0 -737
  154. package/bundled/mainy/docs/features/tips.md +0 -54
  155. package/bundled/mainy/docs/features/token-caching.md +0 -29
  156. package/bundled/mainy/docs/features/tool-use-summaries.md +0 -178
  157. package/bundled/mainy/docs/features/worktree.md +0 -345
  158. package/bundled/mainy/docs/ide-integration/_meta.ts +0 -4
  159. package/bundled/mainy/docs/ide-integration/ide-companion-spec.md +0 -182
  160. package/bundled/mainy/docs/ide-integration/ide-integration.md +0 -144
  161. package/bundled/mainy/docs/integration-github-action.md +0 -241
  162. package/bundled/mainy/docs/integration-jetbrains.md +0 -81
  163. package/bundled/mainy/docs/integration-vscode.md +0 -39
  164. package/bundled/mainy/docs/integration-zed.md +0 -72
  165. package/bundled/mainy/docs/matilda-serve-deploy-local.md +0 -221
  166. package/bundled/mainy/docs/matilda-serve.md +0 -661
  167. package/bundled/mainy/docs/overview.md +0 -64
  168. package/bundled/mainy/docs/quickstart.md +0 -234
  169. package/bundled/mainy/docs/reference/_meta.ts +0 -3
  170. package/bundled/mainy/docs/reference/keyboard-shortcuts.md +0 -91
  171. package/bundled/mainy/docs/support/Uninstall.md +0 -65
  172. package/bundled/mainy/docs/support/_meta.ts +0 -6
  173. package/bundled/mainy/docs/support/tos-privacy.md +0 -94
  174. package/bundled/mainy/docs/support/troubleshooting.md +0 -127
  175. package/chunks/agent-WM63A6NK.js +0 -3
  176. package/chunks/agent-headless-QIUBDKPW.js +0 -3
  177. package/chunks/anthropicContentGenerator-VKFTAIU3.js +0 -39
  178. package/chunks/ca-I2HEEIL7.js +0 -25
  179. package/chunks/chunk-2HTPVSGT.js +0 -3
  180. package/chunks/chunk-2MOGYHWM.js +0 -8
  181. package/chunks/chunk-3IRGBRSP.js +0 -113
  182. package/chunks/chunk-3YLXGE6T.js +0 -8
  183. package/chunks/chunk-47XR7IMP.js +0 -8
  184. package/chunks/chunk-4F4DA5UI.js +0 -8
  185. package/chunks/chunk-4J6DC24J.js +0 -59
  186. package/chunks/chunk-4Q2SNBUH.js +0 -18
  187. package/chunks/chunk-5C2RJ5RR.js +0 -37
  188. package/chunks/chunk-6E766NPX.js +0 -31
  189. package/chunks/chunk-6EQMZNIY.js +0 -8
  190. package/chunks/chunk-6GBNB5Z2.js +0 -3
  191. package/chunks/chunk-6Z2MV7ZY.js +0 -186
  192. package/chunks/chunk-BVOCFLC4.js +0 -56
  193. package/chunks/chunk-CSJTA7NE.js +0 -101
  194. package/chunks/chunk-DC7LAFZZ.js +0 -8
  195. package/chunks/chunk-DE3HKC2W.js +0 -9
  196. package/chunks/chunk-EQGA7LH7.js +0 -30
  197. package/chunks/chunk-FPO57O66.js +0 -39
  198. package/chunks/chunk-FWDMPRKU.js +0 -3
  199. package/chunks/chunk-G7R2XEEF.js +0 -7
  200. package/chunks/chunk-GOJCMVJJ.js +0 -8
  201. package/chunks/chunk-GTVCJCHR.js +0 -8
  202. package/chunks/chunk-JCE3JAVC.js +0 -25
  203. package/chunks/chunk-JRECUFB3.js +0 -2630
  204. package/chunks/chunk-KHHJYBR5.js +0 -9
  205. package/chunks/chunk-LJR4RZZ2.js +0 -3
  206. package/chunks/chunk-LUNDTQ3G.js +0 -8
  207. package/chunks/chunk-M53RP3YP.js +0 -31
  208. package/chunks/chunk-MO2HXJG5.js +0 -9
  209. package/chunks/chunk-MTMU7JYZ.js +0 -11
  210. package/chunks/chunk-O44XK65C.js +0 -8
  211. package/chunks/chunk-OA56BXPD.js +0 -3
  212. package/chunks/chunk-PA6532AY.js +0 -6
  213. package/chunks/chunk-PGXQZVLX.js +0 -8
  214. package/chunks/chunk-QKYGQLWC.js +0 -8
  215. package/chunks/chunk-QN6Y6NPA.js +0 -3
  216. package/chunks/chunk-QVCGLQCI.js +0 -32
  217. package/chunks/chunk-S3CWEVTS.js +0 -15
  218. package/chunks/chunk-SDTWBD62.js +0 -8
  219. package/chunks/chunk-T2T2UEPY.js +0 -4
  220. package/chunks/chunk-TISQNFB5.js +0 -3
  221. package/chunks/chunk-U347OO7S.js +0 -9
  222. package/chunks/chunk-UIRBHC5X.js +0 -3
  223. package/chunks/chunk-VI74YQQO.js +0 -8
  224. package/chunks/chunk-VYZOOSMP.js +0 -30
  225. package/chunks/chunk-WC2VTVCE.js +0 -27
  226. package/chunks/chunk-WVY2P6WH.js +0 -26
  227. package/chunks/chunk-WZ75OGYY.js +0 -14
  228. package/chunks/chunk-XMZIY7XX.js +0 -13
  229. package/chunks/chunk-YJAKOETP.js +0 -22
  230. package/chunks/chunk-YV3PUOBU.js +0 -65
  231. package/chunks/contextCommand-DAB3HOHY.js +0 -3
  232. package/chunks/cron-delete-DE6Q2S2L.js +0 -3
  233. package/chunks/cron-list-IAQEJVV7.js +0 -5
  234. package/chunks/de-AQXFJYZI.js +0 -25
  235. package/chunks/dist-7UYRLSLE.js +0 -3
  236. package/chunks/dist-ME6647DQ.js +0 -195
  237. package/chunks/dist-P6SLWL5V.js +0 -42
  238. package/chunks/dist-VG3ZDJ2A.js +0 -28
  239. package/chunks/dist-YTCHM57U.js +0 -23
  240. package/chunks/enterPlanMode-HP35SPLN.js +0 -18
  241. package/chunks/fileFromPath-7UCWPD4W.js +0 -3
  242. package/chunks/fr-6TDHK7F2.js +0 -25
  243. package/chunks/geminiContentGenerator-RJ73DQAP.js +0 -8
  244. package/chunks/glob-QQ6LGKDX.js +0 -22
  245. package/chunks/keychain-token-storage-KQK6MNOJ.js +0 -3
  246. package/chunks/ls-JYJXFSXN.js +0 -15
  247. package/chunks/matildaAgentContentGenerator-YUYS4336.js +0 -8
  248. package/chunks/matildaContentGenerator-O4Z2QPCP.js +0 -8
  249. package/chunks/matildaOAuth2-7COTQQR2.js +0 -3
  250. package/chunks/mcp-client-RXVQU5VI.js +0 -3
  251. package/chunks/monitor-77KXDXPR.js +0 -32
  252. package/chunks/notebook-edit-TKJD2EQZ.js +0 -17
  253. package/chunks/openaiContentGenerator-2EALAM3U.js +0 -3
  254. package/chunks/pt-D6L2QTDM.js +0 -25
  255. package/chunks/read-file-3KUAH6ND.js +0 -3
  256. package/chunks/ripGrep-U2PLKXMY.js +0 -3
  257. package/chunks/ru-BNJCHDYO.js +0 -25
  258. package/chunks/scheduler-J7VU2V5Y.js +0 -8
  259. package/chunks/send-message-P3SMWNEE.js +0 -8
  260. package/chunks/serve-FXH6EBQ6.js +0 -1015
  261. package/chunks/shell-PXR2AXDD.js +0 -3
  262. package/chunks/src-RFAEPLY7.js +0 -3
  263. package/chunks/src-WZTRMETQ.js +0 -5
  264. package/chunks/symbol-search-EAIZPWN7.js +0 -19
  265. package/chunks/task-create-Z3QRCMX4.js +0 -3
  266. package/chunks/task-list-GXAJW3JP.js +0 -9
  267. package/chunks/team-delete-OMYVUAQU.js +0 -8
  268. package/chunks/todoWrite-5NZ7CHTC.js +0 -3
  269. package/chunks/write-file-XDDLTGSG.js +0 -15
@@ -1,9 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{b as h,g}from"./chunk-S3CWEVTS.js";import{b as M}from"./chunk-TISQNFB5.js";import{c as w}from"./chunk-LUNDTQ3G.js";import{b as c,ba as b}from"./chunk-27Q5KW3A.js";import{b as p}from"./chunk-GZPNIYVZ.js";import{f as E}from"./chunk-OWGSC52X.js";p();var m=null;function D(e){m=e}function _(){return m}function P(){m=null}function S(e,r,o){return m?(m.enqueueApproval({teammateName:e,teammateColor:r,details:o}),!0):!1}function $(e,r,o,t){return{...e,title:`[${r}] ${e.title}`,onConfirm:async(i,s)=>{await o(i,s)}}}p();var C=E(h(),1);import*as a from"node:fs/promises";import*as u from"node:path";var y=b("AGENTS_TEAM_MAILBOX"),N={retries:{retries:10,minTimeout:5,maxTimeout:100,factor:2,randomize:!0},stale:5e3,onCompromised:e=>{y.debug("mailbox lock compromised:",e?.message??e)}},d=new Map;function O(e){let r=d.get(e);return r||(r=new M,d.set(e,r)),r}function I(e){let r=g(e),o=0;for(let t of d.keys())u.dirname(t)===r&&(d.delete(t),o++);return o}async function T(e,r){return O(e).runExclusive(async()=>{let o=await C.default.lock(e,N);try{return await r()}finally{await o()}})}function x(e,r){return u.join(g(e),`${r}.json`)}async function X(e,r){let o=x(e,r);try{let t=await a.readFile(o,"utf-8");return JSON.parse(t)}catch(t){if(c(t)&&t.code==="ENOENT")return[];throw t}}var L=5*60*1e3;async function A(e,r,o){let t=x(e,r);await v(t),await T(t,async()=>{let i=await k(t),s=Date.now()-L,l=i.filter(f=>{if(!f.read)return!0;let n=Date.parse(f.timestamp);return Number.isNaN(n)||n>=s});l.push(o),await w(t,l)})}async function z(e,r,o){let t=x(e,r);return await v(t),T(t,async()=>{let i=await k(t),s=n=>!n.read&&(o===void 0||n.type===o),l=i.filter(s);if(l.length===0)return[];let f=i.map(n=>s(n)?{...n,read:!0}:n);return await w(t,f),l})}async function G(e,r){let o=x(e,r);try{await a.unlink(o)}catch(t){if(!c(t)||t.code!=="ENOENT")throw t}}async function K(e){let r=g(e);await a.rm(r,{recursive:!0,force:!0}),I(e)}async function Q(e,r,o){await A(e,r,{from:o.from,text:o.text,timestamp:new Date().toISOString(),read:!1,type:o.type,color:o.color,summary:o.summary})}async function v(e){await a.mkdir(u.dirname(e),{recursive:!0});try{await a.writeFile(e,`[]
4
- `,{flag:"wx"})}catch(r){if(!c(r)||r.code!=="EEXIST")throw r}}async function k(e){try{let r=await a.readFile(e,"utf-8");return JSON.parse(r)}catch(r){if(c(r)&&r.code==="ENOENT")return[];let o=r instanceof Error?r.message:String(r);y.warn(`Quarantining corrupt inbox at ${e}: ${o}`);try{await a.rename(e,`${e}.corrupt-${Date.now()}`)}catch(t){let i=t instanceof Error?t.message:String(t);throw y.warn(`Failed to quarantine ${e}: ${i}`),r instanceof Error?r:new Error(`Failed to read inbox at ${e}: ${o}`)}return[]}}export{D as a,_ as b,P as c,S as d,$ as e,I as f,x as g,X as h,A as i,z as j,G as k,K as l,Q as m};
5
- /**
6
- * @license
7
- * Copyright 2025 Matilda
8
- * SPDX-License-Identifier: Apache-2.0
9
- */
@@ -1,11 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{b as g}from"./chunk-GZPNIYVZ.js";import{a as re,d as I,e as Rn,f as ut}from"./chunk-OWGSC52X.js";var ft=I(Y=>{"use strict";g();Object.defineProperty(Y,"__esModule",{value:!0});Y.normalizePath=Y.isRootDirectory=Y.convertSlashes=Y.cleanPath=void 0;var at=re("path");function Ut(e){let t=(0,at.normalize)(e);return t.length>1&&t[t.length-1]===at.sep&&(t=t.substring(0,t.length-1)),t}Y.cleanPath=Ut;var An=/[\\/]/g;function Qt(e,t){return e.replace(An,t)}Y.convertSlashes=Qt;var En=/^[a-z]:[\\/]$/i;function Sn(e){return e==="/"||En.test(e)}Y.isRootDirectory=Sn;function xn(e,t){let{resolvePaths:r,normalizePath:n,pathSeparator:s}=t,i=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(r&&(e=(0,at.resolve)(e)),(n||i)&&(e=Ut(e)),e===".")return"";let c=e[e.length-1]!==s;return Qt(c?e+s:e,s)}Y.normalizePath=xn});var Yt=I(le=>{"use strict";g();Object.defineProperty(le,"__esModule",{value:!0});le.build=le.joinDirectoryPath=le.joinPathWithBasePath=void 0;var Cn=re("path"),wn=ft();function Vt(e,t){return t+e}le.joinPathWithBasePath=Vt;function vn(e,t){return function(r,n){return n.startsWith(e)?n.replace(e,"")+r:(0,wn.convertSlashes)((0,Cn.relative)(e,n),t.pathSeparator)+t.pathSeparator+r}}function $n(e){return e}function Pn(e,t,r){return t+e+r}le.joinDirectoryPath=Pn;function Tn(e,t){let{relativePaths:r,includeBasePath:n}=t;return r&&e?vn(e,t):n?Vt:$n}le.build=Tn});var Zt=I(ke=>{"use strict";g();Object.defineProperty(ke,"__esModule",{value:!0});ke.build=void 0;function On(e){return function(t,r){r.push(t.substring(e.length)||".")}}function Ln(e){return function(t,r,n){let s=t.substring(e.length)||".";n.every(i=>i(s,!0))&&r.push(s)}}var Fn=(e,t)=>{t.push(e||".")},Dn=(e,t,r)=>{let n=e||".";r.every(s=>s(n,!0))&&t.push(n)},kn=()=>{};function Hn(e,t){let{includeDirs:r,filters:n,relativePaths:s}=t;return r?s?n&&n.length?Ln(e):On(e):n&&n.length?Dn:Fn:kn}ke.build=Hn});var Jt=I(He=>{"use strict";g();Object.defineProperty(He,"__esModule",{value:!0});He.build=void 0;var In=(e,t,r,n)=>{n.every(s=>s(e,!1))&&r.files++},Mn=(e,t,r,n)=>{n.every(s=>s(e,!1))&&t.push(e)},Nn=(e,t,r,n)=>{r.files++},Gn=(e,t)=>{t.push(e)},jn=()=>{};function Bn(e){let{excludeFiles:t,filters:r,onlyCounts:n}=e;return t?jn:r&&r.length?n?In:Mn:n?Nn:Gn}He.build=Bn});var er=I(Ie=>{"use strict";g();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.build=void 0;var qn=e=>e,Wn=()=>[""].slice(0,0);function Xn(e){return e.group?Wn:qn}Ie.build=Xn});var tr=I(Me=>{"use strict";g();Object.defineProperty(Me,"__esModule",{value:!0});Me.build=void 0;var zn=(e,t,r)=>{e.push({directory:t,files:r,dir:t})},Kn=()=>{};function Un(e){return e.group?zn:Kn}Me.build=Un});var sr=I(pe=>{"use strict";g();var Qn=pe&&pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pe,"__esModule",{value:!0});pe.build=void 0;var Ne=Qn(re("fs")),rr=re("path"),Vn=function(e,t,r){let{queue:n,options:{suppressErrors:s}}=t;n.enqueue(),Ne.default.realpath(e,(i,c)=>{if(i)return n.dequeue(s?null:i,t);Ne.default.stat(c,(a,h)=>{if(a)return n.dequeue(s?null:a,t);if(h.isDirectory()&&nr(e,c,t))return n.dequeue(null,t);r(h,c),n.dequeue(null,t)})})},Yn=function(e,t,r){let{queue:n,options:{suppressErrors:s}}=t;n.enqueue();try{let i=Ne.default.realpathSync(e),c=Ne.default.statSync(i);if(c.isDirectory()&&nr(e,i,t))return;r(c,i)}catch(i){if(!s)throw i}};function Zn(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?Yn:Vn}pe.build=Zn;function nr(e,t,r){if(r.options.useRealPaths)return Jn(t,r);let n=(0,rr.dirname)(e),s=1;for(;n!==r.root&&s<2;){let i=r.symlinks.get(n);!!i&&(i===t||i.startsWith(t)||t.startsWith(i))?s++:n=(0,rr.dirname)(n)}return r.symlinks.set(e,t),s>1}function Jn(e,t){return t.visited.includes(e+t.options.pathSeparator)}});var ir=I(je=>{"use strict";g();Object.defineProperty(je,"__esModule",{value:!0});je.build=void 0;var es=e=>e.counts,ts=e=>e.groups,rs=e=>e.paths,ns=e=>e.paths.slice(0,e.options.maxFiles),ss=(e,t,r)=>(Ge(t,r,e.counts,e.options.suppressErrors),null),is=(e,t,r)=>(Ge(t,r,e.paths,e.options.suppressErrors),null),os=(e,t,r)=>(Ge(t,r,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),us=(e,t,r)=>(Ge(t,r,e.groups,e.options.suppressErrors),null);function Ge(e,t,r,n){t(e&&!n?e:null,r)}function ls(e,t){let{onlyCounts:r,group:n,maxFiles:s}=e;return r?t?es:ss:n?t?ts:us:s?t?ns:os:t?rs:is}je.build=ls});var lr=I(ge=>{"use strict";g();var cs=ge&&ge.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ge,"__esModule",{value:!0});ge.build=void 0;var or=cs(re("fs")),ur={withFileTypes:!0},as=(e,t,r,n,s)=>{if(e.queue.enqueue(),n<0)return e.queue.dequeue(null,e);e.visited.push(t),e.counts.directories++,or.default.readdir(t||".",ur,(i,c=[])=>{s(c,r,n),e.queue.dequeue(e.options.suppressErrors?null:i,e)})},fs=(e,t,r,n,s)=>{if(n<0)return;e.visited.push(t),e.counts.directories++;let i=[];try{i=or.default.readdirSync(t||".",ur)}catch(c){if(!e.options.suppressErrors)throw c}s(i,r,n)};function hs(e){return e?fs:as}ge.build=hs});var cr=I(Be=>{"use strict";g();Object.defineProperty(Be,"__esModule",{value:!0});Be.Queue=void 0;var ht=class{onQueueEmpty;count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,r){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,r),t&&(r.controller.abort(),this.onQueueEmpty=void 0))}};Be.Queue=ht});var ar=I(qe=>{"use strict";g();Object.defineProperty(qe,"__esModule",{value:!0});qe.Counter=void 0;var dt=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}};qe.Counter=dt});var _t=I(Z=>{"use strict";g();var ds=Z&&Z.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ps=Z&&Z.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ce=Z&&Z.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&ds(t,e,r);return ps(t,e),t};Object.defineProperty(Z,"__esModule",{value:!0});Z.Walker=void 0;var fr=re("path"),We=ft(),pt=ce(Yt()),gs=ce(Zt()),_s=ce(Jt()),bs=ce(er()),Rs=ce(tr()),ms=ce(sr()),ys=ce(ir()),As=ce(lr()),Es=cr(),Ss=ar(),gt=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,r,n){this.isSynchronous=!n,this.callbackInvoker=ys.build(r,this.isSynchronous),this.root=(0,We.normalizePath)(t,r),this.state={root:(0,We.isRootDirectory)(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Ss.Counter,options:r,queue:new Es.Queue((s,i)=>this.callbackInvoker(i,s,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new AbortController},this.joinPath=pt.build(this.root,r),this.pushDirectory=gs.build(this.root,r),this.pushFile=_s.build(r),this.getArray=bs.build(r),this.groupFiles=Rs.build(r),this.resolveSymlink=ms.build(r,this.isSynchronous),this.walkDirectory=As.build(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=(t,r,n)=>{let{paths:s,options:{filters:i,resolveSymlinks:c,excludeSymlinks:a,exclude:h,maxFiles:d,signal:b,useRealPaths:E,pathSeparator:S},controller:D}=this.state;if(D.signal.aborted||b&&b.aborted||d&&s.length>d)return;let R=this.getArray(this.state.paths);for(let y=0;y<t.length;++y){let $=t[y];if($.isFile()||$.isSymbolicLink()&&!c&&!a){let C=this.joinPath($.name,r);this.pushFile(C,R,this.state.counts,i)}else if($.isDirectory()){let C=pt.joinDirectoryPath($.name,r,this.state.options.pathSeparator);if(h&&h($.name,C))continue;this.pushDirectory(C,s,i),this.walkDirectory(this.state,C,C,n-1,this.walk)}else if(this.resolveSymlink&&$.isSymbolicLink()){let C=pt.joinPathWithBasePath($.name,r);this.resolveSymlink(C,this.state,(v,L)=>{if(v.isDirectory()){if(L=(0,We.normalizePath)(L,this.state.options),h&&h($.name,E?L:C+S))return;this.walkDirectory(this.state,L,E?L:C+S,n-1,this.walk)}else{L=E?L:C;let W=(0,fr.basename)(L),A=(0,We.normalizePath)((0,fr.dirname)(L),this.state.options);L=this.joinPath(W,A),this.pushFile(L,R,this.state.counts,i)}})}}this.groupFiles(this.state.groups,r,R)}};Z.Walker=gt});var dr=I(_e=>{"use strict";g();Object.defineProperty(_e,"__esModule",{value:!0});_e.callback=_e.promise=void 0;var xs=_t();function Cs(e,t){return new Promise((r,n)=>{hr(e,t,(s,i)=>{if(s)return n(s);r(i)})})}_e.promise=Cs;function hr(e,t,r){new xs.Walker(e,t,r).start()}_e.callback=hr});var pr=I(Xe=>{"use strict";g();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.sync=void 0;var ws=_t();function vs(e,t){return new ws.Walker(e,t).start()}Xe.sync=vs});var _r=I(ze=>{"use strict";g();Object.defineProperty(ze,"__esModule",{value:!0});ze.APIBuilder=void 0;var gr=dr(),$s=pr(),bt=class{root;options;constructor(t,r){this.root=t,this.options=r}withPromise(){return(0,gr.promise)(this.root,this.options)}withCallback(t){(0,gr.callback)(this.root,this.options,t)}sync(){return(0,$s.sync)(this.root,this.options)}};ze.APIBuilder=bt});var Ee=I((Do,Ar)=>{"use strict";g();var J="\\\\/",br=`[^${J}]`,ne="\\.",Ps="\\+",Ts="\\?",Ke="\\/",Os="(?=.)",Rr="[^/]",Rt=`(?:${Ke}|$)`,mr=`(?:^|${Ke})`,mt=`${ne}{1,2}${Rt}`,Ls=`(?!${ne})`,Fs=`(?!${mr}${mt})`,Ds=`(?!${ne}{0,1}${Rt})`,ks=`(?!${mt})`,Hs=`[^.${Ke}]`,Is=`${Rr}*?`,Ms="/",yr={DOT_LITERAL:ne,PLUS_LITERAL:Ps,QMARK_LITERAL:Ts,SLASH_LITERAL:Ke,ONE_CHAR:Os,QMARK:Rr,END_ANCHOR:Rt,DOTS_SLASH:mt,NO_DOT:Ls,NO_DOTS:Fs,NO_DOT_SLASH:Ds,NO_DOTS_SLASH:ks,QMARK_NO_DOT:Hs,STAR:Is,START_ANCHOR:mr,SEP:Ms},Ns={...yr,SLASH_LITERAL:`[${J}]`,QMARK:br,STAR:`${br}*?`,DOTS_SLASH:`${ne}{1,2}(?:[${J}]|$)`,NO_DOT:`(?!${ne})`,NO_DOTS:`(?!(?:^|[${J}])${ne}{1,2}(?:[${J}]|$))`,NO_DOT_SLASH:`(?!${ne}{0,1}(?:[${J}]|$))`,NO_DOTS_SLASH:`(?!${ne}{1,2}(?:[${J}]|$))`,QMARK_NO_DOT:`[^.${J}]`,START_ANCHOR:`(?:^|[${J}])`,END_ANCHOR:`(?:[${J}]|$)`,SEP:"\\"},Gs={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"};Ar.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Gs,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(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Ns:yr}}});var Se=I(K=>{"use strict";g();var{REGEX_BACKSLASH:js,REGEX_REMOVE_BACKSLASH:Bs,REGEX_SPECIAL_CHARS:qs,REGEX_SPECIAL_CHARS_GLOBAL:Ws}=Ee();K.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);K.hasRegexChars=e=>qs.test(e);K.isRegexChar=e=>e.length===1&&K.hasRegexChars(e);K.escapeRegex=e=>e.replace(Ws,"\\$1");K.toPosixSlashes=e=>e.replace(js,"/");K.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};K.removeBackslashes=e=>e.replace(Bs,t=>t==="\\"?"":t);K.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?K.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};K.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};K.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};K.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var Pr=I((Mo,$r)=>{"use strict";g();var Er=Se(),{CHAR_ASTERISK:yt,CHAR_AT:Xs,CHAR_BACKWARD_SLASH:xe,CHAR_COMMA:zs,CHAR_DOT:At,CHAR_EXCLAMATION_MARK:Et,CHAR_FORWARD_SLASH:vr,CHAR_LEFT_CURLY_BRACE:St,CHAR_LEFT_PARENTHESES:xt,CHAR_LEFT_SQUARE_BRACKET:Ks,CHAR_PLUS:Us,CHAR_QUESTION_MARK:Sr,CHAR_RIGHT_CURLY_BRACE:Qs,CHAR_RIGHT_PARENTHESES:xr,CHAR_RIGHT_SQUARE_BRACKET:Vs}=Ee(),Cr=e=>e===vr||e===xe,wr=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Ys=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],c=[],a=[],h=e,d=-1,b=0,E=0,S=!1,D=!1,R=!1,y=!1,$=!1,C=!1,v=!1,L=!1,W=!1,A=!1,P=0,F,m,_={value:"",depth:0,isGlob:!1},o=()=>d>=n,B=()=>h.charCodeAt(d+1),M=()=>(F=m,h.charCodeAt(++d));for(;d<n;){m=M();let T;if(m===xe){v=_.backslashes=!0,m=M(),m===St&&(C=!0);continue}if(C===!0||m===St){for(P++;o()!==!0&&(m=M());){if(m===xe){v=_.backslashes=!0,M();continue}if(m===St){P++;continue}if(C!==!0&&m===At&&(m=M())===At){if(S=_.isBrace=!0,R=_.isGlob=!0,A=!0,s===!0)continue;break}if(C!==!0&&m===zs){if(S=_.isBrace=!0,R=_.isGlob=!0,A=!0,s===!0)continue;break}if(m===Qs&&(P--,P===0)){C=!1,S=_.isBrace=!0,A=!0;break}}if(s===!0)continue;break}if(m===vr){if(i.push(d),c.push(_),_={value:"",depth:0,isGlob:!1},A===!0)continue;if(F===At&&d===b+1){b+=2;continue}E=d+1;continue}if(r.noext!==!0&&(m===Us||m===Xs||m===yt||m===Sr||m===Et)===!0&&B()===xt){if(R=_.isGlob=!0,y=_.isExtglob=!0,A=!0,m===Et&&d===b&&(W=!0),s===!0){for(;o()!==!0&&(m=M());){if(m===xe){v=_.backslashes=!0,m=M();continue}if(m===xr){R=_.isGlob=!0,A=!0;break}}continue}break}if(m===yt){if(F===yt&&($=_.isGlobstar=!0),R=_.isGlob=!0,A=!0,s===!0)continue;break}if(m===Sr){if(R=_.isGlob=!0,A=!0,s===!0)continue;break}if(m===Ks){for(;o()!==!0&&(T=M());){if(T===xe){v=_.backslashes=!0,M();continue}if(T===Vs){D=_.isBracket=!0,R=_.isGlob=!0,A=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&m===Et&&d===b){L=_.negated=!0,b++;continue}if(r.noparen!==!0&&m===xt){if(R=_.isGlob=!0,s===!0){for(;o()!==!0&&(m=M());){if(m===xt){v=_.backslashes=!0,m=M();continue}if(m===xr){A=!0;break}}continue}break}if(R===!0){if(A=!0,s===!0)continue;break}}r.noext===!0&&(y=!1,R=!1);let k=h,u="",l="";b>0&&(u=h.slice(0,b),h=h.slice(b),E-=b),k&&R===!0&&E>0?(k=h.slice(0,E),l=h.slice(E)):R===!0?(k="",l=h):k=h,k&&k!==""&&k!=="/"&&k!==h&&Cr(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),r.unescape===!0&&(l&&(l=Er.removeBackslashes(l)),k&&v===!0&&(k=Er.removeBackslashes(k)));let U={prefix:u,input:e,start:b,base:k,glob:l,isBrace:S,isBracket:D,isGlob:R,isExtglob:y,isGlobstar:$,negated:L,negatedExtglob:W};if(r.tokens===!0&&(U.maxDepth=0,Cr(m)||c.push(_),U.tokens=c),r.parts===!0||r.tokens===!0){let T;for(let N=0;N<i.length;N++){let te=T?T+1:b,Q=i[N],ue=e.slice(te,Q);r.tokens&&(N===0&&b!==0?(c[N].isPrefix=!0,c[N].value=u):c[N].value=ue,wr(c[N]),U.maxDepth+=c[N].depth),(N!==0||ue!=="")&&a.push(ue),T=Q}if(T&&T+1<e.length){let N=e.slice(T+1);a.push(N),r.tokens&&(c[c.length-1].value=N,wr(c[c.length-1]),U.maxDepth+=c[c.length-1].depth)}U.slashes=i,U.parts=a}return U};$r.exports=Ys});var Lr=I((Go,Or)=>{"use strict";g();var Ue=Ee(),ee=Se(),{MAX_LENGTH:Qe,POSIX_REGEX_SOURCE:Zs,REGEX_NON_SPECIAL_CHARS:Js,REGEX_SPECIAL_CHARS_BACKREF:ei,REPLACEMENTS:Tr}=Ue,ti=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(s=>ee.escapeRegex(s)).join("..")}return r},be=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Ct=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Tr[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Qe,r.maxLength):Qe,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},c=[i],a=r.capture?"":"?:",h=Ue.globChars(r.windows),d=Ue.extglobChars(h),{DOT_LITERAL:b,PLUS_LITERAL:E,SLASH_LITERAL:S,ONE_CHAR:D,DOTS_SLASH:R,NO_DOT:y,NO_DOT_SLASH:$,NO_DOTS_SLASH:C,QMARK:v,QMARK_NO_DOT:L,STAR:W,START_ANCHOR:A}=h,P=p=>`(${a}(?:(?!${A}${p.dot?R:b}).)*?)`,F=r.dot?"":y,m=r.dot?v:L,_=r.bash===!0?P(r):W;r.capture&&(_=`(${_})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let o={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:c};e=ee.removePrefix(e,o),s=e.length;let B=[],M=[],k=[],u=i,l,U=()=>o.index===s-1,T=o.peek=(p=1)=>e[o.index+p],N=o.advance=()=>e[++o.index]||"",te=()=>e.slice(o.index+1),Q=(p="",H=0)=>{o.consumed+=p,o.index+=H},ue=p=>{o.output+=p.output!=null?p.output:p.value,Q(p.value)},_n=()=>{let p=1;for(;T()==="!"&&(T(2)!=="("||T(3)==="?");)N(),o.start++,p++;return p%2===0?!1:(o.negated=!0,o.start++,!0)},Le=p=>{o[p]++,k.push(p)},fe=p=>{o[p]--,k.pop()},w=p=>{if(u.type==="globstar"){let H=o.braces>0&&(p.type==="comma"||p.type==="brace"),f=p.extglob===!0||B.length&&(p.type==="pipe"||p.type==="paren");p.type!=="slash"&&p.type!=="paren"&&!H&&!f&&(o.output=o.output.slice(0,-u.output.length),u.type="star",u.value="*",u.output=_,o.output+=u.output)}if(B.length&&p.type!=="paren"&&(B[B.length-1].inner+=p.value),(p.value||p.output)&&ue(p),u&&u.type==="text"&&p.type==="text"){u.output=(u.output||u.value)+p.value,u.value+=p.value;return}p.prev=u,c.push(p),u=p},Fe=(p,H)=>{let f={...d[H],conditions:1,inner:""};f.prev=u,f.parens=o.parens,f.output=o.output;let x=(r.capture?"(":"")+f.open;Le("parens"),w({type:p,value:H,output:o.output?"":D}),w({type:"paren",extglob:!0,value:N(),output:x}),B.push(f)},bn=p=>{let H=p.close+(r.capture?")":""),f;if(p.type==="negate"){let x=_;if(p.inner&&p.inner.length>1&&p.inner.includes("/")&&(x=P(r)),(x!==_||U()||/^\)+$/.test(te()))&&(H=p.close=`)$))${x}`),p.inner.includes("*")&&(f=te())&&/^\.[^\\/.]+$/.test(f)){let G=Ct(f,{...t,fastpaths:!1}).output;H=p.close=`)${G})${x})`}p.prev.type==="bos"&&(o.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:l,output:H}),fe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let p=!1,H=e.replace(ei,(f,x,G,z,q,ot)=>z==="\\"?(p=!0,f):z==="?"?x?x+z+(q?v.repeat(q.length):""):ot===0?m+(q?v.repeat(q.length):""):v.repeat(G.length):z==="."?b.repeat(G.length):z==="*"?x?x+z+(q?_:""):_:x?f:`\\${f}`);return p===!0&&(r.unescape===!0?H=H.replace(/\\/g,""):H=H.replace(/\\+/g,f=>f.length%2===0?"\\\\":f?"\\":"")),H===e&&r.contains===!0?(o.output=e,o):(o.output=ee.wrapOutput(H,o,t),o)}for(;!U();){if(l=N(),l==="\0")continue;if(l==="\\"){let f=T();if(f==="/"&&r.bash!==!0||f==="."||f===";")continue;if(!f){l+="\\",w({type:"text",value:l});continue}let x=/^\\+/.exec(te()),G=0;if(x&&x[0].length>2&&(G=x[0].length,o.index+=G,G%2!==0&&(l+="\\")),r.unescape===!0?l=N():l+=N(),o.brackets===0){w({type:"text",value:l});continue}}if(o.brackets>0&&(l!=="]"||u.value==="["||u.value==="[^")){if(r.posix!==!1&&l===":"){let f=u.value.slice(1);if(f.includes("[")&&(u.posix=!0,f.includes(":"))){let x=u.value.lastIndexOf("["),G=u.value.slice(0,x),z=u.value.slice(x+2),q=Zs[z];if(q){u.value=G+q,o.backtrack=!0,N(),!i.output&&c.indexOf(u)===1&&(i.output=D);continue}}}(l==="["&&T()!==":"||l==="-"&&T()==="]")&&(l=`\\${l}`),l==="]"&&(u.value==="["||u.value==="[^")&&(l=`\\${l}`),r.posix===!0&&l==="!"&&u.value==="["&&(l="^"),u.value+=l,ue({value:l});continue}if(o.quotes===1&&l!=='"'){l=ee.escapeRegex(l),u.value+=l,ue({value:l});continue}if(l==='"'){o.quotes=o.quotes===1?0:1,r.keepQuotes===!0&&w({type:"text",value:l});continue}if(l==="("){Le("parens"),w({type:"paren",value:l});continue}if(l===")"){if(o.parens===0&&r.strictBrackets===!0)throw new SyntaxError(be("opening","("));let f=B[B.length-1];if(f&&o.parens===f.parens+1){bn(B.pop());continue}w({type:"paren",value:l,output:o.parens?")":"\\)"}),fe("parens");continue}if(l==="["){if(r.nobracket===!0||!te().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(be("closing","]"));l=`\\${l}`}else Le("brackets");w({type:"bracket",value:l});continue}if(l==="]"){if(r.nobracket===!0||u&&u.type==="bracket"&&u.value.length===1){w({type:"text",value:l,output:`\\${l}`});continue}if(o.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(be("opening","["));w({type:"text",value:l,output:`\\${l}`});continue}fe("brackets");let f=u.value.slice(1);if(u.posix!==!0&&f[0]==="^"&&!f.includes("/")&&(l=`/${l}`),u.value+=l,ue({value:l}),r.literalBrackets===!1||ee.hasRegexChars(f))continue;let x=ee.escapeRegex(u.value);if(o.output=o.output.slice(0,-u.value.length),r.literalBrackets===!0){o.output+=x,u.value=x;continue}u.value=`(${a}${x}|${u.value})`,o.output+=u.value;continue}if(l==="{"&&r.nobrace!==!0){Le("braces");let f={type:"brace",value:l,output:"(",outputIndex:o.output.length,tokensIndex:o.tokens.length};M.push(f),w(f);continue}if(l==="}"){let f=M[M.length-1];if(r.nobrace===!0||!f){w({type:"text",value:l,output:l});continue}let x=")";if(f.dots===!0){let G=c.slice(),z=[];for(let q=G.length-1;q>=0&&(c.pop(),G[q].type!=="brace");q--)G[q].type!=="dots"&&z.unshift(G[q].value);x=ti(z,r),o.backtrack=!0}if(f.comma!==!0&&f.dots!==!0){let G=o.output.slice(0,f.outputIndex),z=o.tokens.slice(f.tokensIndex);f.value=f.output="\\{",l=x="\\}",o.output=G;for(let q of z)o.output+=q.output||q.value}w({type:"brace",value:l,output:x}),fe("braces"),M.pop();continue}if(l==="|"){B.length>0&&B[B.length-1].conditions++,w({type:"text",value:l});continue}if(l===","){let f=l,x=M[M.length-1];x&&k[k.length-1]==="braces"&&(x.comma=!0,f="|"),w({type:"comma",value:l,output:f});continue}if(l==="/"){if(u.type==="dot"&&o.index===o.start+1){o.start=o.index+1,o.consumed="",o.output="",c.pop(),u=i;continue}w({type:"slash",value:l,output:S});continue}if(l==="."){if(o.braces>0&&u.type==="dot"){u.value==="."&&(u.output=b);let f=M[M.length-1];u.type="dots",u.output+=l,u.value+=l,f.dots=!0;continue}if(o.braces+o.parens===0&&u.type!=="bos"&&u.type!=="slash"){w({type:"text",value:l,output:b});continue}w({type:"dot",value:l,output:b});continue}if(l==="?"){if(!(u&&u.value==="(")&&r.noextglob!==!0&&T()==="("&&T(2)!=="?"){Fe("qmark",l);continue}if(u&&u.type==="paren"){let x=T(),G=l;(u.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(te()))&&(G=`\\${l}`),w({type:"text",value:l,output:G});continue}if(r.dot!==!0&&(u.type==="slash"||u.type==="bos")){w({type:"qmark",value:l,output:L});continue}w({type:"qmark",value:l,output:v});continue}if(l==="!"){if(r.noextglob!==!0&&T()==="("&&(T(2)!=="?"||!/[!=<:]/.test(T(3)))){Fe("negate",l);continue}if(r.nonegate!==!0&&o.index===0){_n();continue}}if(l==="+"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){Fe("plus",l);continue}if(u&&u.value==="("||r.regex===!1){w({type:"plus",value:l,output:E});continue}if(u&&(u.type==="bracket"||u.type==="paren"||u.type==="brace")||o.parens>0){w({type:"plus",value:l});continue}w({type:"plus",value:E});continue}if(l==="@"){if(r.noextglob!==!0&&T()==="("&&T(2)!=="?"){w({type:"at",extglob:!0,value:l,output:""});continue}w({type:"text",value:l});continue}if(l!=="*"){(l==="$"||l==="^")&&(l=`\\${l}`);let f=Js.exec(te());f&&(l+=f[0],o.index+=f[0].length),w({type:"text",value:l});continue}if(u&&(u.type==="globstar"||u.star===!0)){u.type="star",u.star=!0,u.value+=l,u.output=_,o.backtrack=!0,o.globstar=!0,Q(l);continue}let p=te();if(r.noextglob!==!0&&/^\([^?]/.test(p)){Fe("star",l);continue}if(u.type==="star"){if(r.noglobstar===!0){Q(l);continue}let f=u.prev,x=f.prev,G=f.type==="slash"||f.type==="bos",z=x&&(x.type==="star"||x.type==="globstar");if(r.bash===!0&&(!G||p[0]&&p[0]!=="/")){w({type:"star",value:l,output:""});continue}let q=o.braces>0&&(f.type==="comma"||f.type==="brace"),ot=B.length&&(f.type==="pipe"||f.type==="paren");if(!G&&f.type!=="paren"&&!q&&!ot){w({type:"star",value:l,output:""});continue}for(;p.slice(0,3)==="/**";){let De=e[o.index+4];if(De&&De!=="/")break;p=p.slice(3),Q("/**",3)}if(f.type==="bos"&&U()){u.type="globstar",u.value+=l,u.output=P(r),o.output=u.output,o.globstar=!0,Q(l);continue}if(f.type==="slash"&&f.prev.type!=="bos"&&!z&&U()){o.output=o.output.slice(0,-(f.output+u.output).length),f.output=`(?:${f.output}`,u.type="globstar",u.output=P(r)+(r.strictSlashes?")":"|$)"),u.value+=l,o.globstar=!0,o.output+=f.output+u.output,Q(l);continue}if(f.type==="slash"&&f.prev.type!=="bos"&&p[0]==="/"){let De=p[1]!==void 0?"|$":"";o.output=o.output.slice(0,-(f.output+u.output).length),f.output=`(?:${f.output}`,u.type="globstar",u.output=`${P(r)}${S}|${S}${De})`,u.value+=l,o.output+=f.output+u.output,o.globstar=!0,Q(l+N()),w({type:"slash",value:"/",output:""});continue}if(f.type==="bos"&&p[0]==="/"){u.type="globstar",u.value+=l,u.output=`(?:^|${S}|${P(r)}${S})`,o.output=u.output,o.globstar=!0,Q(l+N()),w({type:"slash",value:"/",output:""});continue}o.output=o.output.slice(0,-u.output.length),u.type="globstar",u.output=P(r),u.value+=l,o.output+=u.output,o.globstar=!0,Q(l);continue}let H={type:"star",value:l,output:_};if(r.bash===!0){H.output=".*?",(u.type==="bos"||u.type==="slash")&&(H.output=F+H.output),w(H);continue}if(u&&(u.type==="bracket"||u.type==="paren")&&r.regex===!0){H.output=l,w(H);continue}(o.index===o.start||u.type==="slash"||u.type==="dot")&&(u.type==="dot"?(o.output+=$,u.output+=$):r.dot===!0?(o.output+=C,u.output+=C):(o.output+=F,u.output+=F),T()!=="*"&&(o.output+=D,u.output+=D)),w(H)}for(;o.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(be("closing","]"));o.output=ee.escapeLast(o.output,"["),fe("brackets")}for(;o.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(be("closing",")"));o.output=ee.escapeLast(o.output,"("),fe("parens")}for(;o.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(be("closing","}"));o.output=ee.escapeLast(o.output,"{"),fe("braces")}if(r.strictSlashes!==!0&&(u.type==="star"||u.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${S}?`}),o.backtrack===!0){o.output="";for(let p of o.tokens)o.output+=p.output!=null?p.output:p.value,p.suffix&&(o.output+=p.suffix)}return o};Ct.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Qe,r.maxLength):Qe,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=Tr[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:c,ONE_CHAR:a,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:b,NO_DOTS_SLASH:E,STAR:S,START_ANCHOR:D}=Ue.globChars(r.windows),R=r.dot?b:d,y=r.dot?E:d,$=r.capture?"":"?:",C={negated:!1,prefix:""},v=r.bash===!0?".*?":S;r.capture&&(v=`(${v})`);let L=F=>F.noglobstar===!0?v:`(${$}(?:(?!${D}${F.dot?h:i}).)*?)`,W=F=>{switch(F){case"*":return`${R}${a}${v}`;case".*":return`${i}${a}${v}`;case"*.*":return`${R}${v}${i}${a}${v}`;case"*/*":return`${R}${v}${c}${a}${y}${v}`;case"**":return R+L(r);case"**/*":return`(?:${R}${L(r)}${c})?${y}${a}${v}`;case"**/*.*":return`(?:${R}${L(r)}${c})?${y}${v}${i}${a}${v}`;case"**/.*":return`(?:${R}${L(r)}${c})?${i}${a}${v}`;default:{let m=/^(.*?)\.(\w+)$/.exec(F);if(!m)return;let _=W(m[1]);return _?_+i+m[2]:void 0}}},A=ee.removePrefix(e,C),P=W(A);return P&&r.strictSlashes!==!0&&(P+=`${c}?`),P};Or.exports=Ct});var kr=I((Bo,Dr)=>{"use strict";g();var ri=Pr(),wt=Lr(),Fr=Se(),ni=Ee(),si=e=>e&&typeof e=="object"&&!Array.isArray(e),j=(e,t,r=!1)=>{if(Array.isArray(e)){let b=e.map(S=>j(S,t,r));return S=>{for(let D of b){let R=D(S);if(R)return R}return!1}}let n=si(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=t||{},i=s.windows,c=n?j.compileRe(e,t):j.makeRe(e,t,!1,!0),a=c.state;delete c.state;let h=()=>!1;if(s.ignore){let b={...t,ignore:null,onMatch:null,onResult:null};h=j(s.ignore,b,r)}let d=(b,E=!1)=>{let{isMatch:S,match:D,output:R}=j.test(b,c,t,{glob:e,posix:i}),y={glob:e,state:a,regex:c,posix:i,input:b,output:R,match:D,isMatch:S};return typeof s.onResult=="function"&&s.onResult(y),S===!1?(y.isMatch=!1,E?y:!1):h(b)?(typeof s.onIgnore=="function"&&s.onIgnore(y),y.isMatch=!1,E?y:!1):(typeof s.onMatch=="function"&&s.onMatch(y),E?y:!0)};return r&&(d.state=a),d};j.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},c=i.format||(s?Fr.toPosixSlashes:null),a=e===n,h=a&&c?c(e):e;return a===!1&&(h=c?c(e):e,a=h===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=j.matchBase(e,t,r,s):a=t.exec(h)),{isMatch:!!a,match:a,output:h}};j.matchBase=(e,t,r)=>(t instanceof RegExp?t:j.makeRe(t,r)).test(Fr.basename(e));j.isMatch=(e,t,r)=>j(t,r)(e);j.parse=(e,t)=>Array.isArray(e)?e.map(r=>j.parse(r,t)):wt(e,{...t,fastpaths:!1});j.scan=(e,t)=>ri(e,t);j.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",c=s.contains?"":"$",a=`${i}(?:${e.output})${c}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let h=j.toRegex(a,t);return n===!0&&(h.state=e),h};j.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(s.output=wt.fastpaths(e,t)),s.output||(s=wt(e,t)),j.compileRe(s,t,r,n)};j.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};j.constants=ni;Dr.exports=j});var vt=I((Wo,Mr)=>{"use strict";g();var Hr=kr(),ii=Se();function Ir(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:ii.isWindows()}),Hr(e,t,r)}Object.assign(Ir,Hr);Mr.exports=Ir});var jr=I(Ve=>{"use strict";g();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Builder=void 0;var oi=re("path"),Nr=_r(),Gr=null;try{re.resolve("picomatch"),Gr=vt()}catch{}var $t=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:oi.sep,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new Nr.APIBuilder(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,r){return this.options={...this.options,...r},new Nr.APIBuilder(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...r){let n=this.globFunction||Gr;if(!n)throw new Error("Please specify a glob function to use glob matching.");var s=this.globCache[t.join("\0")];return s||(s=n(t,...r),this.globCache[t.join("\0")]=s),this.options.filters.push(i=>s(i)),this}};Ve.Builder=$t});var qr=I(Br=>{"use strict";g();Object.defineProperty(Br,"__esModule",{value:!0})});var Wr=I(se=>{"use strict";g();var ui=se&&se.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),li=se&&se.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ui(t,e,r)};Object.defineProperty(se,"__esModule",{value:!0});se.fdir=void 0;var ci=jr();Object.defineProperty(se,"fdir",{enumerable:!0,get:function(){return ci.Builder}});li(qr(),se)});var dn=I((iu,st)=>{g();function un(e){return Array.isArray(e)?e:[e]}var Fi=void 0,Mt="",sn=" ",It="\\",Di=/^\s+$/,ki=/(?:[^\\]|^)\\$/,Hi=/^\\!/,Ii=/^\\#/,Mi=/\r?\n/g,Ni=/^\.{0,2}\/|^\.{1,2}$/,Gi=/\/$/,me="/",ln="node-ignore";typeof Symbol<"u"&&(ln=Symbol.for("node-ignore"));var cn=ln,ye=(e,t,r)=>(Object.defineProperty(e,t,{value:r}),r),ji=/([0-z])-([0-z])/g,an=()=>!1,Bi=e=>e.replace(ji,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:Mt),qi=e=>{let{length:t}=e;return e.slice(0,t-t%2)},Wi=[[/^\uFEFF/,()=>Mt],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?sn:Mt)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+sn}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>It],[/\\\\/g,()=>It],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,s)=>t===It?`\\[${r}${qi(n)}${s}`:s==="]"&&n.length%2===0?`[${Bi(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],Xi=/(^|\\\/)?\\\*$/,Oe="regex",rt="checkRegex",on="_",zi={[Oe](e,t){return`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`},[rt](e,t){return`${t?`${t}[^/]*`:"[^/]*"}(?=$|\\/$)`}},Ki=e=>Wi.reduce((t,[r,n])=>t.replace(r,n.bind(e)),e),nt=e=>typeof e=="string",Ui=e=>e&&nt(e)&&!Di.test(e)&&!ki.test(e)&&e.indexOf("#")!==0,Qi=e=>e.split(Mi).filter(Boolean),Nt=class{constructor(t,r,n,s,i,c){this.pattern=t,this.mark=r,this.negative=i,ye(this,"body",n),ye(this,"ignoreCase",s),ye(this,"regexPrefix",c)}get regex(){let t=on+Oe;return this[t]?this[t]:this._make(Oe,t)}get checkRegex(){let t=on+rt;return this[t]?this[t]:this._make(rt,t)}_make(t,r){let n=this.regexPrefix.replace(Xi,zi[t]),s=this.ignoreCase?new RegExp(n,"i"):new RegExp(n);return ye(this,r,s)}},Vi=({pattern:e,mark:t},r)=>{let n=!1,s=e;s.indexOf("!")===0&&(n=!0,s=s.substr(1)),s=s.replace(Hi,"!").replace(Ii,"#");let i=Ki(s);return new Nt(e,t,s,r,n,i)},Gt=class{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){if(t&&t[cn]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if(nt(t)&&(t={pattern:t}),Ui(t.pattern)){let r=Vi(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,un(nt(t)?Qi(t):t).forEach(this._add,this),this._added}test(t,r,n){let s=!1,i=!1,c;this._rules.forEach(h=>{let{negative:d}=h;i===d&&s!==i||d&&!s&&!i&&!r||!h[n].test(t)||(s=!d,i=d,c=d?Fi:h)});let a={ignored:s,unignored:i};return c&&(a.rule=c),a}},Yi=(e,t)=>{throw new t(e)},oe=(e,t,r)=>nt(e)?e?oe.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),fn=e=>Ni.test(e);oe.isNotRelative=fn;oe.convert=e=>e;var jt=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){ye(this,cn,!0),this._rules=new Gt(r),this._strictPathCheck=!n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,r,n,s){let i=t&&oe.convert(t);return oe(i,t,this._strictPathCheck?Yi:an),this._t(i,r,n,s)}checkIgnore(t){if(!Gi.test(t))return this.test(t);let r=t.split(me).filter(Boolean);if(r.pop(),r.length){let n=this._t(r.join(me)+me,this._testCache,!0,r);if(n.ignored)return n}return this._rules.test(t,!1,rt)}_t(t,r,n,s){if(t in r)return r[t];if(s||(s=t.split(me).filter(Boolean)),s.pop(),!s.length)return r[t]=this._rules.test(t,n,Oe);let i=this._t(s.join(me)+me,r,n,s);return r[t]=i.ignored?i:this._rules.test(t,n,Oe)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return un(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},Bt=e=>new jt(e),Zi=e=>oe(e&&oe.convert(e),e,an),hn=()=>{let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");oe.convert=e;let t=/^[a-z]:\//i;oe.isNotRelative=r=>t.test(r)||fn(r)};typeof process<"u"&&process.platform==="win32"&&hn();st.exports=Bt;Bt.default=Bt;st.exports.isPathValid=Zi;ye(st.exports,Symbol.for("setupWindows"),hn)});var Kt={};Rn(Kt,{MAX_CACHE_ENTRIES:()=>Xt,MAX_TOTAL_PATHS:()=>zt,clear:()=>yn,getCacheKey:()=>lt,read:()=>ct,write:()=>Ae});g();import mn from"node:crypto";var X=new Map,V=new Map,Xt=256,zt=5e4,lt=(e,t,r,n,s=!0)=>{let i=mn.createHash("sha256");return i.update(e),i.update(t),i.update(s?"gitignore":"no-gitignore"),r!==void 0&&i.update(String(r)),n!==void 0&&i.update(`maxFiles:${n}`),i.digest("hex")},ct=e=>{let t=X.get(e);return t!==void 0&&(X.delete(e),X.set(e,t)),t},Ae=(e,t,r)=>{for(V.has(e)&&clearTimeout(V.get(e));X.size>=Xt&&!X.has(e);){let i=X.keys().next().value;i&&(X.delete(i),V.has(i)&&(clearTimeout(V.get(i)),V.delete(i)))}let n=0;for(let[i,c]of X)i!==e&&(n+=c.length);for(;n+t.length>zt&&X.size>0;){let i,c=0;for(let[a,h]of X)a!==e&&h.length>c&&(c=h.length,i=a);if(i)n-=X.get(i).length,X.delete(i),V.has(i)&&(clearTimeout(V.get(i)),V.delete(i));else break}X.has(e)&&X.delete(e),X.set(e,t);let s=setTimeout(()=>{X.delete(e),V.delete(e)},r);V.set(e,s)},yn=()=>{for(let e of V.values())clearTimeout(e);X.clear(),V.clear()};g();var Ur=ut(Wr(),1);import O from"node:path";import ie from"node:fs";import{spawn as ai}from"node:child_process";function $e(e){return e.split(O.sep).join(O.posix.sep)}function Pt(e,t=!1){let r=$e(e);for(;r.startsWith("./");)r=r.slice(2);return t?r.replace(/\/+$/,""):r}function Qr(){return process.platform==="win32"||process.platform==="darwin"}function fi(e,t){let r=e.replace(/\/+$/,""),n=t.replace(/\/+$/,"");return r===n?!0:Qr()?r.toLowerCase()===n.toLowerCase():!1}function hi(e,t){let r=`${t}/`;if(e.startsWith(r)){let n=e.slice(r.length);return n===""?null:n}if(Qr()){let n=`${t.toLowerCase()}/`;if(e.toLowerCase().startsWith(n)){let i=e.slice(n.length);return i===""?null:i}}return null}var di=5e3,pi=3e4,gi=200,_i=50,Ce=4096,Lt=new Map;function bi(e){for(;e.size>gi;){let t=e.keys().next().value;if(t===void 0)break;e.delete(t)}}function Ri(e,t){let r=e.get(t);if(r){if(Date.now()-r.cachedAt>pi){e.delete(t);return}return r.value}}function Re(e,t,r){e.set(t,{value:r,cachedAt:Date.now()}),bi(e)}function mi(e){let t=e.trim();return t.length<=Ce?t:`${t.slice(0,Ce)}\u2026`}function yi(e){return e.map(t=>/^[A-Za-z]:[\\/]/.test(t)||t.startsWith("/")&&t.length>1?"<abs-path>":t.includes(O.sep)&&t.length>32?"<path>":t).join(" ")}function Ye(e,t,r,n){let s=[`[crawler] ${e}:`,t,yi(r)];n.code!==void 0&&n.code!==null&&s.push(`exit=${String(n.code)}`),n.stderr&&n.stderr.length>0&&s.push(mi(n.stderr)),console.warn(s.join(" "))}function et(e){return["-c","core.fsmonitor=false","-c","core.untrackedCache=false","-c","core.quotePath=false",...e]}function Ze(e){return $e(O.resolve(e))}function Ai(e){return[Ze(e.crawlDirectory),Ze(e.cwd),e.ignore.getFingerprint(),e.useGitignore===!1?"no-gitignore":"gitignore",e.maxDepth===void 0?"undefined":String(e.maxDepth),e.maxFiles===void 0?"undefined":String(e.maxFiles)].join("|")}function Xr(e){let t=Lt.get(e);return t===void 0?!1:Date.now()-t<di}function Ft(e){Lt.set(e,Date.now())}var ae=new Map,he=new Map;function Ei(){for(;ae.size>=_i;){let e=ae.keys().next().value;if(e===void 0)break;ae.delete(e),Lt.delete(e)}}function Si(e){let t=Ze(e),r=Ri(he,t);if(r!==void 0)return r;let n=e;for(;n;){let s=O.join(n,".git");try{let c=ie.statSync(s);if(c.isDirectory())return Re(he,t,s),s;if(c.isFile()){let h=ie.readFileSync(s,"utf8").trim().match(/^gitdir:\s*(.+)$/i);if(!h)return Re(he,t,null),null;let d=h[1].trim(),b=O.isAbsolute(d)?O.resolve(d):O.resolve(n,d);try{b=ie.realpathSync(b);try{ie.statSync(O.join(b,"HEAD"))}catch{ie.statSync(O.join(b,"index"))}}catch{return Re(he,t,null),null}return Re(he,t,b),b}}catch(c){if(c.code!=="ENOENT")return Re(he,t,null),null}let i=O.dirname(n);if(i===n)break;n=i}return Re(he,t,null),null}function tt(e){try{let t=Si(e);if(!t)return null;let r=O.join(t,"index");return ie.statSync(r).mtimeMs}catch{}return null}function xi(e,t){let r=tt(t),n=ae.get(e);return n?r!==null&&n.gitRootMtimeMs!==null?r<n.gitRootMtimeMs||!Xr(e):r===null&&n.gitRootMtimeMs===null?!Xr(e):!0:!0}function Ci(e,t){let r=ae.get(e);if(!r)return;let n=tt(t);ae.set(e,{...r,gitRootMtimeMs:n})}function Dt(e,t,r,n,s){Ei();let i=tt(t);ae.set(e,{gitRootMtimeMs:i,untrackedFingerprint:n===void 0?null:Je(n),deletedFingerprint:s===void 0?null:Je(s),fileList:r})}function Je(e){let t=5381;for(let r of e){for(let n=0;n<r.length;n++)t=(t<<5)+t+r.charCodeAt(n)>>>0;t=(t<<5)+t+10>>>0}return`${e.length}:${t}`}function wi(e,t=[0]){return e!==null&&t.includes(e)}function vi(e,t,r,n=2e4,s){let i=s?.collectLines!==!1;return new Promise(c=>{let a=[],h=!1,d=!1,b=!1,E="",S=0,D=(A,P)=>{h||(h=!0,c({success:A,lines:P}))},R="",y;try{y=ai(e,t,{cwd:r,windowsHide:!0,stdio:["ignore","pipe","pipe"],...e==="git"?{env:{...process.env,GIT_DIR:void 0,GIT_WORK_TREE:void 0,GIT_INDEX_FILE:void 0}}:{}})}catch(A){s?.silentOnFailure||Ye("command spawn threw",e,t,{stderr:A instanceof Error?A.message:String(A)}),D(!1,[]);return}y.stderr&&(y.stderr.setEncoding("utf8"),y.stderr.on("data",A=>{R.length<Ce&&(R+=A,R.length>Ce&&(R=R.slice(0,Ce)))}));let $=()=>{if(!y.killed)try{y.kill()}catch{}},C=A=>{let P=A.endsWith("\r")?A.slice(0,-1):A;if(P.length===0)return!0;if(s?.onLine&&!s.onLine(P))return b=!0,$(),!1;i&&a.push(P),S++;let F=s?.yieldEveryLines;return F!==void 0&&F>0&&S%F===0&&y.stdout&&typeof y.stdout.pause=="function"&&(y.stdout.pause(),setImmediate(()=>{try{y.stdout?.resume()}catch{}})),!0},v=A=>{if(E+=A,(s?.recordDelimiter??`
4
- `)==="\0"){for(;;){let F=E.indexOf("\0");if(F===-1)break;let m=E.slice(0,F);if(E=E.slice(F+1),!C(m))break}return}for(;;){let F=E.indexOf(`
5
- `);if(F===-1)break;let m=E.slice(0,F);if(E=E.slice(F+1),!C(m))break}},L=()=>{E.length!==0&&(C(E),E="")},W;n>0&&(W=setTimeout(()=>{d=!0,$()},n)),y.stdout.setEncoding("utf8"),y.stdout.on("data",A=>{v(A)}),y.on("error",A=>{W&&clearTimeout(W),s?.silentOnFailure||Ye("command spawn failed",e,t,{stderr:`${String(A.code??"")} ${String(A)}`.trim()}),D(!1,[])}),y.on("close",A=>{if(W&&clearTimeout(W),b){D(!0,a);return}if(d){s?.silentOnFailure||Ye("command timed out",e,t,{code:A,stderr:R}),D(!1,[]);return}L();let P=wi(A,s?.successExitCodes);!P&&!s?.silentOnFailure&&Ye("command failed",e,t,{code:A,stderr:R}),D(P,P?a:[])})})}var Pe=vi;function Te(e){return $e(e)}function de(e,t){let r=O.resolve(e),n=O.resolve(t),s=r,i=n;try{s=ie.realpathSync(r)}catch{}try{i=ie.realpathSync(n)}catch{}let c=O.relative(s,i),a=$e(c);return a===""?".":a}function ve(e){return!e||e==="."||O.posix.isAbsolute(e)?!1:e!==".."&&!e.startsWith("../")&&!e.includes("/../")}function $i(e,t){let r=O.resolve(e),n=O.isAbsolute(t)?t:O.join(r,t),s=O.relative(r,n);return s=$e(s),!s||s.startsWith("..")||O.posix.isAbsolute(s)?null:ve(s)?s:null}function Vr(e){if(e===".")return-1;let t=e.endsWith("/")?e.slice(0,-1):e;return t.length===0?-1:t.split("/").length-1}function Yr(e,t){if(e==="."||t===""||t===".")return e;let r=t.endsWith("/")?t:`${t}/`;return e===t?".":e.startsWith(r)?e.slice(r.length)||".":e}function kt(e,t,r,n){let s=t.maxDepth,i=t.ignore.getDirectoryFilter(),c=t.ignore.getFileFilter();return e.filter(a=>{if(s!==void 0&&a!=="."){let h=r?Yr(a,r):a;if(Vr(h)>s)return!1}return a==="."?!0:a.endsWith("/")?ve(a.slice(0,-1))?!i(a):!1:n?.has(a)?!0:!ve(a)||Zr(a,i)?!1:!c(a)})}function Zr(e,t){let r=e.split("/"),n="";for(let s=0;s<r.length-1;s++)if(n=n?`${n}/${r[s]}`:r[s],t(`${n}/`))return!0;return!1}var Jr=1e3;async function Pi(e){e>0&&e%Jr===0&&await new Promise(t=>setImmediate(t))}async function en(e){let t=await Pe("git",et(["rev-parse","--show-toplevel"]),e,5e3,{silentOnFailure:!0});return!t.success||t.lines.length===0?null:Te(t.lines[0])}function Tt(e,t,r){return!(!ve(e)||Zr(e,t)||r(e))}function we(e,t){return t!==void 0&&e>=t}function Ot(e,t,r){if(r===void 0)return!0;let n=Yr(e,t);return Vr(n)<=r}async function tn(e,t,r){let n=["--literal-pathspecs","ls-files","-z","--others"];r&&n.push("--exclude-standard"),t&&t!=="."&&n.push(t);let s=await Pe("git",et(n),e,1e4,{silentOnFailure:!0,recordDelimiter:"\0"});return s.success?s.lines.map(i=>Te(i)):null}async function rn(e,t){let r=["--literal-pathspecs","ls-files","-z","--deleted"];t&&t!=="."&&r.push(t);let n=await Pe("git",et(r),e,1e4,{silentOnFailure:!0,recordDelimiter:"\0"});return n.success?n.lines.map(s=>Te(s)):null}async function zr(e,t,r){if(e.gitRootMtimeMs===null&&e.untrackedFingerprint===null&&e.deletedFingerprint===null)return{changed:!1};let n=await en(t);if(e.untrackedFingerprint===null&&e.deletedFingerprint===null)return n?{changed:!0}:{changed:!1};if(!n)return{changed:!0};let s=de(n,t),[i,c]=await Promise.all([tn(n,s,r),rn(n,s)]);return i===null||c===null?{changed:!0}:Je(i)!==e.untrackedFingerprint||Je(c)!==e.deletedFingerprint?{changed:!0,prefetch:{gitRoot:n,untrackedFiles:i,deletedFiles:c}}:{changed:!1}}function Kr(e,t,r,n,s){let i=Pt(e,!1);if(t&&t!=="."){let c=hi(i,n);if(c!==null)return O.posix.join(s,c);if(fi(i,n))return`${i.replace(/\/+$/,"")}/`;let a=i.replace(/\/+$/,"");return O.posix.join(s,a)}return O.posix.join(s,i.replace(/\/+$/,""))}async function Ti(e,t,r,n,s){let i,c,a;if(s)i=s.gitRoot,c=s.untrackedFiles,a=s.deletedFiles;else{if(i=await en(t),!i)return{success:!1,files:[],gitRepoListingFailed:!1};let _=de(i,t),o=await Promise.all([tn(i,_,n.useGitignore!==!1),rn(i,_)]);c=o[0],a=o[1]}if(!i)return{success:!1,files:[],gitRepoListingFailed:!1};if(!s&&(c===null||a===null))return{success:!1,files:[],gitRepoListingFailed:!0};let h=de(r,t),d=de(i,t),b=Pt(d,!0),E=Pt(h,!0),S=n.ignore.getDirectoryFilter(),D=n.ignore.getFileFilter(),R=["--literal-pathspecs","ls-files","--cached","--recurse-submodules"];R.push("-t"),d&&d!=="."&&R.push(d);let y=new Set(a),$=new Set,C=0,v=_=>_.length===0?null:_.length>=3&&/\s/.test(_[1])&&/[A-Za-z]/.test(_[0])?{status:_[0].toUpperCase(),filePath:_.slice(2)}:{status:null,filePath:_},L=_=>{if(we(C,n.maxFiles))return!1;let o=v(_);if(!o||o.status==="S")return!0;let B=Te(o.filePath);if(y.has(B))return!0;let M;try{M=ie.lstatSync(O.join(i,...B.split("/")))}catch{return!0}if(M.isDirectory()||d&&d!=="."&&B===d)return!0;let k=Kr(B,d,h,b,E);if(!Tt(k,S,D))return!0;let u=$.size;return $.add(k),$.size>u&&Ot(k,h,n.maxDepth)&&C++,!we(C,n.maxFiles)},W=await Pe("git",et(R),i,2e4,{collectLines:!1,onLine:L,yieldEveryLines:Jr});if(!W.success)return{success:!1,files:[],gitRepoListingFailed:!0};for(let _ of W.lines)if(!L(_))break;let A=0;if(c!==null)for(let _ of c){if(we(C,n.maxFiles))break;await Pi(A++);let o=Kr(_,d,h,b,E);Tt(o,S,D)&&($.has(o)||($.add(o),Ot(o,h,n.maxDepth)&&C++))}let P=nn($),F=kt(P,n,h,$),m=Ht(F,n.maxFiles);return Dt(e,t,m,c===null?void 0:c,a===null?void 0:a),Ft(e),{success:!0,files:m}}function nn(e){let t=new Set;for(let r of e){let n=r.split("/"),s="";for(let i=0;i<n.length-1;i++)s=s?s+"/"+n[i]:n[i],t.add(s+"/")}return[".",...Array.from(t),...Array.from(e)]}async function Oi(e,t,r,n){let s=["--files","--no-require-git","--hidden"];n.useGitignore===!1&&s.push("--no-ignore");let i=de(r,t),c=n.ignore.getDirectoryFilter(),a=n.ignore.getFileFilter(),h=new Set,d=0,b=y=>{if(we(d,n.maxFiles))return!1;let $=Te(y),C=O.posix.join(i,$);if(!Tt(C,c,a))return!0;let v=h.size;return h.add(C),h.size>v&&Ot(C,i,n.maxDepth)&&d++,!we(d,n.maxFiles)},E=await Pe("rg",s,t,2e4,{collectLines:!1,onLine:b,successExitCodes:[0,1]});if(!E.success)return{success:!1,files:[]};for(let y of E.lines)if(!b(y))break;let S=nn(h),D=kt(S,n,i,h),R=Ht(D,n.maxFiles);return Dt(e,t,R),Ft(e),{success:!0,files:R}}async function Li(e){let t=de(e.cwd,e.crawlDirectory),r;try{let s=e.ignore.getDirectoryFilter(),i=e.ignore.getFileFilter(),c=new Ur.fdir().withRelativePaths().withDirs().withPathSeparator("/").exclude((a,h)=>{let d=$i(e.crawlDirectory,h);return d?s(`${d}/`):!1}).filter((a,h)=>{if(h)return!0;let d=O.posix.join(t,a);return ve(d)?!i(d):!1});e.maxDepth!==void 0&&c.withMaxDepth(e.maxDepth),r=await c.crawl(e.crawlDirectory).withPromise()}catch{return[]}let n=r.filter(s=>s.length>0&&s!==".").map(s=>O.posix.join(t,s));if(t!=="."){let s=t.endsWith("/")?t:`${t}/`;if(!n.includes(s))return[s,...n]}return n}async function ru(e){let t=Ai(e),r=e.cache?lt(Ze(e.crawlDirectory),e.ignore.getFingerprint(),e.maxDepth,e.maxFiles,e.useGitignore!==!1):void 0;if(e.cache){let d=ct(r);if(d)return d}let n;if(!e.cache){let d=ae.get(t);if(d){let b=tt(e.crawlDirectory);if(b!==null&&d.gitRootMtimeMs!==null&&b>d.gitRootMtimeMs){let S=await zr(d,e.crawlDirectory,e.useGitignore!==!1);if(!S.changed)return Ci(t,e.crawlDirectory),d.fileList;n=S.prefetch}else if(!xi(t,e.crawlDirectory)){let S=await zr(d,e.crawlDirectory,e.useGitignore!==!1);if(!S.changed)return d.fileList;n=S.prefetch}}}let s=await Ti(t,e.crawlDirectory,e.cwd,e,n);if(s.success){let d=s.files;return e.cache&&Ae(r,d,e.cacheTtl*1e3),d}s.gitRepoListingFailed&&console.warn("[crawler] falling back to ripgrep (git ls-files unavailable)");let i=await Oi(t,e.crawlDirectory,e.cwd,e);if(i.success){let d=i.files;return e.cache&&Ae(r,d,e.cacheTtl*1e3),d}console.warn("[crawler] falling back to fdir (ripgrep unavailable)");let c=de(e.cwd,e.crawlDirectory),a=await Li(e);a=kt(a,e,c),a.length===0?a=["."]:a[0]!=="."&&(a=[".",...a]);let h=Ht(a,e.maxFiles);return Dt(t,e.crawlDirectory,h),Ft(t),e.cache&&Ae(r,h,e.cacheTtl*1e3),h}function Ht(e,t){if(t===void 0||e.length<=t)return e;let r=e.slice(0,t),n=i=>i!=="."&&!i.endsWith("/");if(r.some(n))return r;let s=e.findIndex(n);return s===-1?r:e.slice(0,s+1)}g();var qt=ut(dn(),1),gn=ut(vt(),1);import it from"node:fs";import pn from"node:path";var Ji=(0,gn.default)("**/*[*.]*"),eo=[".git","node_modules",".venv","venv","__pycache__",".mypy_cache",".pytest_cache",".ruff_cache",".next",".nuxt",".turbo",".cache","target",".gradle",".terraform"];function cu(e){let t=new Wt,r=new Set([...eo,...e.ignoreDirs]);if(t.add([...r].map(n=>n.endsWith("/")?n:`${n}/`)),e.useGitignore){let n=pn.join(e.projectRoot,".gitignore");it.existsSync(n)&&t.add(it.readFileSync(n,"utf8"))}if(e.useMatildaignore){let n=pn.join(e.projectRoot,".matildaignore");it.existsSync(n)&&t.add(it.readFileSync(n,"utf8"))}return t}var Wt=class{allPatterns=[];dirIgnorer=(0,qt.default)();fileIgnorer=(0,qt.default)();add(t){typeof t=="string"&&(t=t.split(/\r?\n/));for(let r of t){let n=r.trim();if(n===""||n.startsWith("#"))continue;this.allPatterns.push(n),n.endsWith("/")&&!n.startsWith("!")?this.dirIgnorer.add(n):(this.fileIgnorer.add(n),Ji(n)||this.dirIgnorer.add(n))}return this}getDirectoryFilter(){return t=>this.dirIgnorer.ignores(t)}getFileFilter(){return t=>this.fileIgnorer.ignores(t)}getFingerprint(){return this.allPatterns.join(`
6
- `)}};export{vt as a,dn as b,Kt as c,ru as d,cu as e,Wt as f};
7
- /**
8
- * @license
9
- * Copyright 2025 Google LLC
10
- * SPDX-License-Identifier: Apache-2.0
11
- */
@@ -1,8 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{b as r}from"./chunk-GZPNIYVZ.js";import{a as s,d as c}from"./chunk-OWGSC52X.js";var a=c((i,t)=>{r();if(!globalThis.DOMException)try{let{MessageChannel:e}=s("worker_threads"),n=new e().port1,o=new ArrayBuffer;n.postMessage(o,[o,o])}catch(e){e.constructor.name==="DOMException"&&(globalThis.DOMException=e.constructor)}t.exports=globalThis.DOMException});export{a};
4
- /*! Bundled license information:
5
-
6
- node-domexception/index.js:
7
- (*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
8
- */
@@ -1,3 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{b as o}from"./chunk-GZPNIYVZ.js";import{d as f}from"./chunk-OWGSC52X.js";var g=f((M,d)=>{o();var n=1e3,t=n*60,c=t*60,a=c*24,m=a*7,y=a*365.25;d.exports=function(e,r){r=r||{};var s=typeof e;if(s==="string"&&e.length>0)return l(e);if(s==="number"&&isFinite(e))return r.long?w(e):v(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function l(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var s=parseFloat(r[1]),i=(r[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return s*y;case"weeks":case"week":case"w":return s*m;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*c;case"minutes":case"minute":case"mins":case"min":case"m":return s*t;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function v(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=c?Math.round(e/c)+"h":r>=t?Math.round(e/t)+"m":r>=n?Math.round(e/n)+"s":e+"ms"}function w(e){var r=Math.abs(e);return r>=a?u(e,r,a,"day"):r>=c?u(e,r,c,"hour"):r>=t?u(e,r,t,"minute"):r>=n?u(e,r,n,"second"):e+" ms"}function u(e,r,s,i){var h=r>=s*1.5;return Math.round(e/s)+" "+i+(h?"s":"")}});export{g as a};
@@ -1,6 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{b as le,d as Cr,e as ge}from"./chunk-XMZIY7XX.js";import{b as h}from"./chunk-GZPNIYVZ.js";import{a as qr,d as O}from"./chunk-OWGSC52X.js";var ze=O((hn,Ke)=>{h();Ke.exports=qr("util").inspect});var j=O((gn,ur)=>{h();var Ae=typeof Map=="function"&&Map.prototype,we=Object.getOwnPropertyDescriptor&&Ae?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,oe=Ae&&we&&typeof we.get=="function"?we.get:null,Qe=Ae&&Map.prototype.forEach,_e=typeof Set=="function"&&Set.prototype,Se=Object.getOwnPropertyDescriptor&&_e?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ue=_e&&Se&&typeof Se.get=="function"?Se.get:null,Ge=_e&&Set.prototype.forEach,Nr=typeof WeakMap=="function"&&WeakMap.prototype,X=Nr?WeakMap.prototype.has:null,Rr=typeof WeakSet=="function"&&WeakSet.prototype,Y=Rr?WeakSet.prototype.has:null,Fr=typeof WeakRef=="function"&&WeakRef.prototype,Ve=Fr?WeakRef.prototype.deref:null,Pr=Boolean.prototype.valueOf,Wr=Object.prototype.toString,Br=Function.prototype.toString,Hr=String.prototype.match,Ie=String.prototype.slice,C=String.prototype.replace,Kr=String.prototype.toUpperCase,Ue=String.prototype.toLowerCase,tr=RegExp.prototype.test,ke=Array.prototype.concat,b=Array.prototype.join,zr=Array.prototype.slice,Je=Math.floor,be=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Oe=Object.getOwnPropertySymbols,xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q||!0)?Symbol.toStringTag:null,nr=Object.prototype.propertyIsEnumerable,Xe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Ye(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||tr.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Je(-r):Je(r);if(n!==r){var a=String(n),i=Ie.call(e,a.length+1);return C.call(a,t,"$&_")+"."+C.call(C.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(e,t,"$&_")}var De=ze(),Ze=De.custom,je=lr(Ze)?Ze:null,ar={__proto__:null,double:'"',single:"'"},Qr={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ur.exports=function r(e,t,n,a){var i=t||{};if(A(i,"quoteStyle")&&!A(ar,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(A(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=A(i,"customInspect")?i.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(A(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(A(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return or(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var o=String(e);return d?Ye(e,o):o}if(typeof e=="bigint"){var c=String(e)+"n";return d?Ye(e,c):c}var u=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return Me(e)?"[Array]":"[Object]";var s=ot(i,n);if(typeof a>"u")a=[];else if(fr(a,e)>=0)return"[Circular]";function l(E,q,L){if(q&&(a=zr.call(a),a.push(q)),L){var k={depth:i.depth};return A(i,"quoteStyle")&&(k.quoteStyle=i.quoteStyle),r(E,k,n+1,a)}return r(E,i,n+1,a)}if(typeof e=="function"&&!er(e)){var p=jr(e),y=fe(e,l);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(y.length>0?" { "+b.call(y,", ")+" }":"")}if(lr(e)){var g=Q?C.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xe.call(e);return typeof e=="object"&&!Q?J(g):g}if(it(e)){for(var S="<"+Ue.call(String(e.nodeName)),_=e.attributes||[],I=0;I<_.length;I++)S+=" "+_[I].name+"="+ir(Gr(_[I].value),"double",i);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+Ue.call(String(e.nodeName))+">",S}if(Me(e)){if(e.length===0)return"[]";var v=fe(e,l);return s&&!ft(v)?"["+Le(v,s)+"]":"[ "+b.call(v,", ")+" ]"}if(Ur(e)){var T=fe(e,l);return!("cause"in Error.prototype)&&"cause"in e&&!nr.call(e,"cause")?"{ ["+String(e)+"] "+b.call(ke.call("[cause]: "+l(e.cause),T),", ")+" }":T.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+b.call(T,", ")+" }"}if(typeof e=="object"&&f){if(je&&typeof e[je]=="function"&&De)return De(e,{depth:u-n});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(et(e)){var R=[];return Qe&&Qe.call(e,function(E,q){R.push(l(q,e,!0)+" => "+l(E,e))}),rr("Map",oe.call(e),R,s)}if(nt(e)){var U=[];return Ge&&Ge.call(e,function(E){U.push(l(E,e))}),rr("Set",ue.call(e),U,s)}if(rt(e))return Ee("WeakMap");if(at(e))return Ee("WeakSet");if(tt(e))return Ee("WeakRef");if(Jr(e))return J(l(Number(e)));if(Yr(e))return J(l(be.call(e)));if(Xr(e))return J(Pr.call(e));if(kr(e))return J(l(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof globalThis<"u"&&e===globalThis)return"{ [object globalThis] }";if(!Vr(e)&&!er(e)){var K=fe(e,l),ae=Xe?Xe(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",$=!ae&&Z&&Object(e)===e&&Z in e?Ie.call(N(e),8,-1):F?"Object":"",ie=ae||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",z=ie+($||F?"["+b.call(ke.call([],$||[],F||[]),": ")+"] ":"");return K.length===0?z+"{}":s?z+"{"+Le(K,s)+"}":z+"{ "+b.call(K,", ")+" }"}return String(e)};function ir(r,e,t){var n=t.quoteStyle||e,a=ar[n];return a+r+a}function Gr(r){return C.call(String(r),/"/g,"&quot;")}function W(r){return!Z||!(typeof r=="object"&&(Z in r||typeof r[Z]<"u"))}function Me(r){return N(r)==="[object Array]"&&W(r)}function Vr(r){return N(r)==="[object Date]"&&W(r)}function er(r){return N(r)==="[object RegExp]"&&W(r)}function Ur(r){return N(r)==="[object Error]"&&W(r)}function kr(r){return N(r)==="[object String]"&&W(r)}function Jr(r){return N(r)==="[object Number]"&&W(r)}function Xr(r){return N(r)==="[object Boolean]"&&W(r)}function lr(r){if(Q)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!xe)return!1;try{return xe.call(r),!0}catch{}return!1}function Yr(r){if(!r||typeof r!="object"||!be)return!1;try{return be.call(r),!0}catch{}return!1}var Zr=Object.prototype.hasOwnProperty||function(r){return r in this};function A(r,e){return Zr.call(r,e)}function N(r){return Wr.call(r)}function jr(r){if(r.name)return r.name;var e=Hr.call(Br.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function fr(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function et(r){if(!oe||!r||typeof r!="object")return!1;try{oe.call(r);try{ue.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function rt(r){if(!X||!r||typeof r!="object")return!1;try{X.call(r,X);try{Y.call(r,Y)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function tt(r){if(!Ve||!r||typeof r!="object")return!1;try{return Ve.call(r),!0}catch{}return!1}function nt(r){if(!ue||!r||typeof r!="object")return!1;try{ue.call(r);try{oe.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function at(r){if(!Y||!r||typeof r!="object")return!1;try{Y.call(r,Y);try{X.call(r,X)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function it(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function or(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return or(Ie.call(r,0,e.maxStringLength),e)+n}var a=Qr[e.quoteStyle||"single"];a.lastIndex=0;var i=C.call(C.call(r,a,"\\$1"),/[\x00-\x1f]/g,lt);return ir(i,"single",e)}function lt(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Kr.call(e.toString(16))}function J(r){return"Object("+r+")"}function Ee(r){return r+" { ? }"}function rr(r,e,t,n){var a=n?Le(t,n):b.call(t,", ");return r+" ("+e+") {"+a+"}"}function ft(r){for(var e=0;e<r.length;e++)if(fr(r[e],`
4
- `)>=0)return!1;return!0}function ot(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=b.call(Array(r.indent+1)," ");else return null;return{base:t,prev:b.call(Array(e+1),t)}}function Le(r,e){if(r.length===0)return"";var t=`
5
- `+e.prev+e.base;return t+b.call(r,","+t)+`
6
- `+e.prev}function fe(r,e){var t=Me(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=A(r,a)?e(r[a],r):""}var i=typeof Oe=="function"?Oe(r):[],f;if(Q){f={};for(var d=0;d<i.length;d++)f["$"+i[d]]=i[d]}for(var o in r)A(r,o)&&(t&&String(Number(o))===o&&o<r.length||Q&&f["$"+o]instanceof Symbol||(tr.call(/[^\w$]/,o)?n.push(e(o,r)+": "+e(r[o],r)):n.push(o+": "+e(r[o],r))));if(typeof Oe=="function")for(var c=0;c<i.length;c++)nr.call(r,i[c])&&n.push("["+e(i[c])+"]: "+e(r[i[c]],r));return n}});var pr=O((Sn,cr)=>{"use strict";h();var ut=j(),ct=le(),ce=function(r,e,t){for(var n=r,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,t||(a.next=r.next,r.next=a),a},pt=function(r,e){if(r){var t=ce(r,e);return t&&t.value}},st=function(r,e,t){var n=ce(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},yt=function(r,e){return r?!!ce(r,e):!1},dt=function(r,e){if(r)return ce(r,e,!0)};cr.exports=function(){var e,t={assert:function(n){if(!t.has(n))throw new ct("Side channel does not contain "+ut(n))},delete:function(n){var a=e&&e.next,i=dt(e,n);return i&&a&&a===i&&(e=void 0),!!i},get:function(n){return pt(e,n)},has:function(n){return yt(e,n)},set:function(n,a){e||(e={next:void 0}),st(e,n,a)}};return t}});var Te=O((En,dr)=>{"use strict";h();var sr=ge(),yr=Cr(),vt=yr([sr("%String.prototype.indexOf%")]);dr.exports=function(e,t){var n=sr(e,!!t);return typeof n=="function"&&vt(e,".prototype.")>-1?yr([n]):n}});var $e=O((xn,hr)=>{"use strict";h();var ht=ge(),ee=Te(),mt=j(),gt=le(),vr=ht("%Map%",!0),wt=ee("Map.prototype.get",!0),St=ee("Map.prototype.set",!0),Ot=ee("Map.prototype.has",!0),Et=ee("Map.prototype.delete",!0),bt=ee("Map.prototype.size",!0);hr.exports=!!vr&&function(){var e,t={assert:function(n){if(!t.has(n))throw new gt("Side channel does not contain "+mt(n))},delete:function(n){if(e){var a=Et(e,n);return bt(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return wt(e,n)},has:function(n){return e?Ot(e,n):!1},set:function(n,a){e||(e=new vr),St(e,n,a)}};return t}});var gr=O((Mn,mr)=>{"use strict";h();var xt=ge(),se=Te(),Dt=j(),pe=$e(),Mt=le(),G=xt("%WeakMap%",!0),Lt=se("WeakMap.prototype.get",!0),At=se("WeakMap.prototype.set",!0),_t=se("WeakMap.prototype.has",!0),It=se("WeakMap.prototype.delete",!0);mr.exports=G?function(){var e,t,n={assert:function(a){if(!n.has(a))throw new Mt("Side channel does not contain "+Dt(a))},delete:function(a){if(G&&a&&(typeof a=="object"||typeof a=="function")){if(e)return It(e,a)}else if(pe&&t)return t.delete(a);return!1},get:function(a){return G&&a&&(typeof a=="object"||typeof a=="function")&&e?Lt(e,a):t&&t.get(a)},has:function(a){return G&&a&&(typeof a=="object"||typeof a=="function")&&e?_t(e,a):!!t&&t.has(a)},set:function(a,i){G&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new G),At(e,a,i)):pe&&(t||(t=pe()),t.set(a,i))}};return n}:pe});var qe=O((An,wr)=>{"use strict";h();var Tt=le(),$t=j(),qt=pr(),Ct=$e(),Nt=gr(),Rt=Nt||Ct||qt;wr.exports=function(){var e,t={assert:function(n){if(!t.has(n))throw new Tt("Side channel does not contain "+$t(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=Rt()),e.set(n,a)}};return t}});var ye=O((In,Sr)=>{"use strict";h();var Ft=String.prototype.replace,Pt=/%20/g,Ce={RFC1738:"RFC1738",RFC3986:"RFC3986"};Sr.exports={default:Ce.RFC3986,formatters:{RFC1738:function(r){return Ft.call(r,Pt,"+")},RFC3986:function(r){return String(r)}},RFC1738:Ce.RFC1738,RFC3986:Ce.RFC3986}});var Pe=O(($n,Or)=>{"use strict";h();var Wt=ye(),Bt=qe(),Ne=Object.prototype.hasOwnProperty,B=Array.isArray,de=Bt(),V=function(e,t){return de.set(e,t),e},H=function(e){return de.has(e)},re=function(e){return de.get(e)},Fe=function(e,t){de.set(e,t)},x=function(){for(var r=[],e=0;e<256;++e)r[r.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return r}(),Ht=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(B(n)){for(var a=[],i=0;i<n.length;++i)typeof n[i]<"u"&&(a[a.length]=n[i]);t.obj[t.prop]=a}}},te=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},Kt=function r(e,t,n){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(B(e)){var a=e.length;if(n&&typeof n.arrayLimit=="number"&&a>n.arrayLimit)return V(te(e.concat(t),n),a);e[a]=t}else if(e&&typeof e=="object")if(H(e)){var i=re(e)+1;e[i]=t,Fe(e,i)}else{if(n&&n.strictMerge)return[e,t];(n&&(n.plainObjects||n.allowPrototypes)||!Ne.call(Object.prototype,t))&&(e[t]=!0)}else return[e,t];return e}if(!e||typeof e!="object"){if(H(t)){for(var f=Object.keys(t),d=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},o=0;o<f.length;o++){var c=parseInt(f[o],10);d[c+1]=t[f[o]]}return V(d,re(t)+1)}var u=[e].concat(t);return n&&typeof n.arrayLimit=="number"&&u.length>n.arrayLimit?V(te(u,n),u.length-1):u}var s=e;return B(e)&&!B(t)&&(s=te(e,n)),B(e)&&B(t)?(t.forEach(function(l,p){if(Ne.call(e,p)){var y=e[p];y&&typeof y=="object"&&l&&typeof l=="object"?e[p]=r(y,l,n):e[e.length]=l}else e[p]=l}),e):Object.keys(t).reduce(function(l,p){var y=t[p];if(Ne.call(l,p)?l[p]=r(l[p],y,n):l[p]=y,H(t)&&!H(l)&&V(l,re(t)),H(l)){var g=parseInt(p,10);String(g)===p&&g>=0&&g>re(l)&&Fe(l,g)}return l},s)},zt=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},Qt=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Re=1024,Gt=function(e,t,n,a,i){if(e.length===0)return e;var f=e;if(typeof e=="symbol"?f=Symbol.prototype.toString.call(e):typeof e!="string"&&(f=String(e)),n==="iso-8859-1")return escape(f).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});for(var d="",o=0;o<f.length;o+=Re){for(var c=f.length>=Re?f.slice(o,o+Re):f,u=[],s=0;s<c.length;++s){var l=c.charCodeAt(s);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Wt.RFC1738&&(l===40||l===41)){u[u.length]=c.charAt(s);continue}if(l<128){u[u.length]=x[l];continue}if(l<2048){u[u.length]=x[192|l>>6]+x[128|l&63];continue}if(l<55296||l>=57344){u[u.length]=x[224|l>>12]+x[128|l>>6&63]+x[128|l&63];continue}s+=1,l=65536+((l&1023)<<10|c.charCodeAt(s)&1023),u[u.length]=x[240|l>>18]+x[128|l>>12&63]+x[128|l>>6&63]+x[128|l&63]}d+=u.join("")}return d},Vt=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var i=t[a],f=i.obj[i.prop],d=Object.keys(f),o=0;o<d.length;++o){var c=d[o],u=f[c];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(t[t.length]={obj:f,prop:c},n[n.length]=u)}return Ht(t),e},Ut=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},kt=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Jt=function(e,t,n,a){if(H(e)){var i=re(e)+1;return e[i]=t,Fe(e,i),e}var f=[].concat(e,t);return f.length>n?V(te(f,{plainObjects:a}),f.length-1):f},Xt=function(e,t){if(B(e)){for(var n=[],a=0;a<e.length;a+=1)n[n.length]=t(e[a]);return n}return t(e)};Or.exports={arrayToObject:te,assign:zt,combine:Jt,compact:Vt,decode:Qt,encode:Gt,isBuffer:kt,isOverflow:H,isRegExp:Ut,markOverflow:V,maybeMap:Xt,merge:Kt}});var Lr=O((Cn,Mr)=>{"use strict";h();var br=qe(),ve=Pe(),ne=ye(),Yt=Object.prototype.hasOwnProperty,xr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},D=Array.isArray,Zt=Array.prototype.push,Dr=function(r,e){Zt.apply(r,D(e)?e:[e])},jt=Date.prototype.toISOString,Er=ne.default,w={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ve.encode,encodeValuesOnly:!1,filter:void 0,format:Er,formatter:ne.formatters[Er],indices:!1,serializeDate:function(e){return jt.call(e)},skipNulls:!1,strictNullHandling:!1},en=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},We={},rn=function r(e,t,n,a,i,f,d,o,c,u,s,l,p,y,g,S,_,I){for(var v=e,T=I,R=0,U=!1;(T=T.get(We))!==void 0&&!U;){var K=T.get(e);if(R+=1,typeof K<"u"){if(K===R)throw new RangeError("Cyclic object value");U=!0}typeof T.get(We)>"u"&&(R=0)}if(typeof u=="function"?v=u(t,v):v instanceof Date?v=p(v):n==="comma"&&D(v)&&(v=ve.maybeMap(v,function(P){return P instanceof Date?p(P):P})),v===null){if(f)return g(c&&!S?c(t,w.encoder,_,"key",y):t);v=""}if(en(v)||ve.isBuffer(v)){if(c){var ae=S?t:c(t,w.encoder,_,"key",y);return[g(ae)+"="+g(c(v,w.encoder,_,"value",y))]}return[g(t)+"="+g(String(v))]}var F=[];if(typeof v>"u")return F;var $;if(n==="comma"&&D(v))S&&c&&(v=ve.maybeMap(v,function(P){return P==null?P:c(P)})),$=[{value:v.length>0?v.join(",")||null:void 0}];else if(D(u))$=u;else{var ie=Object.keys(v);$=s?ie.sort(s):ie}var z=o?String(t).replace(/\./g,"%2E"):String(t),E=a&&D(v)&&v.length===1?z+"[]":z;if(i&&D(v)&&v.length===0)return E+"[]";for(var q=0;q<$.length;++q){var L=$[q],k=typeof L=="object"&&L&&typeof L.value<"u"?L.value:v[L];if(!(d&&k===null)){var me=l&&o?String(L).replace(/\./g,"%2E"):String(L),$r=D(v)?typeof n=="function"?n(E,me):E:E+(l?"."+me:"["+me+"]");I.set(e,R);var He=br();He.set(We,I),Dr(F,r(k,$r,n,a,i,f,d,o,n==="comma"&&S&&D(v)?null:c,u,s,l,p,y,g,S,_,He))}}return F},tn=function(e){if(!e)return w;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||w.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ne.default;if(typeof e.format<"u"){if(!Yt.call(ne.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=ne.formatters[n],i=w.filter;(typeof e.filter=="function"||D(e.filter))&&(i=e.filter);var f;if(e.arrayFormat in xr?f=e.arrayFormat:"indices"in e?f=e.indices?"indices":"repeat":f=w.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:w.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:w.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:w.allowEmptyArrays,arrayFormat:f,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:w.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?w.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:w.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:w.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:w.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:w.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:w.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:w.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:w.strictNullHandling}};Mr.exports=function(r,e){var t=r,n=tn(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):D(n.filter)&&(i=n.filter,a=i);var f=[];if(typeof t!="object"||t===null)return"";var d=xr[n.arrayFormat],o=d==="comma"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var c=br(),u=0;u<a.length;++u){var s=a[u];if(!(typeof s>"u"||s===null)){var l=t[s];n.skipNulls&&l===null||Dr(f,rn(l,s,d,o,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}}var p=f.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B"+n.delimiter:y+="utf8=%E2%9C%93"+n.delimiter),p.length>0?y+p:""}});var Ir=O((Rn,_r)=>{"use strict";h();var M=Pe(),he=Object.prototype.hasOwnProperty,Be=Array.isArray,m={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:M.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},nn=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Ar=function(r,e,t){if(r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1)return r.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return r},an="utf8=%26%2310003%3B",ln="utf8=%E2%9C%93",fn=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=t.parameterLimit===1/0?void 0:t.parameterLimit,f=a.split(t.delimiter,t.throwOnLimitExceeded&&typeof i<"u"?i+1:i);if(t.throwOnLimitExceeded&&typeof i<"u"&&f.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var d=-1,o,c=t.charset;if(t.charsetSentinel)for(o=0;o<f.length;++o)f[o].indexOf("utf8=")===0&&(f[o]===ln?c="utf-8":f[o]===an&&(c="iso-8859-1"),d=o,o=f.length);for(o=0;o<f.length;++o)if(o!==d){var u=f[o],s=u.indexOf("]="),l=s===-1?u.indexOf("="):s+1,p,y;if(l===-1?(p=t.decoder(u,m.decoder,c,"key"),y=t.strictNullHandling?null:""):(p=t.decoder(u.slice(0,l),m.decoder,c,"key"),p!==null&&(y=M.maybeMap(Ar(u.slice(l+1),t,Be(n[p])?n[p].length:0),function(S){return t.decoder(S,m.decoder,c,"value")}))),y&&t.interpretNumericEntities&&c==="iso-8859-1"&&(y=nn(String(y))),u.indexOf("[]=")>-1&&(y=Be(y)?[y]:y),t.comma&&Be(y)&&y.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");y=M.combine([],y,t.arrayLimit,t.plainObjects)}if(p!==null){var g=he.call(n,p);g&&(t.duplicates==="combine"||u.indexOf("[]=")>-1)?n[p]=M.combine(n[p],y,t.arrayLimit,t.plainObjects):(!g||t.duplicates==="last")&&(n[p]=y)}}return n},on=function(r,e,t,n){var a=0;if(r.length>0&&r[r.length-1]==="[]"){var i=r.slice(0,-1).join("");a=Array.isArray(e)&&e[i]?e[i].length:0}for(var f=n?e:Ar(e,t,a),d=r.length-1;d>=0;--d){var o,c=r[d];if(c==="[]"&&t.parseArrays)M.isOverflow(f)?o=f:o=t.allowEmptyArrays&&(f===""||t.strictNullHandling&&f===null)?[]:M.combine([],f,t.arrayLimit,t.plainObjects);else{o=t.plainObjects?{__proto__:null}:{};var u=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,s=t.decodeDotInKeys?u.replace(/%2E/g,"."):u,l=parseInt(s,10),p=!isNaN(l)&&c!==s&&String(l)===s&&l>=0&&t.parseArrays;if(!t.parseArrays&&s==="")o={0:f};else if(p&&l<t.arrayLimit)o=[],o[l]=f;else{if(p&&t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");p?(o[l]=f,M.markOverflow(o,l)):s!=="__proto__"&&(o[s]=f)}}f=o}return f},un=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0)return!t.plainObjects&&he.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var a=[],i=n.indexOf("["),f=i>=0?n.slice(0,i):n;if(f){if(!t.plainObjects&&he.call(Object.prototype,f)&&!t.allowPrototypes)return;a[a.length]=f}for(var d=n.length,o=i,c=0;o>=0&&c<t.depth;){for(var u=1,s=o+1,l=-1;s<d&&l<0;){var p=n.charCodeAt(s);p===91?u+=1:p===93&&(u-=1,u===0&&(l=s)),s+=1}if(l<0)return a[a.length]="["+n.slice(o)+"]",a;var y=n.slice(o,l+1),g=y.slice(1,-1);if(!t.plainObjects&&he.call(Object.prototype,g)&&!t.allowPrototypes)return;a[a.length]=y,c+=1,o=n.indexOf("[",l+1)}if(o>=0){if(t.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");a[a.length]="["+n.slice(o)+"]"}return a},cn=function(e,t,n,a){if(e){var i=un(e,n);if(i)return on(i,t,n,a)}},pn=function(e){if(!e)return m;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?m.charset:e.charset,n=typeof e.duplicates>"u"?m.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:m.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:m.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:m.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:m.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:m.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:m.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:m.decoder,delimiter:typeof e.delimiter=="string"||M.isRegExp(e.delimiter)?e.delimiter:m.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:m.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:m.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:m.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:m.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:m.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:m.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};_r.exports=function(r,e){var t=pn(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?{__proto__:null}:{};for(var n=typeof r=="string"?fn(r,t):r,a=t.plainObjects?{__proto__:null}:{},i=Object.keys(n),f=0;f<i.length;++f){var d=i[f],o=cn(d,n[d],t,typeof r=="string");a=M.merge(a,o,t)}return t.allowSparse===!0?a:M.compact(a)}});var vn=O((Pn,Tr)=>{"use strict";h();var sn=Lr(),yn=Ir(),dn=ye();Tr.exports={formats:dn,parse:yn,stringify:sn}});export{vn as a};
@@ -1,8 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{I as l,L as M,Q as A,w as g}from"./chunk-27Q5KW3A.js";import{b as h}from"./chunk-GZPNIYVZ.js";h();import*as s from"node:fs";import*as t from"node:path";var f="memory",y="MEMORY.md",x="meta.json",R="extract-cursor.json",O="consolidation.lock",T="memories";function D(r){let o=t.resolve(r);for(;;){let e=t.join(o,".git");if(s.existsSync(e))return o;let n=t.dirname(o);if(n===o)return null;o=n}}function j(r){let o=D(r);if(!o)return null;try{let e=s.readFileSync(t.join(o,".git"),"utf-8").trim();if(!e.startsWith("gitdir:"))return o;let n=t.resolve(o,e.slice(7).trim()),i=t.resolve(n,s.readFileSync(t.join(n,"commondir"),"utf-8").trim());return t.resolve(t.dirname(n))!==t.join(i,"worktrees")||s.realpathSync(s.readFileSync(t.join(n,"gitdir"),"utf-8").trim())!==t.join(s.realpathSync(o),".git")?o:t.basename(i)!==".git"?i.normalize("NFC"):t.dirname(i).normalize("NFC")}catch{return o}}function _(){return process.env.MATILDA_CODE_MEMORY_BASE_DIR?M(void 0,process.env.MATILDA_CODE_MEMORY_BASE_DIR):A.getRuntimeBaseDir()}var c=new Map;function u(r){let o=process.env.MATILDA_CODE_MEMORY_LOCAL==="1",e=o?"":_(),n=`${o?"local":e}\0${r}`,i=c.get(n);if(i!==void 0)return i;let a;if(o)a=t.join(r,g,f);else{let d=j(r)??t.resolve(r);a=t.join(e,"projects",l(d),f)}return c.set(n,a),a}function S(){c.clear()}function p(r){return t.dirname(u(r))}function I(r,o){let e=t.normalize(r),n=t.normalize(u(o)),i=t.relative(n,e);return i===""||!i.startsWith("..")&&!t.isAbsolute(i)}function v(r){return t.join(u(r),y)}function U(r){return t.join(p(r),x)}function F(r){return t.join(p(r),R)}function N(r){return t.join(p(r),O)}function E(r){return`${r}.md`}function Y(r,o){return t.join(u(r),E(o))}function z(r,o){return t.join(u(r),o)}function m(){return t.join(_(),T)}function k(){return t.join(m(),y)}function b(r){return t.join(m(),E(r))}function C(r){let o=t.normalize(r),e=t.normalize(m()),n=t.relative(e,o);return n===""||!n.startsWith("..")&&!t.isAbsolute(n)}function w(r,o){return I(r,o)||C(r)}export{f as a,y as b,x as c,R as d,O as e,T as f,_ as g,u as h,S as i,p as j,I as k,v as l,U as m,F as n,N as o,E as p,Y as q,z as r,m as s,k as t,b as u,C as v,w};
4
- /**
5
- * @license
6
- * Copyright 2025 Google LLC
7
- * SPDX-License-Identifier: Apache-2.0
8
- */
@@ -1,8 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{b as t}from"./chunk-GZPNIYVZ.js";t();import{AsyncLocalStorage as o}from"node:async_hooks";var e=new o;function m(){return e.getStore()}function s(){return e.getStore()!==void 0}function d(){return e.getStore()?.agentName}function a(){return e.getStore()?.teamName}function g(n){return a()??n}var p=s;function c(){return e.getStore()?.isTeamLead??!1}function u(){return e.getStore()?.color}function T(n,r){return e.run(n,r)}t();var f=10,A="leader",I="teams",y="tasks",S="config.json",b="inboxes",E=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#DDA0DD","#F0E68C","#87CEEB","#FFB347","#B0E0E6"];export{e as a,m as b,s as c,d,a as e,g as f,p as g,c as h,u as i,T as j,f as k,A as l,I as m,y as n,S as o,b as p,E as q};
4
- /**
5
- * @license
6
- * Copyright 2025 Matilda
7
- * SPDX-License-Identifier: Apache-2.0
8
- */